/* ---------- PermaFront Pro: the signed-in app ---------- */
:root {
  --ink: #0e1520;
  --body: #5b6b7d;
  --faint: #93a1b0;
  --blue: #2e6be6;
  --blue-deep: #2456bd;
  --blue-mid: #7fa3f0;
  --blue-pale: #e9effc;
  --line: #e6ebf1;
  --panel: #f6f8fb;
  --bg: #f3f5f9;
  --night: #070b12;
  --night-2: #0b111b;
  --hot: #c2410c;
  --warm: #b45309;
  --cool: #64748b;
  --note: #93a1b0;
  --cold: var(--blue);
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(46, 107, 230, .18); }
a { color: inherit; }
button, input { font: inherit; }

/* severity drives colour everywhere through --c */
.sev-high { --c: var(--hot); }
.sev-medium { --c: var(--warm); }
.sev-low { --c: var(--cool); }
.sev-info { --c: var(--note); }
.sev-pass { --c: var(--cold); }

/* ================= sign in / create account ================= */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 38%);
  min-height: 100vh;
  background: #fff;
}
.auth-art {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  min-height: 100vh;
  cursor: crosshair;
}
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(7, 11, 18, .92) 0%, rgba(7, 11, 18, .55) 34%, transparent 62%),
    linear-gradient(to bottom, rgba(7, 11, 18, .6), transparent 18%);
}
.auth-logo, .sb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 23px/1 "Inter Tight", var(--sans);
  letter-spacing: -.045em;
}
.auth-logo { position: absolute; z-index: 2; top: 40px; left: 48px; color: #fff; }
.auth-pitch {
  position: absolute;
  z-index: 2;
  left: 48px;
  right: 48px;
  bottom: 64px;
  max-width: 660px;
  pointer-events: none;
  animation: up .9s var(--ease) both .1s;
}
.auth-pill, .pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #dbe5fb;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.auth-pill i, .pill i { width: 6px; height: 6px; background: var(--blue-mid); animation: blink 1.4s steps(2, jump-none) infinite; }
.auth-pitch h1 {
  margin-top: 26px;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
}
.auth-pitch h1 span {
  background: linear-gradient(100deg, #9dbbf7 0%, #2e6be6 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-pitch p { margin-top: 22px; max-width: 46ch; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .64); }
.auth-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.auth-tags li {
  padding: 6px 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(7, 11, 18, .35);
}
.auth-hint {
  position: absolute;
  z-index: 2;
  top: 46px;
  right: 48px;
  max-width: 30ch;
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
  pointer-events: none;
}

.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(46, 107, 230, .07), transparent 70%),
    #fff;
}
.auth-panel { width: 100%; max-width: 400px; animation: up .8s var(--ease) both; }
.auth-back { display: inline-block; margin-bottom: 44px; font-size: 13px; color: var(--faint); text-decoration: none; transition: color .2s; }
.auth-back:hover { color: var(--blue); }

.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: #f0f3f8;
  border: 1px solid var(--line);
}
.seg a {
  position: relative;
  z-index: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color .25s;
}
.seg-thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 21, 32, .08), 0 6px 18px -8px rgba(14, 21, 32, .28);
  transition: transform .45s var(--ease);
}
.auth[data-mode="up"] .seg-thumb { transform: translateX(100%); }
.auth[data-mode="in"] .seg a[data-to="in"], .auth[data-mode="up"] .seg a[data-to="up"] { color: var(--ink); }

