*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0c0f0e;
  --surface: #121615;
  --surface-raised: #181d1b;
  --border: #2a302d;
  --border-strong: #3a433e;
  --text: #f1f3f1;
  --muted: #a5ada8;
  --subtle: #737d77;
  --green: #8fb39c;
  --green-soft: #16201b;
  --green-border: #4e6959;
  --amber: #c3ad76;
  --amber-soft: #211e16;
  --amber-border: #6b6144;
  --red: #bd898d;
  --red-soft: #211719;
  --red-border: #704f53;
  --blue: #8fa8bd;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html {
  min-width: 320px;
  background: var(--bg);
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.data-warning {
  border-bottom: 1px solid rgba(195, 173, 118, 0.35);
  background: var(--amber-soft);
  color: #dacb9e;
}

.warning-inner {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  font-size: 0.78rem;
}

.warning-mark {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid rgba(195, 173, 118, 0.65);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
}

.topbar {
  display: grid;
  min-height: 84px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

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

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-title-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.brand-title-line h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
}

.brand-title-line span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
}

.view-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-self: center;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.view-tab {
  min-width: 106px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0;
}

.view-tab:hover {
  color: var(--text);
}

.view-tab.is-active {
  background: #262c29;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.view-tab:focus-visible {
  position: relative;
  z-index: 1;
}

