/* SmartConnect's look, shared by every page (linked after each page's own <style>, so it sets the look while
   the pages keep their layout). Tokens, then base, then components; no text of its own.
   - Buttons: primary (the one action), secondary (grey, the default), ghost (text), icon, danger.
   - Segmented (.subtabs .tabs .seg): sections and statuses, one choice. Chips (.chips): filters.
   - Pills (.badge .sev .margin .tag): status. Notices (.banner, .card.note): neutral unless something's wrong.
   - .empty: an empty list's sentence, with an icon. .actionbar: buttons kept at the thumb, clear of the home bar. */

/* ===== tokens ===== */
:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  /* the text sizes, the only ones (the review, 6 Oct 2026: 23 were in use): xs captions, sm secondary, ui controls and lists,
     md body, lg headings and a phone's main text, xl page titles, 2xl the big figures, display a reading or a keypad.
     Besides: 16px fields on a phone (an iPhone zooms into smaller), the menu's 10.5px names, printed lists in pt. */
  --fs-xs: 12px; --fs-sm: 13px; --fs-ui: 14px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 26px; --fs-display: 34px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-full: 999px; --h-ctl: 36px; --h-chip: 32px;
  --bg: #f2f3f5; --panel: #fff; --panel-2: #eceef0; --raised: #fff; --fg: #14191c; --muted: #5d6970; --line: #e3e7ea; --line-2: #c8cfd4;
  --accent: #0e8545; --accent-ink: #fff; --accent-soft: #e1f3e8; --warn: #8a5200; --warn-soft: #fff1d6;
  --danger: #c42b1c; --danger-soft: #fde8e6; --badge: #e5484d; --in: #fff; --out: #d6f4df;
  --shadow-1: 0 1px 2px rgb(16 24 32 / .06), 0 0 0 1px rgb(16 24 32 / .05); --shadow-2: 0 12px 32px rgb(16 24 32 / .18);
  --glass: rgb(255 255 255 / .86);
  --pill: rgb(255 255 255 / .74); --pill-line: rgb(255 255 255 / .75); --pill-rim: rgb(255 255 255 / .95);  /* the floating menu: glass */
  --pill-sheen: rgb(255 255 255 / .4); --pill-bright: 1.1; --pill-outline: rgb(16 24 32 / .1); --pill-tint: rgb(255 255 255 / .16);
  --sel: var(--accent-soft); --warn-bg: var(--warn-soft); --danger-bg: var(--danger-soft);  /* the pages' older names */
  --chev: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6970' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");  /* a select's arrow */
  --i-back: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m15 18-6-6 6-6'/></svg>");
  --i-info: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4M12 8h.01'/></svg>");
  --i-alert: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4M12 17h.01'/></svg>");
  --i-check: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
  --i-calendar: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>");
  --i-archive: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='3' width='20' height='5' rx='1'/><path d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8M10 12h4'/></svg>");
  --i-empty: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M22 12h-6l-2 3h-4l-2-3H2'/><path d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/></svg>");
  /* the pages, for the menu at the bottom on a phone (Lucide shapes) */
  --i-chats: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/></svg>");
  --i-orders: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='8' height='4' x='8' y='2' rx='1'/><path d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01'/></svg>");
  --i-store: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73zM12 22V12'/><path d='m3.3 7 7.7 4.7a2 2 0 0 0 2 0L20.7 7M7.5 4.27l9 5.15'/></svg>");
  --i-payments: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/><path d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/></svg>");
  --i-supply: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2M15 18H9M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 17.52 8H14'/><circle cx='17' cy='18' r='2'/><circle cx='7' cy='18' r='2'/></svg>");
  --i-prices: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12.59 2.59A2 2 0 0 0 11.17 2H4a2 2 0 0 0-2 2v7.17a2 2 0 0 0 .59 1.42l8.7 8.7a2.43 2.43 0 0 0 3.42 0l6.58-6.58a2.43 2.43 0 0 0 0-3.42z'/><circle cx='7.5' cy='7.5' r='1.5'/></svg>");
  --i-key: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/><circle cx='16.5' cy='7.5' r='.5' fill='black'/></svg>");
  --i-market: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10h16l-1.5 9.2a2 2 0 0 1-2 1.8h-9a2 2 0 0 1-2-1.8z'/><path d='M8 10l4-6 4 6M9 14v3M15 14v3M12 14v3'/></svg>");
  --i-safety: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><path d='m8.5 12 2.5 2.5 4.5-5'/></svg>");
  --i-settings: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/><circle cx='12' cy='12' r='3'/></svg>");
  --i-deliver: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 4.99-5.54 10.19-7.4 11.8a1 1 0 0 1-1.2 0C9.54 20.19 4 14.99 4 10a8 8 0 0 1 16 0'/><path d='m9 10 2 2 4-4'/></svg>");
  --i-more: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='7' height='7' x='3' y='3' rx='1.5'/><rect width='7' height='7' x='14' y='3' rx='1.5'/><rect width='7' height='7' x='14' y='14' rx='1.5'/><rect width='7' height='7' x='3' y='14' rx='1.5'/></svg>");
  --i-filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5h18l-7 8.5V19l-4 2v-7.5z'/></svg>");
}
/* dark: black like the phone's own bars around it (the top bar and the menu at the bottom are black glass). The look
   chosen in the account menu (auth.js) sets data-theme: dark whatever the phone says, light likewise, or the phone's */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --panel: #141719; --panel-2: #22272b; --raised: #30363b; --fg: #eef1f3; --muted: #9ba7ae; --line: #25292d; --line-2: #3b4349;
    --accent: #3ccf7a; --accent-ink: #03140a; --accent-soft: rgb(60 207 122 / .16); --warn: #f5bd5c; --warn-soft: rgb(245 189 92 / .14);
    --danger: #ff8f85; --danger-soft: rgb(255 143 133 / .15); --in: #22272b; --out: #14472c;
    --shadow-1: none; --shadow-2: 0 12px 36px rgb(0 0 0 / .6); --glass: rgb(0 0 0 / .88); --chev: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba7ae' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); --pill: rgb(40 40 46 / .78); --pill-line: rgb(255 255 255 / .18); --pill-rim: rgb(255 255 255 / .3); --pill-sheen: rgb(255 255 255 / .12); --pill-bright: .9; --pill-outline: rgb(0 0 0 / .4); --pill-tint: rgb(24 24 28 / .22);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000; --panel: #141719; --panel-2: #22272b; --raised: #30363b; --fg: #eef1f3; --muted: #9ba7ae; --line: #25292d; --line-2: #3b4349;
  --accent: #3ccf7a; --accent-ink: #03140a; --accent-soft: rgb(60 207 122 / .16); --warn: #f5bd5c; --warn-soft: rgb(245 189 92 / .14);
  --danger: #ff8f85; --danger-soft: rgb(255 143 133 / .15); --in: #22272b; --out: #14472c;
  --shadow-1: none; --shadow-2: 0 12px 36px rgb(0 0 0 / .6); --glass: rgb(0 0 0 / .88); --chev: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba7ae' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); --pill: rgb(40 40 46 / .78); --pill-line: rgb(255 255 255 / .18); --pill-rim: rgb(255 255 255 / .3); --pill-sheen: rgb(255 255 255 / .12); --pill-bright: .9; --pill-outline: rgb(0 0 0 / .4); --pill-tint: rgb(24 24 28 / .22);
}
:root[data-theme="light"] { color-scheme: light; }
@media (max-width: 760px) {
  :root { --h-ctl: 44px; --h-chip: 36px; }
  .subtabs > a, .tabs > button, .seg > *, .switch > button { flex: 1 1 auto; padding: 0 8px; font-size: var(--fs-ui); }
}

