:root {
  color-scheme: light;
  --page: #f2eee5;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1e2a27;
  --ink-soft: #43504b;
  --muted: #7b817b;
  --line: #ded9ce;
  --line-soft: #ebe7de;
  --orange: #e96932;
  --orange-soft: #fff0e8;
  --teal: #27776b;
  --teal-soft: #e8f5f1;
  --lime: #d9e876;
  --yellow: #f4d968;
  --hero: #1f302b;
  --hero-soft: #2d423b;
  --danger: #c64a37;
  --shadow-sm: 0 8px 26px rgba(47, 46, 39, 0.055);
  --shadow-lg: 0 24px 70px rgba(31, 48, 43, 0.13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-number: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 2%, rgba(244, 217, 104, 0.21), transparent 25rem),
    radial-gradient(circle at 88% 38%, rgba(39, 119, 107, 0.1), transparent 28rem),
    var(--page);
  color: var(--ink);
  font-family: var(--font-cn);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(233, 105, 50, 0.25);
  outline-offset: 2px;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.page-glow--one {
  top: 4.5rem;
  left: -12rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(217, 232, 118, 0.25);
}

.page-glow--two {
  right: -11rem;
  bottom: 6rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(39, 119, 107, 0.12);
}

.app-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding:
    calc(26px + env(safe-area-inset-top))
    0
    calc(24px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 730;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-switcher,
.status-pill,
.icon-button {
  border: 1px solid rgba(176, 171, 160, 0.55);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(10px);
}

.date-switcher {
  display: flex;
  height: 46px;
  align-items: center;
  padding: 0 5px;
  border-radius: 14px;
}

.date-arrow {
  display: grid;
  width: 31px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.date-arrow:hover {
  background: #eee9de;
}

.date-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.date-display {
  position: relative;
  display: flex;
  min-width: 124px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.date-display span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.date-display strong {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.date-display input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.today-button {
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.today-button:hover {
  color: var(--ink);
}

.today-button[disabled] {
  visibility: hidden;
}

.status-pill {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d69c38;
  box-shadow: 0 0 0 4px rgba(214, 156, 56, 0.13);
}

.status-pill.is-live .status-dot {
  background: #3d9b71;
  box-shadow: 0 0 0 4px rgba(61, 155, 113, 0.12);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: var(--surface);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.mobile-install-button {
  display: none;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(30, 42, 39, 0.16);
  color: #fff;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #14231f;
  box-shadow: 0 11px 25px rgba(30, 42, 39, 0.2);
}

.primary-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #f8f5ee;
}

.secondary-button:hover {
  background: #efebe2;
}

.demo-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: fit-content;
  min-height: 40px;
  margin: 20px 0 18px;
  padding: 7px 9px 7px 12px;
  border: 1px solid #e4d9b3;
  border-radius: 999px;
  background: rgba(255, 250, 231, 0.7);
  color: #75652f;
  font-size: 11px;
}

.demo-notice[hidden] {
  display: none;
}

.demo-notice > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-notice p {
  margin: 0;
}

.notice-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(117, 101, 47, 0.3);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
}

.demo-notice button {
  height: 27px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #796a36;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 392px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.68fr) minmax(300px, 0.72fr);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.02), transparent 56%),
    var(--hero);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.hero-panel::before {
  position: absolute;
  top: -7.8rem;
  left: 37%;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(217, 232, 118, 0.09);
  border-radius: 50%;
  content: "";
}

.hero-panel::after {
  position: absolute;
  top: -8rem;
  right: -5rem;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 232, 118, 0.12), transparent 69%);
  content: "";
}

.hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 34px 38px 28px;
}

.hero-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.eyebrow-tag {
  padding: 4px 8px;
  border: 1px solid rgba(217, 232, 118, 0.24);
  border-radius: 999px;
  background: rgba(217, 232, 118, 0.07);
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.total-sales-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 7px;
}

.currency-mark {
  padding-bottom: 14px;
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 29px;
  font-weight: 530;
}

.total-sales-row strong {
  font-family: var(--font-number);
  font-size: clamp(58px, 6vw, 84px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
  font-variant-numeric: tabular-nums;
}

.trend-chip {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  margin: 0 0 11px 12px;
  padding: 0 10px;
  border: 1px solid rgba(217, 232, 118, 0.18);
  border-radius: 999px;
  background: rgba(217, 232, 118, 0.08);
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.trend-chip.is-down {
  border-color: rgba(255, 157, 128, 0.2);
  background: rgba(255, 135, 102, 0.1);
  color: #ffb09c;
}

.trend-chip.is-flat {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
}

.live-mark {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  white-space: nowrap;
}

.live-mark span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 232, 118, 0.08);
}

.hero-context {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.context-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.goal-block {
  margin-top: 29px;
}

.goal-copy,
.goal-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.goal-copy {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.goal-copy strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.goal-copy strong span {
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 650;
}

.progress-track {
  position: relative;
  height: 6px;
  margin-top: 10px;
  overflow: visible;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.075);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bdd058, var(--lime));
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-glow {
  position: absolute;
  top: -3px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--hero);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 13px rgba(217, 232, 118, 0.7);
  transition: left 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.goal-labels {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-number);
  font-size: 9px;
}

.goal-labels span:nth-child(2) {
  color: rgba(255, 255, 255, 0.55);
}

.hero-footer {
  display: grid;
  align-items: end;
  gap: 27px;
  margin-top: auto;
  padding-top: 24px;
  grid-template-columns: repeat(4, minmax(0, auto)) 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-footer-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
}

.hero-footer-copy strong {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 520;
}

.sparkline-wrap {
  min-width: 130px;
  height: 44px;
}

.sparkline-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spark-line {
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.spark-dot {
  fill: var(--lime);
  stroke: var(--hero);
  stroke-width: 2.5;
}

.hero-aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: 17px;
  padding: 25px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.042);
  backdrop-filter: blur(10px);
}

.aside-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.aside-heading span:last-child {
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-number);
}

