/* =====================================================================
   VaultorNet Radar — styled like vaultornet.com
   Manrope type · VaultorNet green (#1d4c1f / #26862b) · white cards with a
   hairline border · 8px buttons that lift on hover · uppercase eyebrows.
   Light by default; a dark version uses the site's deep green (#111d12).
   ===================================================================== */
:root {
  --bg:        #f3f6f3;    /* page */
  --surface:   #ffffff;    /* cards, sidebar */
  --raised:    #f6f8f6;    /* tiles inside cards */
  --text:      #0f1a15;
  --muted:     #4d5a53;
  --muted-2:   #85918a;
  --line:      #dde4dd;    /* card hairline */
  --line-2:    #e9eee9;
  --line-strong: #b5c8b6;

  --accent:      #1d4c1f;  /* VaultorNet green */
  --accent-600:  #37723a;  /* hover */
  --accent-ink:  #1d4c1f;  /* green text */
  --accent-tint: #e7f2e8;
  --accent-soft: #cbe6cd;
  --leaf:        #26862b;  /* bright green that holds white text */

  --crit: #c4352b; --high: #d8642f; --med: #c98b12; --low: #26862b; --b: #2f6db0;
  --good-bg:#e7f3e8; --good-fg:#1d4c1f;
  --warn-bg:#fdf3df; --warn-fg:#7f540c;
  --bad-bg:#fbe9e7;  --bad-fg:#8e2a22;

  --radius-sm: 10px; --radius-md: 16px; --radius-btn: 8px; --radius-pill: 999px;
  --shadow-hover: 0 1.25rem 2rem -1.75rem rgba(29,76,31,.5);
  --shadow-lift: 0 .625rem 1.5rem rgba(29,76,31,.22);
  --shadow-pop: 0 18px 50px rgba(15,26,21,.22);
  --hero-grad: linear-gradient(180deg, #ffffff 0%, #eef5ef 55%, #e1ece2 100%);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sidebar-w: 268px;
  --ease: cubic-bezier(.25,.8,.25,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c140e; --surface: #121d14; --raised: #17251a; --text: #edf4ee; --muted: #a7b6ac; --muted-2: #6f8075;
  --line: rgba(203,230,205,.13); --line-2: rgba(203,230,205,.07); --line-strong: rgba(203,230,205,.28);
  --accent: #26862b; --accent-600: #30a636; --accent-ink: #7fd38a; --accent-tint: #173019; --accent-soft: #1f4422; --leaf: #30a636;
  --crit: #e8685d; --high: #ec8a55; --med: #e3ae3f; --low: #4cc057; --b: #6ea3e6;
  --good-bg:#14301a; --good-fg:#8fe39a; --warn-bg:#33260d; --warn-fg:#f3c56c; --bad-bg:#371614; --bad-fg:#f4a39b;
  --shadow-hover: 0 1.25rem 2rem -1.5rem rgba(0,0,0,.7); --shadow-lift: 0 .625rem 1.5rem rgba(0,0,0,.45); --shadow-pop: 0 18px 50px rgba(0,0,0,.6);
  --hero-grad: linear-gradient(180deg, #132016 0%, #13231a 60%, #10200f 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }          /* component display rules must never un-hide */
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 8px; color: var(--text); }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
a { color: var(--accent-ink); text-decoration: none; text-underline-offset: 3px; font-weight: 600; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.good { color: var(--low); } .bad { color: var(--crit); } .safe { color: var(--low); }
.big { font-size: 22px; font-weight: 800; }
.big span { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.big2 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: #0f1a15; }

/* =========================== APP FRAME =========================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; padding: 18px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: var(--text); text-decoration: none !important; }
.brand__logo {
  width: 150px; aspect-ratio: 640 / 220; flex: none; background: var(--accent);
  -webkit-mask: url("img/logo.png") left center / contain no-repeat; mask: url("img/logo.png") left center / contain no-repeat;
}
:root[data-theme="dark"] .brand__logo { background: #e9f4ea; }
.brand__tag { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf);
  border: 1.5px solid currentColor; border-radius: var(--radius-pill); padding: 2px 8px; margin-top: 2px; }

.side-group { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 16px 10px 6px; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidelink {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px;
  padding: 6px 10px; border-radius: var(--radius-btn); font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none !important; transition: background .15s ease, color .15s ease;
}
.sidelink:hover { background: var(--accent-tint); }
.sidelink .ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: var(--raised); border: 1px solid var(--line); color: var(--accent-ink); transition: inherit; }
.sidelink .ico svg { width: 15px; height: 15px; }
.sidelink .txt { flex: 1; min-width: 0; line-height: 1.25; }
.sidelink.on { background: var(--accent); color: #fff; }
.sidelink.on .ico { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; }
.sidelink--primary { margin-top: 6px; border: 1.5px solid var(--line-strong); }
.sidelink--primary .ico { background: var(--accent); border-color: transparent; color: #fff; }
.sidelink--primary.on { border-color: var(--accent); }
.sidelink.running .ico { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.badge-n { margin-left: auto; font-size: 11px; font-weight: 800; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; }
.badge-n--bad { background: var(--bad-bg); color: var(--bad-fg); } .badge-n--warn { background: var(--warn-bg); color: var(--warn-fg); } .badge-n--ok { background: var(--good-bg); color: var(--good-fg); }

.side-foot { margin-top: auto; padding: 14px 0 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.safechk { padding: 8px 10px; border-radius: var(--radius-btn); background: var(--raised); border: 1px solid var(--line); color: var(--text) !important; font-weight: 600; font-size: 13px !important; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }

.content { min-width: 0; display: flex; flex-direction: column; }
.appbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.appbar h1 { font-size: 17px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; font-size: 16px; font-family: inherit;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-btn);
}
.iconbtn:hover { border-color: var(--line-strong); background: var(--accent-tint); }
.iconbtn.menu-btn { display: none; }
.view { padding: 26px 28px 8px; max-width: 1180px; width: 100%; }
.footer { margin-top: auto; padding: 18px 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* =========================== BUTTONS / CHIPS =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap;
  font-family: var(--font); font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--accent-ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); padding: 9px 16px;
  text-decoration: none !important; transition: background .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:hover { border-color: var(--accent); background: var(--accent-tint); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: none; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--bad-bg); border-color: transparent; color: var(--bad-fg); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.pill, .chip, .tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.chip { background: var(--raised); color: var(--text); border-color: var(--line); font-weight: 600; }
a.chip { color: var(--accent-ink); }
.chip--btn { cursor: pointer; font-family: inherit; }
.chip--btn:hover { border-color: var(--accent); background: var(--accent-tint); }
.chip--ok { background: var(--good-bg); color: var(--good-fg); border-color: color-mix(in srgb, var(--low) 28%, transparent); }
.chip--warn { background: var(--warn-bg); color: var(--warn-fg); border-color: color-mix(in srgb, var(--med) 32%, transparent); }
.chip--danger { background: var(--bad-bg); color: var(--bad-fg); border-color: color-mix(in srgb, var(--crit) 28%, transparent); }
.tag { background: var(--accent-tint); color: var(--accent-ink); font-size: 11px; }
.grade { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 6px; color: #fff; font-weight: 800; font-size: 12px; }
.sev { display: inline-flex; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.sev--critical { background: var(--bad-bg); color: var(--bad-fg); } .sev--high { background: var(--warn-bg); color: var(--warn-fg); }
.sev--medium { background: var(--warn-bg); color: var(--warn-fg); } .sev--low { background: var(--good-bg); color: var(--good-fg); }
.sev--plain { text-transform: none; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin: 0 0 6px; }

/* =========================== CARDS =========================== */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 18px; transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head h2 { font-size: 17px; margin: 0; }
.card__sub { font-size: 12.5px; color: var(--muted); }
.note { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn-fg); margin-bottom: 16px; }
.errorbox { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bad-bg); color: var(--bad-fg); margin: 18px 28px 0; border-left: 3px solid var(--crit); font-weight: 600; }
.view .errorbox { margin: 0 0 16px; }
.details-card summary { cursor: pointer; }
.details-card[open] summary { margin-bottom: 10px; }
.resnote { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* =========================== PAGE HERO (each tool's top card) =========================== */
.hero {
  background: var(--hero-grad); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px 26px 18px; margin-bottom: 20px;
}
.hero__top { display: flex; gap: 16px; align-items: flex-start; }
.hero__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); }
.hero__icon svg { width: 22px; height: 22px; }
.hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.hero__desc { color: var(--muted); font-size: 15px; max-width: 70ch; margin: 0; }
.checkform { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 10px; }
.checkform__field {
  flex: 1 1 320px; display: flex; align-items: center; gap: 8px; min-height: 50px; background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); padding: 4px 8px 4px 14px;
}
.checkform__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 16%, transparent); }
.checkform__field span { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.checkform__field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; font-family: inherit; color: var(--text); padding: 8px 0; }
.checkform__field select { border: 0; background: var(--raised); border-radius: 6px; font: inherit; font-size: 13px; color: var(--text); padding: 6px 4px; max-width: 46%; }
.checkform .btn--accent { min-height: 50px; padding: 12px 24px; font-size: 15px; }
.checkform--add > select, .checkform__label {
  min-height: 50px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn);
}
.checkform__label { flex: 0 1 200px; min-width: 140px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: var(--muted); }
.watchchk { color: var(--text); font-weight: 700; font-size: 13.5px; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-btn); padding: 7px 12px; }
.watchchk:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.toolnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }

