@font-face {
  font-family: Barlow Condensed;
  src: url('./fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url('./fonts/barlow-condensed-800-italic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #252c25;
  --muted: #596254;
  --line: #c9ccbd;
  --paper: #f7f7ee;
  --panel: #fdfcf5;
  --orange: #ff8050;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font:
    100%/1.45 'Helvetica Neue',
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #858e77 var(--paper);
  accent-color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
input[type='radio'],
input[type='range'] {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  padding: 0;
}
svg:not(.symbols):not(.compass) {
  display: block;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
:focus-visible {
  outline: 3px solid #287092;
  outline-offset: 3px;
}
::selection {
  background: #ffd5bd;
  color: var(--ink);
}
.wrap {
  width: min(clamp(1496px, 85vw, 2800px), calc(100% - clamp(32px, 6.8vw, 112px)));
  margin-inline: auto;
}
.masthead {
  background: #232923;
  color: #f8f8ec;
}
.mast-inner {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand,
.info-button,
.transport,
.title-line,
.primary,
.square,
.clock,
.views,
.zoom,
.panel-heading,
.slider-label,
.metric-title,
.reading {
  display: flex;
  align-items: center;
}
.brand {
  gap: 12px;
  font: italic 800 clamp(1.25rem, 2.3vw, 1.73rem) / 1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand-accent {
  color: #ff9b70;
}
.info-button {
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #edeedc;
  min-height: 40px;
  padding-inline: 10px;
  border-radius: 5px;
}
.info-button:hover {
  background: #3b4339;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(23px, 3.5vh, 43px) 0 clamp(21px, 3vh, 34px);
}
.title-line {
  gap: 17px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
}
h1 {
  font-size: clamp(3.1rem, 5vw, 4.8rem);
  letter-spacing: -0.025em;
}
.route {
  font:
    bold 0.86rem/1.05 Arial,
    sans-serif;
  color: #fbfae9;
  background: #42657b;
  border: 2px solid #42657b;
  outline: 1px solid #42657b;
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1px #e0e8dc;
  padding: 4px 7px 3px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  transform: translateY(3px);
}
.intro p {
  margin-top: 8px;
  text-wrap: balance;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.24vw, 1.05rem);
}
.transport {
  gap: 8px;
}
.primary,
.square {
  min-height: 44px;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
}
.primary {
  background: var(--orange);
  border: 1px solid #da7245;
  padding: 0 18px;
  gap: 8px;
  min-width: 136px;
}
.primary:hover {
  background: #ff9769;
}
.square {
  min-width: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.square:hover,
.views button:not([aria-pressed='true']):hover,
.zoom button:enabled:hover {
  background: #e4e8da;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(275px, 23.1vw, 350px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 36px;
}
.world {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.viewport {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1;
  border: 1px solid #b9c1ad;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e9ede0;
  background-image: radial-gradient(#bfc8b3 0.85px, transparent 0.95px);
  background-size: 13px 13px;
}
.viewport-top {
  position: absolute;
  inset: 16px 16px auto 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}
.clock {
  min-height: 31px;
  padding: 6px 9px;
  gap: 10px;
  background: var(--panel);
  border: 1px solid #bac4ab;
  border-radius: 4px;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #405e38;
  text-transform: uppercase;
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.085em;
}
.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b934c;
}
.status.paused {
  color: #755037;
}
.status.paused::before {
  background: #b77c48;
}
.clock time {
  border-left: 1px solid var(--line);
  padding-left: 10px;
  letter-spacing: 0.04em;
}
.compass {
  width: 34px;
  height: 42px;
  fill: #52614f;
  font:
    700 11px Arial,
    sans-serif;
}
#stage {
  position: relative;
  flex: 1;
  min-height: clamp(320px, 26.4vw, 418px);
  margin: 25px 0 0;
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 340px;
}
#scene {
  cursor: crosshair;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vehicle-inspector {
  border-block: 1px solid var(--line);
  padding: 9px 2px;
  font-size: 0.82rem;
}
.inspect-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
}
.inspect-bar label {
  font-weight: 700;
}
.inspect-bar select,
.inspect-bar button {
  max-width: 100%;
  min-height: 34px;
  border: 1px solid #adb5a2;
  border-radius: 4px;
  background: var(--panel);
  padding: 5px 8px;
}
.inspect-bar button[aria-pressed='true'] {
  background: #354631;
  color: white;
}
#vehicle-stats:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin: 10px 0 0;
}
#vehicle-stats dt,
#inspect-status {
  color: var(--muted);
}
#vehicle-stats dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#inspect-status:not(:empty) {
  margin-top: 6px;
}
.view-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 15px 14px;
  z-index: 1;
}
.views,
.zoom {
  border: 1px solid #b7c0ab;
  border-radius: 5px;
  background: #f7f9ee;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
}
.views {
  padding: 3px;
  gap: 2px;
}
.views button,
.zoom button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
}
.views button {
  padding: 0 9px;
  border-radius: 3px;
}
.views button[aria-pressed='true'] {
  background: #354134;
  color: #fbfcee;
}
.zoom button {
  width: 32px;
  min-height: 36px;
}
.zoom button:disabled {
  opacity: 0.32;
  cursor: default;
}
.zoom output {
  min-width: 45px;
  text-align: center;
  font:
    600 0.74rem/1.2 ui-monospace,
    monospace;
}
.zoom button:focus-visible,
.views button:focus-visible {
  outline-offset: -3px;
}
.telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-block: 1px solid var(--line);
  padding: 16px 0;
}
.metric {
  min-width: 0;
  padding: 0 clamp(10px, 1.35vw, 22px);
  border-left: 1px solid var(--line);
}
.metric:first-child {
  padding-left: 2px;
  border-left: 0;
}
.metric:last-child {
  padding-right: 4px;
}
.metric-title {
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.metric-title svg {
  width: 17px !important;
  height: 17px !important;
}
.reading {
  gap: 6px;
  flex-wrap: nowrap;
  align-items: baseline;
  min-height: 44px;
}
.reading strong {
  font: 700 clamp(2.2rem, 3.3vw, 3.2rem) / 1.08 var(--display);
  font-variant-numeric: tabular-nums;
}
.reading span {
  font-size: 0.77rem;
  color: var(--muted);
}
.reading canvas {
  max-width: 39%;
  min-width: 0;
  width: 76px;
  height: 30px;
  margin-left: auto;
  align-self: center;
}
.parameters {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.panel-heading {
  padding: 16px 20px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-heading svg {
  color: #485642;
}
h2 {
  font-size: 1.8rem;
  letter-spacing: -0.012em;
}
.panel-body {
  padding: 18px 20px 22px;
}
.field-label,
legend,
.slider-label label {
  font-weight: 650;
  font-size: 0.88rem;
}
.select-wrap {
  position: relative;
  margin-top: 7px;
}
.select-wrap select {
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #aab19f;
  background: var(--panel);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 550;
}
.select-wrap svg {
  pointer-events: none;
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
}
.lanes {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  width: 100%;
  padding: 0;
  margin-bottom: 7px;
}
legend small {
  float: right;
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--muted);
}
.segments {
  display: flex;
  border: 1px solid #b5bcaa;
  border-radius: 4px;
  overflow: hidden;
}
.segments label {
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.segments label + label {
  border-left: 1px solid #b5bcaa;
}
.segments input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
}
.segments span {
  display: grid;
  place-items: center;
  height: 36px;
  font-size: 0.91rem;
  font-weight: 650;
  pointer-events: none;
}
.segments label:hover span {
  background: #e8ecdf;
}
.segments input:checked + span {
  background: #354134;
  color: #fffef0;
}
.segments input:focus-visible + span {
  outline: 3px solid #438ba5;
  outline-offset: -3px;
}
.slider {
  padding-top: 14px;
  border-top: 1px solid #dcdfd0;
}
.slider + .slider {
  margin-top: 13px;
}
.slider-label,
.limits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.slider-label output {
  font:
    700 0.84rem/1.3 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #844121;
  font-variant-numeric: tabular-nums;
}
.slider input {
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 4px 0 0;
  padding: 0;
  background: transparent;
  --percent: 50%;
  --track: linear-gradient(to right, #687b57 var(--percent), #d6dbca var(--percent));
}
.slider input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--track);
}
.slider input::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--track);
}
.slider input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 2px solid #38482f;
  border-radius: 50%;
  background: #f6f8e9;
}
.slider input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #38482f;
  border-radius: 50%;
  background: #f6f8e9;
}
.limits {
  color: var(--muted);
  font-size: 0.72rem;
}
dialog {
  width: min(480px, calc(100% - 32px));
  max-height: 85dvh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 23px;
  box-shadow: 0 18px 60px #25302538;
}
dialog::backdrop {
  background: #1b281e80;
}
dialog form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
dialog h3 {
  margin: 20px 0 6px;
  font-size: 1.4rem;
}
dialog p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #45503e;
}
dialog p + p {
  margin-top: 14px;
}
@media (min-width: 1650px) {
  .intro {
    margin-block: 38px;
  }
}
@media (max-width: 980px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 12px;
  }
  .panel-heading,
  .panel-body {
    padding-inline: 16px;
  }
  .metric-title {
    font-size: 0.79rem;
  }
  .reading canvas {
    max-width: 29%;
  }
  .world {
    gap: 12px;
  }
}
@media (max-width: 780px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro {
    margin-block: 23px 18px;
  }
  .panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
  }
  .field-label {
    grid-column: 1;
    align-self: start;
  }
  .select-wrap {
    grid-column: 1;
    grid-row: 2;
    margin-top: -12px;
  }
  .slider + .slider {
    margin: 0;
  }
  .slider {
    align-self: end;
  }
  .panel-heading {
    padding: 13px 16px;
  }
  #stage {
    min-height: clamp(245px, 44.8vw, 335px);
  }
  .reading canvas {
    max-width: 45%;
  }
  .telemetry {
    padding: 12px 0;
  }
}
@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .mast-inner {
    min-height: 56px;
  }
  .brand {
    gap: 8px;
    font-size: 1.22rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .info-button {
    gap: 5px;
    padding: 0 3px;
    font-size: 0.75rem;
  }
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 4px;
  }
  .intro > div:first-child {
    display: contents;
  }
  .title-line {
    gap: 9px;
    align-self: center;
  }
  .intro h1 {
    font-size: clamp(2.5rem, 9.2vw, 3.1rem);
  }
  .route {
    font-size: 0.7rem;
    padding: 3px 4px;
    transform: none;
  }
  .intro p {
    grid-column: 1/-1;
    grid-row: 2;
    font-size: 0.88rem;
    max-width: 42ch;
    margin-top: 7px;
  }
  .transport {
    gap: 4px;
    align-self: center;
  }
  .primary,
  .square {
    min-height: 37px;
  }
  .primary {
    padding: 0 8px;
    min-width: 0;
    font-size: 0.75rem;
    gap: 4px;
  }
  .square {
    min-width: 35px;
  }
  .view-tools {
    padding: 0 8px 8px;
  }
  .viewport-top {
    inset: 9px 9px auto;
  }
  .views button {
    padding: 0 6px;
    font-size: 0.7rem;
  }
  .zoom button {
    width: 27px;
  }
  .zoom output {
    min-width: 35px;
  }
  .metric {
    padding-inline: 8px;
  }
  .metric-title {
    min-height: 2.4em;
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1.2;
  }
  .metric-title svg {
    width: 13px !important;
    height: 13px !important;
  }
  .reading {
    gap: 3px;
    min-height: 37px;
  }
  .reading strong {
    font-size: 2rem;
  }
  .reading span {
    font-size: 0.7rem;
  }
  .reading canvas {
    display: none;
  }
  .panel-body {
    display: block;
    padding: 16px;
  }
  .select-wrap {
    margin-top: 6px;
  }
  .slider + .slider {
    margin-top: 13px;
  }
  .compass {
    width: 28px;
    height: 33px;
  }
  #stage {
    min-height: clamp(184px, 45vw, 236px);
  }
}
@media (max-width: 360px) {
  .primary span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .primary {
    min-width: 36px;
  }
  .brand {
    font-size: 1.1rem;
  }
}
@media (pointer: coarse) {
  .select-wrap select,
  .segments span,
  .views button,
  .zoom button,
  .primary,
  .square,
  .info-button {
    min-height: 44px;
  }
  .zoom button {
    min-width: 34px;
  }
  .slider input {
    height: 36px;
  }
}
@media (forced-colors: active) {
  .slider input {
    appearance: auto;
  }
  .segments input:checked + span,
  .views button[aria-pressed='true'] {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
  .status::before {
    background: CanvasText;
  }
}
.lane-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-block-start: 16px;
}
.segments input:disabled {
  cursor: not-allowed;
}
.segments input:disabled + span {
  color: #73776b;
  background: #eceee4;
  text-decoration: line-through;
}

