/* ScoMax Go – same tokens as ScoMax Link (extension\sidepanel.css): Navy Ink, Laser Orange as the single accent
   (navy text on it), Steel, Signal Blue for links + in progress, Concrete. Space Grotesk headings, Inter body.
   Light in :root, dark twice (System via prefers-color-scheme, and data-theme="dark"). */
:root {
  --scomax-navy: #0E1B2E; --scomax-orange: #FF6B2C; --scomax-steel: #3A4A60; --scomax-blue: #2F7BFF;
  --scomax-concrete: #F4F5F7; --scomax-text-grey: #4A5464; --scomax-white: #FFFFFF;
  color-scheme: light;
  --bg: var(--scomax-concrete); --surface: #FFFFFF; --sunk: #ECEEF2; --ink: var(--scomax-navy); --muted: var(--scomax-text-grey);
  --line: #DCE0E7; --field: #FFFFFF; --field-line: #CFD5DE; --track-off: #CBD2DC;
  --accent: var(--scomax-orange); --accent-ink: var(--scomax-navy);
  --btn2-bg: var(--surface); --btn2-line: var(--field-line); --btn2-ink: var(--ink);
  --sel: var(--scomax-navy); --sel-knob: #FFFFFF; --focus: var(--scomax-navy); --focus-soft: rgba(14, 27, 46, .12);
  --info: var(--scomax-blue); --info-ink: #1D5FD8; --info-soft: #E5EEFF; --link: #1F66E5;
  --done: var(--scomax-steel); --done-soft: #E7EAEF; --warn-line: var(--scomax-orange); --warn-ink: var(--ink);
  --bad: #A9423B; --bad-soft: #F7E8E6; --picked: #EEF3FF;
  --load: var(--scomax-steel); --load-hot: var(--scomax-orange);
  --vlx: var(--scomax-steel); --mlx: var(--scomax-blue); --clx: #F2A17C; --aerial: var(--scomax-navy); --none: #8A94A3;
  --bar: var(--scomax-navy); --bar-ink: #FFFFFF; --bar-dim: #AEB8C7; --bar-edge: #26395A; --bar-hover: rgba(255, 255, 255, .07);
  --r: 14px;
  --font-ui: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
  --tabbar-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--scomax-navy); --surface: #172A44; --sunk: #0F2038; --ink: #FFFFFF; --muted: #AEB8C7;
    --line: #26395A; --field: #0B1626; --field-line: var(--scomax-steel); --track-off: #3A4A60;
    --btn2-bg: transparent; --btn2-line: var(--scomax-steel); --btn2-ink: #FFFFFF;
    --sel: #8FA6C8; --sel-knob: var(--scomax-navy); --focus: var(--scomax-blue); --focus-soft: rgba(47, 123, 255, .35);
    --info: #4C8DFF; --info-ink: #A3C3FF; --info-soft: #1B3762; --link: #84B0FF;
    --done: #C6CEDA; --done-soft: #243954; --warn-ink: #FFFFFF;
    --bad: #F0958D; --bad-soft: #42262B; --picked: rgba(47, 123, 255, .13);
    --load: #8FA6C8;
    --vlx: #9AABC4; --mlx: var(--scomax-blue); --clx: #E9A383; --aerial: #C3D2E8; --none: #7B8594;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--scomax-navy); --surface: #172A44; --sunk: #0F2038; --ink: #FFFFFF; --muted: #AEB8C7;
  --line: #26395A; --field: #0B1626; --field-line: var(--scomax-steel); --track-off: #3A4A60;
  --btn2-bg: transparent; --btn2-line: var(--scomax-steel); --btn2-ink: #FFFFFF;
  --sel: #8FA6C8; --sel-knob: var(--scomax-navy); --focus: var(--scomax-blue); --focus-soft: rgba(47, 123, 255, .35);
  --info: #4C8DFF; --info-ink: #A3C3FF; --info-soft: #1B3762; --link: #84B0FF;
  --done: #C6CEDA; --done-soft: #243954; --warn-ink: #FFFFFF;
  --bad: #F0958D; --bad-soft: #42262B; --picked: rgba(47, 123, 255, .13);
  --load: #8FA6C8;
  --vlx: #9AABC4; --mlx: var(--scomax-blue); --clx: #E9A383; --aerial: #C3D2E8; --none: #7B8594;
}
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font-ui); overscroll-behavior-y: contain; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, .head { font-family: var(--font-head); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- app frame */
#app { min-height: 100%; display: flex; flex-direction: column; }
.appbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 60px;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; background: var(--bar); color: var(--bar-ink); border-bottom: 1px solid var(--bar-edge);
}
.appbar .brand { width: 28px; height: 28px; border-radius: 7px; flex: none; box-shadow: 0 0 0 1px var(--bar-edge); }
.appbar h1 { font-size: 19px; font-weight: 600; letter-spacing: .1px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .back { border: 0; background: none; color: var(--bar-ink); width: 40px; height: 40px; margin-left: -10px; border-radius: 20px; display: grid; place-items: center; }
.appbar .back:active { background: var(--bar-hover); }
.pcpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .08); color: var(--bar-ink); border: 1px solid var(--bar-edge); white-space: nowrap; }
.pcpill i { width: 7px; height: 7px; border-radius: 50%; background: #8FA6C8; }
.pcpill.off i { background: #F0958D; }
.pcpill.off { color: var(--bar-dim); }

main#view { flex: 1; padding: 14px 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); display: grid; gap: 14px; align-content: start; }
main#view.with-action { padding-bottom: calc(var(--tabbar-h) + 150px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bar); border-top: 1px solid var(--bar-edge);
}
.tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--bar-dim); text-decoration: none; font-size: 12px; font-weight: 500; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--bar-ink); font-weight: 600; }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: 8px; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.tabbar a .badge { position: absolute; top: 9px; left: calc(50% + 7px); min-width: 8px; height: 8px; border-radius: 4px; background: var(--info); }
.tabbar a .badge.bad { background: #F0958D; }

/* ---------- building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.card.flat { padding: 0; gap: 0; overflow: hidden; }
.card h2 { font-size: 16px; font-weight: 600; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.sec-head h2 { font-size: 13px; font-family: var(--font-ui); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrapname { overflow-wrap: anywhere; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--btn2-line);
  background: var(--btn2-bg); color: var(--btn2-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:disabled { background: var(--sunk); color: var(--muted); border-color: var(--line); }
.btn.block { width: 100%; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn:active { filter: brightness(.96); }
.link { border: 0; background: none; padding: 0; color: var(--link); font-weight: 600; font-size: 14px; }
.link.quiet { color: var(--muted); font-weight: 500; }
a.link { text-decoration: none; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px;
  background: var(--sunk); color: var(--muted); white-space: nowrap; }
.chip.done { background: var(--done-soft); color: var(--done); }
.chip.done::before { content: "✓"; }
.chip.info { background: var(--info-soft); color: var(--info-ink); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: transparent; color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.chip.none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.scn { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 17px;
  color: #FFFFFF; background: var(--none); }
.scn.VLX { background: var(--vlx); } .scn.MLX { background: var(--mlx); } .scn.CLX { background: var(--clx); color: var(--scomax-navy); }
:root[data-theme="dark"] .scn.VLX, :root[data-theme="dark"] .scn.CLX { color: var(--scomax-navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scn.VLX, :root:not([data-theme="light"]) .scn.CLX { color: var(--scomax-navy); } }

.bar { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--info); transition: width .4s; }
.bar.load > i { background: var(--load); }
.bar.load.hot > i { background: var(--load-hot); }
.bar.done > i { background: var(--done); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); }
.seg button { border: 0; background: none; min-height: 36px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(14, 27, 46, .12); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #26395A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: #26395A; } }

.list > li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); min-width: 0; }
.list > li:first-child { border-top: 0; }
.list .t { font-weight: 500; font-size: 14.5px; }
.list .s { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
a.rowlink { color: inherit; text-decoration: none; display: flex; gap: 12px; align-items: center; width: 100%; min-width: 0; }
.chev { color: var(--muted); flex: none; }

/* checkbox (IVION list) */
.cb { appearance: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--field-line); background: var(--field); flex: none; display: grid; place-items: center; margin: 0; }
.cb:checked { background: var(--sel); border-color: var(--sel); }
.cb:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--sel-knob); border-width: 0 2.5px 2.5px 0; transform: translate(0, -1px) rotate(45deg); }
.cb:disabled { opacity: .4; }
li.picked { background: var(--picked); }

