:root {
  --page: #004f27;
  --panel: #090909;
  --panel-2: #111111;
  --panel-3: #050505;
  --line: rgba(255, 196, 38, 0.24);
  --line-soft: rgba(255, 255, 255, 0.08);
  --label: #ffd23a;
  --led-on: #ffc400;
  --led-white: #f2f0df;
  --led-green: #72ff00;
  --led-orange: #ff9f1a;
  --led-blue: #42c8ff;
  --led-red: #ff3030;
  --led-off: rgba(98, 98, 78, 0.24);
  --led-off-soft: rgba(82, 82, 68, 0.26);
  --led-pitch: 5px;
  --led-bg-dot-radius: 1px;
  --led-on-dot-size: 3px;
  --led-char-gap: var(--led-pitch);
  --topbar-card-height: 72px;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  --dot-slot: radial-gradient(
    circle,
    var(--led-off-soft) 0 var(--led-bg-dot-radius),
    transparent calc(var(--led-bg-dot-radius) + 0.1px)
  );
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--led-white);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.42)),
    var(--page);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

button {
  font: inherit;
}

.page-shell {
  width: 100%;
  height: 100vh;
  max-width: 1780px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .page-shell {
    height: 100dvh;
  }
}

html.is-ios-device.is-ios-standalone .page-shell {
  height: var(--iphone-visual-viewport-height, 100dvh);
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.topbar {
  flex: 0 0 auto;
}

.topbar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 390px;
  gap: 10px;
  align-items: center;
}

.title-card,
.control-card,
.board-column,
.legend-bar {
  background:
    linear-gradient(180deg, #151515 0%, #080808 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.title-card {
  height: var(--topbar-card-height);
  min-height: var(--topbar-card-height);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
}



.title-copy {
  min-width: 0;
}

.analog-clock {
  width: 72px;
  height: 72px;
  justify-self: center;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.analog-clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 63%, transparent 64%),
    repeating-conic-gradient(
      from 0deg,
      #111111 0deg 1.2deg,
      transparent 1.2deg 6deg
    ),
    #ffffff;
  border: 2px solid #151515;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.analog-number {
  position: absolute;
  color: #090909;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
  user-select: none;
}

.analog-number.n12 { top: 12%; left: 50%; }
.analog-number.n1 { top: 17%; left: 67%; }
.analog-number.n2 { top: 31%; left: 80%; }
.analog-number.n3 { top: 50%; left: 86%; }
.analog-number.n4 { top: 69%; left: 80%; }
.analog-number.n5 { top: 82%; left: 67%; }
.analog-number.n6 { top: 88%; left: 50%; }
.analog-number.n7 { top: 82%; left: 33%; }
.analog-number.n8 { top: 69%; left: 20%; }
.analog-number.n9 { top: 50%; left: 14%; }
.analog-number.n10 { top: 31%; left: 20%; }
.analog-number.n11 { top: 17%; left: 33%; }

.analog-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 999px;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(0deg);
  background: #111111;
}

.analog-hour-hand {
  width: 4px;
  height: 21%;
}

.analog-minute-hand {
  width: 3px;
  height: 34%;
}

.analog-second-hand {
  width: 1px;
  height: 39%;
  background: #2f2f2f;
}

.analog-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #151515;
  border: 1px solid var(--led-on);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 196, 38, 0.55);
}

.title-copy h1 {
  margin: 0;
  color: var(--led-white);
  font-family: "Arial Black", "Impact", "Inter", Arial, sans-serif;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  white-space: normal;
}

.control-card {
  height: var(--topbar-card-height);
  min-height: var(--topbar-card-height);
  padding: 6px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  border-radius: 8px;
}

.clock-weekday-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 6px;
}

.clock-text,
.weekday-dot-text,
.date-control-row {
  min-width: 0;
  background:
    linear-gradient(180deg, #111111 0%, #050505 100%);
  border: 0;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.86);
}

