/* Blurabit client portal. Tokens and component treatments follow site/styles.css (blurabit.com):
   near-black canvas lit by blue radial lights, ring + Poppins wordmark, Inter for UI, JetBrains Mono
   for identifiers and measurements, --blue reserved for actions and the current location. */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono-var.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Poppins Mark"; src: url("fonts/poppins-600-wordmark.woff2") format("woff2"); font-weight: 600; font-display: block; }

:root {
  color-scheme: dark;
  --bg: #0a0a0a; --bg-2: #0f0f12;
  --panel: rgba(13, 13, 18, 0.72); --panel-solid: #101016; --raise: rgba(255, 255, 255, 0.03);
  --surface: rgba(255, 255, 255, 0.022); --field: rgba(255, 255, 255, 0.04); --well: rgba(255, 255, 255, 0.06); --selected: rgba(255, 255, 255, 0.09); --code-bg: rgba(0, 0, 0, 0.35);
  --link: var(--blue-2);
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f4f5f8; --dim: rgba(244, 245, 248, 0.68); --mute: rgba(244, 245, 248, 0.5);
  --blue: #5b7bfd; --blue-2: #8ea2ff; --cyan: #7fe3ff;
  --glow: 0 0 0 1px rgba(91, 123, 253, 0.35), 0 10px 40px -10px rgba(91, 123, 253, 0.55);
  --critical: #ff6b78; --high: #ff9f57; --medium: #f0cd5e; --low: #6fd3a0; --unknown: #8f95a3;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mark: "Poppins Mark", "Poppins", system-ui, sans-serif;
  --wrap: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-color: #2b2e3d var(--bg); scrollbar-width: thin; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--blue-2); overflow-x: clip; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
svg { display: block; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b2e3d; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* The site's blue lights, held still: this is a working surface, so the canvas stays quiet. */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 68% -22vw, rgba(53, 80, 216, 0.34), transparent 70%),
    radial-gradient(46vw 46vw at -8% 55%, rgba(29, 43, 122, 0.36), transparent 70%),
    radial-gradient(40vw 40vw at 108% 108%, rgba(42, 143, 184, 0.16), transparent 70%); }
body > * { position: relative; z-index: 1; }

.wrap { width: var(--wrap); margin-inline: auto; }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
td.num, td.nowrap { white-space: nowrap; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.logo:hover { text-decoration: none; }
.logo-ring { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(91, 123, 253, 0.65)); }
.logo-word { font-family: var(--mark); font-weight: 600; font-size: 23px; letter-spacing: 0.01em; line-height: 1; }

/* ---------- app shell: fixed sidebar, content beside it ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 14px; overflow-y: auto; }
.side-logo { padding: 4px 10px 18px; }
.side-search { position: relative; margin: 0 0 10px; }
.side-search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--mute); pointer-events: none; }
.side-search input { width: 100%; min-width: 0; height: 36px; padding: 0 10px 0 33px; font: inherit; font-size: 13.5px; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: 9px; }
.side-search input::placeholder { color: var(--mute); }
.side-search input:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 1px; border-color: transparent; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-label-first { margin-top: 2px !important; }
.side-label { margin: 14px 10px 5px; font-size: 12px; font-weight: 550; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--dim); text-align: left; cursor: pointer; transition: color .2s, background-color .2s; }
.side-link:hover { color: var(--fg); background: var(--raise); text-decoration: none; }
.side-link[aria-current] { color: var(--fg); background: rgba(91, 123, 253, 0.16); }
.side-link[aria-current] .ico { color: var(--blue-2); }
.side-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { font-size: 12px; font-weight: 600; color: var(--dim); padding: 1px 7px; border-radius: 999px; background: var(--well); }
.side-link[aria-current] .side-count { color: var(--fg); background: rgba(91, 123, 253, 0.3); }
.ico { width: 18px; height: 18px; flex: none; }
.side-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 10px 10px; min-width: 0; }
.avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(91, 123, 253, 0.2); color: var(--blue-2); font-size: 13px; font-weight: 650; }
.who-text { display: grid; min-width: 0; line-height: 1.3; }
.who-text b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The working surface is light: long tables and code are easier to read dark-on-white. The sidebar
   keeps the site's dark canvas, so the brand frames the content instead of sitting under it. */
.main, .auth-card { color-scheme: light;
  --fg: #10132a; --dim: #474d68; --mute: #6c738c; --line: #e4e7f0; --line-2: #cfd4e2;
  --surface: #fff; --raise: #f5f6fb; --field: #fff; --well: #eceef6; --selected: #fff; --code-bg: #f4f5fa; --panel-solid: #fff; --bg-2: #fff;
  --blue-2: #3350e0; --link: #2f4bd8;
  --critical: #d42a45; --high: #c2570c; --medium: #9a6a00; --low: #177a4c; --unknown: #6c738c;
  color: var(--fg); }
.main { min-width: 0; display: flex; flex-direction: column; margin: 8px 8px 8px 0; min-height: calc(100vh - 16px); background: #f8f9fc; border-radius: 14px; overflow: clip; scrollbar-color: #c5cad8 transparent; }
.main ::selection { background: #3350e0; color: #fff; }
.main .panel, .main .table-wrap, .main .strip, .main .card, .main .rail, .main .banner, .main .inline-card { box-shadow: 0 1px 2px rgba(16, 19, 42, 0.04); }
.main .seg { background: var(--well); border-color: transparent; }
.main .seg a[aria-selected] { box-shadow: 0 1px 2px rgba(16, 19, 42, 0.12); }
.main .btn-ghost { background: #fff; }
.main .btn-ghost:hover { border-color: #3350e0; background: #f1f3fe; }
.main .chip { background: #fff; }
.main .chip[aria-current] { border-color: #3350e0; background: #eef1fe; }
.main th { color: var(--mute); background: #fbfbfd; }
.main .side-count, .main .type { color: var(--dim); }
.main .banner-ok { border-color: #bfe5d1; background: #f1faf5; } .main .banner-ok > .ico { background: #d9f1e4; }
.main .banner-warn { border-color: #ecd9a0; background: #fdf8e9; } .main .banner-warn > .ico { background: #f7ebc2; }
.main .note { background: #f1f3fe; border-color: #c9d2fb; }
.main .dot { box-shadow: none; }
.main .viewing { color: #fff; background: #1d2a6e; border-bottom: 0; }
.main .viewing .btn { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.main .error { background: #fdf0f2; }
.content { width: 100%; padding: 32px clamp(18px, 3vw, 40px) 72px; }
.viewing { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px clamp(18px, 3.2vw, 44px); font-size: 13.5px; color: var(--fg); background: rgba(31, 44, 110, 0.82); border-bottom: 1px solid rgba(142, 162, 255, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 10px 12px 6px; overflow: visible; }
  .side-search { order: 2; flex: 1 0 100%; margin: 4px 0 2px; }
  .main { margin: 0 6px 6px; min-height: 0; }
  .side-logo { padding: 4px 8px; margin-right: auto; }
  .side-nav { order: 3; flex: 1 0 100%; flex-direction: row; overflow-x: auto; gap: 4px; }
  .side-foot { flex-direction: row; align-items: center; padding: 0; border: 0; }
  .side-link { width: auto; white-space: nowrap; }
  .side-link span { flex: none; }
  .side-label, .who { display: none; }
  .side-foot .side-link span { display: none; }
  .content { padding-top: 24px; }
}

/* ---------- buttons (site .btn) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; font: inherit; font-weight: 550; font-size: 14px; white-space: nowrap; cursor: pointer; color: var(--fg); text-decoration: none; transition: transform .15s var(--ease), box-shadow .3s, background-color .2s, border-color .2s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(142, 162, 255, 0.6), 0 14px 50px -8px rgba(91, 123, 253, 0.8); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--raise); }
.btn-ghost:hover { border-color: rgba(142, 162, 255, 0.6); background: rgba(91, 123, 253, 0.08); }
.btn-lg { height: 48px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; gap: 7px; }
.btn-xs .ico { width: 15px; height: 15px; }

.head { display: flex; align-items: end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px; }
h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.main h1 { font-size: 27px; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 14px; }
.lede { margin-top: 8px; color: var(--dim); max-width: 60ch; }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13.5px; color: var(--mute); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--fg); }
.summary { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 14.5px; }

/* ---------- panels ---------- */
.panel, .table-wrap, .strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel { padding: 22px 24px; margin-bottom: 16px; }

/* ---------- severity strip (site .hero-stats: one bordered band, hairline dividers) ---------- */
.strip { margin-bottom: 28px; overflow: hidden; }
.strip-bar { width: 100%; height: 4px; background: var(--well); }
.strip-cells { display: grid; grid-template-columns: repeat(5, 1fr); }
.cell { display: block; padding: 16px 22px 18px; color: var(--fg); transition: background-color .2s; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell:hover { background: var(--raise); text-decoration: none; }
.cell[aria-current] { background: rgba(91, 123, 253, 0.1); }
.cell b { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cell span { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--dim); font-size: 13.5px; }
.cell.zero b { color: var(--mute); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--unknown); flex: none; }
.sev-critical .dot { background: var(--critical); } .sev-high .dot { background: var(--high); }
.sev-medium .dot { background: var(--medium); } .sev-low .dot { background: var(--low); }
.fill-critical { fill: var(--critical); } .fill-high { fill: var(--high); } .fill-medium { fill: var(--medium); }
.fill-low { fill: var(--low); } .fill-unknown { fill: var(--unknown); }
@media (max-width: 720px) {
  .strip-cells { grid-template-columns: repeat(2, 1fr); }
  .cell + .cell { border-left: 0; }
  .cell:nth-child(even) { border-left: 1px solid var(--line); }
  .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge.sev-critical { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 42%, transparent); background: color-mix(in srgb, var(--critical) 10%, transparent); }
.badge.sev-high { color: var(--high); border-color: color-mix(in srgb, var(--high) 42%, transparent); background: color-mix(in srgb, var(--high) 10%, transparent); }
.badge.sev-medium { color: var(--medium); border-color: color-mix(in srgb, var(--medium) 42%, transparent); background: color-mix(in srgb, var(--medium) 10%, transparent); }
.badge.sev-low { color: var(--low); border-color: color-mix(in srgb, var(--low) 42%, transparent); background: color-mix(in srgb, var(--low) 10%, transparent); }
.badge.kev { color: #fff; background: #c9283a; border-color: #c9283a; }
.badge.ok { color: var(--low); border-color: color-mix(in srgb, var(--low) 42%, transparent); background: color-mix(in srgb, var(--low) 10%, transparent); }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters label, .field { display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
select, input[type=text], input[type=password] { font: inherit; font-size: 14.5px; color: var(--fg); height: 40px; background-color: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; min-width: 168px; transition: border-color .2s, background-color .2s; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23a9aec0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 12px; }
select option { background: var(--panel-solid); color: var(--fg); }
select:hover, input:hover { border-color: rgba(142, 162, 255, 0.45); }
select:focus-visible, input:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 1px; border-radius: 10px; border-color: transparent; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; font-weight: 550; color: var(--mute); padding: 13px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: var(--raise); }
tr:last-child td { border-bottom: 0; }
td.id { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
td.id a { color: var(--fg); }
td.id a:hover { color: var(--blue-2); }
td.sum { color: var(--dim); min-width: 240px; overflow-wrap: anywhere; }
td.pkg { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
td.sev { white-space: nowrap; }
td.sev .badge-row { flex-wrap: nowrap; }
table.dense td.pkg { min-width: 140px; overflow-wrap: break-word; word-break: normal; }
.pkg-ver { color: var(--dim); }
.empty { padding: 56px 24px; text-align: center; color: var(--dim); }
.empty b { display: block; color: var(--fg); font-weight: 600; font-size: 16px; margin-bottom: 4px; }

/* ---------- status banner and inline summary (overview) ---------- */
.banner, .inline-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.banner { margin-bottom: 16px; }
.banner > .ico, .inline-card > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--well); color: var(--dim); }
.banner div, .inline-card div { display: grid; gap: 1px; flex: 1; min-width: 0; }
.banner b, .inline-card b { font-size: 14.5px; font-weight: 600; }
.banner small, .inline-card small { font-size: 13.5px; color: var(--dim); }
.banner-ok { border-color: rgba(111, 211, 160, 0.28); background: rgba(111, 211, 160, 0.06); }
.banner-ok > .ico { color: var(--low); background: rgba(111, 211, 160, 0.12); }
.banner-warn { border-color: rgba(240, 205, 94, 0.32); background: rgba(240, 205, 94, 0.06); }
.banner-warn > .ico { color: var(--medium); background: rgba(240, 205, 94, 0.12); }
.inline-card { margin-top: 16px; }
.strip { margin-bottom: 16px; }

/* ---------- alerts toolbar: tabs, severity chips, system picker ---------- */
.toolbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); }
.seg a { padding: 5px 13px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--dim); transition: color .2s, background-color .2s; }
.seg a:hover { color: var(--fg); text-decoration: none; }
.seg a[aria-selected] { color: var(--fg); background: var(--selected); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--dim); transition: color .2s, border-color .2s, background-color .2s; }
.chip:hover { color: var(--fg); border-color: var(--line-2); text-decoration: none; }
.chip b { font-weight: 600; color: var(--mute); }
.chip[aria-current] { color: var(--fg); border-color: rgba(142, 162, 255, 0.55); background: rgba(91, 123, 253, 0.14); }
.chip[aria-current] b { color: var(--fg); }
.toolbar-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar-form select { height: 34px; font-size: 13.5px; min-width: 150px; }
.toolbar-form .btn { height: 34px; }
.js .js-hide { display: none; }
@media (max-width: 720px) { .chips { flex: 1 0 100%; order: 3; } .toolbar-form { margin-left: auto; } }

/* dense, grouped table (alerts) */
table.dense td, table.dense thead th { padding-inline: 16px; }
table.dense td { padding-block: 10px; }
table.dense td:first-child, table.dense th:first-child { padding-left: 20px; }
table.dense tbody + tbody tr.group th { border-top: 1px solid var(--line); }
tr.group th { padding: 9px 20px; font-size: 13px; font-weight: 600; color: var(--fg); background: var(--raise); }
tr.group th .dot { display: inline-block; margin-right: 9px; vertical-align: 1px; }
tr.group th b { margin-left: 8px; font-weight: 500; color: var(--mute); }
tr.group:hover { background: none; }

/* ---------- finding: content + timeline rail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.rail { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.timeline { position: relative; display: grid; gap: 18px; margin: 0; padding: 0 0 0 20px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; display: grid; gap: 1px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--mute); }
.timeline li:last-child::before { border-color: var(--blue-2); background: var(--blue); }
.timeline time { font-size: 12.5px; color: var(--mute); }
.timeline b { font-size: 14px; font-weight: 600; }
.timeline small { font-size: 13px; color: var(--dim); }

/* ---------- overview cards ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1080px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--dim); }
.more:hover { color: var(--fg); text-decoration: none; }
.more .ico { width: 14px; height: 14px; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; color: var(--fg); transition: background-color .15s; }
.row:hover { background: var(--raise); text-decoration: none; }
.row .badge-row { flex: none; width: 196px; }
.row-main { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.row-main b { font-weight: 550; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main b.mono { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }
.row-main small { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { flex: none; font-size: 13px; color: var(--mute); white-space: nowrap; }
.row-side b { color: var(--fg); font-weight: 600; }
.card-foot { padding: 11px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
@media (max-width: 560px) { .row { flex-wrap: wrap; gap: 6px 12px; } .row .badge-row { width: auto; } .row-main { flex-basis: 100%; order: 3; } }

/* ---------- clients (staff) ---------- */
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; }
td.actions .btn + .btn, td.actions form + .btn { margin-left: 6px; }
tr.off td { color: var(--mute); }

/* ---------- detail ---------- */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 12px 24px; }
.kv dt { color: var(--mute); font-size: 13.5px; padding-top: 1px; }
.kv dd { overflow-wrap: anywhere; max-width: 75ch; }
.kv .code { font-family: var(--mono); font-size: 14px; }
.note { background: rgba(91, 123, 253, 0.09); border-color: rgba(91, 123, 253, 0.32); }
.note p { white-space: pre-line; max-width: 75ch; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 12px; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth-box { width: min(408px, 100%); }
.auth-box > .logo { margin-bottom: 30px; }
.auth-box > .logo .logo-ring { width: 34px; height: 34px; }
.auth-box > .logo .logo-word { font-size: 28px; }
.auth-card { padding: 30px 28px 28px; margin: 0; }
.auth-card h1 { font-size: 26px; }
.auth-card form, .form { display: grid; gap: 16px; margin-top: 24px; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--mute); }
.form { max-width: 440px; }
.field input { width: 100%; height: 44px; }
.help { font-size: 12.5px; color: var(--mute); }
.help ul { list-style: disc; padding-left: 18px; }
.error, .errorlist { color: var(--critical); font-size: 14px; }
.error { padding: 10px 12px; border: 1px solid rgba(255, 107, 120, 0.4); background: rgba(255, 107, 120, 0.08); border-radius: 10px; }
.ok-text { color: var(--low); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- feed, issue detail, asset pages ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.type { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--well); color: var(--dim); }
.type .ico { width: 16px; height: 16px; }
table.feed .type-col { width: 46px; padding-right: 0; }
table.feed td { vertical-align: middle; }
td.issue { min-width: 280px; }
td.issue a { color: var(--fg); font-weight: 550; }
td.issue a:hover { color: var(--blue-2); }
td.issue small { display: block; margin-top: 1px; font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
td.loc { font-size: 13.5px; overflow-wrap: anywhere; }
.badge .dot { width: 6px; height: 6px; }
.badge.sev-critical .dot { background: var(--critical); } .badge.sev-high .dot { background: var(--high); }
.badge.sev-medium .dot { background: var(--medium); } .badge.sev-low .dot { background: var(--low); }
.toolbar-form input[type=text] { height: 34px; font-size: 13.5px; min-width: 190px; }
.strip-foot { display: flex; gap: 6px 28px; flex-wrap: wrap; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.strip-foot b { color: var(--fg); font-weight: 600; }
.strip-foot a { color: var(--dim); }
.row > .badge-row { width: auto; }
.warn-text { color: var(--medium); }

.issue-head { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.issue-title { flex: 1; min-width: 260px; }
.issue-title h1 { font-size: clamp(24px, 2.6vw, 32px); }
.issue-title .badge-row { margin-top: 14px; }
.gauge { position: relative; width: 132px; flex: none; text-align: center; }
.gauge svg { width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge-track { stroke: var(--line); }
.gauge-fill { stroke: var(--unknown); }
.gauge.sev-critical .gauge-fill { stroke: var(--critical); } .gauge.sev-high .gauge-fill { stroke: var(--high); }
.gauge.sev-medium .gauge-fill { stroke: var(--medium); } .gauge.sev-low .gauge-fill { stroke: var(--low); }
.gauge b { position: absolute; left: 0; right: 0; top: 30px; font-size: 30px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.gauge span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--dim); }
.prose { max-width: 75ch; white-space: pre-line; overflow-wrap: anywhere; }
.ref { margin-top: 12px; }
.ref a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ref .ico { width: 14px; height: 14px; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush > h2 { margin: 0; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.panel-flush > h2 span { margin-left: 6px; font-weight: 500; }
.locs li { display: grid; gap: 4px; padding: 14px 24px; }
.locs li + li { border-top: 1px solid var(--line); }
.locs b { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.locs small { font-size: 13px; color: var(--mute); }
.mono { font-family: var(--mono); }
pre { margin: 6px 0 0; padding: 10px 12px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--code-bg); font-family: var(--mono); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rail-kv { display: grid; gap: 2px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.rail-kv dt { color: var(--mute); }
.rail-kv dd { margin-bottom: 8px; overflow-wrap: anywhere; }

/* sign-in and no-access: a light card on the dark brand canvas */
.auth .panel.auth-card { background: #fff; border-color: transparent; box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.auth-card h1 { letter-spacing: -0.02em; }
.auth-card .btn-ghost { background: #fff; }
.auth-card .error { background: #fdf0f2; }
.tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--well); font-size: 12px; font-weight: 550; color: var(--dim); vertical-align: 1px; }
.scanner-says { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); max-width: 75ch; }
.scanner-says b { display: block; font-size: 12px; font-weight: 600; color: var(--mute); margin-bottom: 2px; }
.badge-link:hover { color: var(--link); border-color: var(--link); text-decoration: none; }
.panel > pre { margin-top: 14px; max-width: 75ch; }

/* =====================================================================================
   Polish pass. Direction: a flush, dense working surface like the security consoles our
   clients already use (straight content edges, a thin top bar, hairline borders, small
   radii), framed by Blurabit's dark sidebar. Blue marks actions and the current place only.
   ===================================================================================== */
.app { grid-template-columns: 232px minmax(0, 1fr); }
.side { padding: 14px 10px 12px; gap: 4px; background: #090a12; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.side-logo { padding: 4px 8px 16px; }
.side .logo-ring { width: 24px; height: 24px; }
.side .logo-word { font-size: 20px; }
.side-link { min-height: 32px; padding: 0 8px; gap: 10px; border-radius: 7px; font-size: 13.5px; }
.side-link .ico { width: 16px; height: 16px; }
.side-label { margin: 16px 8px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.side-count { font-size: 11.5px; padding: 0 6px; line-height: 18px; }
.who { padding: 4px 8px 8px; }
.avatar { width: 28px; height: 28px; font-size: 12px; }
.who-text b { font-size: 13.5px; } .who-text small { font-size: 12px; }

.main { --r: 10px; margin: 0; min-height: 100vh; border-radius: 0; font-size: 14px; background: #f7f8fb; }
.main .viewing { position: static; padding: 7px 32px; font-size: 13px; }
.main .viewing .btn { height: 26px; }
.content { max-width: 1360px; padding: 26px 32px 64px; }

.main h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.main h2 { font-size: 14px; margin-bottom: 12px; }
.main .lede { margin-top: 4px; font-size: 13.5px; max-width: 72ch; }
.main .head { margin-bottom: 18px; align-items: center; }
.main .crumbs { margin-bottom: 10px; font-size: 13px; }

.main .btn { height: 34px; padding: 0 13px; border-radius: 8px; font-size: 13.5px; gap: 8px; }
.main .btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.main .btn-lg { height: 40px; font-size: 14px; }
.main .btn-primary { box-shadow: none; }
.main .btn-primary:hover { background: #4a69ee; box-shadow: none; }
.main select, .main input[type=text], .main input[type=password] { height: 34px; border-radius: 8px; font-size: 13.5px; }
.main .field input { height: 38px; }

.main .panel, .main .table-wrap, .main .strip, .main .card, .main .rail, .main .banner, .main .inline-card { box-shadow: none; }
.main .panel { padding: 18px 20px; margin-bottom: 12px; }
.main .banner { padding: 10px 14px; margin-bottom: 12px; gap: 12px; }
.main .banner > .ico { width: 30px; height: 30px; padding: 7px; border-radius: 8px; }
.main .banner b { font-size: 13.5px; } .main .banner small { font-size: 13px; }
.main .strip { margin-bottom: 12px; }
.main .cell { padding: 14px 18px 15px; }
.main .cell b { font-size: 26px; letter-spacing: -0.02em; }
.main .cell span { font-size: 13px; }
.main .strip-foot { padding: 9px 18px; font-size: 13px; background: #fbfbfd; }
.main .cols { gap: 12px; }
.main .card-head { padding: 12px 16px; }
.main .card-head h2 { margin: 0; }
.main .row { padding: 10px 16px; gap: 12px; }
.main .row-main b { font-size: 13.5px; } .main .row-main small { font-size: 12.5px; }
.main .card-foot { padding: 9px 16px; font-size: 12.5px; background: #fbfbfd; }
.main .type { width: 28px; height: 28px; border-radius: 7px; background: var(--raise); border: 1px solid var(--line); }
.main .type .ico { width: 15px; height: 15px; }

.main table { font-size: 13.5px; }
.main th { padding: 9px 16px; font-size: 12px; font-weight: 600; }
.main td { padding: 11px 16px; }
.main table.dense td { padding-block: 9px; }
.main tbody tr:hover { background: #f7f8fc; }
.main td.issue small, .main td.loc { font-size: 12.5px; }
.main td.id, .main td.pkg { font-size: 12.5px; }
.main .badge { height: 22px; padding: 0 8px; font-size: 12px; }
.main .toolbar { margin-bottom: 12px; gap: 8px 12px; }
.main .seg { border-radius: 8px; padding: 2px; }
.main .seg a { padding: 4px 11px; border-radius: 6px; font-size: 13px; }
.main .chip { height: 28px; padding: 0 10px; font-size: 13px; }
.main .toolbar-form select { height: 30px; font-size: 13px; }
.main .toolbar-form .btn { height: 30px; }
.main .empty { padding: 48px 24px; font-size: 13.5px; }
.main .empty b { font-size: 15px; }

.main .issue-head { gap: 22px; margin-bottom: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.main .gauge { width: 112px; }
.main .gauge b { top: 26px; font-size: 26px; }
.main .issue-title h1 { font-size: 20px; }
.main .issue-title .badge-row { margin-top: 12px; }
.main .detail { gap: 12px; grid-template-columns: minmax(0, 1fr) 264px; }
.main .rail { padding: 16px 18px; }
.main .panel-flush { padding: 0; }
.main .panel-flush > h2 { padding: 12px 20px; }
.main .locs li { padding: 12px 20px; }
.main .locs b { font-size: 12.5px; }
.main pre { font-size: 12.5px; border-radius: 8px; }
.main .prose { font-size: 14px; line-height: 1.6; }
.main .timeline b { font-size: 13.5px; }
.main .kv { gap: 10px 20px; grid-template-columns: 150px 1fr; }
.main .kv dt { font-size: 13px; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; }
  .main { margin: 0; min-height: 0; }
  .main .viewing { padding-inline: 16px; }
  .content { padding: 20px 16px 48px; }
  .main .detail { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- OWASP Top 10 report: one list, ten rows, a row opens to show its issues ---------- */
.owasp { overflow: hidden; }
.owasp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 0 16px; padding: 12px 16px; }
.owasp-head { display: flex; justify-content: space-between; padding: 9px 52px 9px 16px; font-size: 12px; font-weight: 600; color: var(--mute); background: #fbfbfd; border-bottom: 1px solid var(--line); }
.owasp-cat, .owasp-row.is-clear { border-bottom: 1px solid var(--line); }
.owasp > :last-child { border-bottom: 0; }
summary.owasp-row { cursor: pointer; list-style: none; transition: background-color .15s; }
summary.owasp-row::-webkit-details-marker { display: none; }
summary.owasp-row:hover { background: #f7f8fc; }
.owasp-code { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--dim); }
.owasp-name { display: grid; gap: 1px; min-width: 0; }
.owasp-name b { font-size: 14px; font-weight: 600; }
.owasp-name small { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owasp-sev { display: flex; gap: 6px; justify-content: flex-end; font-size: 13px; white-space: nowrap; }
.owasp-toggle .ico { width: 15px; height: 15px; color: var(--mute); transition: transform .15s; }
.owasp-cat[open] .owasp-toggle .ico { transform: rotate(90deg); }
.owasp-cat[open] > summary { background: #fbfbfd; }
.is-clear .owasp-name b { font-weight: 500; color: var(--dim); }
.owasp-items { border-top: 1px solid var(--line); background: #fbfbfd; padding: 6px 16px 10px 76px; }
.owasp-items li + li { border-top: 1px solid var(--line); }
.owasp-items a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--fg); }
.owasp-items a:hover { text-decoration: none; }
.owasp-items a:hover b { color: var(--link); }
.owasp-item { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.owasp-item b { font-size: 13.5px; font-weight: 550; }
.owasp-item small { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footnote { margin-top: 12px; font-size: 12.5px; color: var(--mute); max-width: 90ch; }
.main .summary b { color: var(--fg); font-weight: 600; }
@media (max-width: 720px) { .owasp-row { grid-template-columns: 36px minmax(0, 1fr) 20px; } .owasp-sev { grid-column: 2; justify-content: flex-start; margin-top: 6px; } .owasp-toggle { grid-column: 3; grid-row: 1; } .owasp-head span:nth-child(3) { display: none; } .owasp-items { padding-left: 16px; } .owasp-name small { white-space: normal; } }

/* =====================================================================================
   Design-system alignment (Blurabit Design System: tokens.json and README).
   Kept from the system: Inter for everything that reads, JetBrains Mono uppercase labels with
   0.06em tracking for captions and column heads, `blue` only for fills and the current place,
   `blue-2`-family for text links and focus, hairlines instead of grey panels, no grey shadows,
   tabular numerals, weights 550 (controls) and 600 (headings) and never 700, one easing curve.
   Deliberate exception, asked for by Rafael: the working surface is light. The system is
   dark-only for the site and documents; long tables and code read better dark-on-light.
   ===================================================================================== */
.main { --r: 12px; --label: 500 11px/1.6 var(--mono); }
.main b, .main strong, .main th { font-weight: 600; }
.main h1 { font-weight: 600; letter-spacing: -0.02em; }
.main h2 { font-weight: 600; letter-spacing: -0.01em; }
.main .btn { font-weight: 550; border-radius: 10px; transition: transform .15s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.main .btn-xs { border-radius: 8px; }
.main select, .main input[type=text], .main input[type=password] { border-radius: 10px; }
.main :focus-visible { outline: 2px solid #3350e0; outline-offset: 3px; border-radius: 6px; }
.main th, .main .owasp-head, .main .rail-kv dt, .main .scanner-says b, .main .kv dt { font: var(--label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.main th { padding-block: 10px; }
.main .owasp-code, .main .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.main td, .main .cell b, .main .summary, .main .row-side, .main .badge, .main .chip b { font-variant-numeric: tabular-nums; }
.main td.num { font-family: var(--mono); font-size: 12.5px; }
.main .cell b { font-weight: 650; letter-spacing: -0.035em; }
.main .cell span { font: var(--label); text-transform: uppercase; letter-spacing: 0.06em; }
.main .strip-foot { font-size: 12.5px; }
.main .card-head h2, .main .rail h2, .main .panel > h2, .main .panel-flush > h2 { font-size: 13.5px; }
.main .seg a, .main .chip { font-weight: 500; }
.main .badge { font-weight: 550; }
.main .empty b { font-weight: 600; }
.main a { text-underline-offset: 3px; }

/* error pages share the sign-in card */
.error-code { font: 500 12.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); margin-bottom: 6px; }
.auth-actions { margin-top: 22px; }
.auth-card .btn { font-weight: 550; }
.auth-card .field { font-weight: 500; }

/* ---------- sign in with Google ---------- */
.auth-error { margin-top: 20px; }
.btn-google { margin-top: 24px; gap: 10px; color: var(--fg); }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 -6px; color: var(--mute); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
