:root {
  color-scheme: dark;
  --ground:#0d171c;
  --paper:#152229;
  --raised:#1b2b32;
  --ink:#e8eee8;
  --muted:#acbcb7;
  --line:#34474c;
  --accent:#e0bb78;
  --accent-dark:#f0cf94;
  --mint:#a3cbb7;
  --warn:#f2ce99;
  --warn-bg:#352b22;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --story:Georgia,"Times New Roman",serif;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background:
    radial-gradient(
      ellipse at 30% 0,
      #26393666,
      transparent 55%),
    var(--ground);
  color: var(--ink);
}
button,
select,
textarea {
  font: inherit;
}
button,
select {
  min-height: 42px;
}
button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--raised);
  color: var(--ink);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
button:hover:not(:disabled) {
  background: #2b4147;
  border-color: #768b82;
}
button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #152028;
}
.primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.4px;
}
h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 550;
}
h3 {
  font-family: var(--story);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
}
.eyebrow {
  display: block;
  font: 10px/1.5 var(--mono);
  letter-spacing: 1.6px;
  color: var(--muted);
}
.page-header,
main,
footer {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 29px 0 28px;
}
.wordmark {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 43px;
  border: 1px solid #9d895d;
  color: var(--accent);
  font-size: 28px;
  border-radius: 3px;
}
.wordmark small {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facility {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border: 1px solid #4b5b51;
  border-radius: 8px;
  overflow: hidden;
  background: #102027;
  min-height: 292px;
  box-shadow: 0 15px 80px #0003;
}
.scene {
  min-width: 0;
  display: flex;
  align-items: stretch;
  position: relative;
  background: #101b20;
}
.scene svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 80%,
      #142229);
}
.scene-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 40px 30px 18px;
  background: #142229;
}
.scene-caption .eyebrow {
  color: var(--accent);
  font-size: 10px;
}
.scene-caption h2 {
  font: 400 clamp(28px, 2.6vw, 39px)/1.12 var(--story);
  margin: 16px 0;
}
.scene-caption > p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 45ch;
  color: #bfcec5;
}
.scene-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 24px;
  margin-top: 24px;
  font: 9px/1.6 var(--mono);
  letter-spacing: 1px;
  color: #a9b5a8;
}
.scene-meta > span:last-child {
  color: #d0b783;
}
.play-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 15px;
}
.turn-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--mint);
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 10px #a3cbb72b;
}
.working .status-dot {
  background: var(--accent);
  animation: breathe 2s ease-in-out infinite;
}
.play-toolbar nav {
  display: flex;
  gap: 6px;
}
.play-toolbar button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  min-height: 36px;
  padding: 6px 12px;
}
.play-toolbar button[aria-expanded=true] {
  border-color: var(--line);
  background: var(--raised);
  color: var(--accent);
}
#journal-count {
  display: inline-block;
  background: #2e4247;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 3px;
  font: 10px/1.7 var(--mono);
}
.notice {
  padding: 15px 18px;
  margin-bottom: 16px;
  border-left: 3px solid var(--accent);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.recovery-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.recovery-controls p {
  font-size: 12px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.workspace.inspector-open {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.play-pane,
.trace-pane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  overflow: hidden;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  font-size: 18px;
  margin-top: 4px;
}
.section-heading a {
  font-size: 12px;
}
.section-heading .quiet {
  font-size: 11px;
  min-height: 34px;
  padding: 6px 8px;
}
.inventory {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 26px;
  border-bottom: 1px solid #2a3e44;
  font-size: 12px;
  color: var(--mint);
}
.inventory .eyebrow {
  font-size: 9px;
}
.conversation {
  height: 400px;
  overflow-y: auto;
  padding: 30px clamp(24px, 6vw, 88px);
  scrollbar-color: #50655e transparent;
  scroll-behavior: smooth;
}
.inspector-open .conversation {
  padding: 24px 26px;
}
.welcome {
  max-width: 560px;
  margin: 18px auto 26px;
}
.welcome-number {
  display: block;
  color: var(--accent);
  font: 12px var(--mono);
  margin-bottom: 22px;
}
.welcome h3 {
  max-width: 370px;
}
.welcome p {
  margin-top: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.verb-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 21px;
  font: italic 15px var(--story);
  color: var(--accent);
}
.message {
  max-width: 76ch;
  margin-inline: auto;
  padding: 0 0 28px;
}
.message:last-child {
  padding-bottom: 0;
}
.message .speaker {
  font: 9px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 8px;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 17px/1.8 var(--story);
  color: #e0e9e1;
}
.message.player {
  border-left: 2px solid #617b70;
  padding-left: 17px;
  margin-bottom: 22px;
  padding-bottom: 0;
}
.message.player p {
  font:
    13px/1.7 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  color: var(--muted);
}
.message.player .speaker {
  font: 9px/1.4 var(--mono);
  color: #a4b6ac;
  margin-bottom: 5px;
}
.message.pending p {
  color: var(--muted);
  font-style: italic;
}
.message.pending .speaker:after {
  content: " \b7  \b7  \b7";
  color: var(--accent);
}
.message.error p {
  color: var(--warn);
}
.message.known p {
  font:
    14px/1.8 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}
.message.known {
  background: #192d31;
  border: 1px solid #3c5656;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 25px;
}
.known-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}
.known-actions button {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 12px;
}
.refresh-hint,
.message p.known-context {
  font:
    11px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  color: var(--muted);
}
.message p.known-context {
  margin-top: 10px;
}
.composer {
  border-top: 1px solid var(--line);
  padding: 17px 26px 18px;
  background: #132127;
}
.recall-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-bottom: 17px;
}
.recall-row > .eyebrow {
  font-size: 9px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.suggestions button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--mint);
  background: #1a2c30;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
