/* =====================================================================================================================
   2026-11-06 iOS 风格 (Yuki:「整个 app 还是不像 iOS」「那个蛋很丑不能代表 swi」).
   Loaded after app.css: the same screens laid out the way an iPhone / iPad app is — grouped white cards on a #F2F2F7 page,
   44px rows, a large bold title, a 44px navigation bar, a bottom tab bar on the phone, an iPad-style sidebar on a computer,
   tinted buttons (one filled main button), capsule tags, a sheet with a grabber, iOS alerts, an iOS switch.
   Tint = SWI brand navy (Yuki chose 海军蓝＋金 2026-10-17; the plain blue of 2026-11-05 she called 不好看); gold only as an accent.
   No mascot anywhere; the brand is the SWI logo. Screen only: print rules, the appointment sheet grid (.appt-grid), the
   学员出勤 grid (.att-grid) and the roster grid keep their own look.
   ===================================================================================================================== */
@media screen {
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --r-lg: 12px; --r-md: 12px; --r: 10px; --r-sm: 8px; --pill: 999px;
  --bg: #F2F2F7; --panel: #FFFFFF; --panel-2: #F9F9FB; --soft: #F2F2F7; --fill: #EEEEF0; --fill-2: #E5E5EA; --line: #E5E5EA; --line-2: #ECECEE; --sep: rgba(60, 60, 67, .18);
  --ink: #000000; --ink-2: #3C3C43; --muted: #6D6D72; --muted-2: #8E8E93; --placeholder: #AEAEB2;
  --sage: #F2F2F7; --sage-2: #E5E5EA; --sage-line: #D1D1D6; --mint: #E9EDF4;
  --tint: #B5456E; --tint-hover: #983A5C; --tint-soft: #F9ECF1; --tint-line: #EFC9D8; --tint-glow: rgba(181, 69, 110, .22); /* 玫瑰: Yuki 2026-11-06 picked 5 of 6 (navy kept as data-palette=navyios) */
  --c1: var(--tint); --c1b: var(--tint); --c1-hover: var(--tint-hover); --c1-soft: var(--tint-soft); --c1-line: var(--tint-line); --c1-glow: var(--tint-glow);
  --brand: var(--tint); --brand-ink: #FFFFFF; --brand-soft: var(--tint-soft); --brand-hover: var(--tint-hover);
  --navy: var(--tint); --navy-2: var(--tint-hover); --navy-3: #D88AA6; --obsidian: #000;
  --vio: var(--tint); --vio-ink: var(--tint-hover); --vio-soft: var(--tint-soft); --vio-line: var(--tint-line);
  --cy: var(--tint); --cy-ink: var(--tint-hover); --cy-soft: var(--tint-soft); --cy-line: var(--tint-line);
  --ro: #FF9500; --ro-ink: #8A4B00; --ro-soft: #FFF3E0; --ro-line: #FFD9A3;
  --gold: #BE9663; --gold-2: #D4B07A; --gold-line: #EAD8BD; --gold-soft: #FAF4EA; --gold-ink: #6E4A1C;
  --ice: #5E5CE6; --ice-2: #9D9BF0; --ice-soft: #EEEEFC; --ice-line: #CFCEF7; --ice-glow: rgba(94, 92, 230, .2);
  --ok: #34C759; --ok-ink: #1B7F38; --ok-soft: #E6F8EC; --warn: #FF9500; --warn-ink: #9A5A00; --warn-soft: #FFF3E0; --bad: #FF3B30; --bad-ink: #C62B22; --bad-soft: #FFECEB; --info: var(--tint); --info-soft: var(--tint-soft);
  --nav-bg: #F2F2F7; --nav-grad: #F2F2F7; --nav-ink: #000; --nav-muted: #6D6D72; --nav-line: #DADADE; --nav-hover: #E5E5EA;
  --bar-bg: rgba(249, 249, 249, .94); --bar-line: rgba(60, 60, 67, .22);
  --shadow-1: 0 1px 1px rgba(0, 0, 0, .03); --shadow-2: 0 2px 10px rgba(0, 0, 0, .06); --shadow-3: 0 12px 40px rgba(0, 0, 0, .18);
  --tab-h: 50px;
}
/* the iOS blue version (local preview only, for a side-by-side with the navy one) */
:root[data-palette="navyios"] { --tint: #1F2B43; --tint-hover: #2C3C5E; --tint-soft: #E9EDF4; --tint-line: #C9D2E3; --tint-glow: rgba(31, 43, 67, .18); --navy-3: #4A5C82; } /* the brand navy of 2026-11-06 morning, for comparison */
:root[data-palette="iosblue"] { --tint: #007AFF; --tint-hover: #0062CC; --tint-soft: #E5F1FF; --tint-line: #B9D6FF; --tint-glow: rgba(0, 122, 255, .2); --navy-3: #5AA0FF; }
/* more candidates for Yuki to choose from (2026-11-06「这个蓝色不美」): Apple black, brand gold, rose, blue-grey — local preview only */
:root[data-palette="black"] { --tint: #1C1C1E; --tint-hover: #3A3A3C; --tint-soft: #EFEFF1; --tint-line: #D1D1D6; --tint-glow: rgba(0, 0, 0, .15); --navy-3: #48484A; }
:root[data-palette="gold"] { --tint: #9A7B4F; --tint-hover: #7F6440; --tint-soft: #F6EFE4; --tint-line: #E4D3B8; --tint-glow: rgba(154, 123, 79, .25); --navy-3: #BE9663; }
:root[data-palette="rosy"] { --tint: #B5456E; --tint-hover: #983A5C; --tint-soft: #F9ECF1; --tint-line: #EFC9D8; --tint-glow: rgba(181, 69, 110, .22); --navy-3: #D88AA6; }
:root[data-palette="slate"] { --tint: #4A5B7C; --tint-hover: #3A4A68; --tint-soft: #ECEFF5; --tint-line: #CBD3E2; --tint-glow: rgba(74, 91, 124, .22); --navy-3: #7D8DB0; }
:root[data-theme="dark"] {
  --bg: #000000; --panel: #1C1C1E; --panel-2: #232326; --soft: #2C2C2E; --fill: #2C2C2E; --fill-2: #3A3A3C; --line: #38383A; --line-2: #2C2C2E; --sep: rgba(84, 84, 88, .65);
  --ink: #FFFFFF; --ink-2: #EBEBF5; --muted: #A1A1A8; --muted-2: #8E8E93; --placeholder: #636366;
  --sage: #2C2C2E; --sage-2: #3A3A3C; --sage-line: #48484A; --mint: #26314A;
  --tint: #E28AA8; --tint-hover: #EFA7BE; --tint-soft: #3A2230; --tint-line: #5E3446; --tint-glow: rgba(226, 138, 168, .28); --navy-3: #B3597A;
  --ro: #FF9F0A; --ro-ink: #FFD9A3; --ro-soft: #3A2A12; --ro-line: #6B4A1F;
  --gold: #D8AE6A; --gold-2: #E2BD7E; --gold-line: #5A4628; --gold-soft: #2E2416; --gold-ink: #F0D9B4;
  --ice: #9D9BF0; --ice-2: #BEBDF7; --ice-soft: #26263F; --ice-line: #3F3F6B; --ice-glow: rgba(157, 155, 240, .25);
  --ok: #30D158; --ok-ink: #7EE39B; --ok-soft: #14301D; --warn: #FF9F0A; --warn-ink: #FFC46B; --warn-soft: #33260F; --bad: #FF453A; --bad-ink: #FF8A82; --bad-soft: #3A1C1A;
  --nav-bg: #0E0E10; --nav-grad: #0E0E10; --nav-ink: #FFFFFF; --nav-muted: #8E8E93; --nav-line: #2C2C2E; --nav-hover: #232326;
  --bar-bg: rgba(22, 22, 24, .92); --bar-line: rgba(84, 84, 88, .6);
  --shadow-3: 0 12px 40px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #000000; --panel: #1C1C1E; --panel-2: #232326; --soft: #2C2C2E; --fill: #2C2C2E; --fill-2: #3A3A3C; --line: #38383A; --line-2: #2C2C2E; --sep: rgba(84, 84, 88, .65);
  --ink: #FFFFFF; --ink-2: #EBEBF5; --muted: #A1A1A8; --muted-2: #8E8E93; --placeholder: #636366;
  --sage: #2C2C2E; --sage-2: #3A3A3C; --sage-line: #48484A; --mint: #26314A;
  --tint: #E28AA8; --tint-hover: #EFA7BE; --tint-soft: #3A2230; --tint-line: #5E3446; --tint-glow: rgba(226, 138, 168, .28); --navy-3: #B3597A;
  --ro: #FF9F0A; --ro-ink: #FFD9A3; --ro-soft: #3A2A12; --ro-line: #6B4A1F;
  --gold: #D8AE6A; --gold-2: #E2BD7E; --gold-line: #5A4628; --gold-soft: #2E2416; --gold-ink: #F0D9B4;
  --ice: #9D9BF0; --ice-2: #BEBDF7; --ice-soft: #26263F; --ice-line: #3F3F6B; --ice-glow: rgba(157, 155, 240, .25);
  --ok: #30D158; --ok-ink: #7EE39B; --ok-soft: #14301D; --warn: #FF9F0A; --warn-ink: #FFC46B; --warn-soft: #33260F; --bad: #FF453A; --bad-ink: #FF8A82; --bad-soft: #3A1C1A;
  --nav-bg: #0E0E10; --nav-grad: #0E0E10; --nav-ink: #FFFFFF; --nav-muted: #8E8E93; --nav-line: #2C2C2E; --nav-hover: #232326;
  --bar-bg: rgba(22, 22, 24, .92); --bar-line: rgba(84, 84, 88, .6);
  --shadow-3: 0 12px 40px rgba(0, 0, 0, .6);
} }

/* ---------- type: the iOS scale (body 15 on a computer, 16 on a phone; large title; small grey section titles) ---------- */
html, body { font-family: var(--font); font-size: 15px; line-height: 1.4; letter-spacing: -.01em; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--tint-glow); outline-offset: 1px; border-radius: 8px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; gap: 0; }
h1 .h1-ic { display: none; } /* iOS large titles are words only */
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; margin: 18px 0 6px; padding: 0 2px; }
.small { font-size: 13px; } .tiny { font-size: 12px; } .muted { color: var(--muted); }
a { color: var(--tint); }
b, strong { font-weight: 600; }

/* ---------- shell: iPad-style sidebar on a computer ---------- */
.shell { grid-template-columns: var(--side-w, 272px) minmax(0, 1fr); }
.side { background: var(--nav-bg); border-right: 1px solid var(--nav-line); padding: 12px 10px 10px; }
.brandmark { padding: 6px 8px 12px; gap: 10px; }
.brandmark img { height: 34px; }
.brandmark .t { font-size: 11px; color: var(--muted); letter-spacing: 0; }
.brandmark .t b { font-size: 15px; font-weight: 700; color: var(--ink); }
.ctx { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--panel); font-size: 13px; }
.ctx .nm { font-size: 15px; font-weight: 600; }
.ctx .chip { border: 0; background: var(--fill); color: var(--ink-2); font-weight: 500; border-radius: 999px; padding: 2px 9px; }
.ctx .chip.gold { background: var(--tint-soft); color: var(--tint); }
.ctx .ws-link { border-radius: 10px; font-weight: 600; background: var(--tint-soft); color: var(--tint); }
.ctx .ws-link.test { background: var(--warn-soft); color: var(--warn-ink); }
.nav-search-wrap { border: 0; border-radius: 10px; background: var(--fill-2); margin: 0 0 10px; padding: 0 10px; min-height: 36px; }
.nav-search-wrap .ic { color: var(--muted-2); }
.nav-search-wrap input { padding: 7px 0; font-size: 15px; background: transparent; border: 0; min-height: 0; }
.nav-search-wrap input::placeholder { color: var(--placeholder); }
.nav-search-wrap:focus-within { box-shadow: none; background: var(--panel); }
.side nav { gap: 0; }
.side nav .grp2 { padding: 14px 10px 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); border-radius: 0; gap: 6px; }
.side nav .grp2 .bar { display: none; }
.side nav .grp2 svg { width: 13px; height: 13px; color: var(--muted-2); }
.side nav .grp-items { padding: 0 0 2px; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; font-size: 15px; font-weight: 400; color: var(--nav-ink); min-height: 38px; }
.side nav a .ic { width: 28px; height: 28px; padding: 5px; border-radius: 7px; background: var(--gt, var(--tint)); color: #fff; box-sizing: border-box; stroke-width: 2; flex: none; }
.side nav a:hover { background: var(--nav-hover); }
.side nav a.on { background: var(--tint); color: #fff; font-weight: 500; }
.side nav a.on .ic { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.side nav a .n { background: var(--fill-2); color: var(--ink-2); font-weight: 600; border-radius: 999px; min-width: 20px; }
.side nav a .n.hot { background: var(--bad); color: #fff; }
.side .foot { border-top: 1px solid var(--nav-line); padding-top: 10px; }
.side .foot .btn { background: transparent; color: var(--ink-2); min-height: 32px; }
.side .foot .btn:hover { background: var(--nav-hover); }
.side .foot .btn.primary, .side .foot .btn.primary:hover { background: var(--tint); color: #fff; }

/* ---------- navigation bar (44px on the phone): title, the company / outlet line, search, 问 SWI ---------- */
.topbar { min-height: 56px; padding: 8px 20px; background: var(--bar-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--bar-line); gap: 10px; }
.topbar .ttl b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.topbar .ttl b .crumb { font-weight: 400; color: var(--muted); }
.topbar .ttl > span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.topbar .ws-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--tint-soft); color: var(--tint); border: 0; }
.topbar .ws-chip.sops { background: #FBEFE2; color: #8A4B00; }
.topbar .ws-chip.test { background: var(--warn-soft); color: var(--warn-ink); }
.searchbtn { border: 0; background: var(--fill-2); border-radius: 10px; padding: 7px 11px; min-width: 240px; min-height: 36px; color: var(--muted); font-size: 15px; }
.searchbtn:hover { background: var(--sage-line); color: var(--ink-2); }
.searchbtn kbd { border: 0; background: var(--panel); border-radius: 5px; color: var(--muted-2); }
.aibtn { border: 0; background: var(--ice-soft); color: var(--ice); border-radius: 10px; padding: 7px 12px; min-height: 36px; font-weight: 600; font-size: 15px; }
.aibtn:hover { background: var(--ice-line); }
.topbar .back { display: none; }
.topbar .right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar .btn.icon.menu { border: 0; background: transparent; color: var(--tint); }
.main { padding: 16px 20px 80px; }
.test-strip { border-radius: 0; }

/* ---------- page head: a large bold title, the explanation stays behind 「说明」 ---------- */
.page-head { margin-bottom: 14px; gap: 8px 14px; align-items: flex-end; }
.page-head .eyebrow { display: none; }
.page-head:has(+ .welcome) .t { display: none; } /* 今日工作: the greeting below is the large title, so the head keeps only its buttons */
.page-head:has(+ .welcome) { margin-bottom: 4px; }
.page-head:has(+ .welcome) .acts { margin-left: auto; }
.page-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
details.help summary { border: 0; border-radius: 999px; font-size: 13px; background: var(--fill); color: var(--tint); padding: 3px 10px; }
details.help p { border-radius: 12px; background: var(--panel); border: 0; color: var(--ink-2); padding: 10px 12px; }
.basis { font-size: 12px; color: var(--muted); } .basis .ic { color: var(--muted-2); }

/* ---------- surfaces: inset grouped cards, no borders, hairlines inside ---------- */
.card { border-radius: 12px; border: 0; box-shadow: none; padding: 14px 16px; margin-bottom: 14px; background: var(--panel); }
.card.tight { padding: 10px 12px; }
.card-head { margin: 0 0 10px; gap: 8px; }
.card-head > .ic:first-child { width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: var(--tint); color: #fff; }
.card-head h2 { font-size: 17px; }
.kpis { gap: 10px; margin-bottom: 14px; }
.kpi { border-radius: 12px; border: 0; background: var(--panel); padding: 12px 14px; box-shadow: none; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 400; }
.kpi b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12px; color: var(--muted-2); }
.kpi.link:hover { background: var(--panel-2); box-shadow: none; }
.kpi.ok b { color: var(--ok-ink); } .kpi.bad b { color: var(--bad); } .kpi.warn b { color: var(--warn-ink); }
.welcome { background: transparent; border: 0; padding: 2px 2px 8px; margin-bottom: 6px; gap: 12px; }
.welcome .illus { display: none; }
.welcome-hi { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.welcome-sub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.grid2, .grid3 { gap: 12px; }
.empty { padding: 26px 12px; color: var(--muted); font-size: 15px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.empty .ic { width: 34px; height: 34px; color: var(--placeholder); stroke-width: 1.5; }
.empty.quiet { padding: 10px 2px; justify-items: start; }
.skel { border-radius: 8px; background: linear-gradient(90deg, var(--fill) 0%, var(--fill-2) 40%, var(--fill) 80%); background-size: 300% 100%; }
.err-state { border-radius: 12px; border: 0; background: var(--bad-soft); color: var(--bad-ink); padding: 12px 14px; }
.err-state .ic { color: var(--bad); }
.err-state.noperm { background: var(--panel); color: var(--ink-2); }
.err-state.noperm .ic { color: var(--muted-2); }
.alert { border-radius: 12px; border: 0; padding: 10px 14px; font-size: 14px; }
.alert.info { background: var(--tint-soft); color: var(--tint); } .alert.warn { background: var(--warn-soft); color: var(--warn-ink); } .alert.bad, .alert.danger { background: var(--bad-soft); color: var(--bad-ink); } .alert.ok { background: var(--ok-soft); color: var(--ok-ink); }

/* ---------- lists & tables: 44px rows, grey small header, hairline separators, the chosen row tinted ---------- */
.tbl-wrap { border-radius: 12px; border: 0; background: var(--panel); }
table { font-size: 15px; }
table:not(.appt-grid):not(.att-grid) th, table:not(.appt-grid):not(.att-grid) td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
table:not(.appt-grid):not(.att-grid) th { background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.tbl-wrap table th { border-bottom: 1px solid var(--line); }
.tbl-wrap table tbody tr:nth-child(even) > td { background: transparent; }
.tbl-wrap table tbody tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td { background: var(--panel-2); }
tr.click { cursor: pointer; }
tr.click:hover td, .tbl-wrap table tbody tr.click:hover > td { background: var(--soft); }
tr.sel > td, tr[aria-selected="true"] > td, tr.click[aria-expanded="true"] > td, .tbl-wrap table tbody tr.sel > td, .tbl-wrap table tbody tr[aria-selected="true"] > td, .tbl-wrap table tbody tr.click[aria-expanded="true"] > td { background: var(--tint) !important; color: #fff; box-shadow: none; }
td.num, th.num { font-variant-numeric: tabular-nums; }
tfoot td, tr.total td { font-weight: 600; background: var(--panel-2); }
table.rep td:first-child, table.rep th:first-child { background: var(--panel); }
tr.tx-more > td { background: var(--panel-2); }

/* ---------- controls: tinted buttons, one filled main button, grey-fill inputs, iOS segmented control, capsule chips ---------- */
.btn { border-radius: 10px; border: 0; background: var(--tint-soft); color: var(--tint); font-weight: 600; padding: 7px 14px; min-height: 36px; box-shadow: none; font-size: 15px; letter-spacing: -.01em; }
.btn:hover { background: var(--tint-line); color: var(--tint); }
.btn:active { opacity: .7; }
.btn.small { padding: 4px 11px; min-height: 30px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 6px; min-width: 36px; } .btn.small.icon { min-width: 30px; padding: 4px; }
.btn.primary { background: var(--tint); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--tint-hover); color: #fff; }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; color: var(--tint); }
.btn.ghost:hover { background: var(--tint-soft); }
.btn.ai { background: var(--ice-soft); color: var(--ice); }
.btn.gold { background: var(--gold-soft); color: var(--gold-ink); }
.btn:disabled, .btn[disabled], .btn.primary:disabled, .btn.danger:disabled { background: var(--fill); border: 0; color: var(--placeholder); opacity: 1; }
.btn.busy { opacity: .6; }
.linkbtn { color: var(--tint); border-radius: 8px; }
.linkbtn:hover { background: var(--tint-soft); text-decoration: none; }
input, select, textarea { border: 0; border-radius: 10px; padding: 8px 12px; background: var(--fill); color: var(--ink); min-height: 38px; font-size: 15px; font-family: var(--font); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:hover, select:hover, textarea:hover { border-color: transparent; background: var(--fill-2); }
input:focus, select:focus, textarea:focus { border-color: transparent; background: var(--panel); box-shadow: 0 0 0 2px var(--tint); outline: none; }
input[type="search"] { border-radius: 10px; padding-left: 12px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--tint); min-height: 0; width: 20px; height: 20px; }
/* a lone yes／no in a form reads as an iOS switch */
label.f > input[type="checkbox"]:only-of-type, .switch > input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 999px; background: var(--fill-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
label.f > input[type="checkbox"]:only-of-type::after, .switch > input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .1); transition: transform .2s; }
label.f > input[type="checkbox"]:only-of-type:checked, .switch > input[type="checkbox"]:checked { background: var(--ok); }
label.f > input[type="checkbox"]:only-of-type:checked::after, .switch > input[type="checkbox"]:checked::after { transform: translateX(20px); }
label.f { font-size: 13px; color: var(--muted); font-weight: 400; }
.form { gap: 10px; }
.tabs { gap: 0; border-bottom: 1px solid var(--line); padding: 0; margin-bottom: 14px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 8px 12px; min-height: 40px; font-weight: 500; font-size: 15px; box-shadow: none; }
.tabs button:hover { background: transparent; color: var(--ink); border-color: transparent; }
.tabs button.on { background: transparent; color: var(--tint); border-color: var(--tint); font-weight: 600; }
.seg { background: var(--fill-2); border: 0; border-radius: 9px; padding: 2px; gap: 0; }
.seg button { border: 0; border-radius: 7px; padding: 4px 12px; min-height: 28px; font-weight: 500; color: var(--ink); font-size: 13px; background: transparent; box-shadow: none; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); font-weight: 600; }
.cats button, .pills button { border: 0; background: var(--fill); color: var(--ink); border-radius: 999px; padding: 6px 13px; font-weight: 500; font-size: 14px; }
.cats button:hover, .pills button:hover { background: var(--fill-2); color: var(--ink); }
.cats button.on, .pills button.on { background: var(--tint); color: #fff; }
.cats.big button { border-radius: 12px; }
.steps .st { border: 0; background: var(--fill); border-radius: 999px; font-size: 13px; }
.steps .st.now { background: var(--tint-soft); color: var(--tint); }
.tag { border: 0; border-radius: 999px; font-weight: 600; font-size: 12px; padding: 2px 9px; background: var(--fill); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok-ink); } .tag.bad { background: var(--bad-soft); color: var(--bad-ink); } .tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.brand, .tag.info { background: var(--tint-soft); color: var(--tint); }
.tag.gold { background: var(--gold-soft); color: var(--gold-ink); }
.test-badge { border-radius: 999px; }
.chip { border-radius: 999px; }
#toast { top: 14px; bottom: auto; left: 0; right: 0; justify-items: center; align-content: start; pointer-events: none; }
#toast div { pointer-events: auto; background: var(--bar-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--ink); border: 0; border-left: 0; border-radius: 999px; padding: 9px 16px; box-shadow: var(--shadow-2); font-size: 14px; font-weight: 500; max-width: min(92vw, 520px); }
#toast div .ic { color: var(--ok); }
#toast div.err { background: var(--bad-soft); color: var(--bad-ink); }
#toast div.err .ic { color: var(--bad); }
.modal-bg { background: rgba(0, 0, 0, .4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal { border-radius: 14px; padding: 18px 20px; border: 0; box-shadow: var(--shadow-3); background: var(--panel); }
.modal .mh { margin: 0 0 12px; }
.modal .mh h2 { font-size: 17px; font-weight: 600; }
.modal .mh .btn.icon { background: var(--fill); color: var(--muted); border-radius: 50%; width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; }
/* an iOS alert: a narrow centred box, the words centred, the buttons as full-width rows parted by hairlines */
.modal.ios-alert { width: 270px; padding: 18px 16px 0; text-align: center; border-radius: 14px; }
.modal.ios-alert .mh { display: block; }
.modal.ios-alert .mh h2 { font-size: 17px; font-weight: 600; text-align: center; }
.modal.ios-alert .mh .btn { display: none; }
.modal.ios-alert p { font-size: 13px; margin: 0 0 16px; color: var(--ink); }
.modal.ios-alert .row { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 -16px; border-top: 1px solid var(--sep); }
.modal.ios-alert .row .btn { border-radius: 0; background: transparent; color: var(--tint); font-weight: 400; min-height: 44px; font-size: 17px; border-bottom: 1px solid var(--sep); }
.modal.ios-alert .row .btn:first-child { font-weight: 600; }
.modal.ios-alert .row .btn.danger { color: var(--bad); }
.modal.ios-alert .row .btn:last-child { border-bottom: 0; }
.modal.ios-alert .row .btn:hover { background: var(--fill); }
.palette { border-radius: 14px; }
.palette .it { border-radius: 10px; }
.search-results { border-radius: 12px; box-shadow: var(--shadow-2); }
.search-results div:hover { background: var(--tint-soft); }
.work { padding: 10px 2px; gap: 10px; }
.work .bullet { width: 30px; height: 30px; border-radius: 8px; background: var(--tint-soft); color: var(--tint); }
.work.high .bullet { background: var(--bad-soft); color: var(--bad); }
.work .t { font-weight: 600; font-size: 15px; }
a.work:hover { background: var(--soft); border-radius: 10px; }
.bar { background: var(--fill); border-radius: 999px; } .bar i { background: var(--tint); border-radius: 999px; }
details > summary { color: var(--ink-2); }
.pager .btn { min-width: 36px; }

/* ---------- customer: list on the left, the record on the right ---------- */
.split-list { background: var(--panel); border: 0; border-radius: 12px; top: 72px; max-height: calc(100vh - 90px); }
.split-list .lhead { padding: 10px 10px 0; }
.split-list .lhead input[type="search"] { background: var(--fill); border: 0; min-height: 36px; }
.split-list .lhead input[type="search"]:focus { background: var(--panel); }
.split-list .ltabs { border-bottom: 1px solid var(--line-2); }
.split-list .ltabs button { font-size: 13px; color: var(--muted); }
.split-list .ltabs button.on { color: var(--tint); border-bottom-color: var(--tint); font-weight: 600; }
.split-list .lhead select { border: 0; background: var(--fill); border-radius: 999px; min-height: 28px; font-size: 13px; }
.split-list .lfoot { border-top: 1px solid var(--line-2); font-size: 13px; }
.lrow { padding: 10px 12px; border-bottom: 1px solid var(--line-2); gap: 12px; }
.lrow:hover { background: var(--panel-2); }
.lrow.on { background: var(--tint); color: #fff; }
.lrow .av { width: 40px; height: 40px; background: var(--tint-soft); color: var(--tint); font-size: 15px; }
.lrow.on .av { background: rgba(255, 255, 255, .2); color: #fff; }
.lrow .nm { font-size: 15px; font-weight: 600; }
.lrow .sub { font-size: 13px; }
.lrow .stats { font-size: 12px; } .lrow .stats .ic { color: var(--tint); }
.split-empty { border: 0; border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 15px; }
.split-empty .ic { width: 40px; height: 40px; color: var(--placeholder); stroke-width: 1.5; margin-bottom: 8px; }
.cust-hero { background: var(--panel); color: var(--ink); border: 0; border-radius: 12px; padding: 16px; }
.cust-hero .av { width: 56px; height: 56px; background: var(--tint); color: #fff; font-size: 22px; border: 0; }
.cust-hero .nm { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cust-hero .code { font-family: var(--font); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cust-hero .x { background: var(--fill); color: var(--muted); }
.cust-hero .hero-stats { border-top: 1px solid var(--line-2); }
.cust-hero .hero-stats .ic { background: var(--tint-soft); color: var(--tint); border-radius: 7px; }
.cust-hero .hero-stats span { font-size: 11px; letter-spacing: .02em; }
.cust-hero .hero-stats b { font-size: 16px; }
.cust-tabs { border-bottom: 1px solid var(--line); }
.cust-tabs button { font-size: 15px; color: var(--muted); border-bottom-width: 2px; }
.cust-tabs button.on { color: var(--tint); border-bottom-color: var(--tint); }
.cust-info .kv, .cust-side .lc { border-radius: 12px; background: var(--panel-2); }
.txn { border-radius: 12px; border: 0; background: var(--panel-2); }
.cust-card.card { padding: 12px 16px 16px; }

/* ---------- reports: capsule filters, Summary | Details as a segmented control ---------- */
.rep-crumb { font-size: 13px; } .rep-crumb a { color: var(--tint); }
.rep-filters select, .filters-bar select, .chip-select { border: 0; background-color: var(--fill); border-radius: 999px; min-height: 32px; font-size: 14px; color: var(--ink); }
.rep-filters select:hover, .filters-bar select:hover { background-color: var(--fill-2); }
.rep-filters select.on, .filters-bar select.on { background-color: var(--tint-soft); color: var(--tint); }
.rep-filters input, .filters-bar input { border: 0; background: var(--fill); border-radius: 999px; min-height: 32px; font-size: 14px; }
.rep-filters input:focus, .filters-bar input:focus { background: var(--panel); box-shadow: 0 0 0 2px var(--tint); }
.rep-view .hint { font-size: 13px; }
.tx-detail { background: var(--panel-2); border-radius: 12px; }
.filters-bar { border: 0; background: transparent; padding: 0; }

/* ---------- POS ---------- */
.pos3 .sticky { top: 72px; }
.tile, .ptile { border: 0; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-1); }
.tile:hover, .tile:focus-visible, .ptile:hover, .ptile:focus-within { box-shadow: 0 0 0 2px var(--tint); transform: none; }
.tile .pr, .ptile .pr { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tile.promo { background: var(--ro-soft); }
.tile.promo:hover, .tile.promo:focus-visible { box-shadow: 0 0 0 2px var(--ro); }
.tog { border: 0; background: var(--fill); color: var(--ink); border-radius: 999px; font-weight: 500; }
.tog:hover { background: var(--fill-2); }
.tog.on { background: var(--tint); color: #fff; }
.payq .payb { border-radius: 12px; border: 0; background: var(--fill); color: var(--ink); font-weight: 600; }
.payq .payb.on, .payq .payb:hover { background: var(--tint); color: #fff; }
.sum { font-size: 15px; } .sum.big { font-size: 22px; font-weight: 700; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.owe b { color: var(--tint); }
.vbox, .more-panel, .lb-period, .svc-head, .svc-total, .den-sum { border-radius: 12px; border: 0; }
.svc-head { background: var(--panel-2); }
.svc-total, .den-sum { background: var(--tint-soft); color: var(--tint); }
.ent, .result, .find-row, .lv-day { border-radius: 12px; }
.ent { background: var(--panel-2); border: 0; }
.result:hover, .find-row:hover { box-shadow: 0 0 0 2px var(--tint-line); border-color: transparent; }
.line.simple { border-radius: 12px; border: 0; background: var(--panel-2); }
.line.simple .field > .lab { font-size: 12px; color: var(--muted); }
.stepper button { border-radius: 8px; }
.paybar { border-radius: 14px 14px 0 0; background: var(--bar-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.svp-opt, .pick, .gcard, .wl-row, .lb-card, .lv-card { border-radius: 12px; }
.gtick { border-color: var(--tint); border-radius: 8px; } .gtick.on { background: var(--tint); border-color: var(--tint); }
.gav { background: var(--tint-soft); color: var(--tint); border-color: transparent; }
.wl-row.arrived { background: var(--tint-soft); border-color: transparent; }
.capstrip button { border-radius: 999px; }
.lv-day.today { box-shadow: inset 0 0 0 2px var(--tint); border-color: transparent; }
.rate-card, .do-sheet { border-radius: 14px; }
.tag.st-requested, .tag.st-partial { background: var(--warn-soft); color: var(--warn-ink); }
.tag.st-dispatched { background: var(--tint-soft); color: var(--tint); }
.tag.st-received { background: var(--ok-soft); color: var(--ok-ink); }
.tag.st-cancelled { background: var(--fill); color: var(--muted); }

/* ---------- login: the SWI logo on a quiet page, one grouped card ---------- */
.login-wrap { background: var(--bg); display: grid; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 6px; min-height: 100vh; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.login-brand { display: grid; justify-items: center; text-align: center; background: transparent; padding: 18px 0 8px; min-height: 0; gap: 10px; }
.login-brand img { height: 64px; width: auto; max-width: 240px; object-fit: contain; }
.login-brand .claim { max-width: 380px; }
.login-brand .claim .eyebrow { display: none; }
.login-brand .claim h1 { font-size: 30px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -.02em; }
.login-brand .claim p { color: var(--muted); font-size: 15px; margin: 0; }
.login-brand .feats { display: none; }
.login-il { display: none; }
.login-form { background: transparent; border: 0; width: min(100%, 400px); padding: 0; }
.login-card { background: var(--panel); border-radius: 14px; padding: 20px 18px; box-shadow: var(--shadow-2); width: 100%; }
.login-card h2 { font-size: 20px; margin: 0 0 2px; }
.login-card .f { margin-top: 10px; }
.login-card input { min-height: 44px; font-size: 17px; }
.login-card .btn.primary { border-radius: 12px; min-height: 48px; font-size: 17px; margin-top: 16px; width: 100%; }
.login-card .note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.login-card .login-lang { justify-content: flex-end; margin: -4px 0 4px; gap: 4px; }
.login-card .login-lang .btn, .login-card .login-lang .btn.primary { min-height: 28px; font-size: 13px; padding: 3px 11px; width: auto; margin: 0; border-radius: 8px; }

/* ---------- 问 SWI ---------- */
.ai-head { background: var(--bar-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--bar-line); }
.msg.me { background: var(--tint); color: #fff; border-radius: 18px 18px 4px 18px; }
.msg.ai { background: var(--fill); border-radius: 18px 18px 18px 4px; }
.src { border-radius: 10px; }
.ai-sugs button { border-radius: 999px; }

/* ---------- 首页大格子 (2026-11-06, TunaiPro-style home): a grid of white tiles, one number each ---------- */
.dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 18px; }
.dash-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--panel); border-radius: 16px; padding: 14px 16px; min-height: 92px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); position: relative; }
.dash-tile:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--tint-line); }
.dash-tile:active { opacity: .75; }
.dash-ic { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; background: var(--gt, var(--tint)); color: #fff; display: grid; place-items: center; }
.dash-ic .ic { width: 24px; height: 24px; stroke-width: 2; }
.dash-l { font-size: 13px; color: var(--muted); font-weight: 500; align-self: end; }
.dash-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-v.muted { color: var(--placeholder); }
.dash-v.muted .ic { width: 18px; height: 18px; }
.dash-s { grid-column: 2; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.dash-tile.hot .dash-v { color: var(--bad); }
.home-more { background: transparent; }
.home-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--panel); border-radius: 12px; color: var(--tint); font-weight: 600; font-size: 15px; cursor: pointer; margin-bottom: 14px; }
.home-more > summary::-webkit-details-marker { display: none; }
.home-more > summary .chev { margin-left: auto; color: var(--placeholder); transition: transform .2s; }
.home-more[open] > summary .chev { transform: rotate(90deg); }
@media (max-width: 1100px) { .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dash-tile { padding: 12px 12px; min-height: 84px; column-gap: 10px; } .dash-ic { width: 40px; height: 40px; } .dash-v { font-size: 22px; } }

/* ---------- 更多 (the phone's fifth tab, and the computer too): grouped lists like the iOS Settings app ---------- */
.more-me { display: flex; align-items: center; gap: 14px; }
.more-me .av { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none; }
.more-me .nm { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.more-me .ln { font-size: 13px; color: var(--muted); margin-top: 2px; }
.more-me .chev { margin-left: auto; color: var(--placeholder); }
.ios-list { background: var(--panel); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.ios-list a, .ios-list button.row-btn { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 46px; color: var(--ink); text-decoration: none; font-size: 16px; width: 100%; background: transparent; border: 0; text-align: left; cursor: pointer; font-family: var(--font); }
.ios-list a + a, .ios-list a + button.row-btn, .ios-list button.row-btn + a, .ios-list button.row-btn + button.row-btn { border-top: 1px solid var(--line-2); margin-left: 58px; padding-left: 0; padding-right: 16px; }
.ios-list a + a > .ic:first-child, .ios-list button.row-btn + button.row-btn > .ic:first-child, .ios-list a + button.row-btn > .ic:first-child, .ios-list button.row-btn + a > .ic:first-child { margin-left: -42px; }
.ios-list a:hover, .ios-list button.row-btn:hover { background: var(--panel-2); }
.ios-list a:active, .ios-list button.row-btn:active { background: var(--fill); }
.ios-list .ic.sq { width: 30px; height: 30px; padding: 6px; border-radius: 7px; background: var(--gt, var(--tint)); color: #fff; box-sizing: border-box; flex: none; }
.ios-list .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-list .val { color: var(--muted); font-size: 15px; white-space: nowrap; }
.ios-list .chev { color: var(--placeholder); width: 16px; height: 16px; flex: none; }
.ios-list .n { background: var(--bad); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; min-width: 20px; text-align: center; padding: 1px 6px; }
.ios-list.danger a, .ios-list.danger button.row-btn { color: var(--bad); justify-content: center; }
.more-ver { text-align: center; color: var(--muted-2); font-size: 12px; margin: 12px 0 30px; }

/* ---------- no text sidebar any more (Yuki 2026-11-06 「把旁边那一堆字换成这样在上面大格子」): tiles on the first screen and
   under 更多, the five-tab bar on every screen size, the back link in the top bar on the computer too ---------- */
.side, .side-grip, .topbar .btn.icon.menu { display: none !important; }
.shell { grid-template-columns: minmax(0, 1fr) !important; }
.main { max-width: 1240px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.topbar .back { display: inline-flex; align-items: center; color: var(--tint); background: transparent; border: 0; font-size: 15px; padding: 6px 4px 6px 0; min-height: 36px; cursor: pointer; font-family: var(--font); }
.topbar .back .ic { width: 20px; height: 20px; stroke-width: 2.2; margin-right: -2px; }
.topbar .back:empty { display: none; }
.topbar .back .lbl { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-tile .dash-v .n { background: var(--bad); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; min-width: 20px; padding: 1px 7px; text-align: center; }
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; min-height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); background: var(--bar-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--bar-line); }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 5px 2px 3px; color: var(--muted-2); text-decoration: none; font-size: 10px; font-weight: 500; letter-spacing: 0; position: relative; min-width: 0; }
.tabbar a .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.tabbar a.on { color: var(--tint); }
.tabbar a.on .ic { stroke-width: 2.2; }
.tabbar a .n { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--bad); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 600; min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 4px; }
.tabbar a span.lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (min-width: 901px) {
  .main { padding-bottom: calc(var(--tab-h) + 28px); }
  .tabbar { grid-auto-columns: 132px; justify-content: center; }
  .tabbar a { font-size: 11px; }
  .topbar { grid-template-columns: auto 1fr auto; display: grid; align-items: center; gap: 12px; }
  .topbar .ttl b { font-size: 17px; }
}
/* ---------- tab bar (phones: the same bar, compact) ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { width: 300px; }
  .topbar { padding: 6px 12px; min-height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; }
  .topbar .btn.icon.menu { display: none; }
  .topbar .back { display: inline-flex; align-items: center; gap: 0; color: var(--tint); background: transparent; border: 0; font-size: 17px; padding: 6px 4px 6px 0; min-height: 36px; justify-self: start; cursor: pointer; font-family: var(--font); }
  .topbar .back .ic { width: 22px; height: 22px; stroke-width: 2.2; margin-right: -2px; }
  .topbar .back .lbl { max-width: 22vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .back:empty { display: none; }
  .topbar .ttl { grid-column: 2; text-align: center; min-width: 0; }
  .topbar .ttl b { font-size: 17px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
  .topbar .ttl b .crumb { display: none; }
  .topbar .ttl > span { justify-content: center; font-size: 12px; }
  .topbar .ttl > span .ws-chip { display: none; }
  .topbar .right { grid-column: 3; display: flex; justify-content: flex-end; gap: 2px; }
  .searchbtn { min-width: 0; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; color: var(--tint); justify-content: center; }
  .searchbtn .lbl, .searchbtn kbd { display: none; }
  .searchbtn .ic { width: 22px; height: 22px; }
  .aibtn { padding: 0; width: 36px; height: 36px; border-radius: 50%; background: transparent; justify-content: center; }
  .aibtn .lbl { display: none; }
  .aibtn .ic { width: 22px; height: 22px; }
  .main { padding: 14px 16px calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px); }
  .page-head { flex-wrap: wrap; }
  .page-head .acts { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; max-width: 100%; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .page-head .acts::-webkit-scrollbar { display: none; }
  .page-head .acts .btn { flex: none; min-height: 36px; font-size: 15px; padding: 6px 14px; border-radius: 10px; white-space: nowrap; }
  .aibtn { position: relative; }
  .aibtn .dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; margin: 0; }
  body.has-tabbar #toast { bottom: auto; }
  .paybar { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .side .foot, .side .brandmark .t { display: none; }
}
@media (max-width: 640px) {
  html, body { font-size: 16px; }
  h1 { font-size: 30px; }
  .welcome-hi { font-size: 30px; }
  .btn { min-height: 44px; font-size: 16px; border-radius: 12px; } .btn.small { min-height: 32px; font-size: 13px; border-radius: 8px; } .btn.small.icon { min-width: 32px; }
  input, select, textarea { min-height: 44px; font-size: 16px; }
  .tabs button { min-height: 42px; }
  .page-head { gap: 6px 12px; margin-bottom: 12px; }
  .card { padding: 12px 14px; margin-bottom: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi b { font-size: 22px; }
  table { font-size: 15px; }
  table:not(.appt-grid):not(.att-grid) th, table:not(.appt-grid):not(.att-grid) td { padding: 10px 12px; }
  .tbl-wrap table:not(.appt-grid):not(.roster table) { width: max-content; min-width: 100%; }
  .modal { border-radius: 14px 14px 0 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 92vh; }
  .modal::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 999px; background: var(--sage-line); margin: -12px auto 12px; }
  .modal.ios-alert { border-radius: 14px; padding: 18px 16px 0; max-height: none; }
  .modal.ios-alert::before { display: none; }
  .modal .mh .btn.icon { display: none; } /* the sheet closes by a tap outside or the grabber's swipe; the Esc button is a computer thing */
  .cust-hero { padding: 12px; } .cust-hero .nm { font-size: 19px; }
  .empty { padding: 22px 8px; }
}
}
