:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --surface: #fff;
  --surface-soft: #fafbf8;
  --text: #172a24;
  --muted: #718078;
  --line: #e3e9e3;
  --accent: #176b52;
  --accent-strong: #10523f;
  --accent-wash: #e6f1eb;
  --ok: #19734e; --ok-bg: #e5f3e9;
  --ko: #ad4138; --ko-bg: #faeae7;
  --warn: #9a681b; --warn-bg: #f8f0dc;
  --off: #a6aea8; --off-bg: #eff1ed; --code: #f1f4f0;
  --radius: 14px;
  --shadow: 0 10px 28px rgb(29 50 40 / .045), 0 1px 2px rgb(29 50 40 / .035);
  font: 15px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111915; --surface: #19221d; --surface-soft: #1d2922; --text: #e8eee9;
    --muted: #9eaaa2; --line: #2b3931; --accent: #75c9a5; --accent-strong: #8cdbb9;
    --accent-wash: #20392d; --ok: #79c99f; --ok-bg: #20382c; --ko: #ef9288;
    --ko-bg: #3c2522; --warn: #e1bc72; --warn-bg: #3b321f; --off: #69766e;
    --off-bg: #27312b; --code: #202a24; --shadow: 0 10px 28px rgb(0 0 0 / .14);
  }
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--bg); }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 3vw, 34px); line-height: 1.2; font-weight: 660; letter-spacing: -.9px; margin-bottom: 8px; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 630; letter-spacing: -.25px; margin-bottom: 10px; }
h3 { font-size: 15px; font-weight: 630; margin: 0 0 6px; }
p { margin-bottom: 12px; }
code, pre { font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
code { background: var(--code); padding: 2px 6px; border-radius: 5px; }
pre { background: var(--code); padding: 15px 17px; border-radius: 10px; overflow-x: auto; margin: 0; white-space: pre-wrap; word-break: break-word; }
.muted { color: var(--muted); }
small, .small { font-size: 12.5px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }

.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 34px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2)); height: 70px;
  background: color-mix(in srgb, var(--surface) 91%, transparent); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 560; letter-spacing: -.55px; white-space: nowrap; }
