/* ═══════════════════════════════════════════════════════════════════
   三角洲俱乐部后台 · 战术作战终端 (Tactical Ops Terminal)
   深色 OLED · 战术琥珀金 · 等宽数据字 · 发丝描边
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* 底层 */
  --bg: #090c12;
  --surface: #10151e;
  --surface-2: #151c28;
  --surface-3: #1b2433;
  --line: #212b3c;
  --line-2: #2c374b;
  --text: #eaf0fa;
  --text-2: #a7b3c7;
  --muted: #667488;
  /* 品牌:战术琥珀金 */
  --amber: #ffab2d;
  --amber-2: #ff8f3c;
  --amber-soft: rgba(255, 171, 45, .12);
  --amber-line: rgba(255, 171, 45, .35);
  /* 语义 */
  --green: #34d3a6; --green-soft: rgba(52, 211, 166, .12);
  --blue: #4f9dff; --blue-soft: rgba(79, 157, 255, .12);
  --red: #ff5c6c; --red-soft: rgba(255, 92, 108, .12);
  --yellow: #ffce5b;
  /* 几何 */
  --r: 10px; --r-sm: 7px; --r-lg: 14px;
  --shadow: 0 12px 34px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .7);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "Consolas", "SF Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -8%, rgba(255, 171, 45, .10), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(79, 157, 255, .06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: var(--amber-soft); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #223; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #2f3b52; background-clip: padding-box; }