.share-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.share-row {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.share-row:last-child {
  border-bottom: 0;
}

.share-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-store {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.share-store-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--store-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-color) 13%, transparent);
}

.share-store span:last-child {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-row-top strong {
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 520;
  white-space: nowrap;
}

.share-bar {
  height: 3px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.share-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--store-color);
}

.share-percent {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-number);
  font-size: 8px;
  text-align: right;
}

.aside-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(217, 232, 118, 0.12);
  border-radius: 13px;
  background: rgba(217, 232, 118, 0.055);
}

.callout-mark {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(217, 232, 118, 0.11);
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 11px;
}

.aside-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  line-height: 1.65;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 2px 17px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.section-heading h1,
.panel-heading h2,
.modal-header h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 690;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10px;
}

.store-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.store-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 23px 24px 20px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 38px rgba(47, 46, 39, 0.08);
}

.store-card::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--store-color);
  content: "";
}

.store-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.store-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.store-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--store-soft);
  color: var(--store-color);
  font-size: 16px;
  font-weight: 730;
}

.store-title {
  min-width: 0;
}

.store-title strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-title span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.store-title i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #46a57b;
}

.store-status {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #faf8f2;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.store-sales {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 23px;
}

.store-sales-label {
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.store-sales strong {
  font-family: var(--font-number);
  font-size: clamp(34px, 4vw, 47px);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.store-sales strong::before {
  margin-right: 3px;
  color: var(--store-color);
  content: "¥";
  font-size: 19px;
  vertical-align: 13px;
}

.store-delta {
  display: inline-flex;
  height: 22px;
  align-items: center;
  margin: 0 0 4px 3px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--store-soft);
  color: var(--store-color);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.store-delta.is-down {
  background: #fff0ec;
  color: var(--danger);
}

.store-delta.is-flat {
  background: #f2f1ed;
  color: var(--muted);
}

.store-mid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  grid-template-columns: 1fr auto;
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-stats--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-stats--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 12px;
}

.store-stat + .store-stat {
  padding-left: 12px;
  border-left: 1px solid var(--line-soft);
}

.store-stat span {
  color: var(--muted);
  font-size: 9px;
}

.store-stat strong {
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 560;
}

.store-mini-chart {
  width: 122px;
  height: 47px;
}

.store-mini-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mini-chart-line {
  fill: none;
  stroke: var(--store-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.delivery-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbf9f4;
}

.delivery-detail-label {
  padding-top: 5px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.delivery-chips {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.delivery-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--channel-soft);
  color: var(--channel-color);
  font-size: 8px;
  white-space: nowrap;
}

.delivery-chip i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--channel-color);
}

.delivery-chip span {
  color: var(--ink-soft);
}

.delivery-chip strong {
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 650;
}

.store-source-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.store-source-label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.source-badge,
.store-source-pending {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 8px;
  white-space: nowrap;
}

.source-badge--wechat {
  background: #e9f7ef;
  color: #237c4c;
}

.source-badge--postal {
  background: #edf4ef;
  color: #17634f;
}

.source-badge--delivery {
  background: #fff4df;
  color: #9b6a13;
}

.store-source-pending {
  background: #f0eee8;
  color: var(--muted);
}

.store-goal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.store-goal-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
}

.store-goal-copy strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-weight: 600;
}

.store-goal-track {
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #ece8df;
}

.store-goal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--store-color);
  transition: width 600ms ease;
}

.store-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #a09f98;
  font-size: 8px;
}

.share-note {
  color: var(--store-color);
}

.section-heading--cost {
  align-items: flex-end;
  margin: 31px 2px 15px;
}

.section-heading--cost h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 690;
  letter-spacing: -0.03em;
}

