:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #040a13;
  --panel: #081321;
  --panel-2: #0c192a;
  --line: #19324e;
  --line-bright: #24547b;
  --text: #edf7ff;
  --muted: #7f96ad;
  --subtle: #4f6880;
  --cyan: #12dcff;
  --blue: #2479ff;
  --violet: #8d4dff;
  --green: #20e0a0;
  --amber: #f2bb55;
  --red: #ff6f7f;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; background: radial-gradient(circle at 82% 10%, rgba(83, 28, 147, .12), transparent 32%), var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.eyebrow { margin: 0; color: #6f8aa5; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.login-screen { position: relative; display: grid; min-height: 100vh; place-items: center; overflow-x: hidden; overflow-y: auto; padding: 24px 0; }
.login-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 220, 255, .15), rgba(141, 77, 255, .08) 42%, transparent 68%); animation: breathe 5s ease-in-out infinite; }
.login-card { position: relative; width: min(430px, calc(100vw - 32px)); padding: 38px; background: rgba(7, 18, 32, .94); border: 1px solid var(--line-bright); border-radius: 18px; box-shadow: 0 28px 80px #000a, 0 0 60px rgba(18, 220, 255, .08); }
.login-card > img { width: 78px; height: auto; margin-bottom: 20px; }
.login-card h1 { margin: 8px 0 10px; font-size: 30px; line-height: 1.06; }
.login-card > p:not(.eyebrow, .form-error) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card label, .dialog-card label { display: grid; gap: 7px; margin-top: 14px; color: #a9bdd0; font-size: 11px; font-weight: 700; }
.login-card .primary,
.login-card .secondary { min-height: 48px; margin-top: 14px; font-size: 16px; font-weight: 700; }
.login-card #register-open { margin-top: 10px; }
.seat-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.seat-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.seat-list button { min-height: 32px; padding: 0 10px; font-size: 11px; }
.login-card small { display: block; margin-top: 20px; color: var(--subtle); font-size: 12px; line-height: 1.5; }
.login-security {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #071320;
}
.login-security.warn { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.login-security strong {
  color: var(--text);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-security ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

input, select { width: 100%; border: 1px solid #28435d; border-radius: 7px; outline: none; background: #07111e; color: var(--text); }
input { padding: 11px 12px; }
select { padding: 9px 34px 9px 11px; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(18, 220, 255, .1); }
.primary, .secondary { min-height: 38px; padding: 0 15px; border-radius: 6px; color: white; font-size: 11px; font-weight: 800; }
.primary { border: 1px solid #17d9f5; background: linear-gradient(120deg, #07cdea, #237bff 55%, #7e48f8); box-shadow: 0 0 20px rgba(18, 220, 255, .16); }
.secondary { border: 1px solid #29435d; background: #0b1928; color: #bdd0df; }
.wide { width: 100%; margin-top: 18px; }
.form-error { min-height: 16px; margin: 10px 0 0; color: var(--red); font-size: 11px; }
.form-hint { margin: 8px 0 0; color: var(--subtle); font-size: 11px; line-height: 1.45; }
.dialog-card > p:not(.eyebrow, .form-error, .form-hint) { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0 0; }

.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 23px 14px 16px; border-right: 1px solid #142a41; background: rgba(4, 12, 22, .96); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 23px; }
.brand > img { width: 52px; height: 45px; object-fit: contain; }
.brand div { display: grid; line-height: 1; }
.brand strong { font-size: 14px; }
.brand span { color: var(--cyan); font-size: 14px; font-weight: 800; }
.brand small { margin-top: 7px; color: var(--subtle); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
nav { display: grid; gap: 4px; }
nav > p { margin: 16px 11px 5px; color: #465f78; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border: 0; border-left: 2px solid transparent; border-radius: 5px; background: none; color: #748ca4; font-size: 11px; text-align: left; text-decoration: none; }
.nav-item:hover { color: white; background: #0b1928; }
.nav-item.active { border-left-color: var(--cyan); background: linear-gradient(90deg, rgba(18, 220, 255, .12), transparent); color: var(--cyan); }
.nav-item i { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid currentColor; border-radius: 5px; font-style: normal; font-size: 9px; opacity: .85; }
.side-boundary { position: relative; display: grid; gap: 8px; margin: auto 6px 18px; padding: 18px 13px 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(150deg, #091523, #07101c); }
.side-boundary::after { position: absolute; right: -20px; bottom: -36px; width: 150px; height: 90px; content: ""; transform: rotate(-8deg); background: radial-gradient(ellipse, rgba(18, 220, 255, .55), transparent 35%), radial-gradient(ellipse at 70% 50%, rgba(141, 77, 255, .6), transparent 45%); filter: blur(4px); }
.side-boundary strong { font-size: 12px; line-height: 1.4; }
.side-boundary span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.tenant-card { display: flex; align-items: center; gap: 9px; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.tenant-card div { display: grid; min-width: 0; }
.tenant-card strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-card small { overflow: hidden; color: var(--subtle); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; flex: 0 0 auto; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid #38577a; border-radius: 50%; background: linear-gradient(145deg, #0b718f, #42227d); color: white; font-size: 9px; font-weight: 800; }

main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 28px; border-bottom: 1px solid #12283d; }
.store-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.store-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); }
.store-state i.connected { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.top-actions select { width: 106px; font-size: 9px; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); }
.content { max-width: 1420px; margin: 0 auto; padding: 34px 28px 50px; }
.quote-cell { display: grid; gap: 2px; }
.quote-cell small { color: var(--subtle); font-size: 9px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-heading h1 { margin: 6px 0 7px; font-size: clamp(27px, 3vw, 39px); letter-spacing: -.045em; line-height: 1; }
.page-heading h1 span { background: linear-gradient(90deg, var(--cyan), #8b54ff); background-clip: text; color: transparent; }
.page-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 13px; }
.metric-grid article { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(120deg, rgba(11, 27, 44, .96), rgba(7, 17, 29, .98)); }
.metric-icon { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid currentColor; border-radius: 6px; background: color-mix(in srgb, currentColor 8%, transparent); font-style: normal; box-shadow: 0 0 15px color-mix(in srgb, currentColor 22%, transparent); }
.cyan { color: var(--cyan); } .violet { color: #aa70ff; } .amber { color: var(--amber); } .green { color: var(--green); }
.metric-grid article > div { display: grid; gap: 2px; }
.metric-grid span { color: #9db1c3; font-size: 9px; }
.metric-grid strong { color: white; font-size: 22px; line-height: 1.1; }
.metric-grid small { color: var(--subtle); font-size: 7px; }

.watch-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(6, 16, 28, .94); }
.type-tabs { display: flex; align-items: center; gap: 6px; padding: 12px 13px 0; overflow-x: auto; }
.type-tabs button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #081523; color: #8299af; font-size: 8px; white-space: nowrap; }
.type-tabs button.active { border-color: #168dac; background: rgba(18, 220, 255, .11); color: var(--cyan); }
.type-tabs b { display: inline-grid; min-width: 16px; height: 16px; margin-left: 4px; place-items: center; border-radius: 8px; background: #11263a; font-size: 7px; }
.type-lens { margin: 10px 13px 0; padding: 10px 12px; border: 1px solid #16344c; border-radius: 6px; background: linear-gradient(90deg, rgba(18, 220, 255, .06), transparent 70%); }
.type-lens p { margin: 0; }
#type-question { margin-top: 4px; color: #d5e8f6; font-size: 11px; font-weight: 650; line-height: 1.4; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; }
.table-search { display: flex; align-items: center; gap: 8px; width: min(330px, 60%); padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--subtle); background: #07111d; }
.table-search input { border: 0; box-shadow: none; background: transparent; font-size: 9px; }
.table-tools > span { color: var(--subtle); font-size: 7px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 9px 12px; border-block: 1px solid #132b42; color: #5f7891; font-size: 7px; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 66px; padding: 9px 12px; border-bottom: 1px solid #10253a; color: #a9bdcf; font-size: 9px; vertical-align: middle; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(18, 220, 255, .025); }
.wallet-id { display: flex; align-items: center; gap: 9px; min-width: 165px; }
.chain-mark { display: grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: color-mix(in srgb, currentColor 8%, transparent); color: var(--chain); font-weight: 900; }
.wallet-id div { display: grid; gap: 3px; }
.wallet-id strong { max-width: 160px; overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-id code { color: #637d95; font-size: 7px; }
.inventory-chip { display: inline-flex; width: fit-content; margin-top: 3px; padding: 2px 6px; border: 1px solid #28445f; border-radius: 4px; background: #0b1a29; color: #8fa8bf; font-size: 7px; letter-spacing: .04em; text-transform: uppercase; }
.inventory-chip.hot { color: var(--amber); border-color: #604b27; }
.inventory-chip.cold { color: #8eb4ff; border-color: #2a4670; }
.inventory-chip.deposit { color: var(--cyan); border-color: #1e6075; }
.inventory-chip.treasury { color: #e09bff; border-color: #6a3979; }
table.kind-all .focus-col { display: none; }
.type-focus strong { color: #d7e6f4; }
.chain-obs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: #9eb2c3; font-size: 9px; }
.kind, .status-pill, .chain-stage { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid #28445f; border-radius: 4px; color: #8fa8bf; background: #0b1a29; font-size: 7px; text-transform: capitalize; white-space: nowrap; }
.kind.issuer { color: #a881ff; border-color: #4d3479; }
.kind.exchange { color: #4ad6ff; border-color: #1e6075; }
.kind.fund { color: #e09bff; border-color: #6a3979; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; box-shadow: 0 0 7px currentColor; }
.status-pill.observed { color: var(--green); border-color: #185849; }
.status-pill.thin-history { color: var(--amber); border-color: #604b27; }
.status-pill.pending, .status-pill.unavailable, .status-pill.unobserved { color: #70859a; border-color: #314052; }
.freshness { display: grid; gap: 4px; white-space: nowrap; }
.freshness strong { color: #c5d5e4; font-size: 9px; }
.freshness small { color: var(--subtle); font-size: 7px; }
.freshness.stale strong { color: var(--amber); }
.coverage { display: grid; gap: 5px; min-width: 78px; }
.coverage span { color: #c5d7e7; font-size: 9px; }
.meter { width: 72px; height: 3px; overflow: hidden; border-radius: 3px; background: #172a3d; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 6px var(--cyan); }
.change-cell { display: grid; gap: 4px; min-width: 168px; max-width: 260px; }
.change-cell strong { overflow: hidden; color: #cbd9e6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.change-cell small { color: var(--subtle); font-size: 7px; line-height: 1.45; white-space: normal; }
.look-now.changed strong, .look-now.threshold strong, .look-now.deviation strong,
.look-now.behavior-left-baseline strong { color: var(--cyan); }
.look-now.external-list-hit strong, .look-now.customer-named-restriction strong { color: var(--amber); }
.look-now.cannot-transact-on-observation strong { color: #8ea3b8; }
.look-now.no-stored-objection strong { color: var(--green); }
.look-now.stale strong, .look-now.thin strong { color: var(--amber); }
.look-now.pending strong, .look-now.unobserved strong, .look-now.unavailable strong { color: #8ea3b8; }
.look-now.quiet strong, .look-now.one-state strong { color: var(--green); }
.unlike-self { min-width: 220px; max-width: 340px; }
.unlike-self.unlike-self strong, .unlike-self.returned strong { color: var(--cyan); }
.unlike-self.near-self strong { color: var(--green); }
.unlike-self.stale strong, .unlike-self.thin strong { color: var(--amber); }
.unlike-self.pending strong, .unlike-self.unobserved strong, .unlike-self.unavailable strong { color: #8ea3b8; }
.intel-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 13px; }
.intel-strip article { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: #07111d; }
.intel-strip span { color: var(--subtle); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.intel-strip strong { color: var(--cyan); font-size: 18px; }
.spark { width: 82px; height: 28px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--cyan); stroke-width: 1.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px var(--cyan)); }
.spark circle { fill: var(--amber); }
.no-spark { color: var(--subtle); font-size: 7px; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions button, .row-actions a { display: grid; width: 27px; height: 27px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #0a1725; color: #7f98ae; text-decoration: none; }
.row-actions button:hover, .row-actions a:hover { border-color: var(--cyan); color: var(--cyan); }
.empty-state { display: grid; min-height: 300px; padding: 40px; place-items: center; align-content: center; text-align: center; }
.empty-orbit { display: grid; width: 74px; height: 74px; place-items: center; border: 1px dashed #1b7d9a; border-radius: 50%; box-shadow: 0 0 35px rgba(18, 220, 255, .08); }
.empty-orbit span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); }
.empty-state h2 { margin: 18px 0 7px; font-size: 18px; }
.empty-state p { max-width: 440px; margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.lower-grid { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 10px; margin-top: 12px; }
.lower-card { min-height: 180px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.lower-card > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.lower-card h2 { margin: 3px 0 0; font-size: 12px; }
.lower-card header > span { color: var(--subtle); font-size: 7px; }
.change-list, .chain-list { display: grid; gap: 7px; }
.change-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 7px; border: 1px solid #132a40; border-radius: 5px; }
.change-item > i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.change-item div { display: grid; gap: 2px; min-width: 0; }
.change-item strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.change-item small, .change-item time { color: var(--subtle); font-size: 7px; }
.chain-row { display: grid; grid-template-columns: 75px 1fr auto; gap: 8px; align-items: center; font-size: 8px; }
.chain-row span:first-child { text-transform: capitalize; }
.chain-row .meter { width: 100%; }
.chain-row small { color: var(--subtle); }
.activity-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.activity-card li { display: flex; align-items: center; gap: 8px; color: #9db2c5; font-size: 8px; }
.activity-card li i { width: 6px; height: 6px; border-radius: 50%; }
.green-dot { background: var(--green); } .cyan-dot { background: var(--cyan); } .violet-dot { background: var(--violet); } .muted-dot { background: var(--subtle); }
footer { margin: 18px 0; color: #49647d; font-size: 7px; line-height: 1.6; text-align: center; }

dialog { width: min(630px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line-bright); border-radius: 10px; background: #071321; color: var(--text); box-shadow: 0 28px 90px #000c; }
dialog::backdrop { background: rgba(1, 6, 12, .78); backdrop-filter: blur(5px); }
.dialog-card { padding: 20px; }
.dialog-card > header, .detail-card > header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dialog-card h2, .detail-card h2 { margin: 4px 0 0; font-size: 18px; }
.close-button { border: 0; background: none; color: var(--muted); font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.wide-field { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.detail-dialog { width: min(940px, calc(100vw - 30px)); }
.detail-card { padding: 22px; }
.detail-body { padding-top: 16px; }
.detail-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.detail-summary article { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #091828; }
.detail-summary span { display: block; color: var(--subtle); font-size: 7px; text-transform: uppercase; }
.detail-summary strong { display: block; margin-top: 5px; color: var(--cyan); font-size: 16px; }
.detail-section { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.detail-section h3 { margin: 0 0 10px; font-size: 11px; }
.detail-section p { color: #9eb2c3; font-size: 9px; line-height: 1.6; }
.decision-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.decision-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #091828; }
.decision-grid h3 { margin: 0 0 10px; font-size: 11px; }
.decision-grid p, .decision-grid li { color: #9eb2c3; font-size: 9px; line-height: 1.6; }
.decision-grid strong { color: var(--text); }
.list-facts { margin: 0; padding-left: 16px; }
.lists-chip { display: inline-block; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.lists-chip.quiet { color: var(--subtle); }
.lists-chip.hit { color: var(--amber); border-color: rgba(240, 189, 76, .35); }
.detail-boundary { color: var(--subtle) !important; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: 340px; padding: 11px 14px; transform: translateY(20px); border: 1px solid var(--line-bright); border-radius: 6px; background: #0b1c2b; color: #cce0ef; font-size: 9px; opacity: 0; pointer-events: none; transition: .2s; }
.plan-banner { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line-bright); border-radius: 8px; color: #cce0ef; font-size: 12px; background: #091828; }
.plan-pay { margin: -8px 0 16px; }
.toast.show { transform: none; opacity: 1; }
.toast.error { border-color: #7b3544; color: #ff9eaa; }

@keyframes breathe { 50% { transform: scale(1.07); opacity: .75; } }
@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .intel-strip { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .activity-card { grid-column: 1 / -1; }
  .decision-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; display: block; height: auto; padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand > img { width: 38px; height: 33px; }
  .brand small, .sidebar nav, .side-boundary, .tenant-card { display: none; }
  .topbar { height: 50px; padding: 0 15px; }
  .content { padding: 25px 15px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .primary { width: 100%; }
  .lower-grid { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
  .activity-card { grid-column: auto; }
  .detail-summary { grid-template-columns: 1fr 1fr; }
}
.watchlist-briefing { margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--line-bright); border-radius: 14px; background: var(--panel); display: grid; gap: 12px; }
.watchlist-briefing header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.watchlist-briefing h2 { margin: 6px 0 0; font-size: 18px; line-height: 1.25; }
.watchlist-briefing header > span { color: var(--muted); font-size: 11px; }
.watchlist-briefing ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.briefing-kinds { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 12px; }
.briefing-kinds strong { color: var(--cyan); margin-right: 4px; }
.briefing-counts { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 12px; }
.briefing-counts strong { color: var(--text); margin-right: 4px; }
.briefing-facts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.briefing-highlights { display: grid; gap: 8px; }
.briefing-highlight { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.briefing-highlight:hover { border-color: var(--line-bright); }
.briefing-highlight small, .briefing-highlight code { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
a.change-cell, a.change-item, button.change-cell { color: inherit; text-decoration: none; display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 0; }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-actions button[data-action="observe"] {
  width: auto;
  padding: 3px 7px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: #0b1d30;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.row-actions button[data-action="observe"].needed {
  background: #16324a;
  border-color: var(--cyan);
}
.row-actions button[data-action="dive"],
.row-actions button[data-action="dive-event"] {
  width: auto;
  padding: 3px 7px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: #101f34;
  color: var(--violet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-item .nav-count {
  margin-left: auto;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #16324a;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.fact-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fact-chip.hit { border-color: var(--amber); color: var(--amber); }
.fact-chip.quiet { color: var(--subtle); }
.attention-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.attention-list, .convergence-list { display: grid; gap: 12px; }
.attention-item, .convergence-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.attention-item header, .convergence-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.attention-item button, .convergence-item button {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: #101f34;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}
.convergence-item ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.convergence-item li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.convergence-gated {
  padding: 24px 22px;
  border: 1px dashed var(--line-bright);
  border-radius: 12px;
  background: #0b1420;
}
.convergence-gated h2 { margin: 0 0 10px; font-size: 18px; }
.convergence-gated p { margin: 0 0 10px; color: var(--muted); line-height: 1.5; max-width: 42rem; }
.vision-band { border-left: 3px solid var(--violet); padding-left: 12px; }
.dive-dialog::backdrop { background: rgba(2, 8, 16, .82); }
.dive-dialog { width: min(1200px, 96vw); max-width: none; border: 0; padding: 0; background: transparent; }
.dive-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: min(88vh, 900px);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.dive-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
#dive-frame { width: 100%; height: 100%; border: 0; background: #050814; }
.workspace-screen[hidden] { display: none !important; }
@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { align-items: flex-start; flex-direction: column; }
  .table-search { width: 100%; }
  .table-tools > span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
}
