:root {
  --seq1: #cfe0f7; --seq2: #9dbfee; --seq3: #5a91dc; --seq4: #1f5fbf; --seqink: #ffffff;
  --bg: #f6f7f9; --panel: #ffffff; --ink: #1b1f24; --muted: #667080; --line: #dfe3e8; --accent: #1f5fbf;
  --good: #1a7f4b; --warn: #a15c00; --bad: #b3261e; --chip: #eef1f5; --hover: #f0f4fa;
}
@media (prefers-color-scheme: dark) {
  :root { --seq1: #1f3350; --seq2: #2b4f82; --seq3: #3f77c4; --seq4: #7fb0ff; --seqink: #0b1220;
          --bg: #14171b; --panel: #1c2026; --ink: #e6e9ee; --muted: #95a0b0; --line: #2c333c; --accent: #7fb0ff;
          --good: #5fd08f; --warn: #f0b35a; --bad: #ff8a80; --chip: #272d36; --hover: #232a33; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, "Segoe UI", sans-serif; }
header { display: flex; align-items: center; gap: 24px; padding: 0 20px; background: var(--panel);
         border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 7px; }
h1 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
nav { display: flex; flex-wrap: wrap; }
nav button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 14px 12px;
             font: inherit; cursor: pointer; }
nav button.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
main { padding: 18px 20px 60px; max-width: 1500px; margin: 0 auto; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.bar .count { color: var(--muted); margin-left: auto; }
textarea { width: 100%; resize: vertical; }
input, select, button.btn, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
                            border-radius: 6px; padding: 6px 9px; }
input[type=search], input[type=text], input[type=url], input[type=password] { min-width: 220px; }
button.btn { cursor: pointer; }
button.btn:hover { background: var(--hover); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.small { padding: 2px 8px; font-size: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat b { display: block; font-size: 24px; font-weight: 650; }
.stat span { color: var(--muted); font-size: 12px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap;
     position: sticky; top: 0; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--hover); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.chip { display: inline-block; background: var(--chip); border-radius: 10px; padding: 1px 8px; margin: 1px 3px 1px 0;
        font-size: 12px; white-space: nowrap; }
.chip.good { color: var(--good); } .chip.warn { color: var(--warn); } .chip.bad { color: var(--bad); }
.grade { display: inline-block; width: 22px; text-align: center; border-radius: 4px; font-weight: 700; background: var(--chip); }
.grade.A, .grade.B { color: var(--good); } .grade.C, .grade.D { color: var(--warn); } .grade.E, .grade.F { color: var(--bad); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.card h4 { margin: 0 0 4px; font-size: 14px; }
.card .meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.card.click { cursor: pointer; } .card.click:hover { border-color: var(--accent); }
#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--panel);
          border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(0,0,0,.18); overflow-y: auto;
          padding: 18px 22px 60px; z-index: 10; }
#drawer .close { float: right; }
dl { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
      padding: 10px; max-height: 420px; overflow-y: auto; font: 12px/1.5 ui-monospace, Consolas, monospace; }
form.stack { display: grid; gap: 8px; max-width: 520px; }
form.stack label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg);
         padding: 8px 14px; border-radius: 6px; z-index: 20; }
.brief { margin-bottom: 16px; }
.brief .headline { font-size: 20px; font-weight: 650; margin: 4px 0 6px; }
.brief .item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.brief .item:last-child { border-bottom: 0; }
.brief .cols { gap: 28px; }
.hero { margin-bottom: 16px; }
.hero .headline { font-size: 22px; font-weight: 650; margin: 4px 0 6px; line-height: 1.25; }
.cols.wide { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); margin-top: 16px; }
@media (max-width: 1000px) { .cols.wide { grid-template-columns: 1fr; } }
.reqgrid { display: grid; grid-template-columns: minmax(180px, 2.4fr) minmax(150px, 1.2fr) 70px minmax(120px, 1.4fr); gap: 8px 14px; align-items: center; }
.reqname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pri { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-right: 6px; }
.meterseg { white-space: nowrap; }
.meterseg i { display: inline-block; width: 16px; height: 8px; margin-right: 2px; border-radius: 2px; background: var(--chip); }
.meterseg i.on { background: var(--seq4); }
.strip { display: inline-flex; gap: 2px; flex-wrap: wrap; }
i.cov { display: inline-block; width: 16px; height: 16px; border-radius: 3px; font: 700 10px/16px system-ui; text-align: center; font-style: normal;
        background: var(--chip); color: var(--muted); }