.cost-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-panel,
.labor-panel {
  min-width: 0;
  padding: 23px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.cost-total {
  font-family: var(--font-number);
  font-size: 21px;
  font-weight: 590;
  letter-spacing: -0.04em;
}

.cost-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cost-entry-button {
  height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f0e8;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 620;
  cursor: pointer;
}

.cost-entry-button:hover {
  border-color: #c7c0b3;
  background: #ece7dd;
}

.cost-category-grid {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cost-category {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbf9f4;
}

.cost-category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.cost-category-top span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
}

.cost-category-top span i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cost-color);
}

.cost-category-top strong {
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 620;
}

.cost-category-track {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--cost-soft);
}

.cost-category-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cost-color);
}

.cost-category small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 7px;
}

.cost-store-rows {
  margin-top: 15px;
  padding-top: 5px;
  border-top: 1px solid var(--line-soft);
}

.cost-store-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line-soft);
}

.cost-store-row:last-child {
  border-bottom: 0;
}

.cost-store-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 620;
  white-space: nowrap;
}

.cost-store-name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.cost-store-detail {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-store-row > strong {
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 600;
}

.monthly-food-summary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.monthly-food-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monthly-food-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.monthly-food-head span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.monthly-food-head small {
  color: var(--muted);
  font-size: 7px;
}

.monthly-food-head > strong {
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 580;
  letter-spacing: -0.04em;
}

.monthly-food-stores {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monthly-food-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f1eee7;
}

.monthly-food-store span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 7px;
}

.monthly-food-store span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--store-color);
}

.monthly-food-store strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 600;
}

.monthly-food-categories {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monthly-food-categories span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 7px;
  border-radius: 7px;
  background: #f8f5ef;
  color: var(--muted);
  font-size: 7px;
}

.monthly-food-categories span i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cost-color);
}

.monthly-food-categories strong {
  margin-left: auto;
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 7px;
  font-weight: 600;
}

.labor-store-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.monthly-inventory-row,
.monthly-cost-combined {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 8px;
}

.monthly-inventory-row {
  margin-top: 8px;
  background: #f1eee7;
  color: var(--muted);
}

.monthly-cost-combined {
  margin-top: 6px;
  background: #edf4ef;
  color: #356d5a;
}

.monthly-inventory-row strong,
.monthly-cost-combined strong {
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 620;
}

.attendance-panel {
  margin-top: 16px;
  padding: 23px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.attendance-legend {
  display: flex;
  gap: 11px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.attendance-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.attendance-dot {
  width: 7px;
  height: 7px;
  border-radius: 3px;
}

.attendance-dot--present {
  background: #c9ecd9;
}

.attendance-dot--rest {
  background: #e9e5dc;
}

.attendance-dot--leave {
  background: #ffd7cd;
}

.attendance-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.attendance-tables {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.attendance-store {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #fbf9f4;
}

.attendance-store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.attendance-store-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.attendance-store-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.attendance-store-head small {
  color: var(--muted);
  font-size: 7px;
}

.attendance-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.attendance-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.attendance-table th,
.attendance-table td {
  height: 35px;
  padding: 3px;
  border-right: 1px solid #ebe7de;
  border-bottom: 1px solid #ebe7de;
  text-align: center;
}

.attendance-table thead th {
  height: 27px;
  background: #f1eee7;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 7px;
  font-weight: 600;
}

.attendance-table tbody tr:last-child th,
.attendance-table tbody tr:last-child td {
  border-bottom: 0;
}

.attendance-table .attendance-person-head,
.attendance-table .attendance-person {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 74px;
  background: #fbf9f4;
  font-family: var(--font-cn);
  text-align: left;
}

.attendance-table .attendance-person {
  padding-left: 10px;
  color: var(--ink-soft);
  font-size: 8px;
  white-space: nowrap;
}

.attendance-table .attendance-summary-head,
.attendance-table .attendance-summary {
  position: sticky;
  z-index: 2;
  right: 0;
  width: 96px;
  background: #fbf9f4;
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
}

.attendance-table thead .attendance-summary-head {
  background: #f1eee7;
}

.attendance-table th.is-selected,
.attendance-table td.is-selected {
  background: #f6f1e7;
}

.attendance-cell {
  display: grid;
  width: 23px;
  height: 23px;
  margin: 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 650;
  cursor: pointer;
}

.attendance-cell.status-present {
  background: #d9f1e3;
  color: #277458;
}

.attendance-cell.status-rest {
  background: #eae6dd;
  color: #77766f;
}

.attendance-cell.status-leave {
  background: #ffe0d8;
  color: #a34c3c;
}

.attendance-cell.status-future {
  background: transparent;
  color: #c4c0b8;
  cursor: default;
}

.attendance-cell:hover:not(:disabled) {
  filter: brightness(0.96);
}

.attendance-empty {
  position: sticky;
  left: 0;
  width: 100%;
  padding: 18px !important;
  color: var(--muted);
  font-size: 8px;
  text-align: center !important;
}

.fixed-cost-panel {
  margin-top: 16px;
  padding: 23px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.fixed-cost-store-grid {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fixed-cost-store-card {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #fbf9f4;
}

.fixed-cost-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fixed-cost-store-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fixed-cost-store-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
}

.fixed-cost-store-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.fixed-cost-store-head small {
  color: var(--muted);
  font-size: 7px;
}

.fixed-cost-store-head > strong {
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.fixed-cost-store-head > strong small {
  margin-left: 2px;
}

.fixed-cost-items {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fixed-cost-items span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: var(--fixed-soft);
  color: var(--muted);
  font-size: 7px;
}

.fixed-cost-items span i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--fixed-color);
}

.fixed-cost-items strong {
  margin-left: auto;
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 600;
}

.fixed-cost-daily {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 7px;
  text-align: right;
}

.fixed-cost-daily strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 9px;
}

.fixed-cost-daily span {
  display: block;
  margin-top: 3px;
  color: #a09d95;
  font-size: 7px;
}

.labor-store-card {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbf9f4;
}

.labor-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.labor-store-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.labor-store-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.labor-store-name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.labor-store-head small {
  color: var(--muted);
  font-size: 7px;
}

.labor-store-head > strong {
  flex: 0 0 auto;
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 600;
}

.labor-store-head > strong small {
  margin-left: 2px;
  font-family: var(--font-cn);
  font-size: 7px;
}

.labor-people {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.labor-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #f0ece3;
  color: var(--ink-soft);
  font-size: 8px;
}

.labor-person strong {
  color: var(--store-color);
  font-family: var(--font-number);
  font-size: 7px;
  font-weight: 650;
}

.commission-box {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding: 10px;
  border-radius: 10px;
  background: #f1eee7;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commission-box span {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.45;
}

.commission-box strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-weight: 650;
}

.labor-formula {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.labor-formula strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-weight: 650;
}

.profit-panel {
  display: grid;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 20px 23px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 92% 20%, rgba(217, 232, 118, 0.12), transparent 20rem),
    var(--hero);
  box-shadow: var(--shadow-sm);
  color: white;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
}