.clock-text {
  --led-pitch: 3px;
  --led-bg-dot-radius: 0.75px;
  --led-on-dot-size: 2px;
  --led-char-gap: var(--led-pitch);
  min-height: 24px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-image:
    var(--dot-slot),
    linear-gradient(180deg, #111111 0%, #050505 100%);
  background-size:
    var(--led-pitch) var(--led-pitch),
    auto;
  background-position: center center, center;
}

.weekday-dot-text {
  --led-pitch: 3px;
  --led-bg-dot-radius: 0.75px;
  --led-on-dot-size: 2px;
  --led-char-gap: var(--led-pitch);
  min-height: 24px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background-image:
    var(--dot-slot),
    linear-gradient(180deg, #111111 0%, #050505 100%);
  background-size:
    var(--led-pitch) var(--led-pitch),
    auto;
  background-position: center center, center;
}

.date-control-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px 58px 34px;
  align-items: center;
  gap: 6px;
  overflow: visible;
  min-height: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.date-control-row > * {
  min-width: 0;
}

.date-control-row > * + * {
  border-left: 0;
}

.date-nav-btn {
  width: 100%;
  height: 100%;
  min-height: 24px;
  border: 0;
  background: linear-gradient(180deg, #111111 0%, #050505 100%);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.86);
  color: var(--led-on);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial Black", "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 196, 38, 0.46);
}

#btn-next-day {
  border-right: 0;
  border-left: 0;
}

.date-picker-wrap {
  position: relative;
  height: 100%;
  min-width: 0;
}

.date-picker-btn {
  width: 100%;
  height: 100%;
  min-height: 24px;
  border: 0;
  background: rgba(255, 196, 38, 0.05);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.86);
  color: var(--led-on);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial Black", "Inter", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(255, 196, 38, 0.40);
}

.date-picker-wrap:hover .date-picker-btn,
.date-picker-btn:hover,
.date-picker-wrap:focus-within .date-picker-btn {
  color: var(--led-green);
  background: rgba(114, 255, 0, 0.08);
  text-shadow: 0 0 10px rgba(114, 255, 0, 0.50);
}

.date-picker-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  color-scheme: dark;
  cursor: pointer;
}

.today-btn {
  height: 100%;
  min-height: 24px;
  border: 0;
  background: rgba(255, 196, 38, 0.05);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.86);
  color: var(--led-on);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial Black", "Inter", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(255, 196, 38, 0.40);
}

.today-btn:hover {
  color: var(--led-green);
  background: rgba(114, 255, 0, 0.08);
  text-shadow: 0 0 10px rgba(114, 255, 0, 0.50);
}

.date-nav-btn:hover {
  color: var(--led-green);
  text-shadow: 0 0 10px rgba(114, 255, 0, 0.55);
}

.date-text-strip {
  --led-pitch: 2.65px;
  --led-bg-dot-radius: 0.75px;
  --led-on-dot-size: 2px;
  --led-char-gap: 2px;
  min-width: 0;
  padding: 2px 4px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: var(--dot-slot);
  background-color: #050505;
  background-size: var(--led-pitch) var(--led-pitch);
  background-position: center center;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.86);
}

.single-board-wrap {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
}

.board-column {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
}

.board-toolbar {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 50vw);
  align-items: center;
  gap: 20px;
  background:
    linear-gradient(180deg, #141414 0%, #080808 100%);
  border-bottom: 1px solid rgba(255, 196, 38, 0.20);
}

.board-title-text {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--led-white);
  font-family: "Arial Black", "Impact", "Inter", Arial, sans-serif;
  font-size: clamp(23px, 1.72vw, 31px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.board-title-text::before {
  content: none;
}

.weather-text-strip {
  justify-self: end;
  width: 100%;
  max-width: 50vw;
  min-height: 26px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.35s ease;
  padding: 0;
}

.weather-plain-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--label);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  will-change: transform;
}

.weather-text-strip.is-weather-fading {
  opacity: 0;
}

.board-head-row,
.board-row {
  display: grid;
  grid-template-columns: 176px 198px 145px minmax(280px, 1fr) 136px;
}

