/* Night Vision Inc. admin page. The design is the NV2Go admin page's (nv2go-ops, web/admin/admin.css), itself the NV2Go
   staff iPad's design system carried to a computer: a neutral palette, one blue for the action to take and for
   selection, green for done, red only for problems, round icons, and corners of 10 for controls and 12 for groups.
   Type is 15 body and 13 secondary. Light or dark follows the computer's setting. The logo carries the brand; brand
   colors stay in the logo (the --logo-* tokens) and are not used for buttons.
   Keep it that way when adding pages: reuse the classes below before making new ones (HANDOFF.md, "Design rules"). */
:root {
  --bg: #f5f5f7; --card: #ffffff; --side: #fbfbfd; --surface: #f2f2f5; --raised: #e5e5ea; --press: #d8d8de;
  --sep: rgba(60, 60, 67, .14); --sep-strong: rgba(60, 60, 67, .26);
  --text: #1d1d1f; --text-2: #5c5c63; --text-3: #65656a;
  --accent: #0071e3; --on-accent: #ffffff; --accent-text: #0059b2; --accent-tint: rgba(0, 113, 227, .10);
  --series-2: #eb6834;
  --good: #1a7330; --good-tint: rgba(36, 138, 61, .12); --bad: #c80014; --bad-tint: rgba(215, 0, 21, .08);
  --logo-text: #0b161e; --logo-mark: #ed240f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .02); --sheet-shadow: -12px 0 40px rgba(0, 0, 0, .12); --scrim: rgba(0, 0, 0, .18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Inter", "Archivo", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618; --card: #1c1c1f; --side: #1a1a1d; --surface: #232326; --raised: #2f2f33; --press: #3a3a3f;
    --sep: rgba(255, 255, 255, .09); --sep-strong: rgba(255, 255, 255, .18);
    --text: #f2f2f4; --text-2: #a1a1a8; --text-3: #98989e;
    --accent: #0a72e8; --on-accent: #ffffff; --accent-text: #68b1ff; --accent-tint: rgba(10, 132, 255, .17);
    --series-2: #d95926;
    --good: #30d158; --good-tint: rgba(48, 209, 88, .14); --bad: #ff6961; --bad-tint: rgba(255, 69, 58, .15);
    --logo-text: #ffffff;
    --shadow: none; --sheet-shadow: -12px 0 40px rgba(0, 0, 0, .5); --scrim: rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.25; text-wrap: balance; font-weight: 600; }