.profit-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.profit-heading > span:first-child {
  width: 100%;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.profit-heading > strong {
  font-family: var(--font-number);
  font-size: 31px;
  font-weight: 570;
  letter-spacing: -0.045em;
}

.profit-margin {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(217, 232, 118, 0.09);
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 8px;
}

.is-negative {
  color: #ffad9b !important;
}

.profit-flow {
  display: grid;
  align-items: center;
  gap: 11px;
  grid-template-columns:
    minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto
    minmax(0, 1fr) auto minmax(0, 1.15fr);
}

.profit-flow > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.profit-flow span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 7px;
}

.profit-flow strong {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

.profit-flow .profit-operator {
  color: rgba(255, 255, 255, 0.23);
  font-family: var(--font-number);
  font-size: 15px;
}

.profit-flow .profit-final strong {
  color: var(--lime);
  font-size: 17px;
}

.profit-store-grid {
  display: grid;
  gap: 9px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profit-store-card {
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.profit-store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profit-store-head span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
}

.profit-store-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.profit-store-head strong {
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 16px;
  font-weight: 570;
}

.profit-store-stats {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profit-store-stats span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 7px;
}

.profit-store-stats strong {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 550;
}

.profit-note {
  grid-column: 1 / -1;
  margin: -5px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.32);
  font-size: 7px;
  line-height: 1.6;
}

.monthly-profit-panel {
  margin-top: 16px;
  padding: 23px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 48%),
    rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-sm);
}

.monthly-profit-total {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
}

.monthly-profit-total strong {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 28px;
  font-weight: 580;
  letter-spacing: -0.045em;
}

.monthly-profit-total span {
  color: var(--muted);
  font-size: 7px;
}

.monthly-profit-flow {
  display: grid;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 13px;
  background: #f1eee7;
  grid-template-columns:
    minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto
    minmax(0, 1fr) auto minmax(0, 1.15fr);
}

.monthly-profit-flow > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.monthly-profit-flow > div > span {
  color: var(--muted);
  font-size: 7px;
}

.monthly-profit-flow > div > strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 580;
  white-space: nowrap;
}

.monthly-profit-flow > span {
  color: #a5a198;
  font-family: var(--font-number);
  font-size: 13px;
}

.monthly-profit-result > strong {
  color: #2d7b65 !important;
  font-size: 16px !important;
}

.monthly-profit-store-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monthly-profit-store {
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbf9f4;
}

.monthly-profit-store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.monthly-profit-store-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.monthly-profit-store-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.monthly-profit-store-head > strong {
  color: #2d7b65;
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 600;
}

.monthly-profit-store-stats {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.monthly-profit-store-stats span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 7px;
}

.monthly-profit-store-stats strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 570;
}

.profit-55-block {
  margin-top: 13px;
  padding: 15px;
  border: 1px solid #d7e3dc;
  border-radius: 14px;
  background: #f1f7f3;
}

.profit-55-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profit-55-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 680;
}

.profit-55-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.55;
}

