/* CYBERPSYCHOSIS — isolated Night City operations console. */
html[data-skin="cyberterminal"] {
  color-scheme: dark;
  --skin-bg: #080a09;
  --skin-surface: #111512;
  --skin-surface-2: #191e19;
  --skin-ink: #edf0df;
  --skin-muted: #a1aa98;
  --skin-line: #394036;
  --skin-brand: #f1d71c;
  --skin-brand-ink: #121308;
  --skin-accent: #ff5a4e;
  --skin-good: #a5e56d;
  --skin-font-display: "Bahnschrift", "DIN Alternate", "Franklin Gothic Medium", sans-serif;
  --skin-font-body: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}
[data-skin="cyberterminal"] body {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(241,215,28,.025) 50%, transparent 50.2%),
    linear-gradient(rgba(241,215,28,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,215,28,.018) 1px, transparent 1px),
    radial-gradient(ellipse at 88% 2%, rgba(157,183,35,.1), transparent 35rem),
    #080a09;
  background-size: 100% 100%, 42px 42px, 42px 42px, auto, auto;
}
[data-skin="cyberterminal"] header { background: rgba(8,10,9,.96); border-bottom-color: #3b402d; box-shadow: 0 8px 32px rgba(0,0,0,.35); }
[data-skin="cyberterminal"] header > div { max-width: 1180px; }
[data-skin="cyberterminal"] header > div > a { color: #edf0df; font-family: var(--skin-font-display); letter-spacing: .01em; }
[data-skin="cyberterminal"] header a.text-brand, [data-skin="cyberterminal"] header a span { color: #f1d71c; }
[data-skin="cyberterminal"] header nav a { border-radius: 0; font-family: var(--skin-font-display); letter-spacing: .02em; }
[data-skin="cyberterminal"] header a.text-muted { color: #abb39d; }
[data-skin="cyberterminal"] header a.bg-brand { color: #111307; }
[data-skin="cyberterminal"] main { max-width: 1080px; }
[data-skin="cyberterminal"] footer { background: #0b0e0b; border-top-color: #394036; }
[data-skin="cyberterminal"] .prose-lite { color: #c9cfba; }
[data-skin="cyberterminal"] .prose-lite h2, [data-skin="cyberterminal"] .prose-lite h3 { color: #f0f1dd; font-family: var(--skin-font-display); }
[data-skin="cyberterminal"] .prose-lite h2 { padding: .65rem 0 .4rem 1rem; border-top: 1px solid #454a32; border-left: 3px solid #f1d71c; }
[data-skin="cyberterminal"] .prose-lite a { color: #f1d71c; }
[data-skin="cyberterminal"] .prose-lite details { border-radius: 0; }
[data-skin="cyberterminal"] main > div.rounded-2xl, [data-skin="cyberterminal"] [data-guide] a, [data-skin="cyberterminal"] section.rounded-2xl { border-radius: 1px; }
[data-skin="cyberterminal"] [data-guide] a { position: relative; background: #111512; box-shadow: inset 2px 0 #4b5038; }
[data-skin="cyberterminal"] [data-guide] a:hover { background: #181d14; box-shadow: inset 4px 0 #f1d71c; }
[data-skin="cyberterminal"] [data-guide] a span { font-family: var(--skin-font-display); }
.cyber-tool { width: min(1120px, calc(100vw - 2rem)); margin: 2rem 0 0 50%; transform: translateX(-50%); }
.cyber-kicker { margin: 0 0 .45rem; color: #f1d71c; font-family: "SFMono-Regular", Consolas, monospace; font-size: .63rem; font-weight: 800; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.cyber-folio { flex: 0 0 auto; color: #7f8975; font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; }
.cyber-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid #3e4436; }
.cyber-section-heading h2 { max-width: 760px; margin: 0; color: #f0f1df; font-family: var(--skin-font-display); font-size: clamp(1.45rem,3vw,2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.cyber-section-heading p:not(.cyber-kicker) { max-width: 760px; margin: .5rem 0 0; color: #9fa895; font-size: .73rem; line-height: 1.6; }
.cyber-section-heading > a { flex: 0 0 auto; color: #f1d71c; font-size: .68rem; font-weight: 700; }
.cyber-board-foot { margin: .75rem 0 0; color: #858f7c; font-size: .63rem; line-height: 1.6; }
.cyber-result-count { color: #9ca68e; font-family: "SFMono-Regular", Consolas, monospace; font-size: .61rem; }
.cyber-source-note { color: #838d78; font-size: .6rem; line-height: 1.5; }
.cyber-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #414736; }
.cyber-matrix { width: 100%; min-width: 850px; border-collapse: collapse; color: #c4cbb6; background: #0f130f; font-size: .67rem; }
.cyber-matrix th, .cyber-matrix td { padding: .85rem; border-right: 1px solid #363c30; border-bottom: 1px solid #363c30; text-align: left; vertical-align: top; line-height: 1.55; }
.cyber-matrix thead { color: #e7d966; background: #1b2015; font-family: "SFMono-Regular", Consolas, monospace; font-size: .56rem; letter-spacing: .06em; }
.cyber-matrix tbody th { width: 145px; color: #f0f0d9; background: #171c14; }
.cyber-matrix tr > *:last-child { border-right: 0; }
.cyber-matrix tbody tr:last-child > * { border-bottom: 0; }

/* Hero: asymmetric ops console with official game art and a targeting reticle. */
.cyber-hero { position: relative; width: min(1180px, calc(100vw - 2rem)); margin-left: 50%; overflow: hidden; border: 1px solid #555b37; background: #0e120e; box-shadow: 12px 12px 0 rgba(91,100,44,.1), 0 25px 70px rgba(0,0,0,.35); transform: translateX(-50%); animation: cyber-boot .55s ease-out both; }
.cyber-hero::before { position: absolute; z-index: 5; top: 0; left: 0; width: 82px; height: 4px; background: #f1d71c; content: ""; }
.cyber-hero-topline { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .9rem; border-bottom: 1px solid #3c4232; color: #89937b; background: #0a0d0a; font-family: "SFMono-Regular", Consolas, monospace; font-size: .53rem; letter-spacing: .1em; }
.cyber-hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(350px,.95fr); }
.cyber-hero-copy { padding: clamp(1.5rem,4vw,3rem); }
.cyber-hero-copy .cyber-kicker span { color: #a5e56d; text-shadow: 0 0 12px rgba(165,229,109,.55); }
.cyber-hero h1 { max-width: 590px; margin: 0; color: #f2f1df; font-family: var(--skin-font-display); font-size: clamp(3rem,6.7vw,5.7rem); font-stretch: condensed; font-weight: 800; letter-spacing: -.065em; line-height: .78; text-transform: uppercase; }
.cyber-hero h1 > span { color: #f1d71c; }
.cyber-hero h1 small { display: block; margin-top: 1.05rem; color: #a2ab94; font-family: "SFMono-Regular", Consolas, monospace; font-size: .16em; font-weight: 500; letter-spacing: .25em; line-height: 1; }
.cyber-hero-intro { max-width: 610px; margin: 1.25rem 0 0; color: #b1b9a3; font-size: .83rem; line-height: 1.7; }
.cyber-hero-directive { margin-top: 1.25rem; padding: .9rem 1rem; border-left: 3px solid #f1d71c; background: #171c11; }
.cyber-hero-directive > span { color: #8e987c; font-family: "SFMono-Regular", Consolas, monospace; font-size: .52rem; letter-spacing: .12em; }
.cyber-hero-directive p { margin: .3rem 0 0; color: #b8c0a9; font-size: .72rem; line-height: 1.55; }
.cyber-hero-directive strong { color: #f0efd7; font-family: var(--skin-font-display); font-size: 1rem; }
.cyber-home-search { margin-top: 1.25rem; }
.cyber-home-search > label { display: block; margin-bottom: .35rem; color: #8c967e; font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.cyber-home-search > div { display: flex; align-items: center; border: 1px solid #50573a; background: #080b08; }
.cyber-home-search > div:focus-within { border-color: #f1d71c; outline: 2px solid rgba(241,215,28,.15); }
.cyber-home-search div > span { padding-left: .8rem; color: #f1d71c; font-family: monospace; font-size: 1.1rem; }
.cyber-home-search input { width: 100%; min-width: 0; padding: .82rem .7rem; border: 0; outline: 0; color: #edf0df; background: transparent; font-family: var(--skin-font-body); font-size: .8rem; }
.cyber-home-search input::placeholder { color: #737d68; }
.cyber-hero-art { position: relative; min-height: 100%; margin: 0; overflow: hidden; border-left: 1px solid #555b37; background: #070907; }
.cyber-hero-art::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, rgba(8,10,9,.55), transparent 32%), linear-gradient(0deg, rgba(8,10,9,.85), transparent 45%); }
.cyber-hero-art img { width: 100%; height: 100%; min-height: 465px; object-fit: cover; object-position: 53% center; filter: saturate(.85) contrast(1.1) brightness(.78); }
.cyber-hero-art figcaption { position: absolute; z-index: 3; right: .8rem; bottom: .7rem; left: .8rem; color: #a5ad98; font-size: .55rem; }
.cyber-hero-art figcaption span { display: block; margin-bottom: .2rem; color: #f1d71c; font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.cyber-target { position: absolute; z-index: 2; top: 43%; left: 52%; width: 130px; height: 130px; border: 1px solid rgba(241,215,28,.45); border-radius: 50%; transform: translate(-50%,-50%); }
.cyber-target::before, .cyber-target::after { position: absolute; top: 50%; left: 50%; background: rgba(241,215,28,.55); content: ""; transform: translate(-50%,-50%); }
.cyber-target::before { width: 160%; height: 1px; } .cyber-target::after { width: 1px; height: 160%; }
.cyber-target i { position: absolute; width: 12px; height: 12px; border-color: #f1d71c; border-style: solid; }
.cyber-target i:nth-child(1) { top: -5px; left: -5px; border-width: 2px 0 0 2px; } .cyber-target i:nth-child(2) { top: -5px; right: -5px; border-width: 2px 2px 0 0; }
.cyber-target i:nth-child(3) { right: -5px; bottom: -5px; border-width: 0 2px 2px 0; } .cyber-target i:nth-child(4) { bottom: -5px; left: -5px; border-width: 0 0 2px 2px; }
.cyber-signal-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #555b37; background: #0a0d0a; }
.cyber-signal-strip > div, .cyber-signal-strip > a { display: flex; flex-direction: column; justify-content: center; min-height: 90px; padding: .85rem 1rem; border-right: 1px solid #373d2f; color: #d6dbc6; text-decoration: none; }
.cyber-signal-strip > a { border-right: 0; background: #1a1e10; }
.cyber-signal-strip > a:hover { background: #292d14; }
.cyber-signal-strip span { color: #7e8970; font-family: "SFMono-Regular", Consolas, monospace; font-size: .51rem; letter-spacing: .1em; }
.cyber-signal-strip strong { margin-top: .3rem; color: #f1d71c; font-family: var(--skin-font-display); font-size: 1.15rem; line-height: 1; }
.cyber-signal-strip small { margin-top: .25rem; color: #8c957e; font-size: .56rem; line-height: 1.4; }

/* Task queue and home dossier. */
.cyber-task-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; border: 1px solid #414735; background: #414735; }
.cyber-task-card { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 1.25rem; overflow: hidden; background: #111511; }
.cyber-task-card::after { position: absolute; right: -1.3rem; bottom: -3rem; color: rgba(241,215,28,.035); font-family: var(--skin-font-display); font-size: 9rem; font-weight: 800; content: "+"; transform: rotate(10deg); }
.cyber-task-card.task-code { background: #16170e; }
.cyber-task-index { display: flex; align-items: center; gap: .6rem; }
.cyber-task-index span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #767c41; color: #f1d71c; font-family: monospace; font-size: .6rem; }
.cyber-task-index small { color: #89937c; font-family: monospace; font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; }
.cyber-task-card h3 { max-width: 390px; margin: 1.1rem 0 0; color: #eeefdb; font-family: var(--skin-font-display); font-size: 1.45rem; line-height: 1.08; }
.cyber-task-card > p { max-width: 470px; margin: .65rem 0 1rem; color: #a3ad96; font-size: .7rem; line-height: 1.65; }
.cyber-task-foot { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid #363c2e; }
.cyber-task-foot small { color: #78836e; font-size: .56rem; }
.cyber-task-foot a { color: #f1d71c; font-size: .65rem; font-weight: 700; text-decoration: none; }
.cyber-build-preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.cyber-build-preview { position: relative; min-height: 200px; padding: 1.15rem; border: 1px solid #454b36; color: #dce0cd; background: #111510; text-decoration: none; transition: transform .16s, border-color .16s; }
.cyber-build-preview:hover { border-color: #f1d71c; transform: translateY(-3px); }
.cyber-build-preview > span { color: #8c9678; font-family: monospace; font-size: .56rem; }
.cyber-build-preview h3 { margin: 1.4rem 0 0; color: #f1d71c; font-family: var(--skin-font-display); font-size: 1.45rem; line-height: 1; }
.cyber-build-preview p { color: #a5ae98; font-size: .68rem; line-height: 1.55; }
.cyber-build-preview small { position: absolute; bottom: 1rem; left: 1.15rem; color: #78836c; font-family: monospace; font-size: .5rem; letter-spacing: .06em; }
.cyber-intel-band { display: grid; grid-template-columns: 1.25fr .75fr; border: 1px solid #555b37; }
.cyber-intel-main { padding: 1.4rem; background: #151a11; }
.cyber-intel-main h2 { margin: 0; color: #eeefdc; font-family: var(--skin-font-display); font-size: 1.8rem; }
.cyber-intel-main > p:not(.cyber-kicker) { color: #a9b29b; font-size: .72rem; line-height: 1.65; }
.cyber-intel-main a { color: #f1d71c; font-size: .68rem; font-weight: 700; }
.cyber-intel-codes { padding: 1.1rem; background: #0c100c; }
.cyber-intel-codes > span { color: #828d74; font-family: monospace; font-size: .54rem; letter-spacing: .1em; }
.cyber-intel-codes a { display: block; padding: .65rem 0; border-bottom: 1px solid #343a2d; text-decoration: none; }
.cyber-intel-codes code { display: block; color: #f1d71c; font-size: .75rem; font-weight: 700; }
.cyber-intel-codes small { color: #929d84; font-size: .58rem; }
.cyber-intel-codes p { margin: .7rem 0 0; color: #717c67; font-size: .54rem; }
.cyber-official-links { display: flex; align-items: center; gap: 0; border: 1px solid #414735; }
.cyber-official-links > span { margin-right: auto; padding: 1rem; color: #7f8a71; font-family: monospace; font-size: .55rem; letter-spacing: .1em; }
.cyber-official-links a { align-self: stretch; display: grid; place-items: center; padding: 0 1rem; border-left: 1px solid #414735; color: #d6dbc4; font-size: .65rem; text-decoration: none; }
.cyber-official-links a:hover { color: #f1d71c; background: #181d12; }

/* Trait comparison. */
.cyber-filter-rail { display: flex; flex-wrap: wrap; border: 1px solid #424835; width: fit-content; }
.cyber-filter-rail button { padding: .62rem .8rem; border: 0; border-right: 1px solid #424835; color: #9ca68e; background: #10140f; font-family: monospace; font-size: .58rem; text-transform: uppercase; cursor: pointer; }
.cyber-filter-rail button:last-child { border-right: 0; }
.cyber-filter-rail button.selected { color: #17190a; background: #f1d71c; }
.cyber-trait-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; border: 1px solid #414735; background: #414735; }
.cyber-trait-card { padding: 1.15rem; background: #111511; }
.cyber-trait-card.is-compared { background: #1a1e11; box-shadow: inset 3px 0 #f1d71c; }
.cyber-trait-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cyber-trait-top > span { color: #f1d71c; font-family: monospace; font-size: .58rem; }
.cyber-trait-top small { color: #7f8b72; font-family: monospace; font-size: .53rem; text-transform: uppercase; }
.cyber-trait-card h3 { margin: .65rem 0 0; color: #efefdc; font-family: var(--skin-font-display); font-size: 1.55rem; }
.cyber-trait-card > p { color: #adb5a0; font-size: .69rem; line-height: 1.65; }
.cyber-trait-tradeoff { padding: .65rem .75rem; border-left: 2px solid #b24e3e; background: #1c1410; }
.cyber-trait-tradeoff strong { color: #dd7765; font-family: monospace; font-size: .5rem; letter-spacing: .08em; }
.cyber-trait-tradeoff p { margin: .25rem 0 0; color: #b9a595; font-size: .63rem; line-height: 1.5; }
.cyber-trait-fit { color: #929d84; }
.cyber-trait-fit strong { color: #c9d0b9; }
.cyber-trait-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid #363c2e; }
.cyber-trait-actions button { padding: .45rem .65rem; border: 1px solid #626943; color: #e1d968; background: transparent; font-size: .58rem; cursor: pointer; }
.cyber-trait-actions button[aria-pressed="true"] { color: #15170a; background: #f1d71c; }
.cyber-trait-actions a { color: #f1d71c; font-size: .6rem; }
.cyber-compare-tray { margin-top: 1rem; padding: 1rem; border: 1px solid #656b3d; background: #171b10; }
.cyber-compare-tray > span { color: #f1d71c; font-family: monospace; font-size: .55rem; }
.cyber-compare-tray > div { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.cyber-compare-tray button { padding: .4rem .55rem; border: 1px solid #565d39; color: #e3e6d2; background: #0f130e; font-size: .6rem; cursor: pointer; }
.cyber-compare-tray p { color: #8f9981; font-size: .6rem; }

/* Loadout templates and planner. */
.cyber-template-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.cyber-template-card { position: relative; display: flex; flex-direction: column; padding: 1.15rem; border: 1px solid #444b35; background: #111510; scroll-margin-top: 100px; }
.cyber-template-card.is-active { border-color: #f1d71c; box-shadow: inset 0 3px #f1d71c; }
.cyber-template-number { color: #828e72; font-family: monospace; font-size: .56rem; }
.cyber-template-card h3 { margin: .75rem 0 0; color: #f1d71c; font-family: var(--skin-font-display); font-size: 1.55rem; line-height: 1; }
.cyber-template-tagline { min-height: 2.7em; color: #a2ac94; font-size: .66rem; line-height: 1.45; }
.cyber-template-card > ul { margin: .7rem 0; padding: 0; border-top: 1px solid #373e2f; list-style: none; }
.cyber-template-card > ul li { padding: .45rem 0; border-bottom: 1px solid #31372b; }
.cyber-template-card > ul span, .cyber-template-card > ul strong { display: block; }
.cyber-template-card > ul span { color: #77836a; font-family: monospace; font-size: .48rem; text-transform: uppercase; }
.cyber-template-card > ul strong { margin-top: .15rem; color: #d8ddc9; font-size: .64rem; }
.cyber-template-card > ol { padding-left: 1.1rem; color: #9ea892; font-size: .61rem; line-height: 1.55; }
.cyber-template-card > ol li { margin-bottom: .55rem; }
.cyber-template-card > button { width: 100%; margin-top: auto; padding: .65rem; border: 1px solid #f1d71c; color: #f1d71c; background: transparent; font-family: var(--skin-font-display); font-weight: 700; cursor: pointer; }
.cyber-template-card > button:hover { color: #141608; background: #f1d71c; }
.cyber-planner { border: 1px solid #656b3d; background: #0d110d; }
.cyber-planner-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid #4b5237; background: #171c11; }
.cyber-planner-head h2 { margin: 0; color: #f1d71c; font-family: var(--skin-font-display); font-size: 2rem; }
.cyber-planner-head p:not(.cyber-kicker) { max-width: 720px; margin: .4rem 0 0; color: #a6b096; font-size: .68rem; line-height: 1.55; }
.cyber-planner-mode { flex: 0 0 auto; text-align: right; }
.cyber-planner-mode span, .cyber-planner-mode strong { display: block; }
.cyber-planner-mode span { color: #7d886e; font-family: monospace; font-size: .5rem; }
.cyber-planner-mode strong { margin-top: .3rem; color: #e6e8d5; font-family: monospace; font-size: .65rem; }
.cyber-planner-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; }
.cyber-planner-controls { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: #3b422f; }
.cyber-slot-control { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 1rem; background: #111510; }
.cyber-slot-control > span { display: flex; align-items: start; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.cyber-slot-control b { color: #dce0cd; font-family: var(--skin-font-display); font-size: .72rem; }
.cyber-slot-control small { color: #768169; font-size: .48rem; }
.cyber-slot-control select { width: 100%; min-width: 0; padding: .7rem; border: 1px solid #535b3b; border-radius: 0; color: #f0f0dc; background: #090d09; font-family: var(--skin-font-body); font-size: .68rem; cursor: pointer; }
.cyber-slot-control select:focus { border-color: #f1d71c; outline: 2px solid rgba(241,215,28,.14); }
.cyber-planner-readout { padding: 1.15rem; border-left: 1px solid #4b5237; background: #151a11; }
.cyber-readout-label { color: #f1d71c; font-family: monospace; font-size: .55rem; letter-spacing: .12em; }
.cyber-readout-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: .8rem 0; border: 1px solid #454d34; }
.cyber-readout-metrics > div { padding: .75rem; }
.cyber-readout-metrics > div:first-child { border-right: 1px solid #454d34; }
.cyber-readout-metrics strong, .cyber-readout-metrics span { display: block; }
.cyber-readout-metrics strong { color: #f1d71c; font-family: var(--skin-font-display); font-size: 1.75rem; }
.cyber-readout-metrics span { color: #89957a; font-size: .5rem; }
.cyber-clear, .cyber-conflict { padding: .75rem; border-left: 3px solid #a5e56d; background: #111a10; }
.cyber-conflict { border-color: #ff5a4e; background: #24110e; }
.cyber-clear strong, .cyber-conflict strong { color: #a5e56d; font-family: monospace; font-size: .55rem; }
.cyber-conflict strong { color: #ff8d7e; }
.cyber-clear p, .cyber-conflict p { margin: .35rem 0 0; color: #a2ad94; font-size: .58rem; line-height: 1.5; }
.cyber-crew-warning { color: #e6ba6a; font-size: .6rem; }
.cyber-planner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: 1rem; }
.cyber-planner-actions button { min-height: 38px; padding: .5rem; border: 1px solid #666e45; color: #e4e7d5; background: transparent; font-size: .6rem; cursor: pointer; }
.cyber-planner-actions button.primary { grid-column: 1 / -1; color: #15170a; border-color: #f1d71c; background: #f1d71c; font-weight: 800; }
.cyber-planner-notice { min-height: 3.4em; color: #939f83; font-size: .57rem; line-height: 1.5; }
.cyber-selection-ledger { border-top: 1px solid #4b5237; }
.cyber-selection-title { display: flex; justify-content: space-between; padding: .65rem 1rem; color: #828e72; background: #10140e; font-family: monospace; font-size: .53rem; }
.cyber-selection-title strong { color: #cbd2ba; }
.cyber-selection-ledger > article { display: grid; grid-template-columns: 160px 1fr; gap: .6rem 1rem; padding: 1rem; border-top: 1px solid #343b2c; }
.cyber-selection-ledger article div > span { color: #7f8b70; font-family: monospace; font-size: .48rem; text-transform: uppercase; }
.cyber-selection-ledger h3 { margin: .2rem 0 0; color: #e9ecd9; font-family: var(--skin-font-display); font-size: 1rem; }
.cyber-selection-ledger article > p { margin: 0; color: #a6b097; font-size: .62rem; line-height: 1.55; }
.cyber-selection-ledger dl { grid-column: 1 / -1; display: flex; gap: 1px; margin: 0; background: #353c2c; }
.cyber-selection-ledger dl > div { flex: 1; padding: .45rem .6rem; background: #11150f; }
.cyber-selection-ledger dt { color: #79866b; font-size: .48rem; }
.cyber-selection-ledger dd { margin: .15rem 0 0; color: #e0e4d1; font-size: .6rem; }
.cyber-selection-ledger details { grid-column: 1 / -1; color: #9ca78e; font-size: .6rem; }
.cyber-selection-ledger details p { line-height: 1.55; }
.cyber-selection-ledger article > a { grid-column: 1 / -1; color: #f1d71c; font-size: .58rem; }
.cyber-planner > .cyber-board-foot { padding: 0 1rem 1rem; }
.cyber-empty { padding: 1rem; color: #929e82; font-size: .65rem; }

/* Codes. */
.cyber-codes-board { border: 1px solid #555d38; background: #0d110d; }
.cyber-code-terminal-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid #444c32; background: #171c11; }
.cyber-code-terminal-head h2 { margin: 0; color: #f1d71c; font-family: var(--skin-font-display); font-size: 2rem; }
.cyber-code-terminal-head p:not(.cyber-kicker) { max-width: 690px; color: #a6b096; font-size: .67rem; line-height: 1.55; }
.cyber-code-terminal-head > span { flex: 0 0 auto; height: fit-content; padding: .4rem .55rem; border: 1px solid #657142; color: #b7df83; font-family: monospace; font-size: .53rem; }
.cyber-code-terminal-head i { display: inline-block; width: 6px; height: 6px; margin-right: .3rem; border-radius: 50%; background: #a5e56d; box-shadow: 0 0 10px #a5e56d; }
.cyber-code-list { padding: 0 1rem; }
.cyber-code-row { display: grid; grid-template-columns: 1fr 1.25fr 140px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid #39412e; }
.cyber-code-string span { display: block; color: #76836a; font-family: monospace; font-size: .48rem; }
.cyber-code-string code { display: inline-block; margin-top: .25rem; color: #f1d71c; font-size: 1.05rem; font-weight: 800; user-select: all; }
.cyber-code-reward strong, .cyber-code-reward small { display: block; }
.cyber-code-reward strong { color: #dde2ce; font-size: .67rem; }
.cyber-code-reward small { margin-top: .25rem; color: #818e72; font-size: .54rem; }
.cyber-code-row > button { padding: .65rem; border: 1px solid #f1d71c; color: #f1d71c; background: transparent; font-size: .6rem; cursor: pointer; }
.cyber-code-row > button:hover { color: #15170a; background: #f1d71c; }
.cyber-code-row details { grid-column: 1 / -1; color: #929f81; font-size: .58rem; }
.cyber-code-row details p { max-width: 850px; line-height: 1.55; }
.cyber-redeem-track { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 1rem; background: #3c442f; }
.cyber-redeem-track > div { padding: 1rem; background: #141910; }
.cyber-redeem-track span { color: #f1d71c; font-family: monospace; font-size: .55rem; }
.cyber-redeem-track strong { display: block; margin-top: .45rem; color: #e0e5d1; font-size: .7rem; }
.cyber-redeem-track p { color: #909d7f; font-size: .59rem; line-height: 1.5; }
.cyber-history-toggle { margin: 1rem; padding: .65rem .8rem; border: 1px solid #5d6641; color: #d8deca; background: transparent; font-size: .62rem; cursor: pointer; }
.cyber-retired-list { margin: 0 1rem 1rem; border: 1px solid #3c442f; }
.cyber-retired-list details { padding: .6rem .75rem; border-bottom: 1px solid #353d2b; }
.cyber-retired-list details:last-child { border-bottom: 0; }
.cyber-retired-list summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; }
.cyber-retired-list code { color: #c6ceba; }
.cyber-retired-list summary span { color: #7e8a70; font-family: monospace; font-size: .48rem; }
.cyber-retired-list p { color: #949f87; font-size: .6rem; line-height: 1.5; }
.cyber-codes-board > .cyber-board-foot { padding: 0 1rem 1rem; }

/* Mission routes and official art. */
.cyber-guide-art { margin: 0 0 1rem; border: 1px solid #454d34; background: #0b0e0b; }
.cyber-guide-art img { display: block; width: 100%; max-height: 390px; object-fit: cover; }
.cyber-guide-art figcaption { padding: .55rem .7rem; color: #828e74; font-size: .54rem; }
.cyber-route-list { margin: 0; padding: 0; border: 1px solid #414936; list-style: none; }
.cyber-route-list > li { display: grid; grid-template-columns: 65px 1fr; min-height: 150px; border-bottom: 1px solid #414936; background: #111510; }
.cyber-route-list > li:last-child { border-bottom: 0; }
.cyber-route-marker { display: flex; flex-direction: column; align-items: center; padding-top: 1.2rem; border-right: 1px solid #414936; }
.cyber-route-marker span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #f1d71c; color: #f1d71c; font-family: monospace; font-size: .56rem; }
.cyber-route-marker i { width: 1px; flex: 1; margin-top: .6rem; background: linear-gradient(#747b43,transparent); }
.cyber-route-list li > div:last-child { padding: 1.2rem; }
.cyber-route-list small { color: #8d987b; font-family: monospace; font-size: .52rem; letter-spacing: .09em; }
.cyber-route-list h3 { margin: .35rem 0 0; color: #edf0dc; font-family: var(--skin-font-display); font-size: 1.35rem; }
.cyber-route-list p { max-width: 800px; color: #a5af96; font-size: .68rem; line-height: 1.65; }
.cyber-capri-metrics { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; margin-top: 1rem; border: 1px solid #4a5135; background: #4a5135; }
.cyber-capri-metrics > div { padding: .8rem; background: #171c11; }
.cyber-capri-metrics strong, .cyber-capri-metrics span { display: block; }
.cyber-capri-metrics strong { color: #f1d71c; font-family: var(--skin-font-display); font-size: 1.5rem; }
.cyber-capri-metrics span { color: #8e9a7e; font-size: .52rem; }

/* Sandevistan, Psyche and updates. */
.cyber-sandevistan-hero { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid #4a5235; background: #10150f; }
.cyber-sandevistan-hero figure { margin: 0; overflow: hidden; }
.cyber-sandevistan-hero img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.cyber-sandevistan-hero > div { padding: 1.4rem; }
.cyber-sandevistan-hero h2 { margin: 0; color: #eef0dc; font-family: var(--skin-font-display); font-size: 2rem; line-height: 1; }
.cyber-sandevistan-hero p:not(.cyber-kicker) { color: #a8b29a; font-size: .69rem; line-height: 1.65; }
.cyber-sandevistan-hero a { color: #f1d71c; font-size: .62rem; }
.cyber-sandevistan-board > .cyber-table-scroll { margin-top: 1rem; }
.cyber-version-warning { margin-top: 1rem; padding: 1.1rem; border: 1px solid #9b493b; background: #20120f; scroll-margin-top: 100px; }
.cyber-version-warning > span { color: #ef7968; font-family: monospace; font-size: .55rem; letter-spacing: .09em; }
.cyber-version-warning h3 { margin: .45rem 0 0; color: #f0d4c6; font-family: var(--skin-font-display); font-size: 1.3rem; }
.cyber-version-warning p { color: #c1a698; font-size: .67rem; line-height: 1.65; }
.cyber-run-gates { margin-top: 1rem; padding: 1rem; border: 1px solid #454d34; background: #11160f; }
.cyber-run-gates > span { color: #f1d71c; font-family: monospace; font-size: .55rem; }
.cyber-run-gates ol { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; margin: .7rem 0; padding: 0; background: #454d34; list-style: none; }
.cyber-run-gates li { padding: .7rem; background: #171c12; }
.cyber-run-gates li small, .cyber-run-gates li strong, .cyber-run-gates li span { display: block; }
.cyber-run-gates li small { color: #808d70; font-size: .48rem; }
.cyber-run-gates li strong { color: #f1d71c; font-family: var(--skin-font-display); font-size: 1.6rem; }
.cyber-run-gates li span { color: #98a489; font-size: .52rem; }
.cyber-run-gates > p { color: #949f86; font-size: .62rem; line-height: 1.55; }
.cyber-psyche-scale { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; border: 1px solid #444c33; background: #444c33; }
.cyber-psyche-scale article { padding: 1rem; background: #111610; }
.cyber-psyche-scale article > span { color: #8e9a7b; font-family: monospace; font-size: .52rem; }
.cyber-psyche-scale h3 { margin: 1rem 0 0; color: #a5e56d; font-family: var(--skin-font-display); font-size: 1.35rem; }
.cyber-psyche-scale small { color: #a2ad91; font-family: monospace; font-size: .5rem; }
.cyber-psyche-scale p { color: #9da98e; font-size: .62rem; line-height: 1.6; }
.cyber-psyche-scale .psyche-edgy h3 { color: #f1d71c; }
.cyber-psyche-scale .psyche-fractured { background: #1b180e; }
.cyber-psyche-scale .psyche-fractured h3 { color: #ed9f52; }
.cyber-psyche-scale .psyche-breaking { background: #21110e; }
.cyber-psyche-scale .psyche-breaking h3 { color: #ff7566; }
.cyber-psyche-protocol { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
.cyber-psyche-protocol > div { padding: 1rem; border-top: 2px solid #767e45; background: #141910; }
.cyber-psyche-protocol span { color: #f1d71c; font-family: monospace; font-size: .52rem; }
.cyber-psyche-protocol h3 { color: #e1e6d2; font-family: var(--skin-font-display); font-size: 1rem; }
.cyber-psyche-protocol p { color: #99a58a; font-size: .62rem; line-height: 1.55; }
.cyber-update-status { display: grid; grid-template-columns: 1fr 210px; border: 1px solid #4c5437; background: #141910; }
.cyber-update-status > div { padding: 1.4rem; }
.cyber-update-status h2 { margin: 0; color: #f1d71c; font-family: var(--skin-font-display); font-size: 2rem; line-height: 1; }
.cyber-update-status p:not(.cyber-kicker) { color: #a4af95; font-size: .68rem; line-height: 1.65; }
.cyber-update-status figure { margin: 0; padding: .75rem; border-left: 1px solid #4c5437; text-align: center; }
.cyber-update-status img { width: 140px; height: 140px; object-fit: contain; }
.cyber-update-status figcaption { color: #88957a; font-size: .52rem; line-height: 1.45; }
.cyber-update-ledger { border: 1px solid #454d34; border-top: 0; }
.cyber-update-ledger article { display: grid; grid-template-columns: 90px 1fr 70px; gap: 1rem; padding: 1rem; border-bottom: 1px solid #3e4630; scroll-margin-top: 100px; }
.cyber-update-ledger article:last-child { border-bottom: 0; }
.cyber-update-ledger time { color: #f1d71c; font-family: monospace; font-size: .56rem; }
.cyber-update-ledger h3 { margin: 0; color: #e2e7d4; font-family: var(--skin-font-display); font-size: 1.1rem; }
.cyber-update-ledger p { color: #9ca88d; font-size: .63rem; line-height: 1.6; }
.cyber-update-ledger a { color: #f1d71c; font-size: .56rem; }
.cyber-update-ledger article > a { text-align: right; }
.cyber-unknown-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 1rem; border: 1px solid #444c33; background: #444c33; }
.cyber-unknown-grid > div { padding: .85rem; background: #12160f; }
.cyber-unknown-grid span, .cyber-unknown-grid strong { display: block; }
.cyber-unknown-grid span { color: #7e8b6f; font-family: monospace; font-size: .47rem; }
.cyber-unknown-grid strong { margin-top: .35rem; color: #b7c0a9; font-size: .62rem; }

/* First-run checklist. */
.cyber-check-count { display: grid; place-items: center; min-width: 60px; height: 36px; border: 1px solid #656e41; color: #f1d71c; font-family: monospace; font-size: .64rem; }
.cyber-first-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; border: 1px solid #444c33; background: #444c33; }
.cyber-first-grid button { display: grid; grid-template-columns: 32px 1fr; gap: .7rem; min-height: 125px; padding: 1rem; border: 0; color: #dce2cf; background: #111610; text-align: left; cursor: pointer; }
.cyber-first-grid button > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #717a49; color: #f1d71c; font-family: monospace; font-size: .57rem; }
.cyber-first-grid strong, .cyber-first-grid small { display: block; }
.cyber-first-grid strong { font-size: .68rem; line-height: 1.45; }
.cyber-first-grid small { margin-top: .4rem; color: #96a287; font-size: .6rem; line-height: 1.55; }
.cyber-first-grid button.done { background: #142012; }
.cyber-first-grid button.done > span { color: #142012; border-color: #a5e56d; background: #a5e56d; }
.cyber-first-grid button.done strong { color: #b3c9a3; text-decoration: line-through; text-decoration-color: #647b58; }

.cyber-tool button:focus-visible, .cyber-tool a:focus-visible, .cyber-tool select:focus-visible, .cyber-home-search input:focus-visible { outline: 2px solid #f1d71c; outline-offset: 3px; }
@keyframes cyber-boot { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cyber-hero { animation: none; } .cyber-build-preview { transition: none; } }

@media (max-width: 900px) {
  .cyber-hero-grid { grid-template-columns: 1fr 330px; }
  .cyber-hero h1 { font-size: clamp(2.8rem,6.5vw,4.4rem); }
  .cyber-hero-copy { padding: 1.5rem; }
  .cyber-template-grid { grid-template-columns: 1fr; }
  .cyber-template-tagline { min-height: 0; }
  .cyber-template-card > button { margin-top: .6rem; }
  .cyber-planner-grid { grid-template-columns: 1fr 290px; }
  .cyber-slot-control > span { display: block; }
  .cyber-slot-control small { display: block; margin-top: .2rem; }
  .cyber-code-row { grid-template-columns: 1fr 1fr 115px; }
  .cyber-psyche-scale { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .cyber-tool, .cyber-hero { width: calc(100vw - 1rem); }
  .cyber-hero-topline span:nth-child(2) { display: none; }
  .cyber-hero-grid { grid-template-columns: 1fr; }
  .cyber-hero-art { min-height: 300px; border-top: 1px solid #555b37; border-left: 0; }
  .cyber-hero-art img { min-height: 300px; max-height: 380px; }
  .cyber-hero h1 { font-size: clamp(3rem,13vw,5rem); }
  .cyber-signal-strip { grid-template-columns: repeat(2,1fr); }
  .cyber-signal-strip > div:nth-child(2) { border-right: 0; }
  .cyber-signal-strip > div, .cyber-signal-strip > a { border-bottom: 1px solid #373d2f; }
  .cyber-signal-strip > a { border-bottom: 0; }
  .cyber-task-grid, .cyber-trait-grid { grid-template-columns: 1fr; }
  .cyber-task-card { min-height: 250px; }
  .cyber-build-preview-grid { grid-template-columns: 1fr; }
  .cyber-build-preview { min-height: 175px; }
  .cyber-intel-band { grid-template-columns: 1fr; }
  .cyber-official-links { flex-wrap: wrap; }
  .cyber-official-links > span { width: 100%; border-bottom: 1px solid #414735; }
  .cyber-official-links a { flex: 1; min-height: 48px; padding: .6rem; text-align: center; }
  .cyber-planner-grid { grid-template-columns: 1fr; }
  .cyber-planner-readout { border-top: 1px solid #4b5237; border-left: 0; }
  .cyber-code-terminal-head { display: block; }
  .cyber-code-terminal-head > span { display: inline-block; margin-top: .6rem; }
  .cyber-code-row { grid-template-columns: 1fr 125px; gap: .7rem; }
  .cyber-code-reward { grid-column: 1 / -1; grid-row: 2; }
  .cyber-code-row > button { grid-column: 2; grid-row: 1; }
  .cyber-redeem-track { grid-template-columns: 1fr; }
  .cyber-capri-metrics { grid-template-columns: repeat(3,1fr); }
  .cyber-sandevistan-hero { grid-template-columns: 1fr; }
  .cyber-sandevistan-hero img { min-height: 0; max-height: 300px; }
  .cyber-update-status { grid-template-columns: 1fr; }
  .cyber-update-status figure { display: flex; align-items: center; gap: 1rem; border-top: 1px solid #4c5437; border-left: 0; text-align: left; }
  .cyber-update-status img { width: 90px; height: 90px; }
  .cyber-update-ledger article { grid-template-columns: 65px 1fr; }
  .cyber-update-ledger article > a { grid-column: 2; text-align: left; }
  .cyber-unknown-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .cyber-section-heading { display: block; }
  .cyber-folio { display: block; margin-top: .5rem; }
  .cyber-hero-copy { padding: 1.15rem; }
  .cyber-hero-intro { font-size: .76rem; }
  .cyber-hero-topline { font-size: .46rem; }
  .cyber-signal-strip > div, .cyber-signal-strip > a { min-height: 82px; padding: .7rem; }
  .cyber-signal-strip strong { font-size: 1rem; }
  .cyber-task-foot { align-items: start; flex-direction: column; gap: .5rem; }
  .cyber-filter-rail { width: 100%; }
  .cyber-filter-rail button { flex: 1 1 25%; border-bottom: 1px solid #424835; }
  .cyber-planner-controls { grid-template-columns: 1fr; }
  .cyber-planner-head { padding: 1rem; }
  .cyber-planner-mode { display: none; }
  .cyber-selection-ledger > article { grid-template-columns: 1fr; }
  .cyber-selection-ledger article > p { grid-column: 1; }
  .cyber-selection-ledger dl { flex-direction: column; }
  .cyber-code-list { padding: 0 .75rem; }
  .cyber-code-string code { font-size: .9rem; }
  .cyber-code-row > button { padding: .55rem .35rem; }
  .cyber-route-list > li { grid-template-columns: 48px 1fr; }
  .cyber-route-list li > div:last-child { padding: 1rem .85rem; }
  .cyber-route-list h3 { font-size: 1.15rem; }
  .cyber-capri-metrics { grid-template-columns: repeat(2,1fr); }
  .cyber-run-gates ol { grid-template-columns: repeat(5,minmax(58px,1fr)); overflow-x: auto; }
  .cyber-psyche-scale, .cyber-psyche-protocol, .cyber-first-grid { grid-template-columns: 1fr; }
  .cyber-first-grid button { min-height: 0; }
  .cyber-update-status > div { padding: 1rem; }
  .cyber-update-status h2 { font-size: 1.65rem; }
  .cyber-update-ledger article { gap: .6rem; padding: .85rem; }
}
