/* Egis: one stylesheet for the owners' dashboard and trackers.
   HQA brand kit: ink, cream and gold, Barlow, a gold head rule on every page. The logo PNGs have solid
   backgrounds, so the header is white in light mode (#FFFFFF) and ink in dark mode (#141414). */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }

:root {
  --font: "Barlow", Arial, Calibri, system-ui, sans-serif;
  --head: #ffffff;          /* the logo's own background */
  --bg: #f7f4ed;            /* cream */
  --surface: #ffffff;
  --ink: #141414;
  --body: #2b2b2b;
  --muted: #6b6b70;
  --faint: #a1a1a6;
  --line: #e6e6e8;
  --track: #ebe6da;
  --gold: #b58900;
  --gold-deep: #8a6d00;
  --gold-soft: #f6edd2;
  --btn-ink: #141414;
  --btn-ink-text: #f7f4ed;
  --band: #141414;
  --band-text: #f7f4ed;
  --ok: #17663f;   --ok-bg: #e2f3e9;
  --wait: #8a6d00; --wait-bg: #fbf1cf;
  --bad: #a3271c;  --bad-bg: #fbe5e2;
  --idle: #55606b; --idle-bg: #eceef0;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 6px 24px rgba(20, 20, 20, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --head: #141414; --bg: #0d0d0d; --surface: #1a1a1a; --ink: #f7f4ed; --body: #e4e1da; --muted: #a1a1a6;
    --faint: #75757a; --line: #2b2b2b; --track: #2a2a2a; --gold: #e8b040; --gold-deep: #e8b040; --gold-soft: #2e2512;
    --btn-ink: #f7f4ed; --btn-ink-text: #141414; --band: #1a1a1a; --band-text: #f7f4ed;
    --ok: #6fd39c; --ok-bg: #13281e; --wait: #f0b85a; --wait-bg: #33270f; --bad: #f2877c; --bad-bg: #3a1a17;
    --idle: #a9b4bf; --idle-bg: #24282c; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --head: #141414; --bg: #0d0d0d; --surface: #1a1a1a; --ink: #f7f4ed; --body: #e4e1da; --muted: #a1a1a6;
  --faint: #75757a; --line: #2b2b2b; --track: #2a2a2a; --gold: #e8b040; --gold-deep: #e8b040; --gold-soft: #2e2512;
  --btn-ink: #f7f4ed; --btn-ink-text: #141414; --band: #1a1a1a; --band-text: #f7f4ed;
  --ok: #6fd39c; --ok-bg: #13281e; --wait: #f0b85a; --wait-bg: #33270f; --bad: #f2877c; --bad-bg: #3a1a17;
  --idle: #a9b4bf; --idle-bg: #24282c; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hidden { display: none !important; }

/* ---- header: gold head rule, lockup | product name, log in ---- */
.rule { height: 5px; background: var(--gold); }
.top { background: var(--head); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 50px; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.brand .bar { width: 1px; height: 26px; background: var(--line); flex: none; }
.brand .product { font-weight: 600; font-size: 19px; color: var(--ink); white-space: nowrap; letter-spacing: 0.01em; }
.top .right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: 600 15px var(--font); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.12s ease, background-color 0.12s ease; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.gold { background: var(--gold); color: #141414; }
.btn.gold:hover { background: #c99a10; }
.btn.ink { background: var(--btn-ink); color: var(--btn-ink-text); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--gold-soft); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* ---- sections ---- */
.band { padding: 56px 0; }
.band.alt { background: var(--head); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.band .intro { color: var(--muted); max-width: 46em; margin: 10px 0 0; font-size: 17px; }


.quote { text-align: center; padding: 64px 0; }
.quote p { margin: 0 auto; max-width: 22em; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; color: var(--ink); line-height: 1.15; text-wrap: balance; }
.quote p span { color: var(--gold); }
.quote small { display: block; margin-top: 14px; color: var(--muted); font-size: 16px; }

.cta { background: var(--band); color: var(--band-text); padding: 56px 0; border-top: 5px solid var(--gold); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta h2 { color: var(--band-text); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.cta p { margin: 8px 0 0; color: #a1a1a6; font-size: 17px; }

footer.foot { padding: 26px 0 40px; font-size: 13.5px; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer.foot a { color: var(--gold-deep); text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }

/* ---- the dashboard ---- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.dash-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.dash-meta .stale { color: var(--wait); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 18px; font-weight: 600; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card h3 .note { font-size: 13px; font-weight: 500; color: var(--muted); text-align: right; }

.top-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr); gap: 16px; }
.grade-card { display: grid; gap: 10px; align-content: start; }
.grade-line { display: flex; align-items: center; gap: 18px; }
.grade { font-size: 96px; font-weight: 700; line-height: 0.85; letter-spacing: -0.04em; }
.grade sup { font-size: 0.42em; vertical-align: 0.95em; margin-left: 2px; }
.grade.t-ok, .big.t-ok { color: var(--ok); background: none; }
.grade.t-wait, .big.t-wait { color: var(--wait); background: none; }
.grade.t-bad, .big.t-bad { color: var(--bad); background: none; }
.grade.t-idle { color: var(--faint); background: none; }
.grade-side { display: grid; gap: 2px; }
.score { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.next { font-size: 14px; color: var(--muted); }
.quip-line { font-size: 17px; font-weight: 600; color: var(--ink); }
.scored { margin-top: 4px; }
.scored-head { font-size: 14px; font-weight: 600; color: var(--gold-deep); display: flex; align-items: center; }
.scorebars { display: grid; gap: 8px; margin-top: 8px; }
.scored .scorebars, .scored .foot { padding-left: 14px; }
.scored .scorebars { opacity: 0.68; }
.scorebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13.5px; }
.scorebar .track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.scorebar .fill { height: 100%; border-radius: 99px; }
.fill.t-ok { background: var(--ok); } .fill.t-wait { background: var(--wait); } .fill.t-bad { background: var(--bad); }

.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fixes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
.fixes li .txt { min-width: 0; }
.fixes li.later { color: var(--muted); }
.fixes .empty { color: var(--muted); }



.rows { display: grid; }
.r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.r:first-child { border-top: 0; padding-top: 2px; }
.r .lbl { font-weight: 500; color: var(--ink); min-width: 0; }
.r .lbl small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.r .issues { grid-column: 1 / -1; margin: 0; padding: 0 0 0 2px; list-style: none; font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; }
.r details { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; width: max-content; font-size: 14px; }
.r details ul { margin: 6px 0 2px; padding-left: 18px; display: grid; gap: 4px; }

.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px 2px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill svg { width: 12px; height: 12px; flex: none; }
.t-ok { color: var(--ok); background: var(--ok-bg); }
.t-wait { color: var(--wait); background: var(--wait-bg); }
.t-bad { color: var(--bad); background: var(--bad-bg); }
.t-idle { color: var(--idle); background: var(--idle-bg); }
.pill.flash { animation: flash 1.6s ease-in-out infinite; }
@keyframes flash { 50% { opacity: 0.55; } }

.threats { list-style: none; margin: 0; padding: 0; display: grid; }
.threats li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.threats li:first-child { border-top: 0; padding-top: 2px; }
.threats li > .pill { justify-self: start; }
.threats .v { font-weight: 600; color: var(--ink); }
.threats .t { font-size: 14.5px; }
.threats .do { font-size: 14px; color: var(--ink); margin-top: 4px; }
.threats .do b { color: var(--gold-deep); }
.threats .d { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card .foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.mac h3 .note { color: var(--muted); }
.muted { color: var(--muted); }

/* ---- app: sign-in screen and states ---- */
.gate { min-height: calc(100vh - 78px); display: grid; place-items: center; padding-top: 32px; padding-bottom: 32px; }
.gate .card { max-width: 440px; width: 100%; text-align: center; padding: 34px 28px; display: grid; gap: 14px; justify-items: center; }
.gate .q { width: 64px; height: auto; border-radius: 14px; }
.gate .q.dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gate .q.light { display: none; } :root:not([data-theme="light"]) .gate .q.dark { display: block; } }
:root[data-theme="dark"] .gate .q.light { display: none; }
:root[data-theme="dark"] .gate .q.dark { display: block; }
.gate h1 { font-size: 30px; font-weight: 700; }
.gate p { margin: 0; color: var(--muted); }
.gate .notice { font-size: 12.5px; color: var(--faint); }
.gate .back { font-size: 14px; color: var(--gold-deep); text-decoration: none; }
.msg { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.msg.t-bad, .msg.t-wait { font-weight: 500; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- trackers: top nav, Open Items, Certifications ---- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; }
.nav .tabs, .nav .ext { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tab:hover { color: var(--ink); background: var(--gold-soft); }
.tab[aria-current="page"] { color: var(--ink); background: var(--gold-soft); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.tab.out::after { content: "\2197"; margin-left: 6px; font-size: 13px; color: var(--faint); }
.t-sug { color: var(--gold-deep); background: var(--gold-soft); }
.soon p { margin: 0; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.card .goal { margin: 0 0 14px; font-size: 18px; font-weight: 500; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--body); font: 500 15px var(--font); cursor: pointer; box-shadow: var(--shadow); }
.chip b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.t-bad b { color: var(--bad); } .chip.t-wait b { color: var(--wait); } .chip.t-idle b { color: var(--idle); } .chip.t-sug b { color: var(--gold-deep); }
.chip.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chips.small .chip, .chip.plain { padding: 6px 14px; border-radius: 999px; box-shadow: none; }
.chip.plain b { font-size: 15px; color: var(--muted); }
.chip.plain.on { background: var(--gold-soft); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field select { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 15px var(--font); }
.field.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; font-weight: 500; color: var(--ink); }
.field.check input { width: 18px; height: 18px; accent-color: var(--gold); }

.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 2px; }
.item.closed { opacity: 0.6; }
.item .ttl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.item .ttl b { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.item p { margin: 6px 0 0; color: var(--body); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.item .side { display: grid; gap: 2px; justify-items: end; align-content: start; text-align: right; font-size: 14px; white-space: nowrap; }
.due { font-weight: 600; color: var(--ink); }
.due.late, td.late { color: var(--bad); }
.owner { color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 14px; height: 14px; margin: 4px 0 0 3px; border-radius: 50%; border: 3px solid var(--faint); background: var(--surface); }
.timeline .done .dot { border-color: var(--ok); background: var(--ok); }
.timeline .late .dot { border-color: var(--bad); }
.timeline b { display: block; color: var(--ink); font-weight: 600; }
.timeline span { font-size: 14px; color: var(--muted); }
.timeline .late span { color: var(--bad); font-weight: 600; }

.sumrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center; }
.sumrow svg { width: 96px; height: 96px; display: block; }
.sumrow .trk { fill: none; stroke: var(--track); stroke-width: 9; }
.sumrow .val { fill: none; stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 40px 40px; }
.sumrow .val.t-ok { stroke: var(--ok); } .sumrow .val.t-wait { stroke: var(--wait); } .sumrow .val.t-bad { stroke: var(--bad); }
.sumrow .num { fill: var(--ink); font: 600 17px var(--font); }
.sumbar { display: grid; gap: 12px; min-width: 0; }
.stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--track); }
.stack.big { height: 18px; }
.seg.inplace, .sw.inplace { background: var(--ok); } .seg.partial, .sw.partial { background: var(--gold); }
.seg.planned, .sw.planned { background: var(--idle); } .seg.gap, .sw.gap { background: var(--bad); } .seg.risk, .sw.risk { background: var(--faint); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; background: var(--bg); }
.tile .tl b { display: block; font-size: 18px; color: var(--ink); }
.tile .tl span { font-size: 13px; color: var(--muted); }
.tile p { margin: 0; font-size: 13px; color: var(--muted); }
.tile .tn { color: var(--ink); font-weight: 600; }
.tile .none { color: var(--faint); }
.scroll { overflow-x: auto; margin-top: 12px; }
.ctl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.ctl th { text-align: left; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ctl td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; }
.ctl td.id, .ctl td.nd { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.ctl td b { font-weight: 600; color: var(--ink); display: block; }
.ctl td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card h3 .pill { margin-left: auto; }

/* ---- info buttons: a small round "i" that opens a plain-words pop-out on click only (assets/info.js) ---- */
.info { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; padding: 0; margin-left: 6px; vertical-align: middle; border-radius: 50%; border: 1.5px solid var(--faint); background: transparent; color: var(--muted); font: italic 700 12px/1 Georgia, "Times New Roman", serif; text-transform: none; letter-spacing: 0; cursor: pointer; flex: none; }
.info:hover { border-color: var(--gold); color: var(--ink); }
.info[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: #141414; }
.info:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (pointer: coarse) { .info { width: 26px; height: 26px; min-width: 26px; font-size: 14px; } }
.infopop { position: fixed; z-index: 50; max-width: calc(100vw - 24px); padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--body); border: 1px solid var(--gold); box-shadow: 0 8px 28px rgba(20, 20, 20, 0.22); font-size: 14.5px; line-height: 1.45; }
.infopop b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.infopop p { margin: 0; }
.ttl { display: inline-flex; align-items: center; flex-wrap: wrap; min-width: 0; }
h2 .info { width: 24px; height: 24px; min-width: 24px; font-size: 14px; }
.tabwrap { display: inline-flex; align-items: center; }
.tabwrap .info { margin-left: 2px; margin-right: 6px; }
.tabwrap .tab.out + .info { margin-left: 0; }
.taghelp, .card p.sub { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.card p.sub { font-weight: 600; color: var(--ink); font-size: 14.5px; margin-top: 4px; }
.field > span { display: inline-flex; align-items: center; }
.legend .info, .tile .tl .info { margin-left: 4px; }

/* ---- front page: one short card per area, in groups ---- */
.hgroups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.grp-t { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.hcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; min-width: 0; }
.hcard h3 { font-size: 17px; font-weight: 600; }
.hcard .hline { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.hcard .more { justify-self: start; font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; padding: 2px 0; }
.hcard .more:hover { text-decoration: underline; }
.minis { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { font-size: 13px; font-weight: 600; text-decoration: none; padding: 2px 10px; border-radius: 999px; }
.mini.t-sug { color: var(--gold-deep); background: var(--gold-soft); }
.mini:hover { text-decoration: underline; }
.back-link { justify-self: start; font-size: 14.5px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.tab[aria-current="true"] { color: var(--ink); }

/* ---- Sign-Ins, Vendors, Apps And Domains pages ---- */
.nav .tabs { gap: 4px; }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.gauge.card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; }
.gauge > svg { width: 76px; height: 76px; display: block; }
.gauge .trk { fill: none; stroke: var(--track); stroke-width: 9; }
.gauge .val { fill: none; stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 40px 40px; }
.gauge .val.t-ok { stroke: var(--ok); } .gauge .val.t-wait { stroke: var(--wait); } .gauge .val.t-bad { stroke: var(--bad); } .gauge .val.t-idle { stroke: var(--idle); }
.gauge .pct { fill: var(--ink); font: 600 17px var(--font); }
.gauge .txt { display: grid; gap: 2px; min-width: 0; }
.gauge .txt b { display: flex; align-items: center; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.gauge .num { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.gauge .why { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bignum { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sevs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; max-width: 34ch; }
.sub.late { color: var(--bad); font-weight: 600; }
.sub .pill { margin-right: 2px; }
.ctl td.meth, .ctl td.nd { color: var(--body); }
.ctl td.nd.late { color: var(--bad); font-weight: 600; }
.ctl.vendors td, .ctl.apps td { min-width: 0; }
.ctl.vendors { min-width: 860px; } .ctl.apps { min-width: 900px; } .ctl.people { min-width: 720px; } .ctl.people td.dom { color: var(--muted); white-space: nowrap; } .ctl.domains { min-width: 1100px; }
.ctl.vendors td:nth-child(2), .ctl.vendors td:nth-child(3) { max-width: 30ch; }
.dom { font-weight: 600; color: var(--ink); white-space: nowrap; display: block; }
.card.sheetcard .scroll { max-height: min(78vh, 980px); overflow: auto; }
.ctl tr.group td { background: var(--gold-soft); border-top: 1px solid var(--line); padding: 8px 10px; }
.ctl .glabel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ctl .glabel b { display: inline; }
.ctl .gnote { color: var(--muted); font-size: 13px; font-weight: 400; }
.pill.btn { border: 0; font-family: var(--font); cursor: pointer; }
.pill.btn:hover { filter: brightness(0.96); }
.pill.btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--gold); }
.pill.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pill.btn span { text-decoration: underline dotted 1px; text-underline-offset: 3px; }
.checkpop { width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto; }
.checkpop .scope { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.checkpop .tally { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.checkpop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checkpop li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: start; }
.checkpop .st { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; text-align: center; white-space: nowrap; }
.checkpop .nm { font-weight: 600; color: var(--ink); display: block; }
.checkpop .nt { display: block; color: var(--muted); font-size: 13px; }
.checkpop .pfoot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: 0; padding-top: 2px; }
.rules li.closed { opacity: 0.6; }
.rules .rname { color: var(--ink); font-weight: 500; min-width: 0; }
.dash > .card, .dash > .gauges, .dash > .grid2 { min-width: 0; }
.ctl th .ttl { white-space: nowrap; flex-wrap: nowrap; }

/* ---- narrow screens ---- */
@media (max-width: 1100px) {
}
@media (max-width: 980px) {
  .top-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .item .side { justify-items: start; text-align: left; display: flex; gap: 12px; }
  .sumrow { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 560px) {
  .gauge.card { grid-template-columns: 64px minmax(0, 1fr); }
  .gauge > svg, .bignum { width: 64px; height: 64px; }
  .tab { padding: 0 10px; font-size: 14px; }
  .brand img { height: 40px; }
  .brand .product { font-size: 16px; }
  .brand .bar { height: 22px; }
  .top .wrap { min-height: 60px; }
  .who { display: none; }
  .band { padding: 42px 0; }
  .card { padding: 16px; }
  .grade { font-size: 80px; }
  .threats li { grid-template-columns: minmax(0, 1fr) auto; }
  .threats li .pill { grid-column: 1 / -1; width: max-content; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
