/* Rat Radar: the RatLabs Studio look as a fixed app shell. The page never scrolls.
   Pure black, off-white type, hairlines, scanlines, a dot-grid workspace.
   Color only where it carries meaning. */
:root {
  --line: rgba(255, 255, 255, .14);
  --line-hi: rgba(255, 255, 255, .42);
  --text: #f4f4f0;
  --muted: #b8b8b2;
  --dim: #6d6d69;
  --glow: rgba(255, 255, 255, .13);
  --panel: #070707;
  --live: #39d353;
  --amber: #f2c12e;
  --danger: #ff6666;
  --px: 'Press Start 2P', monospace;
  --mn: 'JetBrains Mono', 'Courier New', monospace;
  --top: 62px;
  --side: 380px;
}
* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: #000; }
body {
  display: flex; flex-direction: column; color: var(--text);
  font-family: var(--mn); font-size: 13px; line-height: 1.45;
}
body:before {
  content: ""; position: fixed; inset: 0; z-index: 98; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, .018) 49%, transparent 51%);
}
body:after {
  content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none; mix-blend-mode: screen;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, .025) 3px 4px);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
button:disabled { opacity: .35; cursor: not-allowed; }

/* ---- top bar ---- */
.top {
  flex: none; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .96); position: relative; z-index: 5;
}
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 48px; height: 36px; object-fit: contain; filter: grayscale(1) contrast(1.25) drop-shadow(0 0 9px rgba(255, 255, 255, .28)); }
.brand { margin: 0; font: 10px var(--px); letter-spacing: .09em; text-shadow: 0 0 10px var(--glow); }
.brand small { display: block; margin-top: 5px; color: var(--dim); font: 9px var(--mn); letter-spacing: .18em; text-shadow: none; }
.tabs { margin-left: auto; display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tab { height: 36px; padding: 0 20px; border: 0; background: #050505; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: #f2f2ee; color: #050505; font-weight: 700; }
.back { font: 9px var(--px); letter-spacing: .08em; color: var(--dim); text-decoration: none; }
.back:hover { color: #fff; }

/* ---- the shell: main fills what is left, each view fills main ---- */
main { flex: 1; min-height: 0; position: relative; z-index: 1; padding: 12px 14px 12px; }
.view { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 12px; }
.col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.bar { flex: none; display: flex; align-items: center; gap: 8px; min-height: 30px; }
.fill { flex: 1; min-height: 0; }
.fine { flex: none; margin: 0; color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- the workspace: near-black with the studio dot grid ---- */
.stage {
  position: relative; border: 1px solid var(--line); background: #050505; overflow: hidden;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .09) .6px, transparent .9px);
  background-size: 5px 5px;
}
.stage.fill canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage:not(.fill) canvas { display: block; width: 100%; }

.zoom-ctl { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 3; }
.hint {
  position: absolute; left: 12px; bottom: 10px; z-index: 3; pointer-events: none;
  font-size: 10px; letter-spacing: .08em; color: var(--dim); transition: opacity .6s;
}
.hint.gone { opacity: 0; }

/* ---- the overview card ---- */
.popup {
  position: absolute; z-index: 6; width: 290px; padding: 12px 14px 12px;
  /* square corners, like every other panel */
  background: rgba(5, 5, 5, .97);
  border: 1px solid var(--line-hi); box-shadow: 0 0 30px var(--glow), 0 10px 30px rgba(0, 0, 0, .6);
}
.popup.wide { left: 12px; right: 12px; top: 12px; width: auto; }
.popup .x { position: absolute; top: 6px; right: 14px; border: 0; background: transparent; color: var(--dim); font-size: 16px; line-height: 1; padding: 2px 4px; }
.popup .x:hover { color: #fff; }
.pu-head { display: flex; align-items: center; gap: 8px; margin-right: 22px; }
.pu-name { font: 11px var(--px); color: #fff; text-shadow: 0 0 10px var(--glow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pu-sub { color: var(--dim); font-size: 11px; margin: 4px 0 8px; }
.pu-rows { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: 12px; }
.pu-rows dt { color: var(--dim); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; padding-top: 1px; }
.pu-rows dd { margin: 0; overflow-wrap: anywhere; }
.pu-mix { display: flex; gap: 12px; margin: 0 0 10px; font: 9px var(--px); letter-spacing: .06em; }
.pu-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; max-height: 84px; overflow: hidden; }
.pu-actions { display: flex; gap: 6px; }

/* ---- bars, chips, buttons ---- */
.summary { display: flex; gap: 6px 16px; font: 9px var(--px); letter-spacing: .08em; margin-right: auto; white-space: nowrap; }
.summary b { font-weight: 400; }
.search {
  width: 190px; height: 28px; background: #000; border: 1px solid var(--line); padding: 0 8px; font-size: 12px; outline: none;
}
.search:focus { border-color: #fff; }
.search::placeholder { color: var(--dim); }
.btn {
  min-height: 34px; padding: 0 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px;
}
.btn:hover:not(:disabled) { border-color: #f4f4f0; color: #fff; background: rgba(255, 255, 255, .08); }
.btn.primary { background: #f4f4f0; border-color: #f4f4f0; color: #050505; font-weight: 700; }
.btn.primary:hover:not(:disabled) { background: #fff; color: #000; box-shadow: 0 0 24px rgba(255, 255, 255, .25); }
.chip {
  height: 28px; padding: 0 10px; border: 1px solid var(--line); background: #080808; color: var(--dim);
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em; display: inline-flex; align-items: center; white-space: nowrap;
}
.chip.sq { width: 28px; padding: 0; justify-content: center; font-size: 15px; }
.chip:hover { color: #fff; border-color: var(--line-hi); }
.chip .d { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip[aria-pressed="true"] { color: #fff; border-color: currentColor; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px currentColor; }
.chips { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lbl { font: 9px var(--px); color: var(--dim); letter-spacing: .1em; }

/* ---- side panels ---- */
.panel { min-height: 0; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; overflow: hidden; }
.sec { margin: 0; flex: none; height: 40px; display: flex; align-items: center; padding: 0 13px; border-bottom: 1px solid var(--line); font: 9px var(--px); letter-spacing: .08em; color: var(--muted); font-weight: 400; background: rgba(7, 11, 8, .96); }
#f-content { flex: 1; min-height: 0; padding: 12px 14px; overflow: auto; display: flex; flex-direction: column; gap: 0; }
.f-empty { color: var(--dim); font-size: 12px; margin: 14px; }
.f-head { display: flex; align-items: center; gap: 10px; }
.f-badge { font: 9px var(--px); letter-spacing: .1em; padding: 5px 7px; border: 1px solid currentColor; flex: none; }
.f-name { font: 12px var(--px); color: #fff; text-shadow: 0 0 10px var(--glow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-host { color: var(--dim); margin: 5px 0 0; }
.f-score { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; font: 9px var(--px); }
.meter { display: flex; gap: 3px; }
.meter i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.f-line { margin: 6px 0 2px; color: var(--muted); font-size: 12px; }
.f-body { margin: 2px 0 10px; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.maze { flex: none; width: 46%; min-width: 170px; max-width: 210px; align-self: center; border: 1px solid var(--line); }
.maze-status { margin: 6px 0 8px; min-height: 2.6em; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.maze-status.good, .maze-status.cyan { color: var(--live); }
.maze-status.bad { color: var(--danger); }

/* x-ray bits */
.scan { flex: none; display: flex; gap: 8px; }
.scan input {
  flex: 1; min-width: 0; height: 38px; background: #000; border: 1px solid var(--line-hi); padding: 0 12px; font-size: 13px; outline: none;
}
.scan input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.scan input::placeholder { color: var(--dim); }
.scan .btn { min-height: 38px; padding: 0 24px; }
.note { margin: 0 0 0 auto; font-size: 11px; color: var(--amber); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.note.err { color: var(--danger); }
.verdict-row { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; }
.verdict { display: flex; align-items: baseline; gap: 10px; }
.v-lbl { font: 9px var(--px); color: var(--dim); letter-spacing: .1em; }
.v-big { font: 20px var(--px); color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .5); }
.v-word { font: 9px var(--px); letter-spacing: .1em; color: var(--muted); }
.filters { display: flex; gap: 6px; }
#paste-text { width: 100%; height: 150px; display: block; margin-bottom: 8px; background: #000; border: 1px solid var(--line-hi); padding: 8px 10px; font-size: 12px; resize: none; outline: none; }
.side-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stab { height: 40px; border: 0; background: #050505; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stab:hover { color: #fff; }
.stab[aria-selected="true"] { background: #f2f2ee; color: #050505; font-weight: 700; }
.pane { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; }
dt { color: var(--dim); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; padding-top: 2px; }
dd { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
ul#tips { margin: 0 0 12px; padding: 0; list-style: none; }
#tips li { margin: 0 0 14px; }
#tips b { color: #fff; display: block; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
#tips span { color: var(--muted); font-size: 12px; }
.link { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-hi); }
.link:hover { text-decoration-color: #fff; }

.tip {
  position: fixed; z-index: 110; pointer-events: none; max-width: 280px; padding: 7px 10px;
  background: #050505; border: 1px solid var(--line-hi); color: var(--text); font-size: 12px; box-shadow: 0 0 30px var(--glow);
}
.tip b { font: 9px var(--px); letter-spacing: .08em; display: block; margin-bottom: 4px; }

/* ---- narrow screens: one column, the forecast becomes a sheet ---- */
@media (max-width: 900px) {
  .view { grid-template-columns: 1fr; }
  .brand small, .back { display: none; }
  .side { position: fixed; z-index: 20; left: 8px; right: 8px; bottom: 8px; max-height: 72vh; box-shadow: 0 0 40px #000; }
  #forecast:not(.open), #xray-side:not(.open) { display: none; }
  .search { width: 120px; }
  .summary { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* actor links */
.f-actors { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.f-actor-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.actor-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none; font-size: 12px;
}
.actor-link:hover { border-color: #f4f4f0; background: rgba(255, 255, 255, .08); }
.actor-link span { color: var(--dim); font: 9px var(--px); letter-spacing: .06em; white-space: nowrap; }
.actor-link:hover span { color: #fff; }
.tip-actors { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

/* ---- digestible layout: one line of purpose, a smaller map, then the ranked list ---- */
.lede { flex: none; margin: 0; color: var(--muted); font-size: 12px; max-width: 110ch; }
.mapbox { flex: 0 0 38%; min-height: 150px; }
.mapbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xsum { flex: none; margin: 0; font-size: 12px; color: var(--muted); }
.table { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.table .filters { flex: none; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.thead, .trow { display: grid; grid-template-columns: minmax(90px, 1.1fr) 108px 120px minmax(0, 2.4fr); gap: 10px; align-items: center; padding: 0 12px; }
.thead { flex: none; height: 28px; border-bottom: 1px solid var(--line); font: 8px var(--px); letter-spacing: .08em; color: var(--dim); }
.tbody { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.tbody::-webkit-scrollbar { display: block; width: 6px; }
.tbody::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }
.trow { width: 100%; min-height: 36px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: transparent; text-align: left; color: var(--text); font-size: 13px; }
.trow:hover { background: rgba(255, 255, 255, .05); }
.trow.sel { background: rgba(255, 255, 255, .1); box-shadow: inset 2px 0 0 #fff; }
.trow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .vd { font: 9px var(--px); letter-spacing: .06em; display: flex; align-items: center; gap: 7px; }
.trow .vd i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; }
.trow .sc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.trow .sc .m { display: flex; gap: 2px; }
.trow .sc .m b { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.trow .ad { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .ad em { font-style: normal; color: #f4f4f0; margin-left: 6px; font: 8px var(--px); letter-spacing: .05em; border: 1px solid var(--line-hi); padding: 2px 4px; }
@media (max-width: 900px) { .thead, .trow { grid-template-columns: minmax(80px, 1fr) 96px 0 minmax(0, 2fr); } .thead span:nth-child(3), .trow .sc { display: none; } .mapbox { flex-basis: 34%; } }

/* ---- map controls, tabs in the forecast pane, details and agent panes ---- */
.region-ctl { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 140px); }
.region-ctl .chip { height: 24px; padding: 0 8px; font-size: 9px; background: rgba(5, 5, 5, .85); }
.zoom-ctl { align-items: center; }
.zlevel { font-size: 10px; color: var(--dim); letter-spacing: .06em; margin-right: 4px; min-width: 34px; text-align: right; }
.search.sel { width: 170px; appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--muted); }
.side-tabs.three { grid-template-columns: 1fr 1fr 1fr; }
#forecast .pane { flex: 1; min-height: 0; overflow: auto; padding: 12px 14px; }
.why { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; }
.why li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--muted); }
.why li b { color: var(--text); font-weight: 400; white-space: nowrap; }
#f-why-h { margin-top: 14px; }
.agent-json { margin: 8px 0 0; padding: 10px; background: #000; border: 1px solid var(--line); font-size: 10.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-all; color: var(--muted); max-height: calc(100% - 120px); overflow: auto; }
#f-details-list dd { -webkit-line-clamp: 4; }
@media (max-width: 900px) { .region-ctl .chip:nth-child(n+5) { display: none; } .search.sel { width: 110px; } }
.trow .nm small { margin-left: 8px; font-size: 8px; letter-spacing: .06em; color: var(--dim); }

.tbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.tbar .filters { border-bottom: 0 !important; flex: 1; }
.exports { display: flex; gap: 6px; padding: 0 10px; }
.exports .chip { text-decoration: none; }

/* expand: the map takes the page, the list steps aside */
.col.bigmap .mapbox { flex: 1 1 auto; }
.col.bigmap .table, .col.bigmap .fine, .col.bigmap .lede { display: none; }
.zoom-ctl { gap: 6px; }

/* the brand lockup is a link home; the square rat icon stays crisp */
a.brand-wrap { text-decoration: none; color: inherit; }
a.brand-wrap:hover .brand { color: #fff; }
.brand-mark { width: 44px; height: 44px; image-rendering: pixelated; object-fit: contain; filter: drop-shadow(0 0 9px rgba(255, 255, 255, .28)); }

/* ---- x-ray, plan first: the picture is a thumbnail, the plan is the answer ---- */
.plan { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.plan-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 13px; height: 40px; border-bottom: 1px solid var(--line); background: rgba(7, 11, 8, .96); }
.ptype { font: 9px var(--px); letter-spacing: .08em; color: #050505; background: #f4f4f0; padding: 5px 7px; }
.pline { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.plan-body { flex: 1; min-height: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.plan-body .f-empty { margin: 4px; }
.pnote { margin: 0; padding: 8px 10px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pnote.warn { border-color: rgba(242, 193, 46, .5); color: var(--amber); }
.src { border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.src.best { border-color: var(--line-hi); box-shadow: inset 3px 0 0 #fff; }
.src.sel { background: rgba(255, 255, 255, .05); }
.src-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.src-rank { font: 9px var(--px); color: var(--dim); }
.src.best .src-rank { color: #050505; background: #f4f4f0; padding: 4px 6px; }
.src-name { font-size: 13px; color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.rel { font: 8px var(--px); letter-spacing: .06em; padding: 3px 5px; border: 1px solid currentColor; }
.rel.high { color: var(--live); } .rel.medium { color: var(--amber); } .rel.low { color: var(--danger); }
.src-b { padding: 0 10px 10px; }
.src-how { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.ftable, .proof { width: 100%; border-collapse: collapse; font-size: 11px; }
.ftable th, .proof th { text-align: left; font: 8px var(--px); letter-spacing: .06em; color: var(--dim); padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ftable td, .proof td { padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftable td:first-child { color: #fff; }
.ftable td.sl { color: var(--dim); }
.proof-wrap { margin-top: 8px; overflow-x: auto; }
.proof-h { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font: 8px var(--px); letter-spacing: .08em; color: var(--live); }
.proof-h.none { color: var(--dim); }
.anatomy {
  flex: none; height: 240px; margin: 10px 12px 0;
  background-color: #000;
  background-image: linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 40px rgba(255, 255, 255, .03);
}
.anatomy canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.filters.tight { padding: 8px 12px 10px; gap: 5px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.filters.tight .chip { height: 22px; padding: 0 7px; font-size: 9px; }
.side-tabs.four { grid-template-columns: repeat(4, 1fr); }
#xray-side .sec { justify-content: space-between; }
#xray-side .sec .chip { height: 22px; font-size: 9px; }
.btn.sm { min-height: 26px; padding: 0 12px; font-size: 10px; margin-left: auto; }
#xray-side .pane { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
#xray-side .agent-json { max-height: none; margin-top: 8px; }
.verdict-row { align-items: baseline; }
.xsum { flex: 1; min-width: 0; margin: 0; font-size: 12px; color: var(--muted); }

.only-narrow { display: none; }
@media (max-width: 900px) { .only-narrow { display: inline-flex; } #xray-side.open .anatomy { height: 150px; } }
@media (max-width: 900px) { .bar { flex-wrap: wrap; } .note { margin-left: 0; width: 100%; white-space: normal; } }

/* ---- globe mode: a taller stage, and a spin switch only the globe needs ---- */
.col[data-map="globe"] .mapbox { flex: 0 1 64%; }
.col[data-map="globe"]:not(.bigmap) .table { min-height: 186px; }   /* the bigger globe still leaves about three rows of the list */
.col[data-map="globe"].bigmap .mapbox { flex: 1 1 auto; }
.col[data-map="flat"] #spin-toggle { display: none; }
.mapbox { background-color: #020202; }

.badge-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.badge-row img { display: block; height: 20px; }

.update { position: fixed; z-index: 120; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #050505; border: 1px solid #f4f4f0; box-shadow: 0 0 30px rgba(255, 255, 255, .25); font: 9px var(--px); letter-spacing: .08em; }

/* the real RatLabs dot-matrix wordmark, then the product name */
a.brand-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.wordmark { display: block; height: 30px; width: auto; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .22)); }
.brand-sub { margin: 0; padding-left: 14px; border-left: 1px solid var(--line-hi); font: 11px var(--px); letter-spacing: .26em; color: var(--muted); line-height: 30px; }
a.brand-wrap:hover .brand-sub { color: #fff; }
@media (max-width: 520px) { .wordmark { height: 24px; } .brand-sub { font-size: 9px; padding-left: 10px; letter-spacing: .18em; } }

@media (max-width: 520px) { .brand-sub { display: none; } .tab { padding: 0 12px; white-space: nowrap; } .top { gap: 8px; padding: 0 10px; } }

/* ---- the one-sentence purpose, the welcome card, the help button ---- */
.lede { font-size: 13px; color: var(--text); max-width: 120ch; }
.lede b { font-weight: 400; letter-spacing: .01em; }
.chip.help { margin-left: auto; margin-right: 6px; height: 30px; color: var(--muted); }
.chip.help + .tabs { margin-left: 0; }
.welcome { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, .8); backdrop-filter: blur(3px); }
.welcome[hidden] { display: none !important; }
.w-card { position: relative; display: flex; gap: 28px; align-items: center; max-width: 900px; width: 100%; padding: 28px 30px; background: #050505; border: 1px solid var(--line-hi); box-shadow: 0 0 60px rgba(255, 255, 255, .12); max-height: calc(100vh - 36px); overflow: auto; }
.w-card .x { position: absolute; top: 10px; right: 18px; border: 0; background: transparent; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
.w-card .x:hover { color: #fff; }
.w-rat { flex: none; width: 200px; height: auto; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .18)); }
.w-body { min-width: 0; }
.w-title { margin: 0 0 12px; font: 11px var(--px); letter-spacing: .12em; color: var(--muted); font-weight: 400; }
.w-purpose { margin: 0 0 16px; font-size: 19px; line-height: 1.4; color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .18); }
.w-steps { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.w-steps li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: baseline; }
.w-steps b { font: 9px var(--px); letter-spacing: .06em; color: #fff; font-weight: 400; }
.w-steps span { color: var(--muted); font-size: 12px; }
.w-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; font: 9px var(--px); letter-spacing: .06em; }
.w-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.w-legend small { font: 11px var(--mn); color: var(--dim); letter-spacing: 0; margin-left: 4px; }
.w-card .btn { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .w-rat { display: none; } .w-steps li { grid-template-columns: 1fr; gap: 2px; } .w-purpose { font-size: 16px; } .chip.help { font-size: 0; padding: 0 9px; } .chip.help:before { content: "?"; font-size: 13px; } }

/* x-ray, before the first scan */
.xempty { display: flex; gap: 26px; align-items: center; margin: 6px 8px; }
.xrat { flex: none; width: 190px; height: auto; opacity: .92; filter: drop-shadow(0 0 12px rgba(255, 255, 255, .15)); }
.xe-text h3 { margin: 0 0 10px; font: 11px var(--px); letter-spacing: .1em; color: #fff; font-weight: 400; }
.xe-text p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.xe-text ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 12px; }
.xe-text li { margin: 4px 0; }
.xe-hint { color: var(--dim) !important; font-size: 12px !important; }
@media (max-width: 760px) { .xrat { display: none; } }
.lg-open { color: #f4f4f0; } .lg-guarded { color: #f2c12e; } .lg-hostile { color: #ff9a52; } .lg-blocked { color: #ff6666; }

.w-steps li { grid-template-columns: 210px 1fr; }
.w-steps b { line-height: 1.6; white-space: nowrap; }
.ptype:empty { display: none; }
@media (max-width: 760px) { .w-steps li { grid-template-columns: 1fr; } .w-steps b { white-space: normal; } }

/* ---- globe: a worst-right-now panel in the empty stage space ---- */
.hot { position: absolute; top: 44px; right: 12px; z-index: 3; width: 210px; display: none; flex-direction: column; background: rgba(5, 5, 5, .82); border: 1px solid var(--line); }
.col[data-map="globe"]:not(.bigmap) .hot { display: flex; }
.hot h3 { margin: 0; padding: 7px 9px; font: 8px var(--px); letter-spacing: .1em; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--line); }
.hot button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 9px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: transparent; color: var(--text); font-size: 12px; text-align: left; cursor: pointer; }
.hot button:hover { background: rgba(255, 255, 255, .08); }
.hot i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; }
.hot span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot b { font-weight: 400; color: var(--dim); font-size: 11px; }
@media (max-width: 900px) { .hot { display: none !important; } }

.hot.away { display: none !important; }
.avail-h { margin: 2px 0 6px; }
.avail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-bottom: 10px; }
.av { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 11px; min-width: 0; }
.av i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); flex: none; }
.av.ok i { background: #39d353; box-shadow: 0 0 6px #39d353; }
.av.no i { background: #ff6666; box-shadow: 0 0 6px #ff6666; }
.av span { color: var(--muted); flex: none; }
.av b { font-weight: 400; color: var(--text); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* the country card docks over the side panel instead of the map */
#forecast { position: relative; }
.popup.docked { background: #050505; left: 0; right: 0; top: 41px; bottom: 0; width: auto; overflow: auto; box-shadow: none; border: 0; border-top: 1px solid var(--line); z-index: 5; padding: 14px; }
.popup.docked .pu-list { max-height: none; }

/* ---- header v2: brand and big view buttons left, how-it-works dead center, agent prompt and RatLabs credit right ---- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; }
.top-l { display: flex; align-items: center; gap: 24px; min-width: 0; }
.top-c { justify-self: center; }
.top-r { justify-self: end; display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand-rat { width: 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .3)); }
.brand-name { margin: 0; font: 13px var(--px); letter-spacing: .12em; color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .35); font-weight: 400; white-space: nowrap; }
.tabs { margin: 0; gap: 8px; background: transparent; border: 0; }
.tab { height: 42px; padding: 0 24px 0 18px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .55); background: #0a0a0a; color: #f4f4f0; font: 11px var(--px); letter-spacing: .14em; box-shadow: 0 0 14px rgba(255, 255, 255, .08); transition: box-shadow .15s, background .15s; }
.tab:hover { background: #1a1a1a; box-shadow: 0 0 20px rgba(255, 255, 255, .28); color: #fff; }
.tab[aria-selected="true"] { background: #f4f4f0; color: #050505; border-color: #fff; box-shadow: 0 0 24px rgba(255, 255, 255, .5); font-weight: 400; }
.t-ico { width: 14px; height: 14px; flex: none; display: inline-block; background: currentColor; }
.t-radar { border-radius: 50%; -webkit-mask: radial-gradient(circle, #000 0 2px, transparent 2.5px 4px, #000 4.5px 5.5px, transparent 6px 7px); mask: radial-gradient(circle, #000 0 2px, transparent 2.5px 4px, #000 4.5px 5.5px, transparent 6px 7px); }
.t-xray { -webkit-mask: linear-gradient(#000 0 2px, transparent 2px 4px, #000 4px 6px, transparent 6px 8px, #000 8px 10px, transparent 10px 12px, #000 12px 14px); mask: linear-gradient(#000 0 2px, transparent 2px 4px, #000 4px 6px, transparent 6px 8px, #000 8px 10px, transparent 10px 12px, #000 12px 14px); }
.chip.help { margin: 0; height: 36px; padding: 0 18px; font-size: 11px; letter-spacing: .1em; color: #f4f4f0; border-color: rgba(255, 255, 255, .4); }
.chip.agent-btn { height: 34px; color: #f4f4f0; border-color: rgba(255, 255, 255, .4); white-space: nowrap; }
.chip.agent-btn:hover, .chip.help:hover { background: #f4f4f0; color: #050505; }
.presented { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-decoration: none; flex: none; }
.presented span { font: 7px var(--px); letter-spacing: .2em; color: var(--dim); }
.presented .wordmark { height: 20px; opacity: .92; transition: opacity .15s; }
.presented:hover .wordmark { opacity: 1; }
@media (max-width: 1180px) { .chip.agent-btn { font-size: 0; padding: 0 12px; } .chip.agent-btn:before { content: "AGENT"; font-size: 10px; } }
@media (max-width: 900px) { .top { grid-template-columns: auto 1fr auto; } .brand-name, .presented span { display: none; } .tab { padding: 0 14px; height: 38px; } .t-ico { display: none; } .presented .wordmark { height: 16px; } .chip.help { padding: 0 12px; } }
@media (max-width: 640px) { .top-r .agent-btn { display: none; } .chip.help { font-size: 0; padding: 0 10px; } .chip.help:before { content: "?"; font-size: 13px; } }

/* agent prompt card */
.ag-card { max-width: 820px; }
.ag-card .w-body { width: 100%; }
.ag-lede { font-size: 15px; margin-bottom: 12px; }
.ag-prompt { max-height: min(46vh, 360px); margin: 0 0 14px; font-size: 11.5px; line-height: 1.5; color: #d9d9d4; white-space: pre-wrap; word-break: normal; overflow: auto; }

/* globe: legend, tour */
.globe-legend { display: flex; gap: 14px; font: 8px var(--px); letter-spacing: .1em; padding: 6px 10px; border-top: 1px solid var(--line); }
.globe-legend .lg-lens, .globe-legend .lg-ring { display: none; }
.globe-legend span.lg-open { color: #f4f4f0; } .globe-legend span.lg-blocked { color: #ff6666; } .globe-legend .lg-ring { color: #fff; }
/* the lens panel: what the colors on the globe mean, and which lens is on */
.lensbox { position: absolute; left: 12px; bottom: 46px; z-index: 3; max-width: min(500px, calc(100% - 24px)); background: rgba(0, 0, 0, .66); border: 1px solid var(--line); }
.lens-tabs { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 10px; }
.lens-lbl { font: 7px var(--px); letter-spacing: .14em; color: var(--dim); margin-right: 8px; }
.lens-tabs button, .lens-row button { background: none; border: 1px solid transparent; color: var(--muted); font: 8px var(--px); letter-spacing: .08em; padding: 5px 7px; cursor: pointer; }
.lens-tabs button:hover, .lens-row button:hover { color: #fff; }
.lens-tabs button[aria-pressed="true"] { color: #fff; border-color: var(--line-hi); background: rgba(255, 255, 255, .07); text-shadow: 0 0 8px rgba(255, 255, 255, .5); }
/* chips wrap onto a second line rather than hide past the edge */
.lens-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px 10px; border-top: 1px solid var(--line); }
.lens-row button { flex: none; border-color: var(--line); font: 10.5px var(--mn); letter-spacing: 0; padding: 2px 7px; white-space: nowrap; }
.lens-row button b { font-weight: 400; color: var(--dim); margin-left: 6px; }
.lens-row button[aria-pressed="true"] { color: #fff; border-color: currentColor; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px currentColor; }
.lens-row button[aria-pressed="true"] b { color: inherit; }
.lens-row input[type="range"] { flex: 1 1 160px; min-width: 120px; accent-color: #f4f4f0; }
.lens-row .lr-date { font: 8px var(--px); letter-spacing: .08em; color: #fff; min-width: 96px; }
.lens-read { margin: 0; padding: 5px 10px 6px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.45; color: var(--muted); }
.lens-read b { color: #fff; font-weight: 400; }
.lens-read .lr-act { background: none; border: 0; padding: 0; margin-left: 6px; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lensbox[data-lens="ai"] .globe-legend button { display: none; }
.lensbox[data-lens="ai"] .globe-legend .lg-lens { display: inline; }
.lensbox[data-lens="time"] .globe-legend .lg-ring { display: inline; }
.globe-legend .lg-ring i { background: none; border: 1px dashed #fff; box-shadow: none; }
.globe-legend button { background: none; border: 0; padding: 2px 0; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; transition: opacity .2s; }
.globe-legend button.lg-open { color: #f4f4f0; } .globe-legend button.lg-guarded { color: #f2c12e; } .globe-legend button.lg-hostile { color: #ff9a52; } .globe-legend button.lg-blocked { color: #ff6666; }
.globe-legend.focus button[aria-pressed="false"] { opacity: .35; }
.globe-legend button:hover { opacity: 1 !important; text-shadow: 0 0 8px currentColor; }
.globe-legend button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.summary button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; cursor: pointer; transition: opacity .2s; }
.summary.focus button[aria-pressed="false"] { opacity: .35; }
.summary button:hover { opacity: 1 !important; }
.tip .tip-bar { display: block; height: 3px; margin: 6px 0 5px; background: rgba(255, 255, 255, .12); }
.tip .tip-bar span { display: block; height: 100%; }
.tip .tip-row { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tip .tip-row em { font-style: normal; color: var(--text); }
.globe-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: currentColor; box-shadow: 0 0 8px currentColor; }
@media (max-width: 700px) { .lensbox { display: none; } }
.col.bigmap .lensbox { bottom: 14px; }

/* the tour: a caption bar over everything, and a pulse on whatever it is showing */
.tourbar {
  position: fixed; left: 50%; bottom: 22px; z-index: 210; width: min(620px, calc(100vw - 32px)); transform: translateX(-50%);
  background: rgba(5, 5, 5, .96); border: 1px solid var(--line-hi); padding: 10px 14px 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 34px rgba(255, 255, 255, .16), 0 14px 44px rgba(0, 0, 0, .75);
}
/* on a wide screen the caption sits right of the lens panel, over the globe's lower right */
@media (min-width: 1100px) { .tourbar { left: auto; right: calc(var(--side) + 28px); transform: none; width: min(580px, calc(100vw - var(--side) - 560px)); } }
.tb-top { display: flex; align-items: center; gap: 10px; }
.tb-step { flex: 1; font: 8px var(--px); letter-spacing: .12em; color: var(--dim); }
.tb-stop { background: none; border: 1px solid var(--line); color: var(--muted); font: 8px var(--px); letter-spacing: .1em; padding: 5px 8px; cursor: pointer; }
.tb-stop:hover { color: #fff; border-color: var(--line-hi); }
.tb-cap { margin: 8px 0 10px; font: 10px/1.7 var(--px); letter-spacing: .04em; color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .4); min-height: 3.4em; }
.tb-sub { display: none; margin: -2px 0 12px; color: var(--muted); font-size: 12px; }
.tourbar.tb-end { border-color: #f4f4f0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 48px rgba(255, 255, 255, .3), 0 14px 44px rgba(0, 0, 0, .75); }
.tourbar.tb-end .tb-step { color: #39d353; text-shadow: 0 0 10px rgba(57, 211, 83, .6); }
.tourbar.tb-end .tb-cap { font-size: 22px; letter-spacing: .12em; text-align: center; min-height: 0; margin: 14px 0 10px; }
.tourbar.tb-end .tb-sub { display: block; text-align: center; }
.tb-top .tb-stop + .tb-stop { margin-left: 0; }
/* the tour's spotlight on one section of the anatomy diagram */
.xd-spot { position: absolute; pointer-events: none; border: 1.5px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .62), 0 0 26px rgba(255, 255, 255, .45), inset 0 0 18px rgba(255, 255, 255, .12); transition: left .6s ease, top .6s ease, width .6s ease, height .6s ease; }
.xdiag-stage { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .xd-spot { transition: none; } }
.tb-prog { height: 2px; margin: 0 -14px; background: rgba(255, 255, 255, .1); }
.tb-prog i { display: block; height: 100%; width: 0; background: #f4f4f0; box-shadow: 0 0 10px #f4f4f0; }
.tour-spot { outline: 1px solid #fff !important; outline-offset: 3px; animation: tourspot 1s ease-in-out infinite; }
@keyframes tourspot { 50% { outline-color: rgba(255, 255, 255, .25); box-shadow: 0 0 22px rgba(255, 255, 255, .35); } }
body.touring .hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tour-spot { animation: none; } }

/* a scanned page that is on the radar: a way back to it on the globe */
.on-radar { display: inline-flex; align-items: center; gap: 8px; }
.on-radar i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* image export dialog */
.ex-card { max-width: 1100px; align-items: stretch; gap: 22px; }
.ex-side { flex: none; width: 250px; display: flex; flex-direction: column; gap: 8px; }
.ex-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ex-opts .chip[aria-pressed="true"] { background: #f4f4f0; color: #050505; }
.ex-actions { margin-top: auto; flex-direction: column; align-items: stretch; }
.ex-actions .btn { justify-content: center; }
.ex-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; min-height: 3em; }
.ex-stage { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; background: #000; border: 1px solid var(--line); padding: 10px; }
.ex-preview { max-width: 100%; max-height: 62vh; width: auto; height: auto; display: block; }
@media (max-width: 800px) { .ex-card { flex-direction: column; } .ex-side { width: auto; } .ex-preview { max-height: 40vh; } }

/* the control bar must never run under the side panel: let it wrap on mid-size screens */
.bar { flex-wrap: wrap; row-gap: 6px; min-width: 0; }
.bar .summary { flex: 1 1 auto; min-width: 0; }
.bar .search { flex: 0 1 190px; min-width: 120px; }
@media (max-width: 1500px) { .bar .summary { display: none; } .bar .search { flex: 1 1 140px; } }

/* back arrow from a site to its country's list */
.f-back { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: #0a0a0a; color: #f4f4f0; font: 9px var(--px); letter-spacing: .08em; text-align: left; cursor: pointer; }
.f-back[hidden] { display: none; }
.f-back:hover { background: #f4f4f0; color: #050505; }
.f-back-arrow { font-size: 16px; line-height: 1; }
.w-fine { margin: 0 0 12px; font-size: 11px; color: var(--dim); } .w-fine a { color: var(--muted); }

/* playbook pane */
.pb-h { margin: 14px 0 6px; }
.pb-gold { margin: 0; padding: 0 0 0 16px; font-size: 12px; color: var(--text); } .pb-gold li { margin: 3px 0; }
.pb-flow { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.pb-flow b { color: #fff; font-weight: 400; } .pb-flow p { margin: 4px 0; color: var(--muted); } .pb-flow small { color: #8fb0c8; font-size: 11px; }
.pb-route { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); } .pb-route li { margin: 4px 0; }
.pb-s { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.pb-s b { color: #fff; font-weight: 400; } .pb-s span { color: var(--muted); } .pb-s code { color: #8fb0c8; font-size: 11px; word-break: break-all; }
.side-tabs.four .stab { padding: 0 4px; font-size: 8px; letter-spacing: .04em; }
.t-info { border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 0 4.5px, #000 5px 6.5px, transparent 7px); mask: radial-gradient(circle, transparent 0 4.5px, #000 5px 6.5px, transparent 7px); }

/* info view */
.view.info { display: block; overflow: hidden; }
.info-scroll { height: 100%; overflow-y: auto; padding: 4px 6px 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.info-purpose { margin: 6px 0 14px; font-size: 22px; line-height: 1.35; color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .2); max-width: 70ch; }
.info-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.is { border: 1px solid var(--line-hi); padding: 12px 14px; background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 6px; }
.is b { font: 20px var(--px); font-weight: 400; } .is span { font: 8px var(--px); letter-spacing: .1em; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.info-card { border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; font-size: 13px; line-height: 1.55; }
.info-card h2 { margin: 0 0 10px; font: 9px var(--px); letter-spacing: .12em; color: var(--muted); font-weight: 400; }
.info-card ul, .info-card ol { margin: 0; padding-left: 18px; } .info-card li { margin: 6px 0; }
.info-card a { color: #fff; } .info-card .mono { font-size: 12px; color: #8fb0c8; word-break: break-all; }
.info-card .row { margin-top: 10px; } .info-card .btn { text-decoration: none; display: inline-flex; align-items: center; }
.info-foot { margin: 18px 0 0; color: var(--dim); font-size: 12px; } .info-foot a { color: var(--muted); }
@media (max-width: 900px) { .info-stats { grid-template-columns: repeat(3, 1fr); } .info-purpose { font-size: 17px; } }
.is b.is-text { font-size: 13px; line-height: 26px; }
.pu-mix { display: flex; flex-wrap: wrap; gap: 4px 16px; } .pu-mix span { white-space: nowrap; font: 9px var(--px); letter-spacing: .06em; }

/* what changed this week */
.trow .ad em.chg { margin: 0 8px 0 0; color: #f4f4f0; border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 8px rgba(255, 255, 255, .25); }
.f-chg { margin: 6px 0 0; padding: 6px 8px; border: 1px solid var(--line-hi); font: 8px/1.7 var(--px); letter-spacing: .05em; color: #f4f4f0; text-shadow: 0 0 8px rgba(255, 255, 255, .35); }

/* layout fixes (2026-10-10 UI audit): header never overlaps, notes wrap instead of hiding text, phone keeps the list */
.top { grid-template-columns: auto 1fr auto; }
.top-c { justify-self: center; min-width: 0; }
.tab { white-space: nowrap; flex: none; }
@media (max-width: 1360px) { .top-l { gap: 16px; } .tab { padding: 0 14px 0 12px; gap: 8px; } }
#agent-note, #pb-note, #view-info .note { white-space: normal; overflow-wrap: anywhere; }
.fine { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 520px) {
  .top { gap: 6px; }
  .top-l { gap: 8px; }
  .tabs { gap: 4px; }
  .tab { padding: 0 9px; height: 34px; font-size: 10px; letter-spacing: .08em; }
  .presented { display: none; }
  .brand-rat { width: 28px; height: 28px; }
  .lede { font-size: 12px; }
  /* map controls: zoom stays on top, regions move to the bottom where the hint was */
  .region-ctl { top: auto; bottom: 8px; max-width: calc(100% - 20px); }
  .hint { display: none; }
  .col[data-map="globe"] .mapbox { flex-basis: 40%; }
  /* one scrollable row of filters so the list keeps its room */
  .tbar { flex-wrap: nowrap; }
  .tbar .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tbar .exports { display: none; }
  .tbody { min-height: 140px; }
}
/* narrow list: drop the hostility column from the grid itself (a hidden cell used to push WHAT TO DO into a zero-width column) */
@media (max-width: 900px) { .thead, .trow { grid-template-columns: minmax(80px, 1fr) 96px minmax(0, 2fr); } }
@media (max-width: 520px) { .thead, .trow { grid-template-columns: minmax(0, 1fr) 84px; } .thead span:nth-child(4), .trow .ad { display: none; } }

/* ---- PLAYBOOK: the strategy guide. Neon outlines and dot accents on near-black, logos for quick reading ---- */
#f-playbook { --pb-alerts: #f2c12e; --pb-leads: #39d353; --pb-dataset: #6fb6ff; }
.pb-hero { position: relative; margin: 0 0 10px; padding: 12px 12px 10px; border: 1px solid var(--line-hi); background: radial-gradient(120% 90% at 0 0, rgba(255, 255, 255, .07), transparent 60%), #050505; box-shadow: 0 0 18px rgba(255, 255, 255, .06) inset; }
.pb-hero:before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 7px 7px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.pb-lede { position: relative; margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.pb-hero .lbl { position: relative; }
.pb-stack { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 4px; }
.pb-lead { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border: 1px solid rgba(255, 255, 255, .7); color: #fff; text-decoration: none; box-shadow: 0 0 16px rgba(255, 255, 255, .22); }
.pb-lead b { font: 11px var(--px); letter-spacing: .08em; font-weight: 400; }
.pb-plus { font: 7px var(--px); letter-spacing: .14em; color: var(--dim); }
.pb-with { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 5px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; text-decoration: none; }
.pb-with:hover, .pb-lead:hover { border-color: #fff; color: #fff; }
.pb-why { position: relative; margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
img.lg { width: 18px; height: 18px; flex: none; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .25)); }
img.lg.big { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35)); }

.pb-gold { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.pb-gold li { position: relative; padding-left: 12px; margin: 0; font-size: 11.5px; line-height: 1.4; }
.pb-gold li:before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--live); box-shadow: 0 0 6px var(--live); }

.pb-flows { display: flex; flex-direction: column; gap: 10px; }
.pb-flow { --k: var(--pb-dataset); padding: 10px 10px 9px; border: 1px solid var(--line); border-left: 2px solid var(--k); background: #050505; box-shadow: -6px 0 14px -10px var(--k); font-size: 12px; }
.pb-flow.pb-alerts { --k: var(--pb-alerts); } .pb-flow.pb-leads { --k: var(--pb-leads); }
.pb-fh { display: flex; align-items: center; gap: 8px; }
.pb-fh b { flex: 1; min-width: 0; color: #fff; font-weight: 400; font-size: 12.5px; }
.pb-n { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--k); color: var(--k); font: 8px var(--px); text-shadow: 0 0 6px var(--k); }
.pb-cad { flex: none; padding: 2px 5px; border: 1px solid var(--k); color: var(--k); font: 7px var(--px); letter-spacing: .1em; }
.pb-flow > p { margin: 6px 0 8px; color: var(--muted); line-height: 1.5; }
.pb-pipe { display: flex; align-items: stretch; gap: 0; margin: 0 0 8px; }
.pb-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 5px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); text-align: center; }
.pb-node small { font: 6px var(--px); letter-spacing: .08em; color: var(--dim); }
.pb-node span { font-size: 9.5px; line-height: 1.2; color: var(--text); overflow-wrap: anywhere; }
.pb-node:hover { border-color: var(--k); box-shadow: 0 0 10px -2px var(--k); }
.pb-arrow { flex: none; width: 9px; align-self: center; height: 1px; background-image: radial-gradient(var(--k) 0.8px, transparent 1px); background-size: 3px 1px; opacity: .9; }
.pb-out { display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; color: #cfe3f2; line-height: 1.45; }
.pb-out b { flex: none; font: 7px var(--px); letter-spacing: .1em; color: var(--k); font-weight: 400; }

.pb-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 10px; }
.pb-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.pb-tab:hover { color: #fff; border-color: var(--line-hi); }
.pb-tab[aria-selected="true"] { color: #fff; border-color: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .22), inset 0 0 10px rgba(255, 255, 255, .06); }
.pb-tab em { position: absolute; top: -6px; right: -4px; padding: 1px 3px; background: #050505; border: 1px solid var(--live); color: var(--live); font: 6px var(--px); font-style: normal; letter-spacing: .06em; }
.pb-recipe { margin: 0; padding: 0; list-style: none; counter-reset: rs; }
.pb-recipe li { position: relative; counter-increment: rs; margin: 0 0 6px; padding: 0 0 0 26px; font-size: 11.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.pb-recipe li:before { content: counter(rs); position: absolute; left: 0; top: 1px; width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--line-hi); font: 7px var(--px); color: var(--muted); }
.pb-guard { margin: 0; padding: 8px 10px 8px 24px; border: 1px solid rgba(242, 193, 46, .35); background: rgba(242, 193, 46, .03); font-size: 11.5px; line-height: 1.5; color: #e9dcb0; }
.pb-guard li { margin: 3px 0; }
@media (max-width: 420px) { .pb-gold { grid-template-columns: 1fr; } }
.pb-s code { white-space: pre-line; }
/* playbook as a template: 1 pick a workflow, 2 how it runs, 3 build it in; the rest folds away */
.pb-step { display: flex; align-items: center; gap: 8px; margin: 14px 0 7px; font: 8px var(--px); letter-spacing: .12em; color: var(--muted); }
.pb-step span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #fff; color: #fff; font-size: 8px; box-shadow: 0 0 8px rgba(255, 255, 255, .3); }
.pb-picks { display: flex; flex-direction: column; gap: 3px; }
.pb-pick { --k: var(--pb-dataset); display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 5px 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.pb-pick.pb-alerts { --k: var(--pb-alerts); } .pb-pick.pb-leads { --k: var(--pb-leads); }
.pb-pick i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--k); box-shadow: 0 0 7px var(--k); }
.pb-pick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pick small { flex: none; font: 6px var(--px); letter-spacing: .08em; color: var(--k); }
.pb-pick:hover { color: #fff; border-color: var(--line-hi); }
.pb-pick[aria-selected="true"] { color: #fff; border-color: var(--k); box-shadow: 0 0 12px -3px var(--k), inset 2px 0 0 var(--k); }
.pb-this { flex: none; padding: 2px 4px; border: 1px solid #fff; color: #fff; font: 6px var(--px); font-style: normal; letter-spacing: .06em; box-shadow: 0 0 6px rgba(255, 255, 255, .35); }
#pb-flow > p { margin: 0 0 8px; }
.pb-fields { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 9px; }
.pb-fields code { padding: 1px 5px; border: 1px solid rgba(111, 182, 255, .35); color: #cfe3f2; font-size: 10px; }
.pb-more { margin: 10px 0 0; border-top: 1px solid var(--line); }
.pb-more summary { display: flex; align-items: center; gap: 8px; padding: 9px 0 6px; font: 8px var(--px); letter-spacing: .1em; color: var(--muted); cursor: pointer; list-style: none; }
.pb-more summary::-webkit-details-marker { display: none; }
.pb-more summary:before { content: "+"; width: 12px; color: var(--dim); font: 10px var(--mn); }
.pb-more[open] summary:before { content: "-"; }
.pb-more summary b { margin-left: auto; padding: 1px 5px; border: 1px solid var(--line); color: var(--dim); font: 7px var(--px); font-weight: 400; }
.pb-more summary:hover { color: #fff; }
.pb-more > :not(summary) { margin-bottom: 6px; }
/* playbook library: shown in the side panel while no site is selected */
div.f-empty > p { margin: 0 0 12px; line-height: 1.5; }
.lib { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.lib .lbl { margin: 0 0 2px; }
.lib-card { --k: var(--pb-dataset); display: block; width: 100%; padding: 9px 10px 8px; border: 1px solid var(--line); border-left: 2px solid var(--k); background: #050505; color: var(--text); text-align: left; cursor: pointer; }
.lib-card.pb-alerts, .lib-detail.pb-alerts { --k: var(--pb-alerts); } .lib-card.pb-leads, .lib-detail.pb-leads { --k: var(--pb-leads); }
.lib-card:hover { border-color: var(--line-hi); border-left-color: var(--k); box-shadow: -6px 0 14px -10px var(--k); }
.lib-h { display: flex; align-items: center; gap: 8px; }
.lib-h i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--k); box-shadow: 0 0 7px var(--k); }
.lib-h b { flex: 1; min-width: 0; font-weight: 400; font-size: 12.5px; color: #fff; }
.lib-h small { flex: none; font: 6px var(--px); letter-spacing: .08em; color: var(--k); }
.lib-card p { margin: 5px 0 6px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.lib-n { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10.5px; color: var(--dim); }
.lib-n .ok { color: var(--live); }
#f-empty #lib, #f-empty .lib { font-size: 12px; }
.lib-back { align-self: flex-start; padding: 4px 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 8px var(--px); letter-spacing: .08em; cursor: pointer; }
.lib-back:hover { color: #fff; border-color: var(--line-hi); }
.lib-detail > p { margin: 6px 0 8px; color: var(--muted); line-height: 1.5; font-size: 12px; }
.lib-site { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 4px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: transparent; color: var(--text); font-size: 12px; text-align: left; cursor: pointer; }
.lib-site:hover { background: rgba(255, 255, 255, .05); }
.lib-site i { flex: none; width: 6px; height: 6px; border-radius: 50%; }
.lib-site span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-site small { flex: none; font: 6px var(--px); letter-spacing: .08em; color: var(--dim); }
.pb-libbtn { width: 100%; margin: 14px 0 4px; padding: 9px; border: 1px dashed var(--line-hi); background: transparent; color: var(--muted); font: 8px var(--px); letter-spacing: .1em; cursor: pointer; }
.pb-libbtn:hover { color: #fff; border-color: #fff; border-style: solid; }
.side-tabs.five { grid-template-columns: repeat(5, 1fr); }
.side-tabs.five .stab { padding: 0 2px; font-size: 8px; letter-spacing: .03em; }
#f-library { --pb-alerts: #f2c12e; --pb-leads: #39d353; --pb-dataset: #6fb6ff; }
/* long URLs and endpoints wrap inside their box instead of escaping it */
#f-playbook, #f-library, #f-details, #f-agent { overflow-wrap: anywhere; word-break: break-word; }
.pb-tab em { right: 2px; }
/* ready-made n8n workflow box */
.pb-n8n { margin: 12px 0 4px; padding: 10px; border: 1px solid rgba(234, 75, 113, .45); background: rgba(234, 75, 113, .04); box-shadow: 0 0 14px -6px rgba(234, 75, 113, .6); }
.pb-n8n-h { display: flex; align-items: center; gap: 8px; }
.pb-n8n-h b { font: 8px var(--px); letter-spacing: .1em; font-weight: 400; color: #fff; }
.pb-n8n-name { display: block; margin: 8px 0 4px; color: #ffb3c4; font-size: 11px; }
.pb-n8n p { margin: 4px 0 8px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.pb-n8n .row { margin: 0; }
.pb-n8n-note { margin: 6px 0 0 !important; color: var(--live) !important; }
/* phones: one note that this is a desktop tool */
.desk-note { display: none; }
@media (max-width: 760px) {
  .desk-note:not([hidden]) { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #fff; background: rgba(5, 5, 5, .96); box-shadow: 0 0 18px rgba(255, 255, 255, .25); font-size: 11.5px; line-height: 1.4; color: var(--text); }
  .desk-note b { flex: none; font: 7px var(--px); letter-spacing: .1em; color: #fff; }
  .desk-note span { flex: 1; min-width: 0; color: var(--muted); }
  .desk-note em { font-style: normal; color: #fff; }
  .desk-note button { flex: none; padding: 6px 10px; border: 1px solid #fff; background: transparent; color: #fff; font: 8px var(--px); cursor: pointer; }
}

/* X-Ray: the anatomy diagram under the plan */
#xray-side .sec .row { gap: 6px; flex-wrap: nowrap; }
.xdiag { border: 1px solid var(--line); background: rgba(255, 255, 255, .015); scroll-margin-top: 8px; }
.xdiag.flash { animation: xdflash 1.2s ease-out; }
@keyframes xdflash { 0% { box-shadow: 0 0 0 1px #fff, 0 0 32px rgba(255, 255, 255, .35); } 100% { box-shadow: none; } }
.xdiag-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); background: rgba(7, 11, 8, .96); }
.xdiag-h > .lbl { color: var(--muted); }
.xdiag-h .btn.sm { margin-left: 0; }
.xdiag-bg { margin-left: auto; gap: 6px; }
.xdiag-bg .chip { height: 24px; padding: 0 8px; font-size: 9px; }
.xdiag-stage { position: relative; background: #000; }
.xdiag-stage canvas { display: block; width: 100%; height: auto; }

/* toast: bottom right, what just happened and the next step */
.xtoast {
  position: fixed; right: 18px; bottom: 18px; z-index: 200; width: min(380px, calc(100vw - 32px));
  background: rgba(5, 5, 5, .97); border: 1px solid var(--line-hi); padding: 12px 14px 13px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 28px rgba(255, 255, 255, .14), 0 12px 40px rgba(0, 0, 0, .7);
  font: 12px var(--mn); color: var(--text);
  opacity: 0; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease;
}
.xtoast.in { opacity: 1; transform: none; }
.xtoast.err { border-color: rgba(255, 102, 102, .7); box-shadow: 0 0 24px rgba(255, 102, 102, .18), 0 12px 40px rgba(0, 0, 0, .7); }
.xt-h { display: flex; align-items: center; gap: 9px; }
.xt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); flex: none; }
.xtoast.err .xt-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.xt-t { flex: 1; font: 9px var(--px); letter-spacing: .08em; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.xt-x { background: none; border: 0; color: var(--muted); font: 18px/1 var(--mn); cursor: pointer; padding: 0 2px; }
.xt-x:hover { color: #fff; }
.xt-file { margin-top: 9px; padding: 5px 8px; border: 1px solid var(--line); color: #fff; word-break: break-all; }
.xt-b { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.xt-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.xt-a .btn.sm { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { .xtoast { transition: none; transform: none; } }
.globe-legend em { font-style: normal; }

/* a picked area in the side panel: its companies with their logos */
.ar-head { display: flex; align-items: center; gap: 10px; }
.ar-name { flex: 1; margin: 0; font: 12px/1.4 var(--px); letter-spacing: .06em; color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .35); }
.ar-head .chip { height: 24px; padding: 0 8px; font-size: 9px; }
.ar-sub { margin: 8px 0 8px; color: var(--muted); font-size: 12px; }
.ar-mix { display: flex; height: 4px; gap: 2px; }
.ar-mix span { display: block; box-shadow: 0 0 6px currentColor; }
.ar-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 7px 0 10px; font: 8px var(--px); letter-spacing: .08em; }
.ar-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ar-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 4px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: none; color: var(--text); font: 12.5px var(--mn); text-align: left; cursor: pointer; }
.ar-row:hover, .ar-row:focus-visible { background: rgba(255, 255, 255, .07); }
.ar-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-n small { display: block; color: var(--dim); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.ar-v { font: 8px var(--px); letter-spacing: .06em; flex: none; }
.ar-s { flex: none; width: 26px; text-align: right; font-weight: 400; color: var(--dim); font-size: 11px; }
.lg-chip { flex: none; display: inline-block; border-radius: 50%; border: 1.5px solid; background-color: #f4f4f0; background-repeat: no-repeat; box-shadow: 0 0 8px rgba(255, 255, 255, .12); }
.lg-chip.none { background: #0b0b0b; position: relative; }
.lg-chip.none:after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
/* the hint sits right of the lens panel, so the two never overlap */
.col[data-map="globe"] .hint { left: auto; right: 14px; text-align: right; max-width: 46%; }

/* ---- decluttered map controls: one JUMP TO menu, a small toolbar, a folding LENS pill ---- */
.region-ctl .jump { height: 28px; padding: 0 26px 0 10px; font: 10px var(--mn); letter-spacing: .08em; color: var(--muted); background: rgba(5, 5, 5, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b8b8b2'/%3E%3C/svg%3E") no-repeat right 9px center; appearance: none; -webkit-appearance: none; cursor: pointer; }
.region-ctl .jump:hover { color: #fff; border-color: var(--line-hi); }
.region-ctl .jump option { background: #080808; color: #f4f4f0; }
.zoom-ctl { gap: 8px; }
.tool-grp { display: inline-flex; align-items: center; gap: 2px; }
.chip.ico svg { width: 14px; height: 14px; display: block; }
.chip.ico[aria-pressed="true"] { color: #fff; }
.chip.tour-btn { color: #f4f4f0; border-color: rgba(255, 255, 255, .45); font: 9px var(--px); letter-spacing: .1em; padding: 0 12px; }
.chip.tour-btn:hover { background: #f4f4f0; color: #050505; }
.lens-top { display: flex; align-items: center; gap: 12px; padding: 4px 6px; flex-wrap: wrap; }
.lens-pill { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; color: var(--dim); font: 8px var(--px); letter-spacing: .12em; padding: 5px 7px; cursor: pointer; }
.lens-pill b { color: #fff; font-weight: 400; text-shadow: 0 0 8px rgba(255, 255, 255, .45); }
.lens-pill:hover, .lensbox.open .lens-pill { border-color: var(--line-hi); }
.lens-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); transition: transform .2s; }
.lensbox.open .lens-caret { transform: rotate(180deg); }
.lens-body { border-top: 1px solid var(--line); }
.lens-tabs { padding: 4px 6px; flex-wrap: wrap; }
.lg-items { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 8px var(--px); letter-spacing: .08em; padding-right: 6px; }
.lg-items:empty { display: none; }
.lg-it i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-it.ring i { border: 1px dashed currentColor; }

/* ---- the site overview: verdict, one sentence, three facts, two actions; the rest folds under MORE DETAILS ---- */
.f-facts { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 14px; }
.f-facts .fact { min-width: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-left: 2px solid var(--muted); background: rgba(255, 255, 255, .02); }
.f-facts .fact.ok { border-left-color: var(--live); }
.f-facts .fact.warn { border-left-color: var(--amber); }
.f-facts .fact.no { border-left-color: var(--danger); }
.f-facts dt { font: 8px/1.6 var(--px); letter-spacing: .08em; color: var(--muted); }
.f-facts dd { margin: 0; font-size: 12.5px; line-height: 1.45; color: #f4f4f0; }
.f-cta { gap: 8px; }
.f-cta .btn { flex: 1; justify-content: center; }
.f-more { margin-top: 16px; border-top: 1px solid var(--line); }
.f-more summary { padding: 11px 0 8px; font: 8px var(--px); letter-spacing: .12em; color: var(--muted); cursor: pointer; list-style: none; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more summary:before { content: "+ "; color: var(--dim); }
.f-more[open] summary:before { content: "- "; }
.f-more summary:hover { color: #fff; }
.f-more .f-body { margin-top: 2px; }
.f-more dl { font-size: 12px; }
div.f-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* the verdict counts live beside the LENS pill on the globe (always visible), not in the top bar */
.bar .summary { display: none !important; }
.lg-items button.lg-it { background: none; border: 0; padding: 2px 0; font: inherit; letter-spacing: inherit; cursor: pointer; transition: opacity .2s; }
.lg-items button.lg-it b { font-weight: 400; }
.lg-items.focus button[aria-pressed="false"] { opacity: .35; }
.lg-items button.lg-it:hover { opacity: 1 !important; text-shadow: 0 0 8px currentColor; }
.lg-items button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }

/* CONNECT YOUR AGENT: a full-width card, one tab per AI app */
.info-card.connect-card { grid-column: 1 / -1; }
.connect-card.flash { animation: xdflash 1.2s ease-out; }
.cn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.cn-tabs .chip { height: 30px; font-size: 10px; color: var(--muted); }
.cn-where { font: 8px var(--px); letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.cn-steps { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.cn-steps li { margin: 2px 0; }
.cn-code { margin: 0 0 10px; white-space: pre-wrap; word-break: break-all; font-size: 12px; max-height: none; }
.cn-try { margin-top: 10px; }

/* find a site: a themed list of matches, in the same square bordered box as the cards */
.srch { position: relative; flex: 1 1 200px; min-width: 0; display: flex; }
.srch .search { flex: 1; width: 100%; }
.sug {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; z-index: 40; margin: 0; padding: 6px; list-style: none;
  background: rgba(5, 5, 5, .98);
  border: 1px solid var(--line-hi); box-shadow: 0 0 30px var(--glow), 0 14px 34px rgba(0, 0, 0, .7);
}
.sug-it { display: flex; align-items: center; gap: 10px; padding: 7px 8px; cursor: pointer; border: 1px solid transparent; }
.sug-it[aria-selected="true"] { background: rgba(255, 255, 255, .1); border-color: var(--line-hi); box-shadow: inset 2px 0 0 #f4f4f0; }
.sug-n { flex: 1; min-width: 0; font-size: 13px; color: #f4f4f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-n small { display: block; font-size: 10.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.sug-v { flex: none; font: 8px var(--px); letter-spacing: .06em; }
.sug-none { padding: 8px; color: var(--muted); font-size: 12px; }
input[type="search"]::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.connect-card { margin-bottom: 12px; }
.cn-tabs .chip.cn-tab { height: 38px; gap: 8px; padding: 0 12px; font-size: 11px; color: var(--muted); }
.cn-tabs .chip.cn-tab img { width: 18px; height: 18px; flex: none; }
.cn-tabs .chip.cn-tab[aria-pressed="true"] { color: #fff; border-color: var(--line-hi); background: rgba(255, 255, 255, .07); box-shadow: inset 0 -2px 0 #f4f4f0; }
.cn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cn-head img { flex: none; }
.cn-name { display: block; font: 11px var(--px); letter-spacing: .08em; color: #fff; margin-bottom: 4px; }
.cn-head .cn-where { margin: 0; }
.connect-card .row { justify-content: flex-start; }
/* tour controls: step back, hold, step on */
.tb-ctl { display: inline-flex; gap: 4px; }
.tb-stop:disabled { opacity: .3; cursor: default; }
.tb-stop:disabled:hover { color: var(--muted); border-color: var(--line); }
#tb-pause { min-width: 62px; }
#tb-pause[aria-pressed="true"] { color: #fff; border-color: var(--line-hi); background: rgba(255, 255, 255, .08); }
.tourbar.tb-end .tb-ctl { display: none; }

/* live usage in the header: visits and agent calls */
.live-stats { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); color: var(--muted); font: 8px var(--px); letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.live-stats:hover { color: #fff; border-color: var(--line-hi); }
.live-stats i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: lsblink 2s ease-in-out infinite; }
@keyframes lsblink { 50% { opacity: .35; } }
@media (max-width: 1250px) { .live-stats { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .live-stats i { animation: none; } }

/* AGENT TOOLS AND LIVE USAGE */
.info-card.tools-card { grid-column: 1 / -1; margin-bottom: 12px; }
.tools-card.flash, .live-stats { cursor: pointer; }
.tools-card.flash { animation: xdflash 1.2s ease-out; }
.us-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 10px 0 6px; }
.us { flex: 1 1 180px; border: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.us b { font: 400 22px var(--px); color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .35); }
.us span { font: 8px var(--px); letter-spacing: .1em; color: var(--muted); }
.us small { color: var(--dim); font-size: 11px; }
.us-since { flex-basis: 100%; margin: 0; }
.tl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 8px; margin-top: 10px; }
.tl { border: 1px solid var(--line); padding: 10px 12px; }
.tl-h { display: flex; align-items: center; gap: 10px; }
.tl-n { color: #39d353; font-size: 12.5px; white-space: nowrap; }
.tl-bar { flex: 1; height: 3px; background: rgba(255, 255, 255, .08); min-width: 30px; }
.tl-bar i { display: block; height: 100%; background: #39d353; box-shadow: 0 0 6px #39d353; }
.tl-c { font-weight: 400; color: var(--muted); font-size: 11px; white-space: nowrap; }
.tl p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #d9d9d4; }
.tl p.tl-ask { color: var(--muted); font-style: italic; }
/* RESET: next to the LENS pill, only while something is filtered */
.lens-reset { background: none; border: 1px solid rgba(242, 193, 46, .55); color: var(--amber); font: 8px var(--px); letter-spacing: .1em; padding: 5px 8px; cursor: pointer; }
.lens-reset b { font-weight: 400; color: #fff; }
.lens-reset:hover { background: var(--amber); color: #050505; }
.lens-reset:hover b { color: #050505; }
.lens-reset.nudge { animation: rsnudge 0.8s ease-in-out 4; }
@keyframes rsnudge { 50% { box-shadow: 0 0 16px rgba(242, 193, 46, .7); border-color: var(--amber); } }
@media (prefers-reduced-motion: reduce) { .lens-reset.nudge { animation: none; } }
.lens-reset { display: inline-flex; align-items: center; gap: 6px; }
.lens-reset svg { width: 11px; height: 11px; flex: none; }