h1 { font-size: 28px; line-height: 34px; letter-spacing: -.015em; }
h2 { font-size: 17px; line-height: 22px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
a { color: var(--accent-text); }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); font-size: .92em; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
::selection { background: var(--accent-tint); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo { display: block; height: auto; flex: none; }
.logo .l-text { fill: var(--logo-text); } .logo .l-mark { fill: var(--logo-mark); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 88px; }
.brand span { font-size: 13px; font-weight: 600; color: var(--text-2); padding-left: 10px; border-left: 1px solid var(--sep-strong); line-height: 16px; }

/* ───────── the frame: a sidebar like the staff iPad's, daily work first and setup below */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--sep); padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 2px 10px 18px; }
.side .brand .logo { width: 84px; }
.nav { display: grid; gap: 1px; }
.nav-i { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 15px var(--font); text-align: left; cursor: pointer; width: 100%; }
.nav-i .ic { color: var(--text-2); }
.nav-i:hover { background: var(--surface); }
.nav-i.on { background: var(--accent-tint); color: var(--accent-text); font-weight: 600; }
.nav-i.on .ic { color: var(--accent-text); }
.nav-i .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 12px; font-weight: 600; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.nav-i .count.quiet { background: var(--raised); color: var(--text-2); }
.nav-i.soon > span:not(.count) { color: var(--text-2); }
.navlabel { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 18px 10px 6px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--sep); padding: 12px 6px 0; display: flex; align-items: center; gap: 10px; }
.side-foot .who { display: grid; line-height: 18px; min-width: 0; }
.side-foot .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who small { color: var(--text-2); font-size: 13px; }
.icon-btn { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--raised); color: var(--text-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.av.lg { width: 40px; height: 40px; font-size: 15px; }
.av.accent { background: var(--accent-tint); color: var(--accent-text); }

.main { padding: 28px 36px 64px; min-width: 0; }
/* The page fills the window, up to 2240 px (a 27-inch monitor), and sits in the middle of anything wider, so a big
   screen shows more instead of one narrow column beside a large empty area (Paulo, 2026-11-24; it stopped at 1240 px
   before). Sentences still wrap at about 130 characters, as very long lines are hard to read. */
.page { max-width: 2240px; margin: 0 auto; display: grid; gap: 20px; }
.page > * { min-width: 0; }
.main p { max-width: 920px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head h1 { margin: 0; }
.head .sub { color: var(--text-2); margin-top: 3px; max-width: 760px; }
.head .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mtop { display: none; }

/* ───────── buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--raised); color: var(--text); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn .ic { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { background: var(--press); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.danger { background: var(--bad-tint); color: var(--bad); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 16%, transparent); }
.btn.ghost, .btn.text { background: transparent; color: var(--accent-text); font-weight: 500; padding: 0 8px; }
.btn.ghost:hover:not(:disabled), .btn.text:hover:not(:disabled) { background: var(--accent-tint); }
.btn.text.danger { color: var(--bad); }
.btn.text.danger:hover:not(:disabled) { background: var(--bad-tint); }
.btn.small { display: inline-flex; min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn.lg { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: progress; }

/* ───────── badges: a word and a tint, never color alone */
.pill, .badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--raised); color: var(--text-2); letter-spacing: 0; vertical-align: middle; }
.pill.good, .badge.good { background: var(--good-tint); color: var(--good); }
.pill.bad, .badge.bad { background: var(--bad-tint); color: var(--bad); }
.pill.warn, .badge.accent { background: var(--accent-tint); color: var(--accent-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.dot.good { background: var(--good); } .dot.accent { background: var(--accent); } .dot.bad { background: var(--bad); }
.count { font: 600 12.5px var(--font); color: var(--text-3); }

/* ───────── cards and grouped lists */
.card { background: var(--card); border: 1px solid var(--sep); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card.rows { padding: 0; display: grid; overflow: hidden; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.sec h2 { margin: 0; }
.sec h2 .n { color: var(--text-3); font-weight: 500; }
.stack { display: grid; gap: 28px; align-content: start; min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
/* A wide screen gives the right-hand column a little more room, so its lines wrap less. */
@media (min-width: 1800px) { .cols { grid-template-columns: minmax(0, 1fr) 380px; } }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 58px; position: relative; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.row { cursor: pointer; }
button.row:hover { background: var(--surface); }
.row + .row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--sep); }
.rows.flush .row + .row::before, .row.flush + .row::before { left: 16px; }
.row .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--text-2); flex: none; }
.row .ico.accent { background: var(--accent-tint); color: var(--accent-text); }
.row .ico.bad { background: var(--bad-tint); color: var(--bad); }
.row .ico.good { background: var(--good-tint); color: var(--good); }
.row .main2 { display: grid; gap: 1px; min-width: 0; flex: 1; }
.row .main2 strong { font-weight: 600; }
.row .main2 > span { color: var(--text-2); font-size: 14px; }
.row .end { text-align: right; display: grid; gap: 2px; justify-items: end; flex: none; }
.row .end small { color: var(--text-2); font-size: 13px; }
.row .chev { color: var(--text-3); width: 16px; height: 16px; }
.row.sel { background: var(--accent-tint); }
.row.dim { opacity: .62; }
.row.slim { min-height: 46px; padding: 9px 18px; }
.row.slim .main2 strong { font-weight: 500; }
.row.slim > .ic { color: var(--text-2); }
.row.bad .main2 strong { color: var(--bad); }
.meta { font-size: 13px; line-height: 18px; color: var(--text-2); }
.none-yet { padding: 18px 20px; color: var(--text-2); margin: 0; }

/* key numbers */
.figs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.figs.n2 { --n: 2; } .figs.n4 { --n: 4; } .figs.n5 { --n: 5; } .figs.n6 { --n: 6; }
.figs.second { border-top: 1px solid var(--sep); }
.fig { padding: 16px 20px; position: relative; }
.fig + .fig::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--sep); }
.fig .k { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.fig b { display: flex; align-items: center; gap: 8px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.fig b.good { color: var(--good); }
.fig b.neg { color: var(--bad); }
.fig b .of { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.fig b .ic { width: 22px; height: 22px; stroke-width: 2.5; }
.fig small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); }

/* ───────── notices and messages */
.notice { padding: 10px 12px 10px 16px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); }
.notice.good { background: var(--good-tint); color: var(--good); }
.notice.bad { background: var(--bad-tint); color: var(--bad); }
.notice.warn { background: var(--accent-tint); color: var(--accent-text); }
.error { color: var(--bad); font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; line-height: 19px; }
.note .ic { width: 17px; height: 17px; margin-top: 1px; color: var(--text-2); }
.note.accent { background: var(--accent-tint); } .note.accent .ic { color: var(--accent-text); }
.note.bad { background: var(--bad-tint); } .note.bad .ic { color: var(--bad); }
.note.good { background: var(--good-tint); } .note.good .ic { color: var(--good); }
.bad-t { color: var(--bad); }
.hint { font-size: 13px; color: var(--text-2); line-height: 18px; margin: 0; }
/* a planned page: what it will show and what it needs first */
.planned { padding: 18px 20px; max-width: 760px; }
.planned h3 { margin: 18px 0 6px; }
.planned p { color: var(--text-2); }
.card + .hint, .rows + .hint { margin-top: 8px; }