.auth-copy { margin-top: 38px; min-height: 104px; }
.auth-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #1d47b8;
  background: var(--blue-pale);
  border: 1px solid rgba(46, 107, 230, .2);
  border-radius: 12px;
}
.auth-wait span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); animation: ping 1.4s ease-out infinite; }
.auth-wait + .auth-copy { margin-top: 26px; }
.auth-copy h2 { font-size: 32px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.auth-copy p { margin-top: 10px; color: var(--body); font-size: 14.5px; }
.auth-copy .swap { animation: swap .45s var(--ease); }

.auth-err {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: #8a2d07;
  background: #fff4ec;
  border: 1px solid #fbd9c2;
}

.auth-form { margin-top: 26px; display: grid; gap: 12px; }
.fld { position: relative; }
.fld input {
  width: 100%;
  height: 58px;
  padding: 22px 16px 6px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.fld input:hover { border-color: #c9d3df; }
.fld input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46, 107, 230, .12); }
.fld label {
  position: absolute;
  left: 17px;
  top: 19px;
  font-size: 15px;
  color: var(--faint);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .2s;
}
.fld label small { font-size: inherit; color: #b6c0cc; margin-left: 4px; }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--body); }
.fld input:focus + label { color: var(--blue); }
.fld-pass input { padding-right: 70px; }
.fld-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  background: var(--panel);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.fld-eye:hover { color: var(--blue); }
.fld-name { max-height: 58px; transition: max-height .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.auth[data-mode="in"] .fld-name { max-height: 0; opacity: 0; margin-bottom: -12px; overflow: hidden; pointer-events: none; }
.auth[data-mode="in"] .only-up { display: none; }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -2px; }
.meter i { height: 3px; border-radius: 3px; background: #e6ebf1; transition: background .3s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--warm); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #d0a03a; }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--blue-mid); }
.meter[data-s="4"] i { background: var(--blue); }

.auth-go {
  position: relative;
  margin-top: 8px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #3a76ee, var(--blue));
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 34px -14px rgba(46, 107, 230, .85);
  transition: transform .2s var(--ease), box-shadow .3s, filter .2s;
  overflow: hidden;
}
.auth-go::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
}
.auth-go:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 40px -14px rgba(46, 107, 230, 1); }
.auth-go:hover::before { transform: translateX(100%); }
.auth-go:active { transform: scale(.985); }
.auth-go b { transition: transform .3s var(--ease); }
.auth-go:hover b { transform: translateX(4px); }
.auth-go.is-busy { pointer-events: none; filter: saturate(.7); }
.auth-fine { margin-top: 28px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }

@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 50% { opacity: .2; } }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 44vh; }
  .auth-pitch { bottom: 32px; left: 28px; right: 28px; }
  .auth-pitch p, .auth-tags, .auth-hint { display: none; }
  .auth-logo { top: 26px; left: 28px; }
  .auth-side { padding: 40px 24px 56px; }
  .auth-back { margin-bottom: 28px; }
}

