:root {
  color-scheme: dark;
  --bg: #090f18;
  --panel: #111a28;
  --panel-2: #0c131e;
  --field: #080e18;
  --button: #172233;
  --button-hover: #1f2d42;
  --stroke: #26364d;
  --stroke-strong: #3b516f;
  --text: #d7deea;
  --muted: #b6c0cf;
  --dim: #7f8da3;
  --gold: #f5c84c;
  --gold-2: #b88a24;
  --green: #2dd27b;
  --red: #ff5b57;
  --blue: #5ba7ff;
  --caution: #f5c84c;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(12px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
}

body.modal-open {
  overflow: hidden;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(12px, 2vw, 22px);
  background: rgba(7, 11, 18, .94);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(244, 197, 66, .58);
  object-fit: cover;
}

.brand-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
}

.brand-logo-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1 {
  margin: 0;
  font-size: clamp(1.32rem, 2.35vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
  font-weight: 780;
}

h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.subline {
  margin-top: 5px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cycle-date {
  font-weight: 520;
}

.cycle-date.current {
  color: #76c98f;
}

.cycle-date.stale {
  color: var(--caution);
}

.cao-line {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1;
  font-weight: 820;
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: right;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  align-self: flex-start;
  padding-top: clamp(.63rem, .95vw, .98rem);
}

.layout {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: clamp(10px, 1.6vw, 18px);
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(440px, 1fr) minmax(320px, 420px);
  gap: 12px;
  align-items: start;
}

.panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

.panel {
  padding: 14px;
}

.left-stack {
  display: grid;
  gap: 12px;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.visual-stack {
  display: grid;
  gap: 12px;
  grid-column: 2;
  grid-row: 1;
}

.controls-panel,
.runway-panel,
.method-panel {
  display: grid;
  gap: 12px;
}

.controls-panel {
  position: relative;
}

.runway-panel {
  grid-column: 3;
  grid-row: 1;
}

.input-settings-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 32px;
  height: 32px;
  min-height: 0;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: var(--button);
  border: 1px solid var(--stroke-strong);
  border-radius: 0 8px 0 8px;
  font-weight: 950;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .08s ease;
}

.field {
  display: grid;
  gap: 6px;
}

label,
.eyebrow {
  color: var(--muted);
  font-size: .83rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  outline: none;
}

input,
select {
  min-height: 48px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(244, 197, 66, .18);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.mini-btn,
.icon-btn {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--text);
  background: var(--button);
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, transform .08s ease;
}

.mini-btn:focus-visible,
.primary-btn:focus-visible,
.info-btn:focus-visible,
.input-settings-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.update {
  color: var(--text);
  background: var(--button);
  border-color: var(--gold);
  font-weight: 800;
}

button:hover,
.suggestion-send:hover,
.result-item:hover {
  background: var(--button-hover);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 200, 76, .26), 0 0 16px rgba(245, 200, 76, .16);
}

button:active,
.suggestion-send:active,
.result-item:active {
  transform: translateY(1px) scale(.99);
}

.results {
  display: none;
  max-height: 280px;
  overflow: auto;
  background: #080e18;
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

.results.open {
  display: grid;
}

.result-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(38, 53, 74, .65);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .08s ease;
}

.result-item:last-child {
  border-bottom: 0;
}

.result-ident {
  color: var(--text);
  font-weight: 820;
}

.result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.result-name,
.airport-name {
  display: block;
  font-weight: 750;
  line-height: 1.2;
}

.result-meta,
.airport-meta {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.35;
}

.airport-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

.fallback-note {
  color: #f5c84c;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.25;
}

.runway-select[hidden] {
  display: none;
}

.runway-select {
  min-height: 48px;
  color: var(--text);
  background: var(--button-hover);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 200, 76, .46), 0 0 18px rgba(245, 200, 76, .34);
  font-weight: 860;
}

.runway-direction {
  min-height: 20px;
  color: var(--gold);
  font-size: .88rem;
  font-weight: 820;
}

.manual-grid,
.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

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

.primary-btn {
  min-height: 48px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--button);
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .08s ease;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.info-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: var(--button);
  border: 1px solid var(--stroke-strong);
  border-radius: 0 8px 0 8px;
  font-weight: 950;
  cursor: pointer;
}

.compass-info {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
}

.tiny-status {
  color: var(--dim);
  font-size: .78rem;
  line-height: 1.25;
}

.tiny-status:empty {
  display: none;
}

.compass-panel {
  padding: 0;
  overflow: hidden;
}

.compass-wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-height: min(74vh, 760px);
}

#compassSvg {
  display: block;
  width: 100%;
  height: 100%;
}