/* ===== base ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--fs-md)/1.45 var(--font); -webkit-font-smoothing: antialiased; }
/* a phone on its side: the page clear of the notch and the rounded corners (viewport-fit=cover lets it run under
   them; the review, 6 Oct 2026, #29). 0 everywhere else; Deliveries' map pads its own controls */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@media print { body { padding-left: 0; padding-right: 0; } }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: var(--fs-xl); font-weight: 700; } h2 { font-size: var(--fs-lg); font-weight: 650; }
.muted { color: var(--muted); } .small { font-size: var(--fs-sm); } [hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 2px; }
.num, td.num, .qty, .price { font-variant-numeric: tabular-nums; }

/* ===== buttons ===== */
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--h-ctl); padding: 0 14px;
  border: 0; border-radius: var(--r-sm); background: var(--panel-2); color: var(--fg); font-weight: 500; cursor: pointer;
  touch-action: manipulation; }
button:active { transform: scale(.98); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.ghost { background: transparent; color: var(--accent); padding: 0 8px; }
button.icon { width: var(--h-ctl); padding: 0; background: transparent; }
button.danger { background: transparent; color: var(--danger); }
.ic::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ===== segmented: sections and statuses ===== */
.subtabs, .tabs, .seg, .switch { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel-2); overflow-x: auto;
  scrollbar-width: none; max-width: 100%; }
