:root {
  --font-editorial: "Bodoni Moda", Georgia, serif;
  --exhibition-edge: clamp(20px, 3vw, 48px);
  --chrome-line: #34302b;
}

button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.landscape { overflow: clip; }
canvas.plate__canvas, canvas.hero__canvas { touch-action: none; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.atlas-header, .atlas-console { background: #000; color: #fff; }
.atlas-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 95;
  height: 86px;
  padding: 0 var(--exhibition-edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--chrome-line);
}
.atlas-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: 500 16px/1.2 var(--font-mono);
  letter-spacing: -.8px;
}
.atlas-brand svg { width: 37px; height: 37px; color: var(--accent); transition: transform .35s; }
.atlas-brand:hover svg { transform: rotate(90deg); }
.atlas-brand b { font-weight: 500; }
.atlas-brand small { display: block; margin-top: 7px; color: #a39b91; font-size: 8px; letter-spacing: 1.3px; text-transform: uppercase; }
.atlas-header__edition { margin-right: auto; padding-left: 34px; border-left: 1px solid var(--chrome-line); color: #a39b91; font: 400 9px/1.8 var(--font-mono); }
.atlas-header__nav { display: flex; align-items: center; gap: 36px; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #b5ada2; font: 400 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 1px; }
.live-indicator i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #f0784c12; }
.atlas-index-toggle { padding: 12px 0; border: 0; background: none; color: #fff; font: 400 11px/1.3 var(--font-mono); cursor: pointer; }
.atlas-index-toggle span { padding-left: 18px; color: var(--accent); font-size: 19px; }
.atlas-index-toggle:hover { color: var(--accent); }
.eyebrow { margin: 0; color: #a9a197; font: 400 9px/1.6 var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; }
.atlas-intro {
  position: absolute;
  z-index: 8;
  left: var(--exhibition-edge);
  bottom: 166px;
  width: min(590px, 46vw);
  cursor: default;
  transition: opacity .35s, visibility .35s;
}
.atlas-intro::before { content: ""; position: absolute; z-index: -1; inset: -45px -70px -45px -48px; pointer-events: none; background: radial-gradient(ellipse at 25% 60%, #000e 10%, #0009 48%, transparent 74%); }
.atlas-intro .eyebrow { display: flex; gap: 24px; color: #d4b18c; font-size: 8px; }
.atlas-intro h1 { margin: 15px 0 22px; color: #fff5e6; font: 500 clamp(76px, 7.8vw, 128px)/.94 var(--font-editorial); letter-spacing: -.065em; }
.atlas-intro h1 em { color: var(--accent); font-weight: 500; }
.atlas-intro__description { margin: 0; color: #c7bfb4; font: 400 11px/1.9 var(--font-mono); }
.atlas-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 26px; }
.atlas-enter { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 48px; border: 1px solid var(--accent); padding: 0 17px; background: var(--accent); color: #000; font: 500 10px/1 var(--font-mono); cursor: pointer; transition: background .2s, color .2s; }
.atlas-enter span { font-size: 21px; }
.atlas-enter:hover { color: #fff; background: #000; }
.atlas-text-button { border: 0; background: none; padding: 12px 0; color: #e4ddd2; font: 400 10px/1 var(--font-mono); cursor: pointer; }
.atlas-text-button span { padding-left: 8px; }
.atlas-text-button:hover { color: var(--accent); }
.atlas-intro.is-away { opacity: 0; visibility: hidden; pointer-events: none; }
.landscape__cue { top: 51%; right: var(--exhibition-edge); border: 0; border-bottom: 1px solid #777; padding: 8px 0; font-size: 8px; letter-spacing: 2px; background: transparent; }
.landscape__cue i { animation: none; }
.placard { display: none; }
.band .plate { outline: 1px solid #eed4b52b; outline-offset: -1px; }
.band--middle #plate-flow { top: 118px; height: calc(47vh - 118px); }
.band--middle #plate-julia { top: 112px; height: calc(47vh - 112px); }
.band--middle #plate-reaction { top: 124px; height: calc(47vh - 124px); }
.band--middle #plate-lorenz { top: 112px; height: calc(47vh - 112px); }
.band--middle #plate-life { top: 118px; height: calc(47vh - 118px); }
.band--middle #plate-automaton { top: 112px; height: calc(47vh - 112px); }
.band--front #plate-clifford { top: 56vh; height: calc(44vh - 132px); }
.band--front #plate-phyllotaxis { top: 54vh; height: calc(46vh - 130px); }
.band--front #plate-dla { top: 57vh; height: calc(43vh - 130px); }
.band--front #plate-harmonograph { top: 55vh; height: calc(45vh - 138px); }
.band--front #plate-verlet { top: 56vh; height: calc(44vh - 132px); }
.band--front #plate-sorting { top: 56vh; height: calc(44vh - 132px); }
.band--front #plate-maze { top: 54vh; height: calc(46vh - 132px); }
.band--front #plate-mosaic { top: 57vh; height: calc(43vh - 132px); }
.specimen-caption { position: absolute; inset: 0 0 auto; z-index: 6; display: flex; align-items: center; gap: 13px; padding: 15px 48px 30px 17px; color: #f2e9dc; background: linear-gradient(#000a, transparent); font: 400 9px/1.4 var(--font-mono); pointer-events: none; }
.specimen-caption__number { color: var(--accent); font-size: 10px; }
.specimen-caption__type { margin-left: auto; color: #d7c3a9; font-size: 7px; letter-spacing: 1px; text-transform: uppercase; }
.hero > .specimen-caption { inset: 117px auto auto var(--exhibition-edge); padding: 0; background: none; }
.hero > .specimen-caption .specimen-caption__type { display: none; }
.specimen-inspect { position: absolute; z-index: 7; top: 8px; right: 9px; width: 32px; height: 32px; border: 1px solid #ffffff50; background: #0008; color: #fff; font: 400 18px/1 var(--font-mono); cursor: pointer; }
.specimen-inspect:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.specimen-load { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 85%; padding: 12px 16px; background: #000c; color: #d6b899; font: 400 10px/1.8 var(--font-mono); text-align: center; }
.specimen-load button { color: var(--accent); background: none; border: 0; border-bottom: 1px solid currentColor; padding: 3px; font: inherit; cursor: pointer; }
.atlas-console { position: fixed; inset: auto 0 0; z-index: 95; display: grid; grid-template-columns: minmax(230px, 1fr) minmax(250px, 1.3fr) minmax(200px, 1fr); align-items: center; gap: 40px; height: 102px; padding: 0 var(--exhibition-edge); border-top: 1px solid var(--chrome-line); }
.atlas-console__specimen > .eyebrow { font-size: 7px; letter-spacing: 1.5px; }
.atlas-console__specimen button { display: flex; gap: 13px; align-items: center; background: none; border: 0; padding: 10px 0; color: #fff; font: 400 10px/1.4 var(--font-mono); text-align: left; cursor: pointer; }
#atlas-current-number { color: var(--accent); }
.atlas-console__specimen button:hover { color: var(--accent); }
.atlas-console__scale, .atlas-console__ticks { display: flex; justify-content: space-between; color: #a39b91; font: 400 7px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.atlas-console__scale { margin-bottom: 7px; }
.atlas-console__scale span:last-child { color: var(--accent); }
#atlas-travel { appearance: none; display: block; width: 100%; height: 24px; margin: 0; cursor: ew-resize; background: transparent; }
#atlas-travel::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--travel-progress, 0%), #62584a var(--travel-progress, 0%)); }
#atlas-travel::-moz-range-track { height: 2px; background: #62584a; }
#atlas-travel::-moz-range-progress { background: var(--accent); }
#atlas-travel::-webkit-slider-thumb { appearance: none; width: 5px; height: 14px; margin-top: -6px; background: var(--accent); border: 0; border-radius: 0; }
#atlas-travel::-moz-range-thumb { width: 5px; height: 14px; background: var(--accent); border: 0; border-radius: 0; }
.atlas-console__ticks { padding-top: 4px; font-size: 6px; color: #b5ada2; }
.atlas-console__arrows { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.atlas-console__arrows button { width: 38px; height: 38px; border: 1px solid #50473d; color: #fff; background: #000; cursor: pointer; font-size: 18px; }
.atlas-console__arrows button:hover { background: #fff; color: #000; }
.atlas-console__arrows > span { margin-left: 12px; color: #a39b91; font: 400 8px/1.8 var(--font-mono); }
.is-locked .atlas-header, .is-locked .atlas-console { visibility: hidden; }
.theatre { z-index: 100; }
.theatre__stage .specimen-caption { inset: 28px auto auto 28px; padding: 0; background: #0009; }
.theatre__stage .specimen-caption__type { display: none; }
.theatre__stage .specimen-inspect { display: none; }
.theatre__nav { bottom: 90px; padding: 5px 12px; }
.theatre__position { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; clip: auto !important; clip-path: none !important; overflow: visible !important; font-size: 9px; max-width: 55vw; white-space: normal !important; }
.theatre__close { top: 20px; right: 20px; }
.theatre-notes { position: absolute; z-index: 3; left: 28px; bottom: 96px; width: min(330px, calc(100vw - 56px)); color: #ede3d6; background: #000e; border: 1px solid #544739; font: 400 10px/1.8 var(--font-mono); }
.theatre-notes summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; color: #fff; }
.theatre-notes summary::-webkit-details-marker { display: none; }
.theatre-notes summary span { color: var(--accent); font-size: 17px; }
.theatre-notes[open] summary span { transform: rotate(45deg); }
.theatre-notes summary:focus-visible { outline: 2px solid var(--accent); }
.theatre-notes__body { padding: 10px 16px 17px; border-top: 1px solid #544739; }
.theatre-notes__body p { margin: 0 0 13px; }
.theatre-notes__body .theatre-notes__formula { color: var(--accent); font-size: 15px; overflow-wrap: anywhere; }
.theatre-notes__body > span { font-size: 8px; color: #a99d8e; }
.mandelbrot__hint { top: 95px; }
.specimen-index { position: fixed; inset: 0; width: min(1180px, calc(100vw - 64px)); max-width: none; max-height: calc(100dvh - 64px); margin: auto; padding: 30px 38px 22px; overflow-y: auto; overscroll-behavior: contain; background: #0c0b09; border: 1px solid #685743; color: #f3eadc; scrollbar-color: #715844 #0c0b09; }
.specimen-index::backdrop { background: #000c; backdrop-filter: blur(9px); }
.specimen-index__head { display: flex; align-items: center; justify-content: space-between; }
.atlas-icon-button { flex-shrink: 0; width: 40px; height: 40px; background: none; color: #fff; border: 1px solid #544739; font: 400 24px/1 var(--font-mono); cursor: pointer; }
.atlas-icon-button:hover { color: var(--accent); border-color: var(--accent); }
.specimen-index__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 12px 0 30px; }
.specimen-index__intro h2 { margin: 0; font: 500 clamp(36px, 4.3vw, 65px)/1.05 var(--font-editorial); letter-spacing: -.045em; }
.specimen-index__intro h2 em { color: var(--accent); font-weight: 500; }
.specimen-index__intro p { margin: 0 0 5px; color: #b9ad9e; font: 400 10px/1.9 var(--font-mono); }
.specimen-index__tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--chrome-line); border-bottom: 1px solid var(--chrome-line); padding: 16px 0; }
.specimen-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.specimen-filters button { min-height: 36px; padding: 8px 11px; border: 1px solid transparent; background: transparent; color: #afa292; font: 400 9px/1.2 var(--font-mono); cursor: pointer; }
.specimen-filters button[aria-pressed="true"] { background: #f0784c12; border-color: #966045; color: var(--accent); }
.specimen-filters button:hover { color: #fff; }
.specimen-search input { width: 180px; min-height: 36px; padding: 8px 10px; border: 1px solid #544739; border-radius: 0; background: #000; color: #fff; font: 400 10px/1.4 var(--font-mono); }
.specimen-search input::placeholder { color: #ac9e8f; }
.specimen-row { display: grid; grid-template-columns: 24px minmax(150px, 1fr) minmax(160px, 1.5fr) minmax(120px, 1fr) 22px; gap: 22px; align-items: center; width: 100%; min-height: 94px; padding: 19px 8px; border: 0; border-bottom: 1px solid var(--chrome-line); background: transparent; color: #f3eadc; text-align: left; cursor: pointer; transition: background .2s; }
.specimen-row[hidden] { display: none; }
.specimen-row:hover, .specimen-row:focus-visible { background: #241b13; }
.specimen-row__number { color: #bc9670; font: 400 9px/1.2 var(--font-mono); }
.specimen-row__name { font: 500 21px/1.15 var(--font-editorial); }
.specimen-row__description { color: #b6aa9a; font: 400 9px/1.7 var(--font-mono); }
.specimen-row__formula { color: #c19164; font: 400 9px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.specimen-row__arrow { color: var(--accent); font-size: 22px; transition: transform .2s; }
.specimen-row:hover .specimen-row__arrow { transform: translate(2px, -2px); }
.specimen-index__foot { display: flex; justify-content: space-between; gap: 20px; margin: 20px 0 0; color: #ac9e8f; font: 400 8px/1.5 var(--font-mono); }
.specimen-empty { padding: 40px 0; color: #c7b6a2; font: 400 12px/1.8 var(--font-mono); }
.is-index-open .controls-layer { visibility: hidden; }

@media (min-width: 1700px) {
  .atlas-intro { bottom: 17vh; }
  .atlas-intro__description { font-size: 13px; }
}

@media (max-width: 1050px) {
  .theatre-notes { bottom: 160px; }
  .atlas-header__edition { display: none; }
  .atlas-console { gap: 24px; grid-template-columns: 1fr 1fr auto; }
  .atlas-console__arrows > span { display: none; }
  .specimen-caption__type { display: none; }
  .atlas-intro__actions { gap: 12px; }
  .atlas-intro__description { font-size: 10px; }
  .specimen-index__tools { align-items: stretch; flex-direction: column; gap: 12px; }
  .specimen-search input { width: 100%; }
  .specimen-row { gap: 15px; grid-template-columns: 22px 1fr 1.5fr 20px; }
  .specimen-row__formula { display: none; }
}

@media (max-width: 700px) {
  .atlas-header { height: 72px; gap: 12px; }
  .atlas-brand { font-size: 12px; letter-spacing: -.5px; gap: 9px; }
  .atlas-brand svg { width: 30px; height: 30px; }
  .atlas-brand small { font-size: 6px; letter-spacing: .6px; }
  .atlas-header__nav { gap: 0; }
  .live-indicator { display: none; }
  .atlas-index-toggle { font-size: 8px; }
  .atlas-index-toggle span { padding-left: 4px; font-size: 16px; }
  .atlas-intro { width: calc(100vw - 40px); bottom: 155px; }
  .atlas-intro h1 { font-size: clamp(64px, 14vw, 98px); margin: 13px 0 17px; }
  .atlas-intro .eyebrow { font-size: 7px; gap: 14px; }
  .atlas-intro__description { font-size: 9px; line-height: 1.8; }
  .atlas-intro__actions { margin-top: 18px; gap: 18px; }
  .atlas-enter { min-height: 44px; font-size: 9px; padding: 0 12px; gap: 16px; }
  .atlas-text-button { font-size: 9px; }
  .hero > .specimen-caption { top: 94px; font-size: 8px; }
  .band--middle #plate-flow { left: 58vw; }
  .band--middle #plate-flow, .band--middle #plate-julia, .band--middle #plate-reaction,
  .band--middle #plate-lorenz, .band--middle #plate-life, .band--middle #plate-automaton {
    top: 122px; height: calc(44vh - 122px); min-height: 120px;
  }
  .band--front #plate-clifford { left: 108vw; }
  .band--front #plate-clifford, .band--front #plate-phyllotaxis, .band--front #plate-dla,
  .band--front #plate-harmonograph, .band--front #plate-verlet, .band--front #plate-sorting,
  .band--front #plate-maze, .band--front #plate-mosaic { top: 55vh; height: calc(45vh - 184px); }
  .landscape__cue { top: 47%; font-size: 7px; }
  .specimen-caption { gap: 9px; padding: 12px 40px 25px 12px; font-size: 8px; }
  .atlas-console { height: 126px; padding: 14px var(--exhibition-edge) max(12px, env(safe-area-inset-bottom)); grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 20px; }
  .atlas-console__travel { grid-column: 1 / -1; grid-row: 2; }
  .atlas-console__arrows { grid-column: 2; grid-row: 1; }
  .atlas-console__arrows button { width: 34px; height: 34px; }
  .atlas-console__specimen > .eyebrow { font-size: 6px; }
  .atlas-console__specimen button { padding: 6px 0; font-size: 9px; gap: 9px; }
  .atlas-console__scale { font-size: 6px; margin: 0; }
  .atlas-console__ticks { padding-top: 0; }
  .specimen-index { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 16px; }
  .specimen-index__intro { padding: 15px 0 24px; }
  .specimen-index__intro h2 { font-size: 39px; }
  .specimen-index__intro p { display: none; }
  .specimen-index__head .eyebrow { font-size: 7px; }
  .specimen-filters { gap: 3px; }
  .specimen-filters button { font-size: 8px; padding: 8px; }
  .specimen-row { grid-template-columns: 22px 1fr 22px; gap: 8px 12px; padding: 17px 4px; }
  .specimen-row__name { font-size: 23px; }
  .specimen-row__description { grid-column: 2; grid-row: 2; font-size: 9px; }
  .specimen-row__arrow { grid-column: 3; grid-row: 1; }
  .specimen-index__foot { font-size: 7px; }
  .specimen-index__foot span:last-child { max-width: 160px; text-align: right; }
  .theatre__stage .specimen-caption { top: 22px; left: 16px; max-width: calc(100vw - 85px); font-size: 8px; }
  .theatre__nav { width: max-content; max-width: calc(100vw - 24px); bottom: 110px; gap: 8px; }
  .theatre__position { font-size: 8px; }
  .theatre__close { top: 12px; right: 12px; }
  .theatre-notes { left: 12px; bottom: 169px; width: min(330px, calc(100vw - 24px)); font-size: 9px; }
  .theatre-notes__body { max-height: 35dvh; overflow-y: auto; }
}

@media (max-height: 700px) and (min-width: 701px) {
  .atlas-header { height: 64px; }
  .atlas-intro { bottom: 117px; }
  .atlas-intro h1 { font-size: 74px; margin: 10px 0 14px; }
  .atlas-intro__description { font-size: 9px; }
  .atlas-intro__actions { margin-top: 14px; }
  .atlas-console { height: 88px; }
  .hero > .specimen-caption { top: 85px; }
}

@media (max-height: 700px) and (max-width: 700px) {
  .atlas-intro { bottom: 145px; }
  .atlas-intro h1 { font-size: 60px; margin: 8px 0 10px; }
  .atlas-intro__description { font-size: 8px; }
  .atlas-intro__actions { margin-top: 12px; }
}

@media (max-width: 360px) {
  .atlas-intro h1 { font-size: 52px; }
  .atlas-intro__actions { gap: 10px; }
  .atlas-text-button { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-intro, .atlas-brand svg, .specimen-row, .specimen-row__arrow, .atlas-enter { transition: none; }
  .atlas-brand:hover svg, .specimen-row:hover .specimen-row__arrow { transform: none; }
}

@media (max-height: 500px) {
  .atlas-header { height: 56px; }
  .atlas-brand small, .atlas-header__edition { display: none; }
  .atlas-console { height: 72px; display: flex; padding-top: 8px; padding-bottom: 8px; }
  .atlas-console__specimen { flex: 1; }
  .atlas-console__travel { flex: 1; }
  .atlas-console__ticks, .atlas-console__arrows > span { display: none; }
  .atlas-intro { bottom: 90px; width: 48vw; }
  .atlas-intro h1 { font-size: 50px; margin: 8px 0; }
  .atlas-intro__description { font-size: 8px; }
  .atlas-intro__description br:last-of-type { display: none; }
  .atlas-intro__actions { margin-top: 10px; gap: 12px; }
  .atlas-enter { min-height: 34px; font-size: 8px; }
  .atlas-text-button { font-size: 8px; }
  .hero > .specimen-caption { top: 69px; }
  .band--middle #plate-flow, .band--middle #plate-julia, .band--middle #plate-reaction,
  .band--middle #plate-lorenz, .band--middle #plate-life, .band--middle #plate-automaton { top: 76px; height: calc(46vh - 76px); min-height: 0; }
  .band--front #plate-clifford, .band--front #plate-phyllotaxis, .band--front #plate-dla,
  .band--front #plate-harmonograph, .band--front #plate-verlet, .band--front #plate-sorting,
  .band--front #plate-maze, .band--front #plate-mosaic { top: 54vh; height: calc(46vh - 96px); }
  .theatre-notes { bottom: 140px; }
  .theatre-notes__body { max-height: 30vh; overflow-y: auto; }
}

.has-active-deck .atlas-intro { visibility: hidden; opacity: 0; pointer-events: none; }
.atlas-intro { transition: opacity .15s, visibility .15s; }
.atlas-intro__actions { flex-wrap: nowrap; }
.atlas-enter, .atlas-text-button { white-space: nowrap; }
.atlas-console__specimen { min-width: 0; }
.atlas-console__specimen button {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 44px;
}
.atlas-console__arrows button, .atlas-icon-button, .specimen-inspect,
.theatre__close, .theatre__nav button, .deck__dismiss {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.atlas-brand, .atlas-index-toggle, .atlas-text-button, .specimen-filters button,
.theatre-notes summary { min-height: 44px; }
.specimen-caption { padding-right: 62px; }
.controls-layer .deck, .theatre > .deck {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: var(--deck-available-height);
  background: #000;
  border: 1px solid #685743;
  transform: none !important;
  transition: none !important;
}
.deck__selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  flex: none;
  min-height: 44px;
  order: 0;
  border-bottom: 1px solid var(--chrome-line);
  color: #fff;
  font: 400 10px/1.4 var(--font-mono);
}
.deck__selection > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 14px; }
.deck__dismiss { background: #000; color: #fff; border: 0; border-left: 1px solid var(--chrome-line); cursor: pointer; font-size: 23px; }
.deck__dismiss:hover { color: var(--accent); }
.theatre > .deck .deck__selection { display: none; }
.deck .deck__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  flex: none;
  order: 1;
  width: 100%;
  padding: 8px;
  min-height: 62px;
}
.deck .deck__chips, .deck.is-expanded .deck__chips {
  grid-column: 2;
  grid-row: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #8d735c #000;
  -webkit-mask-image: none;
  mask-image: none;
}
.deck__tools { grid-column: 3; grid-row: 1; gap: 6px; }
.deck .deck__btn, .deck .chip, .deck .deck__panel-close, .deck .seg__opt {
  min-height: 44px;
  min-width: 44px;
  transform: none;
  transition: color .15s, background-color .15s, border-color .15s;
}
.deck .deck__btn--tight, .deck .deck__btn--tune { width: 44px; padding: 0; }
.deck .deck__btn--tune .deck__label { display: none; }
.deck .deck__btn--play { width: 96px; min-width: 96px; }
.deck .switch { width: 48px; min-height: 44px; }
.deck .switch[aria-checked="true"] i { background: #000; }
.deck .field__range, #atlas-travel { height: 44px; }
.specimen-search input { min-height: 44px; }
.deck .deck__panel {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  order: -1;
  width: 100%;
  min-height: 0;
  max-height: calc(var(--deck-available-height) - 164px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: none;
  transition: none;
}
.theatre__nav, .theatre.is-open .theatre__nav {
  position: fixed;
  top: 12px;
  bottom: auto;
  width: min(600px, calc(100vw - 136px));
  max-width: none;
  height: 56px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  padding: 4px;
  gap: 4px;
  transform: translateX(-50%);
  transition: opacity .15s;
}
.theatre__nav .theatre__position { min-width: 0; max-width: none; padding: 0 6px; max-height: 44px; overflow: hidden !important; font-size: 8px; line-height: 1.4; }
.theatre__close { position: fixed; top: 18px; right: 12px; }
.theatre__stage .specimen-caption { display: none; }
.theatre-notes { position: fixed; top: 84px; bottom: auto; left: 12px; width: min(330px, calc(100vw - 24px)); }
.theatre-notes__body { max-height: max(80px, calc(100dvh - 300px)); overflow-y: auto; }

@media (max-width: 700px) {
  .atlas-console { height: 156px; }
  .atlas-intro { bottom: 180px; }
  .atlas-console__specimen button { padding: 4px 0; }
  .atlas-console__arrows { gap: 8px; }
  .deck .deck__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .deck .deck__tools { grid-column: 2; }
  .deck .deck__chips, .deck.is-expanded .deck__chips {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 1px 1px 5px;
  }
  .atlas-intro .atlas-text-button { font-size: 8px; }
}

@media (max-height: 500px) {
  .atlas-console { height: 80px; }
  .atlas-intro { bottom: 96px; }
}

.atlas-console__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
  white-space: nowrap;
}
.atlas-console__label .eyebrow { font-size: 8px; letter-spacing: 1px; }
#atlas-control-status { overflow: hidden; text-overflow: ellipsis; color: #c8ac8b; font: 400 8px/1.5 var(--font-mono); }
.atlas-artwork-picker { display: grid; grid-template-columns: 2ch minmax(0, 1fr) 44px; align-items: center; gap: 8px; font: 400 10px/1.4 var(--font-mono); }
#atlas-artwork, #theatre-artwork {
  appearance: auto;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  border: 1px solid #685743;
  border-radius: 0;
  background: #000;
  color: #fff;
  color-scheme: dark;
  font: 400 10px/1.4 var(--font-mono);
  cursor: pointer;
  text-overflow: ellipsis;
}
#atlas-artwork:hover, #theatre-artwork:hover { border-color: var(--accent); }
#atlas-artwork:focus-visible, #theatre-artwork:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.atlas-artwork-picker #atlas-current {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #685743;
  font-size: 20px;
}
.atlas-artwork-picker #atlas-current:hover { border-color: var(--accent); }
#theatre-artwork { font-size: 10px; }

@media (max-width: 700px) {
  .atlas-console__specimen { grid-column: 1 / -1; grid-row: 1; }
  .atlas-console__travel { grid-column: 1; grid-row: 2; }
  .atlas-console__arrows { grid-column: 2; grid-row: 2; }
  .atlas-console__label .eyebrow, #atlas-control-status { font-size: 7px; }
  .theatre__nav, .theatre.is-open .theatre__nav { left: 12px; width: calc(100vw - 80px); transform: none; }
  #theatre-artwork { font-size: 9px; }
}
