:root {
  --ink: #102a43;
  --ink-soft: #486581;
  --muted: #829ab1;
  --paper: #f6f8f4;
  --surface: rgba(255, 255, 255, 0.88);
  --white: #ffffff;
  --line: rgba(16, 42, 67, 0.12);
  --teal: #0f766e;
  --teal-deep: #115e59;
  --mint: #dff3ec;
  --gold: #c8862f;
  --gold-soft: #fff3d6;
  --red: #b94a48;
  --red-soft: #fdebea;
  --shadow: 0 24px 65px rgba(25, 52, 69, 0.1);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #edf4ef 0, var(--paper) 430px, #f7f5ee 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { background: #64b6a7; top: -220px; left: -170px; }
.ambient-two { background: #e5b76d; right: -260px; top: 270px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 24px rgba(16, 42, 67, .2);
}
.brand-mark svg { width: 28px; fill: currentColor; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 17px; letter-spacing: .06em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .23em; margin-top: 5px; text-transform: uppercase; }
.system-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.status-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(200,134,47,.14); }
.system-pill.online .status-dot { background: #20a878; box-shadow: 0 0 0 4px rgba(32,168,120,.14); }
.system-pill.error .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(185,74,72,.13); }

.hero { padding: 82px 0 58px; text-align: center; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 11px; color: var(--teal); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.hero h1 { margin: 22px auto 20px; max-width: 850px; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(42px, 6.3vw, 76px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero p { max-width: 670px; margin: 0 auto; color: var(--ink-soft); line-height: 1.85; font-size: 15px; }

.panel { background: var(--surface); border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.search-card { padding: 30px 34px 24px; }
.panel-heading, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.panel-heading.compact { align-items: center; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--teal); font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.panel-heading h2, .section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.source-badge { border: 1px solid rgba(15,118,110,.2); background: var(--mint); color: var(--teal-deep); border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 700; }

.search-form { display: grid; grid-template-columns: minmax(320px, 1.5fr) minmax(135px, .58fr) minmax(170px, .72fr) minmax(120px, .5fr) auto auto; gap: 14px; align-items: end; margin-top: 25px; }
.route-fields { display: grid; grid-template-columns: 1fr 38px 1fr; gap: 6px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(248,250,248,.9);
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
  transition: border .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus { border-color: rgba(15,118,110,.55); background: white; box-shadow: 0 0 0 4px rgba(15,118,110,.08); }
.route-field input { font-family: Georgia, serif; font-size: 24px; letter-spacing: .05em; text-transform: uppercase; padding-block: 8px 2px; border-width: 0 0 1px; border-radius: 0; background: transparent; }
.route-field input:focus { box-shadow: none; background: transparent; border-color: var(--teal); }
.route-field small { min-height: 14px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap-button { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; transition: transform .2s, border-color .2s; }
.swap-button:hover { transform: rotate(180deg); border-color: var(--teal); }
.swap-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.toggle-field { display: flex; align-items: center; gap: 8px; min-height: 48px; white-space: nowrap; color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.toggle-field input { position: absolute; opacity: 0; }
.toggle-ui { width: 37px; height: 21px; border-radius: 999px; background: #cbd5dd; padding: 3px; transition: background .2s; }
.toggle-ui::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 2px 4px rgba(0,0,0,.18); transition: transform .2s; }
.toggle-field input:checked + .toggle-ui { background: var(--teal); }
.toggle-field input:checked + .toggle-ui::after { transform: translateX(16px); }
.plus-explainer { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(210px, .7fr) minmax(320px, 1.5fr); gap: 20px; align-items: center; margin-top: 2px; padding: 15px 17px; border: 1px solid rgba(200,134,47,.24); border-radius: 14px; background: linear-gradient(100deg, rgba(255,243,214,.82), rgba(255,255,255,.72)); }
.plus-explainer strong { display: block; color: #80551e; font-family: Georgia, "Noto Serif SC", serif; font-size: 15px; }
.plus-explainer span { display: block; margin-top: 5px; color: #9b6c2e; font-size: 10px; }
.plus-explainer p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }

.primary-button, .secondary-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; cursor: pointer; font-weight: 750; transition: transform .18s, box-shadow .18s, background .18s; }
.primary-button { min-height: 50px; padding: 0 18px; border: 0; background: var(--ink); color: white; box-shadow: 0 10px 20px rgba(16,42,67,.18); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(16,42,67,.24); }
.primary-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-button:disabled, .secondary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.secondary-button { min-height: 48px; padding: 0 18px; border: 1px solid var(--teal); color: white; background: var(--teal); }
.secondary-button:hover { background: var(--teal-deep); transform: translateY(-1px); }
.ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.65); padding: 9px 13px; color: var(--ink-soft); font-size: 12px; }
.ghost-button:hover { background: white; border-color: rgba(15,118,110,.3); }
.ghost-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.advanced-fields { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 14px; color: var(--ink-soft); font-size: 12px; }
.advanced-fields summary { cursor: pointer; font-weight: 700; color: var(--teal); width: fit-content; }
.advanced-fields > div { display: grid; grid-template-columns: repeat(2, minmax(180px, 240px)); gap: 12px; margin-top: 13px; }
.advanced-fields p { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.form-footnote { margin: 15px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }

.results-section, .dashboard-section { padding-top: 76px; }
.result-meta { color: var(--muted); font-size: 11px; text-align: right; }
.result-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 16px; }
.summary-tile { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: rgba(255,255,255,.58); }
.summary-tile small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.summary-tile strong { font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.summary-tile strong.price { color: var(--teal); }
.result-summary.plus-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plus-result-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 0 16px; padding: 15px 18px; border: 1px solid rgba(200,134,47,.22); border-radius: 16px; background: var(--gold-soft); color: #80551e; }
.plus-result-note strong { display: block; margin-bottom: 5px; font-size: 12px; }
.plus-result-note p { margin: 0; color: #8b642d; font-size: 10px; line-height: 1.65; }
.plus-result-note .reason-list { flex: 0 1 48%; text-align: right; }
.reason-chip { display: inline-flex; margin: 2px 0 2px 5px; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.62); color: #80551e; font-size: 9px; }

.flight-list { display: grid; gap: 12px; }
.flight-card { display: grid; grid-template-columns: 170px minmax(320px, 1fr) minmax(300px, .9fr); align-items: stretch; background: rgba(255,255,255,.82); border: 1px solid rgba(16,42,67,.1); border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.flight-card:hover { transform: translateY(-2px); box-shadow: 0 17px 45px rgba(25,52,69,.09); }
.flight-identity { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.flight-identity strong { font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.flight-identity span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.flight-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tag { padding: 4px 7px; border-radius: 7px; background: #eef3f1; color: var(--teal-deep); font-size: 9px; font-weight: 700; }
.route-visual { padding: 22px 26px; display: grid; grid-template-columns: minmax(90px, 1fr) 110px minmax(90px, 1fr); gap: 12px; align-items: center; }
.airport-block:last-child { text-align: right; }
.airport-block time { display: block; font-family: Georgia, serif; font-size: 31px; line-height: 1; }
.airport-block strong { display: block; margin-top: 8px; font-size: 13px; }
.airport-block small { color: var(--muted); font-size: 9px; }
.route-line { text-align: center; color: var(--muted); font-size: 9px; }
.route-line i { display: block; position: relative; height: 1px; background: var(--line); margin: 8px 0; }
.route-line i::before { content: "✦"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-52%); background: white; padding: 0 6px; color: var(--gold); font-style: normal; font-size: 11px; }
.fare-stack { background: rgba(239,245,241,.62); padding: 13px; display: grid; gap: 7px; align-content: center; }
.plus-benefit { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid rgba(200,134,47,.25); border-radius: 12px; background: linear-gradient(100deg, #fff9e9, #fff); }
.plus-benefit.inventory-confirmed { border-color: rgba(15,118,110,.28); background: linear-gradient(100deg, #eaf8f3, #fff); }
.plus-benefit.inventory-confirmed strong, .plus-benefit.inventory-confirmed .plus-price b { color: var(--teal-deep); }
.plus-benefit strong { display: block; color: #80551e; font-size: 11px; }
.plus-benefit small { color: #9b6c2e; font-size: 8px; line-height: 1.4; }
.plus-benefit .plus-price { text-align: right; }
.plus-benefit .plus-price b { display: block; color: #80551e; font-family: Georgia, serif; font-size: 20px; }
.tag.plus-tag { color: #80551e; background: var(--gold-soft); }
.fare-row.plus-live { border: 1px solid rgba(15,118,110,.12); background: rgba(255,255,255,.78); }
.other-cabin-hint { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.58); color: var(--muted); font-size: 9px; }
.fare-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; }
.fare-row:first-child { background: white; box-shadow: 0 6px 16px rgba(25,52,69,.06); }
.fare-name strong { display: block; font-size: 11px; }
.fare-name small { color: var(--muted); font-size: 9px; }
.fare-price { text-align: right; }
.fare-price strong { color: var(--teal-deep); font-family: Georgia, serif; font-size: 20px; font-weight: 600; }
.fare-price small { display: block; color: var(--muted); font-size: 8px; }
.conditional { color: var(--gold) !important; }

.create-monitor { margin-top: 18px; padding: 25px 28px; display: grid; grid-template-columns: .75fr 1.5fr; gap: 32px; align-items: end; }
.create-monitor h3 { margin: 5px 0 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.create-monitor p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.monitor-form { display: grid; grid-template-columns: 1.2fr .7fr .8fr auto; gap: 10px; align-items: end; }
.input-prefix { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; background: rgba(248,250,248,.9); overflow: hidden; }
.input-prefix:focus-within { border-color: rgba(15,118,110,.55); box-shadow: 0 0 0 4px rgba(15,118,110,.08); }
.input-prefix b { padding-left: 13px; color: var(--muted); font-weight: 500; }
.input-prefix input { min-height: 46px; border: 0; box-shadow: none !important; padding-left: 5px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 18px; margin-top: 22px; align-items: start; }
.monitor-list { display: grid; gap: 10px; }
.monitor-card { background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 18px; padding: 19px 20px; display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 15px; }
.monitor-card.paused { opacity: .68; }
.monitor-main { display: flex; gap: 15px; min-width: 0; }
.monitor-route-icon { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 13px; color: var(--teal); background: var(--mint); font-weight: 800; font-size: 11px; }
.monitor-copy { min-width: 0; }
.monitor-copy h3 { margin: 1px 0 6px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-copy p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.monitor-copy small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.monitor-copy small.error-text { color: var(--red); }
.monitor-price { text-align: right; min-width: 100px; }
.monitor-price strong { display: block; color: var(--teal); font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.monitor-price small { color: var(--muted); font-size: 9px; }
.monitor-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--line); padding-top: 11px; }
.mini-button { border: 0; background: transparent; color: var(--ink-soft); padding: 6px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; cursor: pointer; }
.mini-button:hover { background: #eef3f1; color: var(--teal); }
.mini-button.danger:hover { background: var(--red-soft); color: var(--red); }
.mini-button.run { background: var(--ink); color: white; padding-inline: 11px; }
.mini-button:disabled { opacity: .5; cursor: wait; }

.alert-column { padding: 22px; box-shadow: none; border-color: var(--line); }
.aside-heading { display: flex; align-items: center; justify-content: space-between; }
.aside-heading h3 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.count-badge { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 7px; border-radius: 999px; color: var(--teal); background: var(--mint); font-size: 11px; font-weight: 800; }
.alert-list { display: grid; gap: 0; margin-top: 13px; }
.alert-item { position: relative; padding: 14px 25px 14px 15px; border-top: 1px solid var(--line); }
.alert-item:first-child { border-top: 0; }
.alert-item::before { content: ""; position: absolute; left: 0; top: 20px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.alert-item h4 { margin: 0 0 5px; font-size: 11px; }
.alert-item p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.alert-item time { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.alert-item.acknowledged { opacity: .52; }
.ack-button { position: absolute; right: 0; top: 13px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }

.empty-state { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; padding: 25px; }
.empty-state p { margin: 0; font-size: 11px; line-height: 1.6; }
.empty-state strong { display: block; color: var(--ink-soft); margin-bottom: 4px; }
.loader { width: 22px; height: 22px; border: 2px solid rgba(15,118,110,.15); border-top-color: var(--teal); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.how-it-works { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 88px 0 72px; }
.method-card { padding: 26px 4px 0; border-top: 1px solid var(--line); }
.method-number { color: var(--gold); font-family: Georgia, serif; font-size: 11px; }
.method-card h3 { margin: 12px 0 7px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.method-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 24px 38px; color: var(--muted); font-size: 10px; }
.footer a { color: var(--teal); font-weight: 700; text-decoration: none; }

.history-dialog { width: min(760px, calc(100% - 28px)); max-height: min(88vh, 820px); border: 0; border-radius: 24px; padding: 28px; color: var(--ink); box-shadow: 0 35px 100px rgba(16,42,67,.28); overflow: auto; }
.history-dialog::backdrop { background: rgba(10,31,45,.46); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 18px; top: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef3f1; color: var(--ink-soft); font-size: 22px; cursor: pointer; }
.history-dialog h2 { margin: 2px 45px 6px 0; font-family: Georgia, serif; font-weight: 500; }
.history-dialog .dialog-subtitle { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.latest-snapshot { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.snapshot-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; background: #f1f7f3; }
.snapshot-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 16px; font-weight: 500; }
.snapshot-heading small { color: var(--muted); font-size: 9px; }
.snapshot-row { display: grid; grid-template-columns: 75px 100px 1fr 125px 65px; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 10px; }
.snapshot-row span { color: var(--ink-soft); }
.snapshot-row b { color: var(--teal); text-align: right; font-family: Georgia, serif; font-size: 14px; }
.latest-error { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: #8b5d20; font-size: 10px; }
.chart-wrap { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fafcf9; }
.price-chart { display: block; width: 100%; height: 220px; overflow: visible; }
.chart-grid { stroke: rgba(16,42,67,.09); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chart-gradient); }
.chart-dot { fill: white; stroke: var(--teal); stroke-width: 2; }
.chart-label { fill: var(--muted); font-size: 9px; }
.history-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 10px; }
.history-table th { color: var(--muted); text-align: left; font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.history-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; gap: 9px; }
.toast { min-width: 260px; max-width: 390px; padding: 13px 15px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 16px 45px rgba(16,42,67,.25); font-size: 11px; line-height: 1.5; animation: toast-in .25s ease-out; }
.toast.error { background: #8f3d3b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1040px) {
  .search-form { grid-template-columns: 1.3fr .7fr .72fr .8fr; }
  .route-fields { grid-column: 1 / 3; }
  .toggle-field { grid-column: 2 / 3; }
  .search-button { grid-column: 3 / 5; }
  .flight-card { grid-template-columns: 130px 1fr; }
  .fare-stack { grid-column: 1 / -1; grid-template-columns: repeat(2,1fr); }
  .create-monitor { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 620px); }
  .system-pill span:last-child { display: none; }
  .system-pill { padding: 11px; }
  .hero { padding: 55px 0 40px; text-align: left; }
  .eyebrow { justify-content: flex-start; }
  .hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .hero p { font-size: 13px; }
  .search-card { padding: 23px 18px 20px; }
  .source-badge { display: none; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .route-fields { grid-column: 1 / -1; }
  .toggle-field { grid-column: 2 / 3; }
  .search-button { grid-column: 1 / -1; }
  .plus-explainer { grid-template-columns: 1fr; gap: 8px; }
  .advanced-fields > div { grid-template-columns: 1fr 1fr; }
  .results-section, .dashboard-section { padding-top: 60px; }
  .result-summary { grid-template-columns: 1fr 1fr; }
  .result-summary.plus-summary { grid-template-columns: 1fr 1fr; }
  .summary-tile:last-child { grid-column: 1 / -1; }
  .flight-card { grid-template-columns: 1fr; }
  .flight-identity { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 19px; flex-direction: row; justify-content: space-between; align-items: center; }
  .flight-tags { margin: 0; }
  .route-visual { padding: 22px 18px; grid-template-columns: 1fr 74px 1fr; }
  .fare-stack { grid-column: auto; grid-template-columns: 1fr; }
  .monitor-form { grid-template-columns: 1fr 1fr; }
  .monitor-form .field:first-child { grid-column: 1 / -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .alert-column { order: -1; }
  .snapshot-row { grid-template-columns: 65px 90px 1fr 80px; }
  .snapshot-row span:nth-of-type(2) { display: none; }
  .plus-result-note { display: block; }
  .plus-result-note .reason-list { margin-top: 8px; text-align: left; }
  .how-it-works { grid-template-columns: 1fr; gap: 12px; padding-top: 65px; }
}

@media (max-width: 480px) {
  .topbar { padding-block: 18px; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { padding-top: 42px; }
  .panel-heading h2, .section-heading h2 { font-size: 25px; }
  .search-form { grid-template-columns: 1fr; }
  .route-fields, .toggle-field, .search-button, .advanced-fields { grid-column: 1; }
  .advanced-fields > div { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: 1fr; }
  .result-summary.plus-summary { grid-template-columns: 1fr; }
  .summary-tile:last-child { grid-column: auto; }
  .result-meta { display: none; }
  .route-visual { grid-template-columns: 1fr 55px 1fr; padding-inline: 13px; }
  .airport-block time { font-size: 27px; }
  .monitor-form { grid-template-columns: 1fr; }
  .monitor-form .field:first-child { grid-column: auto; }
  .monitor-card { grid-template-columns: 1fr auto; padding: 16px; }
  .monitor-route-icon { display: none; }
  .monitor-actions { justify-content: space-between; overflow-x: auto; }
  .snapshot-row { grid-template-columns: 60px 1fr 72px; }
  .snapshot-row span:nth-of-type(3) { display: none; }
  .footer { align-items: flex-start; gap: 10px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
