:root {
  color-scheme: dark;
  --bg: #101619;
  --panel: #192125;
  --inner: #1c262a;
  --ink: #f0f2e9;
  --muted: #b7c3c3;
  --line: #364347;
  --lime: #c6f894;
  --blue: #9dd3fb;
  --red: #ffa397;
  --sans: "Inter", "Arial", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;
}
* {box-sizing: border-box}
body {margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--sans)}
main, .mast, footer {width: min(1180px, calc(100% - 64px)); margin-inline: auto}
.mast {display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; border-bottom: 1px solid var(--line)}
.brand, .brand-small {font-weight: 850; letter-spacing: -.09em; line-height: 1}
.brand {font-size: 1.6rem; color: inherit; text-decoration: none}
.brand b {color: var(--lime); padding: 0 2px}
.mast-title, .meta, .kicker, h4, .feed, footer, .time, .source {font-family: var(--mono)}
.mast-title, .kicker, h4 {font-size: .73rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .11em}
.mast-title {color: var(--muted)}
.kicker {margin: 0 0 10px; color: var(--lime)}
.hero {margin: clamp(36px, 5vw, 72px) 0 28px}
h1, h2, h3, h4, p {margin: 0}
h1 {font: 710 clamp(3.4rem, 8vw, 6rem)/.96 var(--sans); letter-spacing: -.085em}
.hero > p:last-child {max-width: 60ch; margin: 16px 0 0; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.55; color: var(--muted)}
h2 {font-size: 1.44rem; letter-spacing: -.045em; line-height: 1.2}
h3 {font-size: 1.1rem; letter-spacing: -.025em}
h4 {font-size: .76rem}
.atlas {display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel)}
.atlas-chart {padding: 22px}
.panel-heading, .session-head, .end-bar {display: flex; align-items: baseline; justify-content: space-between; gap: 14px}
.atlas .panel-heading h2 {font-size: 1.16rem}
.meta, .source {color: var(--muted); font-size: .72rem; line-height: 1.5}
.map {position: relative; margin: 16px 0 12px; height: clamp(200px, 24vw, 315px); overflow: hidden; border-radius: 6px; border: 1px solid #425753; isolation: isolate; background-color: #182827;
  background-image: linear-gradient(#69938625 1px, transparent 1px), linear-gradient(90deg, #69938625 1px, transparent 1px), repeating-radial-gradient(ellipse at 28% 33%, transparent 0 9%, #7494813d 9.1% 9.4%, transparent 9.5% 16%), radial-gradient(ellipse at 35% 33%, #354739, transparent 60%);
  background-size: 23px 23px, 23px 23px, 100% 100%, 100% 100%}
.map::before, .map::after {content: ""; position: absolute; z-index: -1; width: 147%; height: 25%; border: 1px solid #8a9475; border-radius: 50%; left: -22%; top: 50%; transform: rotate(-22deg)}
.map::after {width: 46%; height: 170%; top: -38%; left: 32%; transform: rotate(48deg); border-style: dashed; border-color: #819280}
.map-frame {position: absolute; pointer-events: none; inset: 8px; border: 1px solid #96ae912e}
button, input {font: inherit}
button {min-height: 43px; padding: 7px 14px; border: 1px solid #546567; border-radius: 6px; color: var(--ink); background: #1e292d; font-size: .87rem; font-weight: 600; cursor: pointer}
button:hover:enabled {border-color: var(--lime)}
button:disabled {opacity: .5; cursor: default}
button.primary {background: var(--lime); color: #192413; border-color: var(--lime)}
button.primary:hover:enabled {background: #ddffb9}
:focus-visible {outline: 3px solid var(--blue); outline-offset: 3px}
.pin {position: absolute; display: flex; align-items: center; gap: 5px; transform: translate(-10px, -50%); border: 0; padding: 0 5px; min-height: 40px; max-width: 48%; background: transparent; text-align: left; font: 600 .83rem/1.15 var(--sans); text-shadow: 0 2px 4px #000}
.pin::before {content: ""; flex: 0 0 10px; width: 10px; height: 10px; border: 2px solid #ecf3da; border-radius: 50%; background: #6a7968; box-shadow: 0 0 0 4px #354535}
.pin[aria-pressed=true]::before, .pin:hover:enabled::before {background: var(--lime); box-shadow: 0 0 0 5px #4c6043}
.pin:nth-of-type(4n+1) {left: 16%; top: 65%}
.pin:nth-of-type(4n+2) {left: 57%; top: 31%}
.pin:nth-of-type(4n+3) {left: 12%; top: 20%}
.pin:nth-of-type(4n) {left: 54%; top: 82%}
.selector, .actions, .choices {display: flex; flex-wrap: wrap; align-items: center; gap: 8px}
.selector button, .choices button {background: transparent}
.selector button[aria-pressed=true], .choices button[aria-pressed=true] {background: #2e3c31; border-color: var(--lime)}
.stack {padding: 25px; border-left: 1px solid var(--line); background: #161e21}
.stack p:not(.kicker), .operations p, .share p, .empty {margin-top: 8px; color: var(--muted); font-size: .94rem}
.clues {padding-left: 16px; margin: 10px 0 14px; color: var(--muted); font-size: .85rem}
.clues:empty {display: none}
.stack-list {list-style: none; margin: 16px 0; padding: 0}
.stack-list li {border-top: 1px solid var(--line); padding: 7px 0; font-size: .88rem}
.stack-list b {margin-right: 6px}
label {display: block; font-size: .83rem; font-weight: 600; margin-bottom: 4px}
input {min-width: 0; min-height: 43px; padding: 8px 10px; border: 1px solid #637271; border-radius: 6px; background: #101718; color: var(--ink); font-size: .91rem}
input::placeholder {color: #9faeab}
.input-row {display: flex; flex-wrap: wrap; gap: 7px}
.input-row input {flex: 1 1 135px}
.input-row button {flex: 1 0 auto}
#message, .notice {padding: 10px 14px; margin: 0 0 16px; background: #28382d; border: 1px solid #596d56; border-radius: 6px; font-size: .94rem}
#message[data-tone=error] {background: #392727; border-color: #785a54}
.session-head {margin: 0 0 15px; flex-wrap: wrap}
.session-head h2 {font-size: clamp(1.5rem, 4vw, 2.3rem)}
#range-profile, #research {margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .88rem}
#range-profile summary, #research summary {padding: 10px 16px; color: var(--ink); cursor: pointer; font-weight: 600}
#range-profile > div, #research > div {padding: 0 16px 12px}
#research {margin-top: 22px}
#research p + p {margin-top: 8px}
#research a {color: var(--lime)}
#range-stack {display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none}
#range-stack li {padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px}
.feed {font-size: .84rem; color: var(--lime)}
.operations, .stream, .share {margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden}
.operations, .share {padding: 18px 20px}
.actions, .choices {margin-top: 12px}
.stream > .panel-heading {padding: 14px 20px; border-bottom: 1px solid var(--line)}
.lanes {display: grid; grid-template-columns: 1fr 1fr}
.lane {min-width: 0; padding: 18px 20px}
.lane + .lane {border-left: 1px solid var(--line)}
.red {--accent: var(--red)}
.blue {--accent: var(--blue)}
.lane h4 {color: var(--accent)}
.lane ol, .system ol {list-style: none; padding: 0; margin: 12px 0 0}
.lane li, .system li {display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 6px 0; align-items: baseline}
.time {color: var(--accent, var(--muted)); font-size: .78rem}
.event-title {font-size: .96rem; line-height: 1.3; font-weight: 600}
.source {display: block; overflow-wrap: anywhere}
.system {padding: 15px 20px; border-top: 1px solid var(--line)}
.system h4 {color: var(--muted)}
.stats {display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0}
.stats > div {min-width: min(100%, 180px); flex: 1; padding: 12px 18px; background: #1b2526; border: 1px solid var(--line); border-radius: 9px}
.stats dt {color: var(--muted); font: .72rem var(--mono)}
.stats dd {margin: 4px 0 0; color: var(--ink); font-size: 1.1rem; font-weight: 600}
.resource-response {border-left: 2px solid var(--lime); padding: 3px 10px; margin-top: 14px}
.resource-response p {margin-top: 3px}
.end-bar {align-items: center; margin-top: 18px}
.subtle {background: transparent}
.text-link {color: var(--lime); font-size: .9rem}
#copy-fallback {margin-top: 12px}
#copy-url {width: 100%}
footer {margin-top: 36px; margin-bottom: 20px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .69rem}
.brand-small {font-family: var(--sans); font-size: 1rem}
[hidden] {display: none}
@media(max-width: 780px) {
  main, .mast, footer {width: calc(100% - 36px)}
  .mast {min-height: 52px}
  .atlas {grid-template-columns: 1fr}
  .stack {border-left: 0; border-top: 1px solid var(--line)}
  .atlas-chart, .stack {padding: 16px}
  .hero {margin: 30px 0 19px}
}
@media(max-width: 560px) {
  .lanes {grid-template-columns: 1fr}
  .lane + .lane {border-left: 0; border-top: 1px solid var(--line)}
  .lane, .stream > .panel-heading, .operations, .share {padding: 14px}
  .pin {font-size: .73rem}
  .meta {font-size: .65rem}
}