.board-head-row {
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  padding: 0 16px;
  background: #050505;
  border-bottom: 1px solid rgba(255, 196, 38, 0.20);
}

.board-head-row > div {
  padding: 0 10px;
  color: var(--label);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.board-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.22)),
    #060606;
  transition: opacity 0.16s ease;
}

.board-body.is-day-loading {
  opacity: 0.55;
  pointer-events: none;
}

.day-section-label {
  flex: 0 0 auto;
  padding: 5px 10px 4px;
  color: rgba(255, 196, 38, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.current-day-label {
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 196, 38, 0.28);
}

.board-row.carryover-row {
  opacity: 0.82;
  border-color: rgba(255, 196, 38, 0.28);
}

.board-row {
  flex: 0 0 auto;
  min-height: 64px;
  align-items: stretch;
  overflow: hidden;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.20)),
    #0b0b0b;
  border: 1px solid rgba(255, 196, 38, 0.13);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8);
}

.board-row:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(0, 0, 0, 0.20)),
    #101010;
}

.board-row.canceled-row .display-value {
  color: var(--led-orange) !important;
}

.board-row.row-fade-in {
  animation: rowFadeIn 0.42s ease both;
}

@keyframes rowFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.col-time,
.col-origin,
.col-destination,
.col-flight,
.col-gate {
  min-width: 0;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-left: 1px solid rgba(255, 196, 38, 0.10);
}

.col-time {
  border-left: 0;
}

.display-line {
  --led-pitch: 5px;
  --led-bg-dot-radius: 1px;
  --led-on-dot-size: 3px;
  --led-char-gap: var(--led-pitch);
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  min-height: 43px;
  padding: 4px 0;
  background-image: var(--dot-slot);
  background-size: var(--led-pitch) var(--led-pitch);
  background-position: left center;
}

.display-value {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  color: var(--led-white);
  line-height: 1;
  opacity: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
  gap: var(--led-char-gap);
}

.led-char {
  --glyph-cols: 5;
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(var(--glyph-cols), var(--led-pitch));
  grid-template-rows: repeat(7, var(--led-pitch));
  gap: 0;
}

.led-dot {
  position: relative;
  width: var(--led-pitch);
  height: var(--led-pitch);
  background: transparent;
}

.led-dot.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--led-on-dot-size);
  height: var(--led-on-dot-size);
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.led-space .led-dot.is-on::after {
  content: none;
  box-shadow: none;
}

.display-value.is-fading {
  opacity: 0;
  transform: translateY(3px);
}

.display-value.is-led-off .led-dot.is-on::after {
  opacity: 0;
  transition: opacity 0.14s ease;
}

.display-value.is-fading-in {
  animation: valueFadeIn 0.28s ease both;
}

.display-value.is-led-power-on .led-dot.is-on::after {
  animation: ledPowerOn 0.28s ease both;
}

