:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #08111d;
  --panel: #0a1019;
  --panel-2: #0f1926;
  --panel-3: #142033;
  --line: #3b4657;
  --line-soft: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --muted: #a9b6c5;
  --yellow: #ffd23f;
  --yellow-soft: rgba(255, 210, 63, .24);
  --green: #2ee889;
  --blue: #39a7ff;
  --orange: #ff9f2e;
  --red: #ff4d5e;
  --shadow: rgba(0, 0, 0, .55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

html,
body {
  min-width: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 74, 116, .45), transparent 36%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 42%, #020408);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  padding-left: max(14px, env(safe-area-inset-left));
}

.hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 20, 33, .98), rgba(5, 9, 16, .96));
  box-shadow: 0 16px 44px var(--shadow);
  overflow: hidden;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  position: relative;
  border: 3px solid var(--yellow);
  border-radius: 12px;
  background: rgba(255, 210, 63, .1);
}

.brand-mark::before {
  content: "";
  width: 42px;
  height: 28px;
  border: 5px solid var(--yellow);
  border-bottom-width: 8px;
  border-radius: 8px 8px 5px 5px;
}

.brand-mark span {
  position: absolute;
  bottom: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.brand-mark span:nth-child(1) { left: 21px; }
.brand-mark span:nth-child(2) { right: 21px; }
.brand-mark span:nth-child(3) {
  top: 17px;
  width: 24px;
  height: 4px;
  border-radius: 2px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 76px);
  line-height: .92;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 750;
}

.hero-meta span:first-child {
  color: var(--yellow);
}

.skyline {
  flex: 0 0 min(28vw, 250px);
  opacity: .72;
}

.skyline svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 10px;
}

.mode-tabs button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 950;
  white-space: nowrap;
}

.mode-icon,
.svg-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.mode-icon svg,
.svg-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-icon svg circle,
.svg-icon svg circle {
  fill: currentColor;
  stroke: none;
}

.mode-tabs .mode-icon {
  color: var(--yellow);
}

.mode-tabs button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #05070c;
}

.mode-tabs button.active span {
  color: #05070c;
}

[hidden] {
  display: none !important;
}

.location-card,
.location-warning {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(10, 16, 25, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.location-card.is-compact {
  padding: 10px 12px;
}

.location-card[hidden],
.manual-search[hidden],
.location-warning[hidden] {
  display: none;
}

.location-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 950;
}

.location-message {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 650;
}

.location-actions {
  display: flex;
  gap: 10px;
}

.location-actions button,
.location-warning button,
.pager button,
.rotation-button {
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel-3);
  color: var(--text);
  font-weight: 950;
  padding: 0 18px;
}

.location-actions .primary-action,
.location-warning button,
.pager #nextButton {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #05070c;
}

.location-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 850;
}

.manual-search {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.manual-search input {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #060b12;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  padding: 0 14px;
}

.manual-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.manual-result {
  min-width: 0;
  min-height: 62px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
}

.manual-result-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.manual-result strong,
.manual-result .manual-result-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-result strong {
  font-size: 17px;
  font-weight: 950;
}

.manual-result .manual-result-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.board-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(270px, 34%) minmax(0, 66%);
  gap: 12px;
}

.hubs-panel,
.live-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(8, 13, 21, .97);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.hubs-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.section-title {
  padding: 13px 14px 9px;
  color: var(--yellow);
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.hub-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px 12px 14px;
  overflow: auto;
}

.hub-card {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(74px, max-content) 22px;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #101b2a, #0b121c);
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
}

.hub-card.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow-soft), 0 0 22px rgba(255, 210, 63, .22);
}

.hub-selected {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  border: 1px solid rgba(255, 210, 63, .6);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  padding: 3px 6px;
  text-transform: uppercase;
}

.hub-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 210, 63, .12);
  color: var(--yellow);
  font-weight: 950;
}

.hub-icon .svg-icon {
  width: 28px;
  height: 28px;
}

.hub-name {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.08;
  font-weight: 950;
}