/* ================= the app shell ================= */
.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
.sb {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  color: #fff;
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(46, 107, 230, .18), transparent 60%),
    var(--night-2);
  border-right: 1px solid #141c29;
}
.sb-logo { padding: 4px 10px 26px; color: #fff; font-size: 20px; }
.sb-logo em {
  font: 600 10.5px var(--sans);
  font-style: normal;
  letter-spacing: .02em;
  padding: 3px 7px;
  margin-left: 2px;
  border-radius: 6px;
  color: #cfdcfa;
  background: rgba(46, 107, 230, .28);
}
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .58);
  text-decoration: none;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.sb-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.sb-nav a.on { color: #fff; background: rgba(46, 107, 230, .2); }
.sb-nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.sb-nav a.on .ic { color: var(--blue-mid); }
.sb-product { margin-top: 30px; padding: 0 12px; }
.sb-label { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .34); }
.sb-prod { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.sb-prod i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(46, 107, 230, .2); }
.sb-foot { margin-top: auto; display: grid; gap: 10px; }
.sb-site { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: rgba(255, 255, 255, .45); text-decoration: none; border-radius: 10px; }
.sb-site:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.sb-site .ic { width: 15px; height: 15px; }
.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}
.sb-av {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  background: linear-gradient(135deg, #3a76ee, #1d47b8);
}
.sb-who { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.sb-who b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-who small { font-size: 11.5px; color: rgba(255, 255, 255, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user button { display: grid; place-items: center; width: 30px; height: 30px; color: rgba(255, 255, 255, .5); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.sb-user button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sb-user button .ic { width: 16px; height: 16px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 32px;
  background: rgba(243, 245, 249, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--body); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: #c6cfda; }
.cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 50%);
  padding: 4px 4px 4px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.cmd:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46, 107, 230, .1); }
.cmd .ic { color: var(--faint); width: 16px; height: 16px; }
.cmd input { flex: 1; min-width: 0; height: 32px; border: 0; outline: none; background: none; font-size: 14px; color: var(--ink); }
.cmd input::placeholder { color: var(--faint); }
.cmd kbd { font: 500 11px var(--sans); color: var(--faint); padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; }
.cmd:focus-within kbd { display: none; }
.cmd button {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s;
}
.cmd button:hover { background: var(--blue); }

.page { width: 100%; max-width: 1320px; padding: 30px 32px 72px; display: grid; gap: 20px; align-content: start; }
.page > * { animation: up .6s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: .05s; }
.page > *:nth-child(3) { animation-delay: .1s; }
.page > *:nth-child(4) { animation-delay: .15s; }
.page > *:nth-child(5) { animation-delay: .2s; }
.page > *:nth-child(n+6) { animation-delay: .25s; }

/* ---- shared pieces ---- */
.b-pri, .b-sec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 11px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.b-pri { color: #fff; background: var(--blue); border: 1px solid var(--blue); box-shadow: 0 10px 24px -12px rgba(46, 107, 230, .9); }
.b-pri:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.b-sec { color: var(--ink); background: #fff; border: 1px solid #dbe2ea; }
.b-sec:hover { border-color: var(--ink); }
.b-pri:active, .b-sec:active { transform: scale(.98); }
.b-pri:disabled { opacity: .6; cursor: progress; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(14, 21, 32, .03);
  min-width: 0;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.panel-head span, .panel-head a { font-size: 13px; color: var(--faint); text-decoration: none; }
.panel-head a { color: var(--body); }
.panel-head a:hover { color: var(--blue); }
.panel-empty { color: var(--body); font-size: 14px; padding: 8px 0; }
.panel-empty.big { padding: 48px 0; text-align: center; }
.panel-more { margin-top: 12px; font-size: 13px; color: var(--faint); }
.muted { color: var(--faint); }

.tp { font-weight: 600; letter-spacing: -.03em; color: var(--c, var(--faint)); font-variant-numeric: tabular-nums; font-size: 18px; white-space: nowrap; }
.tp.big { font-size: 44px; letter-spacing: -.05em; line-height: 1; }
.tp.huge { display: block; margin-top: 6px; font-size: clamp(64px, 7vw, 92px); letter-spacing: -.06em; line-height: .95; }

.dl { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.dl.is-better { color: var(--blue); }
.dl.is-worse { color: var(--warm); }

.kind, .vstate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}
.kind-outside, .vs-none { color: var(--body); background: var(--panel); border: 1px solid var(--line); }
.kind-verified, .vs-verified { color: var(--blue-deep); background: var(--blue-pale); border: 1px solid rgba(46, 107, 230, .2); }
.vs-pending { color: #8a4a06; background: #fdf3e6; border: 1px solid #f5dcb8; }
.vs-verified::before, .vs-pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vchip { font-style: normal; font-size: 11px; color: var(--blue); }

.note { padding: 13px 16px; border-radius: 12px; font-size: 14px; }
.note.is-ok { color: #1d47b8; background: var(--blue-pale); border: 1px solid rgba(46, 107, 230, .2); }
.note.is-err { color: #8a2d07; background: #fff4ec; border: 1px solid #fbd9c2; }

.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 6px 0 4px; }
.ph h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.ph p { margin-top: 6px; color: var(--body); font-size: 14px; max-width: 70ch; }
.ph-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* sparkline */
.spark { width: 120px; height: 34px; flex: 0 0 auto; overflow: visible; }
.spark polyline { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--c); stroke: #fff; stroke-width: 2; }
.spark.is-flat line { stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 4; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 0 12px 10px; font-size: 12px; font-weight: 500; color: var(--faint); text-align: left; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid #f0f3f7; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 4px; }
.tbl .num { text-align: right; }
.tbl td a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.tbl tbody tr { transition: background .15s; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tbody tr:hover { background: #f8fafc; }
.tbl .tp { font-size: 15px; }
.tbl .go { width: 24px; color: #c6cfda; transition: color .2s, transform .25s var(--ease); }
.tbl tr:hover .go { color: var(--blue); transform: translateX(3px); }

/* ---- overview ---- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: 252px;
  padding: 34px 36px;
  color: #fff;
  background: var(--night);
  border-radius: 22px;
  isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 18, .9) 0%, rgba(7, 11, 18, .55) 46%, rgba(7, 11, 18, .15) 100%);
}
.hero-copy { max-width: 560px; }
.hero h1 { margin-top: 18px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.045em; line-height: 1.06; }
.hero h1 span { color: var(--blue-mid); }
.hero p { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .66); max-width: 52ch; }
.hero-read {
  display: grid;
  justify-items: end;
  text-align: right;
  text-decoration: none;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(7, 11, 18, .45);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .25s, transform .3s var(--ease);
}
.hero-read:hover { border-color: rgba(127, 163, 240, .5); transform: translateY(-2px); }
.hero-read small { font-size: 12px; color: rgba(255, 255, 255, .5); }
.hero-read b { font-size: 15px; font-weight: 600; }
.hero-read span:last-child { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.hero .tp, .hero-temp { color: color-mix(in srgb, var(--c) 45%, #fff); }
.hero-temp { font-size: 64px; letter-spacing: -.06em; line-height: 1; margin: 4px 0 6px; }
.hero-check {
  display: flex;
  gap: 6px;
  margin-top: 26px;
  max-width: 520px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-check input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font-size: 15px; color: #fff; background: none; border: 0; outline: none; }
.hero-check input::placeholder { color: rgba(255, 255, 255, .4); }
.hero-check button { padding: 0 18px; font-size: 14px; font-weight: 600; color: #fff; background: var(--blue); border: 0; border-radius: 10px; cursor: pointer; }
.hero-check button:hover { background: #3a76ee; }
.hero-empty { min-height: 320px; align-items: center; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.step span { font-size: 12px; font-weight: 600; color: var(--blue); }
.step h3 { margin-top: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 6px; font-size: 13.5px; color: var(--body); }

.kpis { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 16px; }
.kpi { display: grid; align-content: start; gap: 4px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.kpi small { font-size: 12.5px; color: var(--faint); }
.kpi > b { font-size: 34px; font-weight: 600; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi > span { font-size: 13px; color: var(--body); }
.stack { display: flex; gap: 2px; height: 8px; margin-top: 8px; border-radius: 4px; overflow: hidden; }
.stack i { background: var(--c); min-width: 6px; }
.stack-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--body); }
.stack-key span { display: inline-flex; align-items: center; gap: 6px; }
.stack-key i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.fixlist { list-style: none; display: grid; margin: 0 -10px; }
.fixlist a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 10px; text-decoration: none; border-radius: 12px; transition: background .15s; }
.fixlist a:hover { background: #f6f8fb; }
.fixlist .fc-chip { justify-self: start; }
.fx-t { flex: 1; min-width: 0; display: grid; }
.fx-t b { font-size: 14px; font-weight: 500; line-height: 1.4; }
.fx-t small { font-size: 12.5px; color: var(--faint); }
.go { color: #c6cfda; transition: color .2s, transform .25s var(--ease); }
.fixlist a:hover .go, .drow:hover .go { color: var(--blue); transform: translateX(3px); }

.dlist { display: grid; margin: 0 -10px; }
.drow { display: flex; align-items: center; gap: 16px; padding: 12px 10px; text-decoration: none; border-radius: 12px; transition: background .15s; }
.drow:hover { background: #f6f8fb; }
.drow .tp { min-width: 58px; font-size: 22px; }
.drow-n { flex: 1; min-width: 0; display: grid; }
.drow-n b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow-n small { font-size: 12.5px; color: var(--faint); }

/* ---- domains ---- */
.adders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adder { display: grid; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.adder > div:first-child { display: grid; }
.adder b { font-size: 14.5px; font-weight: 600; }
.adder small { font-size: 13px; color: var(--body); }
.adder-row { display: flex; gap: 8px; }
.adder input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.adder input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46, 107, 230, .1); }
.adder.solo { display: flex; align-items: center; justify-content: space-between; }

.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dcard {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.dcard:hover { border-color: rgba(46, 107, 230, .35); box-shadow: 0 18px 40px -26px rgba(14, 21, 32, .4); transform: translateY(-2px); }
.dcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dcard-top b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard-read { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dcard-read .spark { width: 150px; height: 44px; }
.dcard-band { font-size: 13px; color: var(--body); }
.dcard-foot { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid #f0f3f7; font-size: 12.5px; color: var(--body); }
.cnt { display: inline-flex; align-items: center; gap: 6px; }
.cnt i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.when { margin-left: auto; color: var(--faint); }

/* ---- one domain ---- */
.dtop { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 20px; }
.reading small { font-size: 12.5px; color: var(--faint); }
.reading h2 { margin-top: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.reading p { margin-top: 4px; font-size: 13.5px; color: var(--body); }
.thermo {
  position: relative;
  height: 8px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d47b8, #7fa3f0 34%, #cbd5e1 52%, #e9b37a 72%, #c2410c);
}
.thermo i {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 12px -4px rgba(14, 21, 32, .5);
}
.thermo-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--faint); }
.reading-counts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.reading-counts div { padding: 10px 12px; border-right: 1px solid var(--line); }
.reading-counts div:last-child { border-right: 0; }
.reading-counts b { display: block; font-size: 20px; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
.reading-counts span { font-size: 12px; color: var(--body); }

.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.zone { fill: var(--c); opacity: .055; }
.zone-l { font-size: 11px; fill: var(--faint); }
.grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.axis { font-size: 11px; fill: var(--faint); font-variant-numeric: tabular-nums; }
.line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pt { fill: var(--c); stroke: #fff; stroke-width: 2; transition: r .15s; }
.pt.on { r: 7; }
.xhair { stroke: #c6cfda; stroke-width: 1; }
.chart-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  min-width: 150px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 0 12px 30px -12px rgba(14, 21, 32, .6);
  transform: translate(-50%, calc(-100% - 14px));
  white-space: nowrap;
}
.chart-tip b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.chart-tip span { display: block; color: rgba(255, 255, 255, .6); }
.chart-note { margin-top: 8px; font-size: 13px; color: var(--faint); }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 24px; }
.area { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 0; text-decoration: none; border-bottom: 1px solid #f0f3f7; }
.area-n { font-size: 14px; font-weight: 500; }
.area-c { font-size: 12.5px; color: var(--c); font-weight: 500; }
.area.sev-pass .area-c { color: var(--blue); }
.area-bar { grid-column: 1 / -1; display: flex; gap: 2px; }
.area-bar i { width: 14px; height: 6px; border-radius: 2px; background: var(--c); }
.area-bar i.is-held { background: var(--blue-pale); }
.area:hover .area-n { color: var(--blue); }

.vcard .fc { --hot: #c2410c; }
.v-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.v-intro p { max-width: 70ch; color: var(--body); font-size: 14px; }
.v-intro b { color: var(--ink); }
.vcard .vd-steps { margin-top: 4px; }
.vcard .vd-steps .b-pri { margin-top: 12px; }
.v-remove { margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f3f7; }
.vcard .vd-run .b-pri { margin-top: 2px; }

/* the full report inside a panel */
.report-panel { padding: 30px 34px 34px; }
.report-panel .panel-head { margin-bottom: 22px; }
.report-panel .fc-report { margin: 0; }
.report-panel .fc-area { scroll-margin-top: 84px; }
.fc .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 14px var(--sans);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
.fc .btn.line { background: #fff; color: var(--ink); border-color: #dbe2ea; }
.fc .btn.line:hover { border-color: var(--ink); }

.filters { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.filters a { padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--body); text-decoration: none; border-radius: 9px; }
.filters a.on { color: #fff; background: var(--ink); }
.filters a:not(.on):hover { color: var(--ink); background: var(--panel); }

/* ---- the scanner, over everything while a check runs ---- */
.scanner {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 11, 18, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade .3s ease both;
}
.scanner[hidden] { display: none; }
.scanner-card {
  position: relative;
  overflow: hidden;
  width: min(480px, 100%);
  color: #fff;
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  animation: up .5s var(--ease) both;
}
.scanner-card canvas {
  display: block;
  width: 100%;
  height: 150px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.scanner-body { padding: 18px 30px 30px; }
.scanner-head { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .62); }
.scanner-head b { color: #fff; font-weight: 600; margin-left: 2px; }
.scanner .scanner-head + ol { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .07); }
.scanner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-mid); box-shadow: 0 0 0 0 rgba(127, 163, 240, .6); animation: ping 1.4s ease-out infinite; }
.scanner ol { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.scanner li { position: relative; padding-left: 28px; font-size: 14px; color: rgba(255, 255, 255, .32); transition: color .3s; }
.scanner li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
}
.scanner li.on { color: #fff; }
.scanner li.on::before { border-color: var(--blue-mid); border-right-color: transparent; animation: spin .8s linear infinite; }
.scanner li.done { color: rgba(255, 255, 255, .6); }
.scanner li.done::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.scanner-err { margin-top: 16px; padding: 12px 14px; font-size: 13.5px; color: #ffd9c2; background: rgba(194, 65, 12, .18); border: 1px solid rgba(194, 65, 12, .4); border-radius: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(127, 163, 240, 0); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-wide { grid-column: 1 / -1; order: -1; }
  .cols, .dtop { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sb {
    position: sticky;
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
  }
  .sb-logo { padding: 0 8px 0 0; font-size: 18px; }
  .sb-logo em, .sb-product, .sb-site, .sb-who { display: none; }
  .sb-nav { display: flex; }
  .sb-nav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .sb-nav a.on::before { display: none; }
  .sb-foot { margin: 0 0 0 auto; }
  .sb-user { padding: 4px; background: none; border: 0; }
  .sb-av { width: 28px; height: 28px; }
  .top { position: static; height: auto; padding: 12px 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .cmd { width: 100%; }
  .cmd kbd { display: none; }
  .page { padding: 20px 16px 56px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .hero-read { justify-items: start; text-align: left; }
  .steps3, .adders { grid-template-columns: 1fr; }
  .report-panel { padding: 22px 18px; }
  .tbl th:nth-child(2), .tbl td:nth-child(2), .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
  .v-intro { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
