:root {
  --ink: #17352e;
  --ink-2: #23473d;
  --jade: #2f6d5f;
  --jade-soft: #dce9e4;
  --jade-pale: #edf4f0;
  --paper: #f4f1ea;
  --surface: #fffdf9;
  --surface-2: #ebe7df;
  --text: #202522;
  --muted: #68716d;
  --line: #dedbd3;
  --coral: #c96c52;
  --coral-soft: #f4dfd7;
  --gold: #d5ad66;
  --gold-soft: #f2e8d2;
  --danger: #b94d49;
  --shadow: 0 14px 36px rgba(28, 52, 45, .08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --sidebar: 236px;
  --font-display: STZhongsong, SimSun, serif;
  --font-body: "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-data: "DIN Alternate", Bahnschrift, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--paper); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, .nav-item, .filter-chip { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(201, 108, 82, .48); outline-offset: 3px; }

.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); background: var(--paper); }
.auth-story { position: relative; min-height: 100dvh; padding: clamp(32px, 6vw, 84px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #f9f6ee; background: var(--ink); }
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.auth-brand .brand-mark { flex: 0 0 auto; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-family: var(--font-display); font-size: 25px; letter-spacing: 5px; }
.auth-brand small { margin-top: 3px; color: #aebeb8; font-size: 10px; letter-spacing: 3px; }
.auth-copy { position: relative; z-index: 2; max-width: 650px; margin: clamp(80px, 12vh, 150px) 0 auto; }
.auth-copy > span { color: #d8c28f; font-size: 12px; font-weight: 700; letter-spacing: 4px; }
.auth-copy h1 { margin: 18px 0 22px; font-family: var(--font-display); font-size: clamp(38px, 5.2vw, 70px); line-height: 1.18; letter-spacing: 2px; }
.auth-copy p { max-width: 560px; margin: 0; color: #b8c7c2; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.9; }
.auth-points { position: relative; z-index: 2; margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; }
.auth-points span { padding: 8px 13px; color: #c7d2ce; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 999px; font-size: 11px; }
.auth-atmosphere { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-atmosphere::after { content: ""; position: absolute; right: -8%; bottom: -28%; width: 68%; aspect-ratio: 1; border: 1px solid rgba(214,194,145,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(214,194,145,.025), 0 0 0 150px rgba(214,194,145,.018); }
.auth-atmosphere i { position: absolute; bottom: -16%; width: 9%; height: 82%; border: 1px solid rgba(214,194,145,.15); border-radius: 58% 58% 44% 44%; transform-origin: bottom; }
.auth-atmosphere i:nth-child(1) { left: 8%; transform: rotate(-17deg); }
.auth-atmosphere i:nth-child(2) { left: 31%; height: 94%; transform: rotate(7deg); }
.auth-atmosphere i:nth-child(3) { right: 22%; height: 88%; transform: rotate(-9deg); }
.auth-atmosphere i:nth-child(4) { right: -2%; transform: rotate(18deg); }
.auth-panel { min-height: 100dvh; padding: 48px clamp(24px, 6vw, 90px); display: grid; align-content: center; justify-items: center; }
.auth-card { width: min(100%, 470px); padding: clamp(26px, 4vw, 42px); background: var(--surface); border: 1px solid rgba(28,53,46,.09); border-radius: 28px; box-shadow: 0 28px 80px rgba(28,52,45,.12); }
.auth-card-head h2 { margin: 6px 0 7px; font-family: var(--font-display); font-size: 30px; letter-spacing: 1px; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-tabs { margin: 25px 0 22px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; background: #eeebe4; border-radius: 13px; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.auth-tabs button.active { color: var(--ink); background: var(--surface); box-shadow: 0 4px 13px rgba(28,52,45,.08); }
.auth-form { display: grid; gap: 16px; }
.auth-form > label:not(.remember-check) > span { display: block; margin-bottom: 7px; color: #4f5b56; font-size: 12px; font-weight: 700; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 0 14px; color: var(--text); background: #fff; border: 1px solid #d7d8d2; border-radius: 12px; outline: 0; }
.auth-form input:not([type="checkbox"]):focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(47,109,95,.11); }
.auth-form input::placeholder { color: #929a96; }
.password-input { position: relative; }
.password-input input { padding-right: 64px !important; }
.password-input button { position: absolute; inset: 4px 5px 4px auto; min-width: 52px; border: 0; border-radius: 9px; color: var(--jade); background: transparent; font-size: 12px; font-weight: 700; }
.password-input button:hover { background: var(--jade-pale); }
.remember-check { min-height: 32px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; cursor: pointer; }
.remember-check input { width: 18px; height: 18px; accent-color: var(--jade); }
.auth-submit { min-height: 50px; border: 0; border-radius: 13px; color: #fff; background: var(--jade); box-shadow: 0 9px 22px rgba(47,109,95,.2); font-weight: 700; }
.auth-submit:hover { background: #285e53; }
.auth-submit:disabled { cursor: wait; opacity: .58; }
.auth-help { margin: -3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.auth-message { margin-top: 17px; padding: 11px 13px; color: #8e3936; background: #fae9e7; border: 1px solid #edcbc7; border-radius: 11px; font-size: 12px; }
.auth-message[data-tone="info"] { color: #275d51; background: var(--jade-pale); border-color: #cddfd8; }
.auth-security { width: min(100%, 470px); margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); padding: 26px 18px 20px; display: flex; flex-direction: column; color: #f6f2e9; background: var(--ink); border-right: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand strong { display: block; font-family: var(--font-display); font-size: 21px; letter-spacing: 3px; }
.brand small { display: block; margin-top: 1px; color: #aebeb8; font-size: 11px; letter-spacing: 2px; }
.brand-mark { position: relative; width: 38px; height: 42px; }
.brand-mark span { position: absolute; bottom: 2px; width: 8px; height: 38px; border: 1.6px solid #d6c291; border-radius: 70% 70% 45% 45%; transform-origin: bottom; }
.brand-mark span:nth-child(1) { left: 5px; transform: rotate(-18deg); }
.brand-mark span:nth-child(2) { left: 15px; height: 41px; }
.brand-mark span:nth-child(3) { left: 25px; transform: rotate(18deg); }
.demo-flag { margin: 30px 10px 18px; color: #b8c7c2; font-size: 12px; }
.demo-flag span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(213,173,102,.12); }
.nav-list { display: grid; gap: 6px; }
.nav-item { min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; color: #b9c7c2; background: transparent; text-align: left; transition: background .2s ease, color .2s ease; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item span { flex: 1; }
.nav-item b { min-width: 24px; padding: 2px 7px; color: #d8e2de; background: rgba(255,255,255,.08); border-radius: 999px; font-family: var(--font-data); font-size: 11px; text-align: center; }
.nav-item em { color: #d9c490; font-size: 10px; font-style: normal; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: var(--ink-2); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-foot { margin-top: auto; }
.sidebar .text-button { width: 100%; justify-content: flex-start; color: #99aba5; padding: 9px 11px; font-size: 12px; }
.user-mini { margin-top: 8px; padding: 14px 10px 4px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--ink); background: #d6c291; font-weight: 700; }
.user-mini div { flex: 1; }
.user-mini strong, .user-mini small { display: block; }
.user-mini strong { font-size: 13px; }
.user-mini small { margin-top: 2px; color: #99aaa4; font-size: 11px; }
.user-mini svg { width: 18px; color: #879b94; }

.main { min-height: 100vh; margin-left: var(--sidebar); padding: 28px 32px 48px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.topbar p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.topbar h1 { margin: 0; font-family: var(--font-display); font-size: 30px; letter-spacing: 1px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-box, .compact-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; transition: border .2s ease, background .2s ease; }
.search-box { width: min(27vw, 310px); height: 44px; padding: 0 13px; }
.search-box:focus-within, .compact-search:focus-within { background: #fff; border-color: var(--jade); }
.search-box svg, .compact-search svg { flex: 0 0 auto; width: 18px; color: var(--muted); }
.search-box input, .compact-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder, .compact-search input::placeholder { color: #8f9894; }
.button { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; white-space: nowrap; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button svg { width: 17px; }
.button.primary { color: #fff; background: var(--jade); box-shadow: 0 7px 18px rgba(47,109,95,.18); }
.button.primary:hover { background: #285e53; box-shadow: 0 10px 24px rgba(47,109,95,.24); }
.button.secondary { color: var(--jade); background: rgba(255,255,255,.72); border-color: #bacdc5; }
.button.secondary:hover { background: #fff; border-color: var(--jade); }
.button.ghost { color: var(--muted); background: transparent; }
.button.ghost:hover { background: var(--surface-2); }
.icon-button { position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); }
.icon-button:hover { background: #fff; border-color: #bfcac5; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--coral); }
.text-button { min-height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: var(--jade); border: 0; background: transparent; }
.text-button:hover { text-decoration: underline; }
.text-button svg { width: 15px; }

.view { display: none; animation: reveal .28s ease both; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.pulse-panel { position: relative; min-height: 324px; padding: 42px 45px; display: grid; grid-template-columns: 1fr 290px; align-items: center; overflow: hidden; color: #f7f4ed; background: var(--ink); border-radius: 28px; box-shadow: var(--shadow); }
.pulse-copy { position: relative; z-index: 2; max-width: 760px; }
.overline { color: #7d8985; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.overline.light { color: #aebfba; }
.pulse-copy h2 { margin: 10px 0 9px; font-family: var(--font-display); font-size: clamp(34px, 4vw, 54px); font-weight: 700; letter-spacing: 2px; }
.pulse-copy > p { margin: 0; color: #bdcbc6; font-size: 15px; }
.pulse-stats { margin-top: 38px; display: grid; grid-template-columns: repeat(3, minmax(135px, 1fr)); }
.pulse-stats > div { padding: 0 27px; border-left: 1px solid rgba(255,255,255,.14); }
.pulse-stats > div:first-child { padding-left: 0; border-left: 0; }
.pulse-stats span, .pulse-stats small { display: block; color: #aabbb5; }
.pulse-stats span { font-size: 12px; }
.pulse-stats strong { display: block; margin: 6px 0 2px; color: #fff; font-family: var(--font-data); font-size: 27px; letter-spacing: .5px; }
.pulse-stats small { font-size: 11px; }
.pulse-visual { position: relative; width: 238px; height: 238px; display: grid; place-items: center; justify-self: end; }
.pulse-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pulse-track, .pulse-progress, .pulse-inner { fill: none; }
.pulse-track { stroke: rgba(255,255,255,.11); stroke-width: 8; }
.pulse-progress { stroke: var(--gold); stroke-width: 8; stroke-dasharray: 371 516; stroke-linecap: round; }
.pulse-inner { stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 2 8; }
.pulse-wave { fill: none; stroke: #d8c28f; stroke-width: 2; opacity: .55; transform: rotate(90deg); transform-origin: center; }
.pulse-visual div { position: relative; z-index: 1; text-align: center; }
.pulse-visual strong, .pulse-visual span { display: block; }
.pulse-visual strong { font-family: var(--font-data); font-size: 40px; }
.pulse-visual span { color: #aebfba; font-size: 12px; }
.follicle-lines { position: absolute; inset: 0; opacity: .12; }
.follicle-lines i { position: absolute; bottom: -60px; width: 130px; height: 330px; border: 1px solid #d6c291; border-radius: 50%; }
.follicle-lines i:nth-child(1) { left: -40px; transform: rotate(-16deg); }
.follicle-lines i:nth-child(2) { left: 90px; bottom: -150px; height: 410px; transform: rotate(9deg); }
.follicle-lines i:nth-child(3) { right: 370px; bottom: -200px; height: 500px; transform: rotate(-10deg); }
.follicle-lines i:nth-child(4) { right: 210px; bottom: -130px; height: 390px; transform: rotate(15deg); }
.follicle-lines i:nth-child(5) { right: -45px; bottom: -80px; transform: rotate(-8deg); }

.dashboard-grid { margin-top: 22px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.panel { background: var(--surface); border: 1px solid rgba(28,53,46,.08); border-radius: var(--radius-lg); box-shadow: 0 9px 26px rgba(28,53,46,.045); }
.schedule-panel, .attention-panel, .staff-snapshot, .ranking-panel, .rule-panel, .revenue-chart-card, .payment-card, .category-panel { padding: 25px 27px; }
.panel-head, .table-tools, .report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-head h3, .table-tools h3 { margin: 4px 0 0; font-size: 18px; }
.panel-head .count-badge { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--coral); background: var(--coral-soft); font-family: var(--font-data); font-weight: 700; }
.schedule-list { margin-top: 20px; }
.schedule-item { min-height: 64px; display: grid; grid-template-columns: 57px 1fr auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.schedule-item:first-child { border-top: 0; }
.schedule-time { font-family: var(--font-data); font-weight: 700; }
.schedule-person strong, .schedule-person span { display: block; }
.schedule-person span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.done { color: #2e6d5e; background: var(--jade-pale); }
.status.active { color: #996f24; background: var(--gold-soft); }
.status.wait { color: #7b7772; background: #eeece7; }
.status.cancel { color: var(--danger); background: #f7e4e2; }
.attention-list { margin-top: 17px; display: grid; }
.attention-list button { min-height: 70px; padding: 9px 0; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 11px; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; }
.attention-list button:first-child { border-top: 0; }
.attention-list button:hover strong { color: var(--jade); }
.attention-list strong, .attention-list small { display: block; }
.attention-list strong { font-size: 13px; }
.attention-list small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.attention-list svg { width: 16px; color: #a3aaa6; }
.attention-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-family: var(--font-display); font-weight: 700; }
.attention-icon.coral { color: var(--coral); background: var(--coral-soft); }
.attention-icon.gold { color: #916c2f; background: var(--gold-soft); }
.attention-icon.jade { color: var(--jade); background: var(--jade-soft); }
.staff-snapshot { margin-top: 22px; }
.staff-snapshot-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.staff-mini { padding: 18px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 15px; }
.staff-mini .avatar { width: 38px; height: 38px; color: #fff; background: var(--jade); }
.staff-mini:nth-child(2) .avatar { background: #8c765a; }
.staff-mini:nth-child(3) .avatar { background: var(--coral); }
.staff-mini:nth-child(4) .avatar { background: #6b7888; }
.staff-mini strong, .staff-mini small { display: block; }
.staff-mini small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.staff-mini b { font-family: var(--font-data); font-size: 16px; }

.summary-strip { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: var(--surface); border: 1px solid rgba(28,53,46,.08); border-radius: 20px; }
.summary-strip > div { padding: 22px 25px; border-left: 1px solid var(--line); }
.summary-strip > div:first-child { border-left: 0; }
.summary-strip span, .summary-strip small, .summary-strip strong { display: block; }
.summary-strip span { color: var(--muted); font-size: 12px; }
.summary-strip strong { margin: 7px 0 2px; font-family: var(--font-data); font-size: 26px; }
.summary-strip small { color: #8a918e; font-size: 11px; }
.table-panel { overflow: hidden; }
.table-tools { padding: 24px 25px; border-bottom: 1px solid var(--line); }
.table-tools h3 { margin-top: 0; }
.table-tools p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.compact-search { width: 230px; height: 40px; padding: 0 11px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 18px; color: #727d78; background: #f2f0ea; font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
td { padding: 16px 18px; border-top: 1px solid #ebe8e1; white-space: nowrap; }
tbody tr:first-child td { border-top: 0; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: #faf8f3; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell .avatar { width: 32px; height: 32px; color: #fff; background: var(--jade); font-size: 12px; }
.person-cell strong, .person-cell small { display: block; }
.person-cell small { color: var(--muted); font-size: 10px; }
.source-tag { padding: 4px 8px; color: #765b2d; background: var(--gold-soft); border-radius: 6px; font-size: 10px; }
.money { font-family: var(--font-data); font-weight: 700; }
.filter-row { margin-bottom: 17px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); }
.filter-chip:hover, .filter-chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }

.ranking-panel { margin-bottom: 22px; }
.plain-note { color: var(--muted); font-size: 11px; }
.staff-ranking { margin-top: 23px; display: grid; gap: 5px; }
.rank-row { min-height: 72px; display: grid; grid-template-columns: 32px 150px 1fr 95px 80px; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.rank-row:first-child { border-top: 0; }
.rank-index { font-family: var(--font-data); font-size: 17px; color: #8e938f; }
.rank-index.top { color: var(--coral); font-weight: 700; }
.rank-person { display: flex; align-items: center; gap: 9px; }
.rank-person .avatar { width: 35px; height: 35px; color: #fff; background: var(--jade); font-size: 12px; }
.rank-person strong, .rank-person small { display: block; }
.rank-person small { color: var(--muted); font-size: 10px; }
.rank-bar { height: 8px; overflow: hidden; background: #e8e8e2; border-radius: 999px; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--jade), #79a393); border-radius: inherit; }
.rank-value { font-family: var(--font-data); font-weight: 700; text-align: right; }
.rank-orders { color: var(--muted); font-size: 11px; text-align: right; }
.rule-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 4px solid var(--gold); }
.rule-panel h3 { margin: 5px 0; }
.rule-panel p { margin: 0; max-width: 800px; color: var(--muted); font-size: 12px; }

.report-toolbar { margin-bottom: 17px; }
.segmented { display: inline-flex; padding: 4px; background: #e6e3dc; border-radius: 12px; }
.segmented button { min-height: 36px; padding: 0 15px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(20,40,34,.08); font-weight: 700; }
.report-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.revenue-chart { height: 280px; margin-top: 20px; }
.revenue-chart svg { width: 100%; height: 100%; overflow: visible; }
.legend { display: flex; gap: 13px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i, .payment-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.jade-dot, .p1 { background: var(--jade); }
.gold-dot, .p2 { background: var(--gold); }
.donut-wrap { min-height: 270px; display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 24px; }
.donut { width: 164px; height: 164px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--jade) 0 52%, var(--gold) 52% 76%, var(--coral) 76% 92%, #7e8c88 92% 100%); }
.donut::before { content: ""; width: 108px; height: 108px; grid-area: 1 / 1; border-radius: 50%; background: var(--surface); }
.donut div { position: relative; grid-area: 1 / 1; text-align: center; }
.donut strong, .donut span { display: block; }
.donut strong { font-family: var(--font-data); font-size: 20px; }
.donut span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.payment-legend { display: grid; gap: 13px; }
.payment-legend span { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.payment-legend b { color: var(--text); font-family: var(--font-data); }
.payment-legend .p3 { background: var(--coral); }
.payment-legend .p4 { background: #7e8c88; }
.category-panel { margin-top: 22px; }
.category-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.category-grid div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.category-grid span { color: var(--muted); font-size: 11px; }
.category-grid strong { font-family: var(--font-data); font-size: 14px; }
.category-grid i { grid-column: 1 / -1; height: 7px; overflow: hidden; background: #e8e7e1; border-radius: 999px; }
.category-grid b { display: block; height: 100%; background: var(--jade); border-radius: inherit; }

.empty-state { min-height: 610px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--surface); border: 1px dashed #bdc9c4; border-radius: 28px; }
.empty-state h2 { margin: 14px 0 8px; font-family: var(--font-display); font-size: 31px; }
.empty-state p { max-width: 530px; margin: 0 20px 22px; color: var(--muted); }
.inventory-illustration { position: relative; width: 116px; height: 102px; margin-bottom: 28px; display: grid; place-items: center; color: var(--jade); background: var(--jade-pale); border-radius: 30px 30px 46px 46px; }
.inventory-illustration svg { width: 54px; height: 54px; }
.inventory-illustration span { position: absolute; top: -18px; width: 1px; height: 45px; background: var(--gold); border-radius: 50%; }
.inventory-illustration span:first-of-type { left: 38px; transform: rotate(-20deg); }
.inventory-illustration span:last-of-type { right: 38px; transform: rotate(20deg); }

.mobile-nav { display: none; }
.dialog { width: min(690px, calc(100vw - 30px)); padding: 0; color: var(--text); background: var(--surface); border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(12,31,25,.28); }
.dialog::backdrop { background: rgba(14,31,26,.5); backdrop-filter: blur(5px); }
.dialog form > header { padding: 24px 26px 18px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 26px; }
.dialog .icon-button { background: transparent; }
.form-grid { padding: 24px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px 18px; }
.form-grid label { display: block; }
.form-grid label > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); background: #fff; border: 1px solid #cccfc9; border-radius: 10px; outline: 0; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(47,109,95,.12); }
.form-grid input.invalid, .form-grid select.invalid { border-color: var(--danger); }
.field-error { min-height: 16px; display: block; margin-top: 4px; color: var(--danger); font-size: 10px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.money-input input { padding-left: 29px; }
.dialog footer { padding: 17px 26px 23px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 100; right: 28px; bottom: 28px; min-height: 48px; max-width: min(390px, calc(100vw - 32px)); padding: 10px 17px; display: flex; align-items: center; gap: 10px; color: #fff; background: var(--ink); border-radius: 13px; box-shadow: 0 16px 40px rgba(17,44,36,.28); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .22s ease, transform .22s ease; }
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 18px; color: #d9c690; }
.quick-dialog { width: min(430px, calc(100vw - 28px)); padding: 0; color: var(--text); background: var(--surface); border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(12,31,25,.28); }
.quick-dialog::backdrop { background: rgba(14,31,26,.5); backdrop-filter: blur(5px); }
.quick-sheet > header { padding: 22px 22px 17px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.quick-sheet h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 23px; }
.quick-sheet .icon-button { background: transparent; }
.quick-options { padding: 12px 18px 20px; display: grid; gap: 5px; }
.quick-options > button { min-height: 72px; padding: 10px 7px; display: grid; grid-template-columns: 42px 1fr 20px; grid-template-rows: auto auto; align-items: center; gap: 0 11px; color: var(--text); text-align: left; border: 0; border-radius: 14px; background: transparent; }
.quick-options > button:hover { background: var(--jade-pale); }
.quick-options > button > span { width: 42px; height: 42px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--jade); background: var(--jade-soft); border-radius: 13px; }
.quick-options > button > span svg { width: 21px; }
.quick-options > button > strong { align-self: end; font-size: 14px; }
.quick-options > button > small { align-self: start; color: var(--muted); font-size: 11px; }
.quick-options > button > svg { grid-column: 3; grid-row: 1 / 3; width: 16px; color: #87918d; }

@media (max-width: 1180px) {
  :root { --sidebar: 205px; }
  .main { padding: 24px; }
  .top-actions .secondary { display: none; }
  .pulse-panel { grid-template-columns: 1fr 220px; padding: 37px; }
  .pulse-visual { width: 205px; height: 205px; }
  .staff-snapshot-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1.2fr 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .payment-legend { width: 100%; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --sidebar: 82px; }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; padding: 0; }
  .brand > div:last-child, .demo-flag, .nav-item span, .nav-item b, .nav-item em, .sidebar .text-button, .user-mini div, .user-mini > svg { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .user-mini { justify-content: center; padding-inline: 0; }
  .pulse-panel { grid-template-columns: 1fr 180px; }
  .pulse-stats > div { padding-inline: 14px; }
  .dashboard-grid, .report-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { min-height: auto; align-items: flex-start; margin-bottom: 17px; }
  .topbar p { display: none; }
  .topbar h1 { font-size: 25px; }
  .top-actions { gap: 7px; }
  .search-box, .top-actions > .icon-button, .top-actions .button { display: none; }
  .top-actions::after { content: "云端同步"; padding: 6px 9px; color: #275d51; background: var(--jade-pale); border-radius: 999px; font-size: 10px; }
  .pulse-panel { min-height: 440px; padding: 27px 23px; grid-template-columns: 1fr; align-content: start; border-radius: 23px; }
  .pulse-copy h2 { margin-top: 7px; font-size: 35px; }
  .pulse-copy > p { font-size: 13px; line-height: 1.7; }
  .pulse-stats { margin-top: 26px; grid-template-columns: 1fr 1fr; }
  .pulse-stats > div { padding: 0 13px; }
  .pulse-stats > div:nth-child(2) { border-left: 1px solid rgba(255,255,255,.14); }
  .pulse-stats > div:nth-child(3) { display: none; }
  .pulse-visual { position: absolute; right: 12px; bottom: -28px; width: 176px; height: 176px; opacity: .78; }
  .pulse-visual div { transform: scale(.82); }
  .dashboard-grid { margin-top: 14px; gap: 14px; }
  .panel { border-radius: 19px; }
  .schedule-panel, .attention-panel, .staff-snapshot, .ranking-panel, .rule-panel, .revenue-chart-card, .payment-card, .category-panel { padding: 20px; }
  .panel-head h3 { font-size: 16px; }
  .schedule-item { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .staff-snapshot { margin-top: 14px; }
  .staff-snapshot-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .staff-mini { padding: 12px; grid-template-columns: 34px 1fr; }
  .staff-mini .avatar { width: 32px; height: 32px; }
  .staff-mini b { grid-column: 2; font-size: 14px; }
  .summary-strip { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
  .summary-strip > div { padding: 17px; border-top: 1px solid var(--line); }
  .summary-strip > div:nth-child(1), .summary-strip > div:nth-child(2) { border-top: 0; }
  .summary-strip > div:nth-child(3) { border-left: 0; }
  .summary-strip strong { font-size: 22px; }
  .table-tools { padding: 18px; align-items: flex-start; }
  .table-tools p { max-width: 230px; }
  .compact-search { display: none; }
  th, td { padding-inline: 14px; }
  .rank-row { min-height: 78px; grid-template-columns: 25px 1fr 72px; gap: 8px; }
  .rank-bar { grid-column: 2 / -1; grid-row: 2; margin-bottom: 10px; }
  .rank-orders { display: none; }
  .rule-panel { align-items: flex-start; flex-direction: column; }
  .report-toolbar { align-items: stretch; flex-direction: column; }
  .report-toolbar .button { width: 100%; }
  .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .revenue-chart { height: 220px; overflow-x: auto; }
  .donut-wrap { grid-template-columns: 150px 1fr; }
  .donut { width: 140px; height: 140px; }
  .donut::before { width: 92px; height: 92px; }
  .payment-legend { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .empty-state { min-height: 520px; }
  .mobile-nav { position: fixed; z-index: 40; inset: auto 0 0; min-height: 70px; padding: 7px 15px calc(7px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,253,249,.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-nav button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #78827e; border: 0; background: transparent; font-size: 10px; }
  .mobile-nav button.active { color: var(--jade); font-weight: 700; }
  .mobile-nav svg { width: 20px; height: 20px; }
  .mobile-nav .mobile-create { width: 52px; height: 52px; min-height: 52px; align-self: center; justify-self: center; color: #fff; background: var(--jade); border-radius: 50%; box-shadow: 0 8px 20px rgba(47,109,95,.28); }
  .mobile-nav .mobile-create svg { width: 24px; height: 24px; }
  .dialog { max-height: calc(100vh - 20px); overflow-y: auto; border-radius: 18px; }
  .form-grid { padding: 20px; grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .dialog form > header { padding: 20px; }
  .dialog footer { position: sticky; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); }
  .dialog footer .button { flex: 1; }
  .quick-dialog { width: calc(100vw - 24px); margin-bottom: calc(78px + env(safe-area-inset-bottom)); border-radius: 20px; }
  .toast { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .pulse-panel { min-height: 454px; }
  .pulse-stats strong { font-size: 23px; }
  .staff-snapshot-grid, .category-grid { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; }
}

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

/* V2：以顾客到店、项目次卡和角色隔离为核心 */
.role-staff .owner-only { display: none !important; }
.role-owner .staff-only { display: none !important; }
.muted { color: var(--muted); }
.plain-note { color: var(--muted); font-size: 12px; }
.cell-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.button.danger { color: #fff; background: var(--danger); box-shadow: 0 7px 18px rgba(185,77,73,.18); }
.button.danger:hover { background: #a9413e; }
.button.light { color: var(--ink); background: #f3e5c7; }
.button.light:hover { background: #fff0d0; }
.icon-button.subtle { width: 36px; height: 36px; color: var(--danger); background: transparent; border-color: transparent; }
.back-button { min-height: 42px; margin: 0 0 16px; padding: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--jade); border: 0; background: transparent; font-weight: 700; }
.back-button:hover { text-decoration: underline; }
.back-button svg { width: 18px; }

.arrival-hero { min-height: 330px; padding: 42px 46px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 36px; overflow: hidden; color: #f8f5ed; background: radial-gradient(circle at 78% 0%, rgba(213,173,102,.17), transparent 30%), var(--ink); border-radius: 28px; box-shadow: var(--shadow); }
.arrival-copy h2 { margin: 8px 0 3px; font-family: var(--font-display); font-size: clamp(36px, 4vw, 53px); letter-spacing: 2px; }
.arrival-copy > p { margin: 0; color: #b5c5bf; font-size: 13px; }
.arrival-metrics { margin-top: 38px; display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); }
.arrival-metrics > div { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.14); }
.arrival-metrics > div:first-child { padding-left: 0; border-left: 0; }
.arrival-metrics span, .arrival-metrics strong { display: block; }
.arrival-metrics span { color: #aebfba; font-size: 12px; }
.arrival-metrics strong { margin-top: 5px; color: #fff; font-family: var(--font-data); font-size: 31px; }
.arrival-visual { text-align: center; }
.arrival-ring { --rate: 0deg; position: relative; width: 218px; height: 218px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) var(--rate), rgba(255,255,255,.11) 0); }
.arrival-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.arrival-ring div { position: relative; z-index: 1; }
.arrival-ring strong, .arrival-ring span { display: block; }
.arrival-ring strong { font-family: var(--font-data); font-size: 42px; }
.arrival-ring span { color: #b5c5bf; font-size: 12px; }
.arrival-legend { margin-top: 17px; display: flex; justify-content: center; gap: 17px; color: #b5c5bf; font-size: 11px; }
.arrival-legend i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--gold); }
.arrival-legend span:last-child i { background: rgba(255,255,255,.28); }
.owner-finance-row { min-height: 82px; margin: 14px 0; padding: 14px 24px; display: grid; grid-template-columns: 180px 180px 1fr; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.owner-finance-row > div { padding-right: 24px; border-right: 1px solid var(--line); }
.owner-finance-row span, .owner-finance-row strong { display: block; }
.owner-finance-row span { color: var(--muted); font-size: 11px; }
.owner-finance-row strong { margin-top: 2px; font-family: var(--font-data); font-size: 21px; }
.owner-finance-row .text-button { justify-self: end; }

.table-action-group { display: flex; align-items: center; gap: 8px; }
.clickable-row { cursor: pointer; transition: background .18s ease; }
.clickable-row:hover, .clickable-row:focus { background: var(--jade-pale); outline: 0; }
.row-chevron { width: 17px; color: #809089; }
.person-cell > span:last-child { min-width: 0; }
.person-cell > span:last-child strong, .person-cell > span:last-child small { display: block; }
.person-cell > span:last-child small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.source-tag { padding: 4px 8px; color: var(--jade); background: var(--jade-pale); border-radius: 999px; font-size: 11px; white-space: nowrap; }

.customer-profile-head { min-height: 130px; padding: 24px 27px; display: grid; grid-template-columns: 68px minmax(0,1fr) auto auto; align-items: center; gap: 18px; color: #fff; background: var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.profile-avatar { width: 64px; height: 64px; display: grid; place-items: center; color: var(--ink); background: var(--gold); border-radius: 50%; font-family: var(--font-display); font-size: 26px; }
.customer-profile-head h2, .customer-profile-compact h2 { margin: 2px 0; font-family: var(--font-display); font-size: 28px; }
.customer-profile-head p, .customer-profile-compact p { margin: 0; color: #bac8c3; font-size: 12px; }
.profile-status { min-width: 170px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.profile-status strong, .profile-status span { display: block; }
.profile-status strong { color: #f0dfb7; }
.profile-status span { margin-top: 4px; color: #bac8c3; font-size: 11px; }
.detail-grid { margin-top: 15px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 15px; }
.detail-card, .detail-section { padding: 24px; }
.detail-section { margin-top: 15px; }
.profile-fields { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 17px 24px; }
.profile-fields > div.wide { grid-column: 1 / -1; }
.profile-fields dt { color: var(--muted); font-size: 11px; }
.profile-fields dd { margin: 3px 0 0; }
.hobby-list { min-height: 77px; margin: 18px 0 12px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 8px; }
.hobby-chip { min-height: 31px; padding: 4px 5px 4px 11px; display: inline-flex; align-items: center; gap: 3px; color: var(--jade); background: var(--jade-pale); border: 1px solid #d1e2db; border-radius: 999px; font-size: 12px; }
.hobby-chip button { width: 25px; height: 25px; padding: 0; display: grid; place-items: center; color: #71857d; border: 0; background: transparent; }
.hobby-chip svg { width: 13px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { width: 100%; min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.pass-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pass-card { position: relative; min-height: 150px; padding: 19px; overflow: hidden; background: linear-gradient(145deg, #f8f1df, #fffaf0); border: 1px solid #e6d8b9; border-radius: 16px; }
.pass-card h4 { margin: 5px 0 2px; font-size: 15px; }
.pass-card small { color: #806f50; font-size: 10px; }
.pass-count { position: absolute; right: 18px; top: 18px; text-align: right; }
.pass-count strong { font-family: var(--font-data); font-size: 29px; }
.pass-count span { color: #806f50; font-size: 11px; }
.pass-progress { position: absolute; inset: auto 19px 18px; height: 5px; overflow: hidden; background: rgba(128,111,80,.16); border-radius: 99px; }
.pass-progress i { height: 100%; display: block; background: var(--gold); border-radius: inherit; }
.visit-preview { margin-top: 12px; }
.visit-preview article { min-height: 68px; padding: 12px 5px; display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 15px; border-top: 1px solid var(--line); }
.visit-preview article:first-child { border-top: 0; }
.visit-preview strong, .visit-preview small { display: block; }
.visit-preview small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.visit-date { color: var(--muted); font-family: var(--font-data); font-size: 12px; }
.visit-consumption { text-align: right; }
.empty-inline { min-height: 70px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.empty-inline.large { min-height: 180px; }
.customer-profile-compact { margin-bottom: 14px; padding: 20px 24px; display: flex; align-items: center; gap: 15px; color: #fff; background: var(--ink); border-radius: 20px; }
.customer-profile-compact .profile-avatar { width: 52px; height: 52px; font-size: 21px; }
.visit-timeline { padding: 16px 26px; }
.visit-timeline article { position: relative; min-height: 102px; padding: 20px 0 20px 145px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.visit-timeline article:last-child { border-bottom: 0; }
.visit-timeline time { position: absolute; left: 25px; top: 42px; color: var(--muted); font-family: var(--font-data); font-size: 12px; }
.timeline-dot { position: absolute; left: 119px; top: 43px; width: 10px; height: 10px; background: var(--gold); border: 3px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--gold); }
.timeline-dot::after { content: ""; position: absolute; left: 1px; top: 13px; width: 1px; height: 76px; background: var(--line); }
.visit-timeline article:last-child .timeline-dot::after { display: none; }
.visit-timeline h3 { margin: 0 0 4px; font-size: 15px; }
.visit-timeline p, .visit-timeline small { display: block; margin: 0; color: var(--muted); font-size: 11px; }

.catalog-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 15px; }
.category-nav { height: fit-content; padding: 20px 12px; }
.category-nav > div { padding: 0 10px 15px; }
.category-nav h3 { margin: 3px 0; font-family: var(--font-display); font-size: 20px; }
.category-nav button { width: 100%; min-height: 43px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); border: 0; border-radius: 10px; background: transparent; text-align: left; }
.category-nav button.active { color: var(--jade); background: var(--jade-pale); font-weight: 700; }
.category-nav button b { min-width: 23px; padding: 2px 6px; background: rgba(47,109,95,.08); border-radius: 999px; font-size: 10px; text-align: center; }
.commission-tag { display: inline-block; margin: 2px; padding: 3px 7px; color: #806130; background: var(--gold-soft); border-radius: 999px; font-size: 10px; white-space: nowrap; }
.commission-editor { padding: 14px; background: var(--jade-pale); border-radius: 12px; }
.commission-head { display: flex; align-items: center; justify-content: space-between; }
.commission-editor > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.commission-row { margin-top: 8px; display: grid; grid-template-columns: 1fr 100px 18px 40px; align-items: center; gap: 7px; }
.commission-row .icon-button { width: 38px; height: 38px; background: transparent; }
.stock-visual { min-width: 270px; }
.stock-meta { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stock-meta strong { color: var(--text); font-family: var(--font-data); font-size: 14px; }
.stock-visual > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.stock-status { padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.stock-status.good { color: #256052; background: var(--jade-pale); }
.stock-status.medium { color: #7a632d; background: var(--gold-soft); }
.stock-status.low { color: #9a552e; background: #f8e7d9; }
.stock-status.empty { color: var(--danger); background: #fae8e5; }
.stock-track { height: 9px; overflow: hidden; background: #e7e5df; border-radius: 999px; box-shadow: inset 0 1px 2px rgba(24,49,41,.09); }
.stock-track.empty { background: var(--danger); }
.stock-track i { display: block; height: 100%; min-width: 0; background: hsl(var(--stock-hue) 54% 39%); border-radius: inherit; transition: width .28s ease, background-color .28s ease; }
.stock-actions { min-width: 245px; display: grid; grid-template-columns: 70px 1fr 1fr; align-items: center; gap: 6px; }
.stock-actions input { width: 70px; min-height: 44px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.stock-actions input:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(47,109,95,.12); }
.stock-actions button { min-height: 44px; padding: 0 11px; color: var(--jade); background: var(--jade-pale); border: 1px solid #d2dfda; border-radius: 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.stock-actions button[data-stock-action="out"] { color: #985733; background: #fbefe7; border-color: #ead5c8; }
.linked-stock-log { margin-top: 15px; }
.inventory-table table { min-width: 1030px; }
.text-stat { font-family: var(--font-body) !important; font-size: 17px !important; }

.record-shortcuts { margin-bottom: 15px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.record-shortcuts > button { min-height: 116px; padding: 18px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; align-items: center; gap: 3px 11px; color: var(--text); text-align: left; border: 1px solid rgba(28,53,46,.08); }
.record-shortcuts > button:hover { border-color: #bacdc5; box-shadow: 0 12px 28px rgba(28,53,46,.08); }
.record-shortcuts > button > span { width: 42px; height: 42px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--jade); background: var(--jade-pale); border-radius: 13px; font-family: var(--font-data); font-size: 20px; font-weight: 700; }
.record-shortcuts svg { width: 20px; }
.record-shortcuts strong, .record-shortcuts small { display: block; }
.record-shortcuts strong { align-self: end; font-size: 14px; }
.record-shortcuts small { align-self: start; color: var(--muted); font-size: 10px; }
.table-link { min-height: 40px; padding: 0; color: var(--jade); background: transparent; border: 0; font-weight: 700; }
.table-link:hover { text-decoration: underline; }

.item-expense-list { margin-top: 12px; }
.item-expense-list article { min-height: 67px; padding: 11px 4px; display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 15px; border-top: 1px solid var(--line); }
.item-expense-list article:first-child { border-top: 0; }
.item-expense-list time { color: var(--muted); font-family: var(--font-data); font-size: 12px; }
.item-expense-list strong, .item-expense-list small { display: block; }
.item-expense-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.item-expense-list b { color: #985733; font-family: var(--font-data); font-size: 13px; }
.rest-tag { padding: 5px 10px; color: #795e2e; background: var(--gold-soft); border-radius: 999px; font-size: 11px; font-weight: 700; }
.schedule-staff.is-resting { background: #f5ead6; }
.schedule-staff.is-resting small { color: #875f24; font-weight: 700; }
.rest-notice { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #765a28; background: var(--gold-soft); border: 1px solid #e4d5b6; border-radius: 13px; }
.rest-notice strong, .rest-notice small { display: block; }
.rest-notice small { font-size: 10px; }
.form-grid select:disabled { color: #53615c; background: #f0eee8; cursor: not-allowed; }

.finance-summary { min-height: 155px; margin-bottom: 15px; padding: 27px 30px; display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: center; gap: 28px; color: #fff; background: var(--ink); border-radius: 24px; }
.finance-summary > div:not(:first-child) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.13); }
.finance-summary span, .finance-summary strong, .finance-summary small { display: block; }
.finance-summary span, .finance-summary small { color: #afc0ba; font-size: 11px; }
.finance-summary strong { margin: 4px 0; font-family: var(--font-data); font-size: 24px; }
.finance-main strong { color: #f1ddb1; font-size: 35px; }
.expense { color: var(--danger); }
.trash-toolbar { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.trash-list { padding: 0 23px; }
.trash-list article { min-height: 86px; display: grid; grid-template-columns: 43px 1fr 175px auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.trash-list article:last-child { border-bottom: 0; }
.trash-list strong, .trash-list small { display: block; }
.trash-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.trash-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--danger); background: #faece9; border-radius: 11px; }
.trash-icon svg { width: 18px; }
.confirm-dialog { width: min(410px, calc(100vw - 28px)); padding: 0; color: var(--text); background: var(--surface); border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(12,31,25,.28); }
.confirm-dialog::backdrop { background: rgba(14,31,26,.5); backdrop-filter: blur(5px); }
.confirm-dialog > div { padding: 28px; text-align: center; }
.confirm-icon { width: 52px; height: 52px; margin: 0 auto 13px; display: grid; place-items: center; color: var(--danger); background: #faece9; border-radius: 50%; }
.confirm-dialog h2 { margin: 0; font-family: var(--font-display); font-size: 23px; }
.confirm-dialog p { margin: 8px 0 21px; color: var(--muted); font-size: 12px; }
.confirm-dialog footer { display: flex; justify-content: center; gap: 8px; }

@media (max-width: 1180px) {
  .arrival-hero { grid-template-columns: minmax(0,1fr) 230px; padding: 36px; }
  .arrival-ring { width: 190px; height: 190px; }
  .arrival-metrics > div { padding-inline: 14px; }
  .pass-grid { grid-template-columns: 1fr 1fr; }
  .finance-summary { grid-template-columns: repeat(3,1fr); }
  .finance-summary .button { grid-column: 1 / -1; width: fit-content; }
}

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 280px; padding: 30px 28px; }
  .auth-copy { margin: 54px 0 0; }
  .auth-copy h1 { margin: 12px 0 15px; font-size: clamp(32px, 8vw, 48px); }
  .auth-points { display: none; }
  .auth-panel { min-height: auto; padding: 28px 20px 46px; }
  .auth-card { margin-top: -55px; position: relative; z-index: 3; }
  .arrival-hero { grid-template-columns: minmax(0,1fr) 180px; padding: 30px; }
  .arrival-ring { width: 164px; height: 164px; }
  .arrival-metrics { grid-template-columns: 1fr 1fr; row-gap: 15px; }
  .arrival-metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .customer-profile-head { grid-template-columns: 58px 1fr auto; }
  .customer-profile-head .button { grid-column: 2 / -1; justify-self: start; }
  .detail-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .category-nav { padding: 14px; display: flex; align-items: center; gap: 5px; overflow-x: auto; }
  .category-nav > div { min-width: 150px; padding: 0 8px; }
  .category-nav button { width: auto; min-width: 90px; justify-content: center; gap: 9px; }
  .record-shortcuts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .auth-story { min-height: 250px; padding: 24px 20px; }
  .auth-brand strong { font-size: 21px; }
  .auth-copy { margin-top: 38px; }
  .auth-copy h1 { font-size: 33px; line-height: 1.22; }
  .auth-copy p { display: none; }
  .auth-panel { padding: 20px 14px 36px; }
  .auth-card { margin-top: -42px; padding: 25px 20px; border-radius: 22px; }
  .auth-card-head h2 { font-size: 26px; }
  .arrival-hero { min-height: 455px; padding: 26px 22px; grid-template-columns: 1fr; align-content: start; gap: 18px; border-radius: 23px; }
  .arrival-copy h2 { font-size: 34px; }
  .arrival-metrics { margin-top: 25px; }
  .arrival-visual { position: absolute; right: 17px; top: 277px; }
  .arrival-ring { width: 140px; height: 140px; }
  .arrival-ring strong { font-size: 30px; }
  .arrival-legend { display: none; }
  .owner-finance-row { padding: 13px 17px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .owner-finance-row > div { padding-right: 10px; }
  .owner-finance-row .text-button { grid-column: 1 / -1; justify-self: start; min-height: 28px; }
  .table-action-group { width: 100%; flex-wrap: wrap; }
  .table-action-group .compact-search { display: flex; width: 100%; order: -1; }
  .table-action-group .button { flex: 1; }
  .customer-profile-head { padding: 21px; grid-template-columns: 52px 1fr; gap: 13px; }
  .profile-avatar { width: 52px; height: 52px; font-size: 21px; }
  .customer-profile-head h2 { font-size: 24px; }
  .profile-status { grid-column: 1 / -1; min-width: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .customer-profile-head .button { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .detail-card, .detail-section { padding: 19px; }
  .profile-fields { grid-template-columns: 1fr; }
  .profile-fields > div.wide { grid-column: auto; }
  .inline-form { flex-direction: column; }
  .inline-form input { min-height: 44px; }
  .pass-grid { grid-template-columns: 1fr; }
  .visit-preview article { grid-template-columns: 88px 1fr; }
  .visit-consumption { grid-column: 2; text-align: left; }
  .visit-timeline { padding: 10px 18px; }
  .visit-timeline article { padding: 72px 0 20px 26px; grid-template-columns: 1fr; }
  .visit-timeline time { left: 27px; top: 22px; }
  .timeline-dot { left: 2px; top: 26px; }
  .timeline-dot::after { height: 120px; }
  .catalog-layout { gap: 12px; }
  .category-nav { margin-inline: -14px; border-radius: 0; }
  .category-nav > div { display: none; }
  .commission-row { grid-template-columns: minmax(0,1fr) 75px 15px 38px; }
  .record-shortcuts { gap: 9px; }
  .record-shortcuts > button { min-height: 108px; padding: 14px; grid-template-columns: 36px 1fr; gap: 3px 9px; }
  .record-shortcuts > button > span { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
  .item-expense-list article { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
  .item-expense-list article b { grid-column: 2; }
  .rest-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
  .finance-summary { padding: 23px; grid-template-columns: 1fr 1fr; gap: 21px 12px; }
  .finance-summary > div:not(:first-child) { padding-left: 12px; }
  .finance-main { grid-column: 1 / -1; }
  .finance-summary .button { width: 100%; }
  .trash-toolbar { align-items: stretch; flex-direction: column; }
  .trash-toolbar .back-button { margin-bottom: 0; }
  .trash-toolbar .segmented { grid-template-columns: 1fr 1fr; }
  .trash-list { padding: 0 17px; }
  .trash-list article { padding: 16px 0; grid-template-columns: 40px 1fr; }
  .trash-list article > span:nth-of-type(2), .trash-list article .button { grid-column: 2; }
  .trash-list article .button { width: fit-content; }
  .confirm-dialog > div { padding: 24px 20px; }
}

@media (max-width: 390px) {
  .arrival-hero { min-height: 470px; }
  .arrival-visual { top: 294px; }
  .arrival-metrics strong { font-size: 26px; }
  .owner-finance-row { grid-template-columns: 1fr; }
  .owner-finance-row > div { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .record-shortcuts { grid-template-columns: 1fr; }
}

/* V3：资料编辑、条件结算与统一回收站 */
[hidden] { display: none !important; }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.compact-button { min-height: 38px; padding-inline: 12px; font-size: 12px; }
.panel-actions, .row-actions, .record-actions { display: flex; align-items: center; gap: 8px; }
.row-actions .row-chevron { flex: 0 0 auto; }
.record-actions { margin-top: 8px; }
.record-actions button { min-height: 34px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--jade); background: transparent; border: 0; border-radius: 8px; font-size: 11px; }
.record-actions button:hover { background: var(--jade-pale); }
.record-actions button.danger-text { color: var(--danger); }
.record-actions button.danger-text:hover { background: #faece9; }
.record-actions svg { width: 15px; height: 15px; }
.card-use-panel { grid-column: 1 / -1; padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; background: var(--jade-pale); border: 1px solid #d6e4de; border-radius: 13px; }
.card-use-panel > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.visit-preview article { grid-template-columns: 105px minmax(0, 1fr) auto auto; }
.customer-profile-compact .light-button { margin-left: auto; color: var(--ink); background: #fff; border-color: rgba(255,255,255,.35); }
.trash-tabs { flex-wrap: wrap; }

@media (max-width: 880px) {
  .visit-preview article { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .visit-preview .record-actions { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .panel-head { align-items: flex-start; }
  .panel-actions { align-items: flex-end; flex-direction: column; gap: 2px; }
  .panel-actions .text-button { min-height: 34px; }
  .card-use-panel { grid-template-columns: 1fr; }
  .card-use-panel > small { grid-column: auto; }
  .visit-preview article { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .visit-preview .visit-consumption, .visit-preview .record-actions { grid-column: 2; }
  .record-actions button { min-height: 42px; }
  .customer-profile-compact { align-items: flex-start; flex-wrap: wrap; }
  .customer-profile-compact .light-button { width: 100%; margin-left: 0; }
  .trash-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

/* V4：全店共享预约时间表 */
.schedule-day-head { min-height: 152px; margin-bottom: 15px; padding: 27px 30px; display: grid; grid-template-columns: minmax(0,1fr) 170px auto; align-items: center; gap: 26px; color: #fff; background: var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.schedule-day-head h2 { margin: 5px 0 2px; font-family: var(--font-display); font-size: 31px; letter-spacing: 1px; }
.schedule-day-head p { margin: 0; color: #afc0ba; font-size: 12px; }
.schedule-day-head label > span { display: block; margin-bottom: 6px; color: #afc0ba; font-size: 11px; }
.schedule-day-head input { width: 100%; min-height: 44px; padding: 0 11px; color: var(--text); background: #fff; border: 0; border-radius: 10px; }
.schedule-day-stats { display: flex; align-items: center; gap: 8px; }
.schedule-day-stats > span { min-width: 74px; padding: 10px 12px; color: #bfd0ca; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; font-size: 10px; text-align: center; }
.schedule-day-stats strong { display: block; margin-top: 2px; color: #fff; font-family: var(--font-data); font-size: 19px; }
.schedule-board { overflow-x: auto; }
.schedule-board-grid { min-width: 900px; display: grid; grid-template-columns: 82px repeat(var(--staff-count), minmax(190px, 1fr)); }
.schedule-corner, .schedule-staff { min-height: 74px; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #eeece6; border-bottom: 1px solid var(--line); }
.schedule-corner { color: var(--muted); font-size: 11px; }
.schedule-staff { border-left: 1px solid var(--line); }
.schedule-staff .avatar { width: 34px; height: 34px; }
.schedule-staff strong, .schedule-staff small { display: block; }
.schedule-staff small { color: var(--muted); font-size: 9px; font-weight: 400; }
.schedule-time-cell { min-height: 118px; padding: 18px 10px; color: var(--ink); background: #f7f5f0; border-bottom: 1px solid var(--line); font-family: var(--font-data); font-size: 13px; font-weight: 700; text-align: center; }
.schedule-slot { min-height: 118px; padding: 9px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.schedule-card { min-height: 96px; padding: 12px; border: 1px solid #d7e4df; border-left: 4px solid var(--jade); border-radius: 11px; background: var(--jade-pale); }
.schedule-card.wait { border-color: #e4e2dc; border-left-color: #9ca39f; background: #f6f5f2; }
.schedule-card.active { border-color: #ead8af; border-left-color: var(--gold); background: #fbf5e8; }
.schedule-card + .schedule-card { margin-top: 7px; }
.schedule-card > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.schedule-card strong { min-width: 0; font-size: 13px; }
.schedule-card .status { padding: 3px 6px; font-size: 9px; }
.schedule-card p { margin: 7px 0 2px; color: var(--text); font-size: 11px; }
.schedule-card small { color: var(--muted); font-size: 10px; }
.schedule-mobile-list { display: none; }

@media (max-width: 1024px) {
  .schedule-day-head { grid-template-columns: 1fr 160px; }
  .schedule-day-stats { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .schedule-day-head { min-height: 0; padding: 22px; grid-template-columns: 1fr; gap: 17px; border-radius: 20px; }
  .schedule-day-head h2 { font-size: 27px; }
  .schedule-day-stats { grid-column: auto; display: grid; grid-template-columns: repeat(3,1fr); }
  .schedule-day-stats > span { min-width: 0; }
  .schedule-board { display: none; }
  .schedule-mobile-list { display: grid; gap: 10px; }
  .schedule-time-group { padding: 16px; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; }
  .schedule-time-group > time { padding-top: 10px; color: var(--ink); font-family: var(--font-data); font-size: 15px; font-weight: 700; }
  .schedule-time-group .schedule-card { min-height: 92px; }
}