.style-field {
  margin-bottom: 16px;
}
@media (min-width: 541px) and (max-width: 780px) {
  .lane-pair {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }
  .style-field {
    margin: 0;
  }
  .style-field .select-wrap {
    margin: 6px 0 0;
  }
}
.viewport {
  min-height: 365px;
  background: #b6c981;
}
@media (min-width: 1280px) and (min-height: 800px) {
  .viewport {
    min-height: clamp(365px, calc(100dvh - 26rem), 72dvh);
  }
  .parameters {
    align-self: start;
  }
}
#stage {
  position: absolute;
  inset: 0;
  margin: 0;
  min-height: 0;
}
.view-tools {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.view-tools > div {
  pointer-events: auto;
}
.compass {
  background: #f7f9eee8;
  border-radius: 4px;
}
.approach-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  margin: 14px 0 15px;
  cursor: pointer;
}
.approach-option input {
  width: 17px;
  height: 17px;
  margin: 0;
}
@media (max-width: 780px) {
  .viewport {
    min-height: clamp(260px, 52vw, 390px);
  }
  .approach-option {
    margin: 0;
  }
}
@media (max-width: 540px) {
  .viewport {
    min-height: clamp(240px, 62vw, 320px);
  }
  .approach-option {
    margin: 14px 0 15px;
  }
}