/* switch */
.switch { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.switch input { appearance: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--track-off); flex: none; margin: 0; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked { background: var(--sel); }
.switch input:checked::after { transform: translateX(18px); background: var(--sel-knob); }

/* fields */
.fld { display: grid; gap: 4px; min-width: 0; }
.fld span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--field); width: 100%; min-width: 0; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-soft); }
.pform { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
.pform .wide { grid-column: 1 / -1; }

.warn-box { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.bad-text { color: var(--bad); }
.info-text { color: var(--info-ink); }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; font-size: 14px; }

/* stat tiles (Home) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 4px; }
.tile .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile .big { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.1; }
.tile .big small { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.drives { display: grid; gap: 8px; }
.drives li { display: grid; grid-template-columns: 34px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.drives li b { font-weight: 600; }

/* notifications */
.note-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--muted); }
.note-i.done { color: var(--done); background: var(--done-soft); }
.note-i.failed { color: var(--bad); background: var(--bad-soft); }
.note-i svg { width: 18px; height: 18px; }

/* IVION */
.site { display: grid; gap: 2px; }
.site h2 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.state-tag { font-size: 12px; }
.actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 5;
  padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); display: grid; gap: 10px; box-shadow: 0 -6px 18px rgba(14, 27, 46, .08); }
