:root {
  --bg-0: #020c1d;
  --bg-1: #061a37;
  --bg-2: #0a2a54;
  --panel: rgba(6, 23, 46, 0.8);
  --panel-soft: rgba(8, 29, 57, 0.72);
  --ink: #e9f6ff;
  --ink-soft: #b6cfe2;
  --ink-muted: #86a5bf;
  --stroke: rgba(124, 187, 231, 0.34);
  --stroke-soft: rgba(124, 187, 231, 0.2);
  --accent: #26c4ff;
  --accent-2: #0be6d6;
  --ok: #43f0ad;
  --old: #ffd16f;
  --warn: #ff8f7d;
  --missing: #9db7ca;
  --shadow: 0 22px 50px rgba(0, 9, 24, 0.5);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  background:
    radial-gradient(1400px 600px at -5% -10%, rgba(38, 196, 255, 0.25), rgba(2, 12, 29, 0)),
    radial-gradient(1000px 520px at 105% 22%, rgba(11, 230, 214, 0.18), rgba(2, 12, 29, 0)),
    linear-gradient(162deg, var(--bg-0) 0%, var(--bg-1) 52%, var(--bg-2) 100%);
  padding: 18px;
  position: relative;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

:focus-visible {
  outline: none;
}

.bg-orbit,
.bg-grid {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.bg-orbit {
  border-radius: 999px;
}

.bg-orbit-a {
  inset: -210px auto auto -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(38, 196, 255, 0.2), rgba(38, 196, 255, 0));
}

.bg-orbit-b {
  inset: auto -220px -260px auto;
  width: 660px;
  height: 660px;
  background: radial-gradient(circle at 48% 38%, rgba(89, 143, 255, 0.2), rgba(89, 143, 255, 0));
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(162, 214, 243, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 214, 243, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.74), transparent 94%);
}

.topbar,
.layout,
.info-drawer {
  position: relative;
  z-index: 2;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 340px);
  gap: 14px;
  margin-bottom: 12px;
}

.hero-copy {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(5, 25, 49, 0.9), rgba(7, 30, 58, 0.7)),
    radial-gradient(560px 230px at 4% 12%, rgba(38, 196, 255, 0.21), rgba(38, 196, 255, 0));
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1 {
  margin: 0 0 4px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hero-subhead {
  margin: 0 0 10px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(19px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #dceffd;
}

.subtitle {
  margin: 0;
  max-width: 700px;
  color: var(--ink-soft);
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.4;
}

.top-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.meta-chip {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(8, 30, 58, 0.85), rgba(4, 18, 38, 0.85));
  box-shadow: var(--shadow);
  padding: 13px;
  min-height: 72px;
}

.meta-chip span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.meta-chip strong {
  display: inline-block;
  margin-top: 6px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 25px;
  line-height: 1;
}

#apiStatus {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.1;
  word-break: break-word;
}

.menu-btn {
  width: 36px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 8;
}

.menu-btn:hover {
  background: transparent;
}

.menu-lines {
  display: grid;
  gap: 6px;
}

.menu-lines span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #ddf6ff;
  transition: background 120ms ease;
}

.menu-btn:hover .menu-lines span,
.menu-btn:focus-visible .menu-lines span {
  background: #73e9ff;
}

.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--panel), rgba(7, 26, 50, 0.8));
  box-shadow: var(--shadow);
  padding: 13px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.layout {
  display: grid;
  gap: 12px;
}

.section-head h2,
.table-head h2,
.detail-head h2 {
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(18px, 2.3vw, 27px);
  letter-spacing: -0.01em;
}

.section-head p,
.table-head p,
.detail-head p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.ops-head {
  margin: 2px 0 -2px;
}

.controls {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(9, 35, 66, 0.88), rgba(5, 18, 38, 0.88)),
    radial-gradient(380px 140px at 0% 0%, rgba(38, 196, 255, 0.16), transparent);
}

.controls.is-typing {
  border-color: rgba(73, 204, 255, 0.72);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(73, 204, 255, 0.28),
    0 0 26px rgba(38, 196, 255, 0.18);
}

.controls.is-typing::before {
  content: "";
  position: absolute;
  left: -38%;
  top: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, rgba(38, 196, 255, 0), rgba(38, 196, 255, 0.2), rgba(38, 196, 255, 0));
  animation: typing-sweep 620ms ease-out;
  pointer-events: none;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 700;
}

input,
select,
button {
  font-family: inherit;
}