.brand::before { content: ""; width: 30px; height: 30px; border-radius: 10px; background: var(--accent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.brand::after { content: ""; position: absolute; width: 8px; height: 13px; margin-left: 11px; margin-top: -2px; border: 1.5px solid #fff; border-radius: 80% 8% 80% 8%; transform: rotate(34deg); }
.brand b { color: var(--accent); font-weight: 700; }
nav { display: flex; align-items: center; gap: 5px; flex: 1; }
nav a { text-decoration: none; color: var(--muted); padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 540; transition: background .16s, color .16s; }
nav a:hover { color: var(--text); background: var(--off-bg); }
nav a.active { color: var(--accent-strong); background: var(--accent-wash); }
main { max-width: 1180px; margin: 0 auto; padding: 42px 24px 88px; outline: none; }

.btn { min-height: 40px; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13.5px; box-shadow: 0 2px 4px rgb(23 107 82 / .13); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 4px 10px rgb(23 107 82 / .17); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-soft); border-color: var(--muted); }
.btn.small { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.head { margin-bottom: 30px; }
.head > p { max-width: 760px; color: var(--muted); }
.section { margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 19px; box-shadow: var(--shadow); }
.kpi::after { content: ""; position: absolute; right: -20px; top: -25px; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 50%; opacity: .7; }
.kpi b { display: block; font-size: 28px; line-height: 1.2; font-weight: 680; letter-spacing: -.8px; margin-bottom: 6px; }
.kpi span { color: var(--muted); font-size: 12.5px; }
a.card { display: block; text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
a.card:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); transform: translateY(-2px); box-shadow: 0 12px 30px rgb(29 50 40 / .08); }
a.card .spread { margin-bottom: 8px; }

.pill { display: inline-flex; align-items: center; width: fit-content; padding: 3px 10px; border-radius: 99px; font-size: 12px; line-height: 1.45; font-weight: 600; white-space: nowrap; background: var(--off-bg); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.ko { background: var(--ko-bg); color: var(--ko); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 4px; background: var(--off); display: inline-block; }
.dot.ok { background: var(--ok); } .dot.ko { background: var(--ko); } .dot.warn { background: var(--warn); }
a.dot { text-decoration: none; transition: transform .15s; } a.dot:hover { transform: scale(1.2); }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 620; color: var(--muted); font-size: 11.5px; letter-spacing: .045em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
td a { text-decoration: none; color: var(--accent); font-weight: 550; }
td a:hover { text-decoration: underline; }
.matrix td.cell { text-align: center; width: 38px; padding: 7px 3px; }
.matrix th.col { text-align: center; padding: 8px 3px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.c { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.c.VERIFIED_PASS { background: var(--ok-bg); color: var(--ok); }
.c.VERIFIED_FAIL { background: var(--ko-bg); color: var(--ko); }
.c.INCONCLUSIVE { background: var(--warn-bg); color: var(--warn); }
.c.OUT_OF_SCOPE, .c.NONE { background: var(--off-bg); color: var(--off); }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 36px 1fr 110px; gap: 12px; align-items: center; font-size: 13px; }
.stack { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: var(--off-bg); }
.stack i { display: block; }
.stack .p { background: var(--ok); } .stack .f { background: var(--ko); } .stack .u { background: var(--warn); } .stack .o { background: var(--off); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; margin-top: 14px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

.steps { counter-reset: s; display: grid; gap: 16px; }
.step { position: relative; padding-left: 62px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-wash); color: var(--accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tabs { display: flex; gap: 5px; margin: 14px 0; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--surface); padding: 6px 11px; border-radius: 8px; cursor: pointer; font-size: 12.5px; transition: all .15s; }
.tabs button:hover { border-color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--accent-wash); color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); font-weight: 600; }
.code { position: relative; margin: 10px 0; }
.code .copy { position: absolute; top: 8px; right: 8px; }

.notice { border: 1px solid var(--line); background: var(--surface); padding: 13px 16px; border-radius: 11px; margin-bottom: 18px; box-shadow: var(--shadow); }
.notice.error { border-color: var(--ko); color: var(--ko); }
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 19px 21px; border: 1px solid transparent; border-radius: var(--radius); margin: 18px 0; background: var(--off-bg); }
.banner.ok { background: var(--ok-bg); } .banner.ko { background: var(--ko-bg); } .banner.warn { background: var(--warn-bg); }
.banner h2 { margin-bottom: 4px; }
.list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list > div { background: var(--surface); padding: 14px 16px; }
details.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
details.group > summary { padding: 16px 18px; cursor: pointer; list-style: none; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: "▸"; color: var(--accent); margin-right: 9px; display: inline-block; transition: transform .15s; }
details.group[open] > summary::before { transform: rotate(90deg); }
details.group .table { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
details.more { margin-top: 14px; }
details.more summary { cursor: pointer; color: var(--accent); font-size: 13px; }
input[type=search], input[type=text], input[type=password], input:not([type]), textarea, select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); outline: none; }
textarea { resize: vertical; min-height: 110px; }
label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 620; margin: 14px 0 6px; }
.error { color: var(--ko); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; }
.empty h2 { color: var(--text); }
.empty p { max-width: 480px; margin: 0 auto 12px; }
.alert { color: var(--ko); font-size: 13px; margin: 8px 0 0; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 26px; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgb(0 0 0 / .2); }
dialog::backdrop { background: rgb(11 26 18 / .42); backdrop-filter: blur(3px); }
dialog input { margin: 8px 0 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 17px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); }
.loading { color: var(--muted); padding: 56px 0; text-align: center; }
#auth-button { white-space: nowrap; }

@media (max-width: 700px) {
  .bar { height: 62px; gap: 12px; padding-inline: 14px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand::before { width: 27px; height: 27px; }
  .brand::after { width: 7px; height: 11px; margin-left: 10px; }
  nav { gap: 0; justify-content: center; }
  nav a { padding: 7px 8px; font-size: 12.5px; }
  main { padding: 30px 16px 64px; }
  h1 { font-size: 27px; }
  .head { margin-bottom: 24px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 24px; }
  .card { padding: 17px; }
  .step { padding-left: 17px; padding-top: 46px; }
  .step::before { left: 17px; top: 15px; }
  .bar-row { grid-template-columns: 30px 1fr; }
  .bar-row small { grid-column: 2; }
}
@media (max-width: 420px) {
  .bar { gap: 8px; }
  .brand { font-size: 0; gap: 0; }
  .brand b { display: none; }
  nav a { padding-inline: 7px; font-size: 12px; }
  #auth-button { min-height: 34px; padding: 5px 9px; font-size: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spread { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