#title a {
  color: inherit;
  text-decoration: none;
}
#title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.09em;
}
:is(.comparison, .research, .merge-evidence) {
  margin: -12px 0 28px;
  border-block: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.91rem;
}
.comparison[open] {
  padding-bottom: 20px;
}
.comparison p {
  margin: 5px 0 0;
  font-size: 0.89rem;
  color: var(--muted);
}
.comparison form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 22px;
  margin-top: 14px;
}
.comparison label {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 650;
}
.comparison input,
.comparison select,
.comparison output,
.compare-run {
  border-radius: 5px;
  min-height: 42px;
  padding: 8px 11px;
  font: inherit;
}
.comparison input,
.comparison select {
  border: 1px solid var(--line);
  background: #fbfbf4;
  color: var(--ink);
  width: 9rem;
}
.comparison output {
  display: flex;
  align-items: center;
  padding-inline: 0;
  font-variant-numeric: tabular-nums;
}
.compare-run {
  background: #364532;
  color: white;
  font-weight: 650;
}
.compare-run:disabled {
  opacity: 0.65;
  cursor: progress;
}
.compare-run:enabled:hover {
  background: #263722;
}
.comparison progress {
  margin-top: 12px;
  accent-color: #6f844e;
}
#compare-status:empty {
  display: none;
}
#compare-result {
  margin-top: 18px;
  max-width: 46rem;
}
.result-scroll {
  max-width: 100%;
  overflow: auto;
}
.result-scroll table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.87rem;
  font-variant-numeric: tabular-nums;
}
.result-scroll caption {
  text-align: start;
  font-weight: 700;
  padding-bottom: 8px;
}
.result-scroll th,
.result-scroll td {
  text-align: end;
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
}
.result-scroll th:first-child {
  text-align: start;
  position: sticky;
  inset-inline-start: 0;
  background: var(--paper, #f7f7ef);
}
.result-scroll thead th {
  background: #e9ecdf;
  white-space: nowrap;
}
.result-scroll tbody th {
  font-weight: 500;
}
#compare-accounting {
  max-width: 74ch;
}
#compare-context {
  font-size: 0.78rem;
}
@media (max-width: 420px) {
  .comparison form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .comparison input,
  .comparison select {
    width: 100%;
    min-width: 0;
  }
  .result-scroll th,
  .result-scroll td {
    padding: 6px 3px;
  }
}
:is(.comparison, .research, .merge-evidence) summary {
  width: fit-content;
  cursor: pointer;
  padding: 13px 1px;
  font-weight: 650;
}
:is(.comparison, .research, .merge-evidence) ul {
  max-width: 82ch;
  margin: 0;
  padding: 0 0 20px 20px;
}
:is(.comparison, .research, .merge-evidence) li + li {
  margin-top: 12px;
}
:is(.comparison, .research, .merge-evidence) a {
  color: #385f55;
  text-underline-offset: 3px;
}
:is(.comparison, .research, .merge-evidence) li p {
  margin: 0 0 3px;
}
@media (max-width: 540px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .intro h1 {
    font-size: clamp(2.2rem, 9vw, 3.1rem);
  }
  .transport {
    justify-self: start;
  }
  .primary span {
    position: static;
    clip-path: none;
    width: auto;
    height: auto;
  }
  .workspace {
    margin-bottom: 22px;
  }
}