input,
select {
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0 11px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(5, 23, 45, 0.92);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input::placeholder {
  color: #82a3b8;
}

input:focus,
select:focus {
  border-color: rgba(92, 213, 255, 0.86);
  box-shadow: 0 0 0 2px rgba(38, 196, 255, 0.22);
  background: rgba(7, 30, 58, 0.95);
}

.control-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 11px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.btn-primary {
  color: #03182c;
  background: linear-gradient(120deg, #2fd8ff, #73e9ff);
  box-shadow: 0 8px 20px rgba(38, 196, 255, 0.28);
}

.switch-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(6, 27, 50, 0.82);
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  font-weight: 700;
  color: #d6f1ff;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease;
}

.switch-wrap input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #2fd8ff;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(8, 32, 58, 0.86), rgba(4, 17, 36, 0.86));
  transition: transform 170ms ease, border-color 170ms ease;
}

.kpi .label {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.kpi .value {
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(19px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1;
}

.kpi.ok .value {
  color: var(--ok);
}

.kpi.old .value {
  color: var(--old);
}

.kpi.no_data .value {
  color: var(--warn);
}

.kpi.missing .value {
  color: var(--missing);
}

.table-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.table-wrap {
  margin-top: 10px;
  overflow: auto;
  max-height: 470px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(3, 15, 32, 0.44);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(7, 33, 61, 0.92);
  backdrop-filter: blur(4px);
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--stroke-soft);
  padding: 9px 10px;
  font-size: 12px;
  vertical-align: top;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #91b6cc;
  font-size: 10px;
  font-weight: 700;
}

tbody tr {
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
}

tbody tr:hover {
  background: rgba(32, 118, 178, 0.12);
}

tbody tr.active {
  background: linear-gradient(90deg, rgba(38, 196, 255, 0.15), rgba(38, 196, 255, 0.03));
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge.ok {
  background: rgba(67, 240, 173, 0.16);
  color: var(--ok);
}

.badge.old {
  background: rgba(255, 209, 111, 0.18);
  color: var(--old);
}

.badge.no_data {
  background: rgba(255, 143, 125, 0.16);
  color: var(--warn);
}

.badge.missing {
  background: rgba(157, 183, 202, 0.18);
  color: var(--missing);
}

.metar-line {
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}

.hl-match {
  background: linear-gradient(120deg, rgba(38, 196, 255, 0.88), rgba(114, 234, 255, 0.88));
  color: #03243d;
  border-radius: 4px;
  padding: 0 2px;
  font-weight: 700;
}

.detail-content {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.detail-block {
  border: 1px solid var(--stroke-soft);
  border-radius: 12px;
  padding: 11px;
  background: linear-gradient(160deg, rgba(6, 24, 46, 0.78), rgba(4, 17, 36, 0.86));
}

.detail-block h3 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.detail-metar {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.chip-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #d8f2ff;
  background: rgba(8, 34, 61, 0.62);
}

.hist-bars {
  display: grid;
  gap: 7px;
}

.hist-row {
  display: grid;
  grid-template-columns: 52px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.hist-key {
  font-weight: 700;
  font-size: 11px;
}

.hist-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(160, 207, 235, 0.22);
  overflow: hidden;
}

.hist-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hist-val {
  text-align: right;
  font-size: 11px;
  color: var(--ink-muted);
}

.samples-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-soft);
}

.empty-detail {
  margin: 0;
  color: var(--ink-muted);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 20, 0.58);
  backdrop-filter: blur(2px);
  z-index: 6;
}

.info-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 96vw);
  border-left: 1px solid var(--stroke);
  background:
    linear-gradient(165deg, rgba(4, 19, 39, 0.97), rgba(5, 25, 49, 0.97)),
    radial-gradient(500px 180px at 10% 0%, rgba(38, 196, 255, 0.22), transparent);
  box-shadow: -24px 0 54px rgba(0, 6, 18, 0.6);
  transform: translateX(104%);
  transition: transform 220ms ease;
  z-index: 7;
  overflow-y: auto;
  padding: 16px;
}

