/* CyberSerch room — one shared layout, two intentional material palettes. */
:root {
  color-scheme: light;
  --page: #f4f2e9;
  --surface: #fffdf6;
  --surface-soft: #eeeee2;
  --surface-raised: #ffffff;
  --ink: #183b3d;
  --muted: #5b706b;
  --quiet: #768b81;
  --line: #d2dbce;
  --line-strong: #aabeb0;
  --accent: #187e72;
  --accent-bright: #2c9c88;
  --accent-wash: #e0eee5;
  --accent-ink: #ffffff;
  --gold: #b18b4d;
  --office-opacity: 1;
  --lab-opacity: 0;
  --room-bg: #f7f7ef;
  --room-light: #dce9db;
  --shadow: 0 22px 65px -45px #294b4775;
  --radius: 22px;
  --font: "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  scroll-behavior: smooth;
}
:root[data-mode="laboratorio"], :root[data-mode="lab"] {
  color-scheme: dark;
  --page: #081725;
  --surface: #102637;
  --surface-soft: #132e3f;
  --surface-raised: #173347;
  --ink: #e7f6ef;
  --muted: #a2bfc3;
  --quiet: #789da6;
  --line: #294958;
  --line-strong: #477886;
  --accent: #6de7c8;
  --accent-bright: #88f7de;
  --accent-wash: #183e44;
  --accent-ink: #092b2e;
  --gold: #dfbd7c;
  --office-opacity: 0;
  --lab-opacity: 1;
  --room-bg: #0c2031;
  --room-light: #154448;
  --shadow: 0 26px 72px -40px #010910;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.6; transition: color 400ms, background-color 400ms; overflow-x: hidden; }
html.dialog-open { overflow: hidden; }
.station-dialog { overscroll-behavior: contain; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 25% 18%, var(--room-light), transparent 58%); opacity: .27; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .23em; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.1vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.2rem; }
button, .button { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
button:disabled { cursor: not-allowed; opacity: .55; }
button, .button, a { touch-action: manipulation; }
button, .button { transition: border-color 180ms, background-color 180ms, color 180ms, transform 180ms, box-shadow 180ms; }
button:hover:not(:disabled), .button:hover { border-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 18px; transform: translateY(-170%); z-index: 100; border-radius: 10px; color: var(--accent-ink); background: var(--accent); }
.skip-link:focus { transform: translateY(0); }
.site-nav, main, .room-footer { width: min(1760px, calc(100% - 80px)); margin-inline: auto; }
.site-nav { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 750; letter-spacing: .1em; line-height: 1.4; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 450; letter-spacing: .025em; }
.brand-emblem { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--page); border-radius: 14px 14px 14px 3px; font-size: .83rem; letter-spacing: .07em; }
.mode-control { display: flex; align-items: center; gap: 14px; font-size: .88rem; white-space: nowrap; color: var(--muted); }
#mode-office-label, #mode-lab-label { transition: color 400ms; }
html[data-mode="oficina"] #mode-office-label, html[data-mode="laboratorio"] #mode-lab-label { color: var(--ink); font-weight: 700; }
.mode-switch { position: relative; display: block; width: 78px; height: 42px; cursor: pointer; flex-shrink: 0; }
.mode-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 2; }
.switch-plate { position: absolute; inset: 0; background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 13px; box-shadow: inset 0 3px 7px #09282412, 0 1px 0 var(--surface-raised); }
.switch-rocker { position: absolute; top: 5px; left: 5px; width: 31px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; background: linear-gradient(145deg, var(--surface-raised), var(--surface-soft)); box-shadow: 0 2px 4px #071a2526; transition: transform 400ms cubic-bezier(.2,.75,.25,1); }
.switch-rocker::after { content: ""; position: absolute; inset: 9px 10px; border-inline: 1px solid var(--line-strong); }
.switch-led { width: 6px; height: 6px; position: absolute; right: 13px; top: 17px; border-radius: 50%; background: var(--quiet); opacity: .45; }
.mode-switch input:checked + .switch-plate .switch-rocker { transform: translateX(35px); }
.mode-switch input:checked + .switch-plate .switch-led { right: auto; left: 14px; background: var(--accent); opacity: 1; box-shadow: 0 0 10px var(--accent); }
.mode-switch input:focus-visible + .switch-plate { outline: 3px solid var(--accent); outline-offset: 5px; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-actions a { font-size: .86rem; text-decoration: none; color: var(--ink); }
#language-select { border: 1px solid var(--line); padding: 8px 28px 8px 12px; border-radius: 9px; color: var(--ink); background: var(--surface); font-size: .78rem; font-weight: 650; min-height: 40px; }
.room-intro { display: grid; grid-template-columns: 1.1fr .7fr; align-items: end; gap: 50px; padding: 43px 0 31px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-weight: 650; font-size: .7rem; letter-spacing: .16em; line-height: 1.6; }
.room-intro h1 { max-width: 850px; font-size: clamp(2.25rem, 3.25vw, 3.65rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.07; }
.intro-aside { max-width: 440px; justify-self: end; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.intro-aside p { margin-bottom: 9px; }
.scene-hint { font-size: .78rem; color: var(--quiet); }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: 24px; align-items: stretch; }
.scene-shell { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 27px; background: var(--room-bg); box-shadow: var(--shadow); overflow: hidden; transition: background-color 400ms, border-color 400ms; }
.scene-topline, .scene-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .65rem; letter-spacing: .08em; color: var(--quiet); }
.scene-topline { padding-bottom: 4px; }
.scene-topline span:first-child { color: var(--accent); font-weight: 700; }
.scene-bottomline { min-height: 52px; padding-top: 8px; letter-spacing: .02em; }
.scene-bottomline #station-hover { line-height: 1.4; }
.scene-viewport { position: relative; overflow: hidden; isolation: isolate; }
.isometric-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: visible; }
.skin-oficina, .skin-laboratorio { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; transition: opacity 400ms ease; }
.skin-oficina { opacity: var(--office-opacity); }
.skin-laboratorio { opacity: var(--lab-opacity); }
.axioma-avatar { position: absolute; left: 51.041667%; top: 68.518519%; width: 13.020833%; height: 30.555556%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.axioma-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(5px 12px 7px #051a2928); animation: axiom-breath 5.5s ease-in-out infinite; transform-origin: 50% 95%; }
@keyframes axiom-breath { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hitbox-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; pointer-events: none; }
.station-hitbox { pointer-events: auto; cursor: pointer; outline: none; }
.station-hitbox > polygon, .station-hitbox .hitbox { fill: var(--accent); fill-opacity: 0; stroke: var(--accent); stroke-opacity: 0; stroke-width: 3; stroke-linejoin: round; transition: fill-opacity 180ms, stroke-opacity 180ms; }
.station-hitbox:hover > polygon, .station-hitbox:focus-visible > polygon, .station-hitbox.is-active > polygon, .station-hitbox[aria-expanded="true"] > polygon { fill-opacity: .085; stroke-opacity: .7; }
.station-hitbox:focus-visible { outline: none; }
.station-hitbox text { font-family: var(--font); font-size: 18px; font-weight: 650; fill: var(--ink); text-anchor: middle; paint-order: stroke fill; stroke: var(--room-bg); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.station-hitbox .station-number, .station-hitbox .hotspot-number { font-family: ui-monospace, Consolas, monospace; font-size: 18px; }
.station-hitbox circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.station-hitbox .station-marker, .station-hitbox .hotspot-marker { opacity: .9; transition: opacity 180ms, filter 180ms; }
.station-hitbox:hover .station-marker, .station-hitbox:focus-visible .station-marker { opacity: 1; filter: drop-shadow(0 0 8px var(--accent)); }
.axiom-guide { align-self: center; position: relative; padding: 27px 23px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); transition: background-color 400ms, border-color 400ms; }
.axiom-guide::before { content: ""; position: absolute; left: -7px; top: 83px; width: 13px; height: 13px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); transition: background-color 400ms; }
.guide-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; font-family: ui-monospace, Consolas, monospace; font-size: .65rem; font-weight: 700; letter-spacing: .07em; color: var(--accent); }
.guide-kicker span:last-child { font-size: .55rem; color: var(--quiet); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.axiom-guide h2 { font-size: 1.65rem; line-height: 1.13; margin-bottom: 13px; letter-spacing: -.035em; }
#guide-copy { color: var(--muted); font-size: .87rem; line-height: 1.6; }
.guide-options { display: grid; gap: 8px; margin: 20px 0; }
.guide-options button, .guide-option { width: 100%; min-height: 45px; text-align: left; padding: 11px 13px; border-radius: 10px; font-size: .8rem; line-height: 1.4; background: var(--surface-soft); }
.guide-options button:hover { background: var(--accent-wash); transform: translateX(2px); }
.guide-options button:first-child { border-color: var(--accent); }
.guide-footnote { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; color: var(--quiet); font-size: .7rem; line-height: 1.6; }
.text-link { font-size: .8rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-button { padding: 3px 0; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font-family: inherit; font-size: inherit; white-space: nowrap; text-decoration: underline; text-underline-offset: .3em; }
.rescue-button { width: 100%; text-align: left; padding: 12px; margin-bottom: 15px; color: var(--accent); border-color: var(--accent); background: var(--accent-wash); font-size: .78rem; }
.directory-section { padding: 42px 0 34px; }
.directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 21px; }
.directory-heading h2 { font-size: 1.6rem; }
.directory-heading .eyebrow { font-size: .62rem; margin-bottom: 7px; }
.directory-heading > p { margin: 0; font-size: .82rem; color: var(--muted); }
.station-directory { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.station-directory button { min-width: 0; display: grid; grid-template-columns: 25px minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; align-items: start; gap: 5px 10px; min-height: 86px; padding: 13px; border-radius: 12px; text-align: left; font-size: .8rem; font-weight: 550; line-height: 1.4; background: var(--surface); }
.directory-number { grid-column: 1; grid-row: 1 / 3; }
.directory-title { grid-column: 2; grid-row: 1; font-weight: 650; overflow-wrap: anywhere; }
.directory-object { grid-column: 2; grid-row: 2; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.station-directory button:hover { background: var(--accent-wash); transform: translateY(-2px); }
.station-directory button > span:first-child, .station-directory .station-index { display: inline-grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; border-radius: 7px; color: var(--accent); background: var(--accent-wash); font-family: ui-monospace, Consolas, monospace; font-size: .67rem; }
.station-directory .station-name { min-width: 0; overflow-wrap: anywhere; }
.station-directory .station-icon { width: 23px; height: 23px; stroke-width: 1.7; }
.room-next { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 28px 0 38px; border-top: 1px solid var(--line); }
.room-next h2 { font-size: clamp(1.45rem, 1.8vw, 2rem); margin-bottom: 10px; }
.room-next p:last-child { font-size: .88rem; color: var(--muted); margin-bottom: 0; }
.button, button.primary, button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; padding: 12px 20px; font-size: .87rem; font-weight: 650; text-decoration: none; line-height: 1.3; }
.button.primary, button.primary, button[type="submit"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button.primary:hover, button.primary:hover, button[type="submit"]:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: var(--surface); }
.room-next .button { flex-shrink: 0; min-width: 205px; }
.room-footer { display: grid; grid-template-columns: 1fr auto; gap: 16px 30px; align-items: center; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.room-footer .brand { font-size: .75rem; gap: 15px; }
.room-footer .brand small { display: inline; margin: 0; font-size: .67rem; }
.room-footer > p { grid-column: 1; font-size: .72rem; color: var(--quiet); margin: 0; }
.room-footer nav { grid-column: 2; grid-row: 1 / 3; display: flex; flex-wrap: wrap; gap: 10px 23px; }
.room-footer nav a { font-size: .74rem; color: var(--muted); text-decoration: none; }
.room-footer nav a:hover { color: var(--accent); text-decoration: underline; }
/* Station windows retain a calm document-like hierarchy in both materials. */
.station-dialog { width: min(780px, calc(100vw - 40px)); max-width: none; max-height: min(88dvh, 980px); padding: 0; border: 1px solid var(--line-strong); border-radius: 23px; color: var(--ink); background: var(--surface); box-shadow: 0 25px 90px #03151e60; overscroll-behavior: contain; }
.station-dialog::backdrop { background: #06151d8a; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 4; padding: 17px 27px 13px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { margin: 0; font-size: .65rem; }
.dialog-header button { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; font-size: 1.55rem; line-height: 1; font-weight: 300; color: var(--muted); background: var(--surface-soft); }
.dialog-body { padding: 29px 33px 33px; }
.dialog-body h2 { font-size: clamp(1.9rem, 3vw, 2.55rem); margin-bottom: 14px; }
.dialog-body h2:focus { outline: none; }
#station-summary { color: var(--muted); font-size: 1rem; line-height: 1.65; margin-bottom: 23px; }
.station-detail { padding: 16px 18px; margin: 14px 0; border-left: 3px solid var(--accent); border-radius: 0 11px 11px 0; background: var(--surface-soft); }
.station-detail h3 { font-size: 1rem; margin-bottom: 7px; }
.station-detail p, .station-detail li { font-size: .9rem; color: var(--muted); }
.station-detail p:last-child { margin-bottom: 0; }
.station-detail ul { padding-left: 19px; margin: 8px 0 0; }
.station-detail li + li { margin-top: 6px; }
.station-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.station-actions a, .station-actions button { min-height: 44px; padding: 11px 17px; font-weight: 600; font-size: .85rem; text-decoration: none; border-radius: 10px; border: 1px solid var(--line-strong); }
.station-actions a { color: var(--accent); }
.tool-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.tool-panel h3 { margin-bottom: 9px; font-size: 1.3rem; }
.tool-panel > p, .tool-panel label, .tool-panel legend { color: var(--muted); font-size: .9rem; }
.tool-panel form { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 6px; margin-bottom: 17px; }
.form-grid .field { margin: 0; }
.field.full, .field.full-width, .field.field-wide, .form-grid .wide { grid-column: 1 / -1; }
.field > label, .field > span, .field label:first-child { color: var(--ink); font-size: .82rem; font-weight: 650; }
.field input, .field select, .field textarea, .tool-panel textarea, .tool-panel input[type="text"], .tool-panel input[type="number"], .tool-panel input[type="date"], .tool-panel select { width: 100%; min-height: 45px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: var(--surface-raised); font-size: .9rem; line-height: 1.45; transition: border-color 180ms; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field textarea, .tool-panel textarea { min-height: 114px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--quiet); opacity: .9; }
.field small, .field .hint { color: var(--quiet); font-size: .72rem; line-height: 1.5; }
.field input[type="checkbox"], .field input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.tool-panel input[type="file"] { width: 100%; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: var(--surface-soft); font-size: .84rem; }
.tool-panel input::file-selector-button { padding: 8px 12px; margin-right: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; }
.tool-panel fieldset { padding: 17px; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; }
.tool-panel legend { padding: 0 6px; font-weight: 600; }
.tool-panel button[type="submit"] { margin-top: 20px; }
.tool-notice { padding: 13px 15px; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-soft); font-size: .8rem; line-height: 1.6; }
.tool-notice.error, [role="alert"] { border-color: #b76f59; color: var(--ink); }
.tool-notice.success { border-color: var(--accent); }
.document-preview { margin-top: 22px; padding: 25px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised); box-shadow: 0 10px 22px -20px #06201f75; overflow-wrap: anywhere; white-space: pre-wrap; font-family: var(--font); font-size: .88rem; line-height: 1.75; }
.document-preview h3 { font-size: 1.25rem; margin-bottom: 17px; }
.document-preview p { margin: 0 0 10px; }
.document-preview:empty { display: none; }
.pro-card { position: relative; margin-top: 28px; padding: 22px 23px; border: 1px solid var(--accent); border-radius: 15px; background: var(--accent-wash); }
.pro-card .eyebrow { margin-bottom: 8px; font-size: .6rem; }
.pro-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pro-card p { color: var(--muted); font-size: .86rem; margin-bottom: 15px; }
.pro-card p:last-child { margin: 0; }
.pro-card ul { padding-left: 19px; color: var(--muted); font-size: .85rem; }
.comparison { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .82rem; }
.comparison th, .comparison td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--ink); background: var(--surface-soft); font-weight: 650; }
.comparison td { color: var(--muted); }
.comparison th:first-child { border-radius: 8px 0 0 0; }
.comparison th:last-child { border-radius: 0 8px 0 0; }
.glossary-term, .tech-term, [data-glossary] { border: 0; border-bottom: 1px dashed var(--accent); padding: 0 1px; border-radius: 0; color: var(--accent); background: transparent; font: inherit; cursor: help; }
.check-row { display: flex; align-items: flex-start; gap: 11px; min-height: 46px; padding: 10px 0; cursor: pointer; }
.check-row input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.numbers-total { display: block; margin: 12px 0 22px; font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--accent); overflow-wrap: anywhere; }
.hash-value { display: block; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--accent); white-space: normal; overflow-wrap: anywhere; }
.schema-preview { max-height: 300px; overflow: auto; }
.extra-fields, .technical-details { margin: 24px 0; padding: 15px 0; border-block: 1px solid var(--line); }
.extra-fields summary, .technical-details summary { min-height: 44px; display: list-item; padding: 10px 0; font-size: .87rem; font-weight: 650; cursor: pointer; }
.extra-fields[open] > .form-grid, .technical-details[open] > p { margin-top: 16px; }
.technical-details h4 { margin-bottom: 12px; }
.field-error { min-height: 1em; color: #a23e2e !important; }
html[data-mode="laboratorio"] .field-error { color: #ffb29c !important; }
.sample-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 24px; }
.sample-link { display: flex; align-items: center; min-height: 65px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); text-decoration: none; font-weight: 650; font-size: .83rem; }
.sample-link:hover { border-color: var(--accent); background: var(--accent-wash); }
.small { font-size: .8rem; color: var(--muted); line-height: 1.6; margin-top: 13px; }
.glossary-popover { position: fixed; z-index: 30; width: min(300px, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: var(--surface-raised); box-shadow: 0 10px 38px #061d2c29; font-size: .8rem; line-height: 1.6; }
.glossary-popover strong { display: block; color: var(--accent); margin-bottom: 4px; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
code { font-size: .86em; }
.tool-panel pre { padding: 18px; border-radius: 10px; background: var(--surface-soft); overflow: auto; font-size: .76rem; line-height: 1.6; }
html[data-motion="paused"] *, html.motion-paused *, .motion-paused * { animation-play-state: paused !important; }
@media (min-width: 1800px) { .room-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; } .axiom-guide { padding: 31px 27px; } }
@media (max-width: 1200px) {
  .site-nav, main, .room-footer { width: calc(100% - 48px); }
  .room-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 17px; }
  .axiom-guide { padding: 22px 18px; }
  .axiom-guide h2 { font-size: 1.45rem; }
  .room-intro { gap: 32px; }
  .station-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scene-topline, .scene-bottomline { padding-inline: 18px; font-size: .59rem; }
}
@media (max-width: 960px) {
  .site-nav { min-height: 90px; gap: 20px; }
  .brand small { font-size: .65rem; }
  .mode-control { gap: 9px; font-size: .78rem; }
  .nav-actions { gap: 16px; }
  .room-layout { grid-template-columns: 1fr; gap: 18px; }
  .room-intro { grid-template-columns: 1fr .8fr; padding-top: 31px; }
  .room-intro h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
  .intro-aside { font-size: .9rem; }
  .axiom-guide { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 25px; padding: 23px; }
  .axiom-guide::before { left: 46%; top: -7px; transform: rotate(135deg); }
  .guide-kicker, .axiom-guide h2, #guide-copy, .axiom-guide > .text-link { grid-column: 1; }
  .guide-kicker { margin-bottom: 12px; }
  .guide-options { grid-column: 2; grid-row: 1 / 5; align-self: center; margin: 0; }
  .guide-footnote { grid-column: 1 / -1; margin-top: 16px; padding-top: 11px; }
  .rescue-button { grid-column: 1 / -1; margin-top: 13px; }
  .scene-topline, .scene-bottomline { font-size: .64rem; padding-inline: 23px; }
  .room-footer nav { gap: 8px 14px; }
}
@media (max-width: 640px) {
  .site-nav, main, .room-footer { width: calc(100% - 32px); }
  .site-nav { flex-wrap: wrap; gap: 16px 12px; padding-block: 16px; min-height: 0; }
  .brand-emblem { width: 38px; height: 38px; border-radius: 11px 11px 11px 3px; font-size: .68rem; }
  .brand { gap: 9px; font-size: .74rem; }
  .brand small { font-size: .58rem; letter-spacing: 0; }
  .nav-actions { margin-left: auto; gap: 12px; }
  .nav-actions a { font-size: .73rem; }
  #language-select { min-height: 36px; font-size: .68rem; padding: 6px 20px 6px 8px; }
  .mode-control { order: 3; width: 100%; justify-content: center; gap: 14px; font-size: .8rem; }
  .mode-switch { width: 72px; height: 38px; }
  .switch-rocker { width: 28px; height: 28px; top: 4px; left: 4px; }
  .mode-switch input:checked + .switch-plate .switch-rocker { transform: translateX(34px); }
  .switch-led { top: 15px; }
  .room-intro { display: block; padding: 26px 0 21px; }
  .eyebrow { font-size: .6rem; letter-spacing: .13em; }
  .room-intro h1 { font-size: clamp(1.9rem, 7.7vw, 2.75rem); }
  .intro-aside { max-width: none; margin-top: 16px; font-size: .88rem; }
  .scene-hint { font-size: .72rem; }
  .scene-shell { border-radius: 18px; }
  .scene-topline, .scene-bottomline { padding: 13px 12px; font-size: .54rem; gap: 8px; letter-spacing: .02em; }
  .scene-topline { padding-bottom: 3px; }
  .scene-bottomline { min-height: 45px; padding-top: 8px; }
  .scene-bottomline #station-hover { max-width: 58%; }
  .station-hitbox text { font-size: 22px; stroke-width: 7px; }
  .station-hitbox circle { stroke-width: 3px; }
  .axiom-guide { display: block; padding: 20px; border-radius: 16px; }
  .axiom-guide h2 { font-size: 1.6rem; }
  .guide-kicker { margin-bottom: 12px; }
  #guide-copy { font-size: .84rem; margin-bottom: 13px; }
  .guide-options { margin: 14px 0; gap: 7px; }
  .guide-options button { min-height: 45px; font-size: .83rem; }
  .guide-footnote { margin-top: 16px; font-size: .68rem; }
  .directory-section { padding: 29px 0 26px; }
  .directory-heading { display: block; margin-bottom: 16px; }
  .directory-heading h2 { font-size: 1.45rem; }
  .directory-heading > p { font-size: .76rem; margin-top: 9px; }
  .station-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .station-directory button { min-height: 55px; padding: 10px; font-size: .77rem; gap: 8px; border-radius: 10px; }
  .room-next { align-items: stretch; flex-direction: column; gap: 21px; padding: 24px 0 30px; }
  .room-next h2 { font-size: 1.5rem; }
  .room-next p:last-child { font-size: .83rem; }
  .room-next .button { min-height: 49px; }
  .room-footer { display: flex; flex-direction: column; align-items: start; gap: 14px; padding: 24px 0 calc(25px + env(safe-area-inset-bottom)); }
  .room-footer nav { gap: 12px 21px; }
  .room-footer nav a { min-height: 34px; display: inline-flex; align-items: center; }
  .station-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 30px); border-radius: 17px; }
  .dialog-header { padding: 13px 17px 11px; }
  .dialog-body { padding: 23px 19px 25px; }
  .dialog-body h2 { font-size: 1.9rem; }
  #station-summary { font-size: .91rem; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .sample-links { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea, .tool-panel textarea, .tool-panel input[type="text"], .tool-panel input[type="number"], .tool-panel input[type="date"], .tool-panel select { font-size: 16px; }
  .station-detail { padding: 14px 15px; }
  .station-actions > * { flex: 1 1 auto; justify-content: center; text-align: center; }
  .document-preview { padding: 18px; font-size: .82rem; }
  .pro-card { padding: 18px; }
  .comparison { font-size: .73rem; }
  .comparison th, .comparison td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .guide-options button:hover, .station-directory button:hover, .button.primary:hover, button.primary:hover, button[type="submit"]:hover { transform: none; }
}
@media print {
  body { background: white; color: #172d31; }
  .site-nav, .scene-shell, .axiom-guide, .directory-section, .room-next, .room-footer, .dialog-header, .station-actions, .tool-panel form, .pro-card { display: none !important; }
  .station-dialog[open] { position: static; display: block; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; background: white; color: #172d31; }
  .station-dialog::backdrop { display: none; }
  .document-preview { border: 0; box-shadow: none; padding: 0; color: black; background: white; }
}
