/* Altekore Tips — the app's one stylesheet.
   Direction: a payroll ledger. A deep navy rail holds the brand and the store; the work area is cool paper with
   tabular figures. The one bold thing is the pay period itself: big dates, the five steps it goes through, and the
   fortnight of days with their hours. Everything else stays quiet. */
:root {
  --paper: #f2f4f8; --surface: #ffffff; --surface-2: #f6f8fb; --sunk: #eceff5;
  --line: #e0e4ed; --line-2: #eaedf3;
  --ink: #121a2e; --ink-2: #48526d; --ink-3: #7a839a;
  --brand: #2b44c7; --brand-2: #2238a8; --brand-soft: #e8ebfa; --on-brand: #ffffff;
  --green: #17846b; --green-soft: #dff3ec; --amber: #a35c0a; --amber-soft: #fbefdc; --brick: #b42318; --brick-soft: #fbe9e7;
  --rail: #121a2e; --rail-2: #1b2540; --rail-ink: #e6eaf5; --rail-ink-2: #98a2bf; --rail-line: #26304d;
  --logo-ring: #7f93ff; --logo-dot: #24a889;
  --bar: #2b44c7; --bar-2: #9aa8ec;
  --f-display: "Newsreader", Georgia, serif;
  --f-ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --r-s: 6px; --r: 10px; --r-l: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0b1120; --surface: #121a2c; --surface-2: #172036; --sunk: #0e1527; --line: #232d47; --line-2: #1d2740;
  --ink: #e8ecf6; --ink-2: #aeb7cc; --ink-3: #7f89a3;
  --brand: #8b9cf6; --brand-2: #a3b1f8; --brand-soft: #1c2546; --on-brand: #0b1120;
  --green: #4cc7a5; --green-soft: #10302a; --amber: #f0b24f; --amber-soft: #33260f; --brick: #f2857a; --brick-soft: #3a1915;
  --rail: #080d19; --rail-2: #111a2e; --rail-line: #1b2440;
  --bar: #8b9cf6; --bar-2: #4a5899; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0b1120; --surface: #121a2c; --surface-2: #172036; --sunk: #0e1527; --line: #232d47; --line-2: #1d2740;
  --ink: #e8ecf6; --ink-2: #aeb7cc; --ink-3: #7f89a3;
  --brand: #8b9cf6; --brand-2: #a3b1f8; --brand-soft: #1c2546; --on-brand: #0b1120;
  --green: #4cc7a5; --green-soft: #10302a; --amber: #f0b24f; --amber-soft: #33260f; --brick: #f2857a; --brick-soft: #3a1915;
  --rail: #080d19; --rail-2: #111a2e; --rail-line: #1b2440;
  --bar: #8b9cf6; --bar-2: #4a5899; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.55 var(--f-ui); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.num, .fig { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.logo { height: 26px; width: auto; display: block; color: var(--ink); }

/* ================= sign-in ================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--rail); color: var(--rail-ink); padding: 48px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-side .logo { color: #fff; height: 30px; }
.auth-side h2 { font: 500 clamp(30px, 3.6vw, 44px)/1.12 var(--f-display); margin: 0; max-width: 15ch; letter-spacing: -.01em; }
.auth-side p { color: var(--rail-ink-2); max-width: 42ch; margin: 14px 0 0; }
.auth-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--rail-ink-2); font-size: 14px; }
.auth-steps li { display: flex; gap: 12px; align-items: baseline; }
.auth-steps b { color: var(--rail-ink); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1.4em; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-form { width: min(100%, 380px); display: grid; gap: 16px; }
.auth-form h1 { font: 500 30px/1.15 var(--f-display); margin: 0; }
.auth-form > p { margin: -6px 0 4px; color: var(--ink-2); }
.auth-form .btn.primary { width: 100%; justify-content: center; padding: 11px 16px; }
.auth-form .link { justify-self: start; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-side { padding: 28px 20px; } .auth-side .auth-steps, .auth-side p { display: none; } .auth-side h2 { font-size: 26px; } }

/* ================= fields and buttons ================= */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 11px; transition: border-color .12s; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); outline-offset: 0; }
input[type=number] { font-variant-numeric: tabular-nums; }
textarea { min-height: 76px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.msg { padding: 9px 12px; border-radius: var(--r-s); font-size: 14px; }
.msg.err { background: var(--brick-soft); color: var(--brick); } .msg.ok { background: var(--green-soft); color: var(--green); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-s); padding: 8px 14px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s; }
.btn:hover:not([disabled]) { border-color: var(--ink-3); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover:not([disabled]) { background: var(--brand-2); border-color: var(--brand-2); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.quiet:hover:not([disabled]) { background: var(--sunk); border-color: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { cursor: not-allowed; opacity: .5; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ================= the shell: navy rail + paper ================= */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--rail) 248px, transparent 248px); }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail .brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 6px; }
.rail .logo { color: #fff; height: 24px; }
.rail .product { color: var(--rail-ink-2); font-weight: 600; padding-left: 10px; border-left: 1px solid var(--rail-line); }
.picker { background: var(--rail-2); border: 1px solid var(--rail-line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; }
.picker label { display: grid; gap: 3px; font-size: 12px; color: var(--rail-ink-2); }
.picker select { background: transparent; border: 0; padding: 2px 0; color: var(--rail-ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.picker select option { color: #121a2e; }
.picker select:focus { outline: 2px solid var(--logo-ring); outline-offset: 2px; }
.picker .sep { height: 1px; background: var(--rail-line); }
nav.side { display: grid; gap: 2px; }
nav.side a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-s); color: var(--rail-ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; }
nav.side a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
nav.side a:hover { background: var(--rail-2); color: var(--rail-ink); }
nav.side a[aria-current="page"] { background: var(--rail-2); color: #fff; box-shadow: inset 3px 0 0 var(--logo-ring); }
nav.side .group { margin: 14px 10px 4px; font-size: 12px; color: var(--rail-ink-2); opacity: .8; }
.rail .who { margin-top: auto; border-top: 1px solid var(--rail-line); padding-top: 14px; display: grid; gap: 4px; }
.rail .who .name { font-weight: 600; font-size: 14px; padding: 0 10px; }
.rail .who .mail { color: var(--rail-ink-2); font-size: 12.5px; padding: 0 10px 6px; overflow-wrap: anywhere; }
.rail .who button, .rail .who a { text-align: left; background: none; border: 0; color: var(--rail-ink-2); padding: 6px 10px; border-radius: var(--r-s); cursor: pointer; font-size: 13.5px; text-decoration: none; }
.rail .who button:hover, .rail .who a:hover { background: var(--rail-2); color: var(--rail-ink); }
.work { min-width: 0; }
main.page { max-width: 1180px; margin: 0 auto; padding: 32px clamp(16px, 3.5vw, 44px) 80px; display: grid; gap: 22px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.head h1 { font: 500 34px/1.1 var(--f-display); margin: 0; letter-spacing: -.01em; }
.head p { margin: 6px 0 0; color: var(--ink-2); max-width: 68ch; }
.topbar { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .rail { position: static; height: auto; padding: 12px 16px; gap: 10px; }
  .rail .who, nav.side .group { display: none; }
  .rail .brand .mobile-user { margin-left: auto; }
  .picker { grid-template-columns: 1fr 1fr; }
  .picker .sep { display: none; }
  nav.side { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; margin: 0 -4px; }
  nav.side a { white-space: nowrap; padding: 7px 10px; }
  nav.side a svg { display: none; }
  nav.side a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--logo-ring); }
  .topbar { display: block; }
  main.page { padding-top: 22px; }
  .head h1 { font-size: 28px; }
}
.mobile-user { display: none; }
@media (max-width: 900px) { .mobile-user { display: inline-flex; color: var(--rail-ink-2); background: none; border: 1px solid var(--rail-line); border-radius: var(--r-s); padding: 4px 10px; font-size: 13px; cursor: pointer; } }

/* ================= surfaces ================= */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px clamp(16px, 2.4vw, 24px); display: grid; gap: 14px; min-width: 0; }
.panel h2 { font: 600 16px/1.3 var(--f-ui); margin: 0; }
.panel .sub { margin: -8px 0 0; color: var(--ink-3); font-size: 14px; }
.banner { padding: 11px 14px; border-radius: var(--r-s); background: var(--surface-2); color: var(--ink-2); font-size: 14px; border-left: 3px solid var(--ink-3); }
.banner.warn { background: var(--amber-soft); color: var(--amber); border-left-color: var(--amber); }
.banner.bad { background: var(--brick-soft); color: var(--brick); border-left-color: var(--brick); }
.banner.good { background: var(--green-soft); color: var(--green); border-left-color: var(--green); }
.banner.info { background: var(--brand-soft); color: var(--brand); border-left-color: var(--brand); }
.banner ul { margin: 6px 0 0; padding-left: 18px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.plain::before { display: none; }
.chip.good { background: var(--green-soft); color: var(--green); } .chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.bad { background: var(--brick-soft); color: var(--brick); } .chip.info { background: var(--brand-soft); color: var(--brand); }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); display: grid; gap: 10px; justify-items: center; }
.empty h2 { font: 500 24px/1.2 var(--f-display); margin: 0; color: var(--ink); }
.loading { color: var(--ink-3); padding: 24px 0; }
.skeleton { height: 220px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.2s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } } }

/* figures strip: one row, divided, not a row of identical cards */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.figures > div { padding: 16px 18px; border-left: 1px solid var(--line-2); display: grid; gap: 2px; align-content: start; }
.figures > div:first-child { border-left: 0; }
.figures b { font: 600 26px/1.15 var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.figures span { color: var(--ink-3); font-size: 13px; }
.figures small { color: var(--ink-2); font-size: 12.5px; }
.figures .hot b { color: var(--amber); }

/* ================= the pay period ================= */
.period-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px clamp(18px, 3vw, 32px) 24px; display: grid; gap: 22px; position: relative; overflow: hidden; }
.period-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand); }
.period-hero.approved::after { background: var(--green); } .period-hero.processed::after { background: var(--ink-3); } .period-hero.blocked::after { background: var(--brick); }
.ph-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ph-dates { font: 500 clamp(32px, 4.4vw, 48px)/1.02 var(--f-display); letter-spacing: -.02em; margin: 0; }
.ph-dates .yr { color: var(--ink-3); }
.ph-meta { color: var(--ink-2); margin: 8px 0 0; font-size: 14.5px; }
.ph-pick { display: flex; gap: 8px; align-items: center; }
.ph-pick select { width: auto; max-width: 260px; }

/* the five steps — a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 10px 0 0; display: grid; gap: 4px; align-content: start; }
.steps .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--sunk); color: var(--ink-3);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.steps li::before { content: ""; position: absolute; top: 15px; left: 30px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li.done .dot { background: var(--green); color: #fff; box-shadow: none; }
.steps li.done::before { background: var(--green); }
.steps li.now .dot { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.steps li.bad .dot { background: var(--brick); color: #fff; box-shadow: 0 0 0 4px var(--brick-soft); }
.steps b { font-size: 14px; font-weight: 600; margin-top: 6px; }
.steps span { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 12px; } .steps li { grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 0; padding: 0; } .steps li::before { display: none; } .steps .dot { grid-row: 1 / span 2; } .steps b { grid-column: 2; margin-top: 0; } .steps li > span:not(.dot) { grid-column: 2; } }

/* the fortnight: one tile per day, the bar is that day's hours at the store */
.fortnight { display: grid; gap: 8px; }
.fortnight .wk { display: grid; grid-template-columns: 110px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.fortnight .wk-label { display: grid; align-content: center; font-size: 13px; color: var(--ink-3); }
.fortnight .wk-label b { color: var(--ink-2); font-weight: 600; }
.day { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 8px 9px 9px; display: grid; gap: 5px; min-width: 0; }
.day .d { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.day .d b { color: var(--ink); font-weight: 600; }
.day .meter { height: 46px; display: flex; align-items: flex-end; gap: 2px; }
.day .meter i { display: block; flex: 1; border-radius: 3px 3px 1px 1px; background: var(--bar-2); min-height: 2px; }
.day .meter i.dr { background: var(--bar); }
.day .h { font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.day .c { font-size: 12px; color: var(--green); font-variant-numeric: tabular-nums; min-height: 1.3em; }
.day .c.none { color: var(--ink-3); }
.day.empty-day { background: transparent; border-style: dashed; }
.day.empty-day .h { color: var(--ink-3); font-weight: 500; }
.day.future { opacity: .45; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 760px) { .fortnight .wk { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .fortnight .wk-label { grid-column: 1 / -1; display: flex; gap: 8px; } .day { padding: 5px 4px 6px; gap: 3px; } .day .d { flex-direction: column; align-items: center; font-size: 10.5px; } .day .meter { height: 30px; gap: 1px; } .day .h { font-size: 11.5px; text-align: center; white-space: nowrap; } .day .u, .day .c { display: none; } }

.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; }
.next p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.next p b { color: var(--ink); }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.issues li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 14px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.issues li:last-child { border-bottom: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }

/* ================= tables ================= */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 13px; color: var(--ink-2); background: var(--surface-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl td.name { white-space: nowrap; font-weight: 600; }
.tbl td.name small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); background: var(--surface-2); }
.tbl tr.needs td { background: var(--amber-soft); }
.tbl tr.needs:hover td { background: var(--amber-soft); }
.tbl select { min-width: 230px; padding: 6px 8px; }

/* ================= upload ================= */
.drop { border: 1.5px dashed var(--line); border-radius: var(--r-l); padding: 34px 18px; display: grid; gap: 10px; justify-items: center; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.drop .ico svg { width: 22px; height: 22px; }
.drop b { font-size: 16px; }
.drop span { color: var(--ink-3); font-size: 14px; }

/* ================= cash tips week ================= */
.cash-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cash-day { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 10px; display: grid; gap: 8px; }
.cash-day .d { font-size: 13px; color: var(--ink-3); } .cash-day .d b { color: var(--ink); font-weight: 600; display: block; font-size: 15px; }
.cash-day input { text-align: right; }
.cash-day.locked { opacity: .7; }
@media (max-width: 760px) { .cash-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.weeknav { display: flex; align-items: center; gap: 8px; }
.weeknav strong { font: 500 22px/1.2 var(--f-display); min-width: 12ch; text-align: center; }

/* ================= forms, dialogs, segmented control ================= */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 20px; }
.form-section { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section h3 { margin: 0; font-size: 15px; }
dialog { border: 1px solid var(--line); border-radius: var(--r-l); padding: 0; background: var(--surface); color: var(--ink); width: min(580px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgb(8 13 25 / .3); }
dialog::backdrop { background: rgb(8 13 25 / .5); }
dialog form { padding: 24px; display: grid; gap: 16px; }
dialog h2 { margin: 0; font: 500 24px/1.2 var(--f-display); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--sunk); border-radius: var(--r-s); padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 5px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(8 13 25 / .12); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; }
.toolbar .field { min-width: 180px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: var(--r); font-weight: 600; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px rgb(8 13 25 / .3); max-width: calc(100vw - 32px); }

/* ================= reports (drawn by report-view.js) ================= */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px clamp(16px, 3vw, 30px) 28px; display: grid; gap: 18px; min-width: 0; }
.rep-head h2 { font: 500 28px/1.15 var(--f-display); margin: 0; }
.rep-sub { margin: 4px 0 0; color: var(--ink-2); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.note { padding: 9px 12px; border-radius: var(--r-s); background: var(--surface-2); color: var(--ink-2); font-size: 14px; max-width: 110ch; border-left: 3px solid var(--line); }
.note.good { background: var(--green-soft); color: var(--green); border-left-color: var(--green); } .note.warn { background: var(--amber-soft); color: var(--amber); border-left-color: var(--amber); }
.note.bad { background: var(--brick-soft); color: var(--brick); font-weight: 600; border-left-color: var(--brick); }
.rep-sec { display: grid; gap: 8px; min-width: 0; }
.rep-sec h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.rep-tbl { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.rep-tbl th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); padding: 9px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom; }
.rep-tbl td { padding: 8px 11px; border-bottom: 1px solid var(--line-2); vertical-align: top; white-space: nowrap; }
.rep-tbl td:last-child:not(.num) { white-space: normal; min-width: 220px; }
.rep-tbl tbody tr:last-child td { border-bottom: 0; }
.rep-tbl .num { text-align: right; white-space: nowrap; }
.rep-tbl td:first-child { white-space: nowrap; font-weight: 600; }
.rep-tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; background: var(--surface-2); }
.rep-tbl td.good { color: var(--green); font-weight: 600; } .rep-tbl td.warn { color: var(--amber); font-weight: 600; } .rep-tbl td.bad { color: var(--brick); font-weight: 600; }
.rep-tbl td.good, .rep-tbl td.warn, .rep-tbl td.bad { white-space: nowrap; }
.report[data-kind="f8846"] .rep-tbl td:nth-child(2) { white-space: normal; min-width: 260px; max-width: 70ch; }
.print-only { display: none; }
@media print { .print-only { display: block; } }