.language {
  margin-inline-start: auto;
}
.language select {
  background: #30392f;
  color: #f7f9ed;
  padding: 6px 5px;
  font-size: 0.82rem;
  border: 1px solid #778171;
  border-radius: 4px;
}
@media (pointer: coarse) {
  .language select {
    min-height: 44px;
  }
}
.balance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  align-items: center;
  padding: 0 2px 11px;
}
.balance h2 {
  font-size: 1.24rem;
  margin-bottom: 2px;
}
.balance small {
  color: var(--muted);
  font-size: 0.75rem;
}
.balance table {
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.balance th,
.balance td {
  text-align: right;
  padding: 2px 7px;
}
.balance th:first-child {
  text-align: left;
}
.balance thead {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.balance tbody th {
  font-weight: 500;
}
.metric-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .info-button {
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
  }
  .info-button span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .mast-inner {
    gap: 6px;
  }
}

#queue-marker {
  position: absolute;
  background: #623a22;
  color: #fff3dd;
  border: 1px solid #ffdaa4;
  border-radius: 3px;
  padding: 2px 6px;
  font:
    650 11px/1.35 system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
}
.result-scroll td small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
}
#compare-fraction {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.project-footer {
  background: #2e2e2e;
  color: #f5f2f3;
  font-family: Arial, Helvetica, sans-serif;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding-block: clamp(24px, 4vw, 48px);
}
.footer-inner img {
  width: 132px;
  height: auto;
}
.footer-credit p {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
}
.footer-credit nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ff70a5;
  font-size: 0.92rem;
  text-underline-offset: 0.2em;
}
.footer-credit a + a::before {
  content: '';
  width: 1px;
  height: 1em;
  background: #776e73;
  margin-right: 12px;
}
.footer-credit a:focus-visible {
  outline: 2px solid #ff70a5;
  outline-offset: 2px;
}
@media (max-width: 500px) {
  .footer-inner {
    display: grid;
    gap: 12px;
  }
  .footer-credit nav {
    column-gap: 8px;
  }
  .footer-credit a + a::before {
    margin-right: 8px;
  }
}