@keyframes valueFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ledPowerOn {
  0% {
    opacity: 0;
    filter: brightness(0.25);
  }
  45% {
    opacity: 1;
    filter: brightness(1.75);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.clock-text .display-value,
.weekday-dot-text .display-value,
.date-text-strip .display-value {
  --led-pitch: 3px;
  --led-bg-dot-radius: 0.75px;
  --led-on-dot-size: 2px;
  --led-char-gap: var(--led-pitch);
  color: var(--led-white);
}

.date-text-strip .display-value {
  --led-pitch: 2.65px;
  --led-bg-dot-radius: 0.75px;
  --led-on-dot-size: 2px;
  --led-char-gap: 2px;
}

.time-display {
  --led-pitch: 5px;
  --led-bg-dot-radius: 1px;
  --led-on-dot-size: 3px;
  --led-char-gap: var(--led-pitch);
}

.time-display .display-value {
  color: var(--led-white);
}

.flight-display,
.gate-display {
  --led-pitch: 5px;
  --led-bg-dot-radius: 1px;
  --led-on-dot-size: 3px;
  --led-char-gap: var(--led-pitch);
}

.flight-display .display-value,
.gate-display .display-value {
  color: var(--led-white);
}

.origin-display {
  --led-pitch: 5px;
  --led-bg-dot-radius: 1px;
  --led-on-dot-size: 3px;
  --led-char-gap: var(--led-pitch);
}

.origin-display .display-value {
  color: var(--led-white);
}

.origin-display .display-value.origin-status-arrow {
  margin-left: var(--led-pitch);
}

.origin-display .display-value.origin-status-arrow.time-green {
  color: var(--led-green);
}

.origin-display .display-value.origin-status-arrow.time-orange {
  color: var(--led-orange);
}

.origin-display .display-value.origin-status-arrow.time-blue {
  color: var(--led-blue);
}

.origin-display .display-value.origin-status-arrow.is-status-blinking {
  animation: statusArrowBlink 10s linear infinite;
}

@keyframes statusArrowBlink {
  0%, 5%, 10%, 15%, 20%, 25%, 30%, 100% {
    opacity: 1;
  }
  2.5%, 12.5%, 22.5% {
    opacity: 0.08;
  }
}

.destination-display {
  --led-pitch: 5px;
  --led-bg-dot-radius: 1px;
  --led-on-dot-size: 3px;
  --led-char-gap: var(--led-pitch);
}

.destination-display .display-value {
  color: var(--led-white);
}

.destination-display .display-value.is-destination-marquee {
  max-width: none;
  overflow: visible;
  will-change: transform;
}

.destination-display .display-value.is-destination-marquee .led-dot:not(.is-on) {
  background: transparent;
}

@keyframes destinationMarquee {
  0%, 18% {
    transform: translateX(0);
  }
  82%, 100% {
    transform: translateX(calc(-1 * var(--destination-marquee-distance, 0px)));
  }
}

.col-time.time-white .display-value {
  color: var(--led-white);
}

.col-time.time-green .display-value {
  color: var(--led-green);
}

.col-time.time-blue .display-value {
  color: var(--led-blue);
}

.col-time.time-red .display-value {
  color: var(--led-red);
}

.col-destination .display-line {
  background-size: var(--led-pitch) var(--led-pitch);
  background-position: left center;
}

.empty-state {
  padding: 28px 18px;
  color: var(--led-on);
  font-family: "Arial Black", "Inter", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.legend-bar {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border-radius: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--led-white);
  font-size: 15px;
  font-weight: 800;
}

.legend-link {
  min-height: 26px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--led-on);
  background: rgba(255, 196, 38, 0.08);
  border: 1px solid rgba(255, 196, 38, 0.22);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 196, 38, 0.38);
}