.input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 65px;
  max-height: 160px;
  padding: 11px 13px;
  border: 1px solid #66786d;
  border-radius: 4px;
  color: var(--ink);
  background: #0d1b20;
  font-size: 14px;
  line-height: 1.5;
}
textarea::placeholder {
  color: #99aaa2;
}
textarea:disabled {
  background: #142127;
  border-color: var(--line);
}
.input-row button {
  min-height: 46px;
  white-space: nowrap;
}
.input-help {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  font: 9px/1.6 var(--mono);
  color: var(--muted);
  margin-top: 8px;
}
.trace-intro {
  padding: 13px 24px 0;
  font-size: 11px;
  color: var(--muted);
}
.trace-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
}
.trace-controls label {
  margin: 0;
}
.trace-controls select {
  width: 100%;
}
select {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #15262c;
  color: var(--ink);
  font-size: 12px;
  padding: 7px 28px 7px 10px;
}
.trace {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  min-height: 350px;
  max-height: 600px;
  overflow: auto;
}
.trace-empty {
  padding: 40px 0;
  max-width: 340px;
  margin: auto;
  color: var(--muted);
}
.trace-empty p + p {
  margin-top: 14px;
}
.trace-empty p:first-child {
  font: 23px var(--story);
  color: var(--ink);
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.trace details {
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.trace details:first-child {
  padding-top: 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
}
.trace summary {
  font-weight: 600;
  line-height: 1.7;
}
.trace pre {
  background: #0d1b20;
  border: 1px solid #263c42;
  border-radius: 4px;
  padding: 12px;
  margin: 10px 0 3px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 10px/1.7 var(--mono);
}
.trace p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.tool-record {
  padding: 9px 0;
}
.tool-record + .tool-record {
  border-top: 1px dashed var(--line);
}
.tool-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mint);
}
.state-diff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.experiments {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  max-height: 270px;
  overflow: auto;
}
.experiments label {
  margin-top: 14px;
}
.experiments p {
  color: var(--muted);
  margin: 12px 0;
}
.probe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.probe-actions button {
  font-size: 11px;
  min-height: 34px;
  padding: 6px 8px;
}
#session-id,
#model-id {
  font: 10px/1.5 var(--mono);
  overflow-wrap: anywhere;
}
#trace small {
  display: block;
  color: var(--muted);
  font: 10px/1.6 var(--mono);
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.field-panel {
  background: #14242a;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 22px;
  scroll-margin-top: 20px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.panel-heading h2 {
  font-family: var(--story);
  font-size: 27px;
  margin-top: 7px;
}
.panel-heading button {
  background: transparent;
  min-height: 36px;
  font-size: 12px;
}
.facility-map {
  max-width: 760px;
  margin: 10px auto;
}
.facility-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.map-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.map-list li.current {
  color: var(--accent);
}
.journal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.journal-note {
  border-left: 2px solid #826e4b;
  padding: 7px 0 9px 17px;
  max-width: 65ch;
}
.journal-note h3 {
  font: 18px var(--story);
  margin: 7px 0;
}
.journal-note p {
  font-size: 13px;
  color: #d0dcd3;
  line-height: 1.8;
}
.journal-note small {
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.debrief {
  background:
    linear-gradient(
      115deg,
      #2f453b,
      #152a2c);
  border: 1px solid #7b977e;
  border-radius: 7px;
  padding: 30px 34px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
}
.debrief h2 {
  font: 36px var(--story);
  margin: 12px 0;
}
.debrief p {
  color: #cadacd;
  font-size: 14px;
}
.debrief details {
  max-width: 65ch;
}
.debrief details p {
  margin-top: 12px;
  line-height: 1.8;
}
.debrief summary {
  color: var(--accent);
  font-size: 14px;
}
.debrief > .primary {
  align-self: end;
  justify-self: end;
}
.debrief-stats {
  display: flex;
  gap: 25px;
  align-items: center;
}
.debrief-stats strong {
  display: block;
  color: var(--accent);
  font: 34px var(--story);
}
.debrief-stats span {
  display: block;
  font: 9px/1.7 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 11px;
}
footer details {
  max-width: 440px;
}
footer summary {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
}
footer p {
  margin-top: 14px;
  line-height: 1.8;
}
dialog {
  width: min(530px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #647b70;
  border-radius: 7px;
  background: #192b31;
  color: var(--ink);
  padding: 36px;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #030c11bb;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font: 32px/1.2 var(--story);
  margin: 12px 0 20px;
}
dialog p,
dialog li {
  font-size: 14px;
  line-height: 1.8;
  color: #cfdbd3;
  margin-bottom: 15px;
}
dialog ol {
  padding-left: 20px;
}
dialog li {
  padding-left: 6px;
}
dialog strong {
  color: var(--ink);
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 9px;
  background: transparent;
  border-color: transparent;
  font-size: 24px;
  min-width: 42px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 5;
  padding: 12px 20px;
  background: var(--accent);
  color: #132127;
}
.skip-link:focus {
  top: 15px;
}
@keyframes breathe {
  50% {
    opacity: .35;
  }
}
@media (min-width: 801px) {
  .play-pane,
  .trace-pane {
    display: flex;
    flex-direction: column;
    height: 720px;
  }
  .play-pane > *,
  .trace-pane > * {
    flex-shrink: 0;
  }
  .conversation,
  .trace {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    max-height: none;
  }
}
@media (max-width: 1050px) {
  .page-header,
  main,
  footer {
    width: calc(100% - 48px);
  }
  .page-header {
    gap: 15px;
  }
  .wordmark small {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  h1 {
    font-size: 17px;
  }
  .session-actions {
    gap: 3px;
  }
  .session-actions button {
    padding-inline: 10px;
    font-size: 12px;
  }
  .scene-caption {
    padding: 25px 24px 25px 12px;
  }
  .scene-caption h2 {
    font-size: 30px;
  }
  .scene-meta {
    gap: 10px;
  }
  .scene-meta > span:last-child {
    display: none;
  }
  .inspector-open .conversation {
    padding: 22px;
  }
  .input-help span {
    display: none;
  }
  .inspector-open .recall-row > .eyebrow {
    display: none;
  }
}
@media (max-width: 800px) {
  .page-header,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
    gap: 18px;
  }
  .session-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .session-actions button:first-child {
    margin-right: auto;
  }
  .facility {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .scene {
    height: 200px;
  }
  .scene svg {
    min-height: 0;
  }
  .scene:after {
    background:
      linear-gradient(
        0deg,
        #142229,
        transparent 30%);
  }
  .scene-caption {
    padding: 4px 24px 26px;
  }
  .scene-caption h2 {
    font-size: 31px;
    margin: 12px 0;
  }
  .scene-caption > p {
    font-size: 13px;
    max-width: none;
  }
  .scene-meta {
    margin-top: 17px;
    gap: 12px;
  }
  .scene-meta > span:last-child {
    display: block;
  }
  .play-toolbar {
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 10px;
  }
  .play-toolbar nav {
    gap: 2px;
  }
  .play-toolbar button {
    font-size: 12px;
    padding-inline: 10px;
  }
  .workspace.inspector-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .conversation,
  .inspector-open .conversation {
    height: 350px;
    padding: 23px;
  }
  .section-heading {
    padding: 17px 20px;
  }
  .composer {
    padding: 15px 18px 17px;
  }
  .inventory {
    padding: 10px 20px;
  }
  .inventory .eyebrow {
    font-size: 8px;
  }
  .recall-row {
    gap: 8px;
    margin-bottom: 14px;
  }
  .recall-row > .eyebrow {
    display: none;
  }
  .suggestions {
    gap: 6px;
  }
  .suggestions button {
    font-size: 10px;
    padding-inline: 8px;
    min-height: 36px;
  }
  .input-row {
    gap: 8px;
  }
  .input-row button {
    font-size: 12px;
    padding-inline: 12px;
  }
  .welcome {
    margin-top: 0;
  }
  .welcome-number {
    margin-bottom: 15px;
  }
  .welcome h3 {
    font-size: 27px;
  }
  .welcome p {
    font-size: 13px;
    margin-top: 15px;
  }
  .verb-examples {
    font-size: 14px;
    margin-top: 16px;
    gap: 8px 15px;
  }
  .field-panel {
    padding: 20px 18px;
  }
  .panel-heading h2 {
    font-size: 23px;
  }
  .facility-map {
    margin: 18px -10px;
  }
  .map-list {
    justify-content: flex-start;
    font-size: 10px;
    gap: 8px 14px;
  }
  .debrief {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .debrief h2 {
    font-size: 30px;
  }
  .debrief-stats {
    gap: 34px;
  }
  .debrief > .primary {
    justify-self: start;
  }
  .trace {
    max-height: 600px;
    min-height: 260px;
  }
  .trace-empty {
    padding: 10px 0;
  }
  .state-diff {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    flex-direction: column;
    padding-block: 23px 30px;
    gap: 15px;
  }
  footer summary {
    text-align: left;
  }
  .recovery-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .notice {
    font-size: 12px;
  }
  dialog {
    padding: 30px 24px;
  }
  .message p {
    font-size: 16px;
  }
  .message.known p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.skip-link {
  top: 15px;
}
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.label-row label {
  margin: 0;
}
.label-row button {
  font: 10px var(--mono);
  min-height: 30px;
  padding: 4px 7px;
  background: transparent;
  border: 0;
  color: var(--muted);
}
.expanded-input textarea {
  height: 160px;
}
.in-player [data-game-home] { display: none; }
button, select, .label-row button, .suggestions button, .play-toolbar button,
.section-heading .quiet, .known-actions button, .dialog-close { min-height: 44px; min-width: 44px; }
dialog { max-height: calc(100dvh - 24px); overflow: auto; }
.dialog-close { position: sticky; top: 0; float: right; background: var(--paper); }
.panel-heading { position: sticky; top: 0; background: var(--paper); z-index: 1; }
@media (min-width: 700px) {
  .page-header, main, footer { width: calc(100% - 24px); }
  .page-header { flex-direction: row; padding: 6px 0; gap: 12px; align-items: center; }
  .session-actions { width: auto; }
  .wordmark small { display: none; }
  .brand-mark { width: 28px; height: 34px; }
  .facility { grid-template-columns: 1fr 1fr; min-height: 0; }
  .scene { height: auto; }
  .scene svg { min-height: 0; height: 120px; }
  .scene-caption { padding: 6px 12px; }
  .scene-caption .eyebrow { display: none; }
  .scene-caption h2 { font-size: 20px; margin: 0 0 4px; }
  .scene-caption > p { font-size: 12px; line-height: 1.35; }
  .scene-meta { margin-top: 4px; }
  .play-toolbar { padding: 4px 0; gap: 8px; flex-wrap: nowrap; }
  .section-heading { padding: 3px 12px; min-height: 46px; }
  .section-heading .eyebrow { display: none; }
  .section-heading h2 { font-size: 18px; }
  .play-pane, .trace-pane { height: auto; }
  .conversation { flex: none; }
  .inventory { padding: 3px 12px; }
  .conversation, .inspector-open .conversation { height: clamp(80px, calc(100dvh - 490px), 400px); padding: 12px; }
  .composer { padding: 6px 12px; }
  .recall-row { margin-bottom: 2px; }
  .recall-row > .eyebrow { display: none; }
  .label-row { margin-bottom: 2px; }
  .input-help { margin-top: 2px; }
  .field-panel { max-height: 50dvh; overflow: auto; }
  .trace-pane { max-height: 70dvh; overflow: auto; }
  footer { padding: 12px 0; }
}
@media (max-width: 600px) {
  .facility-map {
    display: none;
  }
  .map-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
    font-size: 12px;
  }
  .map-list li {
    padding: 12px 14px;
    border: 1px dashed #6d887e;
    border-radius: 4px;
  }
  .map-list li.current {
    border-style: solid;
    border-color: var(--accent);
    background: #33463a;
  }
}
