/* CertYard Pro – shared styles for the app, the sub upload portal and the site check page. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #eef0f2; --surface: #ffffff; --sunk: #f6f7f9; --raise: #ffffff; --ink: #12161b; --ink-2: #2b323b; --muted: #5d6672; --line: #dde1e6; --line-2: #e9ecef;
  --accent: #d9530b; --accent-2: #b94508; --accent-ink: #ffffff; --accent-soft: #fdeadf;
  --ok: #17784a; --ok-bg: #e0f3e8; --warn: #9a5c00; --warn-bg: #fcefd5; --bad: #bf2f1b; --bad-bg: #fbe2dd; --none: #5d6672; --none-bg: #e8ebef;
  --info: #1f5fd6; --info-bg: #e3ecfd;
  --focus: #1f5fd6; --side: #12161b; --side-2: #1b2128; --side-ink: #c9d0d8; --side-mute: #7f8a96; --side-line: #262d35;
  --shadow: 0 1px 2px rgb(16 22 27 / .06), 0 1px 1px rgb(16 22 27 / .04);
  --shadow-lg: 0 18px 50px rgb(16 22 27 / .18), 0 4px 12px rgb(16 22 27 / .08);
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0c0f12; --surface: #14181d; --sunk: #191e24; --raise: #1b2027; --ink: #e7eaee; --ink-2: #c9d0d8; --muted: #949ead; --line: #272e36; --line-2: #20262d;
  --accent: #ff7a33; --accent-2: #ff9255; --accent-ink: #1b0b02; --accent-soft: #3a1e0e;
  --ok: #5ccb93; --ok-bg: #11301f; --warn: #f2b443; --warn-bg: #33260b; --bad: #ff7763; --bad-bg: #3a1712; --none: #9aa3ae; --none-bg: #222830;
  --info: #84b2ff; --info-bg: #142542; --focus: #84b2ff; --side: #090b0e; --side-2: #12161b; --side-line: #1c2228;
  --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 18px 50px rgb(0 0 0 / .55); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0c0f12; --surface: #14181d; --sunk: #191e24; --raise: #1b2027; --ink: #e7eaee; --ink-2: #c9d0d8; --muted: #949ead; --line: #272e36; --line-2: #20262d;
  --accent: #ff7a33; --accent-2: #ff9255; --accent-ink: #1b0b02; --accent-soft: #3a1e0e;
  --ok: #5ccb93; --ok-bg: #11301f; --warn: #f2b443; --warn-bg: #33260b; --bad: #ff7763; --bad-bg: #3a1712; --none: #9aa3ae; --none-bg: #222830;
  --info: #84b2ff; --info-bg: #142542; --focus: #84b2ff; --side: #090b0e; --side-2: #12161b; --side-line: #1c2228;
  --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 18px 50px rgb(0 0 0 / .55); color-scheme: dark }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 88%; margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 18px; font-weight: 750; } h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .88em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 13px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 38px; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow); transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--line)); background: var(--sunk); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.quiet { background: transparent; border-color: transparent; box-shadow: none; }
.btn.quiet:hover { background: var(--sunk); }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: var(--sunk); }

.field { display: grid; gap: 5px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.field .err { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 11px; min-height: 38px; transition: border-color .12s, box-shadow .12s; }
.field textarea { min-height: 84px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.field.bad input, .field.bad select { border-color: var(--bad); }
.money { position: relative; } .money::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); font-size: 13px; }
.money input { padding-left: 22px !important; font-family: var(--mono); font-size: 13.5px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; }
.switch input:checked { background: var(--accent); } .switch input:checked::after { transform: translateX(16px); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); } .stack-s { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .grow { flex: 1; min-width: 0; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 2px 10px 2px 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-ok { color: var(--ok); background: var(--ok-bg); } .s-expiring { color: var(--warn); background: var(--warn-bg); }
.s-action, .s-expired { color: var(--bad); background: var(--bad-bg); } .s-missing { color: var(--none); background: var(--none-bg); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; border-radius: 5px; padding: 1px 6px; background: var(--sunk); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.review { color: var(--info); background: var(--info-bg); border-color: transparent; }
.days { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.days.neg { color: var(--bad); font-weight: 600; } .days.soon { color: var(--warn); font-weight: 600; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 16px 12px; gap: 6px; border-right: 1px solid var(--side-line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: #fff; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; flex: none; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: auto 0 0 0; height: 7px; background: repeating-linear-gradient(-45deg, #12161b 0 5px, transparent 5px 10px); }
.brand-mark svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 2.4; fill: none; margin-top: -5px; }
.brand b { font-family: var(--display); font-stretch: 80%; font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.brand small { font-family: var(--mono); font-size: 10px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.org-chip { margin: 0 4px 10px; padding: 9px 10px; border-radius: 9px; background: var(--side-2); border: 1px solid var(--side-line); display: grid; gap: 1px; }
.org-chip b { color: #fff; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-chip span { font-size: 11.5px; color: var(--side-mute); }
.nav { display: grid; gap: 2px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--side-mute); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--side-ink); font-weight: 500; font-size: 14px; position: relative; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--side-2); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a .count { margin-left: auto; font-family: var(--mono); font-size: 11px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 7px; font-weight: 500; }
.nav a .count.dim { background: var(--side-line); color: var(--side-ink); }
.side-foot { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.trial { margin: 0 4px; border-radius: 9px; padding: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--side-2)), var(--side-2)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--side-line)); font-size: 12.5px; }
.trial b { color: #fff; display: block; font-size: 13px; }
.trial .bar { height: 4px; border-radius: 9px; background: var(--side-line); margin-top: 8px; overflow: hidden; } .trial .bar i { display: block; height: 100%; background: var(--accent); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; border: 0; background: transparent; color: var(--side-ink); cursor: pointer; text-align: left; width: 100%; }
.me:hover { background: var(--side-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 80%, #000); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.me b { display: block; color: #fff; font-size: 13px; } .me span { font-size: 11.5px; color: var(--side-mute); }
.me > div { min-width: 0; } .me b, .me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 6px 8px 6px 11px; color: var(--muted); cursor: pointer; min-width: 240px; font-size: 13.5px; box-shadow: var(--shadow); }
.search-trigger kbd { margin-left: auto; }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--sunk); color: var(--muted); }
.menu-btn { display: none; }
.view { padding: 18px 28px 48px; display: grid; gap: 18px; align-content: start; max-width: 1360px; width: 100%; }
.page-h { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-h > div:first-child { min-width: 0; flex: 1; }
.page-h p { color: var(--muted); margin-top: 4px; }
.page-h .row { margin-left: auto; }

/* ---------- panels, cards, tables ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-h h2 { font-size: 15.5px; } .panel-h .row { margin-left: auto; }
.panel-b { padding: 16px; }
.panel-f { padding: 12px 16px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: var(--sunk); border-radius: 0 0 12px 12px; }
.kpis { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; text-decoration: none; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: border-color .12s, transform .12s; }
a.kpi:hover { border-color: color-mix(in srgb, var(--tone, var(--ink)) 45%, var(--line)); transform: translateY(-1px); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone, var(--line)); }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-family: var(--display); font-size: 32px; font-weight: 800; font-stretch: 88%; font-variant-numeric: tabular-nums; line-height: 1.05; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi.t-ok { --tone: var(--ok); } .kpi.t-warn { --tone: var(--warn); } .kpi.t-bad { --tone: var(--bad); } .kpi.t-none { --tone: var(--none); }
.kpi.hero { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; --tone: var(--accent); }
.ring { width: 84px; height: 84px; }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: var(--line-2); } .ring .fg { stroke: var(--ok); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring text { font-family: var(--display); font-weight: 800; font-size: 21px; fill: var(--ink); font-stretch: 88%; }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 9px 16px; background: var(--sunk); border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { border-top-left-radius: 0; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.link { cursor: pointer; } tr.link:hover td { background: var(--sunk); }
.cell-main b { display: block; font-weight: 650; } .cell-main span { font-size: 12.5px; color: var(--muted); }
.issue-line { font-size: 13px; color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.chip i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); } .chip[aria-pressed="true"] i { color: inherit; opacity: .7; }
.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); text-decoration: none; min-width: 0; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--sunk); }
.list-item .grow b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .grow span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--none); } .dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.empty { padding: 36px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; stroke: var(--muted); opacity: .7; }
.empty b { color: var(--ink); font-size: 15px; } .empty p { max-width: 48ch; }
.skeleton { background: linear-gradient(90deg, var(--line-2) 0, var(--sunk) 50%, var(--line-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* timeline chart */
.timeline { padding: 16px; }
.timeline svg { width: 100%; height: auto; display: block; overflow: visible; }
.timeline .axis { stroke: var(--line); } .timeline .tick { fill: var(--muted); font-size: 10.5px; font-family: var(--mono); }
.timeline .today { stroke: var(--accent); stroke-dasharray: 3 3; } .timeline .today-l { fill: var(--accent); font-size: 10.5px; font-weight: 700; font-family: var(--body); }
.timeline .bar-ok { fill: var(--ok); } .timeline .bar-warn { fill: var(--warn); } .timeline .bar-bad { fill: var(--bad); }
.timeline .bar-bg { fill: var(--line-2); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; } .legend span { display: inline-flex; align-items: center; gap: 6px; }
.progress { height: 7px; border-radius: 9px; background: var(--line-2); overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; background: var(--ok); } .progress i.w { background: var(--warn); } .progress i.b { background: var(--bad); }

