:root {
  color-scheme: light;
  --stone: #e3e7e4;
  --stone-dark: #bcc5c0;
  --porcelain: #f8f9f6;
  --porcelain-muted: #eef1ed;
  --graphite: #1b2220;
  --graphite-soft: #4f5b57;
  --oxblood: #6a2130;
  --oxblood-dark: #43141e;
  --oxblood-light: #8d3446;
  --brass: #d4a33a;
  --brass-dark: #6d4d0d;
  --lift-green: #23745e;
  --lift-green-dark: #174c3f;
  --low-blue: #246b83;
  --danger: #a8323d;
  --focus: #0b66c3;
  --border: #18201e;
  --shadow: rgba(28, 34, 31, 0.28);
  --font-ui: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: Bahnschrift, "Arial Narrow", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-data: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--stone);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--graphite);
  background: var(--stone);
  font-family: var(--font-ui);
  text-rendering: optimizeLegibility;
}

button,
input,
select,
summary {
  font: inherit;
}

button,
summary,
select {
  touch-action: manipulation;
}

button,
input,
select,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 50;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--graphite);
  transform: translate(-50%, -150%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
}

.app-header {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.header-control {
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--graphite);
  background: transparent;
  border: 2px solid var(--graphite);
  border-radius: 7px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.header-control:hover {
  color: #ffffff;
  background: var(--graphite);
}

.back-link {
  justify-self: start;
}

.app-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: left;
}

.app-identity img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid var(--graphite);
  border-radius: 9px;
}

.app-identity h1,
.app-identity p {
  margin: 0;
}

.app-identity h1 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-stretch: condensed;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.app-identity p {
  margin-top: 3px;
  color: var(--graphite-soft);
  font-family: var(--font-data);
  font-size: 0.73rem;
  font-weight: 700;
}

.settings {
  position: relative;
  justify-self: end;
}

.settings summary {
  list-style: none;
}

.settings summary::-webkit-details-marker {
  display: none;
}

.settings[open] summary {
  color: #ffffff;
  background: var(--graphite);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(270px, calc(100vw - 32px));
  padding: 16px;
  color: var(--graphite);
  background: var(--porcelain);
  border: 2px solid var(--graphite);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.settings-panel label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.settings-panel select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--graphite);
  background: #ffffff;
  border: 2px solid var(--graphite);
  border-radius: 5px;
  font-size: 1rem;
}

.settings-panel p {
  margin: 14px 0 0;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--stone-dark);
}

.elevator-console {
  overflow: hidden;
  background: var(--porcelain);
  border: 8px solid var(--oxblood);
  border-radius: 12px;
  box-shadow:
    0 6px 0 var(--oxblood-dark),
    0 8px 8px var(--shadow);
}

.console-header {
  min-height: 76px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
  background: var(--oxblood);
  border-bottom: 3px solid var(--oxblood-dark);
}

.console-header p,
.console-header h2 {
  margin: 0;
}

.console-kicker {
  color: #f2d8dd;
  font-size: 0.84rem;
  font-weight: 700;
}

.console-header h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.new-game-button {
  min-height: 46px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--graphite);
  background: var(--brass);
  border: 2px solid #f5d77f;
  border-bottom-color: var(--brass-dark);
  border-right-color: var(--brass-dark);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.new-game-button:hover {
  background: #e3b64f;
}

.new-game-button:active {
  border-color: var(--brass-dark) #f5d77f #f5d77f var(--brass-dark);
  transform: translate(1px, 1px);
}

.console-grid {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 31%);
}

.game-bay {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}

.log-bay {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: var(--porcelain-muted);
  border-left: 3px solid var(--graphite);
}

.range-readout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
}