/* ── 通用控件 ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 15px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  transition: background .16s, border-color .16s, transform .16s, box-shadow .16s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #1a1205; border: none; font-weight: 600;
  box-shadow: 0 6px 18px -6px rgba(255, 143, 60, .55);
}
.btn-primary:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--amber), var(--amber-2)); }
.btn-danger { color: var(--red); border-color: rgba(255, 92, 108, .35); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--text); font-size: 14px; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--amber-line); box-shadow: 0 0 0 3px var(--amber-soft);
}
.field .req { color: var(--amber); }
.err { color: var(--red); font-size: 12.5px; min-height: 16px; margin-top: 6px; }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-weight: 500; }
.badge.admin { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }
.badge.master { color: var(--blue); border-color: rgba(79,157,255,.35); background: var(--blue-soft); }

/* ── 登录 ───────────────────────────────────────────── */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.login-emblem {
  position: absolute; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 80vw); color: rgba(255, 171, 45, .05); pointer-events: none;
}
.login-card {
  position: relative; width: 360px; max-width: 100%;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-brand .emblem { width: 42px; height: 42px; }
.login-brand h1 { margin: 0; font-size: 20px; letter-spacing: .5px; }
.login-brand .sub { color: var(--muted); font-size: 12px; margin-top: 2px; font-family: var(--mono); letter-spacing: 1px; }
.login-foot { text-align: center; color: var(--muted); font-size: 11px; margin-top: 18px; font-family: var(--mono); }

/* ── 应用外壳 ───────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; min-height: 100dvh; min-width: 0; }
.side {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.side-brand .emblem { width: 34px; height: 34px; flex-shrink: 0; }
.side-brand .name { font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.side-brand .tag { font-size: 10px; color: var(--muted); font-family: var(--mono); letter-spacing: 1.5px; }
.nav-label { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r-sm);
  color: var(--text-2); margin-bottom: 3px; font-size: 13.5px; font-weight: 500; position: relative;
  transition: background .16s, color .16s;
}
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--amber-soft); color: var(--amber); }
.nav a.active svg { opacity: 1; }
.nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--amber); border-radius: 0 3px 3px 0;
}
.side-foot { margin-top: auto; padding: 12px 10px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-family: var(--mono); display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.main { padding: 22px 26px 40px; overflow: auto; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .tt { display: flex; flex-direction: column; }
.topbar h2 { margin: 0; font-size: 21px; font-weight: 700; white-space: nowrap; letter-spacing: .3px; }
.topbar .crumb { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 1px; }
.user-chip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.user-chip .who { display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #1a1205; flex-shrink: 0; }
.avatar.b { background: linear-gradient(135deg, var(--blue), #6f7dff); color: #08101f; }
.user-chip .nm { font-size: 13px; font-weight: 600; }
.user-chip .clock { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── 统计卡 ───────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; position: relative; overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card .k { color: var(--text-2); font-size: 12px; font-weight: 500; }
.card .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.card .ic svg { width: 18px; height: 18px; }
.ic.amber { background: var(--amber-soft); color: var(--amber); }
.ic.green { background: var(--green-soft); color: var(--green); }
.ic.blue { background: var(--blue-soft); color: var(--blue); }
.ic.red { background: var(--red-soft); color: var(--red); }
.card .v { font-size: 25px; font-weight: 700; font-family: var(--mono); letter-spacing: -.5px; }
.card .v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.card .sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.card.hero { border-color: var(--amber-line); }
.card.hero::after { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(var(--amber), var(--amber-2)); }

/* ── 面板 / 表格 ───────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 10px; }
.panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-head h3 svg { width: 17px; height: 17px; color: var(--amber); }
.panel-scroll { overflow-x: auto; }
.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
select.btn { padding-right: 30px; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667488' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 15px; font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.money { color: var(--green); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.o-no { font-family: var(--mono); color: var(--text-2); font-size: 12px; }
.row-act { display: flex; gap: 6px; justify-content: flex-end; opacity: .35; transition: opacity .14s; }
tr:hover .row-act { opacity: 1; }

.pill { font-size: 11px; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending { background: rgba(255,206,91,.12); color: var(--yellow); }
.pill.in_progress { background: var(--blue-soft); color: var(--blue); }
.pill.completed { background: var(--green-soft); color: var(--green); }
.pill.settled { background: rgba(160,172,196,.14); color: #9aa6bd; }
.pill.cancelled { background: var(--red-soft); color: var(--red); }
.pill.active { background: var(--green-soft); color: var(--green); }
.pill.inactive { background: var(--red-soft); color: var(--red); }

/* ── 陪玩业绩榜 ───────────────────────────────────────────── */
.rank-list { padding: 6px 8px; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: var(--r-sm); transition: background .14s; }
.rank-row:hover { background: var(--surface-2); }
.rank-no { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--surface-3); color: var(--muted); flex-shrink: 0; }
.rank-no.g1 { background: linear-gradient(135deg, #ffd25e, #ff9b2d); color: #1a1205; }
.rank-no.g2 { background: linear-gradient(135deg, #d7dee9, #9aa6bd); color: #10151e; }
.rank-no.g3 { background: linear-gradient(135deg, #d99a5b, #b06f34); color: #1a1205; }
.rank-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 0 auto; width: 150px; }
.rank-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.rank-row .meta { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.rank-bar-wrap { flex: 1; min-width: 60px; height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.rank-bar { height: 100%; background: linear-gradient(90deg, var(--amber-2), var(--amber)); border-radius: 6px; }
.rank-row .amt { text-align: right; flex-shrink: 0; }
.rank-row .amt .big { font-family: var(--mono); font-weight: 700; color: var(--green); }
.rank-row .amt .sm { font-size: 11px; color: var(--muted); font-family: var(--mono); }

/* ── 弹窗 ───────────────────────────────────────────── */
.modal-mask { position: fixed; inset: 0; background: rgba(4, 6, 10, .62); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; padding: 18px; animation: fade .16s ease; }
.modal { width: 470px; max-width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: pop .2s cubic-bezier(.2,.8,.2,1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.modal-head h3 svg { width: 18px; height: 18px; color: var(--amber); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.modal-foot .err { margin: 0; margin-right: auto; }
.close-x { background: none; border: none; color: var(--muted); width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; }
.close-x:hover { background: var(--surface-2); color: var(--text); }
.close-x svg { width: 18px; height: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 分账预览 */
.split { background: linear-gradient(180deg, var(--surface-2), var(--bg)); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; margin-top: 12px; }
.split-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.split .sp { text-align: center; padding: 4px; }
.split .sp .lab { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.split .sp .val { font-size: 19px; font-weight: 700; font-family: var(--mono); }
.split .sp.paid .val { color: var(--text); }
.split .sp.comm .val { color: var(--amber); }
.split .sp.club .val { color: var(--green); }
.split .arrow { color: var(--muted); align-self: center; text-align: center; }
.hint { color: var(--muted); font-size: 11.5px; margin-top: 10px; display: flex; align-items: flex-start; gap: 6px; }
.hint svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

/* 空状态 / 骨架 */
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; opacity: .5; margin-bottom: 12px; }
.empty .t { font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.skeleton { padding: 16px; }
.sk-line { height: 40px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; border-radius: 8px; margin-bottom: 8px; animation: shim 1.2s infinite; }

/* Toast */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: var(--r-sm); box-shadow: var(--shadow); font-size: 13px; min-width: 220px; animation: slidein .22s cubic-bezier(.2,.8,.2,1); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.ok { border-left-color: var(--green); } .toast.ok svg { color: var(--green); }
.toast.err { border-left-color: var(--red); } .toast.err svg { color: var(--red); }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }
@keyframes shim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── 结算 / 分析 ───────────────────────────────────────────── */
.tb-lab { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tb-lab svg { width: 15px; height: 15px; }
.toolbar h3 { white-space: nowrap; flex-shrink: 0; }
.toolbar h3 svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--amber); }
input[type=date].btn { color: var(--text); font-family: var(--mono); }
.btn.seg.active { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
tfoot .tfoot-row td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: none; }

.ana-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hbar { margin-bottom: 13px; }
.hbar:last-child { margin-bottom: 4px; }
.hbar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; gap: 10px; }
.hbar-top .nm { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-top .v { font-size: 11px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.hbar-track { height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, var(--amber-2), var(--amber)); border-radius: 6px; transition: width .4s; }
.vbars { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.vbar-fill { width: 68%; background: linear-gradient(180deg, var(--blue), rgba(79,157,255,.35)); border-radius: 3px 3px 0 0; transition: height .4s; }
.vbar-lab { font-size: 9px; color: var(--muted); font-family: var(--mono); height: 12px; }
@media (max-width: 900px) { .ana-grid { grid-template-columns: 1fr; } }

/* ── 客户自助下单页 ───────────────────────────────────────────── */
.order-wrap { max-width: 460px; margin: 0 auto; padding: 30px 16px 40px; }
.order-card { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow-lg); }
.order-card::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.order-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.order-brand .emblem { width: 40px; height: 40px; flex-shrink: 0; }
.order-brand h1 { margin: 0; font-size: 19px; letter-spacing: .3px; }
.order-brand .sub { color: var(--muted); font-size: 12px; font-family: var(--mono); margin-top: 2px; }
.ol-sec { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 1px; margin: 18px 0 10px; }
.svc-list { display: flex; flex-direction: column; gap: 8px; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.svc:hover { border-color: var(--line-2); }
.svc.on { border-color: var(--amber); background: var(--amber-soft); }
.svc-nm { font-weight: 600; font-size: 14px; }
.svc-cat { font-size: 11px; color: var(--muted); margin-top: 2px; }
.svc-price { font-family: var(--mono); font-weight: 700; color: var(--green); white-space: nowrap; }
textarea { resize: vertical; font-family: inherit; }
.order-foot { text-align: center; color: var(--muted); font-size: 11px; margin-top: 16px; font-family: var(--mono); }
#orderDone { text-align: center; padding: 10px 0 4px; }
.done-ico { width: 58px; height: 58px; margin: 6px auto 14px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.done-ico svg { width: 30px; height: 30px; }
#orderDone h2 { margin: 0 0 10px; font-size: 20px; }
#orderDone p { color: var(--text-2); margin: 6px 0; }
#orderDone .muted { color: var(--muted); font-size: 13px; }
.pill.unassigned { background: var(--amber-soft); color: var(--amber); }

/* ── 自适应 ───────────────────────────────────────────── */
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 72px 1fr; }
  .side { padding: 16px 10px; }
  .side-brand .name, .side-brand .tag, .nav a span, .nav-label, .side-foot span { display: none; }
  .side-brand { justify-content: center; padding: 4px 0 18px; }
  .nav a { justify-content: center; padding: 11px; }
  .nav a.active::before { left: -10px; }
  .side-foot { justify-content: center; }
  .main { padding: 18px 16px 32px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .rank-row .who { width: auto; flex: 1; }
  .rank-bar-wrap { display: none; }
}