.profit-55-total {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.profit-55-total strong {
  color: #26745e;
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 590;
  letter-spacing: -0.04em;
}

.profit-55-total span {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 7px;
}

.profit-55-flow {
  display: grid;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 11px;
  border: 1px solid #dce8e1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  grid-template-columns:
    minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto
    minmax(0, 1fr) auto minmax(0, 1.15fr);
}

.profit-55-flow > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profit-55-flow > div > span {
  color: var(--muted);
  font-size: 7px;
}

.profit-55-flow > div > strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 580;
  white-space: nowrap;
}

.profit-55-flow > span {
  color: #a4ada7;
  font-family: var(--font-number);
  font-size: 12px;
}

.profit-55-result > strong {
  color: #26745e !important;
  font-size: 14px !important;
}

.profit-55-store-grid {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profit-55-store {
  padding: 10px;
  border: 1px solid #dce8e1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.profit-55-store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profit-55-store-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
}

.profit-55-store-head span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--store-color);
}

.profit-55-store-head > strong {
  color: #26745e;
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 600;
}

.profit-55-store-stats {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profit-55-store-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 6px;
}

.profit-55-store-stats strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 7px;
  font-weight: 570;
}

.monthly-profit-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.6;
}

.lower-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
}

.trend-panel,
.insight-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  font-size: 18px;
}

.chart-legend {
  display: flex;
  gap: 14px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 3px;
}

.legend-dot--one {
  background: var(--orange);
}

.legend-dot--two {
  background: var(--teal);
}

.legend-dot--three {
  background: #3f6d89;
}

.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 18px;
}

.chart-summary strong {
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 580;
  letter-spacing: -0.04em;
}

.chart-summary > span {
  color: var(--muted);
  font-size: 9px;
}

.chart-summary .chart-change {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf6f2;
  color: #347e68;
  font-family: var(--font-number);
}

.chart-summary .chart-change.is-down {
  background: #fff0ec;
  color: var(--danger);
}

.bar-chart {
  position: relative;
  display: grid;
  height: 190px;
  align-items: end;
  gap: clamp(8px, 1.4vw, 20px);
  margin-top: 21px;
  padding: 8px 4px 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
  background-image: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(208, 203, 193, 0.23) calc(25% - 1px),
    rgba(208, 203, 193, 0.23) 25%
  );
}