.range-bound {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.range-bound--end {
  justify-content: flex-end;
}

.range-bound span,
.possibility-readout span {
  color: var(--graphite-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.range-bound output {
  font-family: var(--font-data);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.possibility-readout {
  text-align: center;
}

.possibility-readout output {
  display: block;
  color: var(--oxblood);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
}

.floor-range {
  --range-start: 0%;
  --range-end: 100%;
  --guess-position: 50%;
  margin-top: 12px;
}

.range-line {
  position: relative;
  height: 32px;
  overflow: visible;
  background: var(--stone-dark);
  border: 2px solid var(--graphite);
  border-radius: 3px;
}

.range-window,
.range-shutter,
.guess-marker {
  position: absolute;
}

.range-window {
  top: 4px;
  bottom: 4px;
  left: var(--range-start);
  right: calc(100% - var(--range-end));
  min-width: 3px;
  background: var(--brass);
  border: 1px solid var(--brass-dark);
  transition:
    left 220ms cubic-bezier(0.22, 1, 0.36, 1),
    right 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.range-shutter {
  top: 0;
  bottom: 0;
  z-index: 2;
  background: var(--graphite);
  opacity: 0.78;
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.range-shutter--low {
  left: 0;
  width: var(--range-start);
}

.range-shutter--high {
  right: 0;
  width: calc(100% - var(--range-end));
}

.guess-marker {
  left: var(--guess-position);
  bottom: calc(100% + 7px);
  z-index: 4;
  width: 2px;
  height: 18px;
  color: #ffffff;
  background: var(--oxblood);
  transform: translateX(-50%);
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guess-marker::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid var(--oxblood);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transform: translateX(-50%);
}

.guess-marker span {
  position: absolute;
  right: 7px;
  bottom: 1px;
  min-width: 26px;
  padding: 2px 4px;
  color: #ffffff;
  background: var(--oxblood);
  border-radius: 3px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.floor-ticks {
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.floor-ticks li {
  position: relative;
  width: 1px;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floor-ticks i {
  width: 1px;
  height: 7px;
  display: block;
  background: var(--graphite);
}

.floor-ticks span {
  margin-top: 2px;
  color: var(--graphite-soft);
  font-family: var(--font-data);
  font-size: 0.64rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.indicator-cluster {
  margin: clamp(20px, 4vh, 34px) auto 18px;
  width: min(100%, 610px);
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(140px, 190px) minmax(100px, 1fr);
  align-items: center;
  gap: 16px;
}

.direction-lamp {
  min-height: 92px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #68716e;
  background: #d5dad6;
  border: 3px solid #929c97;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  transition:
    color 180ms ease-out,
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    transform 180ms ease-out;
}

.direction-arrow {
  font-size: 2rem;
  line-height: 1;
}

.elevator-console[data-tone="low"] .direction-lamp--up {
  color: #ffffff;
  background: var(--low-blue);
  border-color: #16485a;
  transform: translateY(-2px);
}

.elevator-console[data-tone="high"] .direction-lamp--down {
  color: #ffffff;
  background: var(--oxblood-light);
  border-color: var(--oxblood-dark);
  transform: translateY(2px);
}

.floor-display {
  position: relative;
  min-height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f6e4aa;
  background: #111715;
  border: 5px solid var(--brass);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 3px #513c0f,
    0 4px 0 rgba(27, 34, 32, 0.35);
}

.floor-display::before,
.floor-display::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #43514c;
}

.floor-display::before {
  top: 33.333%;
}

.floor-display::after {
  bottom: 33.333%;
}

.floor-display span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.4rem);
  font-stretch: condensed;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 2px 0 #000000;
}

.floor-display[data-flip="true"] span {
  animation: floor-flip 210ms cubic-bezier(0.22, 1, 0.36, 1);
}

.elevator-console[data-state="won"] .floor-display {
  color: #ffffff;
  background: var(--lift-green);
  border-color: #a2ceb5;
}

.status-panel {
  min-height: 52px;
  width: 100%;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--graphite);
  background: var(--porcelain-muted);
  border: 2px solid var(--graphite);
  border-radius: 6px;
  font-weight: 750;
  text-align: center;
}

.status-light {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: var(--brass);
  border: 2px solid var(--graphite);
  border-radius: 50%;
}

.elevator-console[data-tone="low"] .status-light {
  background: var(--low-blue);
}

.elevator-console[data-tone="high"] .status-light,
.elevator-console[data-tone="invalid"] .status-light {
  background: var(--danger);
}

.elevator-console[data-tone="correct"] .status-light {
  background: var(--lift-green);
}

.guess-form {
  width: min(100%, 610px);
  margin: 18px auto 0;
}

.guess-form > label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.guess-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.input-shell {
  position: relative;
}

.input-shell input {
  width: 100%;
  height: 54px;
  padding: 8px 54px 8px 16px;
  color: var(--graphite);
  background: #ffffff;
  border: 3px solid var(--graphite);
  border-radius: 6px;
  font-family: var(--font-data);
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.input-shell input::placeholder {
  color: #68736f;
  opacity: 1;
}

.input-shell input[aria-invalid="true"] {
  border-color: var(--danger);
}

.clear-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 44px;
  height: 44px;
  color: var(--graphite);
  background: var(--stone);
  border: 0;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer;
}

.clear-button:hover {
  background: var(--stone-dark);
}

.guess-button {
  min-height: 54px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background: var(--oxblood);
  border: 3px solid var(--oxblood-dark);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.guess-button:hover:not(:disabled) {
  background: var(--oxblood-light);
}

.guess-button:active:not(:disabled) {
  transform: translateY(1px);
}

.guess-button:disabled {
  color: #646e6a;
  background: #cbd1cd;
  border-color: #8e9893;
  cursor: not-allowed;
}

.input-note,
.input-error {
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.input-note {
  color: var(--graphite-soft);
}

.input-error {
  min-height: 1.25em;
  color: var(--danger);
  font-weight: 750;
}

.performance-strip {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--graphite);
  border-radius: 6px;
  background: var(--porcelain);
}

.performance-strip > div {
  padding: 14px 10px;
  text-align: center;
}

.performance-strip > div + div {
  border-left: 2px solid var(--graphite);
}

.performance-strip dt {
  color: var(--graphite-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.performance-strip dd {
  margin: 4px 0 0;
  color: var(--oxblood);
  font-family: var(--font-data);
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.history-section {
  min-height: 0;
  margin-top: 20px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.history-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--graphite);
}

.history-section h2 {
  margin: 0;
  font-size: 1rem;
  text-wrap: balance;
}

.history-count {
  min-width: 28px;
  padding: 3px 7px;
  color: #ffffff;
  background: var(--graphite);
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.history-list {
  min-height: 128px;
  max-height: 300px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-gutter: stable;
}

.history-list li {
  min-height: 44px;
  padding: 9px 4px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--stone-dark);
}

.history-list li:last-child {
  border-bottom: 0;
}

.history-list li[data-result="low"] {
  color: var(--low-blue);
}

.history-list li[data-result="high"] {
  color: var(--oxblood);
}

.history-list li[data-result="correct"] {
  color: var(--lift-green-dark);
  font-weight: 800;
}

.history-index {
  color: var(--graphite-soft);
  font-family: var(--font-data);
  font-size: 0.72rem;
}

.history-guess {
  color: currentColor;
  font-family: var(--font-data);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.history-direction {
  min-width: 28px;
  font-size: 1.2rem;
  text-align: center;
}

.history-empty {
  display: block !important;
  padding: 18px 4px !important;
  color: var(--graphite-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.record-badge {
  margin-top: 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--graphite);
  background: var(--brass);
  border: 2px solid var(--brass-dark);
  border-radius: 5px;
}

.record-badge[hidden] {
  display: none;
}

.record-badge span {
  padding: 2px 5px;
  color: #ffffff;
  background: var(--graphite);
  border-radius: 3px;
  font-family: var(--font-data);
  font-size: 0.69rem;
  font-weight: 800;
}

.record-badge strong {
  font-size: 0.9rem;
}

.console-footer {
  min-height: 40px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  background: var(--graphite);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes floor-flip {
  0% {
    opacity: 0.25;
    transform: translateY(-22%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 620px);
    padding-top: 10px;
  }

  .app-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .header-control {
    min-width: 44px;
    padding: 9px 10px;
  }

  .back-link span:last-child,
  .settings summary span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .app-identity img {
    width: 36px;
    height: 36px;
  }

  .app-identity h1 {
    font-size: 1.1rem;
  }

  .app-identity p {
    font-size: 0.65rem;
  }

  .elevator-console {
    border-width: 6px;
  }

  .console-grid {
    display: block;
  }

  .game-bay {
    padding: 18px 14px 20px;
  }

  .log-bay {
    padding: 18px 14px;
    border-top: 3px solid var(--graphite);
    border-left: 0;
  }

  .indicator-cluster {
    grid-template-columns: minmax(74px, 1fr) minmax(116px, 148px) minmax(74px, 1fr);
    gap: 8px;
  }

  .direction-lamp {
    min-height: 78px;
    padding: 8px 4px;
    font-size: 0.67rem;
  }

  .direction-arrow {
    font-size: 1.55rem;
  }

  .floor-display {
    min-height: 108px;
    border-width: 4px;
  }

  .guess-controls {
    grid-template-columns: 1fr;
  }

  .guess-button {
    width: 100%;
  }

  .history-list {
    max-height: none;
  }
}

@media (max-width: 420px) {
  .app-shell {
    width: calc(100% - 12px);
  }

  .console-header {
    min-height: 68px;
    padding: 11px 12px;
  }

  .console-kicker {
    font-size: 0.72rem;
  }

  .console-header h2 {
    font-size: 1.03rem;
  }

  .new-game-button {
    min-width: 44px;
    padding: 9px 10px;
  }

  .new-game-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .range-readout {
    gap: 8px;
  }

  .range-bound {
    display: block;
  }

  .range-bound--end {
    text-align: right;
  }

  .floor-ticks li:nth-child(even):not(:last-child) span {
    display: none;
  }

  .indicator-cluster {
    margin-top: 18px;
  }

  .direction-lamp span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .console-footer {
    justify-content: center;
  }

  .console-footer span:last-child {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 460px) and (min-width: 620px) {
  .app-shell {
    width: min(100% - 18px, 1120px);
    padding: 4px 0;
  }

  .app-header {
    min-height: 38px;
    margin-bottom: 4px;
  }

  .app-identity img {
    width: 30px;
    height: 30px;
  }

  .app-identity p {
    display: none;
  }

  .header-control {
    min-height: 36px;
    padding: 6px 10px;
  }

  .elevator-console {
    border-width: 5px;
  }

  .console-header {
    min-height: 44px;
    padding: 4px 10px;
  }

  .console-kicker {
    display: none;
  }

  .new-game-button {
    min-height: 36px;
    padding: 5px 10px;
  }

  .console-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
  }

  .game-bay {
    padding: 6px 18px 5px;
  }

  .log-bay {
    padding: 6px 14px;
  }

  .range-readout {
    display: none;
  }

  .floor-range {
    margin-top: 0;
  }

  .indicator-cluster {
    width: min(100%, 520px);
    margin: 5px auto;
    grid-template-columns: minmax(78px, 1fr) minmax(104px, 132px) minmax(78px, 1fr);
    gap: 9px;
  }

  .direction-lamp {
    min-height: 64px;
    padding: 5px;
    font-size: 0.65rem;
  }

  .direction-arrow {
    font-size: 1.35rem;
  }

  .floor-display {
    min-height: 64px;
    border-width: 3px;
  }

  .floor-display span {
    font-size: 3rem;
  }

  .status-panel {
    min-height: 34px;
    padding: 4px 10px;
    font-size: 0.82rem;
  }

  .guess-form {
    margin-top: 4px;
  }

  .guess-form > label,
  .input-note,
  .input-error {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .input-shell input,
  .guess-button {
    height: 44px;
    min-height: 44px;
  }

  .guess-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .performance-strip > div {
    padding: 6px;
  }

  .performance-strip dd {
    font-size: 1.3rem;
  }

  .history-section {
    margin-top: 5px;
  }

  .history-section header {
    padding-bottom: 5px;
  }

  .history-list {
    min-height: 60px;
    max-height: 102px;
  }

  .history-list li {
    min-height: 32px;
    padding: 4px 2px;
  }

  .record-badge {
    margin-top: 6px;
    padding: 5px 8px;
  }

  .console-footer {
    min-height: 24px;
    padding: 3px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