/* ───────── fields */
label { display: grid; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text-2); }
input, select, textarea { font: 15px var(--font); color: var(--text); background: var(--card); border: 1px solid var(--sep-strong); border-radius: 8px; padding: 7px 11px; min-height: 36px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--accent); }
.row-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.row-form label { flex: 1 1 160px; }
.seg { border: 0; margin: 0; padding: 0; display: flex; gap: 14px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.seg legend { font-weight: 500; font-size: 13px; color: var(--text-2); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.seg label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--text); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--text); }
.check input { flex: none; } /* keeps the box its size when the words wrap to several lines */
.field { display: grid; gap: 6px; }
.form-grid { display: grid; gap: 14px; }

/* ───────── tables */
table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 9px 12px; border-bottom: 1px solid var(--sep); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--sep); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td .muted { font-size: 13px; }
tr.dim td { color: var(--text-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.act { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
/* A wide table scrolls sideways inside its card when the window is narrow, not the whole page (as on the NV2Go admin page).
   Relative, so a screen-reader label inside (.sr, absolutely placed) scrolls with it instead of widening the page. */
.scroll { overflow-x: auto; position: relative; }
tr.warn-r td:nth-child(3) { color: var(--bad); font-weight: 600; }
.act .btn + .btn { margin-left: 6px; }
.card > table:first-child { margin-top: 0; }
table.tbl { margin: 0; }
table.tbl td { vertical-align: middle; }
table.tbl tr.click { cursor: pointer; }
table.tbl tr.click:hover td { background: var(--surface); }
table.tbl tr.sel td { background: var(--accent-tint); }
table.tbl td.chevc { width: 34px; padding-left: 0; color: var(--text-3); }
table.tbl th:first-child, table.tbl td:first-child { padding-left: 18px; }
.tbl .who { display: flex; align-items: center; gap: 10px; }
.t3 { color: var(--text-3); }

/* ───────── the side sheet: details open beside the list instead of a stack of buttons or a new page */
.sheet-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 4; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--card); border-left: 1px solid var(--sep); box-shadow: var(--sheet-shadow); display: flex; flex-direction: column; z-index: 5; }
.sh-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--sep); display: flex; align-items: flex-start; gap: 12px; }
.sh-head h2 { margin: 0; font-size: 20px; line-height: 26px; letter-spacing: -.01em; display: block; }
.sh-head h2:focus { outline: none; }
.sh-head .icon-btn { background: var(--surface); border-radius: 15px; width: 30px; height: 30px; }
.sh-body { padding: 18px 20px 24px; overflow-y: auto; display: grid; gap: 22px; align-content: start; flex: 1; }
.sh-sec { display: grid; gap: 10px; }
.sh-sec + .sh-sec { border-top: 1px solid var(--sep); padding-top: 18px; }
.sh-sec h3 { margin: 0; font-size: 15px; }
.sh-sec form { display: grid; gap: 10px; }
.sh-sec form.sh-line { display: flex; gap: 8px; align-items: flex-end; }
.sh-sec h3 .meta { font-weight: 400; }
.name-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.name-btn:hover { color: var(--accent-text); }
.sh-line label { flex: 1; }
.sh-foot { padding: 14px 20px; border-top: 1px solid var(--sep); display: flex; gap: 8px; align-items: center; }
.sh-foot .push { margin-left: auto; }
.dkv { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 9px 12px; font-size: 14px; }
.dkv dt { color: var(--text-2); }
.dkv dd { margin: 0; overflow-wrap: anywhere; }


