/* ============================================================
   餐饮工作台 · 墨夜（ink-night）
   深色玻璃拟态 + 琥珀金。四色语义：金=主 / 朱红=危险 / 青绿=成功 / 橙=警示
   变量名与业务代码保持一致，改主题只需改这里
   ============================================================ */
:root {
  /* 底与层：暖黑，四级递进，保留"层"而不是一坨黑 */
  --bg: #0e0f12;
  --bg-2: #131419;
  --surface: rgba(255, 255, 255, .042);
  --surface-2: #1a1c22;
  --surface-3: #22242b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);

  /* 文字 */
  --ink: #f2f1ed;
  --ink-2: #9c9ca6;
  --ink-3: #6a6a74;

  /* 语义色：--brand 即主色，琥珀金 */
  --brand: #f5b84b;
  --brand-2: #ffd67e;
  --brand-ink: #1a1206;
  --brand-soft: rgba(245, 184, 75, .13);
  --brand-line: rgba(245, 184, 75, .32);

  --red: #ff6157;
  --red-soft: rgba(255, 97, 87, .13);
  --green: #35d08a;
  --green-soft: rgba(53, 208, 138, .13);
  --amber: #ff9f45;
  --amber-soft: rgba(255, 159, 69, .13);

  --r-lg: 18px;
  --r: 12px;
  --r-sm: 9px;

  /* 玻璃质感：内高光 + 外投影 */
  --glass: linear-gradient(177deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .07);
  --sh: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 10px 28px -14px rgba(0, 0, 0, .75);
  --sh-up: 0 -10px 34px -12px rgba(0, 0, 0, .8);
  --glow-gold: 0 0 0 1px rgba(245, 184, 75, .22), 0 8px 30px -10px rgba(245, 184, 75, .45);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overscroll-behavior-y: none;
  min-height: 100vh;
  position: relative;
}
/* 两团极淡的辉光，给深底一点空气感 */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(680px 420px at 8% -6%, rgba(245, 184, 75, .10), transparent 62%),
    radial-gradient(620px 420px at 104% 32%, rgba(53, 208, 138, .055), transparent 60%),
    radial-gradient(760px 560px at 50% 108%, rgba(255, 97, 87, .045), transparent 62%);
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(245, 184, 75, .28); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- 图标 ---------- */
.ic { display: inline-grid; place-items: center; flex: none; }
.ic svg { width: 20px; height: 20px; display: block; }
.ic.sm svg { width: 15px; height: 15px; }
.ic.lg svg { width: 26px; height: 26px; }
.ic.xl svg { width: 34px; height: 34px; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14, 15, 18, .72);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 720px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 58%, #d99a2b);
  color: var(--brand-ink); display: grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(245, 184, 75, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.mark svg { width: 20px; height: 20px; }
.top-t { flex: 1; min-width: 0; }
.top-t b {
  display: block; font-size: 16.5px; font-weight: 640; letter-spacing: -.3px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 门店 · 姓名 · 角色 必须单行，否则顶栏会被撑成三四行 */
.top-t .sub {
  display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}
.top-t .sub i { font-style: normal; opacity: .35; }
.top-t .sub .lk { cursor: pointer; color: var(--brand); font-weight: 600; }
.top-t .sub span { flex: none; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: .16s;
}
.icon-btn:active { transform: scale(.93); color: var(--brand); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh);
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.pill b { color: var(--ink); font-weight: 600; }

/* ---------- 主体 ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 112px; position: relative; z-index: 1; }
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh); margin-bottom: 13px; overflow: hidden;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; }
.card-h h3 {
  flex: 1; font-size: 14.5px; font-weight: 600; letter-spacing: -.1px;
  display: flex; align-items: center; gap: 7px; color: var(--ink);
}
.card-h h3 .ic { color: #83838e; }
.card-h .lnk { font-size: 12.5px; color: var(--brand); cursor: pointer; font-weight: 500; white-space: nowrap; }
.card-h .lnk:active { opacity: .6; }
.card-b { padding: 7px 16px 15px; }
.card.flush .card-b { padding: 5px 0 7px; }

/* 入场：淡入 + 上浮，卡片级联 */
.wrap > * { animation: rise .34s cubic-bezier(.22, .8, .3, 1) both; }
.wrap > *:nth-child(1) { animation-delay: .02s; }
.wrap > *:nth-child(2) { animation-delay: .06s; }
.wrap > *:nth-child(3) { animation-delay: .1s; }
.wrap > *:nth-child(4) { animation-delay: .14s; }
.wrap > *:nth-child(5) { animation-delay: .18s; }
.wrap > *:nth-child(n + 6) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 13px; }
.kpi {
  background: var(--glass); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--sh);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 13px 8px 12px; text-align: center; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .18s cubic-bezier(.22, .8, .3, 1), border-color .18s;
}
.kpi:active { transform: scale(.96); }
.kpi .v {
  font-size: 24px; font-weight: 700; letter-spacing: -.9px; line-height: 1.1;
  background: linear-gradient(178deg, var(--brand-2), var(--brand) 72%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi .k { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: .1px; }
.kpi.ok .v { background: linear-gradient(178deg, #7ef0be, var(--green) 72%); -webkit-background-clip: text; background-clip: text; }
.kpi.warn .v { background: linear-gradient(178deg, #ffc182, var(--amber) 72%); -webkit-background-clip: text; background-clip: text; }
.kpi.bad .v { background: linear-gradient(178deg, #ff9d96, var(--red) 72%); -webkit-background-clip: text; background-clip: text; }
.kpi::after {
  content: ''; position: absolute; inset: auto 22% 0 22%; height: 2px; border-radius: 2px;
  background: var(--line-2); transition: .2s;
}
.kpi.ok::after { background: var(--green); box-shadow: 0 0 10px var(--green); }
.kpi.warn::after { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.kpi.bad::after { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------- 时段轨 ---------- */
.rail { display: flex; gap: 8px; overflow-x: auto; padding: 13px 16px 15px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.ph {
  flex: 0 0 88px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px;
  text-align: center; background: rgba(255, 255, 255, .022); cursor: pointer; transition: .18s cubic-bezier(.22, .8, .3, 1);
}
.ph:active { transform: scale(.96); }
.ph .n { font-size: 11px; color: var(--ink-3); letter-spacing: .2px; }
.ph .v { font-size: 19px; font-weight: 700; letter-spacing: -.5px; margin: 2px 0; color: var(--ink); }
.ph .d { font-size: 10px; color: var(--ink-3); }
.ph .bar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 7px; overflow: hidden; }
.ph .bar i { display: block; height: 100%; background: var(--brand); border-radius: 2px; transition: width .5s cubic-bezier(.22, .8, .3, 1); }
.ph.done .v { color: var(--green); } .ph.done .bar i { background: var(--green); }
.ph.late .v { color: var(--red); } .ph.late .bar i { background: var(--red); }
.ph.now { border-color: var(--brand-line); background: var(--brand-soft); box-shadow: var(--glow-gold); }
.ph.now .n { color: var(--brand); font-weight: 600; }
.ph.now .v { color: var(--brand-2); }

/* ---------- 行 ---------- */
.row {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; cursor: pointer;
  border-top: 1px solid var(--line); position: relative; transition: background .15s;
}
.row:first-child { border-top: none; }
.row:active { background: rgba(255, 255, 255, .035); }
.row .bd { flex: 1; min-width: 0; }
.row .t { font-size: 14.5px; font-weight: 560; letter-spacing: -.1px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row .m { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.row .m.dim { color: var(--ink-3); }
.row .rt { text-align: right; flex: none; }
.row .rt b { font-size: 15px; font-weight: 660; letter-spacing: -.3px; white-space: nowrap; }
.row .rt s { display: block; font-size: 11px; color: var(--ink-3); text-decoration: none; margin-top: 2px; }
.row.static { cursor: default; } .row.static:active { background: none; }
.row .lead { color: var(--ink-3); margin-top: 3px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .1px;
  background: rgba(255, 255, 255, .05); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag.red { background: var(--red-soft); color: var(--red); border-color: rgba(255, 97, 87, .22); }
.tag.amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 159, 69, .22); }
.tag.green { background: var(--green-soft); color: var(--green); border-color: rgba(53, 208, 138, .22); }
.tag.brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.tag.solid {
  background: linear-gradient(160deg, #ff7a70, var(--red)); color: #fff; border-color: transparent;
  font-weight: 640; box-shadow: 0 2px 10px -3px rgba(255, 97, 87, .7);
}
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--red); flex: none; }

/* ---------- 筛选 chips ---------- */
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 520;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: .16s;
}
.chip:active { transform: scale(.95); }
.chip.on {
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 70%); color: var(--brand-ink);
  border-color: transparent; font-weight: 620; box-shadow: 0 3px 12px -4px rgba(245, 184, 75, .6);
}
.chip .n { opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip.on .n { opacity: .72; }

/* ---------- 分段控件 ---------- */
.seg { display: flex; gap: 3px; background: rgba(0, 0, 0, .3); padding: 3px; border-radius: 12px; border: 1px solid var(--line); }
.seg div {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-size: 13.5px;
  font-weight: 550; color: var(--ink-2); cursor: pointer; transition: .18s cubic-bezier(.22, .8, .3, 1);
}
.seg div.on { background: linear-gradient(150deg, var(--brand-2), var(--brand) 72%); color: var(--brand-ink); font-weight: 640; box-shadow: 0 3px 12px -5px rgba(245, 184, 75, .7); }

/* ---------- 底部导航 ---------- */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(17, 18, 22, .86);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--line); box-shadow: var(--sh-up);
}
.nav-in { max-width: 720px; margin: 0 auto; display: flex; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); }
.nav-i {
  flex: 1; text-align: center; padding: 5px 0; border-radius: 11px; cursor: pointer; position: relative;
  color: #8b8b96; font-size: 10.5px; transition: .18s cubic-bezier(.22, .8, .3, 1);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.nav-i .ic { transition: transform .2s cubic-bezier(.22, .8, .3, 1); }
.nav-i.on { color: var(--brand); }
.nav-i.on .ic { transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 0 8px rgba(245, 184, 75, .5)); }
.nav-i:active .ic { transform: scale(.9); }
.nav-i .b {
  position: absolute; top: -1px; left: 50%; margin-left: 7px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #16171c; line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 97, 87, .3), 0 2px 8px -2px rgba(255, 97, 87, .7);
}
.nav-i .b.zero { display: none; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 25;
  width: 54px; height: 54px; border-radius: 18px; border: none;
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 62%, #dc9c2c);
  color: var(--brand-ink); font-size: 24px; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 26px -8px rgba(245, 184, 75, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
  animation: breathe 3.4s ease-in-out infinite;
}
.fab:active { transform: scale(.9); animation: none; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 8px 26px -8px rgba(245, 184, 75, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
  50% { box-shadow: 0 8px 34px -6px rgba(245, 184, 75, .78), inset 0 1px 0 rgba(255, 255, 255, .5); }
}

/* ---------- 按钮 ---------- */
.btn {
  padding: 11px 16px; border-radius: 12px; border: 1px solid transparent;
  background: rgba(255, 255, 255, .085); color: var(--ink); font-weight: 560;
  cursor: pointer; transition: transform .14s, opacity .14s, filter .14s; letter-spacing: -.1px;
  text-align: center; text-decoration: none; display: inline-grid; place-items: center;
}
.btn:active { transform: scale(.975); opacity: .88; }
.btn:disabled { opacity: .34; pointer-events: none; }
.btn.brand {
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 68%); color: var(--brand-ink);
  font-weight: 640; box-shadow: 0 4px 16px -6px rgba(245, 184, 75, .6);
}
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border-color: var(--line-2); }
.btn.soft { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.btn.warn { background: linear-gradient(150deg, #ffb673, var(--amber) 70%); color: #2a1400; font-weight: 640; }
.btn.danger { background: linear-gradient(150deg, #ff8079, var(--red) 70%); color: #fff; font-weight: 640; box-shadow: 0 4px 16px -6px rgba(255, 97, 87, .6); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btns { display: flex; gap: 8px; }
.btns .btn { flex: 1; }

/* ---------- 底部面板 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(4, 5, 7, .68); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .26s;
}
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #1d1f26, #14151a 62%);
  border-top: 1px solid var(--line-2);
  border-radius: 22px 22px 0 0; max-height: 92vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.32, .76, 0, 1);
  box-shadow: 0 -18px 60px -14px rgba(0, 0, 0, .85);
}
.mask.on .sheet { transform: translateY(0); }
.sh-h { padding: 9px 18px 12px; border-bottom: 1px solid var(--line); flex: none; }
.sh-h .grab { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); margin: 0 auto 11px; }
.sh-h .ttl { display: flex; align-items: center; gap: 10px; }
.sh-h .ttl b { flex: 1; font-size: 16.5px; font-weight: 650; letter-spacing: -.3px; }
.sh-h .ttl s {
  width: 27px; height: 27px; border-radius: 9px; background: rgba(255, 255, 255, .055);
  display: grid; place-items: center; color: var(--ink-3); text-decoration: none; font-size: 15px; cursor: pointer;
}
.sh-b { padding: 15px 18px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sh-f { padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; background: rgba(12, 13, 16, .5); }

/* ---------- 表单 ---------- */
.fl { display: block; font-size: 12px; color: var(--ink-3); margin: 15px 0 6px; letter-spacing: .2px; font-weight: 520; }
.fl:first-child { margin-top: 0; }
input[type=text], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(0, 0, 0, .28); font-size: 15px; transition: border-color .16s, box-shadow .16s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: rgba(0, 0, 0, .4);
  box-shadow: 0 0 0 3px rgba(245, 184, 75, .16);
}
input[readonly] { color: var(--ink-3); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { resize: vertical; min-height: 64px; line-height: 1.55; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 7px; line-height: 1.55; }
.hint.bad { color: var(--red); } .hint.warn { color: var(--amber); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- 巡检逐项 ---------- */
.chk {
  border: 1px solid var(--line); border-radius: 15px; margin-bottom: 9px; overflow: hidden;
  background: rgba(255, 255, 255, .028); transition: border-color .2s, background .2s;
}
.chk.pass { border-color: rgba(53, 208, 138, .38); background: var(--green-soft); }
.chk.fail { border-color: rgba(255, 97, 87, .42); background: var(--red-soft); }
.chk-t { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; }
.chk-t .bd { flex: 1; min-width: 0; }
.chk-t .t { font-size: 14px; font-weight: 560; }
.chk-t .m { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.pick { display: flex; gap: 5px; flex: none; }
.pick b {
  min-width: 42px; text-align: center; padding: 8px 9px; border-radius: 10px; font-size: 12.5px;
  font-weight: 560; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  color: var(--ink-2); cursor: pointer; transition: .16s;
}
.pick b:active { transform: scale(.94); }
.pick b.on { background: linear-gradient(150deg, #5fe0a8, var(--green) 70%); border-color: transparent; color: #04240f; font-weight: 640; box-shadow: 0 3px 12px -5px rgba(53, 208, 138, .8); }
.pick b.on.bad { background: linear-gradient(150deg, #ff8079, var(--red) 70%); color: #fff; box-shadow: 0 3px 12px -5px rgba(255, 97, 87, .8); }
.chk-x { padding: 0 13px 13px; border-top: 1px dashed rgba(255, 255, 255, .11); }
.prog { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 4px 0 12px; }
.prog i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 10px rgba(245, 184, 75, .6); transition: width .3s cubic-bezier(.22, .8, .3, 1);
}

/* ---------- 结算预览 ---------- */
.calc { background: rgba(0, 0, 0, .26); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.calc .r { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); }
.calc .r b { font-size: 16px; font-weight: 660; letter-spacing: -.3px; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc .r.big { border-top: 1px dashed var(--line-2); margin-top: 7px; padding-top: 10px; }
.calc .r.big b { font-size: 22px; background: linear-gradient(178deg, var(--brand-2), var(--brand) 72%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- 日志时间轴 ---------- */
.log { position: relative; padding-left: 20px; }
.log::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--brand-line), var(--line)); }
.log .it { position: relative; padding: 6px 0; }
.log .it::before {
  content: ''; position: absolute; left: -20px; top: 11px; width: 9px; height: 9px; border-radius: 5px;
  background: var(--brand); border: 2px solid #14151a; box-shadow: 0 0 8px rgba(245, 184, 75, .6);
}
.log .it:first-child::before { background: var(--brand-2); }
.log .it b { font-size: 13px; font-weight: 580; }
.log .it .m { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.log .it .d { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-family: var(--mono); letter-spacing: -.2px; }

/* ---------- 图片 ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line-2); }
.up {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 10px 15px; border-radius: 12px;
  border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .03); font-size: 13px;
  color: var(--ink-2); cursor: pointer; transition: .16s;
}
.up:active { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }

/* ---------- 命令面板 ---------- */
.cmdk { position: fixed; inset: 0; z-index: 50; display: none; padding: 11vh 16px 16px; background: rgba(4, 5, 7, .6); backdrop-filter: blur(6px); }
.cmdk.on { display: block; animation: fade .2s both; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.cmdk .bd {
  position: absolute; inset: 11vh 16px auto; max-width: 560px; margin: 0 auto;
  background: linear-gradient(180deg, #1e2027, #15161b);
  border: 1px solid var(--line-2); border-radius: 17px;
  box-shadow: 0 26px 70px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 184, 75, .1);
  overflow: hidden; animation: rise .24s cubic-bezier(.22, .8, .3, 1) both;
}
.cmdk input { border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 16px 18px; font-size: 16px; }
.cmdk input:focus { box-shadow: none; background: none; }
.cmdk .lst { max-height: 46vh; overflow-y: auto; padding: 6px; }
.cmdk .it { padding: 10px 12px; border-radius: 11px; cursor: pointer; display: flex; align-items: center; gap: 11px; }
.cmdk .it .ic { color: var(--ink-3); }
.cmdk .it.on { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-line); }
.cmdk .it.on .ic { color: var(--brand); }
.cmdk .it .bd { flex: 1; min-width: 0; }
.cmdk .it b { font-size: 14px; font-weight: 560; display: block; }
.cmdk .it s { font-size: 11.5px; color: var(--ink-3); text-decoration: none; }
.cmdk .empty2 { padding: 24px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* ---------- 杂项 ---------- */
.empty { padding: 34px 16px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.empty .ic { color: var(--ink-3); opacity: .5; display: block; margin: 0 auto 8px; }
.skel {
  background: linear-gradient(90deg, rgba(255, 255, 255, .035) 25%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .035) 75%);
  background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 9px; height: 14px; margin: 15px 16px;
}
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
#toast {
  position: fixed; left: 50%; top: 68px; transform: translateX(-50%) translateY(-10px); z-index: 60;
  background: rgba(28, 30, 37, .96); color: var(--ink); padding: 11px 17px; border-radius: 13px; font-size: 13.5px;
  max-width: 84%; opacity: 0; pointer-events: none; transition: .26s cubic-bezier(.22, .8, .3, 1);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-2), 0 0 0 3px rgba(245, 184, 75, .06);
  text-align: center; line-height: 1.5; backdrop-filter: blur(12px);
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.sep { height: 1px; background: var(--line); margin: 13px 16px; }
.note {
  padding: 12px 15px; border-radius: 13px; background: var(--amber-soft); color: var(--amber);
  font-size: 12.5px; line-height: 1.55; border: 1px solid rgba(255, 159, 69, .2);
}
.note.brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.note.bad { background: var(--red-soft); color: var(--red); border-color: rgba(255, 97, 87, .22); }
.note b { font-weight: 620; }
.link { color: var(--brand); font-size: 13px; cursor: pointer; font-weight: 520; }

/* ---------- 登录页 ---------- */
#login {
  position: fixed; inset: 0; z-index: 50;
  background:
    radial-gradient(720px 460px at 22% 8%, rgba(245, 184, 75, .14), transparent 60%),
    radial-gradient(660px 460px at 96% 88%, rgba(255, 97, 87, .08), transparent 62%),
    #0b0c0f;
  display: flex; align-items: center; justify-content: center; padding: 28px 24px; overflow-y: auto;
}
#login.off { display: none; }
.lg { width: 100%; max-width: 384px; position: relative; }
.lg-mark {
  width: 54px; height: 54px; border-radius: 17px; margin-bottom: 20px;
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 58%, #d99a2b);
  color: var(--brand-ink); display: grid; place-items: center;
  box-shadow: 0 8px 28px -8px rgba(245, 184, 75, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.lg-mark svg { width: 30px; height: 30px; }
.lg h1 {
  font-size: 30px; font-weight: 700; letter-spacing: -1.1px; margin-bottom: 9px;
  background: linear-gradient(100deg, #fff 18%, var(--brand-2) 96%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lg > p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 28px; }
.lg-demo { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.lg-accts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.lg-accts button {
  text-align: left; padding: 11px 13px; border-radius: 13px;
  background: var(--glass); border: 1px solid var(--line); cursor: pointer; transition: .18s cubic-bezier(.22, .8, .3, 1);
  backdrop-filter: blur(10px);
}
/* 单列时（窄屏）两列会挤在一起 */
@media (max-width: 420px) { .lg-accts { grid-template-columns: 1fr; } }
.lg-accts button:active { transform: scale(.98); background: var(--brand-soft); border-color: var(--brand-line); }
.lg-accts b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.lg-accts s { display: block; font-size: 11px; color: var(--ink-3); text-decoration: none; margin-top: 2px; }
/* ---------- 区域拍照格 ---------- */
.slot-hd { margin: 4px 0 12px; }
.slot-hd b { font-size: 14px; font-weight: 600; display: block; }
.slot-hd span { font-size: 12px; color: var(--ink-3); }
.slot-hd .prog { margin: 8px 0 0; }
.slot {
  border: 1px solid var(--line); border-radius: 15px; padding: 12px 13px; margin-bottom: 9px;
  background: rgba(255, 255, 255, .028); transition: border-color .2s, background .2s;
}
.slot.ok { border-color: rgba(53, 208, 138, .38); background: var(--green-soft); }
.slot.miss { border-color: rgba(255, 97, 87, .35); }
.slot-h { display: flex; align-items: center; gap: 10px; }
.slot-h .bd { flex: 1; min-width: 0; }
.slot-h .t { font-size: 14px; font-weight: 570; }
.slot-h .m { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.slot .thumbs { margin: 9px 0 0; }
.slot .thumbs img { cursor: pointer; }

/* ---------- 督导趋势柱 ---------- */
.trend { display: flex; gap: 7px; align-items: flex-end; padding: 14px 16px 16px; height: 128px; }
.td { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.tb { flex: 1; width: 100%; max-width: 26px; background: var(--line); border-radius: 5px; display: flex; align-items: flex-end; overflow: hidden; }
.tb i { display: block; width: 100%; border-radius: 5px; transition: height .5s cubic-bezier(.22, .8, .3, 1); }
.tl { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tv { font-size: 11px; font-weight: 620; color: var(--ink-2); font-variant-numeric: tabular-nums; }