.refresh-button {
  display: inline-grid;
  justify-self: end;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.refresh-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.refresh-button.is-loading span {
  animation: spin 700ms linear infinite;
}

.clock-section {
  padding-block: 30px 20px;
  border-bottom: 1px solid var(--border);
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clock-item {
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--border);
}

.clock-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.clock-item:last-child {
  padding-right: 0;
}

.clock-meta {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.clock-label,
.clock-date {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-date {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.clock-time {
  display: block;
  min-height: 47px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 2.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.clock-item:not(:first-child) .clock-time {
  color: #c9ceca;
}

.clock-time .seconds {
  color: var(--green);
  font-size: 0.55em;
  opacity: 0.85;
}

.clock-time .separator {
  color: #545c57;
}

.market-summary {
  display: flex;
  min-height: 44px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.summary-state {
  display: flex;
  align-items: center;
  gap: 7px;
}

.summary-state strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.summary-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(143, 179, 156, 0.08);
}

.updated-at {
  color: var(--subtle);
  font-family: var(--mono);
  white-space: nowrap;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-block: 18px 24px;
}

.market-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.market-card[data-state="open"] {
  border-color: var(--green-border);
  background: var(--green-soft);
}

.market-card[data-state="closed"],
.market-card[data-state="holiday"] {
  border-color: var(--red-border);
  background: var(--red-soft);
}

.market-card[data-state="intermission"],
.market-card[data-state="unknown"] {
  border-color: var(--amber-border);
  background: var(--amber-soft);
}

.card-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 12px;
}

.market-name-block {
  min-width: 0;
}

.market-name-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.market-name {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.market-code {
  overflow: hidden;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-state-text {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.status-block {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.status-line {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-line[data-state="open"] {
  background: rgba(143, 179, 156, 0.08);
  color: var(--green);
}

.status-line[data-state="closed"] {
  background: rgba(189, 137, 141, 0.08);
  color: var(--red);
}

.status-line[data-state="intermission"],
.status-line[data-state="unknown"] {
  background: rgba(195, 173, 118, 0.08);
  color: var(--amber);
}

.status-line[data-state="holiday"] {
  background: rgba(189, 137, 141, 0.08);
  color: var(--red);
}

.countdown-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.countdown-label {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 650;
}

.countdown-value {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.status-block[data-countdown-tone="open"] .countdown-label,
.status-block[data-countdown-tone="open"] .countdown-value {
  color: var(--green);
}

.status-block[data-countdown-tone="close"] .countdown-label,
.status-block[data-countdown-tone="close"] .countdown-value {
  color: var(--red);
}

.status-block[data-countdown-tone="transition"] .countdown-label,
.status-block[data-countdown-tone="transition"] .countdown-value {
  color: var(--amber);
}

.session-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2px 16px 9px;
  border-top: 1px solid var(--border);
}

.session-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: center;
  min-height: 35px;
  border-bottom: 1px solid rgba(91, 101, 95, 0.28);
}

.session-row:last-child {
  border-bottom: 0;
}

.session-label,
.session-time {
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.4;
}

.session-label {
  color: var(--subtle);
}

.session-time {
  overflow-wrap: anywhere;
  color: #cbd1cc;
  text-align: right;
}

.estimate-note {
  margin-top: auto;
  padding: 0 16px 10px;
  color: var(--amber);
  font-size: 0.68rem;
}

.rth-indicator {
  --rth-open-position: 39.5833%;
  --rth-close-position: 67.7083%;
  --rth-pointer-position: 0%;
  padding: 24px 4px 32px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.rth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rth-title-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rth-title-line h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
}

.rth-summary {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.rth-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 700;
}

.rth-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.rth-summary strong {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
}

.rth-indicator[data-state="open"] .rth-state {
  color: var(--green);
}

.rth-indicator[data-state="holiday"] .rth-state {
  color: var(--red);
}

.rth-indicator[data-countdown-tone="open"] .rth-summary strong {
  color: var(--green);
}

.rth-indicator[data-countdown-tone="close"] .rth-summary strong {
  color: var(--red);
}

.rth-chart {
  position: relative;
  margin-top: 44px;
  padding-top: 18px;
}

.rth-current-label {
  position: absolute;
  top: -28px;
  left: clamp(82px, var(--rth-pointer-position), calc(100% - 82px));
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  padding: 4px 7px;
  transform: translateX(-50%);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}

.rth-current-label strong {
  color: var(--text);
  font-size: 0.78rem;
}

.rth-track {
  position: relative;
  height: 16px;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #171b19;
}

.rth-window {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: var(--rth-open-position);
  width: calc(var(--rth-close-position) - var(--rth-open-position));
  border: 1px solid var(--green-border);
  border-radius: 3px;
  background: rgba(143, 179, 156, 0.18);
}

.rth-indicator[data-state="open"] .rth-window {
  border-color: var(--green);
  background: rgba(143, 179, 156, 0.36);
  box-shadow: 0 0 14px rgba(143, 179, 156, 0.1);
}

.rth-indicator[data-state="holiday"] .rth-window {
  display: none;
}

.rth-pointer {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: var(--rth-pointer-position);
  z-index: 1;
  width: 1px;
  transform: translateX(-50%);
  background: var(--text);
}

.rth-pointer span {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.rth-axis {
  position: relative;
  height: 24px;
  margin-top: 8px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.rth-axis span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.axis-start {
  left: 0;
}

.axis-open {
  left: var(--rth-open-position);
  transform: translateX(-50%);
  color: var(--green);
}

.axis-midnight {
  left: 50%;
  transform: translateX(-50%);
}

.axis-close {
  left: var(--rth-close-position);
  transform: translateX(-50%);
  color: var(--red);
}

.axis-end {
  right: 0;
}

.view-panel[hidden] {
  display: none;
}

.timeline-view {
  --timeline-active: #58d68d;
  --timeline-session: #4ba3d3;
  --timeline-break: #e7b64f;
  --timeline-closed: #ef747d;
  --timeline-now: #45c7e8;
  padding: 26px 0 34px;
}

.timeline-view-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-zone-label {
  color: var(--timeline-active);
  font-size: inherit;
}

.timeline-view-header time {
  color: var(--text);
  font-size: inherit;
}

.timeline-current-label {
  margin-left: auto;
  color: var(--muted);
  font-size: inherit;
}

.timeline-current-label strong {
  color: var(--timeline-now);
  font-size: inherit;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: #c8d0cc;
  font-size: 0.78rem;
}

.timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 14px;
  height: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--surface-raised);
}

.legend-swatch.is-active {
  border-color: var(--timeline-active);
  background: var(--timeline-active);
}

.legend-swatch.is-session {
  border-color: var(--timeline-session);
  background: var(--timeline-session);
}

.legend-swatch.is-break {
  border-color: var(--timeline-break);
  background: var(--timeline-break);
}

.legend-swatch.is-closed {
  border-color: var(--timeline-closed);
  background: var(--timeline-closed);
}

.timeline-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  scrollbar-color: var(--border-strong) transparent;
}

.timeline-scroll:focus-visible {
  outline-offset: 4px;
}

.global-timeline {
  --name-column: 236px;
  --current-position: 0%;
  min-width: 1080px;
}

.timeline-axis-row,
.timeline-market-row {
  display: grid;
  grid-template-columns: var(--name-column) minmax(0, 1fr);
}

.timeline-axis-corner,
.timeline-market-info {
  position: sticky;
  left: 0;
  z-index: 5;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.timeline-axis-corner {
  display: flex;
  min-height: 52px;
  align-items: flex-end;
  padding: 0 16px 10px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-axis {
  position: relative;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
}

.timeline-axis-label {
  position: absolute;
  bottom: 9px;
  transform: translateX(-50%);
  color: #aeb9b3;
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.timeline-axis-label.is-first {
  transform: none;
}

.timeline-axis-label.is-last {
  transform: translateX(-100%);
}

.timeline-axis-now {
  position: absolute;
  top: 4px;
  left: clamp(38px, var(--current-position), calc(100% - 38px));
  z-index: 3;
  padding: 3px 6px;
  transform: translateX(-50%);
  border: 1px solid var(--timeline-now);
  border-radius: 4px;
  background: var(--bg);
  color: var(--timeline-now);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.timeline-body {
  position: relative;
}

.timeline-now-overlay {
  position: absolute;
  inset: 0 0 0 var(--name-column);
  z-index: 4;
  pointer-events: none;
}

.timeline-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--current-position);
  width: 1px;
  background: var(--timeline-now);
  box-shadow: 0 0 0 1px rgba(69, 199, 232, 0.1);
}

.timeline-now-line::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--timeline-now);
  content: "";
}

.timeline-market-row {
  min-height: 54px;
  border-top: 1px solid rgba(91, 101, 95, 0.3);
}

.timeline-now-overlay + .timeline-market-row {
  border-top: 0;
}

.timeline-market-info {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 8px 16px 8px 0;
}

.timeline-market-heading {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.timeline-market-heading strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-market-heading span {
  color: #98a69f;
  font-family: var(--mono);
  font-size: 0.7rem;
  white-space: nowrap;
}

.timeline-market-status {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
}

.timeline-market-status[data-state="open"] {
  color: var(--timeline-active);
}

.timeline-market-status[data-state="break"] {
  color: var(--timeline-break);
}

.timeline-market-status[data-state="waiting"] {
  color: var(--timeline-session);
}

.timeline-market-status[data-state="closed"] {
  color: var(--timeline-closed);
}

.timeline-rail {
  position: relative;
  min-width: 0;
  margin-block: 12px;
  background: transparent;
}

.timeline-gridline {
  position: absolute;
  top: -12px;
  bottom: -12px;
  width: 1px;
  background: rgba(126, 143, 134, 0.22);
  pointer-events: none;
}

.timeline-segment {
  position: absolute;
  top: 2px;
  bottom: 2px;
  z-index: 2;
  display: flex;
  min-width: 2px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #65b7df;
  border-radius: 3px;
  background: var(--timeline-session);
  color: #07131a;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-segment.is-elapsed {
  opacity: 0.5;
}

.timeline-segment.is-active {
  border-color: #79e4a5;
  background: var(--timeline-active);
  color: #07150d;
  font-weight: 750;
  opacity: 1;
}

.timeline-segment[data-kind="break"] {
  border-color: #f1cb78;
  background: var(--timeline-break);
  color: #1c1405;
}

.timeline-segment[data-kind="break"].is-active {
  border-color: #ffe09d;
  background: var(--timeline-break);
  color: #18150d;
}

.timeline-segment.is-compact span {
  display: none;
}

.noscript-message {
  margin: 0 0 30px;
  padding: 14px;
  border: 1px solid rgba(189, 137, 141, 0.35);
  border-radius: 8px;
  color: var(--red);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--subtle);
  font-size: 0.72rem;
}

.footer-notes {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  line-height: 1.45;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.footer-inner nav[hidden] {
  display: none;
}

.footer-inner nav span {
  color: var(--subtle);
  white-space: nowrap;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .clock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clock-item {
    padding-inline: 20px;
  }

  .clock-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .clock-item:nth-child(2),
  .clock-item:nth-child(4) {
    padding-right: 0;
  }

  .clock-item:nth-child(n + 3) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .clock-time {
    font-size: 2rem;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding-block: 12px;
  }

  .view-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
  }

  .view-tab {
    width: 100%;
    min-width: 0;
  }

  .clock-section {
    padding-top: 24px;
  }

  .clock-grid {
    grid-template-columns: 1fr;
  }

  .clock-item,
  .clock-item:first-child,
  .clock-item:last-child,
  .clock-item:nth-child(2),
  .clock-item:nth-child(3),
  .clock-item:nth-child(4) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 13px 0;
    border: 0;
    border-top: 1px solid var(--border);
  }

  .clock-item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .clock-item:last-child {
    padding-bottom: 0;
  }

  .clock-meta {
    display: block;
  }

  .clock-date {
    display: block;
    margin-top: 4px;
  }

  .clock-time {
    min-height: 32px;
    margin: 0;
    font-size: 1.72rem;
  }

  .market-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .updated-at {
    white-space: normal;
  }

  .card-header {
    gap: 10px;
    padding-inline: 13px;
  }

  .market-name-line {
    flex-wrap: wrap;
    row-gap: 3px;
  }

  .market-name {
    font-size: 0.94rem;
  }

  .status-block {
    gap: 4px;
  }

  .session-list {
    padding-inline: 13px;
  }

  .session-row {
    grid-template-columns: minmax(76px, 0.7fr) minmax(0, 1.3fr);
    gap: 10px;
  }

  .rth-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .rth-summary {
    align-items: flex-start;
  }

  .rth-chart {
    margin-top: 39px;
  }

  .rth-axis {
    font-size: 0.6rem;
  }

  .timeline-view {
    padding-top: 22px;
  }

  .timeline-view-header {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.8rem;
    white-space: normal;
  }

  .timeline-current-label {
    margin-left: 0;
  }

  .timeline-legend {
    gap: 9px 14px;
  }

  .global-timeline {
    --name-column: 220px;
    min-width: 1000px;
  }

  .axis-midnight {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding-block: 16px;
  }
}

@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;
  }
}