/* the QR code an authenticator app scans (two-step.ts) */
.qr-wrap { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--sep); width: min(240px, 100%); }
.qr { display: block; width: 100%; height: auto; }

/* ───────── sign-in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(400px, 100%); display: grid; gap: 14px; padding: 26px 26px 24px; }
.login-card h1 { margin: 6px 0 0; font-size: 24px; line-height: 30px; }
.login-card p { margin: 0; }
.login-card .btn { min-height: 40px; }
/* Two-step sign-in (two-step.ts): setup steps, the QR code, and recovery codes to save. */
.ts ol.ts-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.ts .ts-qr { justify-self: center; }
.ts details summary { cursor: pointer; font-size: 14px; color: var(--accent-text); }
.ts details .hint { margin-top: 8px; overflow-wrap: anywhere; }
.ts .ts-codes { margin: 0; padding: 12px 16px 12px 40px; background: var(--surface); border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; font-size: 15px; }
.ts .ts-btns { display: flex; gap: 8px; }
.ts input[name=code] { font-size: 18px; letter-spacing: .08em; }


/* ───────── the retail pages (retail.ts). New in nvi-admin, not in the NV2Go admin page yet: built only from the tokens
   and patterns above, so they can be copied there as they are if NV2Go gets the same pages. */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
/* a choice of list (To ship, On hold…): small buttons, the chosen one tinted like the sidebar's open page */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .btn[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent-text); }
.filters .n { color: var(--text-2); font-weight: 500; }
.filters .btn[aria-pressed="true"] .n { color: inherit; }
form.search { display: flex; gap: 8px; align-items: center; flex: 0 1 460px; }
form.search label { flex: 1; }
.more { display: flex; justify-content: center; }
.pad { padding: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.name-btn.mono { font-family: var(--mono); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
/* an order's items in its side panel */
ul.lines { list-style: none; margin: 0; padding: 0; display: grid; }
ul.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--sep); font-size: 14px; }
ul.lines li b { font-weight: 500; }
/* the Analytics charts: columns in the accent, the year before as a grey tick, hairline grid (SVG, colors from tokens).
   A second series (returning buyers) is orange: checked against the accent for colorblind separation and contrast on
   the card, in both themes. */