.legend-link:hover,
.legend-link:focus-visible {
  color: var(--led-green);
  background: rgba(114, 255, 0, 0.08);
  border-color: rgba(114, 255, 0, 0.24);
  outline: none;
  text-shadow: 0 0 10px rgba(114, 255, 0, 0.46);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.legend-dot.scheduled {
  background: var(--led-white);
  color: var(--led-white);
}

.legend-dot.ontime {
  background: var(--led-green);
  color: var(--led-green);
}

.legend-dot.delayed {
  background: var(--led-red);
  color: var(--led-red);
}

@media (max-width: 1300px) {
  :root {
    --topbar-card-height: 64px;
  }

  .page-shell {
    padding: 10px 12px;
    gap: 8px;
  }

  .topbar-main {
    grid-template-columns: minmax(0, 1fr) 68px 370px;
    gap: 8px;
  }

  .title-card {
    height: var(--topbar-card-height);
    min-height: var(--topbar-card-height);
    padding: 7px 14px;
  }

  .control-card {
    height: var(--topbar-card-height);
    min-height: var(--topbar-card-height);
    padding: 5px;
    gap: 4px;
  }

  

  .analog-clock {
    width: 64px;
    height: 64px;
  }

  .analog-number {
    font-size: 12px;
  }

  .title-copy h1 {
    font-size: 27px;
  }

  .board-toolbar {
    min-height: 44px;
    padding: 0 14px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 50vw);
  }

  .board-title-text {
    font-size: 27px;
  }

  .board-head-row,
  .board-row {
    grid-template-columns: 166px 198px 145px minmax(180px, 1fr) 136px;
  }

  .clock-text,
  .weekday-dot-text,
  .date-text-strip,
  .clock-text .display-value,
  .weekday-dot-text .display-value,
  .date-text-strip .display-value {
    --led-pitch: 3px;
    --led-bg-dot-radius: 0.75px;
    --led-on-dot-size: 2px;
    --led-char-gap: var(--led-pitch);
  }

  .date-text-strip,
  .date-text-strip .display-value {
    --led-pitch: 2.65px;
    --led-char-gap: 2px;
  }

  .weather-plain-text {
    font-size: 13px;
  }

  .time-display,
  .flight-display,
  .origin-display,
  .gate-display,
  .destination-display {
    --led-pitch: 5px;
    --led-bg-dot-radius: 1px;
    --led-on-dot-size: 3px;
    --led-char-gap: var(--led-pitch);
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-card-height: 44px;
  }

  .page-shell {
    padding: 8px;
    gap: 8px;
  }

  .topbar-main {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .title-card {
    height: var(--topbar-card-height);
    min-height: var(--topbar-card-height);
    padding: 5px 8px;
    gap: 8px;
  }

  

  .analog-clock {
    display: none;
  }

  .title-copy h1 {
    font-size: 17px;
    line-height: 1.06;
  }

  .control-card {
    height: auto;
    min-height: auto;
    padding: 4px;
    gap: 4px;
  }

  .clock-text {
    min-height: 24px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .clock-weekday-row {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 4px;
  }

  .weekday-dot-text {
    min-height: 24px;
    padding: 2px 5px;
  }

  .date-control-row {
    min-height: 24px;
    grid-template-columns: 28px minmax(0, 1fr) 28px 48px 30px;
    gap: 4px;
  }

  .date-nav-btn {
    width: 100%;
    font-size: 14px;
  }

  .today-btn {
    font-size: 8px;
  }

  .date-picker-btn {
    font-size: 7px;
  }

  .board-toolbar {
    min-height: 44px;
    padding: 6px 9px;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .board-title-text {
    font-size: 18px;
    gap: 8px;
  }

  .weather-text-strip {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 20px;
    justify-content: flex-start;
  }

  .weather-plain-text {
    font-size: 10px;
    text-align: left;
  }

  .board-head-row,
  .board-row {
    grid-template-columns: 64px 84px 70px minmax(54px, 1fr) 52px;
  }

  .board-head-row {
    min-height: 28px;
    padding: 0 6px;
  }

  .board-head-row > div {
    padding: 0 3px;
    font-size: 9px;
  }

  .board-body {
    padding: 6px;
    gap: 5px;
  }

  .board-row {
    min-height: 48px;
  }

  .col-time,
  .col-origin,
  .col-destination,
  .col-flight,
  .col-gate {
    padding-left: 3px;
    padding-right: 3px;
  }

  .clock-text,
  .weekday-dot-text,
  .date-text-strip,
  .clock-text .display-value,
  .weekday-dot-text .display-value,
  .date-text-strip .display-value {
    --led-pitch: 2px;
    --led-bg-dot-radius: 0.5px;
    --led-on-dot-size: 2px;
    --led-char-gap: var(--led-pitch);
  }

  .time-display,
  .flight-display,
  .origin-display,
  .gate-display,
  .destination-display {
    --led-pitch: 2px;
    --led-bg-dot-radius: 0.5px;
    --led-on-dot-size: 2px;
    --led-char-gap: var(--led-pitch);
  }

  .display-line {
    min-height: 22px;
  }

  .legend-bar {
    min-height: 30px;
    padding: 5px 8px;
    gap: 12px;
  }

  .legend-item {
    font-size: 11px;
  }
}

html,
body,
.board-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.board-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