.subtabs.single { display: none; }  /* a role with one choice: no switch */
.subtabs::-webkit-scrollbar, .tabs::-webkit-scrollbar, .seg::-webkit-scrollbar, .switch::-webkit-scrollbar { display: none; }
.subtabs > a, .tabs > button, .seg > *, .switch > button { flex: 1 0 auto; min-height: calc(var(--h-ctl) - 6px); display: inline-flex; align-items: center;
  justify-content: center; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted);
  font-weight: 500; text-decoration: none; white-space: nowrap; }
.subtabs > [aria-current], .tabs > [aria-current], .seg > [aria-current], .switch > [aria-current] { background: var(--raised); color: var(--fg); font-weight: 600;
  box-shadow: 0 1px 3px rgb(0 0 0 / .14); }

/* ===== chips: filters ===== */
.chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.chips::-webkit-scrollbar { display: none; }
.chips > button, button.chip { flex: none; min-height: var(--h-chip); padding: 0 14px; border-radius: var(--r-full); background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-sm); }
.chips > button[aria-current], button.chip[aria-pressed], button.chip[aria-current] { background: var(--accent-soft); color: var(--accent);
  box-shadow: none; font-weight: 600; }

/* a chip's count: one look on every page (the review, 6 Oct 2026: nine kinds of count) */
:is(.chips > button, button.chip, .days > button) .n { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; margin: 0 -6px 0 6px;
  box-sizing: border-box; border-radius: 10px; background: var(--panel-2); color: var(--fg); font-size: var(--fs-xs); font-weight: 700;
  line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
:is(.chips > button, button.chip, .days > button):is([aria-current], [aria-pressed]) .n { background: var(--accent); color: var(--accent-ink); }

/* ===== a day: Today, Tomorrow, Day after at a tap, and a calendar chip for any other (the date field lies over it,
   unseen, so a tap opens the phone's own picker; the chip shows the day chosen) ===== */
.days { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.day-other { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-chip); padding: 0 12px;
  border-radius: var(--r-full); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-sm); color: var(--fg); cursor: pointer; overflow: hidden; }
.day-other::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--i-calendar) center / contain no-repeat; mask: var(--i-calendar) center / contain no-repeat; }
.day-other > span:empty { display: none; }  /* no day of its own yet: the icon alone */
.day-other[aria-pressed] { background: var(--accent-soft); color: var(--accent); box-shadow: none; font-weight: 600; }
.day-other:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.day-other > input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0;
  border: 0; opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }

/* ===== fields ===== */
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: var(--h-ctl); padding: 0 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--panel); }
textarea { padding: 10px 12px; }
/* A select's arrow is the app's own, with room on the right (the browsers' sit hard against the edge, each in its own way).
   !important: the language and View as menus set their look inline. */
select { -webkit-appearance: none; appearance: none; text-overflow: ellipsis; padding-right: 34px !important;
  background-image: var(--chev) !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 14px 14px !important; }
select[multiple], select[size]:not([size="1"]) { background-image: none !important; padding-right: 12px !important; }
dialog:focus, dialog [data-sheet-title]:focus { outline: none; }  /* a sheet opened: its title has the focus, without a ring */
:is(input, select, textarea):focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
@media (max-width: 760px) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; } }

/* ===== surfaces ===== */
.card { background: var(--panel); border: 0; border-radius: var(--r-md); box-shadow: var(--shadow-1); }

/* ===== pills: status ===== */
.badge, .sev, .margin, .tag:not(.bubble .tag) { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 0;
  border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; background: var(--panel-2); color: var(--muted); }
.badge.ok, .margin, .tag.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn, .sev.check, .margin.low, .tag:not(.bubble .tag):not(.ok) { background: var(--warn-soft); color: var(--warn); }
.sev.before_delivery, .margin.loss, .badge.bad { background: var(--danger-soft); color: var(--danger); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px;
  background: var(--badge); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 1; }

