@font-face {
  font-family: "Cantarell Variable";
  src: url("/assets/fonts/cantarell-vf.otf") format("opentype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Mono";
  src: url("/assets/fonts/nimbus-mono.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Mono";
  src: url("/assets/fonts/nimbus-mono-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #e7ece5;
  --muted: #77817c;
  --dim: #39413d;
  --acid: #c8ff3d;
  --aqua: #7af7df;
  --amber: #ffbc59;
  --void: #050708;
  --panel: rgba(11, 15, 15, .88);
  --line: rgba(214, 236, 219, .12);
  --line-hot: rgba(200, 255, 61, .38);
  --sans: "Cantarell Variable", "Arial Narrow", sans-serif;
  --mono: "Nimbus Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .01em;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 61% 42%, rgba(91, 132, 85, .09), transparent 34%),
    linear-gradient(118deg, transparent 0 47%, rgba(200, 255, 61, .025) 47.1% 47.3%, transparent 47.4%),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

#signal-field { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .28; pointer-events: none; }
.noise { position: fixed; inset: 0; opacity: .024; pointer-events: none; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  display: grid;
  grid-template-rows: 76px 38px minmax(0, 1fr) 42px;
  padding: 16px 18px 12px;
}

.topbar, .footerbar, .ticker {
  border: 1px solid var(--line);
  background: rgba(5, 8, 8, .72);
  backdrop-filter: blur(18px);
}

.topbar { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(480px, 1.35fr) minmax(240px, .8fr); align-items: stretch; box-shadow: 0 16px 48px rgba(0,0,0,.16); }
.brand { display: flex; align-items: center; gap: 15px; padding: 0 20px; color: inherit; text-decoration: none; }
.brand-mark { width: 35px; height: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skewY(-9deg); }
.brand-mark i { display: block; border: 1px solid var(--acid); background: rgba(200,255,61,.06); }
.brand-mark i:nth-child(2) { background: var(--acid); box-shadow: 0 0 18px rgba(200,255,61,.35); }
.brand-copy { display: grid; line-height: 1; gap: 6px; }
.brand-copy strong { font-family: var(--mono); letter-spacing: .15em; font-size: 16px; }
.brand-copy small { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .21em; }

.main-nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.nav-item { position: relative; min-width: 0; padding: 0 18px; border: 0; border-left: 1px solid var(--line); color: var(--muted); background: transparent; text-transform: uppercase; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; cursor: pointer; transition: .2s ease; }
.nav-item:last-child { border-right: 1px solid var(--line); }
.nav-item span { margin-right: 9px; color: var(--dim); font-size: 8px; }
.nav-item::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--acid); transform: scaleX(0); transition: transform .2s ease; }
.nav-item:hover, .nav-item.is-active { color: var(--ink); background: rgba(255,255,255,.018); }
.nav-item.is-active::after { transform: scaleX(1); }
.nav-links-trigger { border-right: 1px solid var(--line); }
.nav-links-trigger i { margin-left: 7px; color: var(--acid); font-style: normal; }

.topbar-status { display: flex; justify-content: flex-end; align-items: center; gap: 11px; padding: 0 20px; font-family: var(--mono); }
.topbar-status > span:nth-child(2) { display: grid; gap: 2px; }
.topbar-status small { font-size: 7px; color: var(--muted); letter-spacing: .15em; }
.topbar-status b { font-size: 10px; color: var(--aqua); letter-spacing: .1em; }
.topbar-status time { margin-left: 16px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.pulse-dot, .access-card i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(122,247,223,.08), 0 0 17px var(--aqua); animation: pulse 2s infinite; }

.ticker { border-top: 0; display: grid; grid-template-columns: 170px 1fr 75px; align-items: center; overflow: hidden; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; }
.ticker-label { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--muted); border-right: 1px solid var(--line); white-space: nowrap; }
.ticker-label span { padding: 3px 5px; color: #070907; background: var(--acid); font-weight: 700; letter-spacing: .08em; }
.ticker-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee var(--ticker-speed, 34s) linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; white-space: nowrap; color: #aab2ad; }
.ticker-track span::after { content: "◆"; margin: 0 38px; color: var(--acid); font-size: 6px; }
.ticker-code { justify-self: stretch; align-self: stretch; display: grid; place-items: center; color: var(--acid); border-left: 1px solid var(--line); }

.viewport { min-height: 0; display: grid; grid-template-columns: minmax(225px, 285px) minmax(480px, 1fr) minmax(205px, 250px); gap: 12px; padding: 12px 0; }
.center-stage { min-width: 0; min-height: 0; position: relative; }
.portal-panel { width: 100%; height: 100%; }
.portal-panel[hidden] { display: none; }
.left-rail { min-width: 0; border: 1px solid var(--line); display: grid; grid-template-rows: 48px minmax(0,1fr) 88px; overflow: hidden; background: linear-gradient(180deg,rgba(12,17,16,.72),rgba(6,9,9,.7)); box-shadow: inset 0 0 55px rgba(0,0,0,.22); }
.rail-header { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.rail-header span { display: flex; align-items: center; gap: 8px; }
.rail-header i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px rgba(200,255,61,.7); }
.rail-header b { display: grid; place-items: center; width: 26px; height: 20px; border: 1px solid var(--line-hot); color: var(--acid); }

.briefing-panel { position: relative; overflow: hidden; min-width: 0; display: grid; grid-template-rows: 50px 1fr 70px; border: 1px solid var(--line); background: linear-gradient(138deg, rgba(17,23,21,.91), rgba(7,10,10,.94)); box-shadow: inset 0 0 80px rgba(0,0,0,.3), 0 30px 80px rgba(0,0,0,.25); }
.briefing-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.018) 50%, transparent 50.1%), linear-gradient(0deg, transparent 49.9%, rgba(255,255,255,.018) 50%, transparent 50.1%); background-size: 110px 110px; }
.briefing-panel::after { content: "N/F"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.018); font-family: var(--mono); font-size: clamp(120px, 18vw, 290px); font-weight: 700; line-height: 1; letter-spacing: -.18em; pointer-events: none; }
.archive-panel, .whitepaper-panel { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(138deg, rgba(17,23,21,.91), rgba(7,10,10,.96)); box-shadow: inset 0 0 80px rgba(0,0,0,.3), 0 30px 80px rgba(0,0,0,.25); }
.portal-view-head { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px,4vw,58px); border-bottom: 1px solid var(--line); }
.portal-view-head p { margin: 0 0 4px; color: var(--acid); font-family: var(--mono); font-size: 7px; letter-spacing: .18em; }
.portal-view-head h2 { margin: 0; font-size: 27px; text-transform: uppercase; }
.portal-view-head > span { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.archive-list { height: calc(100% - 74px); display: grid; align-content: start; padding: clamp(22px,4vw,58px); gap: 10px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-hot) transparent; }
.archive-empty { min-height: 220px; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-align: center; }
.archive-entry-shell { display: grid; grid-template-columns: minmax(0,1fr) 64px; gap: 7px; }
.archive-entry { width: 100%; min-height: 68px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.012); text-align: left; cursor: pointer; }
.archive-entry:hover { color: var(--ink); border-color: var(--line-hot); transform: translateX(2px); }
.archive-entry > span { color: var(--acid); font-family: var(--mono); font-size: 9px; }
.archive-entry strong { display: block; color: inherit; font-size: 13px; text-transform: uppercase; }
.archive-entry small { display: block; margin-top: 5px; color: var(--dim); font-family: var(--mono); font-size: 7px; }
.archive-entry time { color: var(--dim); font-family: var(--mono); font-size: 7px; }
.archive-image-link { display: grid; place-items: center; border: 1px solid rgba(200,255,61,.2); color: var(--acid); background: rgba(200,255,61,.025); font-family: var(--mono); font-size: 7px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.archive-image-link:hover { color: var(--void); border-color: var(--aqua); background: var(--aqua); }

.whitepaper-grid { height: 100%; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(285px,.65fr); }
.whitepaper-copy { min-width: 0; padding: clamp(24px,4vw,58px); border-right: 1px solid var(--line); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-hot) transparent; }
.whitepaper-copy h2 { margin: 0; font-size: clamp(38px,5vw,74px); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.whitepaper-copy h2 span { color: transparent; -webkit-text-stroke: 1px rgba(200,255,61,.58); font-weight: 300; }
.whitepaper-intro { max-width: 700px; margin: 20px 0 22px; color: #b4bdb7; font-size: 15px; line-height: 1.55; }
.whitepaper-sections { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.whitepaper-section { min-width: 0; padding: 13px; border-top: 1px solid var(--line-hot); background: rgba(255,255,255,.012); }
.whitepaper-section span { color: var(--acid); font-family: var(--mono); font-size: 7px; }
.whitepaper-section h3 { margin: 8px 0 7px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.whitepaper-section p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 8px; line-height: 1.55; }
.token-terminal { min-width: 0; padding: clamp(18px,2.4vw,34px); display: flex; flex-direction: column; background: rgba(4,7,7,.56); }
.token-identity { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.token-identity img { width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 0 34px rgba(200,255,61,.13); }
.token-identity div { display: grid; gap: 3px; }
.token-identity small { color: var(--dim); font-family: var(--mono); font-size: 6px; letter-spacing: .16em; }
.token-identity strong { font-size: 20px; text-transform: uppercase; }
.token-identity span { color: var(--acid); font-family: var(--mono); font-size: 8px; letter-spacing: .11em; }
.token-terminal dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 14px; margin: 18px 0; font-family: var(--mono); font-size: 7px; }
.token-terminal dt { color: var(--dim); }
.token-terminal dd { min-width: 0; margin: 0; color: var(--muted); text-align: right; }
.token-terminal code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: var(--aqua); }
.wallet-button, .claim-button { min-height: 40px; border: 0; color: #070907; background: var(--acid); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .12em; cursor: pointer; clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%); }
.wallet-button:hover, .claim-button:not(:disabled):hover { background: var(--aqua); }
.wallet-button span { margin-right: 8px; font-size: 14px; }
.token-explorer-link { padding: 10px; color: var(--muted); font-family: var(--mono); font-size: 7px; text-align: center; text-decoration: none; }
.token-explorer-link:hover { color: var(--acid); }
.claim-console { margin-top: auto; padding: 14px; border: 1px solid var(--line); background: rgba(200,255,61,.018); }
.claim-head, .claim-readout { display: flex; justify-content: space-between; font-family: var(--mono); }
.claim-head { color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.claim-head b { color: var(--amber); }
.claim-console.is-online .claim-head b { color: var(--aqua); }
.claim-console p { margin: 10px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.claim-readout { margin-bottom: 10px; color: var(--dim); font-size: 6px; }
.claim-button { width: 100%; }
.claim-button:disabled { color: var(--dim); background: rgba(255,255,255,.04); cursor: not-allowed; }
.claim-button.is-standby { color: var(--amber); border: 1px solid rgba(255,188,89,.28); background: rgba(255,188,89,.035); clip-path: none; }
.claim-button.is-standby:hover { color: #080a08; background: var(--amber); }
.claim-console > small { display: block; margin-top: 8px; color: var(--dim); font-family: var(--mono); font-size: 6px; line-height: 1.4; }
.tier-console { margin-top: 8px; padding: 12px 14px; border: 1px solid rgba(122,247,223,.2); background: rgba(122,247,223,.018); }
.tier-console[hidden] { display: none; }
.tier-console .claim-head b { color: var(--aqua); }
.tier-console .claim-readout { margin: 9px 0; }
.tier-button { width: 100%; min-height: 34px; border: 1px solid var(--line-hot); color: var(--acid); background: transparent; font-family: var(--mono); font-size: 7px; font-weight: 700; letter-spacing: .12em; cursor: pointer; }
.tier-button:hover { color: var(--void); background: var(--aqua); }
.tier-console > small { display: block; margin-top: 7px; color: var(--dim); font-family: var(--mono); font-size: 6px; }
.corner { position: absolute; width: 13px; height: 13px; z-index: 4; pointer-events: none; }
.corner-tl { left: 6px; top: 6px; border-left: 1px solid var(--acid); border-top: 1px solid var(--acid); }
.corner-tr { right: 6px; top: 6px; border-right: 1px solid var(--acid); border-top: 1px solid var(--acid); }
.corner-bl { left: 6px; bottom: 6px; border-left: 1px solid var(--acid); border-bottom: 1px solid var(--acid); }
.corner-br { right: 6px; bottom: 6px; border-right: 1px solid var(--acid); border-bottom: 1px solid var(--acid); }
.briefing-meta { display: flex; position: relative; z-index: 2; align-items: center; padding: 0 26px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 8px; letter-spacing: .15em; }
.classification { color: var(--acid); }
.briefing-id { margin-left: 26px; color: var(--muted); }
.severity { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--amber); }
.severity i { width: 17px; height: 1px; background: currentColor; box-shadow: -5px -3px currentColor, -9px 3px currentColor; }

.briefing-body { align-self: center; position: relative; z-index: 2; width: min(760px, 88%); padding: 28px clamp(30px, 6vw, 92px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--acid); font-family: var(--mono); font-size: 9px; letter-spacing: .23em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: 8px 0 rgba(200,255,61,.3); }
.briefing-body h1 { margin: 0; max-width: 800px; font-size: clamp(38px, 5.4vw, 78px); line-height: .9; letter-spacing: -.052em; font-weight: 720; text-transform: uppercase; }
.briefing-body h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(231,236,229,.46); font-weight: 260; }
.dek { max-width: 650px; margin: 22px 0 0; color: #b4bdb7; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.5; font-weight: 430; letter-spacing: .015em; }
.message-copy { max-width: 670px; margin-top: 15px; display: grid; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.55; }
.message-copy p { margin: 0; }
.message-copy p::before { content: "> "; color: var(--acid); }
.promo-image-link { max-width: 700px; min-height: 58px; margin-top: 13px; display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 12px; padding: 5px; border: 1px solid rgba(200,255,61,.22); color: var(--muted); background: rgba(200,255,61,.025); font-family: var(--mono); text-decoration: none; transition: .2s ease; }
.promo-image-link[hidden] { display: none; }
.promo-image-link img { width: 54px; height: 54px; display: block; object-fit: cover; border: 1px solid rgba(122,247,223,.18); }
.promo-image-link span { display: grid; gap: 5px; }
.promo-image-link small { color: var(--dim); font-size: 6px; letter-spacing: .18em; }
.promo-image-link b { color: var(--acid); font-size: 8px; letter-spacing: .12em; }
.promo-image-link:hover { border-color: var(--aqua); background: rgba(122,247,223,.06); transform: translateX(2px); }
.promo-image-link:hover b { color: var(--aqua); }
.contract-strip { max-width: 700px; min-height: 34px; margin-top: 15px; display: grid; grid-template-columns: auto minmax(170px, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid rgba(122,247,223,.18); background: rgba(122,247,223,.025); font-family: var(--mono); }
.contract-strip[hidden] { display: none; }
.contract-strip > span { display: flex; align-items: center; gap: 7px; color: var(--aqua); font-size: 6px; letter-spacing: .14em; white-space: nowrap; }
.contract-strip > span i { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }
.contract-strip code { min-width: 0; overflow: hidden; color: #aeb7b1; font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.contract-strip button, .contract-strip a { padding: 4px 6px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-family: var(--mono); font-size: 6px; letter-spacing: .1em; text-decoration: none; cursor: pointer; }
.contract-strip button:hover, .contract-strip a:hover { color: var(--acid); border-color: var(--line-hot); }

.briefing-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding: 0 clamp(30px, 6vw, 92px); border-top: 1px solid var(--line); }
.command-button { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #0b0e0b; border: 0; background: var(--acid); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: .2s ease; }
.command-button:hover { background: var(--aqua); box-shadow: 0 0 25px rgba(122,247,223,.18); transform: translateY(-1px); }
.command-prefix { font-size: 15px; }
.command-button kbd { padding: 3px 5px; border: 1px solid rgba(0,0,0,.25); border-radius: 2px; font: inherit; font-size: 7px; }
.share-button { height: 38px; display: inline-flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line-hot); color: var(--acid); background: rgba(200,255,61,.025); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .12em; cursor: pointer; transition: .2s ease; }
.share-button:hover { color: var(--void); background: var(--aqua); border-color: var(--aqua); transform: translateY(-1px); }
.share-glyph { font-size: 17px; line-height: 1; }
.dispatch-time { display: grid; gap: 4px; font-family: var(--mono); }
.dispatch-time small { color: var(--dim); font-size: 6px; letter-spacing: .17em; }
.dispatch-time time { color: var(--muted); font-size: 8px; letter-spacing: .1em; }

.right-rail { min-width: 0; display: grid; grid-template-rows: 145px minmax(0, 1fr); gap: 12px; }
.signal-card, .access-card, .telemetry-card { border: 1px solid var(--line); background: rgba(8,12,11,.68); backdrop-filter: blur(14px); }
.signal-card { padding: 15px; overflow: hidden; }
.signal-head, .card-label { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.signal-head b { color: var(--aqua); font-size: 10px; }
.signal-card svg { width: 100%; height: 76px; margin: 4px 0 0; overflow: visible; }
.signal-grid { fill: none; stroke: rgba(255,255,255,.05); stroke-width: .5; }
.signal-path { fill: none; stroke: url(#signal-gradient); stroke-width: 1.3; filter: drop-shadow(0 0 5px rgba(200,255,61,.45)); stroke-dasharray: 390; animation: draw-signal 4s ease-in-out infinite alternate; }
.signal-coordinates { display: flex; justify-content: space-between; color: var(--dim); font-family: var(--mono); font-size: 6px; letter-spacing: .1em; }
.card-label { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.card-label b { color: var(--acid); }
.message-list { min-height: 0; overflow: auto; padding: 7px 10px; scrollbar-width: thin; scrollbar-color: var(--line-hot) transparent; }
.message-link { position: relative; display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 8px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.message-link::after { content: ""; position: absolute; right: -10px; top: 9px; bottom: 9px; width: 2px; background: var(--acid); transform: scaleY(0); transition: .2s ease; }
.message-link:hover, .message-link.is-active { color: var(--ink); }
.message-link:hover { background: rgba(255,255,255,.012); }
.message-link.is-active::after { transform: scaleY(1); }
.message-link.is-active .message-number { color: #080a08; background: var(--acid); border-color: var(--acid); }
.message-number { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--dim); color: var(--dim); font-family: var(--mono); font-size: 7px; }
.message-link-text { overflow: hidden; }
.message-link-text strong, .message-link-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-link-text strong { color: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.message-link-text small { margin-top: 3px; color: var(--dim); font-family: var(--mono); font-size: 6px; letter-spacing: .09em; }
.temporary-tag { color: var(--amber); font-family: var(--mono); font-size: 7px; }
.access-card { display: grid; align-content: center; gap: 7px; padding: 15px; border-width: 1px 0 0; font-family: var(--mono); }
.access-card > span { color: var(--dim); font-size: 6px; letter-spacing: .16em; }
.access-card strong { display: flex; align-items: center; gap: 10px; color: var(--aqua); font-size: 10px; letter-spacing: .09em; }
.access-card small { color: var(--muted); font-size: 7px; letter-spacing: .08em; }
.access-card small b { color: var(--ink); }
.telemetry-card { position: relative; min-height: 0; display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; padding: 18px; overflow: hidden; }
.telemetry-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg,transparent 0 31px,rgba(255,255,255,.018) 32px); }
.telemetry-mark { display: flex; align-items: baseline; gap: 4px; color: rgba(231,236,229,.12); font-family: var(--mono); font-size: clamp(48px,5.6vw,86px); font-weight: 700; line-height: .82; letter-spacing: -.15em; }
.telemetry-mark i { color: var(--acid); font-size: .55em; font-style: normal; font-weight: 400; }
.telemetry-head { display: flex; justify-content: space-between; margin-top: 22px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.telemetry-head b { color: var(--aqua); }
.rail-readout { display: grid; gap: 0; width: 100%; padding: 7px 0; font-family: var(--mono); }
.rail-readout span { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(214,236,219,.07); }
.rail-readout small { color: var(--dim); font-size: 6px; letter-spacing: .18em; }
.rail-readout strong { color: #aeb7b1; font-size: 8px; letter-spacing: .1em; }
.telemetry-trace { height: 38px; display: flex; align-items: end; gap: 5px; margin-top: 12px; }
.telemetry-trace i { flex: 1; height: 35%; background: var(--line-hot); animation: telemetry-bars 2.4s ease-in-out infinite alternate; }
.telemetry-trace i:nth-child(2) { height: 78%; animation-delay: -.4s; }.telemetry-trace i:nth-child(3) { height: 48%; animation-delay: -.9s; }.telemetry-trace i:nth-child(4) { height: 94%; animation-delay: -1.4s; }.telemetry-trace i:nth-child(5) { height: 60%; animation-delay: -1.8s; }.telemetry-trace i:nth-child(6) { height: 26%; animation-delay: -2.1s; }
.vertical-copy { position: absolute; right: 8px; bottom: 14px; color: var(--dim); font-family: var(--mono); font-size: 6px; letter-spacing: .15em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }

.footerbar { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.footer-command { display: flex; align-items: center; gap: 8px; }
.footer-command span { color: var(--acid); }
.footer-command b { color: var(--muted); font-weight: 400; }
.footer-command i { width: 6px; height: 12px; background: rgba(200,255,61,.7); animation: blink 1s steps(1) infinite; }
.footer-links { display: flex; gap: 24px; color: var(--dim); }
.footer-links { align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--acid); }
.miner-control { position: relative; }
.miner-toggle { min-height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); color: var(--muted); background: rgba(8,12,11,.82); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.miner-toggle:hover, .miner-toggle:focus-visible { border-color: var(--line-hot); color: var(--ink); outline: none; }
.miner-toggle:disabled { cursor: wait; }
.miner-toggle i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 3px rgba(89,105,99,.08); }
.miner-toggle em { font-style: normal; }
.miner-toggle b { color: var(--dim); font-weight: 700; }
.miner-control[data-state="loading"] .miner-toggle { color: var(--amber); border-color: rgba(255,188,89,.28); }
.miner-control[data-state="loading"] .miner-toggle i { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink .65s steps(1) infinite; }
.miner-control[data-state="active"] .miner-toggle { color: var(--acid); border-color: rgba(200,255,61,.46); background: rgba(200,255,61,.07); }
.miner-control[data-state="active"] .miner-toggle i { background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: pulse 1.6s ease infinite; }
.miner-control[data-state="active"] .miner-toggle b { color: var(--acid); }
.miner-control[data-state="error"] .miner-toggle, .miner-control[data-state="error"] .miner-toggle b { color: var(--amber); border-color: rgba(255,188,89,.35); }
.miner-tooltip { position: absolute; z-index: 25; right: 0; bottom: calc(100% + 11px); width: 280px; padding: 11px 13px; border: 1px solid var(--line-hot); color: var(--muted); background: rgba(5,8,8,.98); box-shadow: 0 14px 36px rgba(0,0,0,.55); font-family: var(--mono); font-size: 8px; line-height: 1.55; letter-spacing: .055em; opacity: 0; visibility: hidden; transform: translateY(5px); transition: .18s ease; pointer-events: none; }
.miner-tooltip::after { content: ""; position: absolute; right: 18px; top: 100%; width: 7px; height: 7px; border-right: 1px solid var(--line-hot); border-bottom: 1px solid var(--line-hot); background: #050808; transform: translateY(-4px) rotate(45deg); }
.miner-control:hover .miner-tooltip, .miner-control:focus-within .miner-tooltip { opacity: 1; visibility: visible; transform: none; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 64px; transform: translate(-50%, 20px); padding: 10px 14px; border: 1px solid var(--line-hot); color: var(--acid); background: rgba(5,8,8,.95); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.links-modal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 24px; }
.links-modal[hidden] { display: none; }
.links-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,4,4,.86); backdrop-filter: blur(11px) saturate(.7); cursor: default; }
.links-modal-panel { position: relative; width: min(900px,100%); max-height: min(780px,calc(100dvh - 48px)); display: grid; grid-template-rows: 48px 42px minmax(0,1fr) 48px; border: 1px solid var(--line-hot); background: linear-gradient(145deg,rgba(15,21,19,.995),rgba(5,8,8,.995)); box-shadow: 0 42px 140px rgba(0,0,0,.82),inset 0 0 110px rgba(200,255,61,.025); overflow: hidden; animation: modal-decode .34s ease both; }
.links-modal-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,.016) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.016) 1px,transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(#000,transparent 88%); }
.links-modal-head, .links-modal-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.links-modal-head { border-bottom: 1px solid var(--line); color: var(--muted); }
.links-modal-head > span { display: flex; align-items: center; gap: 9px; }
.links-modal-head > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }
.links-modal-head button, .links-modal-foot button { border: 0; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; cursor: pointer; }
.links-modal-head button:hover { color: var(--acid); }
.links-module-tabs { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.links-module-tabs button { position: relative; border: 0; border-right: 1px solid var(--line); color: var(--dim); background: rgba(255,255,255,.008); font: 7px var(--mono); letter-spacing: .13em; cursor: pointer; }
.links-module-tabs button:last-child { border-right: 0; }
.links-module-tabs button::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--acid); transform: scaleX(0); transition: transform .2s ease; }
.links-module-tabs button:hover, .links-module-tabs button.is-active { color: var(--ink); background: rgba(200,255,61,.025); }
.links-module-tabs button.is-active::after { transform: scaleX(1); }
.links-module-tabs span { margin-right: 8px; color: var(--acid); }
.links-modal-body { position: relative; z-index: 2; min-height: 0; padding: 30px 34px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-hot) transparent; }
.secure-note-panel[hidden], .channel-directory-panel[hidden] { display: none; }
.links-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.links-modal-heading p { margin: 0 0 8px; color: var(--acid); font-family: var(--mono); font-size: 7px; letter-spacing: .18em; }
.links-modal-heading h2 { margin: 0; font-size: clamp(32px,5vw,55px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.router-glyph { position: relative; flex: 0 0 82px; width: 82px; height: 82px; display: grid; place-items: center; }
.router-glyph::before, .router-glyph i { content: ""; position: absolute; border: 1px solid rgba(200,255,61,.25); transform: rotate(45deg); }
.router-glyph::before { inset: 4px; }
.router-glyph i:nth-child(1) { inset: 15px; border-color: rgba(122,247,223,.28); }.router-glyph i:nth-child(2) { inset: 27px; }.router-glyph i:nth-child(3) { inset: -2px; border-left-color: transparent; border-bottom-color: transparent; animation: orbit 8s linear infinite; }
.router-glyph b { position: relative; z-index: 2; color: var(--acid); font: 18px var(--mono); }
.links-modal-body > p { max-width: 520px; margin: 18px 0 22px; color: var(--muted); font: 9px/1.6 var(--mono); }
.secure-note-panel > p, .channel-directory-panel > p { max-width: 620px; margin: 14px 0 18px; color: var(--muted); font: 9px/1.55 var(--mono); }
.note-glyph b { font-size: 23px; }
.note-status { min-height: 29px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 0 11px; border: 1px solid rgba(122,247,223,.16); color: var(--muted); background: rgba(122,247,223,.02); font: 6px var(--mono); letter-spacing: .13em; }
.note-status span { display: flex; align-items: center; gap: 8px; }
.note-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }
.note-status b { color: var(--aqua); }
.secure-note-panel[data-state="working"] .note-status i { background: var(--amber); animation: blink .65s steps(1) infinite; }
.secure-note-panel[data-state="working"] .note-status b, .secure-note-panel[data-state="error"] .note-status b { color: var(--amber); }
.secure-note-panel[data-state="error"] .note-status i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.note-editor-label { display: flex; justify-content: space-between; margin: 0 1px 7px; color: var(--dim); font: 6px var(--mono); letter-spacing: .13em; }
.note-editor-label b { color: var(--muted); font-weight: 400; }
#secure-note-input { width: 100%; height: 174px; display: block; resize: none; padding: 15px 16px; border: 1px solid var(--line); border-top-color: var(--line-hot); border-radius: 0; outline: none; color: #c8d0cb; background: rgba(2,5,5,.76); caret-color: var(--acid); font: 10px/1.65 var(--mono); scrollbar-width: thin; scrollbar-color: var(--line-hot) transparent; transition: border-color .2s ease,box-shadow .2s ease; }
#secure-note-input::placeholder { color: var(--dim); }
#secure-note-input:focus { border-color: rgba(200,255,61,.5); box-shadow: inset 0 0 35px rgba(200,255,61,.025),0 0 22px rgba(200,255,61,.035); }
#secure-note-input[readonly] { color: var(--muted); }
.note-controls { display: grid; grid-template-columns: minmax(150px,1fr) auto auto auto; gap: 8px; margin-top: 9px; }
.note-controls label { min-height: 38px; display: flex; align-items: center; gap: 9px; padding-left: 10px; border: 1px solid var(--line); color: var(--dim); background: rgba(255,255,255,.01); font: 6px var(--mono); letter-spacing: .12em; }
.note-controls select { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; color: var(--muted); background: #080c0b; font: 7px var(--mono); cursor: pointer; }
.note-button { min-height: 38px; padding: 0 13px; font: 7px var(--mono); font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.note-button:disabled { cursor: wait; opacity: .6; }
.note-button-secondary { border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.01); }
.note-button-secondary:hover { color: var(--acid); border-color: var(--line-hot); }
.note-button-primary { border: 0; color: #070907; background: var(--acid); clip-path: polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%); }
.note-button-primary:hover { background: var(--aqua); }
.note-share-output { margin-top: 10px; padding: 11px; border: 1px solid rgba(122,247,223,.22); background: rgba(122,247,223,.025); animation: decode .3s ease both; }
.note-share-output[hidden] { display: none; }
.note-share-output > label { display: block; margin-bottom: 7px; color: var(--aqua); font: 6px var(--mono); letter-spacing: .13em; }
.note-share-output > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; }
.note-share-output input { min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); outline: none; color: var(--muted); background: #050808; font: 7px var(--mono); }
.note-share-output button { padding: 0 12px; border: 0; color: #07100e; background: var(--aqua); font: 7px var(--mono); font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.note-share-output button + button { border-left: 1px solid rgba(5,8,8,.35); background: var(--acid); }
.note-share-output small { display: block; margin-top: 7px; color: var(--dim); font: 6px/1.4 var(--mono); }
.links-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.links-menu a { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.012); text-decoration: none; transition: .2s ease; }
.links-menu a:hover, .links-menu a:focus-visible { border-color: var(--line-hot); background: rgba(200,255,61,.035); transform: translateY(-2px); outline: none; }
.link-index { color: var(--acid); font: 8px var(--mono); }
.link-copy { min-width: 0; display: grid; gap: 5px; }
.link-copy strong { overflow: hidden; color: var(--ink); font: 9px var(--mono); letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.link-copy small { overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.link-route { color: var(--dim); font: 6px var(--mono); letter-spacing: .1em; }
.links-menu a:hover .link-route { color: var(--aqua); }
.links-menu-empty { grid-column: 1/-1; min-height: 110px; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--dim); font: 8px var(--mono); letter-spacing: .13em; }
.links-modal-foot { border-top: 1px solid var(--line); color: var(--dim); }
.links-modal-foot button { min-height: 29px; padding: 0 12px; color: #080a08; background: var(--acid); clip-path: polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%); }
.claim-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.claim-modal[hidden] { display: none; }
.claim-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,4,4,.83); backdrop-filter: blur(9px); cursor: default; }
.claim-modal-panel { position: relative; width: min(620px,100%); border: 1px solid var(--line-hot); background: linear-gradient(145deg, rgba(15,21,19,.99), rgba(5,8,8,.99)); box-shadow: 0 42px 130px rgba(0,0,0,.78), inset 0 0 90px rgba(200,255,61,.025); overflow: hidden; animation: modal-decode .34s ease both; }
.claim-modal-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(#000,transparent 75%); }
.claim-modal-head, .claim-modal-foot { position: relative; z-index: 2; min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-family: var(--mono); }
.claim-modal-head { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 7px; letter-spacing: .15em; }
.claim-modal-head > span { display: flex; align-items: center; gap: 9px; }
.claim-modal-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.claim-modal-head button, .claim-modal-foot button { border: 0; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; cursor: pointer; }
.claim-modal-head button:hover { color: var(--acid); }
.claim-modal-body { position: relative; z-index: 2; padding: 34px 42px 27px; }
.claim-orbit { position: absolute; right: 42px; top: 28px; width: 82px; height: 82px; display: grid; place-items: center; }
.claim-orbit::before, .claim-orbit::after, .claim-orbit span { content: ""; position: absolute; inset: 0; border: 1px solid rgba(200,255,61,.2); border-radius: 50%; }
.claim-orbit::after { inset: 11px; border-style: dashed; animation: orbit 9s linear infinite reverse; }
.claim-orbit span:first-child { inset: 22px; border-color: rgba(122,247,223,.3); }
.claim-orbit span:last-of-type { inset: -5px; border-top-color: var(--acid); border-left-color: transparent; animation: orbit 7s linear infinite; }
.claim-orbit b { position: relative; z-index: 2; color: var(--acid); font-family: var(--mono); font-size: 12px; text-shadow: 0 0 15px rgba(200,255,61,.5); }
.claim-modal-kicker { margin: 0 110px 13px 0; color: var(--amber); font-family: var(--mono); font-size: 8px; letter-spacing: .17em; }
.claim-modal-body h2 { margin: 0; max-width: 430px; font-size: clamp(35px,5vw,57px); line-height: .91; letter-spacing: -.045em; text-transform: uppercase; }
.claim-modal-body h2 span { color: transparent; -webkit-text-stroke: 1px rgba(231,236,229,.45); font-weight: 320; }
.claim-modal-body > p:not(.claim-modal-kicker) { max-width: 450px; margin: 19px 0 22px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.6; }
.reward-output { min-height: 68px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.reward-output > span { display: grid; align-content: center; gap: 7px; padding: 12px 15px; background: rgba(7,11,10,.97); }
.reward-output small { color: var(--dim); font-family: var(--mono); font-size: 6px; letter-spacing: .15em; }
.reward-output b { color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.reward-output span:last-child b { color: var(--amber); }
.claim-progress { height: 3px; display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin-top: 16px; }
.claim-progress i { background: rgba(255,188,89,.15); animation: claim-scan 1.5s ease-in-out infinite; }
.claim-progress i:nth-child(2) { animation-delay: .12s; }.claim-progress i:nth-child(3) { animation-delay: .24s; }.claim-progress i:nth-child(4) { animation-delay: .36s; }.claim-progress i:nth-child(5) { animation-delay: .48s; }
.claim-modal-foot { border-top: 1px solid var(--line); color: var(--dim); font-size: 6px; letter-spacing: .12em; }
.claim-modal-foot button { min-height: 29px; padding: 0 12px; color: #080a08; background: var(--acid); clip-path: polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%); }
.claim-modal.is-reward .claim-modal-head i { background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }
.claim-modal.is-reward .claim-modal-kicker, .claim-modal.is-reward .reward-output span:last-child b { color: var(--aqua); }
.claim-modal.is-reward .claim-progress i { background: var(--aqua); animation: none; }
noscript { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 40px; background: var(--void); color: var(--acid); font-family: var(--mono); }

.is-switching .briefing-body { animation: decode .42s both; }
.is-acknowledged .command-button { background: var(--aqua); }
.is-acknowledged .command-label { font-size: 0; }
.is-acknowledged .command-label::after { content: "BRIEF ACKNOWLEDGED"; font-size: 9px; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .55; box-shadow: 0 0 0 7px rgba(122,247,223,0), 0 0 9px var(--aqua); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw-signal { from { stroke-dashoffset: 390; } to { stroke-dashoffset: 0; } }
@keyframes decode { 0% { opacity: .05; transform: translateY(5px); filter: blur(4px); } 55% { opacity: .6; filter: blur(1px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes modal-decode { from { opacity: 0; transform: translateY(12px) scale(.985); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes claim-scan { 0%,100% { background: rgba(255,188,89,.12); } 50% { background: var(--amber); box-shadow: 0 0 9px rgba(255,188,89,.35); } }
@keyframes telemetry-bars { to { height: 88%; background: rgba(122,247,223,.5); } }

@media (max-width: 1100px) {
  .page-shell { grid-template-rows: 68px 36px minmax(0,1fr) 40px; }
  .topbar { grid-template-columns: 1fr auto; }
  .brand { display: none; }
  .topbar-status time { display: none; }
  .main-nav { position: static; height: 100%; border: 0; background: transparent; }
  .nav-item { min-width: 0; padding: 0 12px; font-size: 8px; }
  .viewport { grid-template-columns: minmax(200px,230px) minmax(440px, 1fr) minmax(195px,215px); gap: 9px; padding: 9px 0; }
  .briefing-body, .briefing-actions { padding-left: 40px; padding-right: 40px; }
  .right-rail { gap: 8px; }
  .whitepaper-grid { grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); }
  .whitepaper-sections { grid-template-columns: 1fr; }
}

@media (max-width: 960px) and (min-width: 781px) {
  .viewport { grid-template-columns: minmax(205px,235px) minmax(0,1fr); }
  .right-rail { display: none; }
}

@media (max-width: 780px) {
  html, body { overflow: hidden; }
  .page-shell { min-height: 540px; padding: 8px; grid-template-rows: 62px 34px minmax(0,1fr) 38px; }
  .topbar { grid-template-columns: 1fr; }
  .brand, .topbar-status { display: none; }
  .main-nav { position: static; width: 100%; height: 100%; border: 0; }
  .main-nav > .nav-item { min-width: 0; }
  .nav-item { width: 100%; min-width: 0; padding: 0 5px; font-size: 7px; letter-spacing: .06em; }
  .nav-item span { margin-right: 4px; font-size: 6px; }
  .ticker { grid-template-columns: 70px 1fr; }
  .ticker-label { padding: 0 8px; font-size: 0; }
  .ticker-label span { font-size: 7px; }
  .ticker-code { display: none; }
  .viewport { display: block; padding: 8px 0; }
  .left-rail, .right-rail { display: none; }
  .center-stage { width: 100%; height: 100%; }
  .briefing-panel { width: 100%; height: 100%; grid-template-rows: 42px 1fr 58px; }
  .briefing-meta { padding: 0 15px; font-size: 6px; }
  .briefing-id { margin-left: 12px; }
  .briefing-body { width: 100%; padding: 18px 22px; }
  .eyebrow { font-size: 7px; margin-bottom: 12px; }
  .briefing-body h1 { margin: 0; font-size: clamp(34px, 10.8vw, 58px); }
  .dek { font-size: 13px; margin-top: 16px; }
  .message-copy { font-size: 8px; max-height: 76px; overflow: hidden; }
  .contract-strip { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 10px; }
  .contract-strip > span { grid-column: 1 / 3; }
  .contract-strip a { display: none; }
  .briefing-actions { padding: 0 20px; }
  .briefing-actions { gap: 8px; }
  .command-button { gap: 7px; padding: 0 9px; }
  .command-button kbd { display: none; }
  .share-button { padding: 0 10px; }
  .dispatch-time { display: none; }
  .footer-links > span { display: none; }
  .footer-links { gap: 8px; }
  .miner-toggle { padding: 0 7px; }
  .miner-toggle em { display: none; }
  .miner-tooltip { width: min(250px,78vw); right: -44px; }
  .footer-command b { max-width: 115px; overflow: hidden; white-space: nowrap; }
  .portal-view-head { height: 58px; padding: 0 18px; }
  .portal-view-head h2 { font-size: 20px; }
  .archive-list { height: calc(100% - 58px); padding: 18px; }
  .whitepaper-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; }
  .whitepaper-copy { padding: 18px; border-right: 0; overflow: hidden; }
  .whitepaper-copy h2 { font-size: 34px; }
  .whitepaper-intro { margin: 12px 0; font-size: 11px; }
  .whitepaper-sections { grid-template-columns: repeat(3,1fr); gap: 5px; }
  .whitepaper-section { padding: 7px; }
  .whitepaper-section h3 { font-size: 8px; }
  .whitepaper-section p { max-height: 49px; overflow: hidden; font-size: 6px; }
  .token-terminal { padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
  .token-identity { padding: 0; border: 0; }
  .token-identity img { width: 42px; height: 42px; }
  .token-identity strong { font-size: 13px; }
  .token-terminal dl, .token-explorer-link { display: none; }
  .wallet-button { min-height: 38px; align-self: center; }
  .claim-console { grid-column: 1 / 3; margin: 0; padding: 8px 10px; }
  .claim-console p, .claim-console > small { display: none; }
  .claim-readout { margin: 6px 0; }
  .claim-button { min-height: 32px; }
  .tier-console { display: none !important; }
  .links-modal { padding: 12px; }
  .links-modal-panel { max-height: calc(100dvh - 24px); grid-template-rows: 44px 38px minmax(0,1fr) 44px; }
  .links-modal-body { padding: 22px 18px; }
  .links-modal-heading h2 { font-size: 32px; }
  .router-glyph { flex-basis: 58px; width: 58px; height: 58px; }
  .links-module-tabs button { font-size: 6px; letter-spacing: .08em; }
  .secure-note-panel > p { margin: 10px 0 13px; font-size: 8px; }
  #secure-note-input { height: 160px; font-size: 9px; }
  .note-controls { grid-template-columns: 1fr 1fr; }
  .note-controls label { grid-column: 1/-1; }
  .note-button-primary { grid-column: 1/-1; }
  .note-share-output > div { grid-template-columns: minmax(0,1fr) auto; }
  .note-share-output input { grid-column: 1/-1; }
  .links-menu { grid-template-columns: 1fr; }
  .links-menu a { min-height: 64px; }
  .links-modal-foot > span { display: none; }
  .links-modal-foot { justify-content: flex-end; }
  .claim-modal { padding: 12px; }
  .claim-modal-body { padding: 25px 18px 20px; }
  .claim-orbit { right: 18px; top: 20px; width: 60px; height: 60px; }
  .claim-modal-kicker { margin-right: 76px; font-size: 6px; }
  .claim-modal-body h2 { max-width: 290px; font-size: 34px; }
  .claim-modal-body > p:not(.claim-modal-kicker) { font-size: 8px; }
  .reward-output { grid-template-columns: 1fr; }
  .claim-modal-foot > span { display: none; }
  .claim-modal-foot { justify-content: flex-end; }
}

@media (max-height: 700px) and (min-width: 781px) {
  .page-shell { grid-template-rows: 62px 32px minmax(0,1fr) 34px; padding-top: 8px; }
  .viewport { padding: 8px 0; }
  .briefing-panel { grid-template-rows: 42px 1fr 58px; }
  .briefing-body { padding-top: 15px; padding-bottom: 15px; }
  .briefing-body h1 { margin: 0; font-size: clamp(34px, 4.4vw, 62px); }
  .dek { margin-top: 14px; }
  .message-copy { max-height: 72px; overflow: hidden; }
  .right-rail { grid-template-rows: 120px minmax(110px,1fr); }
  .signal-card svg { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
