/* Route443 brand: navy #0B0F32, orange #FB5A04, steel blue #8DB0C6, off-white #E4F0EF, D-DIN / Barlow */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');
:root {
  --navy: #0b0f32; --navy-2: #121a44; --navy-3: #1a2352; --line: #27315f; --line-soft: #1f2852;
  --orange: #fb5a04; --steel: #8db0c6; --offwhite: #e4f0ef;
  --bg: var(--navy); --panel: var(--navy-2); --panel2: var(--navy-3); --text: var(--offwhite); --muted: var(--steel);
  --accent: var(--orange);
  --crit: #e5484d; --high: #fb5a04; --med: #e8b63a; --low: #2ea3f2; --info: #6b7a9c; --good: #3fb67a;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 8px; --r-s: 4px;
  --ink: #0b0f32; --paper: #ffffff;   /* fixed: text on a solid-colour badge, white card in print */
  color-scheme: dark;
}
/* Light theme (default): white cards on a cool grey canvas, navy text, Route443 orange as the only accent. The same
   tokens are remapped, so "navy" means "surface" and "off-white" means "ink" in both themes. */
:root[data-theme="light"] {
  --navy: #ffffff; --navy-2: #ffffff; --navy-3: #f3f5f8; --line: #dfe5ec; --line-soft: #eaeef3;
  --steel: #5b6b85; --offwhite: #0b0f32;
  --bg: #f5f7fa; --panel: #ffffff; --panel2: #f3f5f8; --text: #0b0f32; --muted: #5b6b85;
  --info: #7b8798; --low: #2b8de0;
  color-scheme: light;
}
:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--line-soft); }
:root[data-theme="light"] header nav a.active { background: #fff3ea; color: var(--orange); box-shadow: inset 0 -2px 0 var(--orange); }
:root[data-theme="light"] .panel { box-shadow: 0 1px 2px rgba(11,15,50,.04); }
:root[data-theme="light"] tr:hover td { background: #f7f9fb; }
:root[data-theme="light"] .badge.Medium { color: #0b0f32; }
:root[data-theme="light"] .tag.prospect { color: #fff; background: var(--steel); }
:root[data-theme="light"] .icard .ih { background: #fafbfc; }
:root[data-theme="light"] .mtile b { color: var(--text); }
:root[data-theme="light"] .lookcard { background: #fafbfc; }
:root[data-theme="light"] .lookcard .shot { background: #e9eef3; }
:root[data-theme="light"] .brand img.dark, :root:not([data-theme="light"]) .brand img.light { display: none; }
.themepick { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.themepick button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.themepick button.on { background: var(--panel2); color: var(--text); }
:root[data-theme="light"] .themepick button.on { background: #0b0f32; color: #fff; }
:root:not([data-theme="light"]) .themepick button.on { background: #e4f0ef; color: #0b0f32; }
/* global search box in the header */
.gsearch { display: flex; align-items: center; flex: 1; max-width: 420px; }
.gsearch input { width: 100%; padding: 6px 12px 6px 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 13px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238db0c6' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>"); background-repeat: no-repeat; background-position: 11px center; }
.gsearch input:focus { outline: none; border-color: var(--steel); }
@media (max-width: 900px) { .gsearch { max-width: none; order: 10; flex-basis: 100%; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "D-DIN", Barlow, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--steel); text-decoration: none; } a:hover { color: var(--offwhite); text-decoration: underline; }

/* ---- header / navigation ---- */
header { display: flex; align-items: center; gap: 28px; padding: 10px 28px; border-bottom: 2px solid var(--orange); background: var(--navy); position: sticky; top: 0; z-index: 20; }
header .brand { display: flex; align-items: center; gap: 14px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; font-size: 12.5px; color: var(--steel); }
header .brand img { height: 30px; display: block; }
header .brand span { color: var(--steel); font-weight: 500; }
header nav { display: flex; gap: 4px; }
header nav a { color: var(--steel); font-weight: 600; padding: 6px 12px; border-radius: var(--r-s); }
header nav a:hover { color: var(--offwhite); text-decoration: none; background: var(--panel2); }
header nav a.active { color: var(--offwhite); background: var(--panel2); box-shadow: inset 0 -2px 0 var(--orange); }
.navcount { display: inline-block; background: var(--orange); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; margin-left: 4px; vertical-align: 1px; }
header .right { display: flex; align-items: center; gap: 16px; }
header .apilink { color: var(--muted); font-size: 12px; }
header .who { color: var(--offwhite); }
main { max-width: 1280px; margin: 0 auto; padding: 24px 28px 60px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--line); }

/* ---- type ---- */
h1 { font-size: 24px; margin: 0 0 4px; font-weight: 700; letter-spacing: .2px; }
h1 .domain { font-size: 14px; font-weight: 400; color: var(--steel); margin-left: 8px; }
h2 { font-size: 11.5px; margin: 28px 0 8px; color: var(--steel); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
h2 .muted.small, h2 .sub { text-transform: none; letter-spacing: 0; font-weight: 400; }
h2[id] { scroll-margin-top: 76px; }
h3 { font-size: 14px; margin: 18px 0 6px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 20px; }
.small { font-size: 12px; } .muted { color: var(--muted); } .right { margin-left: auto; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.okmark { color: var(--good); font-weight: 700; }
.up { color: var(--good); } .down { color: var(--crit); }
.empty { padding: 18px 10px; text-align: center; }

/* ---- surfaces ---- */
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; }
.panel + .panel { margin-top: 12px; }
.panel.tenant { margin-top: 0; margin-bottom: 14px; }
.panel.threat { border-left: 3px solid var(--crit); }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }
.two h2:first-child { margin-top: 18px; }
.pagehead { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.msg { background: rgba(251,90,4,.1); border: 1px solid var(--orange); border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; }
.msg.error { background: rgba(229,72,77,.12); border-color: var(--crit); }
.msg.info { background: rgba(141,176,198,.08); border-color: var(--line); color: var(--text); }
.msgcard { background: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 8px 0; font-size: 13px; white-space: pre-wrap; }
pre { background: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow: auto; font-size: 12px; max-height: 420px; color: var(--steel); }
details summary { cursor: pointer; color: var(--muted); } details.scan summary { padding: 6px 0; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
td { overflow-wrap: anywhere; }  /* long hostnames and URLs wrap instead of widening the page */
th { color: var(--steel); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
tr:hover td { background: rgba(141,176,198,.05); }
tr.gone td { opacity: .5; }
td.num, th.num { text-align: right; }
table.findings .ftitle { color: var(--offwhite); font-weight: 500; } table.findings .ftitle:hover { color: var(--orange); }
.ftitle { color: var(--offwhite); } .ftitle:hover { color: var(--orange); }
@media (max-width: 1100px) { th { white-space: normal; } th, td { padding: 6px 8px; } }
th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--offwhite); }
th.sortable::after { content: " ↕"; opacity: .35; font-size: 10px; } th.sortable.asc::after { content: " ↑"; opacity: 1; } th.sortable.desc::after { content: " ↓"; opacity: 1; }
.kv td:first-child { color: var(--muted); width: 160px; }

/* ---- badges / tags ---- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .4px; line-height: 1.5; white-space: nowrap; }
.badge.Critical { background: var(--crit); } .badge.High { background: var(--high); } .badge.Medium { background: var(--med); color: var(--navy); }
.badge.Low { background: var(--low); } .badge.Informational { background: var(--info); }
.badge.state { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.badge.state.new { color: var(--orange); border-color: var(--orange); } .badge.state.resolved { color: var(--good); border-color: var(--good); }
.badge.state.failed { color: var(--crit); border-color: var(--crit); }
.tag { display: inline-block; background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; font-size: 11.5px; color: var(--muted); margin: 1px 2px 1px 0; }
.tag.port { color: var(--offwhite); } .tag.port.fresh { border-color: var(--orange); } .tag.cve { color: var(--orange); border-color: var(--orange); }
.tag.kev { color: #fff; background: var(--crit); border-color: var(--crit); }
.tag.cname { color: var(--steel); } .tag.warn { color: var(--orange); border-color: var(--orange); } .tag.crit { color: var(--crit); border-color: var(--crit); } .tag.ok { color: var(--good); border-color: var(--good); }
.tag.good { color: var(--good); border-color: var(--good); }
.tag.prospect { color: var(--navy); background: var(--steel); border-color: var(--steel); font-weight: 700; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--offwhite); margin-left: 8px; }
.chip a { color: var(--muted); margin-left: 4px; }
.sevdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.sevdot.Critical { background: var(--crit); } .sevdot.High { background: var(--high); } .sevdot.Medium { background: var(--med); } .sevdot.Low { background: var(--low); } .sevdot.Informational { background: var(--info); }
/* compact severity counts: "3 · 7 · 12" with colour per number */
.sev { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sev b { font-weight: 700; } .sev .c { color: var(--crit); } .sev .h { color: var(--high); } .sev .m { color: var(--med); } .sev .l { color: var(--muted); }
.sev .z { color: var(--line); }

/* ---- forms / buttons ---- */
input, select, textarea { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 8px 10px; border-radius: var(--r-s); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
input[type=checkbox] { width: auto; }
button, .btn { background: var(--orange); color: #fff; border: 0; padding: 8px 16px; border-radius: var(--r-s); font: inherit; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: .5px; font-size: 12.5px; display: inline-block; }
button:hover, .btn:hover { background: #ff6d1f; text-decoration: none; color: #fff; }
button.secondary, .btn.secondary { background: transparent; color: var(--offwhite); border: 1px solid var(--steel); }
button.secondary:hover, .btn.secondary:hover { background: var(--panel2); }
button.danger { background: transparent; color: var(--crit); border: 1px solid var(--crit); } button.danger:hover { background: rgba(229,72,77,.12); }
button.small, .btn.small { padding: 4px 10px; font-size: 11px; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid transparent; text-transform: none; letter-spacing: 0; font-weight: 500; } button.ghost:hover { color: var(--offwhite); background: var(--panel2); }
button:disabled { opacity: .45; cursor: default; }
form.inline { display: inline; }
select.crit { padding: 2px 4px; font-size: 12px; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: s 1s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes s { to { transform: rotate(360deg); } }

/* overflow menu (no JavaScript): <details class="menu"><summary>⋯</summary><div>…</div></details> */
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; display: inline-block; padding: 7px 12px; border: 1px solid var(--steel); border-radius: var(--r-s); color: var(--offwhite); font-weight: 700; cursor: pointer; line-height: 1.2; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { background: var(--panel2); }
details.menu > div { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
details.menu > div a, details.menu > div button { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 8px 10px; border-radius: var(--r-s); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
details.menu > div a:hover, details.menu > div button:hover { background: var(--navy); color: var(--offwhite); text-decoration: none; }
details.menu > div button.danger { color: var(--crit); }
details.menu > div hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
details.menu > div form { display: block; }
details.rowmenu > summary { padding: 2px 8px; border-color: var(--line); color: var(--muted); font-size: 13px; }
details.rowmenu > summary:hover { color: var(--offwhite); border-color: var(--steel); }
details.rowmenu > div { min-width: 290px; }

/* ---- filters / tabs ---- */
.filters { margin-bottom: 10px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.filters a { padding: 3px 10px; border-radius: 999px; margin: 0; color: var(--muted); }
.filters a.on { background: var(--panel2); color: var(--orange); font-weight: 700; }
.tabs { display: flex; gap: 2px; margin: 22px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--offwhite); text-decoration: none; } .tabs a.on { color: var(--offwhite); border-bottom-color: var(--orange); }
.tabs .count { display: inline-block; background: var(--panel2); border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; color: var(--muted); }
.tabs .count.hot { background: var(--orange); color: #fff; }
.tabs + .panel { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.tabs ~ h2:first-of-type { margin-top: 18px; }

/* ---- stat tiles (customer page) ---- */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.stat { display: block; background: var(--panel2); border-radius: var(--r); padding: 12px 14px; border-left: 3px solid var(--line); color: var(--text); transition: background .15s; }
a.stat:hover { background: #22306a; text-decoration: none; color: var(--text); }
.stat.on { outline: 2px solid var(--orange); outline-offset: -2px; }
.stat.sev-crit { border-left-color: var(--crit); } .stat.sev-high { border-left-color: var(--high); } .stat.sev-med { border-left-color: var(--med); } .stat.sev-low { border-left-color: var(--low); }
.stat .n { font-size: 26px; font-weight: 700; } .stat .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.stat.risk { border-left-color: var(--orange); position: relative; }
.stat.risk .grade { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat.risk .spark { position: absolute; right: 10px; top: 10px; }
.risklink { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.risklink .spark { width: 70px; height: 20px; }

/* ---- summary strip (customer header) ---- */
.summary { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
@media (max-width: 1000px) { .summary { grid-template-columns: 1fr 1fr; } }
.summary > a, .summary > div { padding: 14px 18px; border-right: 1px solid var(--line-soft); color: var(--text); display: block; }
.summary > a:hover { background: var(--panel2); text-decoration: none; }
.summary > *:last-child { border-right: 0; }
.summary .l { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; }
.summary .n { font-size: 24px; font-weight: 700; line-height: 1.2; }
.summary .n small { font-size: 13px; color: var(--muted); font-weight: 600; }
.summary .sevbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line-soft); margin: 8px 0 6px; }
.summary .sevbar span { display: block; height: 100%; }
.summary .sevnums { display: flex; gap: 10px; font-size: 12px; }
.summary .sevnums b { font-size: 13px; }

/* ---- KPI strip (portfolio) ---- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 12px 16px; color: var(--text); display: block; position: relative; }
a.kpi:hover { background: var(--panel2); text-decoration: none; color: var(--text); }
.kpi .n { font-size: 26px; font-weight: 700; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; margin-top: 2px; }
.kpi .d { color: var(--muted); font-size: 12px; margin-top: 4px; }
.kpi.alert .n { color: var(--crit); } .kpi.warn .n { color: var(--orange); } .kpi.good .n { color: var(--good); }

/* ---- attention lists (portfolio) ---- */
.attention { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
@media (max-width: 1000px) { .attention { grid-template-columns: 1fr; } }
.attention > * { min-width: 0; }  /* grid items must be allowed to shrink below their nowrap content */
.attention .panel { padding: 12px 16px; }
.attention h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--steel); display: flex; align-items: center; gap: 8px; }
.attention h3 .count { background: var(--panel2); border-radius: 999px; padding: 0 8px; font-size: 11px; color: var(--muted); }
.attention h3 .count.hot { background: var(--crit); color: #fff; }
.attention ul { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.attention li:first-child { border-top: 0; }
.attention li .who { color: var(--muted); min-width: 130px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention li .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention li .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.attention .none { color: var(--muted); font-size: 13px; padding: 6px 0; }

/* ---- toolbar above tables (search / filter) ---- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.toolbar input[type=search] { min-width: 260px; }
.toolbar .spacer { flex: 1; }
.toolbar .hint { color: var(--muted); font-size: 12px; }
.rowlink td { cursor: default; }

/* ---- sources grid (coverage, on Settings) ---- */
.srcgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 900px) { .srcgrid { grid-template-columns: repeat(2, 1fr); } }
.src { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; border-left: 3px solid var(--line); display: block; color: var(--text); }
.src.ok { border-left-color: var(--good); } .src.off { border-left-color: var(--line); opacity: .7; } .src.na { opacity: .5; }
.src-name { font-weight: 600; font-size: 12.5px; } .src-what { color: var(--muted); font-size: 11px; } .src-detail { font-size: 12px; margin-top: 2px; color: var(--offwhite); }
.src.off .src-detail, .src.na .src-detail { color: var(--muted); }
a.src:hover { text-decoration: none; background: var(--panel2); border-color: var(--steel); }

/* ---- intel tab: sticky side index + single column ---- */
.intelwrap { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .intelwrap { grid-template-columns: 1fr; } .sidenav { position: static; } }
.sidenav { position: sticky; top: 70px; font-size: 13px; }
.sidenav .grp { color: var(--steel); text-transform: uppercase; letter-spacing: .8px; font-size: 10.5px; font-weight: 700; margin: 14px 0 4px; }
.sidenav .grp:first-child { margin-top: 0; }
.sidenav a { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-left: 2px solid var(--line-soft); color: var(--muted); }
.sidenav a:hover { color: var(--offwhite); text-decoration: none; border-left-color: var(--steel); }
.sidenav a .n { margin-left: auto; background: var(--orange); color: #fff; font-weight: 700; font-size: 10.5px; border-radius: 999px; padding: 0 6px; line-height: 16px; }
.intelwrap h2 { margin-top: 0; }
.intelwrap section { margin-bottom: 22px; }
.intelwrap section h2 { padding-top: 4px; }

/* ---- screenshots ---- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); text-decoration: none; color: inherit; }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--line); }
.shot div { padding: 6px 8px; }

/* ---- prospect banner ---- */
.banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: rgba(141,176,198,.1); border: 1px solid var(--steel); border-radius: var(--r); padding: 10px 16px; margin-bottom: 16px; font-size: 13px; }
.banner .right { display: flex; gap: 8px; align-items: center; }

/* ---- phones (≤ 700px): one column, wrapping header, scrollable tables ---- */
@media (max-width: 900px) {
  header { flex-wrap: wrap; gap: 8px 16px; padding: 8px 14px; position: static; }
  header .brand span { display: none; }
  header nav { order: 3; width: 100%; overflow-x: auto; gap: 0; -webkit-overflow-scrolling: touch; }
  header nav a { padding: 8px 10px; white-space: nowrap; }
  header .right { margin-left: auto; gap: 10px; }
  header .apilink { display: none; }
}
@media (max-width: 700px) {
  main { padding: 14px 14px 40px; }
  h1 { font-size: 20px; }
  h1 .domain { display: block; margin: 2px 0 0; }
  .kpis, .grid, .srcgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .summary { grid-template-columns: 1fr; }
  .two, .attention, .intelwrap { grid-template-columns: 1fr; }
  .two > *, .intelwrap > *, .attention > *, .panel, main { min-width: 0; }
  .panel { padding: 12px 12px; }
  .toolbar input[type=search] { min-width: 0; width: 100%; }
  .attention li .who { min-width: 90px; max-width: 110px; }
  .attention li .when { display: none; }
  /* tables scroll inside their panel instead of stretching the page */
  table { display: block; overflow-x: auto; white-space: nowrap; max-width: 100%; }
  table thead, table tbody { display: table; width: 100%; min-width: 100%; }
  td { overflow-wrap: normal; }
  th, td { padding: 6px 8px; font-size: 13px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .sidenav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .sidenav .grp { width: 100%; margin: 8px 0 2px; }
  .sidenav a { border-left: 0; border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
  pre { font-size: 11px; }
  button, .btn, input, select, textarea { font-size: 16px; }  /* stops iOS from zooming into fields */
  input:not([type=checkbox]):not([type=radio]), select, textarea { max-width: 100%; }
}

/* ---- portfolio overview band (v4): one chart, three numbers ---- */
.overview { display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin-bottom: 14px; }
.ov-risk { display: grid; grid-template-columns: 150px 170px 1fr; gap: 18px; align-items: center; }
.ov-risk .l { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.ov-donut svg { display: block; color: var(--offwhite); }
.ov-legend .legend { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-bottom: 6px; }
.ov-legend .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.ov-trend { min-width: 0; }
.ov-trend svg { display: block; height: 110px; }
.ov-tiles { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.ov-tiles .kpi { padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; }
.ov-tiles .kpi .n { font-size: 24px; } .ov-tiles .kpi .n small { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 1100px) { .overview { grid-template-columns: 1fr; } .ov-tiles { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .ov-risk { grid-template-columns: 1fr 1fr; } .ov-trend { grid-column: 1 / -1; } .ov-tiles { grid-template-columns: 1fr; } }
/* stacked severity bar in the customer table */
.sevbar2 { display: inline-flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line-soft); vertical-align: middle; }
.sevbar2 i { display: block; height: 100%; }
.sevnums b { margin-right: 6px; font-variant-numeric: tabular-nums; }
a.sevlink:hover { text-decoration: none; }
.grade { display: inline-block; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 12px; color: #fff; }
.gA, .gB { background: var(--good); } .gC { background: var(--med); color: #1a1a1a; } .gD { background: var(--high); } .gE { background: var(--crit); }
table.customers td { vertical-align: middle; }
.toolbar h3 { font-size: 15px; }
.attention ul.grouped li { align-items: flex-start; }
.attention ul.grouped .who { min-width: 150px; max-width: 170px; white-space: normal; }
.attention ul.grouped .what { white-space: normal; display: flex; flex-direction: column; gap: 2px; }
.attention ul.grouped .what > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview.cust .ov-risk { grid-template-columns: 120px 150px 1fr; }
.ov-legend .legend a { color: var(--text); } .ov-legend .legend a:hover { color: var(--orange); text-decoration: none; }

/* ---- intel tab: every source is one card with the same header ---- */
.icard { padding: 0; margin-top: 12px; overflow: hidden; scroll-margin-top: 76px; }
.icard + .icard { margin-top: 12px; }
.icard .ih { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(141,176,198,.04); }
.icard .ih h2 { margin: 0; font-size: 12px; letter-spacing: .8px; color: var(--offwhite); }
.icard .ih h2 .muted, .icard .ih h2 .small, .icard .ih h2 .sub { color: var(--muted); font-size: 11.5px; font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.icard .ih .pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.icard .ih .pill.hot { background: var(--orange); color: #fff; }
.icard > :not(.ih) { padding-left: 16px; padding-right: 16px; }
.icard > p, .icard > div:not(.ih), .icard > details, .icard > table, .icard > ul { margin-left: 0; margin-right: 0; }
.icard > p:first-of-type, .icard > div.ih + * { padding-top: 12px; }
.icard > :last-child { padding-bottom: 12px; }
.icard > p { margin: 8px 0; }
.icard table { font-size: 13px; }
.icard .msgcard { margin: 8px 0; }
.icard .okmark { margin-right: 4px; }
.intelwrap section { margin-bottom: 20px; }

/* release notes */
.changelog { max-width: none; }
.changelog h2 { margin: 28px 0 6px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 17px; }
.changelog h3 { margin: 14px 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.changelog ul { margin: 0 0 8px 18px; padding: 0; }
.changelog li { margin: 3px 0; line-height: 1.45; }
.changelog p { color: var(--muted); }
footer a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }

/* about */
.about .kv th { text-align: left; color: var(--muted); font-weight: 500; width: 110px; vertical-align: top; padding: 6px 10px 6px 0; }
.about .kv td { padding: 6px 0; }
.about .feat { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.about .feat li { margin: 0 0 7px; break-inside: avoid; }
.about .feat .tag { display: inline-block; min-width: 26px; text-align: center; }
.about-text p { max-width: 900px; line-height: 1.55; }
.panel.changelog h2:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
.about2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 900px) { .about2 { grid-template-columns: 1fr; } .about .feat { columns: 1; } }
.about .ih, .about-text .ih, .changelog .ih { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.about .ih h2, .about-text .ih h2, .changelog .ih h2 { margin: 0; }
.about .ih .pill, .changelog .ih .pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--panel2); color: var(--muted); }

/* clickable donut segments */
.donut a .seg { cursor: pointer; transition: stroke-width .12s; }
.donut a:hover .seg { stroke-width: 22; }

/* selection bar under the findings table */
.selbar { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel2); position: sticky; bottom: 8px; }
.selbar input[type=text], .selbar input:not([type]) { padding: 6px 10px; }

/* customer page modules */
.tabs .tabsep { flex: 0 0 1px; height: 18px; background: var(--line); margin: 0 6px; align-self: center; }
.mtiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin: 16px 0 12px; }
.mtile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-decoration: none; color: inherit; min-width: 0; }
.mtile b { font-size: 22px; line-height: 1.1; }
.mtile span { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.mtile:hover { border-color: var(--steel); }
@media (max-width: 1100px) { .mtiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .mtiles { grid-template-columns: repeat(2, 1fr); } }
.mcharts { margin-bottom: 12px; }
.mcharts .panel { min-width: 0; }
.mcharts .ih { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.mcharts .ih h2 { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mcharts .legend { margin-left: auto; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.mcharts .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.barlist .row { display: grid; grid-template-columns: 150px 1fr 40px; gap: 8px; align-items: center; margin: 4px 0; font-size: 12.5px; }
.barlist .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist .bar { height: 10px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.barlist .bar i { display: block; height: 100%; border-radius: 3px; }
.barlist .n { text-align: right; color: var(--muted); }
.scrollx { overflow-x: auto; }
.lookcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.lookcard { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px; background: var(--panel2); }
.lookcard .shot { display: block; width: 120px; height: 80px; border-radius: 4px; overflow: hidden; background: var(--navy); }
.lookcard .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lookcard .shot.none { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.lookcard .body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lookcard .t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lookcard .sig { display: flex; flex-wrap: wrap; gap: 4px; }
.icard h3 { margin: 4px 0 8px; font-size: 13px; }