/* ===== notices: neutral, coloured only when something's wrong ===== */
.banner, .card.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 0; border-radius: var(--r-md);
  background: var(--panel-2); color: var(--fg); font-size: var(--fs-sm); box-shadow: none; }
.banner::before, .card.note::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: var(--muted);
  -webkit-mask: var(--i-info) center / contain no-repeat; mask: var(--i-info) center / contain no-repeat; }
.banner.warn { background: var(--warn-soft); color: var(--fg); }
.banner.warn::before { background: var(--warn); -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
.banner.bad { background: var(--danger-soft); color: var(--fg); }
.banner.bad::before { background: var(--danger); -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
.banner.ok { background: var(--accent-soft); color: var(--fg); }
.banner.ok::before { background: var(--accent); -webkit-mask-image: var(--i-check); mask-image: var(--i-check); }

/* ===== the day: Today, Tomorrow, or any day from the phone's own calendar (the date field lies over it, unseen, and it
   shows the day in the page's language); one switcher for every page that picks a day (the review's L2) ===== */
.dayseg { display: inline-flex; height: var(--h-tool, 36px); border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--panel); overflow: hidden; }
.dayseg > * { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 0;
              margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: none; color: var(--fg); font-size: var(--fs-ui); font-weight: 500;
              white-space: nowrap; cursor: pointer; }
.dayseg > * + * { border-left: 1px solid var(--line-2, var(--line)); }
.dayseg > button:active { transform: none; background: var(--panel-2); }
.dayseg > [aria-current] { background: var(--accent-soft, var(--sel)); color: var(--accent); font-weight: 600; }
.dayseg .pick::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
                        -webkit-mask: var(--i-calendar) center / contain no-repeat; mask: var(--i-calendar) center / contain no-repeat; }
.dayseg .pick > input { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
                        opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.dayseg > button:focus-visible, .dayseg .pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ===== empty state: the page's own sentence, with an icon ===== */
.empty { display: grid; justify-items: center; gap: 10px; padding: var(--s6) var(--s5); text-align: center; color: var(--muted); }
.empty::before { content: ""; width: 44px; height: 44px; background: currentColor; opacity: .45;
  -webkit-mask: var(--i-empty) center / contain no-repeat; mask: var(--i-empty) center / contain no-repeat; }
.empty.done::before { -webkit-mask-image: var(--i-check); mask-image: var(--i-check); color: var(--accent); opacity: .7; }  /* all done: a tick */

/* ===== action bar at the thumb ===== */
.actionbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line); }
.actionbar > button { flex: 1; min-height: 48px; } .actionbar > .primary { flex: 2; }

/* ===== the section switch (Orders: WhatsApp / Genting POs / Market; Store: Checklist / Weights / Temperatures; Prices): one place
   on every page, right under the title row at the left (the review's #16: it sat in seven places, 339 to 1,248 px wide) ===== */
.section-switch { flex: none; box-sizing: border-box; width: min(440px, calc(100% - 32px)); margin: 12px 16px 0; }
.section-switch[hidden], .section-switch.single { display: none; }
.section-switch + .split { margin-top: 12px; border-top: 1px solid var(--line); }  /* a list and its item below it */
@media print { .section-switch { display: none; } }
@media (max-width: 760px) {
  .section-switch { width: auto; margin: 10px 12px 0; }
  .section-switch > a { padding: 0 6px; font-size: var(--fs-sm); }  /* four (the Store's) fit a phone's width */
  body:has(.split.open, .split.detail:not([hidden])) .section-switch { display: none; }
}

/* ===== an item open on a phone (a chat, an order, an issue): its own head, with ‹ back, is the top of the page; the app's
   title row goes (the review, 6 Oct 2026: two headers, 215pt before the first message) ===== */
@media (max-width: 760px) {
  body:has(.split.open, .split.detail:not([hidden])) header.topbar { display: none; }
}