.actionbar .picker { display: flex; gap: 8px; align-items: center; min-width: 0; }
.progress-card { border-color: var(--info); box-shadow: inset 0 0 0 1px var(--info); }
.progress-card .big { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.caught li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 3px 0; min-width: 0; }
.caught .ok { color: var(--done); font-weight: 700; flex: none; width: 16px; text-align: center; }
.caught .wait { color: var(--info); flex: none; width: 16px; text-align: center; font-size: 11px; }

/* Activity */
.act .t { overflow-wrap: anywhere; }
.act .pct { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }

/* Projects */
.pnum { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; }
details.more summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 14px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more ul { margin-top: 6px; display: grid; gap: 4px; font-size: 13.5px; }

/* ACC + Teams review */
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--sunk); font-size: 13.5px; }
.person em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.person button { border: 0; background: none; width: 22px; height: 22px; border-radius: 11px; color: var(--muted); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.chan { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.chan:first-of-type { border-top: 0; }
.step-line { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.step-line .st { width: 22px; flex: none; text-align: center; font-weight: 700; }

/* Connect */
.connect { min-height: 100vh; display: grid; align-content: center; gap: 22px; padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); background: var(--bg); }
.connect .hero { display: grid; justify-items: center; gap: 10px; text-align: center; }
.connect .hero img { width: 76px; height: 76px; border-radius: 17px; }
.connect .hero h1 { font-size: 28px; font-weight: 700; }
.connect .hero h1 b { font-weight: 700; } .connect .hero h1 span { font-weight: 500; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code input { width: 100%; min-width: 0; height: 56px; text-align: center; font-family: var(--font-head); font-size: 24px; font-weight: 600; border-radius: 12px;
  border: 1px solid var(--field-line); background: var(--field); }
.code input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-soft); }
.qr-box { aspect-ratio: 1; border-radius: 18px; background: #0B1626; position: relative; overflow: hidden; display: grid; place-items: center; }
.qr-box::before, .qr-box::after { content: ""; position: absolute; inset: 18%; border: 3px solid var(--scomax-orange); border-radius: 18px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 28% 28% no-repeat, linear-gradient(#000 0 0) top right / 28% 28% no-repeat,
                linear-gradient(#000 0 0) bottom left / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom right / 28% 28% no-repeat;
          mask: linear-gradient(#000 0 0) top left / 28% 28% no-repeat, linear-gradient(#000 0 0) top right / 28% 28% no-repeat,
                linear-gradient(#000 0 0) bottom left / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom right / 28% 28% no-repeat; }
.qr-box::after { inset: 50% 22% auto; height: 2px; border: 0; border-radius: 1px; background: var(--scomax-orange); opacity: .8; -webkit-mask: none; mask: none; animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { from { top: 24%; } to { top: 76%; } }
.qr-box p { position: absolute; bottom: 14px; color: #AEB8C7; font-size: 13px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* sheets + toast */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(14, 27, 46, .45); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet .grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line); justify-self: center; }
.sheet h2 { font-size: 18px; font-weight: 600; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 30; padding: 12px 14px; border-radius: 12px;
  background: var(--scomax-navy); color: #FFFFFF; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); border: 1px solid #26395A; }
.toast[hidden] { display: none; }

/* ---------- 0.2: gear, Home, lists read from the PC, pull to refresh */
.appbar .gear { color: var(--bar-ink); width: 40px; height: 40px; margin-right: -8px; border-radius: 20px; display: grid; place-items: center; flex: none; }
.appbar .gear:active { background: var(--bar-hover); }
.appbar .pcpill { max-width: 128px; overflow: hidden; text-overflow: ellipsis; }
.tiles.mini { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles.mini > div { background: var(--sunk); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.tiles.mini .lbl { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tiles.mini .big { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.1; }
.tiles.mini .big small { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.big-btn { min-height: 54px; font-size: 16.5px; border-radius: 14px; }
.ptitle { font-weight: 600; font-size: 15.5px; }
.kind-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--muted); }
.readline { font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.readline .link { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.readline svg, .info-text svg { vertical-align: -3px; }
.ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin: -14px 0 -14px; transition: height .15s; }
.ptr.ready { color: var(--info-ink); margin-bottom: 0; }
.ptr.ready span { transform: rotate(180deg); }
.searchbox { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--field); color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); min-height: 44px; }
.searchbox:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-soft); }
.skel { height: 14px; border-radius: 7px; background: var(--sunk); }
.skel.short { width: 60%; }
.tabs2 button { min-height: 40px; font-size: 15px; }
.tabs2 .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--info); vertical-align: 2px; margin-left: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
.pform.one { grid-template-columns: 1fr; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }

/* ACC tree */
.tree { padding: 6px 0; }
.tree-row { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 calc(6px + var(--d) * 22px); font-size: 14.5px; }
.tree-row .twisty, .tree-row .plus { border: 0; background: none; width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; color: var(--muted); flex: none; }
.tree-row .twisty:disabled { cursor: default; }
.tree-row .plus { color: var(--link); }
.tree-row .plus:active, .tree-row .twisty:active { background: var(--sunk); }
.tree-row .fi { color: var(--muted); display: grid; flex: none; margin-right: 4px; }

/* Teams */
.avatar { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--ink); font: 600 12.5px var(--font-head); border: 1px solid var(--line); }
.chan-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--ink); }
.chan-head + .list > li:first-child { border-top: 1px solid var(--line); }
.chan-head svg { color: var(--muted); flex: none; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* the real app: PC switcher button, app lock keypad, camera view, PC rows */
button.pcpill { border: 1px solid var(--bar-edge); background: transparent; color: var(--bar-ink); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
button.pcpill svg { flex: none; opacity: .8; }
.lockscreen { align-content: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); justify-content: center; gap: 14px 22px; }
.keypad button { height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font: 600 24px/1 var(--font-head); color: var(--ink); }
.keypad button:active { background: var(--sunk); }
.qr-box.live video { width: 100%; height: 100%; object-fit: cover; }
.pcrow { width: 100%; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.pcrow[aria-current="true"] .t { color: var(--link); }
.pcrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }

/* sign-in: password + Authenticator */
#authForm .fld { display: flex; flex-direction: column; gap: 6px; }
#authForm .otp { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.qr-box.code { aspect-ratio: auto; background: #fff; padding: 14px; justify-self: center; align-self: center; width: 228px; }
.qr-box.code::before, .qr-box.code::after { display: none; }
.qr-box.code img { width: 200px; height: 200px; display: block; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); }
.totp-key { text-align: center; font-family: ui-monospace, Consolas, monospace; letter-spacing: .05em; user-select: all; word-break: break-all; }