/* =========================== RUNNING =========================== */
.runbox { display: flex; gap: 16px; align-items: center; }
.sweep { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--leaf); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading__msg { font-weight: 700; margin: 0 0 4px; }
.loading__sub { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.loading__bar { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; width: min(440px, 60vw); }
.loading__bar span { display: block; height: 100%; width: 2%; background: var(--leaf); border-radius: 999px; transition: width .4s ease; }
.runsteps { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.runsteps li { color: var(--muted-2); display: flex; gap: 8px; align-items: center; }
.runsteps li.done { color: var(--muted); } .runsteps li.now { color: var(--text); font-weight: 700; }
.runsteps li::before { content: "○"; width: 14px; text-align: center; }
.runsteps li.done::before { content: "✓"; color: var(--low); } .runsteps li.now::before { content: "●"; color: var(--leaf); }

/* =========================== RESULT =========================== */
.verdict { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid transparent; }
.verdict__ico { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; }
.verdict__txt { min-width: 0; }
.verdict h2 { font-size: 20px; margin: 0 0 2px; color: inherit; }
.verdict p { margin: 0; font-size: 13.5px; }
.verdict__meta { margin-top: 6px !important; opacity: .9; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.verdict--ok { background: var(--good-bg); color: var(--good-fg); border-color: color-mix(in srgb, var(--low) 26%, transparent); }
.verdict--ok .verdict__ico { background: var(--leaf); }
.verdict--warn { background: var(--warn-bg); color: var(--warn-fg); border-color: color-mix(in srgb, var(--med) 32%, transparent); }
.verdict--warn .verdict__ico { background: var(--med); }
.verdict--bad { background: var(--bad-bg); color: var(--bad-fg); border-color: color-mix(in srgb, var(--crit) 30%, transparent); }
.verdict--bad .verdict__ico { background: var(--crit); }
.verdict--muted { background: var(--raised); color: var(--muted); border-color: var(--line); }
.verdict--muted .verdict__ico { background: var(--muted-2); }
.verdict__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.sec-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; flex-wrap: wrap; }
.sec-title h2 { margin: 0; font-size: 19px; }
.sec-title span { font-size: 13px; color: var(--muted); }
.sevsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.card .stat, .mod .stat { background: var(--raised); }
.stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sevsum .stat { border-top: 3px solid var(--muted-2); }
.sevsum .stat.critical { border-top-color: var(--crit); } .sevsum .stat.critical b { color: var(--crit); }
.sevsum .stat.high { border-top-color: var(--high); } .sevsum .stat.high b { color: var(--high); }
.sevsum .stat.medium { border-top-color: var(--med); } .sevsum .stat.medium b { color: var(--med); }
.sevsum .stat.low { border-top-color: var(--low); } .sevsum .stat.low b { color: var(--low); }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 10px; }
.mini div { background: var(--raised); border-radius: var(--radius-sm); padding: 8px 10px; }
.mini b { display: block; font-size: 17px; font-weight: 800; }
.mini span { font-size: 11.5px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis--small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { background: var(--raised); border: 1px solid var(--line); border-top: 3px solid var(--leaf); border-radius: var(--radius-sm); padding: 12px 14px; }
.kpi__label { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.kpi__value { font-size: 22px; font-weight: 800; line-height: 1.1; }
.kpi__value.bad { color: var(--crit); }

.scoreline { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.gauge { position: relative; width: 132px; height: 132px; }
.gauge__bg { fill: none; stroke: var(--line); stroke-width: 10; }
.gauge__fg { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset .8s ease; }
.gauge__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__num { font-size: 36px; font-weight: 800; line-height: 1; }
.gauge__grade { font-size: 12px; color: var(--muted); }
.exec { font-size: 14.5px; line-height: 1.65; margin: 0; }
.meters { display: flex; flex-direction: column; gap: 12px; }
.meters--grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.meter__top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; font-weight: 600; }
.meter__track { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; }
.meter__meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.filters, .tl-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fchip { background: var(--surface); border: 1.5px solid var(--line-strong); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 14px; border-radius: var(--radius-pill); }
.fchip:hover { border-color: var(--accent); color: var(--accent-ink); }
.fchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.findlist { display: flex; flex-direction: column; gap: 8px; }
.finding { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.finding__top { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; }
.finding__top:hover { background: var(--raised); }
.finding__title { font-weight: 700; flex: 1; font-size: 14px; }
.finding__cat { font-size: 12px; color: var(--muted); }
.finding .sev { min-width: 96px; justify-content: center; }
.caret { color: var(--muted-2); transition: transform .2s; }
.finding.open .caret, .breach.open .caret { transform: rotate(90deg); }
.finding__body { padding: 0 14px 14px; }
.finding__detail { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.fix { background: var(--good-bg); color: var(--good-fg); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; }
.fix b { display: block; margin-bottom: 3px; }
.findmore { margin-top: 10px; align-self: flex-start; }
.passlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.passlist li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 12px; background: var(--raised); border-radius: var(--radius-sm); }
.pcat { font-size: 11.5px; color: var(--muted); }

/* =========================== TECHNICAL DETAILS =========================== */
.modgroup { margin-bottom: 22px; }
.modgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.modgroup__head h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0; }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mod { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--muted-2); border-radius: var(--radius-md); overflow: hidden; min-width: 0; }
.mod--wide { grid-column: 1 / -1; }
.mod--crit { border-top-color: var(--crit); } .mod--warn { border-top-color: var(--med); } .mod--ok { border-top-color: var(--low); }
.mod--info { border-top-color: var(--b); } .mod--error { border-top-color: var(--muted-2); }
.mod__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.mod__head h3 { font-size: 14px; margin: 0; }
.mod__body { padding: 14px 16px; font-size: 13.5px; }
.mod__err { color: var(--muted); font-size: 13px; margin: 0; }
.mod .pill { font-size: 10px; font-weight: 800; letter-spacing: .06em; border: 1.5px solid currentColor; background: none; }
.sub { font-size: 12.5px; color: var(--muted); margin: 10px 0 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.kv > div { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.kv span { color: var(--muted); font-size: 11.5px; }
.kv b { font-weight: 600; word-break: break-word; }
.kv--ip { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kv-grid > div { display: flex; flex-direction: column; }
.chkrow { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.chkrow:last-child { border-bottom: 0; }
.chkrow__ico { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; flex: none; }
.chkrow.pass .chkrow__ico { background: var(--good-bg); color: var(--good-fg); }
.chkrow.fail .chkrow__ico { background: var(--bad-bg); color: var(--bad-fg); }
.chkrow.na .chkrow__ico { background: var(--raised); color: var(--muted); }
.chkrow__x { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
.egrade { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.dns__row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.dns__t { font-weight: 800; font-size: 11.5px; color: var(--muted); min-width: 46px; }
.dns__v { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dns__v code { font-size: 12px; word-break: break-all; }
.sublist { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow-y: auto; }
.sub__row { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.sub__ip { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.newtag { background: var(--leaf); color: #fff; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; margin-left: 5px; }
.blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.breach { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.breach__top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; flex-wrap: wrap; }
.breach__top:hover { background: var(--raised); }
.breach__title { font-weight: 700; font-size: 13.5px; } .breach__meta { font-size: 12px; color: var(--muted); }
.breach__spacer { flex: 1; } .breach__count { font-weight: 800; font-size: 13.5px; text-align: right; } .breach__count small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.badge { padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
.badge--critical { background: var(--bad-bg); color: var(--bad-fg); } .badge--high, .badge--medium { background: var(--warn-bg); color: var(--warn-fg); } .badge--low { background: var(--good-bg); color: var(--good-fg); }
.breach__body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.breach.open .breach__body { max-height: 600px; }
.breach__inner { padding: 0 12px 12px; } .breach__desc { font-size: 13px; color: var(--muted); }
.sevrow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sevchip { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.sevchip--critical { background: var(--bad-bg); color: var(--bad-fg); } .sevchip--high, .sevchip--medium { background: var(--warn-bg); color: var(--warn-fg); } .sevchip--low { background: var(--good-bg); color: var(--good-fg); }
.spoofpreview { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px; margin: 10px 0; position: relative; background: var(--raised); }
.spoofpreview__watermark { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: color-mix(in srgb, var(--crit) 16%, transparent); transform: rotate(-14deg); pointer-events: none; }
.spoofpreview__hdr { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; border-bottom: 1px solid var(--line); padding-bottom: 6px; flex-wrap: wrap; }
.spoofpreview__subject { font-weight: 800; margin: 6px 0; } .spoofpreview__body { font-size: 13px; color: var(--muted); }
.fixrow { background: var(--raised); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 6px; }
.fixrow__val { display: block; color: var(--accent-ink); word-break: break-all; }
.raw { font-family: var(--mono); font-size: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.codehit { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--raised); }
.codehit__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.codehit__repo { font-family: var(--mono); font-size: 13px; }
.codehit__path { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.codehit__when { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.codeblock { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.55; overflow-x: auto; background: var(--surface); }
.codeline { display: flex; } .codeline__n { flex: none; width: 48px; text-align: right; padding: 0 10px; color: var(--muted-2); user-select: none; border-right: 1px solid var(--line); }
.codeline__t { padding: 0 12px; white-space: pre; }
.codeline.hit { background: color-mix(in srgb, var(--med) 16%, transparent); } .codeline.hit .codeline__t { font-weight: 700; }
.redacted { background: var(--bad-bg); color: var(--bad-fg); border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: 11px; }
.spark svg { width: 100%; }

/* timeline */
.timeline { position: relative; margin: 4px 0 0; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px 6px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--muted-2); }
.tl-item.sev-critical::before { border-color: var(--crit); } .tl-item.sev-high::before { border-color: var(--high); }
.tl-item.sev-medium::before { border-color: var(--med); } .tl-item.sev-low::before { border-color: var(--low); } .tl-item.sev-info::before { border-color: var(--b); }
.tl-when { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-exact { background: var(--accent-tint); color: var(--accent-ink); padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; font-family: var(--font); }
.tl-title { font-weight: 700; font-size: 14px; margin: 2px 0 1px; }
.tl-detail { font-size: 12.5px; color: var(--muted); }
.tl-kind { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-family: var(--font); }

/* =========================== TABLES =========================== */
.tablewrap { overflow-x: auto; }
.tbl, .xtbl, .cvetbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .xtbl th { text-align: left; font-size: 11px; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1.5px solid var(--line); text-transform: uppercase; white-space: nowrap; }
.tbl td, .xtbl td, .cvetbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tbody tr:hover, .xtbl tbody tr:hover { background: var(--raised); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty-row td { text-align: center; color: var(--muted); padding: 26px; }
.rowacts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.rowacts form { margin: 0; }
.kindtag { display: inline-flex; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); }
.kindtag--email, .kindtag--phone, .kindtag--username, .kindtag--name { background: var(--warn-bg); color: var(--warn-fg); }
.kindtag--company { background: color-mix(in srgb, var(--b) 14%, var(--surface)); color: var(--b); }

/* =========================== PERSON LOOKUP =========================== */
.ps-verdict { font-weight: 800; font-size: 19px; margin: 6px 0; }
.ps-verdict.bad { color: var(--crit); } .ps-verdict.safe { color: var(--low); } .ps-verdict.warn { color: var(--med); }
.ps-advice { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.ps-prog { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.ps-prog div { height: 100%; background: var(--leaf); border-radius: 999px; transition: width .3s; }
.ps-qrow { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; flex-wrap: wrap; }
.ps-var { cursor: pointer; font-family: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* =========================== DOCUMENT SEARCH =========================== */
.doclist { display: flex; flex-direction: column; }
.docrow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-top: 1px solid var(--line-2); }
.docrow:first-child { border-top: 0; }
.docbadge { flex: none; width: 46px; height: 54px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--muted-2);
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.docbadge--pdf { background: #c4352b; } .docbadge--word { background: #2f6db0; } .docbadge--excel { background: #26862b; }
.docbadge--slides { background: #d8642f; } .docbadge--text { background: #5c6a63; } .docbadge--data { background: #6b4fa0; font-size: 10px; }
.docskw { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.docskw__label { font-size: 13px; font-weight: 700; }
.docskw input { min-height: 44px; padding: 10px 14px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); }
.docskw input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 16%, transparent); }
.docskw__chips { gap: 6px; }
.docrow__main { flex: 1; min-width: 0; }
.docrow__title { display: block; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--accent-ink); cursor: pointer; word-break: break-word; }
.docrow__title:hover { text-decoration: underline; }
.docrow__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.docrow__snip { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.docrow__acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(8,14,10,.62); display: grid; place-items: center; padding: 3vh 3vw; }
.viewer__box { width: min(1100px, 100%); height: 94vh; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.viewer__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.viewer__type { width: 38px; height: 44px; font-size: 10px; }
.viewer__name { flex: 1; min-width: 0; }
.viewer__name h2 { font-size: 16px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.viewer__tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--raised); }
.viewer__body { flex: 1; overflow: auto; background: var(--bg); position: relative; }
.viewer__loading { padding: 40px; justify-content: center; }
.viewer__msg { max-width: 520px; margin: 60px auto; text-align: center; padding: 0 20px; }
.viewer__note { margin: 12px 16px; font-size: 12.5px; color: var(--warn-fg); background: var(--warn-bg); border-radius: var(--radius-sm); padding: 8px 12px; }
.viewer__text { margin: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.docpage { max-width: 820px; margin: 18px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 40px 48px; font-size: 15px; line-height: 1.7; }
.docpage h1 { font-size: 28px; font-weight: 800; } .docpage h2 { font-size: 22px; margin-top: 22px; } .docpage h3 { font-size: 18px; margin-top: 18px; } .docpage h4 { font-size: 16px; margin-top: 14px; }
.docpage p { margin: 0 0 12px; }
.doctable { border-collapse: collapse; margin: 12px 0 16px; font-size: 13.5px; width: 100%; }
.doctable td { border: 1px solid var(--line); padding: 7px 10px; vertical-align: top; }
.doctable tr:first-child td { background: var(--raised); font-weight: 700; }
.sheetwrap { overflow: auto; height: 100%; background: var(--surface); }
.sheet { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sheet th { position: sticky; top: 0; z-index: 1; background: var(--raised); color: var(--muted); font-weight: 700; font-size: 11.5px; padding: 5px 10px; border: 1px solid var(--line); }
.sheet tbody th { position: sticky; left: 0; z-index: 1; text-align: right; }
.sheet thead th:first-child { left: 0; z-index: 2; }
.sheet td { border: 1px solid var(--line-2); padding: 5px 10px; white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.slides { display: grid; gap: 14px; padding: 18px; max-width: 900px; margin: 0 auto; }
.slide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; aspect-ratio: 16 / 9; overflow: auto; }
.slide__n { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.slide h3 { font-size: 21px; font-weight: 800; margin: 6px 0 10px; }
.slide p { margin: 0 0 6px; font-size: 14.5px; }
.pdfpages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; }
.pdfpage { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); border-radius: 2px; max-width: 100%; }
.pdfpage canvas { display: block; max-width: 100%; height: auto !important; }
.pdfpage__n { position: absolute; top: 8px; right: -34px; font-size: 11px; color: var(--muted); }

/* =========================== TOOLTIP / PRINT / SMALL SCREENS =========================== */
.tt { position: fixed; z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); padding: 8px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; max-width: 260px; }

@media (max-width: 920px) {
  .scoreline { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 80; width: 86vw; max-width: 310px; transform: translateX(-105%); transition: transform .25s ease, visibility .25s; visibility: hidden; }
  .app.nav-open .sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-pop); }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(8,14,10,.5); }
  .iconbtn.menu-btn { display: grid; }
  .appbar { padding: 10px 16px; }
  .view { padding: 16px 16px 4px; }
  .errorbox { margin: 14px 16px 0; }
  .footer { padding: 16px; }
  .hero { padding: 18px 16px 14px; } .hero h2 { font-size: 22px; } .hero__icon { width: 40px; height: 40px; }
  .checkform .btn--accent { width: 100%; }
  .checkform__field span { display: none; }
  .checkform__label, .checkform--add > select { flex: 1 1 100%; }
  .sevsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict { flex-wrap: wrap; } .verdict__actions { margin-left: 0; }
  .card { padding: 16px; }
  .modgrid { grid-template-columns: minmax(0, 1fr); }
  .docrow { flex-wrap: wrap; } .docrow__acts { width: 100%; justify-content: flex-start; padding-left: 60px; }
  .viewer { padding: 0; } .viewer__box { height: 100%; border-radius: 0; }
  .viewer__head { flex-wrap: wrap; } .viewer__acts { width: 100%; justify-content: flex-start; }
  .docpage { padding: 22px 18px; margin: 10px; }
  .pdfpage__n { display: none; }
  /* tables become labelled cards */
  table.stackable thead { display: none; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 6px 10px; background: var(--surface); }
  table.stackable td { border: 0; padding: 5px 0; text-align: left; }
  table.stackable td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
  table.stackable .rowacts { justify-content: flex-start; }
}
@media print {
  .sidebar, .appbar, .footer, .verdict__actions, .menu-btn, .hero form, .hero__meta, .viewer, [data-act] { display: none !important; }
  .app { display: block; } .view { max-width: none; padding: 0; }
  .card, .mod, .hero { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; color: #000; }
}

/* =========================== SIGN-IN, ACCOUNT, USERS, SETUP =========================== */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 22px;
  background: linear-gradient(180deg, #ffffff, #c9dcd6 60%, #ebecec); }
:root[data-theme="dark"] .auth { background: var(--hero-grad); }
.auth .brand { padding: 0; }
.auth .brand__logo { width: 200px; }
.auth-card, .page-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; }
.auth-card h1, .page-card h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.auth-card > .muted, .page-card > .muted { margin: 0 0 18px; font-size: 14px; }
.auth-card .btn--accent { width: 100%; padding: 13px; font-size: 15px; }
.auth-foot { font-size: 13px; color: var(--muted); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select { min-height: 46px; padding: 10px 12px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 16%, transparent); }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 14px; font-weight: 600; }
.alert--bad { background: var(--bad-bg); color: var(--bad-fg); } .alert--ok { background: var(--good-bg); color: var(--good-fg); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.role { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.role--admin { background: var(--accent-tint); color: var(--accent-ink); } .role--user { background: var(--raised); color: var(--muted); border: 1px solid var(--line); }
.st--disabled { color: var(--crit); font-weight: 700; }
details.reset summary { cursor: pointer; list-style: none; }
details.reset summary::-webkit-details-marker { display: none; }
details.reset[open] { flex-basis: 100%; }
details.reset form { display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end; }
details.reset input { min-height: 34px; padding: 4px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.account-grid .card { margin: 0; }
.setup { max-width: 820px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 32px); }
.chk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 14px; align-items: flex-start; }
.chk-ico { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.chk-ico.ok { background: var(--good-bg); color: var(--good-fg); } .chk-ico.bad { background: var(--bad-bg); color: var(--bad-fg); } .chk-ico.warn { background: var(--warn-bg); color: var(--warn-fg); }
.chk-name { font-weight: 700; } .chk-detail { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.banner { padding: 14px 16px; border-radius: var(--radius-md); margin-bottom: 20px; font-weight: 700; }
.banner.ok { background: var(--good-bg); color: var(--good-fg); } .banner.bad { background: var(--bad-bg); color: var(--bad-fg); }

/* CVE codes link to their public record */
.cvelink { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cvelink:hover { text-decoration-thickness: 2px; }
.finding__cve { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 14px 11px; }
.finding__cve .cvelink { display: inline-flex; padding: 5px 12px; font-size: 13px; text-decoration: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.finding__cve .cvelink:hover { border-color: var(--accent); background: var(--accent-tint); }
.cvehost summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.cvehost summary::-webkit-details-marker { display: none; }
.cvehost[open] summary .muted { visibility: hidden; }
.cvehost .chips { margin-top: 6px; }

/* "Email report" dialog */
.viewer.maildlg { padding: 16px; }
.maildlg__box { width: min(520px, 100%); max-height: 100%; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); padding: 18px 20px 20px; }
.maildlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.maildlg__head h2 { margin: 0; font-size: 18px; }
.maildlg .field > span { margin-top: -2px; }
.field textarea { padding: 10px 12px; font-size: 15px; font-family: inherit; line-height: 1.5; color: var(--text); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); resize: vertical; }
.field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 16%, transparent); }
.maildlg__status { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; }
.maildlg__status:empty { display: none; }
.maildlg__status.good, .maildlg__status.bad, .maildlg__status.warn { padding: 9px 12px; border-radius: var(--radius-sm); }
.maildlg__status.good { background: var(--good-bg); color: var(--good-fg); }
.maildlg__status.bad  { background: var(--bad-bg);  color: var(--bad-fg); }
.maildlg__status.warn { background: var(--warn-bg); color: var(--warn-fg); }
.maildlg__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Leaked data: per-person details */
.leaktbl .leakdetail > td { background: var(--raised); padding: 14px 16px; }
.leaktbl .leakdetail .xtbl { background: var(--surface); }

/* Other endings (.in, .org …) and the row of checked domains */
.tldrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.tldchk span { font-weight: 700; color: var(--text); }
.domswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.domchip { display: inline-flex; gap: 6px; align-items: center; }
.domchip__st { font-weight: 600; opacity: .8; font-size: 12px; }
.domchip:disabled { cursor: default; opacity: .7; }
.domchip--run .domchip__st { color: var(--accent-ink); }
.domchip--failed .domchip__st { color: var(--crit); }