/* ===== dialogs: a sheet from the bottom on a phone ===== */
dialog { border: 0; border-radius: var(--r-lg); background: var(--panel); color: var(--fg); box-shadow: var(--shadow-2); }
dialog::backdrop { background: rgb(0 0 0 / .45); }
/* the app's confirmation sheet (auth.js SCAsk): a title, a line, Cancel and the action's own word */
dialog.sc-ask { width: min(420px, calc(100% - 32px)); padding: 20px 20px 16px; }
dialog.sc-ask h3 { margin: 0 0 8px; font-size: var(--fs-lg); }
dialog.sc-ask p { margin: 0 0 18px; color: var(--muted); font-size: var(--fs-md); }
dialog.sc-ask .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
dialog.sc-ask .dialog-actions button { min-height: 44px; padding: 0 18px; }
dialog.sc-first-lang .sc-langs { display: grid; gap: 8px; margin-top: 12px; }
dialog.sc-first-lang .sc-langs button { min-height: 48px; font-size: var(--fs-md); }
dialog.sc-ask button.danger-fill { background: var(--danger); color: #fff; border-color: transparent; font-weight: 600; }
@media (max-width: 760px) {
  dialog { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 18px 18px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ===== a touch tablet (an iPad): fingers, not a mouse: buttons and chips as tall as on a phone ===== */
@media (pointer: coarse) and (min-width: 761px) {
  :root { --h-ctl: 44px; --h-chip: 36px; }
}

/* ===== top menu (the look; auth.js keeps the layout) ===== */
header.topbar { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); }
header.topbar :is(a, nav > button) { position: relative; background: none; border: 0; border-radius: 0; color: var(--muted); font-weight: 500;
  padding: 0 12px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; box-shadow: none; }
header.topbar :is(a[aria-current], nav > button[aria-current=true]) { color: var(--fg); font-weight: 600; background: none; }
header.topbar :is(a[aria-current], nav > button[aria-current=true])::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
header.topbar > strong, header.topbar .sc-links > strong { font-weight: 700; }
@media (max-width: 760px) {
  header.topbar > .sc-links { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  header.topbar :is(a, nav > button) { min-height: 52px; }
  header.topbar :is(a[aria-current], nav > button[aria-current=true])::after { bottom: 0; }
}

/* ===== moving between pages: the old screen stays until the new one is drawn (no white flash), the top bar
   and the menu at the bottom stay put, the rest fades (Safari 18.2+, Chrome 126+; elsewhere a plain load) ===== */
@view-transition { navigation: auto; }
header.topbar { view-transition-name: sc-top; }
#sc-tabbar { view-transition-name: sc-tabs; }
::view-transition-group(root) { animation-duration: .18s; }
/* the menu at the bottom isn't cross-faded: the next page shows it as it is, its drop still sliding from the tap
   (auth.js carries it on); a fade showed the drop twice, the old page's stopped half-way */
::view-transition-group(sc-tabs), ::view-transition-new(sc-tabs) { animation: none; }
::view-transition-old(sc-tabs) { animation: none; opacity: 0; }
::view-transition-old(sc-tabs):only-child { animation: sc-fade-out .18s both; }  /* a page without it: it fades with the page */
@keyframes sc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ===== the menu at the bottom, on a phone (auth.js builds it from the top menu's links) ===== */
:root { --sc-nav: 0px; }  /* how much of the bottom it takes; fixed bars and toasts stay clear of it */
#sc-tabbar, #sc-title { display: none; }
@media (max-width: 760px) {
  /* a floating pill: the pages as icons, the current one a green capsule with its name. It floats clear of an
     iPhone's home bar (safe area; Safari's own toolbar sits below the page) or an Android's gesture bar */
  body.sc-has-tabs { --sc-pill-gap: max(12px, calc(env(safe-area-inset-bottom) + 4px));
    --sc-nav: calc(56px + var(--sc-pill-gap) + 8px); padding-bottom: var(--sc-nav); }
  body.sc-has-tabs header.topbar > .sc-links { display: none; }  /* the pages are at the bottom: the top says where you are */
  body.sc-has-tabs #sc-title { display: block; flex: 1; min-width: 0; padding: 0 16px; font-size: var(--fs-lg); font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Liquid Glass, as on iOS 26: see-through (what's under it blurred and brightened), a bright rim along the top,
     a soft sheen, a thin light edge; the current page a glossy green drop */
  body.sc-has-tabs #sc-tabbar { position: fixed; left: 50%; bottom: var(--sc-pill-gap); transform: translateX(-50%); z-index: 40;
    display: flex; align-items: center; justify-content: space-evenly; gap: 2px; height: 56px; width: min(90vw, 640px); padding: 0 6px; border-radius: 28px;
    background: var(--pill); border: 1px solid var(--pill-line); isolation: isolate;
    box-shadow: inset 0 1px 0 var(--pill-rim), inset 0 -1px 1px rgb(255 255 255 / .06), inset 0 0 12px rgb(255 255 255 / .05),
                0 0 0 .5px var(--pill-outline), 0 10px 30px rgb(0 0 0 / .2), 0 1px 3px rgb(0 0 0 / .1);
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(var(--pill-bright));
    backdrop-filter: blur(16px) saturate(180%) brightness(var(--pill-bright)); }
  body.sc-has-tabs #sc-tabbar::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, var(--pill-sheen) 0%, transparent 48%),
                radial-gradient(120% 90% at 50% 120%, rgb(255 255 255 / .06), transparent 60%); }
  /* the glass's own layers (glass.js: SCGlass.mount): what it lets through, bent, and the light on its edge. Under the sheen
     above and the tabs; without the script, or with Flat chosen, none of this is there and the glass is the CSS above */
  #sc-tabbar > .sc-glass { position: absolute; inset: -1px; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
  #sc-tabbar { --sc-frost: 1.4px; --sc-vivid: 1.5; --sc-glass-fx: blur(var(--sc-frost)) saturate(var(--sc-vivid)); }
  #sc-tabbar .sc-mirror { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; filter: var(--sc-lens-filter) var(--sc-glass-fx); }
  #sc-tabbar .sc-rim { position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat; }
  body.sc-has-tabs #sc-tabbar.sc-lens { border-color: transparent; }
  body.sc-has-tabs #sc-tabbar.sc-lens-mirror.sc-lens-ready { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.sc-has-tabs #sc-tabbar.sc-lens-backdrop { -webkit-backdrop-filter: var(--sc-lens-filter) var(--sc-glass-fx);
    backdrop-filter: var(--sc-lens-filter) var(--sc-glass-fx); }
  body.sc-has-tabs #sc-tabbar.sc-lens-mirror.sc-lens-ready::before { background: linear-gradient(180deg, var(--pill-sheen) 0%, transparent 48%), var(--pill-tint); }
  /* opened from the Home Screen (full screen): a little more room above the phone's home bar */
  @media (display-mode: standalone) {
    body.sc-has-tabs { --sc-pill-gap: max(18px, calc(env(safe-area-inset-bottom) + 6px)); }
  }
  /* an open chat, order or issue, or typing: the screen is theirs */
  body.sc-has-tabs:is(.sc-typing, :has(.split.open:not([hidden])), :has(.split.detail:not([hidden]))) { --sc-nav: 0px; }
  body.sc-has-tabs:is(.sc-typing, :has(.split.open:not([hidden])), :has(.split.detail:not([hidden]))) #sc-tabbar { display: none; }
  /* the account menu open: all of it reachable (Sign out was under the menu) */
  body.sc-has-tabs:has(#sc-account-panel:not([hidden])) #sc-tabbar { display: none; }
  /* 90% of the screen wide: the pages spread evenly over it (as many as a role has: 3 to 5), each its icon over its name
     (the review, 6 Oct 2026: icons alone meant nothing to a packer); the current one on the green drop */
  #sc-tabbar .sc-tab { position: relative; flex: 1 1 0; max-width: 92px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px; min-width: 0; height: 48px; margin: 0; padding: 0 2px; border: 0; border-radius: 24px; background: none;  /* margin: a page's own button margins (Settings') */
    color: var(--fg); color: color-mix(in srgb, var(--fg) 82%, transparent);  /* strong enough over what shows through the glass */
    font-size: 10.5px; font-weight: 600; line-height: 1.1; text-decoration: none; box-shadow: none; z-index: 1; }  /* its green: the drop's, then at once its own */
  /* pressed: the icon gives under the finger and springs back (the tab itself may be sliding: auth.js) */
  #sc-tabbar .sc-tab:active { transform: none; }
  #sc-tabbar .sc-ico { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  #sc-tabbar .sc-tab:active .sc-ico { transform: scale(.8); transition-duration: .08s; }
  #sc-tabbar .sc-tab[aria-current] { color: var(--accent-ink); }
  #sc-tabbar { --sc-edge: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(0 0 0 / .12); --sc-glow: 0 2px 8px color-mix(in srgb, var(--accent) 45%, transparent); }
  #sc-tabbar .sc-tab[aria-current], #sc-tabbar .sc-drop > i {
    background: linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 55%), var(--accent); box-shadow: var(--sc-edge), var(--sc-glow); }
  /* a tab tapped: the green drop slides over to it, stretching on the way (auth.js); it is the green meanwhile. Two
     round ends and a band between them, moved and stretched by transform alone (the compositor's: smooth) */
  #sc-tabbar .sc-drop { position: absolute; left: 0; z-index: 0; pointer-events: none; }
  #sc-tabbar .sc-drop > i { position: absolute; top: 0; left: 0; width: 100px; height: 100%; transform-origin: 0 0; }
  #sc-tabbar .sc-drop > i:nth-child(3n + 1) { border-radius: 999px 0 0 999px; } #sc-tabbar .sc-drop > i:nth-child(3n + 2) { border-radius: 0 999px 999px 0; }
  /* the three glows first, under the three colours (a glow over the piece beside it shaded its sheen: a line at the
     join), and the band over the ends (an end's edge over the band, stretched, showed a faint line in WebKit too) */
  #sc-tabbar .sc-drop > i:nth-child(-n + 3) { background: none; box-shadow: var(--sc-glow); }
  #sc-tabbar .sc-drop > i:nth-child(n + 4) { box-shadow: var(--sc-edge); }
  #sc-tabbar.sc-sliding .sc-tab[aria-current] { background: none; box-shadow: none; }
  /* meanwhile the colours change over: the old look laid on the icon, and the old name, fading (auth.js) */
  #sc-tabbar .sc-was { position: absolute; inset: 1px; background: var(--fg); background: color-mix(in srgb, var(--fg) 82%, transparent);
    -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
  #sc-tabbar .sc-was.sc-on { background: var(--accent-ink); }
  #sc-tabbar .sc-was-label { display: none !important; }  /* (every tab keeps its name now) */
  #sc-tabbar .sc-was-label-off { position: absolute; z-index: 1; display: flex; align-items: center; color: var(--accent-ink);
    font-size: var(--fs-ui); font-weight: 600; line-height: 1; white-space: nowrap; pointer-events: none; }
  #sc-tabbar .sc-label { position: relative; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #sc-tabbar .sc-was-text { position: absolute; inset: 0; color: var(--fg); pointer-events: none; }  /* the name's dark, fading to its white */
  #sc-tabbar .sc-ico { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
  #sc-more .sc-ico { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 10px; }
  :is(#sc-tabbar, #sc-more) .sc-ico::before { content: ""; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
  #sc-tabbar .nav-badge { position: absolute; top: 1px; left: calc(50% + 5px); margin: 0; box-shadow: 0 0 0 2px var(--panel); }  /* on the icon's corner */
  #sc-tabbar .sc-tab[aria-current] .nav-badge { box-shadow: 0 0 0 2px var(--accent); }
  :is(#sc-tabbar, #sc-more) .nav-badge.soft { background: var(--panel-2); color: var(--fg); box-shadow: 0 0 0 2px var(--panel), inset 0 0 0 1px var(--line-2); }
  #sc-tabbar .nav-badge.sc-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 4px; left: calc(50% + 7px); }  /* something waiting under More */
  /* the rest of the pages, from More */
  #sc-more { padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); }
  #sc-more[open] { animation: sc-sheet-up .32s cubic-bezier(.2, .9, .25, 1.04); }  /* slides up from the menu */
  #sc-more[open]::backdrop { animation: sc-fade-in .25s ease-out; }
  @keyframes sc-sheet-up { from { transform: translateY(100%); } }
  @keyframes sc-fade-in { from { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { #sc-tabbar .sc-ico { transition: none; } #sc-more[open], #sc-more[open]::backdrop { animation: none; } }
  #sc-more a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; border-radius: 12px; color: var(--fg);
    font-size: var(--fs-lg); text-decoration: none; }
  #sc-more a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  #sc-more .sc-ico { width: 36px; color: var(--muted); } #sc-more a[aria-current] .sc-ico { color: var(--accent); }
  #sc-more .nav-badge { margin-left: auto; }
  /* what's pinned to the bottom sits above the menu */
  .actionbar { bottom: var(--sc-nav); }
  body.sc-has-tabs :is(#toast, .toast) { margin-bottom: var(--sc-nav); }
}

/* Pull down to refresh (the Home Screen app: auth.js) and the bar that offers a new version */
#sc-pull { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 10px); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--panel); color: var(--fg); box-shadow: var(--shadow-2, 0 6px 20px rgb(0 0 0 / .18));
  font-size: var(--fs-ui); font-weight: 600; pointer-events: none; opacity: 0;
  transform: translate(-50%, calc(-60px + var(--pull, 0) * 70px)); transition: opacity .15s; }
#sc-pull.show { opacity: 1; }
#sc-pull i { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i-back) center / 18px no-repeat; mask: var(--i-back) center / 18px no-repeat;
  transform: rotate(-90deg); transition: transform .2s; }
#sc-pull.ready i { transform: rotate(90deg); color: var(--accent); }
#sc-pull.loading i { animation: sc-spin .8s linear infinite; }
@keyframes sc-spin { to { transform: rotate(270deg); } }
#sc-update { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 10px); transform: translateX(-50%); z-index: 59; display: flex; gap: 8px;
  align-items: center; max-width: calc(100% - 32px); padding: 10px 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-2, 0 6px 20px rgb(0 0 0 / .18)); font: inherit; font-size: var(--fs-ui); cursor: pointer; white-space: nowrap; }