.corner-readout {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  max-width: min(42%, 190px);
  display: grid;
  gap: 0;
  color: var(--text);
  text-shadow: 0 1px 3px #000;
}

.corner-readout div {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: baseline;
  column-gap: 5px;
}

.corner-readout span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
}

.corner-readout strong {
  font-family: inherit;
  font-size: .75rem;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}

.corner-readout small {
  display: none;
}

.corner-readout .good strong { color: var(--text); }
.corner-readout .warn strong { color: var(--caution); }
.corner-readout .bad strong { color: var(--red); }

.wind-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  min-height: 24px;
  max-width: 34%;
  padding: 3px 6px;
  color: #dbeafe;
  background: rgba(91, 167, 255, .14);
  border: 1px solid rgba(91, 167, 255, .55);
  border-radius: 0 8px 0 8px;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .01em;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
  user-select: none;
}

.selected-runway-badge {
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 4;
  width: 64px;
  min-height: 24px;
  padding: 3px 4px;
  color: var(--gold);
  background: rgba(23, 34, 51, .9);
  border: 1px solid rgba(91, 167, 255, .45);
  border-bottom: 0;
  border-radius: 8px 0 0 0;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}

.best-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 64px;
  min-height: 24px;
  padding: 3px 4px;
  color: #dbeafe;
  background: rgba(91, 167, 255, .16);
  border: 2px solid var(--blue);
  border-radius: 8px 0 8px 0;
  box-shadow: inset 0 0 0 1px rgba(7, 13, 23, .7), 0 0 12px rgba(91, 167, 255, .16);
  font-weight: 950;
  font-size: .75rem;
  line-height: 1.1;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  cursor: pointer;
}

.rank-row.selected {
  background: var(--button-hover);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 200, 76, .46), 0 0 18px rgba(245, 200, 76, .28);
}

.rank-left {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.rank-row > span:last-child {
  min-width: 0;
  text-align: center;
}

.rank-rwy {
  color: var(--gold);
  font-size: .9rem;
  font-weight: 900;
}

.rank-main {
  color: var(--text);
  display: block;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.25;
}

.rank-wind {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.2;
}

.rank-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-top: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.25;
}

.rank-sub span + span::before {
  content: "|";
  margin: 0 6px;
  color: var(--muted);
}

@media (min-width: 1181px) and (pointer: fine) {
  .runway-panel {
    position: sticky;
    top: calc(86px + 12px);
    max-height: calc(100dvh - 112px);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .ranking-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-color: var(--stroke-strong) transparent;
    scrollbar-width: thin;
  }
}

.value-warn {
  color: var(--caution) !important;
}

.value-bad {
  color: var(--red) !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.pill.good {
  color: #d9fbe8;
  background: rgba(45, 210, 123, .12);
  border: 1px solid rgba(45, 210, 123, .45);
}

.pill.warn {
  color: #fff2c2;
  background: rgba(245, 200, 76, .13);
  border: 1px solid rgba(245, 200, 76, .58);
}

.pill.bad {
  color: #ffe0df;
  background: rgba(255, 91, 87, .14);
  border: 1px solid rgba(255, 91, 87, .62);
}

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

.clock-grid div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

.clock-grid b {
  color: var(--gold);
}

.clock-method-svg {
  display: block;
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 8px;
  background:
    linear-gradient(rgba(91, 167, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 167, 255, .05) 1px, transparent 1px),
    #080f22;
  background-size: 16px 16px;
  border: 1px solid rgba(91, 167, 255, .16);
  border-radius: 8px;
}

.clock-face {
  fill: rgba(4, 9, 20, .72);
  stroke: rgba(210, 218, 232, .34);
  stroke-width: 2;
}

.clock-rim {
  fill: none;
  stroke: #1f2937;
  stroke-width: 2;
}

.clock-sector {
  fill: rgba(255, 91, 87, .68);
  stroke: none;
}

.clock-tick {
  stroke: rgba(235, 239, 248, .9);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.clock-tick.major {
  stroke-width: 2.8;
}

.clock-hand {
  stroke: #ff2f8d;
  stroke-width: 3;
  stroke-linecap: round;
}

.clock-hand-secondary {
  stroke: rgba(235, 239, 248, .42);
  stroke-width: 2;
}

.clock-wind-arrow {
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  marker-end: url("#clockWindArrowHead");
  filter: drop-shadow(0 0 5px rgba(91, 167, 255, .5));
}

#clockWindArrowHead path {
  fill: var(--blue);
}

.clock-hub-dot {
  fill: var(--gold);
  stroke: #080f22;
  stroke-width: 2;
}

.clock-ray {
  stroke: rgba(48, 52, 59, .38);
  stroke-width: 2;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
}

.clock-label,
.clock-small,
.clock-center,
.clock-hour,
.clock-hub {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 850;
}

.clock-label {
  fill: var(--text);
  font-size: 18px;
}

.clock-small {
  fill: var(--blue);
  font-size: 10px;
  font-weight: 760;
}

.clock-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.clock-compare div {
  min-width: 0;
  padding: 8px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

.clock-compare span,
.clock-compare b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-compare span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 820;
  text-transform: uppercase;
}

.clock-compare b {
  margin-top: 3px;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.05;
}

.clock-explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.clock-explain div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: rgba(91, 167, 255, .07);
  border: 1px solid rgba(91, 167, 255, .18);
  border-radius: 8px;
}

