.flow { max-width:704px; margin:16px auto 56px; }
.flow h1 { max-width:20ch; }
.back { display:inline-flex; align-items:center; gap:8px; margin:0 0 22px; font-size:.875rem; }
.back::before { content:''; display:block; flex:none; width:24px; height:24px; background:currentColor; -webkit-mask:var(--wind-arrow) center/contain no-repeat; mask:var(--wind-arrow) center/contain no-repeat; }
fieldset { margin:28px 0; padding:0; border:0; }
legend { padding:0; margin-bottom:12px; font-size:.9375rem; font-weight:600; }
.choices { display:grid; gap:10px; }
.email-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ai-choices { grid-template-columns:repeat(5,minmax(0,1fr)); }
.choice { position:relative; display:flex; align-items:center; justify-content:center; gap:10px; min-height:88px; padding:16px 12px; border:1px solid var(--line); border-radius:12px; background:var(--white); cursor:pointer; font-size:.875rem; text-align:center; }
.choice img { width:30px; height:30px; object-fit:contain; flex:none; }
.choice input { position:absolute; width:1px; height:1px; opacity:0; }
.choice:has(input:checked) { border-color:var(--ink); background:var(--wash); box-shadow:inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline:3px solid var(--coral); outline-offset:3px; }
.choice:hover { border-color:#9aaac6; }
.choice-name { display:block; font-weight:500; line-height:1.25; }
.choice-name small { display:block; margin-top:5px; color:var(--muted); font-size:.6875rem; font-weight:400; }
.ai-choices .choice { flex-direction:column; min-height:104px; gap:12px; }
.choice-check { position:absolute; right:9px; top:9px; display:none; width:11px; height:6px; border-left:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); transform:rotate(-45deg); }
.choice:has(input:checked) .choice-check { display:block; }
.connected-shortcut { display:flex; align-items:center; justify-content:space-between; gap:18px; width:100%; margin:0 0 30px; padding:18px 20px; border:1px solid var(--ink); border-radius:12px; color:var(--white); background:var(--ink); text-align:left; }
.connected-shortcut strong { display:block; max-width:34ch; font-weight:600; font-size:1rem; line-height:1.35; }
.connected-shortcut small { display:block; margin-top:5px; color:#e0e7f4; font-size:.8125rem; line-height:1.4; }
.connected-shortcut:hover { background:var(--ink-hover); }
.shortcut-action { flex:none; width:32px; height:32px; position:relative; }
.shortcut-action::after { content:''; position:absolute; inset:4px; background:currentColor; -webkit-mask:var(--wind-arrow) center/contain no-repeat; mask:var(--wind-arrow) center/contain no-repeat; transform:rotate(180deg); }
.picker-divider { color:var(--muted); font-size:.875rem; }
#pickerForm>.primary { min-width:220px; }
.chosen-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 18px; }
.tool-chip { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border:1px solid var(--line); border-radius:7px; background:var(--white); font-size:.75rem; }
.tool-chip img { width:18px; height:18px; object-fit:contain; }
.instructions .lede { max-width:52ch; }
.setup-steps { margin:32px 0 0; border-top:1px solid var(--line); }
.setup-step { border-bottom:1px solid var(--line); }
.step-heading { margin:0; }
.step-toggle { display:flex; align-items:center; gap:12px; width:100%; min-height:72px; padding:18px 0; border:0; background:transparent; color:var(--ink); text-align:left; font-size:1rem; font-weight:600; }
.step-toggle:disabled { opacity:1; }
.step-toggle:disabled:not([aria-expanded=true]) { color:var(--muted); }
.step-toggle::after { content:''; flex:none; width:24px; height:24px; background:currentColor; -webkit-mask:var(--wind-arrow) center/contain no-repeat; mask:var(--wind-arrow) center/contain no-repeat; transform:rotate(-90deg); }
.step-toggle[aria-expanded=true]::after { transform:rotate(90deg); }
.step-marker { position:relative; display:inline-flex; flex:none; align-items:center; justify-content:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; color:var(--muted); font-size:.75rem; font-weight:500; }
.is-current .step-marker { border-color:var(--ink); background:var(--ink); color:var(--white); }
.is-complete .step-marker { border-color:var(--ink); background:transparent; font-size:0; }
.is-complete .step-marker::after { content:''; width:10px; height:6px; margin-top:-3px; border-left:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); transform:rotate(-45deg); }
.step-state { margin-left:auto; font-size:.6875rem; font-weight:400; color:var(--muted); white-space:nowrap; }
.step-panel { padding:0 0 28px 40px; }
.step-panel>p { color:var(--muted); font-size:.9375rem; }
.connection-checklist { margin:24px 0; padding-left:22px; }
.connection-checklist li { padding-left:6px; }
.connection-checklist li+li { margin-top:18px; }
.connection-checklist li::marker { color:var(--muted); font-size:.8125rem; }
.connection-checklist strong { display:block; font-size:.9375rem; font-weight:600; }
.connection-checklist p { margin-top:5px; color:var(--muted); font-size:.875rem; line-height:1.5; }
.connection-links { align-items:center; }
.connection-links .text-button { padding-inline:4px; font-size:.8125rem; }
.step-panel details { font-size:.875rem; }
.step-panel details>p { color:var(--muted); }
.step-next { display:flex; align-items:flex-start; flex-wrap:wrap; gap:12px 18px; margin-top:24px; }
.step-next>.small { flex-basis:100%; margin:0; max-width:46ch; font-size:.75rem; }
.step-next>.text-button { padding-inline:2px; font-size:.8125rem; }
.prompt-details textarea { min-height:300px; font-size:.8125rem; line-height:1.6; }
#copyPrompt { min-width:144px; }
.paste-label { display:block; margin:0 0 8px; font-size:1.0625rem; font-weight:600; }
#pasteForm>p { color:var(--muted); font-size:.9375rem; }
#pasteResults { min-height:240px; }
#pasteForm .button-row { align-items:center; }
.privacy-note { max-width:60ch; margin-top:24px; font-size:.75rem; }
.is-fast-track .step-toggle { min-height:66px; }
.is-fast-track .step-state { display:none; }
.is-fast-track .step-toggle::after { display:none; }
.connection-alternatives { margin:28px 0; padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--white); }
.connection-alternatives p { margin-top:12px; color:var(--muted); }
.flight-list { max-height:55svh; margin:26px 0; border-top:1px solid var(--line); overflow:auto; overscroll-behavior:contain; }
.flight-row { display:grid; grid-template-columns:90px minmax(0,1fr) 44px; align-items:center; gap:18px; padding:20px 0; border-bottom:1px solid var(--line); }
.flight-row time { align-self:start; padding-top:2px; font-size:.8125rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.route-cities,.route-codes { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; }
.route-cities { font-size:1rem; font-weight:600; line-height:1.35; }
.route-cities span:last-child,.route-codes span:last-child { text-align:right; }
.route-codes { margin-top:6px; color:var(--muted); font-size:.75rem; font-weight:400; letter-spacing:.025em; }
.flight-carrier { display:block; margin-top:8px; color:var(--muted); font-size:.6875rem; }
.flight-date-unknown { align-self:start; padding-top:2px; color:var(--muted); font-size:.75rem; }
.inferred-badge { display:inline-block; margin-top:10px; padding:4px 7px; border:1px solid var(--line); border-radius:5px; color:var(--ink); background:var(--wash); font-size:.6875rem; font-weight:600; }
.inferred-detail { display:block; max-width:45ch; margin-top:6px; color:var(--muted); font-size:.75rem; line-height:1.5; }
.inferred-removal-dialog { width:min(92vw,460px); }
.inferred-removal-dialog h2 { padding-top:0; font-size:1.5rem; }
.inferred-removal-route { color:var(--muted); font-size:.875rem; }
.inferred-removal-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.inferred-removal-actions button { flex:1 1 140px; }
.remove-flight { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:1.3rem; }
.remove-flight:hover { background:var(--wash); color:var(--ink); }
.invalid-rows { margin:24px 0; padding:20px; border:1px solid #d5a69f; border-radius:12px; background:#fffafa; }
.invalid-row { display:flex; align-items:center; gap:16px; padding:16px 0 0; }
.invalid-row p { flex:1; font-size:.875rem; line-height:1.5; }
.invalid-row .secondary { min-height:44px; padding:10px 13px; font-size:.8125rem; }
.route-gaps { margin:28px 0; }
.route-gaps>h2 { margin-bottom:16px; }
.gap-card { margin:14px 0; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--white); }
.gap-route { display:flex; justify-content:space-between; gap:20px; margin:0 0 12px; font-size:1rem; font-weight:600; }
.gap-route span:last-child { text-align:right; }
.gap-card>p { font-size:.875rem; color:var(--muted); }
.gap-card .button-row { gap:10px; margin-top:16px; }
.gap-card .button-row button { min-height:44px; padding:10px 14px; font-size:.8125rem; }
.gap-card .button-row .text-button { padding-inline:0; }
.gap-date-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.gap-date-form label { display:flex; flex-direction:column; gap:8px; color:var(--muted); font-size:.8125rem; }
.gap-date-form .secondary { min-height:48px; font-size:.8125rem; }
.studio { margin:16px auto 40px; }
.studio-heading { margin-bottom:28px; }
.studio-heading h1 { max-width:none; }
.studio-grid { display:grid; grid-template-columns:minmax(0,420px) minmax(0,1fr); gap:64px; align-items:start; }
.studio-preview { width:100%; max-width:350px; justify-self:center; }
.preview-controls { display:flex; align-items:center; gap:14px; margin-top:14px; }
.preview-controls button { min-height:44px; padding:10px 15px; font-size:.8125rem; }
.preview-controls input { width:100%; accent-color:var(--ink); }
.studio-actions { padding-top:12px; }
.studio-actions>.lede { margin:0 0 22px; font-size:1.25rem; color:var(--ink); }
.units-label { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; max-width:360px; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:.875rem; }
.units-label .select-control { flex:0 1 168px; width:168px; }
.studio-hint { max-width:40ch; font-size:.8125rem; }
.export-layout-options { margin:18px 0 22px; max-width:360px; font-size:.875rem; }
.export-layout-options summary { color:var(--muted); }
.export-layout-options p { margin:14px 0; }
.export-layout-options label { display:block; margin-bottom:8px; }
.export-layout-options .select-control { width:100%; }
.studio-actions>.primary { width:100%; margin-top:24px; }
.studio-actions>.text-button { display:block; margin-top:28px; font-size:.75rem; }
.export-progress { margin:24px 0; padding:20px; border-radius:12px; background:var(--wash); font-size:.875rem; }
.export-progress .small { margin-top:10px; font-size:.75rem; }
progress { display:block; width:100%; height:8px; margin-top:15px; border:0; border-radius:4px; overflow:hidden; accent-color:var(--ink); }
progress::-webkit-progress-bar { background:var(--line); }
progress::-webkit-progress-value { background:var(--ink); }
progress::-moz-progress-bar { background:var(--ink); }
.share-panel { display:flex; flex-direction:column; align-items:stretch; gap:14px; margin-top:24px; padding-top:26px; border-top:1px solid var(--line); }
.share-panel>p { font-size:.875rem; }
.share-panel .status { margin:0; }
.share-panel>#copyLink { align-self:flex-start; font-size:.8125rem; }
.share-panel .small { font-size:.75rem; }
@media(max-width:760px) {
  .flow { margin-top:6px; margin-bottom:32px; }
  .flow h1 { font-size:2rem; max-width:18ch; }
  .back { margin-bottom:16px; }
  .flow>.lede { margin:12px 0 22px; font-size:.9375rem; }
  .connected-shortcut { gap:12px; margin-bottom:22px; padding:16px; }
  .connected-shortcut strong { font-size:.9375rem; }
  .connected-shortcut small { font-size:.75rem; }
  fieldset { margin:22px 0; }
  legend { margin-bottom:10px; font-size:.875rem; }
  .email-choices .choice { min-height:68px; }
  .ai-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ai-choices .choice { min-height:68px; flex-direction:row; justify-content:flex-start; gap:10px; padding:14px; text-align:left; }
  .ai-choices .choice img { width:26px; height:26px; }
  .ai-choices .choice:last-child { grid-column:1/-1; }
  .choice-name { font-size:.8125rem; }
  .choice-name small { margin-top:3px; }
  .choice-check { top:9px; right:8px; }
  #pickerForm>.primary { width:100%; }
  .picker-divider { font-size:.8125rem; }
  .setup-steps { margin-top:24px; }
  .step-toggle { gap:10px; min-height:68px; font-size:.9375rem; }
  .step-panel { padding-left:0; padding-bottom:24px; }
  .step-panel>p,#pasteForm>p { font-size:.875rem; }
  .connection-checklist { margin:22px 0; padding-left:20px; }
  .connection-checklist strong { font-size:.875rem; }
  .connection-checklist p { font-size:.8125rem; }
  .connection-links { gap:8px 16px; }
  .connection-links .secondary { width:100%; }
  .step-next>.primary { width:100%; }
  .step-next>.secondary { flex:1; }
  .step-state { font-size:.625rem; }
  .step-marker { width:26px; height:26px; }
  .step-panel .button-row>.primary { flex:1; }
  .step-panel .button-row>.secondary { flex:1; }
  .step-panel .button-row>.text-button { font-size:.8125rem; }
  #pasteResults { min-height:225px; }
  .paste-label { font-size:1rem; }
  .flight-row { grid-template-columns:62px minmax(0,1fr) 44px; gap:10px; padding:17px 0; }
  .flight-row time { font-size:.75rem; }
  .route-cities { font-size:.875rem; gap:14px; }
  .route-codes { font-size:.6875rem; gap:14px; }
  .remove-flight { width:44px; min-height:44px; font-size:1.25rem; }
  .invalid-rows,.gap-card { padding:17px; }
  .gap-card .button-row { flex-direction:column; align-items:stretch; }
  .gap-card .button-row .text-button { align-self:flex-start; }
  .gap-date-form { flex-direction:column; align-items:stretch; }
  .invalid-row { gap:10px; align-items:flex-start; }
  .invalid-row p { font-size:.8125rem; }
  .studio-heading { margin-bottom:22px; }
  .studio-heading h1 { font-size:2rem; }
  .studio-grid { grid-template-columns:1fr; gap:24px; }
  .studio-preview { max-width:270px; }
  .studio-actions { width:100%; max-width:500px; margin:auto; padding-top:0; }
  .studio-actions>.lede { font-size:1rem; margin-bottom:18px; }
  .units-label { max-width:none; }
  .studio-actions>.primary { margin-top:20px; }
  .share-panel { margin-top:20px; padding-top:22px; }
  .connection-alternatives { padding:20px; }
}
@media(prefers-reduced-motion:reduce) {
  .step-panel { animation:none; transition:none; }
}