/* sub detail */
.hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px; }
.hero-card h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.facts > div { display: grid; } .facts > div > span:first-child { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.issues { display: grid; gap: 8px; }
.issue { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--bad-bg); color: var(--ink); font-size: 13.5px; }
.issue.medium { background: var(--warn-bg); }
.issue svg { color: var(--bad); margin-top: 1px; } .issue.medium svg { color: var(--warn); }
.allgood { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 9px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.cov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cov { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; background: var(--surface); }
.cov.absent { border-style: dashed; background: var(--sunk); }
.cov-h { display: flex; align-items: center; gap: 8px; }
.cov-h b { font-size: 14px; } .cov-h .tag { margin-left: auto; }
.lim { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; font-size: 13px; align-items: baseline; }
.lim .v { font-family: var(--mono); font-size: 12.5px; text-align: right; } .lim .need { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.lim .short { color: var(--bad); font-weight: 600; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.flag { font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 1px 7px; }
.flag.y { background: var(--ok-bg); color: var(--ok); } .flag.n { background: var(--none-bg); color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.linkbox { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--sunk); border-radius: 9px; padding: 4px 4px 4px 11px; }
.linkbox code { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; color: var(--ink-2); }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 26px 16px; text-align: center; display: grid; gap: 6px; justify-items: center; background: var(--sunk); cursor: pointer; transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 34px; height: 34px; color: var(--accent); }
.drop b { font-size: 14.5px; } .drop span { font-size: 12.5px; color: var(--muted); }
.drop.busy { pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; font-size: 13.5px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.steps i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.steps li.run { color: var(--ink); } .steps li.run i { border-color: var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink); } .steps li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline-list { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 8px 0; position: relative; font-size: 13px; }
.tl::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: -8px; width: 2px; background: var(--line-2); }
.tl:last-child::before { display: none; }
.tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin: 5px 0 0 4px; position: relative; z-index: 1; }
.tl i.a { background: var(--accent); } .tl i.ok { background: var(--ok); }
.tl b { font-weight: 600; } .tl span { color: var(--muted); font-size: 12px; display: block; }