.hub-city {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.hub-distance {
  color: var(--text);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 950;
  white-space: nowrap;
  justify-self: end;
}

.hub-card.active .hub-distance {
  color: var(--yellow);
}

.hub-arrow {
  color: var(--yellow);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.live-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding-right: 12px;
}

.selected-meta {
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.selected-name {
  margin-bottom: 7px;
  color: var(--text);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.05;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-badges,
.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: normal;
}

.badge.yellow {
  border-color: var(--yellow);
  background: rgba(255, 210, 63, .14);
  color: var(--yellow);
}

.badge.demo {
  min-height: 20px;
  border-color: rgba(255, 159, 46, .48);
  background: rgba(255, 159, 46, .08);
  color: #d59a59;
  font-size: 10px;
}

.rotation-button {
  min-width: 92px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.rotation-button.active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.live-table {
  min-height: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.live-row {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 116px minmax(170px, 1.25fr) minmax(84px, .48fr) minmax(96px, .5fr) minmax(112px, .55fr);
  grid-template-areas: "time place service facility status";
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.live-table.mode-all .live-row {
  grid-template-columns: 116px 92px minmax(170px, 1fr) minmax(96px, .45fr) minmax(112px, .5fr);
  grid-template-areas: "time mode place service status";
}

.live-header {
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.live-header > div {
  min-width: 0;
}

.event-time {
  grid-area: time;
  color: var(--yellow);
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: .95;
  font-weight: 950;
}

.event-mode {
  grid-area: mode;
  display: none;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.live-table.mode-all .event-mode {
  display: flex;
}

.event-mode-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.event-place {
  grid-area: place;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.live-table.mode-all .event-place > .event-icon {
  display: none;
}

.event-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-weight: 950;
}

.event-icon .svg-icon {
  width: 31px;
  height: 31px;
}

.event-icon.arrival,
.event-icon.train { color: var(--green); }
.event-icon.departure { color: var(--orange); }
.event-icon.en-route,
.event-icon.bus { color: var(--blue); }
.event-icon.ferry,
.event-icon.port { color: var(--yellow); }

.event-destination {
  min-width: 0;
}

.event-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(22px, 2.9vw, 40px);
  line-height: 1;
  font-weight: 950;
}

.event-sub {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.event-service {
  grid-area: service;
}

.event-facility {
  grid-area: facility;
}

.event-status {
  grid-area: status;
}

.event-service,
.event-facility,
.event-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 950;
}

.event-service .badge,
.event-facility .badge {
  max-width: 100%;
}

.event-terminal {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.event-status.on-time,
.event-status.scheduled,
.event-status.arriving,
.event-status.boarding,
.event-status.sailing { color: var(--green); }
.event-status.en-route { color: var(--blue); }
.event-status.delayed,
.event-status.last-call { color: var(--orange); }
.event-status.cancelled,
.event-status.departed,
.event-status.left { color: var(--red); }

.event-mobile-meta {
  display: none;
}

.pager {
  display: grid;
  grid-template-columns: 136px minmax(110px, 1fr) 136px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
}

.pager button:disabled {
  opacity: .35;
  border-color: var(--line);
  background: #111927;
  color: var(--muted);
}

#pageLabel {
  color: var(--muted);
  text-align: center;
  font-size: 17px;
  font-weight: 950;
}

.empty {
  padding: 18px 14px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
}

@media (orientation: portrait) {
  .app {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
  }

  .hero {
    min-height: 92px;
  }

  .skyline {
    display: none;
  }

  .board-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hubs-panel {
    max-height: 34vh;
  }

  .hub-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 320px);
    overflow-x: auto;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .app {
    gap: 8px;
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-right: 8px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    padding-left: 8px;
  }

  .hero {
    min-height: 74px;
    padding: 10px 12px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-mark::before {
    width: 30px;
    height: 20px;
    border-width: 4px;
    border-bottom-width: 6px;
  }

  .brand-mark span {
    bottom: 8px;
  }

  .brand-mark span:nth-child(1) { left: 15px; }
  .brand-mark span:nth-child(2) { right: 15px; }

  h1 {
    font-size: 30px;
  }

  .hero-meta {
    margin-top: 5px;
    font-size: 12px;
  }

  .mode-tabs {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    gap: 6px;
  }

  .mode-tabs button {
    min-height: 42px;
    font-size: 12px;
  }

  .board-layout {
    grid-template-columns: minmax(210px, 34%) minmax(0, 66%);
    gap: 8px;
  }

  .hub-card {
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr) minmax(58px, max-content) 16px;
    padding: 7px 8px;
  }

  .hub-icon {
    width: 32px;
    height: 32px;
  }

  .hub-icon .svg-icon {
    width: 22px;
    height: 22px;
  }

  .hub-name {
    font-size: 15px;
  }

  .hub-city {
    display: none;
  }

  .live-row {
    min-height: 48px;
    grid-template-columns: 82px 34px minmax(100px, 1fr) 66px minmax(78px, .7fr);
    gap: 8px;
    padding: 0 10px;
  }

  .event-time {
    font-size: 34px;
  }

  .event-icon {
    width: 34px;
    height: 34px;
  }

  .event-icon .svg-icon {
    width: 23px;
    height: 23px;
  }

  .event-main {
    font-size: 22px;
  }

  .event-service,
  .event-status {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .app {
    gap: 7px;
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-right: 8px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    padding-left: 8px;
  }

  .hero {
    align-items: flex-start;
    min-height: 74px;
    padding: 9px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }

  .brand-mark::before {
    width: 25px;
    height: 16px;
    border-width: 3px;
    border-bottom-width: 5px;
  }

  .brand-mark span {
    bottom: 7px;
    width: 6px;
    height: 6px;
  }

  .brand-mark span:nth-child(1) { left: 13px; }
  .brand-mark span:nth-child(2) { right: 13px; }
  .brand-mark span:nth-child(3) {
    top: 12px;
    width: 18px;
    height: 3px;
  }

  h1 {
    font-size: clamp(25px, 8.8vw, 38px);
  }

  .hero-meta {
    margin-top: 4px;
    gap: 3px 8px;
    font-size: 11px;
  }

  .mode-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mode-tabs::-webkit-scrollbar {
    display: none;
  }

  .mode-tabs button {
    flex: 0 0 auto;
    min-width: 132px;
    min-height: 48px;
    font-size: 13px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .location-card {
    padding: 10px;
  }

  .location-title {
    font-size: 16px;
  }

  .location-message {
    font-size: 12px;
  }

  .section-title {
    padding: 10px 10px 7px;
    font-size: 17px;
  }

  .hub-list {
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .location-actions {
    grid-template-columns: 1fr;
  }

  .location-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .hub-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: hidden;
  }

  .hubs-panel {
    max-height: none;
  }

  .pager {
    grid-template-columns: 92px minmax(80px, 1fr) 92px;
    gap: 8px;
    padding: 10px;
  }

  .pager button {
    min-height: 46px;
    padding: 0 8px;
  }
}

@media (max-width: 600px) {
  .live-header {
    display: none !important;
  }

  .live-head {
    align-items: flex-start;
    gap: 6px;
    padding: 0 10px 9px 0;
  }

  .rotation-button {
    min-width: 82px;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
  }

  .selected-meta {
    padding: 0 10px 8px;
  }

  .selected-name {
    white-space: normal;
  }

  .live-table {
    overflow: visible;
  }

  .live-row,
  .live-table.mode-all .live-row {
    grid-template-columns: 88px 30px minmax(0, 1fr) 76px;
    grid-template-areas:
      "time mode place status"
      "time mode mobile status";
    column-gap: 8px;
    row-gap: 3px;
    align-items: center;
    min-height: 76px;
    padding: 9px 10px;
  }

  .event-time {
    grid-area: time;
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    font-size: 40px;
    line-height: .9;
    white-space: nowrap;
  }

  .event-mode {
    grid-area: mode;
    display: grid;
    place-items: center;
    width: 30px;
  }

  .event-mode-label {
    display: none;
  }

  .event-mode .event-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .event-mode .event-icon .svg-icon {
    width: 22px;
    height: 22px;
  }

  .event-place {
    grid-area: place;
    display: block;
  }

  .event-place > .event-icon {
    display: none;
  }

  .event-destination {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
  }

  .event-main {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.02;
  }

  .event-sub {
    margin-top: 0;
    font-size: 11px;
    line-height: 1;
  }

  .event-service,
  .event-facility {
    display: none;
  }

  .event-mobile-meta {
    grid-area: mobile;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .event-status {
    grid-area: status;
    align-self: start;
    justify-self: end;
    max-width: 76px;
    overflow: visible;
    text-align: right;
    white-space: normal;
    font-size: 14px;
    line-height: 1.05;
  }

  .badge {
    min-height: 21px;
    padding: 3px 6px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .live-row,
  .live-table.mode-all .live-row {
    grid-template-columns: 86px 28px minmax(0, 1fr) 74px;
    column-gap: 7px;
  }

  .event-time {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    font-size: 38px;
  }

  .event-mode {
    width: 28px;
  }

  .event-mode .event-icon {
    width: 26px;
    height: 26px;
  }

  .event-main {
    font-size: clamp(23px, 6.2vw, 27px);
  }

  .event-status {
    max-width: 74px;
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .live-row,
  .live-table.mode-all .live-row {
    grid-template-columns: 82px 26px minmax(0, 1fr) 70px;
  }

  .event-time {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
    font-size: 37px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .app {
    gap: 7px;
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .hero {
    min-height: 58px;
    padding: 7px 10px;
  }

  .mode-tabs button {
    min-height: 38px;
  }

  .board-layout {
    grid-template-columns: minmax(200px, 33%) minmax(0, 67%);
  }

  .hubs-panel {
    max-height: none;
  }

  .live-row,
  .live-table.mode-all .live-row {
    min-height: 44px;
  }

  .event-time {
    font-size: 34px;
  }

  .event-main {
    font-size: 22px;
  }

  .event-status {
    font-size: 14px;
  }
}