.chart-wrap { overflow-x: auto; }
.chart { display: block; width: 100%; min-width: 520px; max-width: 980px; height: auto; }
.chart .grid { stroke: var(--sep); stroke-width: 1; }
.chart text { fill: var(--text-2); font: 10.5px var(--font); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--accent); }
.chart .bar.s2 { fill: var(--series-2); }
.chart .prev { stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.chart .prev-ring { stroke: var(--card); stroke-width: 6; stroke-linecap: round; }
.chart .hit { fill: transparent; }
.chart .b:hover .hit { fill: var(--accent-tint); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.legend .sw.bar { background: var(--accent); }
.legend .sw.s2 { background: var(--series-2); }
.legend .sw.prev { height: 2px; border-radius: 1px; background: var(--text-3); }
/* Analytics' filters, as on the NV2Go admin page: a Year list in a tinted pill (.pick) and a segmented choice of what
   to show (.seg-bar), the chosen one raised like a tab. The same classes and sizes as NV2Go's admin.css. */
.pick { display: inline-flex; align-items: center; gap: 0; padding-left: 11px; border-radius: 8px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.pick:hover { background: var(--raised); }
.pick:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.pick select { appearance: none; -webkit-appearance: none; min-height: 34px; max-width: 230px; padding: 4px 30px 4px 6px; border: 0; font: 600 14px var(--font); color: var(--text); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center; text-overflow: ellipsis; cursor: pointer; field-sizing: content; }
.pick select:focus { outline: none; }
.pick select option { color: var(--text); background: var(--card); }
.seg-bar { display: inline-flex; gap: 4px; padding: 4px; background: var(--raised); border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-btn { font: 600 14.5px var(--font); color: var(--text-2); background: none; border: 0; border-radius: 7px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
/* a table straight under a chart (Analytics' years) */
.tbl-gap { margin-top: 12px; border-top: 1px solid var(--sep); }
details.figures { margin-top: 12px; border-top: 1px solid var(--sep); padding-top: 10px; }
details.figures summary { cursor: pointer; font-size: 14px; color: var(--accent-text); }
details.figures table { margin-top: 8px; }
/* the Website page: one card per site, and its recent checks as a strip, oldest first */
.site { display: grid; gap: 10px; align-content: start; }
.site > .sec, .site > p { margin: 0; }
.site .figs { margin: 0 -20px; border-top: 1px solid var(--sep); }
.site .figs .fig b { font-size: 22px; }
.sec.speed { margin-top: 6px; }
.sec.speed h3 { margin: 0; }
.checks { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.checks i { flex: 0 1 8px; height: 100%; border-radius: 2px; background: var(--good); opacity: .75; }
.checks i.down { background: var(--bad); opacity: 1; }

.show-s { display: none; }
.tbl div.show-s > .badge { margin-top: 4px; }

/* the phone tab bar: hidden on a computer */
.tabbar { display: none; }

/* ───────── narrow windows and phones: the sidebar becomes a menu */
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: fixed; z-index: 7; top: 0; left: 0; bottom: 0; width: 272px; transform: translateX(-102%); transition: transform .2s ease; }
  .shell.menu-open .side { transform: none; box-shadow: 12px 0 40px rgba(0, 0, 0, .2); }
  .menu-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 6; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 3; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--sep); }
  .mtop .logo { width: 72px; }
  .mtop .icon-btn { margin: 0; color: var(--text); }
  .mtop .icon-btn .ic { width: 22px; height: 22px; }
  .mtop .t { font-weight: 600; margin-left: auto; margin-right: auto; }
  .mtop .av { width: 30px; height: 30px; font-size: 12px; }
  .main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .cols, .cols.even { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; background: color-mix(in srgb, var(--side) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--sep); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tabbar.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 0; border: 0; background: none; color: var(--text-2); font: 500 11px var(--font); cursor: pointer; }
  .tabbar button .ic { width: 24px; height: 24px; }
  .tabbar button.on { color: var(--accent-text); }
  .tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; display: grid; place-items: center; }
}
@media (max-width: 760px) {
  h1 { font-size: 26px; line-height: 32px; }
  .card { padding: 16px; }
  .card.rows { padding: 0; }
  .figs { grid-template-columns: 1fr; }
  .fig + .fig::before { left: 20px; right: 20px; top: 0; bottom: auto; width: auto; height: 1px; }
  table:not(.tbl), table:not(.tbl) thead, table:not(.tbl) tbody, table:not(.tbl) tr, table:not(.tbl) td { display: block; }
  table:not(.tbl) thead { display: none; }
  table:not(.tbl) tr { border-bottom: 1px solid var(--sep); padding: 8px 0; }
  table:not(.tbl) td { border: 0; padding: 3px 0; }
  .num, .act { text-align: left; }
  .tbl .hide-s { display: none; }
  .tbl .show-s { display: inline; }
  .head h1 .badge { display: flex; width: fit-content; margin: 6px 0 0; top: 0; }
  .row .end small { display: none; }
  .dkv { grid-template-columns: 110px 1fr; }
  form.search { flex-basis: 100%; }
  .tbl div.show-s { display: block; white-space: nowrap; }
  .site .figs { margin: 0 -16px; }
  .head .acts .pick { flex: 1 1 100%; }
  .head .acts .pick select { flex: 1; max-width: none; }
}