.bar-day {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.bar-pair {
  display: flex;
  width: 100%;
  height: calc(100% - 31px);
  align-items: end;
  justify-content: center;
  gap: 4px;
}

.bar {
  position: relative;
  width: min(13px, 28%);
  min-height: 2px;
  border-radius: 5px 5px 2px 2px;
  transform-origin: bottom;
  animation: bar-rise 550ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.bar--one {
  background: linear-gradient(to top, #d85e2d, #f18958);
}

.bar--two {
  background: linear-gradient(to top, #21695e, #4c9589);
}

.bar--three {
  background: linear-gradient(to top, #355d76, #638ca3);
}

.bar:hover::after {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 130px;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  content: attr(data-tooltip);
  font-family: var(--font-cn);
  font-size: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.bar-day-label {
  display: flex;
  height: 31px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.bar-day-label strong {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.bar-day.is-selected .bar-day-label {
  color: var(--orange);
}

.bar-day.is-selected .bar-day-label strong {
  color: var(--orange);
}

@keyframes bar-rise {
  from {
    transform: scaleY(0);
  }
}

.insight-date {
  padding: 5px 8px;
  border-radius: 7px;
  background: #f0ece3;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 9px;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.delivery-store-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}

.delivery-store-card {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #fbf9f4;
}

.delivery-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.delivery-store-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.delivery-store-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
}

.delivery-store-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.delivery-store-head small {
  color: var(--muted);
  font-size: 7px;
}

.delivery-store-head > strong {
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.delivery-platform-list {
  margin-top: 9px;
}

.delivery-platform-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  border-top: 1px solid var(--line-soft);
}

.delivery-platform-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  background: var(--platform-soft);
  color: var(--platform-color);
  font-size: 7px;
  font-weight: 720;
}

.delivery-platform-copy {
  min-width: 0;
}

.delivery-platform-copy > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.delivery-platform-copy span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-platform-copy strong {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.delivery-platform-track {
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #eae6dd;
}

.delivery-platform-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--platform-color);
}

.delivery-platform-row > small {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 7px;
  text-align: right;
}

.delivery-trend-panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.delivery-chart-legend {
  display: flex;
  gap: 12px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.delivery-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.delivery-chart-legend i {
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--legend-color);
}

.delivery-trend-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-trend-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbf9f4;
}

.delivery-trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.delivery-trend-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.delivery-trend-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.delivery-trend-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.delivery-trend-head small {
  color: var(--muted);
  font-size: 7px;
}

.delivery-trend-head > strong {
  font-family: var(--font-number);
  font-size: 16px;
  font-weight: 600;
}

.delivery-line-chart {
  position: relative;
  margin-top: 12px;
  padding-top: 2px;
  background-image: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(208, 203, 193, 0.23) calc(25% - 1px),
    rgba(208, 203, 193, 0.23) 25%
  );
}

.delivery-line-chart svg {
  display: block;
  width: 100%;
  height: 155px;
  overflow: visible;
}

.delivery-trend-line {
  fill: none;
  stroke: var(--platform-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.delivery-chart-days {
  display: grid;
  margin-top: 3px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 7px;
  grid-template-columns: repeat(7, 1fr);
}

.delivery-chart-days span {
  text-align: center;
}

.delivery-chart-days span.is-today {
  color: var(--store-color);
  font-weight: 650;
}

.group-buy-panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid rgba(210, 204, 192, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.group-buy-legend {
  display: flex;
  gap: 12px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.group-buy-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.group-buy-legend i {
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--legend-color);
}

.group-buy-store-grid {
  display: grid;
  gap: 12px;
  margin-top: 17px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.group-buy-store {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbf9f4;
}

.group-buy-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.group-buy-store-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-buy-store-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.group-buy-store-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store-color);
}

.group-buy-store-head small {
  color: var(--muted);
  font-size: 7px;
}

.group-buy-store-head > strong {
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.group-buy-platforms {
  margin-top: 12px;
}

.group-buy-platform {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  border-top: 1px solid var(--line-soft);
}

.group-buy-platform > div {
  min-width: 0;
}

.group-buy-platform > div > span {
  color: var(--ink-soft);
  font-size: 8px;
}

.group-buy-platform > strong {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 600;
}

.delivery-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #f3f0e8;
}

.delivery-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.delivery-summary span {
  color: var(--muted);
  font-size: 8px;
}

.delivery-summary strong {
  font-family: var(--font-number);
  font-size: 19px;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.delivery-summary p {
  max-width: 135px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
  text-align: right;
}

.platform-row {
  display: grid;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line-soft);
}

.platform-row:last-child {
  border-bottom: 0;
}

.platform-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: var(--platform-soft);
  color: var(--platform-color);
  font-size: 9px;
  font-weight: 730;
}

.platform-copy {
  min-width: 0;
}

.platform-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.platform-name strong {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.platform-name span {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 8px;
}

.platform-bar {
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #ece8df;
}

.platform-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--platform-color);
}

.platform-amount {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 580;
  white-space: nowrap;
}

.insight-item {
  display: grid;
  gap: 10px;
  padding: 13px 0;
  grid-template-columns: 27px 1fr;
  border-bottom: 1px solid var(--line-soft);
}

.insight-item:last-child {
  border-bottom: 0;
}

.insight-index {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: #f0ece3;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 700;
}

.insight-item:nth-child(1) .insight-index {
  background: var(--orange-soft);
  color: var(--orange);
}

.insight-item:nth-child(2) .insight-index {
  background: var(--teal-soft);
  color: var(--teal);
}

.insight-item p {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.insight-item p strong {
  color: var(--ink);
  font-weight: 650;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.text-button:hover {
  color: var(--orange);
}

.text-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.insight-panel > .text-button {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.text-button--small {
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: #c7c1b4;
  text-underline-offset: 4px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 0 4px;
  color: #9b9b93;
  font-size: 8px;
}

.footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c4c0b7;
}

.sync-footer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sync-footer::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaa79f;
  content: "";
}

.sync-footer.is-online {
  color: #337e66;
}

.sync-footer.is-online::before {
  background: #3da679;
  box-shadow: 0 0 0 3px rgba(61, 166, 121, 0.12);
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow-y: auto;
  padding: 24px;
  place-items: center;
  background: rgba(23, 34, 31, 0.58);
  backdrop-filter: blur(8px);
  animation: fade-in 180ms ease both;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 30px 100px rgba(16, 28, 25, 0.3);
  animation: modal-in 230ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-card--settings {
  width: min(560px, 100%);
}

.modal-card--data {
  width: min(920px, 100%);
}

.modal-card--install {
  width: min(480px, 100%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-header h2 {
  font-size: 24px;
}

.modal-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #faf8f2;
  cursor: pointer;
}

.modal-close:hover {
  background: #eeeae1;
}

.modal-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.entry-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-store {
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf9f4;
}

.entry-store legend {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.entry-store-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f0ede5;
  color: var(--muted);
  font-size: 8px;
}

.entry-store-total strong {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 600;
}

.entry-store-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--store-color);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.field-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-delivery {
  min-width: 0;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #e5e0d6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.entry-group-buy {
  min-width: 0;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid #e5e0d6;
  border-radius: 12px;
  background: #f7f4ee;
}

.entry-group-buy legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 9px;
}

.entry-group-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-group-buy .field {
  margin-top: 0;
}

.entry-delivery legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 9px;
}

.entry-delivery-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-costs {
  min-width: 0;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid #e5e0d6;
  border-radius: 12px;
  background: #f7f3eb;
}

.entry-costs legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 9px;
}

.entry-cost-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-costs .field {
  margin-top: 0;
}

.entry-costs .field input {
  padding-right: 5px;
  padding-left: 21px;
  font-size: 11px;
}

.entry-costs .input-prefix {
  left: 8px;
  font-size: 9px;
}

.entry-fixed-costs {
  min-width: 0;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid #dfe5e8;
  border-radius: 12px;
  background: #f0f4f5;
}

.entry-fixed-costs legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 9px;
}

.entry-fixed-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-fixed-costs .field {
  margin-top: 0;
}

.entry-fixed-costs .field input {
  padding-right: 5px;
  padding-left: 21px;
  font-size: 11px;
}

.entry-fixed-costs .input-prefix {
  left: 8px;
  font-size: 9px;
}

.entry-delivery .field {
  margin-top: 0;
}

.entry-delivery .field input {
  padding-right: 6px;
  padding-left: 22px;
  font-size: 11px;
}

.entry-delivery .input-prefix {
  left: 9px;
  font-size: 10px;
}

.entry-target {
  margin-top: 14px;
}

.field label {
  color: var(--muted);
  font-size: 9px;
}

.input-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #a09e97;
  font-family: var(--font-number);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd8ce;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 560;
}

.field input[data-has-prefix] {
  padding-left: 27px;
}

.field input:hover {
  border-color: #cbc4b6;
}

.field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(39, 119, 107, 0.1);
}

