.header-inner { min-height: 67px; }
#route-title { flex: none; }

@media (min-width: 821px) {
  html { scroll-padding-top: 71px; }
  .site-header { position: sticky; top: 0; z-index: 10; }
}
@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
    padding-top: 0;
  }
  .header-inner .brand { min-height: 53px; }
  .header-inner nav { gap: clamp(9px, 3.4vw, 22px); min-height: 0; }
}

.profile-headline { display: none; }
[data-design=profile] .profile-headline { display: inline; color: var(--high); }

:root[data-design=profile] {
  color-scheme: light;
  --bg: #f0ede5;
  --panel: #f9f7f0;
  --panel-2: #f1ece1;
  --text: #322e28;
  --high: #221e1b;
  --muted: #5c5348;
  --faint: #6b6053;
  --border: #bdb4a6;
  --accent: #a23628;
  --mint: #245945;
  --amber: #8d3f25;
  --outline: #a89b8c;
  --tint: #eee1d6;
  --hover: #ecded2;
  --input: #fdfaf4;
  --primary: #962e23;
  --primary-hover: #752116;
  --map-surface: #f8f5ec;
  --display: 'DM Sans', system-ui, sans-serif;
}
/* Shared surfaces and controls */
:root[data-design=profile] body { background: var(--bg); }
:root[data-design=profile] .site-header { border-color: var(--border); background: var(--panel); }
:root[data-design=profile] .brand { color: var(--high); }
:root[data-design=profile] .brand-flight { color: var(--accent); }
:root[data-design=profile] .brand img { filter: saturate(.45); }
:root[data-design=profile] :is(.intro h1 span,.intro-copy>p,.text-button,.footer) { color: var(--muted); }
:root[data-design=profile] :is(.forecast-brief .brief-label,.weather-values dt,.weather-values small) { color: var(--muted); }
:root[data-design=profile] :is(.planner-hero h1 span,#selected-point-time,#map-clock,.save-flight-link,.footer a:hover) { color: var(--accent); }
:root[data-design=profile] :is(.search-panel,.planner-hero .search-panel,dialog,#leg-dialog,#rename-dialog) {
  background: var(--panel);
  border-color: var(--outline);
  box-shadow: none;
}
:root[data-design=profile] :is(.input-wrap,.field input,.field select) {
  background: var(--input);
  border-color: var(--outline);
  color: var(--high);
}
:root[data-design=profile] .input-wrap:focus-within { border-color: var(--accent); }
:root[data-design=profile] .input-wrap input { background: transparent; }
:root[data-design=profile] .field input::placeholder { color: var(--faint); }
:root[data-design=profile] .primary-button { background: var(--primary); border-color: var(--primary); color: var(--primary-ink, #fff); }
:root[data-design=profile] .primary-button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
:root[data-design=profile] :is(.small-button,.icon-button,.schedule-choices button,.flight-action-links>*) {
  background: var(--panel-2);
  border-color: var(--outline);
  color: var(--high);
}
:root[data-design=profile] :is(.small-button,.icon-button,.schedule-choices button,.flight-action-links>*):hover { background: var(--hover); }
:root[data-design=profile] .form-message { background: #f9e8e2; border-color: #ccaaa2; color: #7c302b; }
:root[data-design=profile] .form-message.is-good { background: #e3eee2; border-color: #a4beaa; color: #235c44; }
:root[data-design=profile] .form-message.is-question { background: var(--panel); border-color: var(--border); color: var(--text); }
.leg-choice-note button { margin-right: 9px; }
:root[data-design=profile] :is(.schedule-notice,.flight-meta .route-tag,.flight-actions .badge,.planner-guide a>[data-icon]:first-child) {
  background: var(--tint);
  border-color: var(--outline);
  color: var(--high);
}
:root[data-design=profile] .flight-actions .badge[data-tone=live] { background: #e4eee3; border-color: #a2bea6; color: #24563d; }
:root[data-design=profile] .flight-actions .badge[data-tone=live] i { background: #39835d; }
:root[data-design=profile] .planner-guide a:hover { background: var(--tint); border-color: var(--outline); }
:root[data-design=profile] .brief-card { background: var(--panel); border-color: var(--border); }
:root[data-design=profile] .brief-card:is(:hover,[aria-pressed=true]) { background: var(--tint); border-color: var(--accent); }
:root[data-design=profile] .brief-card:is([data-tone=pending],[data-tone=muted]) strong { color: var(--muted); }
:root[data-design=profile] :is(.route-panel,.route-weather,.map-key,.map-scrubber,.map-context-note,.map-weather-events,.map-storm-source,.turbulence-evidence) {
  color: var(--text);
  background: var(--map-surface);
  border-color: var(--border);
}
:root[data-design=profile] :is(.map-workspace,.map-box,.weather-values div) { border-color: var(--border); }
:root[data-design=profile] :is(.map-context-note strong,.map-scale strong,.map-scrubber-track label,.weather-values dd,.turbulence-evidence strong) { color: var(--high); }
:root[data-design=profile] .weather-values div { background: var(--panel); }
:root[data-design=profile] :is(.map-layers button,.map-controls button) {
  background: var(--panel);
  border-color: var(--outline);
  color: var(--high);
}
:root[data-design=profile] .map-controls { border-color: var(--outline); }
:root[data-design=profile] :is(.map-layers button,.map-controls button):is(:hover,[aria-pressed=true]),
:root[data-design=profile] #zoom-mainland:is(:hover,[aria-pressed=true]) {
  background: var(--tint);
  border-color: var(--accent);
  color: var(--high);
}
:root[data-design=profile] .map-bands>li.is-active { color: var(--high); }
:root[data-design=profile] #route-slider { --track-color: var(--outline); }
:root[data-design=profile] #route-slider::-webkit-slider-thumb { background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
:root[data-design=profile] #route-slider::-moz-range-thumb { background: var(--accent); }
:root[data-design=profile] .turbulence-evidence :is(li,li[data-evidence=report],p) {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--outline);
}
:root[data-design=profile] .turbulence-evidence li { border-left-color: #835391; }
:root[data-design=profile] .turbulence-evidence li[data-evidence=report] { border-left-color: #3976a1; }
:root[data-design=profile] :is(.aurora-panels .panel,.method-panel,.appearance,.replay-evidence) { background: var(--panel); }
:root[data-design=profile] :is(.aurora-section>summary,.method-panel summary,.appearance h4,.replay-evidence) { color: var(--text); }
:root[data-design=profile] .method-panel summary::after { color: var(--muted); }
:root[data-design=profile] :is(.viewing-fact,.kp-details th,.kp-details td) { border-color: var(--border); }
:root[data-design=profile] :is(.icon-tile,.storm-tag,.route-window,.route-window[data-tone],.fact-icon) {
  background: var(--tint);
  border-color: var(--outline);
  color: var(--high);
}
:root[data-design=profile] :is(.window-times small,.kp-details summary,.storm-summary>span) { color: var(--accent); }
:root[data-design=profile] .viewing-art .kicker { color: #d3f6e5; }
:root[data-design=profile] .explore-shell { --board-line: var(--border); --board-inset: var(--panel-2); }
:root[data-design=profile] .trips-shell { --trip-line: var(--border); --trip-inset: var(--panel-2); }
:root[data-design=profile] :is(.home-speed .explore-flight,.leg-status,.leg-heading span,.leg-links a,.trip-card-actions .add-leg) {
  background: var(--panel-2);
  border-color: var(--outline);
  color: var(--text);
}
:root[data-design=profile] :is(.explore-flight:hover,.explore-flight:focus-visible,.explore-picker button:hover,.leg-links a:hover,.trip-card-actions .add-leg:hover) {
  background: var(--hover);
  border-color: var(--outline);
}
:root[data-design=profile] .explore-picker button[aria-pressed=true] { background: var(--tint); border-color: var(--accent); color: var(--accent); }
:root[data-design=profile] :is(.leg-status[data-tone=ready],.leg-status[data-tone=new],.leg-preview) { background: #e6efe2; color: #25543f; border-color: #a6bda7; }
:root[data-design=profile] .leg-preview strong { color: #25543f; }
:root[data-design=profile] :is(.remove-trip:hover,.remove-leg:hover) { color: #993648; }

/* Shared route-view structure */
.route-view { min-width: 0; }
.route-view-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.route-view-heading h2 { color: var(--high); font: 700 21px/1.1 var(--display); }
.route-view-heading :is(output,span) { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.route-view-band { position: absolute; top: 6px; bottom: 6px; background: var(--band); }
:root[data-design=profile] {
  --mono: ui-monospace, 'Liberation Mono', monospace;
}
:root[data-design=profile] :is(.panel,.method-panel,.explore-method,.planner-guide a) { border-radius: 2px; }
:root[data-design=profile] .brief-card {
  background: transparent;
  min-height: 0;
  border: 0;
  border-inline-end: 1px solid var(--border);
  border-radius: 0;
}
:root[data-design=profile] .brief-card:last-child { border-inline-end: 0; }
:root[data-design=profile] .forecast-brief {
  gap: 0;
  border-block: 1px solid var(--border);
  background: var(--panel);
}
:root[data-design=profile] .planner-hero :is(.field input,.primary-button,.input-wrap,.search-panel) { border-radius: 2px; }
:root[data-design=profile] .route-weather .weather-values>div {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 4px;
  background: transparent;
}
:root[data-design=profile] .map-box .map-selection {
  background: #242824;
  color: #f9f6ec;
  border-color: #787a6c;
  border-radius: 2px;
}
:root[data-design=profile] .map-box .map-selection span { color: #f6f0df; border-color: #787a6c; }
:root[data-design=profile] .map-workspace { grid-template-columns: minmax(0,1fr); }
:root[data-design=profile] .route-weather { border: 0; border-top: 1px solid var(--border); }
:root[data-design=profile] .route-weather .weather-values { grid-template-columns: repeat(3,minmax(0,1fr)); }
:root[data-design=profile] .route-weather .weather-ground { grid-column: auto; }
:root[data-design=profile] .map-layers button { border-radius: 2px; }
:root[data-design=profile] .explore-flight {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
}
:root[data-design=profile] .explore-flight-list { gap: 0; }
:root[data-design=profile] .trip-leg { border-radius: 0; }

/* Profile */
[data-design=profile] .site-header { border-top: 3px solid var(--accent); }
[data-design=profile] .planner-shell { max-width: 1250px; }
[data-design=profile] body:not(.is-result) .planner-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0,1.05fr);
  gap: clamp(24px,3vw,40px);
  align-items: center;
  min-height: 0;
  padding: clamp(20px,2.6vw,32px) clamp(21px,3.2vw,40px);
  border-radius: 0;
  border-color: var(--border);
  border-top: 3px solid var(--accent);
  background-color: var(--panel);
  background-image: linear-gradient(#a899871c 1px,transparent 1px),linear-gradient(90deg,#a899871c 1px,transparent 1px);
  background-size: 24px 24px;
}
[data-design=profile] .planner-hero .intro { padding: 0; }
[data-design=profile] .planner-hero h1 { font-size: clamp(39px,5.6vw,79px); line-height: .96; letter-spacing: -.075em; }
[data-design=profile] .planner-hero .search-panel { width: 100%; }
[data-design=profile] body:not(.is-result) .search-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-design=profile] body:not(.is-result) .search-action { grid-column: 1/-1; }
[data-design=profile] body:not(.is-result) .search-action button { width: 100%; justify-content: space-between; }
[data-design=profile] body:not(.is-result) .form-options { grid-row: 3; grid-column: 1/-1; }
[data-design=profile] .flight-meta .route-tag { font-family: var(--mono); }
[data-design=profile] .result-heading h1 { font-weight: 700; letter-spacing: -.085em; }
[data-design=profile] #profile-view {
  --profile-label: 131px;
  --profile-value: 176px;
  --profile-live-ink: var(--high);
  --position: 0%;
  margin: 14px 0 18px;
  padding: 14px 15px 10px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: var(--panel);
}
[data-design=profile] .route-view-heading { margin-bottom: 10px; }
#profile-clock { font-family: var(--mono); }
.profile-heading-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.profile-live-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid var(--outline);
  border-radius: 2px;
  background: var(--panel-2);
  color: var(--profile-live-ink);
  font-size: 11px;
  font-weight: 700;
}
.profile-live-button::before { content: ''; height: 12px; border-left: 2px solid currentColor; }
.profile-live-button:hover { background: var(--hover); border-color: currentColor; }
.profile-live-button[data-stale]::before { border-left-style: dashed; }
.profile-plot-area { position: relative; isolation: isolate; }
#profile-live-track {
  position: absolute;
  inset: 0 var(--profile-value) 0 var(--profile-label);
  z-index: 1;
  pointer-events: none;
}
#profile-live-track::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: var(--live-position);
  transform: translateX(-50%);
  border-left: 2px solid var(--profile-live-ink);
  filter: drop-shadow(1px 0 var(--panel)) drop-shadow(-1px 0 var(--panel));
}
#profile-live-track[data-stale]::before { border-left-style: dashed; }
#profile-live-track:not([hidden]) + #profile-lanes .profile-key li {
  position: relative;
  z-index: 2;
  background: var(--panel);
}
#profile-view[data-following-live] .profile-plot::after { visibility: hidden; }
#profile-live-track:not([hidden]) + #profile-lanes .profile-plot::after { border-left-style: dashed; }
.profile-lane { display: grid; grid-template-columns: var(--profile-label) minmax(0,1fr) var(--profile-value); border-top: 1px solid var(--border); }
.profile-lane:last-child { border-bottom: 1px solid var(--border); }
.profile-layer { justify-self: start; border: 0; border-radius: 0; background: transparent; color: var(--text); padding: 6px 7px 6px 0; text-align: left; font-weight: 700; }
.profile-layer:hover { color: var(--accent); text-decoration: underline; }
.profile-plot {
  min-height: 34px;
  position: relative;
  cursor: crosshair;
  border-inline: 1px solid #a89b8c75;
  background: repeating-linear-gradient(90deg,#9d8d7933 0,#9d8d7933 1px,transparent 1px,transparent 25%);
  isolation: isolate;
}
.profile-plot::after {
  content: '';
  position: absolute;
  inset-block: -1px;
  left: var(--position,0%);
  z-index: 1;
  border-left: 2px solid var(--accent);
  pointer-events: none;
}
.profile-plot .route-view-band { border-block: 1px solid #3b393356; }
.profile-reading { align-self: center; padding: 4px 0 4px 10px; font: 500 11px/1.3 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.profile-key { grid-column: 2/-1; display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 0; padding: 4px 0 6px; list-style: none; color: var(--muted); font-size: 11px; }
.profile-key li { display: inline-flex; align-items: center; gap: 4px; }
.profile-key li::before { content: ''; width: 12px; height: 8px; border: 1px solid var(--outline); background: var(--band); }
.profile-key .is-active { color: var(--high); font-weight: 700; }
.profile-lane { --advisory-ink: #693578; --advisory-fill: #ead5f3; }
.profile-has-advisories { min-height: 44px; }
.profile-has-advisories > .route-view-band:not(.profile-advisory-band) { top: 20px; }
.profile-plot .profile-advisory-band {
  inset-block: 4px auto;
  height: 12px;
  min-width: 4px;
  padding: 0;
  border: 1px solid var(--advisory-ink);
  border-radius: 0;
  background: var(--advisory-ink);
  cursor: pointer;
}
.profile-key [data-match]::before { border-color: var(--advisory-ink); background: var(--advisory-ink); }
.profile-advisory-band[data-match=partial], .profile-key [data-match=partial]::before {
  background: repeating-linear-gradient(135deg,var(--advisory-fill) 0 3px,var(--advisory-ink) 3px 5px);
}
.profile-advisory-band[data-match=uncertain], .profile-key [data-match=uncertain]::before {
  border-style: dashed;
  background: var(--advisory-fill);
}
.profile-advisory-band:is(:hover,:focus-visible) {
  z-index: 2;
  outline: 2px solid var(--outline);
  outline-offset: 1px;
}
.profile-axis { margin: 4px var(--profile-value) 0 var(--profile-label); display: flex; justify-content: space-between; font: 10px/1.3 var(--mono); color: var(--muted); }
.profile-scrub { display: grid; grid-template-columns: var(--profile-label) minmax(0,1fr); align-items: center; margin-right: var(--profile-value); font-size: 11px; color: var(--muted); }
.profile-plot { touch-action: pan-y pinch-zoom; }
.profile-scrub input { accent-color: var(--accent); width: 100%; height: 25px; margin: 0; }
[data-design=profile] .map-box { height: clamp(365px,51dvh,535px); }
[data-design=profile] .explore-picker { border-radius: 0; background: transparent; }

@media (max-width: 919px) {
  :root[data-design=profile] body:not(.is-result) .manual-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :root[data-design=profile] body:not(.is-result) .manual-row > :nth-child(n) { grid-column: auto; }
  :root[data-design=profile] body:not(.is-result) .manual-row > :nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  [data-design=profile] body:not(.is-result) .planner-hero { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 14px; padding: 16px 13px; }
  :root[data-design=profile] .forecast-brief .brief-card:nth-child(2) { border-inline-end: 0; }
  :root[data-design=profile] .forecast-brief .brief-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  :root[data-design=profile] .route-weather .weather-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :root[data-design=profile] .map-box { height: clamp(335px,45dvh,450px); }
  [data-design=profile] #profile-view { --profile-label: 84px; --profile-value: 72px; padding: 10px 8px 7px; }
  .profile-layer,.profile-reading { font-size: 10px; }
  .profile-reading { padding-left: 4px; }
  .profile-key { grid-column: 1/-1; padding-top: 1px; gap: 3px 8px; font-size: 10px; }
  .profile-axis span:nth-child(even) { display: none; }
}
@media (max-width: 360px) {
  [data-design=profile] #profile-view { --profile-value: 63px; --profile-label: 73px; }
}

:root[data-design=profile][data-palette=boarding] {
  --bg: #dcece9;
  --panel: #f1f8f3;
  --panel-2: #e5f0eb;
  --text: #254541;
  --high: #123830;
  --muted: #43645e;
  --faint: #56756f;
  --border: #9dbab0;
  --accent: #6a397a;
  --mint: #136450;
  --amber: #833b1e;
  --outline: #779b91;
  --tint: #dbece5;
  --hover: #d4e9df;
  --input: #f8fff9;
  --primary: #265f57;
  --primary-hover: #184e46;
  --map-surface: #eef6ef;
  --profile-grid: #6d988e42;
}
[data-design=profile] .profile-plot {
  background: repeating-linear-gradient(90deg,var(--profile-grid,#9d8d7933) 0,var(--profile-grid,#9d8d7933) 1px,transparent 1px,transparent 25%);
  border-inline-color: var(--border);
}
[data-design=profile][data-palette] body:not(.is-result) .planner-hero {
  background-image: linear-gradient(var(--profile-grid) 1px,transparent 1px),linear-gradient(90deg,var(--profile-grid) 1px,transparent 1px);
}
[data-design=profile] .profile-plot .route-view-band:not(.profile-advisory-band) { border-inline-end: 1px solid var(--panel); }
[data-design=profile] .map-scale { width: min(100%,570px); }
[data-design=profile] .map-bands>li { white-space: normal; }
[data-design=profile] .map-bands>li::before { height: 12px; border: 1px solid var(--outline); }
[data-design=profile] #map-point-estimate[data-band]::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  vertical-align: baseline;
  margin-right: 5px;
  border: 1px solid #e9eced;
  background: var(--point-band);
}
:root[data-design=profile][data-palette=boarding] .map-box .map-selection { background: #223f3b; border-color: #8bac9f; }

.mobile-trip-start,.mobile-planner-headline,.mobile-forecast-title { display: none; }
.schedule-duration :is(.duration-itinerary,#mobile-itinerary-duration) { display: none; }

@media (max-width: 760px) {
  /* Larger tap targets; only the current page is marked, by the underline from styles.css. */
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-inline: 4px;
    white-space: nowrap;
  }
}

@media (max-width: 740px) {
  body:not(.is-result) .mobile-trip-start { display: block; margin-top: 14px; }
  .mobile-trip-start {
    border-top: 3px solid var(--accent);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--border);
  }
  .mobile-trip-start header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 12px 1px; }
  .mobile-trip-start h2 { color: var(--high); font: 700 24px/1.1 var(--display); letter-spacing: -.035em; }
  .mobile-trip-start header a { display: inline-flex; align-items: center; min-height: 42px; color: var(--accent); font-size: 13px; font-weight: 700; }
  .mobile-trip-start p { margin: 0; padding: 0 12px 13px; color: var(--muted); font-size: 13px; }
  .mobile-trip-row { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 4px 11px 4px 12px; border-top: 1px solid var(--border); }
  .mobile-trip-name { display: grid; min-width: 0; gap: 2px; padding-block: 7px; }
  .mobile-trip-name strong { color: var(--high); font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
  .mobile-trip-name small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
  .mobile-next-flight { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); border: 1px solid var(--border); background: var(--tint); }
  .mobile-next-flight svg { width: 18px; height: 18px; }
  .mobile-next-flight:hover { border-color: var(--accent); background: var(--hover); }
  :root[data-design] body:not(.is-result) .planner-hero {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 12px;
    margin-top: 12px;
  }
  body:not(.is-result) :is(#planner-guide,.planner-hero .intro p) { display: none; }
  :root[data-design] .planner-hero h1 { font: 700 23px/1.12 var(--display); letter-spacing: -.03em; margin: 0; }
  :root[data-design] .planner-hero h1 > span { display: none; }
  :root[data-design] .planner-hero h1 > .mobile-planner-headline { display: inline; color: var(--high); }

  #results .flight-overview-route { margin: 12px 0 9px; padding: 9px 12px 0; background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--accent); }
  #results .result-heading { grid-template-columns: minmax(0,1fr); gap: 8px; margin: 0; }
  #results .flight-actions { grid-column: 1; grid-row: 1; justify-items: stretch; }
  #results .flight-actions .badge { display: none; }
  #results .flight-action-links { flex-flow: row nowrap; align-items: stretch; justify-content: start; gap: 5px; min-width: 0; max-width: 100%; }
  #results .flight-action-links > * { display: inline-flex; align-items: center; flex: none; min-height: 40px; padding: 6px 8px; font-size: 12px; }
  #results .flight-action-links #back-to-trip { display: inline-block; align-content: center; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--accent); font-weight: 700; }
  #results #back-to-trip .back-name { display: none; }
  #results .flight-meta { gap: 7px; }
  #results .flight-identity h1 { font-size: clamp(36px,11vw,52px); margin-top: 3px; line-height: 1.03; }
  #results #route-names { font-size: 13px; }
  #results .flight-schedule { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 0; margin-top: 3px; border-top: 1px solid var(--border); }
  #results .flight-schedule > div { min-width: 0; gap: 3px; align-content: start; padding: 9px 7px 8px 0; }
  #results .flight-schedule .schedule-arrival { border-inline-start: 1px solid var(--border); padding-inline: 10px 0; }
  #results .flight-schedule span { font-size: 12px; line-height: 1.25; }
  #results .flight-schedule strong { font-size: clamp(17px,5vw,24px); line-height: 1.12; overflow-wrap: anywhere; }
  #results .flight-schedule .schedule-duration { grid-column: 1/-1; display: flex; align-items: baseline; gap: 7px; padding: 6px 0; border-top: 1px solid var(--border); }
  #results .flight-schedule .schedule-duration strong { font-size: 13px; }
  #results [data-gate-estimate] .schedule-duration :is(.duration-standard,#flight-duration) { display: none; }
  #results [data-gate-estimate] .schedule-duration :is(.duration-itinerary,#mobile-itinerary-duration) { display: block; }
  #results .schedule-notice { margin: 0 -12px; padding: 7px 12px; border-top: 1px solid var(--border); }
  #results .live-flight { margin-bottom: 12px; padding: 7px 9px; gap: 3px 6px; grid-template-columns: minmax(0,1fr) auto; }
  #results .live-flight-status { display: contents; }
  #results .live-flight-status h2 { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  #results #live-flight-state { grid-area: 1 / 1; align-self: center; }
  #results #live-flight-position { grid-area: 2 / 1 / auto / -1; margin: 0; }
  #results #live-arrival-basis { grid-area: 3 / 1 / auto / -1; margin: 0; white-space: normal; }
  #results .live-flight-map { grid-area: 1 / 2; min-height: 31px; font-size: 11px; }
  #results .live-flight-times { grid-area: 4 / 1 / auto / -1; grid-template-columns: 1fr; padding-top: 5px; margin-top: 2px; }
  #results .live-flight-times > div:only-of-type { padding-inline-start: 0; }
  #results .live-flight-times strong { font-size: 14px; }
  #results .live-flight-times > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
  #results .live-flight-times dd { display: contents; }

  .mobile-forecast-title { display: block; margin: 12px 0 6px; color: var(--high); font: 700 20px/1.15 var(--display); letter-spacing: -.025em; }
  #forecast-brief { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--border); }
  #forecast-brief .brief-card { padding: 8px; gap: 3px; align-content: start; min-height: 69px; }
  #forecast-brief .brief-card:nth-child(odd) { border-inline-end: 1px solid var(--border); }
  #forecast-brief .brief-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  #forecast-brief .brief-card .brief-label { font-size: 12px; line-height: 1.2; color: var(--muted); }
  #forecast-brief .brief-card strong { font-size: 15px; }
  #forecast-brief .brief-card small { font-size: 11px; }

  [data-design=profile] #profile-view { --profile-label: 0px; --profile-value: 0px; margin-bottom: 12px; padding: 10px 10px 5px; }
  #profile-view .route-view-heading { margin-bottom: 6px; }
  #profile-view .profile-lane { grid-template-columns: max-content minmax(0,1fr); grid-template-areas: 'label reading' 'plot plot' 'key key'; }
  #profile-view .profile-layer { grid-area: label; padding-block: 7px 5px; min-height: 31px; font-size: 12px; }
  #profile-view .profile-reading { grid-area: reading; padding: 4px 0 4px 6px; text-align: end; font-size: 11px; }
  #profile-view .profile-plot { grid-area: plot; min-height: 29px; }
  #profile-view .profile-has-advisories { min-height: 44px; }
  #profile-view .profile-has-advisories > .profile-advisory-band {
    inset-block: 0 auto;
    height: calc(50% - 2px);
  }
  #profile-view .profile-has-advisories > .route-view-band:not(.profile-advisory-band) {
    inset-block: calc(50% + 2px) 0;
  }
  #profile-view .profile-key { grid-area: key; padding-block: 4px 5px; }
  #profile-live-track:not([hidden]) + #profile-lanes :is(.profile-layer,.profile-reading) { position: relative; z-index: 2; background: var(--panel); }
  #profile-view .profile-reading { justify-self: end; }
  #profile-view .profile-scrub { grid-template-columns: 1fr; gap: 0; }
  #profile-view .profile-scrub span { color: var(--muted); margin-top: 4px; }
  #profile-view .profile-scrub input, #profile-view .profile-live-button { min-height: 44px; }
  .map-scrubber .small-button, #route-slider { min-height: 44px; }
  :root[data-design] .map-box { height: clamp(280px,40dvh,365px); }
  #route-map { touch-action: pan-y pinch-zoom; }
  #map-layers button { min-height: 38px; font-size: 12px; padding-inline: 8px; }
}
@media (any-pointer: coarse) {
  #route-map { touch-action: pan-y pinch-zoom; }
  #profile-view .profile-scrub input, #profile-view .profile-live-button,
  .map-scrubber .small-button, #route-slider { min-height: 44px; }
}
