/* ══════════════════════════════════════════════════════════════
   玖玖电竞 订单中心 · 样式
   配色沿用演示稿里的原型：深蓝侧栏 + 浅灰底 + 蓝色主按钮 + 琥珀色强调
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg: #F4F6FB; --panel: #fff; --ink: #1A1F36; --ink2: #2A2F4A; --muted: #6B7394; --faint: #9AA1BC;
  --line: #E3E7F0; --line2: #EEF0F5; --soft: #F7F8FC; --hl: #F3F8FF;
  --pri: #1B64B8; --pri-d: #154F93; --pri-soft: #E6EFFC; --sky: #7FD0F2; --amber: #FFB547;
  --side: #12152B; --side2: #232A52; --side-ink: #AEB4D2; --navy: #12152B;
  --green: #1F7A44; --green-soft: #E2F5E9; --red: #B42318; --red-soft: #FDE7E7; --orange: #9A5300; --orange-soft: #FFF1D6;
  --r: 14px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 21, 43, .04), 0 4px 16px rgba(18, 21, 43, .06);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.noscroll { overflow: hidden; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: -.2px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.sep { height: 1px; background: var(--line2); margin: 6px 0; }
.ico { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.t-green { color: var(--green); } .t-amber { color: var(--orange); } .t-blue { color: var(--pri); } .t-red { color: var(--red); }

/* ── 小标签 ─────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; line-height: 1.6; }
.c-blue { background: var(--pri-soft); color: var(--pri); }
.c-amber { background: var(--orange-soft); color: var(--orange); }
.c-green { background: var(--green-soft); color: var(--green); }
.c-gray { background: #EEF0F5; color: #545C7A; }
.c-indigo { background: #ECEAFF; color: #4537C9; }
.c-red { background: var(--red-soft); color: var(--red); }
.c-dark { background: var(--navy); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; border-radius: 7px; padding: 2px 9px; background: var(--soft); border: 1px solid var(--line); color: var(--ink2); }
.tag.blue { background: var(--pri-soft); border-color: transparent; color: var(--pri); font-weight: 600; }

/* ── 头像 ───────────────────────────────────────────────────── */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; width: 28px; height: 28px; font-size: 12.5px; }
.av.lg { width: 48px; height: 48px; font-size: 20px; }
.av.sm { width: 22px; height: 22px; font-size: 11px; }
.a1 { background: #E5739A; } .a2 { background: #5B8DEF; } .a3 { background: #3BAF7E; } .a4 { background: #E3A23B; } .a5 { background: #8B6CE0; } .a6 { background: #E07A5F; }
.avs { display: inline-flex; }
.avs .av { width: 24px; height: 24px; font-size: 11px; border: 2px solid #fff; margin-left: -6px; }
.avs .av:first-child { margin-left: 0; }

/* ── 按钮 ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; user-select: none; }
.btn .ico { width: 16px; height: 16px; }
.btn.pri { background: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-d); }
.btn.ghost { background: #fff; border: 1px solid #D9DEEA; color: var(--ink); }
.btn.ghost:hover { border-color: #B9C1D6; background: var(--soft); }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.amber:hover { background: #F5A62E; }
.btn.danger { background: #fff; border: 1px solid #F1C4C0; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) transparent transparent; animation: spin .7s linear infinite; }
.btn.ghost.loading::after, .btn.danger.loading::after { border-color: #8890B0 #8890B0 transparent transparent; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: inherit; }
.icon-btn:hover { background: rgba(127, 135, 170, .14); }
.link { color: var(--pri); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.red { color: var(--red); }

/* ── 表单 ───────────────────────────────────────────────────── */
.inp, select.inp, textarea.inp { width: 100%; height: 38px; border: 1px solid #D9DEEA; border-radius: var(--r-sm); background: #fff; padding: 0 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; min-height: 72px; padding: 9px 12px; resize: vertical; line-height: 1.55; }
.inp:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(27, 100, 184, .12); }
.inp[readonly] { background: var(--soft); color: var(--muted); }
.inp.sm { height: 32px; font-size: 13px; padding: 0 9px; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7394' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
.lbl { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.lbl em { font-style: normal; color: var(--red); margin-left: 2px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--pri); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.affix { position: relative; }
.affix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.affix > .inp { padding-left: 26px; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 11px; color: var(--faint); width: 16px; height: 16px; pointer-events: none; }
.search .inp { padding-left: 34px; background: var(--soft); border-color: var(--line); }
.search .inp:focus { background: #fff; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #D3D8E5; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--pri); }
.switch input:checked + i::after { transform: translateX(18px); }

/* ── 卡片、表格 ─────────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.card-h h2 { font-size: 16px; font-weight: 700; }
.card-h .sub { font-size: 12.5px; color: var(--muted); }
.card-b { padding: 18px 20px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { border-collapse: collapse; width: 100%; }
.tbl th { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid #E9ECF3; background: #FAFBFD; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tbl td { font-size: 13.5px; padding: 11px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl td.nw, .tbl th.nw { white-space: nowrap; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: #F8FAFE; }
.tbl tbody tr.on td { background: var(--hl); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .ono { font-family: var(--mono); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tbl .ono a, a.ono { color: var(--ink); }
.tbl .ono a:hover, a.ono:hover { color: var(--pri); }
.cb { width: 16px; height: 16px; accent-color: var(--pri); vertical-align: middle; cursor: pointer; }
.cell2 small { display: block; font-size: 12px; color: var(--muted); }
.comps { display: flex; align-items: center; gap: 8px; min-width: 0; }
.comps .names { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }

/* ── 统计卡 ─────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; text-align: left; transition: border-color .15s, box-shadow .15s; }
button.stat:hover { border-color: #C5D3EA; }
.stat.on { border-color: var(--pri); box-shadow: 0 0 0 2px rgba(27, 100, 184, .15); }
.stat small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat.blue b { color: var(--pri); } .stat.amber b { color: #B8740C; } .stat.green b { color: var(--green); }

/* ── 标签页（分段按钮） ──────────────────────────────────────── */
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tabs button { height: 30px; padding: 0 13px; border-radius: 8px; font-size: 13.5px; color: var(--ink2); font-weight: 500; }
.tabs button:hover { background: var(--soft); }
.tabs button.on { background: var(--navy); color: #fff; font-weight: 600; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills button { height: 34px; padding: 0 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.pills button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pills .boss-pill { background: var(--pri-soft); border-color: #C7DAF5; color: var(--pri); }

/* ═════════════ 电脑端布局（客服 / 管理） ═════════════ */
.app { display: flex; min-height: 100vh; }
.side { width: 216px; background: var(--side); color: #C9CEE6; display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--sky), #3E6FE0); display: flex; align-items: center; justify-content: center; color: #0E1226; font-weight: 900; font-size: 18px; flex: none; }
.brand b { color: #fff; font-size: 15.5px; font-weight: 700; display: block; line-height: 1.25; }
.brand small { font-size: 11.5px; color: #8890B0; }
.navs { display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--side-ink); text-decoration: none !important; }
.nav:hover { background: #1B2042; color: #E3E6F5; }
.nav .ico { color: #6F78A8; }
.nav.on { background: var(--side2); color: #fff; font-weight: 600; }
.nav.on .ico { color: var(--sky); }
.nav .n { margin-left: auto; font-style: normal; font-size: 11.5px; background: var(--amber); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side .spacer { flex: 1; min-height: 16px; }
.side .me { display: flex; align-items: center; gap: 8px; padding: 12px 4px 2px 6px; border-top: 1px solid #262C50; }
.side .me-t { flex: 1; min-width: 0; }
.side .me-t span { font-size: 13px; color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me-t small { display: block; font-size: 11px; color: #8890B0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .icon-btn { color: #8890B0; width: 28px; height: 28px; }
.side .icon-btn:hover { color: #fff; background: #232A52; }
.side-mask { display: none; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top { height: 62px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px; flex: none; position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: 18px; font-weight: 700; white-space: nowrap; }
.top-extra { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .search { width: 280px; }
.menu-btn { display: none !important; }
.shift { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #545C7A; background: #F2F5FB; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.shift b { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2FB36B; flex: none; }
.content { flex: 1; padding: 22px 24px 40px; min-width: 0; }
.page { display: flex; flex-direction: column; gap: 18px; max-width: 1480px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.split.wide-side { grid-template-columns: minmax(0, 1fr) 420px; }
.sticky { position: sticky; top: 84px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; }
.filters .inp, .filters select.inp { width: auto; min-width: 120px; height: 34px; font-size: 13px; }
.filters .search { min-width: 220px; flex: 1; max-width: 360px; }
.filters .search .inp { width: 100%; }
.fl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

/* 老板卡片 + 交接记录 */
.boss-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.boss-top { display: flex; align-items: center; gap: 12px; }
.boss-top b { font-size: 18px; font-weight: 700; display: block; line-height: 1.3; }
.boss-top small { font-size: 12.5px; color: var(--muted); }
.boss-note { background: #FFF8E8; border: 1px solid #F5DFAE; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #5C4310; white-space: pre-wrap; }
.boss-note b { display: block; font-size: 13px; color: #3E2D08; margin-bottom: 2px; }
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed #E3E7F0; }
.tl:last-child { border-bottom: 0; }
.tl .av { width: 26px; height: 26px; font-size: 11.5px; }
.tl .av.sys { background: #C3C8DA; }
.tl-b { flex: 1; min-width: 0; }
.tl-h { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tl-h b { color: var(--ink); font-size: 13px; }
.tl-c { font-size: 13.5px; color: var(--ink2); white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.tl.handover .tl-c { color: var(--ink); }
.tl-kind { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 0 5px; }
.tl-kind.handover { background: #FFF1D6; color: #9A5300; }
.tl-kind.note { background: #E6EFFC; color: #1B64B8; }
.composer { display: flex; gap: 8px; align-items: flex-end; border: 1px solid #D9DEEA; border-radius: 12px; padding: 8px 8px 8px 12px; background: #fff; }
.composer textarea { flex: 1; border: 0; outline: none; resize: none; min-height: 22px; max-height: 120px; line-height: 1.5; padding: 3px 0; background: transparent; }
.composer:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(27, 100, 184, .1); }

/* 派单页 */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { padding: 20px 22px; }
.step-h { display: flex; align-items: center; gap: 4px 10px; margin-bottom: 14px; flex-wrap: wrap; }
.step-h .no { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step-h h3 { font-size: 16px; font-weight: 700; white-space: nowrap; }
.step-h small { color: var(--muted); font-size: 12.5px; }
.autofill { margin-top: 10px; background: var(--soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #545C7A; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.autofill b { color: var(--ink); }
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 40; max-height: 320px; overflow-y: auto; padding: 6px; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; width: 100%; text-align: left; }
.ac-item:hover, .ac-item.on { background: var(--hl); }
.ac-item .grow { min-width: 0; }
.ac-item small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-empty { padding: 10px; color: var(--muted); font-size: 13px; }
.picks { display: flex; flex-wrap: wrap; gap: 12px; }
.pick { display: flex; align-items: center; gap: 10px; border: 1px solid #DCE5F5; background: #F7FAFF; border-radius: 12px; padding: 10px 10px 10px 12px; min-width: 210px; }
.pick .av { width: 36px; height: 36px; font-size: 15px; }
.pick b { display: block; font-size: 14.5px; }
.pick small { font-size: 12px; color: var(--green); }
.pick small.warn { color: var(--orange); }
.pick .x { color: var(--faint); font-size: 18px; width: 26px; height: 26px; border-radius: 6px; }
.pick .x:hover { background: #E8EDF7; color: var(--ink); }
.pick .share { width: 96px; }
.pick-add { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #C3CADB; border-radius: 12px; padding: 0 18px; min-height: 58px; color: var(--muted); font-weight: 600; background: #fff; }
.pick-add:hover { border-color: var(--pri); color: var(--pri); }
.preview { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.preview h3 { font-size: 16px; font-weight: 700; }
.ono-card { background: var(--navy); border-radius: 14px; padding: 16px 18px; color: #9AA3C7; font-size: 12.5px; }
.ono-card b { display: block; color: var(--sky); font-family: var(--mono); font-size: 28px; font-weight: 800; letter-spacing: .5px; margin-top: 4px; }
.split-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.split-list > div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line2); font-size: 14px; }
.split-list > div:last-child { border-bottom: 0; }
.split-list .sum { background: var(--soft); font-weight: 700; }
.split-list .warn { background: var(--orange-soft); color: var(--orange); font-size: 13px; font-weight: 600; }
.split-list b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* 订单详情 */
.od-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.od-head .ono { font-family: var(--mono); font-size: 24px; font-weight: 800; }
.kv { display: grid; grid-template-columns: 88px 1fr; row-gap: 9px; column-gap: 12px; font-size: 13.5px; }
.kv > span { color: var(--muted); }
.kv > b { font-weight: 600; min-width: 0; word-break: break-word; }
.kv.wide { grid-template-columns: 88px 1fr 88px 1fr; }
.req { background: var(--soft); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.asg { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line2); align-items: flex-start; }
.asg:last-child { border-bottom: 0; }
.asg .av { width: 38px; height: 38px; font-size: 15px; }
.asg-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.asg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asg-h b { font-size: 15px; }
.asg-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.asg-meta b { color: var(--ink); font-weight: 600; }
.asg-act { display: flex; gap: 8px; flex: none; align-items: center; }
.reject-reason { font-size: 13px; color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 6px 10px; }
.note-line { font-size: 13px; color: var(--ink2); background: var(--soft); border-radius: 8px; padding: 6px 10px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #1F2747; border: 1px solid var(--line); padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs.big .thumb { width: 132px; height: 132px; }
.amount-edit { display: inline-flex; align-items: center; gap: 6px; }
.amount-edit .inp { width: 90px; height: 30px; }
.late { font-size: 11.5px; font-weight: 700; color: #fff; background: #E07A5F; border-radius: 5px; padding: 0 6px; line-height: 18px; }

/* 审核 */
.rv-card .card-h .ono { font-family: var(--mono); font-weight: 800; font-size: 16px; }
.rv-foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #FAFBFD; border-top: 1px solid var(--line2); border-radius: 0 0 var(--r) var(--r); flex-wrap: wrap; }

/* 结算 */
.selbar-wrap { position: sticky; bottom: 0; z-index: 5; padding: 0 16px 16px; }
.selbar-wrap:empty { padding: 0; }
.selbar { margin: 0; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px 12px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(18, 21, 43, .25); z-index: 5; }
.selbar b { color: var(--amber); font-size: 18px; font-variant-numeric: tabular-nums; }
.selbar .btn.ghost { background: #fff; border-color: #fff; }
.exp td { background: #FBFCFE !important; padding: 0 !important; }
.exp-inner { padding: 6px 16px 12px 52px; }
.exp-inner .tbl td, .exp-inner .tbl th { font-size: 12.5px; padding: 7px 10px; background: transparent; position: static; }
.caret { display: inline-block; transition: transform .15s; color: var(--faint); }
.open .caret { transform: rotate(90deg); }
.loglist { display: flex; flex-direction: column; }
.loglist > div { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.loglist > div:last-child { border-bottom: 0; }
.loglist b { font-size: 13px; }
.loglist small { color: var(--muted); }

/* 设置 */
.set-sec { display: flex; flex-direction: column; gap: 14px; }
.set-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; padding: 4px 0; }
.set-row > label { font-size: 13.5px; font-weight: 600; padding-top: 8px; }
.set-row > label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.taglist .tag button { color: var(--faint); margin-left: 2px; font-size: 14px; line-height: 1; }
.taglist .tag button:hover { color: var(--red); }
.svc-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kvs > div { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.kvs small { display: block; color: var(--muted); font-size: 12px; }
.kvs b { font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── 弹窗、提示、看图、底部面板 ───────────────────────────────── */
.modal-wrap { position: fixed; inset: 0; background: rgba(14, 18, 38, .45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; animation: fade .15s; }
.modal-wrap.out { opacity: 0; transition: opacity .15s; }
.modal { background: #fff; border-radius: 16px; width: 440px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(14, 18, 38, .3); animation: pop .18s; }
.modal.wide { width: 720px; }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.modal-h h3 { font-size: 16px; font-weight: 700; flex: 1; }
.modal-h .x { font-size: 22px; color: var(--faint); width: 32px; height: 32px; border-radius: 8px; line-height: 1; }
.modal-h .x:hover { background: var(--soft); color: var(--ink); }
.modal-b { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line2); }
.confirm-msg { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.qchip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink2); }
.qchip:hover { border-color: var(--pri); color: var(--pri); }
.secret { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.secret div { display: flex; gap: 12px; align-items: baseline; }
.secret span { color: var(--muted); width: 64px; flex: none; font-size: 13px; }
.secret b { font-size: 16px; word-break: break-all; }
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: rgba(18, 21, 43, .94); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: up .2s; transition: opacity .3s, transform .3s; text-align: center; }
.toast.err { background: #B42318; }
.toast.out { opacity: 0; transform: translateY(8px); }
.lightbox { position: fixed; inset: 0; background: rgba(8, 10, 22, .92); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 48px 16px 56px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-x { position: absolute; top: 10px; right: 14px; color: #fff; font-size: 30px; width: 44px; height: 44px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 40px; width: 52px; height: 72px; border-radius: 10px; }
.lb-nav:hover { background: rgba(255,255,255,.08); }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
.lb-bar { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; color: #C9CEE6; font-size: 13px; }
.lb-bar a { color: var(--sky); }
.sheet-wrap { position: fixed; inset: 0; background: rgba(14, 18, 38, .45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; max-height: 75vh; display: flex; flex-direction: column; animation: slide .2s; padding-bottom: env(safe-area-inset-bottom); }
.sheet-h { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line2); font-weight: 700; font-size: 16px; }
.sheet-h button { margin-left: auto; font-size: 22px; color: var(--faint); width: 32px; height: 32px; }
.sheet-b { overflow-y: auto; padding: 6px 8px 12px; }
.sheet-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 12px; border-radius: 10px; text-align: left; font-size: 15px; }
.sheet-item:hover, .sheet-item.on { background: var(--hl); }
.sheet-item small { margin-left: auto; color: var(--muted); font-size: 13px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty b { color: var(--ink); font-size: 15px; }
.empty .btn { margin-top: 6px; }
.loading-box { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: var(--muted); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CBD2E3; border-top-color: var(--pri); animation: spin .7s linear infinite; display: inline-block; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; font-size: 13px; color: var(--muted); }
.banner { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; }
.banner .ico { margin-top: 1px; }
.banner.info { background: var(--pri-soft); color: #174C8C; }
.banner.ok { background: #E9F7EF; color: var(--green); border: 1px solid #C9EBD6; }
.banner.warn { background: var(--orange-soft); color: #7A4300; }
.banner.err { background: var(--red-soft); color: var(--red); }
.banner b { font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
@keyframes slide { from { transform: translateY(40px); opacity: .5; } }

/* ═════════════ 登录页 ═════════════ */
.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, #26306A 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #1B3F7A 0%, transparent 55%), #0E1226; }
.login { width: 400px; max-width: 100%; background: #fff; border-radius: 20px; padding: 32px 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 16px; }
.login .brand { padding: 0 0 6px; }
.login .brand b { color: var(--ink); font-size: 19px; }
.login .brand small { color: var(--muted); font-size: 12.5px; }
.login .brand .logo { width: 42px; height: 42px; font-size: 22px; }
.login h2 { font-size: 15px; color: var(--muted); font-weight: 500; }
.login .inp { height: 44px; font-size: 15px; }
.login .btn { height: 46px; font-size: 16px; border-radius: 12px; }
.login .err { color: var(--red); font-size: 13px; min-height: 18px; }
.login .foot { font-size: 12px; color: var(--faint); text-align: center; }
.bare .empty { background: #fff; border-radius: 16px; }

/* ═════════════ 手机端布局（陪玩） ═════════════ */
.m-app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; position: relative; box-shadow: 0 0 0 1px var(--line); }
.m-hdr { height: 54px; background: #fff; display: flex; align-items: center; padding: 0 16px; gap: 8px; border-bottom: 1px solid #E9ECF3; position: sticky; top: 0; z-index: 20; }
.m-hdr h1 { font-size: 17.5px; font-weight: 700; }
.m-hdr .back { font-size: 30px; color: var(--ink); width: 28px; line-height: 1; text-decoration: none; margin-left: -4px; }
.m-me { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #545C7A; text-decoration: none !important; }
.m-body { flex: 1; padding: 14px 14px calc(84px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.m-app.sub .m-body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #E6E9F2; display: flex; z-index: 20; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; color: #8890B0; text-decoration: none !important; position: relative; }
.tabbar a .ico { width: 22px; height: 22px; }
.tabbar a.on { color: var(--pri); font-weight: 700; }
.dot-n { position: absolute; top: 6px; left: calc(50% + 6px); font-style: normal; background: #E5484D; color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px; }
.mc { background: #fff; border: 1px solid #E6E9F2; border-radius: 14px; padding: 14px; }
.mt { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 4px 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mt-tip { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; }
.mt small { font-weight: 500; color: var(--muted); font-size: 12px; }
.income { background: linear-gradient(135deg, #12152B 0%, #1E2450 60%, #26306A 100%); color: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.income .mrow { display: flex; align-items: center; gap: 6px; color: #9AA3C7; font-size: 13.5px; }
.income .mrow button { color: #9AA3C7; width: 28px; height: 28px; border-radius: 8px; font-size: 20px; line-height: 1; }
.income .mrow button:hover { background: rgba(255,255,255,.08); color: #fff; }
.income .mrow button:disabled { opacity: .3; }
.income .big { font-size: 36px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.income .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.income .three div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; }
.income .three small { display: block; color: #9AA3C7; font-size: 12.5px; }
.income .three b { font-size: 17px; font-variant-numeric: tabular-nums; }
.income .three .g { color: #6EE7A0; } .income .three .a { color: var(--amber); } .income .three .s { color: var(--sky); }
.income .hint2 { font-size: 12px; color: #9AA3C7; }
.ocard { background: #fff; border: 1px solid #E6E9F2; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none !important; transition: border-color .15s; }
.ocard:active { background: var(--soft); }
.ocard .r1 { display: flex; align-items: center; gap: 8px; }
.ocard .r1 b { font-family: var(--mono); font-size: 16px; font-weight: 800; }
.ocard .r1 .chip { margin-left: auto; }
.ocard .r2 { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.ocard .r2 .amt { margin-left: auto; color: var(--ink); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ocard .r3 { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ocard.todo { border-left: 4px solid var(--pri); }
.ocard.rejected { border-left: 4px solid #E5484D; }
.result-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 0 2px; }
.result-line b { color: var(--ink); }
.ord-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.ord-h b { font-family: var(--mono); font-size: 18px; color: var(--ink); font-weight: 800; }
.mkv { display: grid; grid-template-columns: 64px 1fr; row-gap: 8px; font-size: 14px; }
.mkv span { color: var(--muted); }
.mkv b { font-weight: 600; word-break: break-word; }
.paybar { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: #fff; border-radius: 12px; padding: 11px 14px; }
.paybar small { color: #9AA3C7; font-size: 12.5px; }
.paybar b { font-size: 22px; color: var(--amber); font-variant-numeric: tabular-nums; }
.pct { display: flex; align-items: baseline; gap: 8px; }
.pct b { font-size: 38px; font-weight: 800; color: var(--pri); line-height: 1; font-variant-numeric: tabular-nums; }
.range { width: 100%; margin: 14px 0 4px; accent-color: var(--pri); height: 28px; }
.seg { display: flex; gap: 8px; margin-top: 8px; }
.seg button { flex: 1; text-align: center; font-size: 14px; font-weight: 600; border: 1px solid #D9DEEA; border-radius: 10px; height: 40px; color: var(--ink2); background: #fff; }
.seg button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.custom-pct { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.custom-pct .inp { width: 110px; height: 40px; font-size: 16px; }
.shots { display: flex; flex-wrap: wrap; gap: 10px; }
.shot { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; background: #1F2747; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 1; }
.shot.add { background: #fff; border: 1.5px dashed #C3CADB; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); font-size: 12px; gap: 2px; cursor: pointer; }
.shot.add .ico { width: 24px; height: 24px; }
.shot.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.team { display: flex; flex-direction: column; gap: 10px; }
.team > div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.team .chip { margin-left: auto; }
.fab { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(244,246,251,0), var(--bg) 35%); z-index: 15; }
.fab .btn { width: 100%; height: 50px; border-radius: 14px; font-size: 16.5px; }
.progress { height: 6px; background: #E6EAF3; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--pri)); width: 0; transition: width .2s; }
.done-box { text-align: center; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.done-box .big-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.done-box b { font-size: 17px; }
.me-card { display: flex; align-items: center; gap: 14px; }
.me-card b { font-size: 18px; display: block; }
.mlist { display: flex; flex-direction: column; }
.mlist > div, .mlist > a, .mlist > button { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--line2); font-size: 14.5px; color: var(--ink); text-decoration: none !important; width: 100%; text-align: left; }
.mlist > *:last-child { border-bottom: 0; }
.mlist span.v { margin-left: auto; color: var(--muted); font-size: 13.5px; text-align: right; }
.m-search { display: flex; gap: 8px; }
.m-search .search { flex: 1; }
.m-search .inp { height: 44px; border-radius: 12px; background: #fff; font-size: 15px; }
.m-search .btn { height: 44px; border-radius: 12px; }
.more { display: flex; justify-content: center; padding: 6px 0; }

/* ═════════════ 窄屏 ═════════════ */
@media (max-width: 1500px) {
  .split, .split.wide-side { grid-template-columns: minmax(0, 1fr) 350px; }
  .tbl td { padding: 11px 10px; }
  .tbl th { padding: 10px 10px; }
  .comps .names { max-width: 112px; }
}
@media (max-width: 1280px) {
  .split, .split.wide-side { grid-template-columns: minmax(0, 1fr) 330px; }
  .top .search { width: 220px; }
}
@media (max-width: 1100px) {
  .split, .split.wide-side { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
  body.side-open .side { transform: none; box-shadow: 10px 0 30px rgba(0,0,0,.2); }
  body.side-open .side-mask { display: block; position: fixed; inset: 0; background: rgba(14, 18, 38, .4); z-index: 25; }
  .menu-btn { display: inline-flex !important; margin-left: -8px; }
  .top { padding: 0 14px; gap: 8px; height: 56px; }
  .top h1 { font-size: 16.5px; }
  .top .search, .top .shift { display: none; }
  .content { padding: 14px 12px 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat b { font-size: 24px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .set-row { grid-template-columns: 1fr; gap: 6px; }
  .set-row > label { padding-top: 0; }
  .kv.wide { grid-template-columns: 76px 1fr; }
  .asg { flex-wrap: wrap; padding: 14px; }
  .asg-act { width: 100%; justify-content: flex-end; }
  .filters .search { max-width: none; min-width: 100%; }
  .card-h, .card-b { padding-left: 14px; padding-right: 14px; }
  .pick { min-width: 0; width: 100%; }
  .top-right .btn .lbl-long { display: none; }
}
@media (max-width: 700px) {
  .tbl.pool thead, .tbl.olist thead { display: none; }
  .tbl.pool, .tbl.pool tbody, .tbl.olist, .tbl.olist tbody { display: block; }
  .tbl.pool tr, .tbl.olist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 5px; padding: 12px 14px; border-bottom: 1px solid var(--line2); align-items: center; }
  .tbl.pool td, .tbl.olist td { padding: 0 !important; border: 0; white-space: normal; background: transparent !important; }
  .tbl.pool tr.on, .tbl.olist tr.on { background: var(--hl); }
  .tbl.pool tr { grid-template-areas: "no st" "boss amt" "svc cs" "comps comps"; }
  .tbl.pool td:nth-child(1) { grid-area: no; } .tbl.pool td:nth-child(2) { grid-area: boss; } .tbl.pool td:nth-child(3) { grid-area: svc; color: var(--muted); font-size: 13px; }
  .tbl.pool td:nth-child(4) { grid-area: comps; } .tbl.pool td:nth-child(5) { grid-area: amt; } .tbl.pool td:nth-child(6) { grid-area: st; } .tbl.pool td:nth-child(7) { grid-area: cs; }
  .tbl.pool td:nth-child(n+5), .tbl.olist td:nth-child(2), .tbl.olist td:nth-child(n+6) { justify-self: end; text-align: right; }
  .tbl.pool td:nth-child(7) small, .tbl.pool td:nth-child(7) div { display: inline; margin-left: 6px; font-size: 12.5px; color: var(--muted); }
  .tbl.olist tr { grid-template-areas: "no st" "boss price" "svc date" "comps cs"; }
  .tbl.olist td:nth-child(1) { grid-area: no; } .tbl.olist td:nth-child(2) { grid-area: date; font-size: 12.5px; } .tbl.olist td:nth-child(3) { grid-area: boss; }
  .tbl.olist td:nth-child(4) { grid-area: svc; color: var(--muted); font-size: 13px; } .tbl.olist td:nth-child(5) { grid-area: comps; } .tbl.olist td:nth-child(6) { grid-area: price; }
  .tbl.olist td:nth-child(7) { grid-area: st; } .tbl.olist td:nth-child(8) { grid-area: cs; font-size: 12.5px; color: var(--muted); }
  .comps .names { max-width: none; white-space: normal; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .pills::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; border-radius: 12px; }
  .stat small { font-size: 12px; }
  .stat b { font-size: 22px; }
  .stat .sub { display: none; }
  .step { padding: 16px; }
  .step-h small { flex-basis: 100%; }
  .card-h h2 { font-size: 15px; }
  .od-head .ono { font-size: 20px; }
  .m-app { box-shadow: none; }
  .modal-wrap { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; width: 100%; max-height: 88vh; }
  .modal-f { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media print {
  .side, .top, .selbar, .tabbar, .fab { display: none !important; }
}