.info-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.drawer-eyebrow {
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.drawer-head h2 {
  margin: 6px 0 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}

.drawer-close {
  border: 1px solid var(--stroke);
  border-radius: 11px;
  width: 36px;
  height: 36px;
  color: #d9f5ff;
  background: rgba(7, 28, 54, 0.92);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease;
}

.drawer-intro {
  margin: 12px 0 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.guide-block {
  border: 1px solid var(--stroke-soft);
  border-radius: 13px;
  padding: 11px;
  background: linear-gradient(160deg, rgba(7, 29, 56, 0.72), rgba(4, 17, 35, 0.8));
  margin-bottom: 10px;
}

.guide-block h3 {
  margin: 0 0 7px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.guide-block p,
.guide-block li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.guide-block ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.flow-diagram {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.flow-node {
  border: 1px solid var(--stroke-soft);
  border-radius: 11px;
  padding: 9px;
  background: rgba(6, 24, 46, 0.78);
  transition: border-color 140ms ease, transform 140ms ease;
}

.flow-step {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), #80e9ff);
  color: #032741;
}

.flow-node h4 {
  margin: 8px 0 5px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow-node p {
  margin: 0;
  font-size: 12px;
  line-height: 1.34;
}

.flow-arrow {
  align-self: center;
  color: #9cdffd;
  font-weight: 700;
}

.sample-output {
  margin-top: 10px;
  border: 1px solid var(--stroke-soft);
  border-radius: 10px;
  padding: 9px;
  background: rgba(3, 15, 31, 0.58);
}

.sample-output p {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.sample-output code {
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 11px;
  color: #e5f9ff;
  word-break: break-word;
}

.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.legend-item {
  border: 1px solid var(--stroke-soft);
  border-radius: 10px;
  background: rgba(6, 24, 46, 0.75);
  padding: 9px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.legend-code {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(85, 184, 236, 0.56);
  display: grid;
  place-items: center;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #d8f3ff;
  background: rgba(12, 46, 79, 0.62);
}

.legend-item h4 {
  margin: 1px 0 4px;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 12px;
}

.legend-item p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.interactive-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.interactive-surface::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(220px circle at var(--px, 50%) var(--py, 50%), rgba(38, 196, 255, 0.2), transparent 62%);
  transition: opacity 170ms ease;
}

.interactive-surface > * {
  position: relative;
  z-index: 1;
}

.interactive-surface.touch-active::after {
  opacity: 1;
}

@media (hover: hover) {
  .interactive-surface:hover::after {
    opacity: 1;
  }

  .panel:hover,
  .kpi:hover {
    transform: translateY(-1px);
    border-color: rgba(105, 201, 244, 0.5);
  }

  .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
  }

  .switch-wrap:hover,
  .drawer-close:hover {
    border-color: rgba(105, 201, 244, 0.62);
    background: rgba(8, 34, 64, 0.92);
  }

  tbody tr:hover {
    transform: translateX(2px);
  }

  .flow-node:hover {
    border-color: rgba(105, 201, 244, 0.58);
    transform: translateY(-1px);
  }
}

.btn:active,
.menu-btn:active,
.switch-wrap:active,
.drawer-close:active {
  transform: scale(0.985);
}

@keyframes typing-sweep {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(380%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .kpi,
  .btn,
  .switch-wrap,
  tbody tr,
  .flow-node,
  .drawer-close,
  .interactive-surface::after,
  input,
  select {
    transition: none;
  }

  .controls.is-typing::before {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

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

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  body {
    padding: 10px;
  }

  .hero-copy,
  .panel {
    padding: 12px;
    border-radius: 14px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero-subhead {
    font-size: clamp(17px, 6vw, 24px);
  }

  .subtitle {
    font-size: 14px;
  }

  .top-side {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .menu-btn {
    width: 34px;
    height: 24px;
    top: 8px;
    right: 10px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .control-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    height: 44px;
    font-size: 16px;
  }

  .switch-wrap {
    width: 100%;
    min-height: 42px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 8px;
  }

  .table-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .table-wrap {
    border: 0;
    max-height: none;
    overflow: visible;
    margin-top: 8px;
    background: transparent;
  }

  table {
    min-width: 0;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    margin-bottom: 9px;
    background: linear-gradient(145deg, rgba(8, 31, 58, 0.82), rgba(4, 18, 37, 0.84));
    padding: 6px 8px;
  }

  tbody tr.active {
    background: linear-gradient(120deg, rgba(38, 196, 255, 0.2), rgba(8, 31, 58, 0.92));
  }

  td {
    border-bottom: 1px dashed var(--stroke-soft);
    padding: 8px 4px;
    font-size: 13px;
    display: grid;
    grid-template-columns: minmax(88px, 104px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 10px;
    font-weight: 700;
  }

  td[colspan] {
    display: block;
    border-bottom: 0;
    padding: 10px 4px;
  }

  td[colspan]::before {
    content: none;
  }

  .metar-line {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .detail-head h2 {
    font-size: 22px;
  }

  .detail-content {
    margin-top: 8px;
    gap: 9px;
  }

  .detail-block {
    padding: 10px;
  }

  .hist-row {
    grid-template-columns: 44px 1fr 36px;
    gap: 6px;
  }

  .samples-list {
    padding-left: 16px;
  }

  .info-drawer {
    width: min(560px, 100vw);
    border-left: 0;
  }

  .flow-diagram {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

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

@media (max-width: 560px) {
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .meta-chip strong {
    font-size: 23px;
  }

  .info-drawer {
    padding: 12px;
  }
}