@media (max-width: 380px) {
  .footer-credit nav {
    column-gap: 6px;
  }
  .footer-credit a {
    font-size: 0.8125rem;
  }
  .footer-credit a + a::before {
    margin-right: 6px;
  }
}
.capacity {
  margin-block: 2.5rem;
  padding-block: 1.25rem;
  border-top: 2px solid var(--ink);
}
.capacity > p, .capacity details p {
  max-width: 75ch;
  margin: .55rem 0 1.2rem;
  color: var(--muted);
}
.capacity-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(18rem, 2fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 3.5rem);
}
.capacity-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem .5rem;
}
.capacity-controls > label, .capacity-controls legend {
  font-size: .9rem;
  font-weight: 650;
}
.capacity-controls output { font-variant-numeric: tabular-nums; }
.capacity-controls > input, .capacity-controls fieldset, #capacity-unavailable {
  grid-column: 1 / -1;
}
.capacity-controls > input { width: 100%; margin: 0; height: 2.5rem; }
.capacity-controls fieldset { min-width: 0; margin: .45rem 0 0; padding: 0; border: 0; }
.capacity-controls fieldset label { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .3rem; margin-right: .65rem; }
.capacity-controls fieldset input { margin: 0; }
#capacity-table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-variant-numeric: tabular-nums; }
#capacity-table caption { text-align: left; font-weight: 650; margin: 0 0 .45rem 3px; }
#capacity-table th, #capacity-table td { padding: .6rem .25rem; text-align: center; }
#capacity-table th { font-size: .85rem; }
#capacity-table th:first-child { text-align: left; }
#capacity-table td { color: var(--muted); }
#capacity-table [data-layout] { color: #292b22; font-weight: 700; background: #e1e9d1; }
#capacity-table [data-band="1"] { background: #eee5bd; }
#capacity-table [data-band="2"] { background: #f3ce99; }
#capacity-table [data-band="3"] { background: #ecab73; }
#capacity-table [data-band="4"] { background: #df865c; }
.capacity > .capacity-legend { margin-top: 1rem; font-size: .9rem; }
.capacity summary { cursor: pointer; font-weight: 650; }
@media (max-width: 650px) {
  .capacity-layout { grid-template-columns: minmax(0, 1fr); }
}
.scene-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