.clock-explain b {
  color: var(--gold);
  font-size: .92rem;
}

.clock-explain span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.3;
}

.clock-center {
  fill: #1f2937;
  font-size: 13px;
}

.clock-hour {
  fill: rgba(235, 239, 248, .34);
  font-size: 20px;
  font-weight: 780;
}

.clock-hub {
  fill: #1f2937;
  font-size: 20px;
}

.clock-grid span,
.callout,
.ios-note {
  color: var(--muted);
  font-size: .9rem;
}

.callout {
  padding: 10px;
  background: rgba(91, 167, 255, .08);
  border: 1px solid rgba(91, 167, 255, .25);
  border-radius: 8px;
}

.suggestion-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

.suggestion-send {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--button);
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .08s ease;
}

.ios-note {
  line-height: 1.35;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .64);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  max-height: min(92dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.clock-modal-card {
  width: min(980px, calc(100vw - 36px));
  height: auto;
  max-height: calc(100dvh - 36px);
  grid-template-columns: minmax(380px, 460px) minmax(320px, 1fr);
  grid-template-areas:
    "head head"
    "diagram compare"
    "diagram explain";
  align-items: start;
  padding: clamp(14px, 2vw, 22px);
}

.clock-modal-card > .section-row {
  grid-area: head;
  width: 100%;
}

.clock-modal-card > .clock-method-svg {
  grid-area: diagram;
  width: min(460px, 100%);
  justify-self: center;
}

.clock-modal-card > .clock-compare {
  grid-area: compare;
  width: 100%;
  margin-top: 0;
}

.clock-modal-card > .clock-explain {
  grid-area: explain;
  width: 100%;
  grid-template-columns: 1fr;
}

.modal-close {
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
}

.message-center-panel {
  display: grid;
  gap: 8px;
}

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

.message-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(17, 26, 40, .97);
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

.message-card[hidden] {
  display: none;
}

.message-card b,
.message-card span {
  display: block;
}

.message-card b {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.1;
}

.message-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.message-card button {
  justify-self: end;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--text);
  background: var(--button);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .08s ease;
}

.message-card button:hover {
  background: var(--button-hover);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 200, 76, .26), 0 0 16px rgba(245, 200, 76, .16);
}

.message-card button:active {
  transform: translateY(1px) scale(.99);
}

.settings-symbol {
  font-size: 1rem;
  line-height: 1;
}

.sw-dot {
  min-width: 88px;
  color: var(--dim);
  font-size: .78rem;
  text-align: right;
}

@media (max-width: 1180px), (pointer: coarse) and (max-width: 1400px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-stack,
  .controls-panel,
  .visual-stack,
  .runway-panel,
  .message-center-panel,
  .method-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .compass-wrap {
    max-height: none;
  }

  .clock-modal-card {
    width: calc(100vw - 36px);
    height: calc(100dvh - 36px);
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "diagram"
      "compare"
      "explain";
    align-content: start;
    border-radius: 0;
    border: 0;
  }

  .clock-modal-card > .clock-method-svg,
  .clock-modal-card > .clock-compare,
  .clock-modal-card > .clock-explain,
  .clock-modal-card > .section-row {
    width: min(680px, 100%);
    justify-self: center;
  }

  .clock-modal-card > .clock-method-svg {
    width: min(390px, 100%);
  }
}

@media (max-width: 760px) {
  .app-header {
    align-items: center;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .manual-grid,
  .limits-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .corner-readout {
    max-width: 56%;
    gap: 1px;
  }

  .corner-readout small {
    display: none;
  }

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

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

  .clock-method-svg {
    width: min(390px, 100%);
    padding: 6px;
  }

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

  .airport-card {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 68px 1fr;
    gap: 8px;
  }

  .message-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .message-card div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .message-card b {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .message-card span {
    min-width: 0;
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .message-card button {
    min-height: 36px;
    padding: 6px 10px;
  }

  .sw-dot {
    display: none;
  }
}