i.cov.covered { background: var(--good); color: var(--panel); } i.cov.partial, i.cov.thin { background: var(--warn); color: var(--panel); }
i.cov.collection-gap { background: var(--bad); color: var(--panel); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.tablewrap.flat { border: 0; border-radius: 0; }
table.heat { border-collapse: separate; border-spacing: 2px; }
table.heat th, table.heat td { border: 0; padding: 0; }
table.heat th { font-size: 10px; padding: 0 2px 4px; text-align: center; white-space: normal; max-width: 70px; position: static; }
table.heat td.story { padding-right: 10px; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.cell { min-width: 44px; height: 24px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; border-radius: 3px; background: var(--bg); color: var(--ink); }
.cell.s1 { background: var(--seq1); } .cell.s2 { background: var(--seq2); } .cell.s3 { background: var(--seq3); color: var(--seqink); }
.cell.s4 { background: var(--seq4); color: var(--seqink); }
.cell.silent { background: transparent; box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); }
i.cell { display: inline-block; min-width: 18px; width: 18px; height: 14px; font-style: normal; line-height: 14px; }
.bars { display: grid; grid-template-columns: max-content 1fr max-content max-content; gap: 6px 10px; align-items: center; }
.track { height: 10px; background: var(--bg); border-radius: 0 4px 4px 0; }
.track i { display: block; height: 100%; background: var(--seq4); border-radius: 0 4px 4px 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.item { padding: 6px 0; border-bottom: 1px solid var(--line); } .item:last-child { border-bottom: 0; }
ul { margin: 4px 0; padding-left: 20px; }
.meter { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 700px) { dl { grid-template-columns: 1fr; } header { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; } }

/* ---- application shell, sign-in, reports, filters, admin (added with accounts) ---- */
#userbox { margin-left: auto; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.navsep { align-self: center; margin: 0 4px 0 14px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
          border-left: 1px solid var(--line); padding-left: 14px; }
body.public header nav, body.public #userbox { display: none; }
h2.section { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.hint { font-size: 12px; color: var(--muted); }
code { font: 12px ui-monospace, Consolas, monospace; background: var(--chip); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 40px; max-width: 980px; margin: 5vh auto 0; align-items: start; }
@media (max-width: 800px) { .landing { grid-template-columns: 1fr; gap: 16px; margin-top: 0; } }
.intro h2 { font-size: 30px; margin: 10px 0 6px; letter-spacing: .04em; } .intro p { font-size: 16px; } .intro li { margin: 4px 0; }
.authcard form.stack { max-width: none; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.seg button { flex: 1; background: none; border: 0; padding: 8px; font: inherit; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.formerr { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
.or { text-align: center; color: var(--muted); font-size: 12px; }
.steps { display: flex; gap: 6px; margin-bottom: 8px; } .steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--chip); } .steps i.on { background: var(--accent); }
.qr { display: block; width: 180px; height: 180px; background: #fff; border-radius: 6px; padding: 6px; margin: 8px 0; }
.picklist { display: grid; gap: 6px; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
label.pick { cursor: pointer; } .pick input { margin-top: 3px; }
.ownreq { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
button.btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
button.btn.danger { border-color: var(--bad); color: var(--bad); }
button.btn:disabled { opacity: .45; cursor: not-allowed; }
.fb { white-space: nowrap; }
/* pulse */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.event { display: flex; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.event.click { cursor: pointer; } .event.click:hover { border-color: var(--accent); }
.enum { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); color: var(--muted); font-weight: 700; font-size: 12px;
        display: grid; place-items: center; }
.rising { display: flex; flex-wrap: wrap; gap: 10px; }
.risecard, .reqcard { font: inherit; color: inherit; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
                      padding: 10px 12px; cursor: pointer; display: grid; gap: 5px; }
.risecard { min-width: 200px; max-width: 280px; } .risecard:hover, .reqcard:hover { border-color: var(--accent); }
.reqcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; margin-top: 10px; }
.reqtop { display: flex; gap: 6px; align-items: baseline; } .reqline { min-height: 2.9em; }
.reqfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
svg.spark { width: 76px; height: 22px; } svg.spark rect { fill: var(--seq3); }
/* filter rail */
.withfilters { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .withfilters { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 62px; max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 4px; }
.filters input[type=search], .filters select { width: 100%; min-width: 0; }
.filters h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 5px; }
.opts { display: grid; gap: 2px; }
.opt { display: flex; justify-content: space-between; gap: 8px; font: inherit; font-size: 13px; color: var(--ink); background: none; border: 0;
       border-radius: 5px; padding: 3px 7px; cursor: pointer; text-align: left; }
.opt:hover { background: var(--hover); } .opt.on { background: var(--accent); color: #fff; }
.opt .n { color: var(--muted); font-variant-numeric: tabular-nums; } .opt.on .n { color: #fff; }
/* intel report */
.report { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.rhead { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.serial { font: 600 12px ui-monospace, Consolas, monospace; color: var(--ink); }
.rating { font: 700 12px ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--ink); }
.rtitle { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 6px 0 4px; }
.bluf { margin: 4px 0 6px; } ul.kp { margin: 4px 0 8px; } ul.kp li { margin: 2px 0; }
dl.rmeta { grid-template-columns: 120px 1fr; font-size: 13px; }
.rfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.rfoot .count { margin-left: auto; }
.linkchip { border: 0; font: inherit; font-size: 12px; cursor: pointer; color: var(--accent); }
.srcline { padding: 8px 0; border-bottom: 1px solid var(--line); }
.card.art h4 { margin: 4px 0; }
/* themes */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 8px; }
.theme { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; align-content: start; }
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thead { display: flex; justify-content: space-between; align-items: center; }
.tname { font: inherit; font-weight: 650; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.tname:hover { color: var(--accent); } .spread { color: var(--muted); }
.thread { border-left: 2px solid var(--line); padding: 4px 0 4px 8px; margin: 6px 0; font-size: 13px; }
details summary { cursor: pointer; color: var(--accent); font-size: 13px; margin: 4px 0; }
/* admin */
.switch { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; }
.switch i { width: 34px; height: 18px; border-radius: 9px; background: var(--chip); position: relative; transition: background .15s; border: 1px solid var(--line); }
.switch i::after { content: ""; position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.switch.on i { background: var(--good); border-color: var(--good); } .switch.on i::after { left: 17px; background: #fff; } .switch.on { color: var(--ink); }
.setline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.setline:last-of-type { border-bottom: 0; }
.hero.paused { border-color: var(--bad); } .warnstat b { color: var(--bad); }
.meter.big { height: 12px; } .meter.over i { background: var(--bad); }
svg.daychart { width: 100%; max-height: 190px; } svg.daychart .bar { fill: var(--seq3); } svg.daychart .bar.over { fill: var(--bad); }
svg.daychart .axis { stroke: var(--line); } svg.daychart .budget { stroke: var(--bad); stroke-dasharray: 4 3; } svg.daychart .tick { font-size: 9px; fill: var(--muted); }
.notice { border-color: var(--warn); margin-bottom: 14px; } .pendingcard { border-color: var(--warn); }
.approve { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: color-mix(in srgb, var(--warn) 12%, transparent); border-radius: 6px; padding: 8px 10px; margin: 8px 0; font-size: 13px; }
.plangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 24px; }
.gapline::before { content: "! "; color: var(--bad); font-weight: 700; }
header { flex-wrap: wrap; }

/* ---- brand theme (dark, always) and the Pulse page ---- */
:root {
  --bg: #060a17; --panel: #0d1430; --ink: #e9edfb; --muted: #8f9cc4; --line: #1d2850; --accent: #4f8cff; --accent2: #8b5cf6;
  --good: #34d399; --warn: #fbbf24; --bad: #f87171; --chip: #172045; --hover: #152043;
  --seq1: #16264f; --seq2: #1f3f8a; --seq3: #3468d6; --seq4: #6aa5ff; --seqink: #061022;
  color-scheme: dark;
}
html { background: var(--bg); }
body { background: radial-gradient(1100px 520px at 78% -8%, rgba(79,140,255,.16), transparent 62%), radial-gradient(800px 480px at 4% 0%, rgba(139,92,246,.11), transparent 60%), var(--bg);
       background-attachment: fixed; font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif; min-height: 100vh; }
::selection { background: rgba(79,140,255,.4); }
header { background: rgba(8,12,28,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 8px 22px; gap: 18px; flex-wrap: nowrap; min-height: 58px; }
.brand h1 { font-size: 18px; letter-spacing: .01em; text-transform: none; font-weight: 700; line-height: 1.1; }
.brand .tagline { display: block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(79,140,255,.35); }
nav { gap: 2px; align-items: center; flex-wrap: nowrap; }
nav button, .menu button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 9px; padding: 8px 12px; color: var(--muted);
       font: inherit; font-weight: 550; background: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
nav button:hover, .menu button:hover { background: var(--hover); color: var(--ink); }
nav button.on { color: #fff; background: linear-gradient(180deg, rgba(79,140,255,.28), rgba(79,140,255,.12)); box-shadow: inset 0 -2px 0 var(--accent); border-color: transparent; font-weight: 600; }
.caret { font-size: 10px; opacity: .7; }
.menuwrap { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: #0f1736; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
        box-shadow: 0 18px 50px rgba(0,0,0,.55); z-index: 30; display: grid; gap: 2px; }
.menu[hidden] { display: none; }
nav .menu { left: 0; right: auto; }
.menu button { width: 100%; justify-content: flex-start; }
.menuhead { display: grid; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#userbox { gap: 12px; }
.gsearch { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); min-width: 250px; }
.gsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,.18); }
.gsearch input { border: 0; background: none; padding: 8px 0; min-width: 0; width: 100%; outline: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
          font: 700 13px/1 inherit; cursor: pointer; }
@media (max-width: 1150px) { .gsearch { display: none; } nav button span:not(.caret) { display: none; } nav .menu button span { display: inline; } }
main { padding: 22px 26px 70px; max-width: 1640px; }
.panel, .card, .report, .tablewrap, .event, .theme, .pick, .risecard, .reqcard { background: linear-gradient(180deg, rgba(20,30,66,.82), rgba(12,19,46,.82)); border-color: var(--line); border-radius: 12px; }
.panel { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.22); }
th { background: #0f1736; }
input, select, textarea, button.btn { background: rgba(255,255,255,.04); border-color: var(--line); border-radius: 9px; color: var(--ink); }
select option { background: #0f1736; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,.18); }
button.btn { font-weight: 550; transition: transform .12s, background .15s, border-color .15s; }
button.btn:hover { background: var(--hover); border-color: #33427a; }
button.primary { background: linear-gradient(135deg, #4f8cff, #6d5cf6); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(79,140,255,.3); }
button.primary:hover { background: linear-gradient(135deg, #639aff, #7f6ff8); transform: translateY(-1px); }
button.btn.lg { padding: 10px 16px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
button.btn.wide { width: 100%; margin-top: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px; }
.ico { flex: none; vertical-align: -3px; }
.chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); }
.chip.good { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.25); } .chip.warn { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.25); }
.chip.bad { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.25); }
#drawer { background: #0b1230; } #toast { background: #e9edfb; color: #0b1230; font-weight: 600; }
.report { border-left: 3px solid var(--accent); } .hero .headline { font-size: 24px; }
a { color: #7fb0ff; }
/* landing */
.landing { margin-top: 7vh; } .intro { position: relative; } .introart { position: absolute; inset: -40px -20px auto -60px; opacity: .5; pointer-events: none; z-index: -1; }
.intro h2 { font-size: 40px; background: linear-gradient(90deg, #fff, #9fc2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.authcard { box-shadow: 0 30px 80px rgba(0,0,0,.5); padding: 22px; }
/* pulse hero */
.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #7fb0ff; font-weight: 600; }
.phero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: center; padding: 10px 4px 6px; }
@media (max-width: 1050px) { .phero { grid-template-columns: 1fr; } }
.ptitle { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; margin: 12px 0 14px; font-weight: 750; letter-spacing: -.02em; }
.ptitle span { display: block; background: linear-gradient(90deg, #5aa2ff, #9b7bff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plead { font-size: 18px; line-height: 1.45; margin: 0 0 8px; color: var(--ink); max-width: 46em; }
.psub { color: var(--muted); margin: 0; max-width: 52em; }
.pmap { position: relative; border-radius: 18px; padding: 10px 10px 8px; background: radial-gradient(closest-side at 55% 45%, rgba(79,140,255,.16), transparent 75%); }
svg.worldmap { width: 100%; height: auto; display: block; overflow: visible; }
.worldmap .land { fill: #3a56a8; opacity: .55; }
.worldmap .arc { fill: none; stroke: #8fb6ff; stroke-width: 1.2; stroke-dasharray: 4 6; opacity: .75; animation: dash 2.6s linear infinite; }
.worldmap .node { cursor: pointer; outline: none; }
.worldmap .dot { fill: rgba(79,140,255,.28); stroke: #7fb0ff; stroke-width: 1.2; transition: fill .2s; }
.worldmap .core { fill: #fff; }
.worldmap .ring { fill: none; stroke: #7fb0ff; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ping 2.8s ease-out infinite; }
.worldmap .node:hover .dot, .worldmap .node:focus .dot { fill: rgba(79,140,255,.6); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.phero, .cyclewrap, .g3 > *, .gpanel { animation: rise .5s ease both; } .g3 > :nth-child(2) { animation-delay: .07s; } .g3 > :nth-child(3) { animation-delay: .14s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.maplegend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--muted); padding: 2px 8px; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(79,140,255,.4); border: 1px solid #7fb0ff; }
.lg-arc { width: 18px; border-top: 1.5px dashed #8fb6ff; }
.mapchips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 700px) { .mapchips { grid-template-columns: repeat(2, 1fr); } }
.mapchip { font: inherit; color: inherit; text-align: left; display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
           background: rgba(13,20,48,.75); border: 1px solid rgba(127,176,255,.28); backdrop-filter: blur(6px); transition: border-color .15s, transform .12s; }
.mapchip:hover { border-color: #7fb0ff; transform: translateY(-1px); } .mapchip span { font-size: 11.5px; color: var(--muted); } .mapchip .sil { color: var(--warn); }
/* lifecycle + get started */
.cyclewrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin: 18px 0; }
@media (max-width: 1150px) { .cyclewrap { grid-template-columns: 1fr; } }
.cycle { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 16px; background: linear-gradient(180deg, rgba(20,30,66,.6), rgba(12,19,46,.5)); }
.csteps { display: flex; align-items: stretch; gap: 4px; margin-top: 12px; }
.cstep { flex: 1; text-align: center; min-width: 0; } .carrow { align-self: center; color: #3f5bb0; flex: none; }
.cicon { width: 48px; height: 48px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 14px; color: #8fb6ff;
         background: radial-gradient(circle at 30% 25%, rgba(127,176,255,.28), rgba(79,140,255,.06)); border: 1px solid rgba(127,176,255,.25); }
.cstep:nth-child(odd) .cicon { color: #b7a3ff; background: radial-gradient(circle at 30% 25%, rgba(155,123,255,.28), rgba(139,92,246,.06)); border-color: rgba(155,123,255,.25); }
.cname { font-weight: 650; } .cnum b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; } .cnum span { font-size: 11.5px; color: var(--muted); } .cwhat { font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .csteps { flex-wrap: wrap; } .carrow { display: none; } .cstep { flex: 1 1 30%; } }
.starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .starts { grid-template-columns: 1fr; } }
.start { font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 16px; padding: 16px; display: grid; gap: 10px; align-content: space-between;
         grid-template-columns: 1fr auto; border: 1px solid rgba(255,255,255,.1); transition: transform .15s, box-shadow .15s; min-height: 124px; }
.start > span:nth-child(2) { grid-column: 1; display: grid; gap: 2px; } .start > .ico:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; opacity: .8; }
.start b { font-size: 15.5px; } .start:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.start.v { background: linear-gradient(140deg, rgba(139,92,246,.42), rgba(60,40,140,.25)); } .start.b { background: linear-gradient(140deg, rgba(79,140,255,.38), rgba(30,60,150,.22)); }
.start.t { background: linear-gradient(140deg, rgba(45,212,191,.3), rgba(20,90,110,.2)); }
.sicon { color: #fff; opacity: .95; }
/* three panels */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .g3 { grid-template-columns: 1fr; } }
.gpanel { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: linear-gradient(180deg, rgba(20,30,66,.82), rgba(11,18,44,.86)); box-shadow: 0 12px 34px rgba(0,0,0,.25); }
.ghead { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.ghead h3 { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.gicon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #8fb6ff; background: rgba(79,140,255,.12); border: 1px solid rgba(127,176,255,.22); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 6px; }
.tier { border-radius: 10px; padding: 8px 6px; text-align: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.tier b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; } .tier span { font-size: 11px; color: var(--muted); }
.tier.global b { color: #f87171; } .tier.multi-region b { color: #fbbf24; } .tier.regional b { color: #7fb0ff; } .tier.local b { color: var(--muted); }
.erow, .frow, .prow { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; cursor: pointer;
                      padding: 10px 6px; border-radius: 8px; transition: background .15s; }
.erow:hover, .frow:hover, .prow:hover { background: rgba(255,255,255,.04); }
.erow { display: flex; gap: 12px; align-items: flex-start; }
.enum2 { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #8fb6ff; background: rgba(79,140,255,.14); }
.etext, .ftext { display: grid; gap: 2px; min-width: 0; }
.frow { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
svg.art { width: 104px; height: 64px; border-radius: 10px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.ftext b, .etext b { line-height: 1.3; }
.prow { display: grid; gap: 6px; } .ptop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.segs { display: flex; gap: 4px; } .segs .seg { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); }
.segs .seg.covered { background: linear-gradient(90deg, #4f8cff, #6aa5ff); } .segs .seg.partial { background: linear-gradient(90deg, #3468d6, #4f8cff); opacity: .75; }
.segs .seg.thin { background: #fbbf24; opacity: .7; } .segs .seg.collection-gap { background: #f87171; opacity: .8; }
.silgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.silcard { display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.risecard { background: rgba(255,255,255,.03); }

/* ---- daily intelligence brief ---- */
.brief2 { max-width: 1320px; margin: 0 auto; }
.bhead { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: linear-gradient(135deg, rgba(79,140,255,.16), rgba(139,92,246,.08) 60%, rgba(12,19,46,.6)); }
.btitle { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; margin: 10px 0 14px; font-weight: 720; letter-spacing: -.01em; }
.bmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 26px; border-top: 1px solid var(--line); padding-top: 12px; }
.bmeta div { display: grid; gap: 1px; } .bmeta b { font-weight: 550; }
.bluf-box { position: relative; margin: 16px 0 6px; padding: 18px 22px 16px 26px; border-radius: 14px; border: 1px solid rgba(127,176,255,.35);
            background: linear-gradient(180deg, rgba(31,63,138,.38), rgba(13,20,48,.7)); box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.bluf-box::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: linear-gradient(#5aa2ff, #9b7bff); }
.bluf-tag { font: 700 11px/1 inherit; letter-spacing: .28em; color: #9fc2ff; margin-bottom: 8px; }
.bluf-box p { font-size: 17px; line-height: 1.5; margin: 0 0 8px; } .bluf-box p.muted { font-size: 14px; } .bluf-box .count { display: block; text-align: right; }
.bsec { margin-top: 26px; } .bsec-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.bsec-h h3 { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.bnum { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; color: #9fc2ff; background: rgba(79,140,255,.14); border: 1px solid rgba(127,176,255,.25); }
.kjs { display: grid; gap: 10px; }
.kj { display: flex; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.kjn { font: 700 22px/1 inherit; color: #5aa2ff; min-width: 22px; } .kjt { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.judgemeter { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; } .judgemeter b { font-weight: 600; font-size: 13px; }
.assess { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .assess { grid-template-columns: 1fr; } }
.acard { border: 1px solid var(--line); border-top: 3px solid var(--accent2); border-radius: 14px; padding: 14px 18px; background: linear-gradient(180deg, rgba(40,30,90,.3), rgba(12,19,46,.8)); }
.acard h4 { margin: 0; font-size: 16px; } .aq { color: #b7a3ff; font-style: italic; margin: 4px 0 8px; } .ajudge { margin: 0 0 10px; font-size: 14.5px; }
dl.adl { grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13.5px; } dl.adl dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
dl.adl ul { margin: 0; padding-left: 18px; } .chip.lens { color: #c9b8ff; border-color: rgba(155,123,255,.35); background: rgba(139,92,246,.12); }
.devs { display: grid; gap: 8px; } .dev { display: flex; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.rps { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.rp { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.025); display: grid; gap: 8px; align-content: start; }
.rp h4 { margin: 0; font-size: 15.5px; } .rpvol { display: grid; gap: 3px; }
.rpl { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 13.5px; }
.rpl > span:first-child { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.cm-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.cmatrix { display: grid; align-items: center; min-width: 760px; }
.cm-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; padding: 0 2px 8px; line-height: 1.2; }
.cm-corner, .cm-foot { padding-bottom: 8px; } .cm-foot { padding-top: 10px; }
.cm-story { font: inherit; color: inherit; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 7px 10px 7px 4px; cursor: pointer; display: grid; min-height: 40px; align-content: center; }
.cm-story b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cm-story:hover b { color: #9fc2ff; }
.cm-story span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-cell { display: grid; place-items: center; border-top: 1px solid var(--line); height: 100%; min-height: 40px; }
.cm-cell:hover { background: rgba(255,255,255,.04); }
i.bub { display: inline-grid; place-items: center; border-radius: 50%; font: 700 10px/1 system-ui; font-style: normal; color: #061022;
        background: radial-gradient(circle at 35% 30%, #9fc2ff, #4f8cff); box-shadow: 0 0 12px rgba(79,140,255,.45); }
i.ring { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--bad); box-shadow: 0 0 8px rgba(248,113,113,.35); }
i.none { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.14); }
.cm-vol { display: grid; justify-items: center; align-content: end; gap: 3px; height: 62px; font-size: 10.5px; color: var(--muted); padding-top: 8px; }
.cm-vol i { width: 14px; border-radius: 3px 3px 0 0; background: linear-gradient(#6aa5ff, #3468d6); }
.sils, .aligns, .changes { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
@media (max-width: 500px) { .sils, .aligns, .changes { grid-template-columns: 1fr; } }
.sil, .align { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: rgba(255,255,255,.025); display: grid; gap: 7px; align-content: start; }
.sil { border-left: 3px solid var(--bad); } .sil.onesided { border-left-color: var(--warn); } .align.aligned { border-left: 3px solid var(--good); } .align.opposed { border-left: 3px solid var(--bad); } .align.diverging { border-left: 3px solid var(--warn); }
.silrow { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 13px; }
.chg { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.report.click { cursor: pointer; } .report.click:hover { border-color: var(--accent); }

/* ---- Printing and "Export PDF": a light, paper-friendly version of the page with the interface removed. */
@media print {
  :root { --bg: #ffffff; --panel: #ffffff; --ink: #111418; --muted: #4b5563; --line: #c9ced6; --accent: #1f4fa3; --accent2: #5b3fb5;
          --good: #116b3c; --warn: #8a4b00; --bad: #a11d17; --chip: #eef1f5; --hover: #ffffff;
          --seq1: #cfe0f7; --seq2: #9dbfee; --seq3: #5a91dc; --seq4: #1f5fbf; --seqink: #ffffff; color-scheme: light; }
  @page { size: A4; margin: 14mm 13mm 16mm; }
  html, body { background: #fff !important; color: var(--ink); font-size: 11.5px; min-height: 0; }
  header, #drawer, #toast, .noprint, button, select, .feedback, .gsearch { display: none !important; }
  main, #view { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  * { box-shadow: none !important; text-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .brief2 { max-width: none; }
  .bhead, .sil, .align, .panel, .gpanel, .report, .kj, .acard, .rcard { background: #fff !important; border-color: var(--line) !important; }
  .bhead { border-width: 0 0 2px 0; border-radius: 0; padding: 0 0 10px; }
  .bsec { margin-top: 16px; }
  .bsec-h, h2, h3, h4 { break-after: avoid; }
  .sil, .align, .chg, .kj, .acard, .rcard, li, tr { break-inside: avoid; }
  .sils, .aligns, .changes { grid-template-columns: 1fr 1fr; gap: 8px; }
  a { color: inherit; text-decoration: none; }
  .printfoot { display: block !important; margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
}
.printfoot { display: none; }

/* ---- Social-media material: always visibly distinct from collected reporting. */
.chip.social { background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.45); color: #c4b5fd; font-weight: 600; }
.socialline { border-left: 3px solid rgba(139,92,246,.6); padding-left: 10px; }
.socialbox { border: 1px dashed rgba(139,92,246,.45); border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: rgba(139,92,246,.05); }
.socialbox > summary { cursor: pointer; }
.basis { color: var(--muted); } .basis b { color: var(--ink); }
.exportbar { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
a.btn { text-decoration: none; display: inline-block; }

/* ---- Claim investigations and stated gaps */
.gapgroup { margin-bottom: 10px; }
.gapgroup > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; font-size: 14px; }
.gapgroup > summary .count { margin-left: auto; }
.gaprow { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.gaprow .count { white-space: nowrap; }
.investigation { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; background: rgba(79,140,255,.05); }
.claim { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; margin: 10px 0; display: grid; gap: 5px; }
.missing, ul.missing li { color: var(--warn); }