/* review */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; min-height: 70vh; }
.pdf-pane { background: #525659; border-right: 1px solid var(--line); overflow: auto; max-height: calc(100vh - 140px); position: sticky; top: 64px; border-radius: 12px 0 0 12px; }
.pdf-pane canvas { display: block; margin: 12px auto; max-width: calc(100% - 24px); height: auto !important; box-shadow: 0 2px 12px rgb(0 0 0 / .35); background: #fff; }
.pdf-tools { position: sticky; top: 0; display: flex; gap: 6px; padding: 8px; background: #3c3f42; color: #eee; align-items: center; z-index: 1; }
.pdf-tools .btn { background: #55595d; border-color: #55595d; color: #fff; box-shadow: none; }
.form-pane { padding: 18px; display: grid; gap: 18px; align-content: start; }
.fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 12px; }
.fieldset legend { font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 14.5px; padding: 0 6px; }
.diff { font-size: 12px; color: var(--warn); font-weight: 600; }
.live { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 2; border-radius: 0 0 12px 0; }

/* projects */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; text-decoration: none; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.pcard:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pcard h3 { font-size: 16px; } .pcard p { font-size: 13px; color: var(--muted); }
.pcard .nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); } .pcard .nums b { color: var(--ink); font-family: var(--mono); }
.qr-box { display: grid; gap: 12px; justify-items: center; text-align: center; }
.qr-box img { width: 200px; height: 200px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 8px; }

/* overlays */
.scrim { position: fixed; inset: 0; background: rgb(10 12 15 / .45); z-index: 40; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: fixed; z-index: 41; left: 50%; top: 10vh; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); max-height: 80vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .16s ease-out; }
.modal.wide { width: min(760px, calc(100% - 24px)); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px) scale(.98); } }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.modal-h h2 { font-size: 18px; } .modal-h .icon-btn { margin-left: auto; }
.modal-b { padding: 4px 18px 18px; overflow: auto; display: grid; gap: 14px; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; background: var(--sunk); border-radius: 0 0 14px 14px; flex-wrap: wrap; }
.palette { top: 12vh; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; padding: 16px 18px; font-size: 16px; width: 100%; background: transparent; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.palette li a[aria-selected="true"] { background: var(--sunk); outline: 1px solid var(--line); }
.palette li .kind { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.toasts { position: fixed; bottom: 18px; right: 18px; z-index: 60; display: grid; gap: 8px; width: min(380px, calc(100% - 36px)); }
.toast { background: var(--ink); color: var(--surface); padding: 11px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: slide .2s ease-out; }
.toast.bad { background: var(--bad); color: #fff; } .toast.ok svg { color: var(--ok); }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } }
.email-body { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; background: var(--sunk); border: 1px solid var(--line); border-radius: 9px; padding: 12px; max-height: 50vh; overflow: auto; }
.notice { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; background: var(--info-bg); color: var(--ink); }
.notice.warn { background: var(--warn-bg); } .notice.bad { background: var(--bad-bg); } .notice.ok { background: var(--ok-bg); }
.notice svg { margin-top: 1px; }

/* ---------- auth & public pages ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { background: var(--side); color: var(--side-ink); padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--side-line) 1px, transparent 1px), linear-gradient(90deg, var(--side-line) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0, transparent 70%); opacity: .7; }
.auth-art > * { position: relative; }
.auth-art h1 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); font-stretch: 78%; font-weight: 850; line-height: 1.02; max-width: 15ch; }
.auth-art h1 em { font-style: normal; color: var(--accent); }
.auth-art .lede { font-size: 16px; max-width: 44ch; color: var(--side-ink); }
.auth-points { display: grid; gap: 12px; max-width: 46ch; }
.auth-points > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.auth-points svg { color: var(--accent); margin-top: 2px; }
.auth-points b { color: #fff; display: block; }
.mock { margin-top: auto; background: var(--side-2); border: 1px solid var(--side-line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; max-width: 460px; box-shadow: 0 24px 60px rgb(0 0 0 / .4); }
.mock-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 8px; border-radius: 7px; background: var(--side); }
.mock-row b { color: #fff; font-weight: 600; flex: 1; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.auth-card { width: min(400px, 100%); display: grid; gap: 18px; }
.auth-card h2 { font-size: 26px; font-weight: 800; }
.auth-card .alt { font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-card .alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pw-meter { height: 4px; border-radius: 9px; background: var(--line-2); overflow: hidden; } .pw-meter i { display: block; height: 100%; transition: width .2s, background .2s; }
.form-err { color: var(--bad); background: var(--bad-bg); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; }

.public { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.public-top { background: var(--side); color: #fff; padding: 14px 20px; }
.public-top .wrap { display: flex; align-items: center; gap: 12px; }
.public-top .stripe { height: 5px; background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--side) 10px 20px); }
.wrap { width: min(760px, 100%); margin: 0 auto; }
.public-main { padding: 22px 16px 40px; display: grid; gap: 16px; }
.public-foot { margin-top: auto; text-align: center; font-size: 12px; color: var(--muted); padding: 20px; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.req-list svg { color: var(--accent); margin-top: 2px; }
.result { display: grid; gap: 12px; }
.big-status { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; }
.big-status svg { width: 34px; height: 34px; stroke-width: 2.2; }
.big-status b { font-family: var(--display); font-size: 20px; font-stretch: 88%; display: block; }
.big-status.ok { background: var(--ok-bg); color: var(--ok); } .big-status.bad { background: var(--bad-bg); color: var(--bad); } .big-status.warn { background: var(--warn-bg); color: var(--warn); }
.big-status span { color: var(--ink); font-size: 13.5px; }
.site-count { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.site-count div { border-radius: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.site-count b { font-family: var(--display); font-size: 36px; font-weight: 850; font-stretch: 85%; display: block; line-height: 1; }
.site-count .ok b { color: var(--ok); } .site-count .bad b { color: var(--bad); }
.site-list { display: grid; }
.site-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.site-item:last-child { border-bottom: 0; }
.site-item .mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.site-item .mark.ok { background: var(--ok-bg); color: var(--ok); } .site-item .mark.bad { background: var(--bad-bg); color: var(--bad); }
.site-item .mark svg { stroke-width: 2.6; }
.site-item b { display: block; font-size: 15px; } .site-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi.hero { grid-column: 1 / -1; } .dash, .two-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 45; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; } .view { padding: 14px 16px 40px; }
  .search-trigger { min-width: 0; } .search-trigger .label, .search-trigger kbd { display: none; }
  .review-layout { grid-template-columns: minmax(0, 1fr); } .pdf-pane { position: static; max-height: 60vh; border-radius: 12px 12px 0 0; border-right: 0; }
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { padding: 28px 20px; } .auth-art .mock, .auth-points { display: none; }
}
@media (max-width: 640px) {
  .grid2, .grid3, .cov-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi b { font-size: 26px; }
  .hero-card { grid-template-columns: minmax(0, 1fr); }
  table.responsive thead { display: none; }
  table.responsive tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  table.responsive td { padding: 0; border: 0; }
  table.responsive td.hide-m { display: none; }
  table.responsive td.full { grid-column: 1 / -1; }
  h1 { font-size: 22px; }
}
@media print {
  .side, .topbar, .no-print { display: none !important; } .shell { display: block; } body { background: #fff; }
  .panel { box-shadow: none; border: 0; } .print-only { display: block !important; }
}
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.sk-1 { height: 34px; width: 280px; max-width: 70%; } .sk-2 { height: 120px; } .sk-3 { height: 320px; }
.pad { padding: 12px; }
.sk-pill { width: 80px; height: 22px; border-radius: 99px; }
@media print { .poster { display: grid !important; justify-items: center; gap: 18px; text-align: center; padding-top: 40px; } .poster h1 { font-size: 40px; } .poster img { width: 360px; height: 360px; } body.print-poster .view > :not(.poster) { display: none !important; } } @media print { body:not(.print-poster) .poster { display: none !important; } }
.pad-t { padding-top: 12px; }
.kpi.hero > div { display: grid; gap: 3px; min-width: 0; }
.kpi b small { font-size: 14px; font-weight: 600; font-family: var(--body); }
.qr-box { grid-template-columns: minmax(0, 1fr); } .qr-box .linkbox { width: 100%; text-align: left; } .qr-box img { justify-self: center; }
@media (min-width: 921px) { .shell { background: linear-gradient(90deg, var(--side) 248px, transparent 248px); } }
.public-top.stripe { padding: 0; height: 5px; }
@media (max-width: 640px) { .page-h { flex-direction: column; align-items: stretch; } .page-h .row { margin-left: 0; } .page-h .row .btn { flex: 1; } }
#view:focus { outline: none; }
@media (hover: none) { tr.link:hover td, a.list-item:hover { background: none; } }
.trial.ended { background: var(--side-2); border-color: color-mix(in srgb, var(--bad) 50%, var(--side-line)); }
.plan-banner { margin: 12px 28px 0; } @media (max-width: 920px) { .plan-banner { margin: 10px 16px 0; } }
a.plain { text-decoration: none; } a.plain:hover b { text-decoration: underline; }
@media print {
  .shell { background: none !important; display: block; } .main { display: block; } .view { padding: 0; max-width: none; }
  .page-h, .chips, .panel-h .row, .panel-f, .toasts, .plan-banner, .menu-btn { display: none !important; }
  .print-only { display: block !important; margin-bottom: 12px; } .print-only h1 { font-size: 22px; }
  table.responsive td.hide-m { display: table-cell !important; } tr.link:hover td { background: none; }
  .hero-card, .panel { break-inside: avoid; border: 1px solid #ccc; } a { text-decoration: none; }
}
@media (max-width: 640px) {
  .live { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; border-radius: 0; }
  .live > .grow { grid-column: 1 / -1; } .live .btn { width: 100%; padding-left: 8px; padding-right: 8px; }
  .crumbs > :not(:last-child) { display: none; }
}
.list-item.wrap .grow b, .list-item.wrap .grow span { white-space: normal; }