#sc-update span { opacity: .85; }

/* The keyboard up (auth.js keyboardFit): the box typed in is scrolled clear of a page's sticky head and its bar at the
   bottom (an order's Dismiss / Create sat over its last price box, 10 Oct 2026) */
html.sc-keys :is(input, textarea, select, [contenteditable]) { scroll-margin: 72px 0 120px; }

/* Signing in (auth.js): the gate outside the office network, and the pages' own forms in it, alike: the app's icon
   and name, one big button, what went wrong in a soft box, the sign-in link's hint, the API key folded (the admin's) */
#sc-gate { position: fixed; inset: 0; z-index: 1000; overflow: auto; background: var(--bg); color: var(--fg); }
form.login.sc-signin, .sc-signin { box-sizing: border-box; width: 100%; max-width: 400px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: calc(env(safe-area-inset-top) + 28px) 24px calc(env(safe-area-inset-bottom) + 20px);
  border: 0; border-radius: 0; background: none; box-shadow: none; }
.sc-signin .sc-brand { display: flex; justify-content: center; margin-bottom: 4px; }
.sc-signin .sc-brand img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 20px rgb(0 0 0 / .14); }
.sc-signin h1 { margin: 0; font-size: var(--fs-2xl); line-height: 1.2; text-align: center; letter-spacing: -.01em; }
.sc-signin .sc-lead { margin: -4px 0 6px; text-align: center; color: var(--muted); font-size: var(--fs-lg); }
.sc-signin .sc-go { width: 100%; min-height: 52px; margin: 0; border-radius: 14px; font-size: var(--fs-lg); font-weight: 700; justify-content: center; }
.sc-signin .sc-oops { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: var(--fs-ui); }
.sc-signin .sc-oops:empty { display: none; }
.sc-signin .sc-note { margin: 0; text-align: center; color: var(--muted); font-size: var(--fs-ui); }
.sc-signin .sc-key { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.sc-signin .sc-key summary { cursor: pointer; text-align: center; color: var(--muted); font-size: var(--fs-ui); list-style: none; }
.sc-signin .sc-key summary::-webkit-details-marker { display: none; }
.sc-signin .sc-key summary::after { content: "›"; display: inline-block; margin-left: 6px; transition: transform .15s; }
.sc-signin .sc-key[open] summary::after { transform: rotate(90deg); }
.sc-signin:has(.sc-key[open]) { justify-content: flex-start; }  /* the keyboard can't cover the key's box */
.sc-signin .sc-key[open] summary { margin-bottom: 10px; }
.sc-signin .sc-key label { display: block; margin: 0 0 6px; font-size: var(--fs-ui); font-weight: 600; }
.sc-signin .sc-key input { width: 100%; margin: 0 0 10px; }
.sc-signin .sc-code { display: grid; gap: 8px; }
.sc-signin .sc-code label { margin: 0; font-size: var(--fs-ui); font-weight: 600; }
.sc-signin .sc-code input { width: 100%; min-height: 52px; text-align: center; font-size: var(--fs-xl); font-weight: 700; letter-spacing: .12em;
  font-variant-numeric: tabular-nums; text-transform: uppercase; }
.sc-signin .sc-code input::placeholder { font-weight: 500; letter-spacing: .12em; opacity: .5; }
.sc-signin .sc-key .sc-code { margin-top: 2px; }
.sc-signin .sc-lang { display: flex; justify-content: center; margin-top: 18px; }
.sc-signin .sc-lang select { width: auto; min-height: 36px; font-size: var(--fs-ui); }