.entry-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.entry-total strong {
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 21px;
  font-weight: 550;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.modal-footer-links,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.modal-footer--settings {
  justify-content: flex-end;
}

.settings-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-visual {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f4ec;
}

.install-visual img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(31, 48, 43, 0.14);
}

.install-visual > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.install-visual strong {
  font-size: 14px;
  font-weight: 680;
}

.install-visual span {
  color: var(--muted);
  font-size: 9px;
}

.install-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange) !important;
  font-size: 8px !important;
  white-space: nowrap;
}

.install-steps {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.install-step {
  display: grid;
  align-items: center;
  gap: 11px;
  padding: 13px 1px;
  grid-template-columns: 28px 1fr;
  border-bottom: 1px solid var(--line-soft);
}

.install-step:last-child {
  border-bottom: 0;
}

.install-step span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 700;
}

.install-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.settings-row {
  display: grid;
  align-items: end;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbf9f4;
  grid-template-columns: 1fr 160px;
}

.settings-row .field {
  margin-top: 0;
}

.settings-row-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 28px;
  bottom: 28px;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 16px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: var(--ink);
  box-shadow: 0 15px 45px rgba(25, 37, 33, 0.22);
  color: white;
  font-size: 11px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

@media (max-width: 1080px) {
  .app-shell {
    width: min(100% - 40px, 1020px);
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1.45fr) minmax(255px, 0.68fr);
  }

  .hero-main {
    padding-right: 28px;
    padding-left: 30px;
  }

  .hero-footer {
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, auto));
  }

  .sparkline-wrap {
    display: none;
  }

  .total-sales-row strong {
    font-size: clamp(54px, 7vw, 76px);
  }

  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 28px, 760px);
    padding-top: 18px;
  }

  .topbar {
    align-items: center;
  }

  .brand-copy small,
  .status-pill,
  .icon-button {
    display: none;
  }

  .mobile-install-button {
    display: grid;
  }

  .date-switcher .today-button {
    display: none;
  }

  .primary-button {
    padding: 0 14px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 365px;
  }

  .hero-aside {
    margin-top: 0;
  }

  .share-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .share-row {
    padding: 13px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
  }

  .share-row:last-child {
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .aside-callout {
    margin-top: 12px;
  }

  .store-grid,
  .lower-grid,
  .cost-layout {
    grid-template-columns: 1fr;
  }

  .profit-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-top: 29px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-cost-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-fixed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100% - 20px);
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .top-actions {
    display: grid;
    width: 100%;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }

  .date-switcher {
    width: 100%;
    min-width: 0;
    height: 40px;
  }

  .date-arrow {
    width: 26px;
  }

  .date-display {
    flex: 1;
    min-width: 107px;
    padding: 0 3px;
  }

  .date-display span {
    font-size: 8px;
  }

  .date-display strong {
    font-size: 11px;
  }

  .primary-button {
    width: 40px;
    height: 40px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 0;
  }

  .mobile-install-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .primary-button svg {
    width: 16px;
    height: 16px;
  }

  .demo-notice {
    width: 100%;
    margin: 14px 0;
    border-radius: 13px;
  }

  .demo-notice p {
    font-size: 9px;
    line-height: 1.5;
  }

  .demo-notice button {
    flex: 0 0 auto;
  }

  .hero-panel {
    border-radius: 22px;
  }

  .hero-main {
    min-height: 350px;
    padding: 25px 20px 23px;
  }

  .hero-topline {
    gap: 12px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .live-mark {
    display: none;
  }

  .total-sales-row {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
  }

  .total-sales-row strong {
    font-size: clamp(49px, 16vw, 65px);
  }

  .currency-mark {
    padding-bottom: 7px;
    font-size: 22px;
  }

  .trend-chip {
    min-height: 23px;
    margin: 2px 0 0 8px;
    padding: 0 7px;
  }

  .goal-block {
    margin-top: 24px;
  }

  .goal-labels {
    gap: 7px;
    font-size: 8px;
  }

  .goal-labels span:nth-child(2) {
    display: none;
  }

  .hero-footer {
    gap: 14px;
    padding-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .share-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-footer-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-aside {
    margin: 0 10px 10px;
    padding: 18px 15px;
  }

  .aside-heading {
    padding-bottom: 12px;
  }

  .share-row {
    padding: 11px 9px;
  }

  .share-row-top strong {
    font-size: 12px;
  }

  .share-store span:last-child {
    font-size: 9px;
  }

  .aside-callout {
    padding: 9px;
  }

  .section-heading {
    align-items: flex-start;
    margin: 26px 1px 13px;
  }

  .section-heading h1 {
    font-size: 20px;
  }

  .section-heading p {
    display: none;
  }

  .store-card {
    padding: 20px 17px 17px;
    border-radius: 18px;
  }

  .store-card::before {
    right: 17px;
    left: 17px;
  }

  .store-sales {
    margin-top: 19px;
  }

  .store-sales strong {
    font-size: 39px;
  }

  .store-mid {
    margin-top: 19px;
  }

  .store-mini-chart {
    width: 95px;
  }

  .trend-panel,
  .insight-panel {
    padding: 19px 16px;
    border-radius: 18px;
  }

  .purchase-panel,
  .labor-panel,
  .attendance-panel,
  .fixed-cost-panel {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .attendance-panel .panel-heading {
    flex-wrap: wrap;
    gap: 8px;
  }

  .attendance-legend {
    padding-top: 0;
  }

  .fixed-cost-store-grid {
    grid-template-columns: 1fr;
  }

  .cost-category-grid {
    gap: 7px;
  }

  .cost-category {
    padding: 10px;
  }

  .monthly-food-head > strong {
    font-size: 21px;
  }

  .monthly-food-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-store-row {
    grid-template-columns: auto 1fr;
  }

  .cost-store-detail {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cost-store-row > strong {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .commission-box {
    grid-template-columns: 1fr;
  }

  .profit-panel {
    gap: 15px;
    padding: 19px 16px;
  }

  .profit-heading > strong {
    font-size: 28px;
  }

  .profit-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profit-flow .profit-operator {
    display: none;
  }

  .profit-flow .profit-final {
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    grid-column: 1 / -1;
  }

  .profit-store-grid {
    grid-template-columns: 1fr;
  }

  .profit-store-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-profit-panel {
    padding: 19px 16px;
    border-radius: 18px;
  }

  .monthly-profit-total strong {
    font-size: 21px;
  }

  .monthly-profit-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-profit-flow > span {
    display: none;
  }

  .monthly-profit-result {
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    grid-column: 1 / -1;
  }

  .monthly-profit-store-grid {
    grid-template-columns: 1fr;
  }

  .monthly-profit-store-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profit-55-block {
    padding: 13px;
  }

  .profit-55-head {
    gap: 10px;
  }

  .profit-55-total strong {
    font-size: 20px;
  }

  .profit-55-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profit-55-flow > span {
    display: none;
  }

  .profit-55-result {
    padding-top: 9px;
    border-top: 1px solid #dce8e1;
    grid-column: 1 / -1;
  }

  .profit-55-store-grid {
    grid-template-columns: 1fr;
  }

  .profit-55-store-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-trend-panel {
    padding: 19px 16px;
    border-radius: 18px;
  }

  .group-buy-panel {
    padding: 19px 16px;
    border-radius: 18px;
  }

  .delivery-trend-grid {
    grid-template-columns: 1fr;
  }

  .delivery-chart-legend {
    gap: 8px;
  }

  .panel-heading {
    gap: 10px;
  }

  .panel-heading h2 {
    font-size: 17px;
  }

  .chart-legend {
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
    font-size: 8px;
  }

  .chart-summary {
    flex-wrap: wrap;
    gap: 6px;
  }

  .chart-summary strong {
    font-size: 21px;
  }

  .chart-summary .chart-change {
    margin-left: 0;
  }

  .bar-chart {
    height: 164px;
    gap: 7px;
  }

  .bar {
    width: min(10px, 27%);
  }

  .modal-backdrop {
    padding:
      max(9px, env(safe-area-inset-top))
      9px
      max(9px, env(safe-area-inset-bottom));
    place-items: end center;
  }

  .modal-card {
    max-height: calc(100vh - 18px);
    padding: 21px 16px;
    border-radius: 22px;
  }

  .modal-header h2 {
    font-size: 21px;
  }

  .entry-store {
    padding: 14px;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-footer-links,
  .modal-actions {
    width: 100%;
  }

  .modal-actions > button {
    flex: 1;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .page-footer {
    padding-top: 22px;
  }

  .toast {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
