:root {
    color-scheme: dark;
    --navy: #101c2e;
    --navy-soft: #29415e;
    --cherry: #ff9cad;
    --cherry-dark: #ffb4c0;
    --cherry-pale: #382331;
    --button-accent: #b83248;
    --button-accent-hover: #9e283e;
    --paper: #0b1220;
    --surface: #152133;
    --surface-soft: #1b2a40;
    --surface-raised: #253a54;
    --field-surface: #101b2c;
    --ink: #edf3fb;
    --muted: #aab9ce;
    --line: #344860;
    --line-strong: #5a728f;
    --focus: #8cc5ff;
    --green: #90dfb5;
    --green-pale: #18382e;
    --green-line: #345e4b;
    --amber: #f4cb87;
    --amber-pale: #382e20;
    --amber-line: #6b5739;
    --error-line: #805062;
    --partial: #c4beff;
    --partial-pale: #2c2a48;
    --radius: 22px;
    --shadow: 0 8px 30px rgb(0 0 0 / 18%);
}

* { box-sizing: border-box; }
html { scroll-padding-bottom: 24px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button, a { touch-action: manipulation; }
button { border: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: 23px; letter-spacing: -0.65px; }
h3 { font-size: 15px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { max-width: 100%; padding: 0; font-weight: 650; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--navy); background: #f4c5ca; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
    position: relative;
    background: var(--navy);
    color: white;
    border-bottom: 3px solid var(--cherry);
}
.site-header::after {
    content: "";
    position: absolute;
    inset: 0 0 0 55%;
    pointer-events: none;
    background: radial-gradient(ellipse at 85% -40%, rgb(219 74 94 / 15%), transparent 70%);
}
.header-inner, .page-shell { width: min(1440px, calc(100% - 80px)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 98px; }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-name { font-size: 25px; font-weight: 800; letter-spacing: 5px; line-height: 1.2; }
.brand-name > span { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 3.1px; font-weight: 550; }
.header-caption { display: flex; align-items: center; gap: 10px; color: #e0e6ee; font-size: 12px; letter-spacing: 0.6px; }
.status-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #db4a5e; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding-block: 48px 36px; }
.eyebrow { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; }
.page-intro > div:first-child { max-width: 650px; }
.page-intro .eyebrow { color: var(--cherry); }
h1 { margin-top: 12px; font-size: clamp(38px, 4.3vw, 61px); font-weight: 750; letter-spacing: -2.5px; line-height: 1.07; }
h1 > span { color: var(--cherry); }
.intro-description { max-width: 530px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.draft-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-bottom: 3px; }
.privacy-chip { display: flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 650; }
.privacy-chip small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.privacy-icon { position: relative; display: block; width: 20px; height: 24px; border: 1.6px solid #90999b; border-radius: 5px 5px 12px 12px; }
.privacy-icon::after { content: "✓"; position: absolute; inset: 0; color: var(--green); text-align: center; font-size: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(350px, 0.9fr); gap: 28px; align-items: start; }
.editor { display: grid; gap: 24px; min-width: 0; }
.panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.journey-section { min-width: 0; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; }
.section-heading > div { min-width: 0; }
.section-heading .eyebrow { margin-bottom: 5px; }
.step-number { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border: 1px solid var(--error-line); border-radius: 14px; color: var(--cherry); background: var(--cherry-pale); font-size: 13px; font-weight: 700; }
.count-badge { margin-left: auto; padding: 5px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
.section-description { margin: -3px 0 19px; color: var(--muted); font-size: 12px; }
.required-mark { color: var(--cherry); }
.section-footnote { margin-top: 12px; color: var(--muted); font-size: 11px; }
.card-list { display: grid; gap: 16px; min-width: 0; }
.passenger-card, .segment-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; }
.passenger-card { background: var(--surface-soft); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.card-title { min-width: 0; }
.card-title h3 { font-size: 14px; }
.card-title .card-subtitle { margin-top: 5px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.card-tools { display: flex; flex-shrink: 0; gap: 3px; }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    max-width: 100%;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 150ms, border-color 150ms, box-shadow 150ms;
}
.button-primary { color: white; background: var(--button-accent); }
.button-primary:hover:not(:disabled) { background: var(--button-accent-hover); box-shadow: 0 4px 12px rgb(184 50 72 / 15%); }
.button-navy { color: white; background: var(--navy-soft); border-color: var(--line-strong); }
.button-navy:hover:not(:disabled) { background: var(--surface-raised); }
.button-secondary { color: var(--ink); border-color: var(--line-strong); background: var(--surface-soft); }
.button-secondary:hover:not(:disabled) { background: var(--surface-raised); border-color: var(--focus); }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:hover:not(:disabled) { color: var(--ink); background: var(--surface-raised); }
.button-danger { color: white; background: var(--button-accent); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button:disabled[aria-busy="true"] { opacity: 0.85; cursor: progress; }
.button-wide { width: 100%; }
.button-add { width: 100%; margin-top: 16px; border-style: dashed; background: var(--surface-soft); }
.button-add > span { font-size: 19px; font-weight: 400; }
.button-icon { width: 44px; min-height: 44px; padding: 5px; color: var(--muted); background: transparent; font-size: 18px; }
.button-icon:hover:not(:disabled) { color: var(--ink); background: var(--surface-raised); }
.button-remove:hover:not(:disabled) { color: var(--cherry); background: var(--cherry-pale); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.button-spinner { display: none; width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 750ms linear infinite; }
[aria-busy="true"] > .button-spinner { display: inline-block; }
.button-arrow { margin-left: auto; font-size: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.optional { color: var(--muted); margin-left: 4px; font-size: 10px; font-weight: 400; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    background-color: var(--field-surface);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 150ms, box-shadow 150ms;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; font-size: 13px; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }
input[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]) { border-color: var(--cherry); background: var(--cherry-pale); }
input[type="date"], input[type="datetime-local"] { min-inline-size: 0; max-inline-size: 100%; }
input::-webkit-date-and-time-value { min-width: 0; text-align: left; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--cherry); cursor: pointer; }
select { padding-right: 25px; }
textarea { resize: vertical; min-height: 95px; }
.field-hint, .field-error { margin-top: 7px; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.field-hint { color: var(--muted); }
.field-error { color: var(--cherry-dark); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; font-size: 12px; }
.notice p { min-width: 0; }
.notice strong { display: block; margin-bottom: 2px; }
.notice-route { color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); }
.notice-symbol { display: grid; flex: 0 0 19px; width: 19px; height: 19px; margin-top: 2px; border: 1px solid #7a90a5; border-radius: 50%; place-items: center; font-size: 11px; font-weight: 750; }
.notice-warning { margin-bottom: 20px; color: var(--amber); background: var(--amber-pale); }
.lookup-panel { margin-block: 22px 26px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.lookup-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.provider-badge, .source-badge { display: inline-block; max-width: 100%; padding: 4px 8px; color: var(--muted); background: var(--surface-raised); border-radius: 6px; font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.provider-badge[data-tone="success"] { color: var(--green); background: var(--green-pale); }
.provider-badge[data-tone="warning"] { color: var(--amber); background: var(--amber-pale); }
.lookup-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 14px; margin-top: 18px; }
.lookup-fields > .button { grid-column: 1 / -1; }
.feedback { margin-top: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-soft); font-size: 12px; overflow-wrap: anywhere; white-space: pre-line; }
.feedback:empty { display: none; }
.page-shell > .feedback { margin: 0 0 20px; }
.feedback[data-tone="error"] { color: var(--cherry-dark); background: var(--cherry-pale); border-color: var(--error-line); }
.feedback[data-tone="success"] { color: var(--green); background: var(--green-pale); border-color: var(--green-line); }
.feedback[data-tone="warning"] { color: var(--amber); background: var(--amber-pale); border-color: var(--amber-line); }
.lookup-results { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.result-list { display: grid; gap: 10px; max-height: 450px; overflow-y: auto; margin-block: 13px 16px; padding: 4px; }
.result-option { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field-surface); cursor: pointer; }
.result-option > input { margin-top: 4px; }
.result-option > div { min-width: 0; }
.result-option:has(input:checked) { border-color: var(--cherry); background: var(--cherry-pale); box-shadow: inset 0 0 0 1px var(--cherry); }
.result-option strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.result-option p { margin-top: 5px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.itinerary-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.itinerary-heading > span { color: var(--muted); font-size: 10px; }
.empty-state { display: grid; justify-items: center; padding: 30px 18px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 13px; background: var(--surface-soft); }
.empty-flight { display: grid; width: 49px; height: 49px; place-items: center; margin-bottom: 12px; color: var(--cherry); background: var(--cherry-pale); border-radius: 50%; font-size: 25px; }
.empty-state strong { font-size: 13px; }
.empty-state p { max-width: 280px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.segment-card { position: relative; border-top: 3px solid var(--line-strong); }
.segment-card .source-badge { margin-top: 7px; }
.airport-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.airport-group { min-width: 0; padding: 15px; border-radius: 10px; background: var(--surface-soft); }
.airport-group h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; }
.airport-group h4::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--cherry); border-radius: 50%; }
.airport-group:last-child h4::before { background: var(--cherry); }
.airport-group .field-grid { grid-template-columns: minmax(0, 1fr); }
.timezone-hint { margin-top: 10px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.segment-details { margin-top: 18px; border-top: 1px solid var(--line); }
.segment-details summary { min-height: 48px; padding-block: 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.segment-details[open] summary { margin-bottom: 5px; }
.checked-baggage { min-width: 0; margin: 20px 0 0; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.checked-baggage legend { padding-inline: 6px; font-size: 13px; font-weight: 700; }
.baggage-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-size: 13px; font-weight: 650; }
.baggage-toggle input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; accent-color: var(--cherry); }
.checked-baggage .field-grid { margin-block: 10px; align-items: end; }
.checked-baggage input:disabled { background: var(--surface-raised); color: var(--muted); opacity: 1; cursor: not-allowed; }
.time-notice { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.time-notice > span { color: var(--cherry); font-size: 20px; line-height: 1; }

.payment-fieldset > legend { font-size: 13px; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.payment-choice { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 75px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: background 150ms, border-color 150ms; }
.payment-choice:hover { border-color: var(--line-strong); }
.payment-choice:has(input:checked) { border-color: var(--cherry); background: var(--cherry-pale); }
.payment-choice > span:last-child { min-width: 0; font-size: 13px; font-weight: 650; }
.payment-choice small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.method-mark { display: grid; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 7px; place-items: center; color: var(--muted); background: var(--field-surface); font-size: 10px; font-weight: 700; }
.payment-status-field { max-width: 290px; margin-block: 24px 20px; }
.notes-section { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.notes-section h3 { margin-bottom: 16px; }

.document-column { position: sticky; top: 22px; min-width: 0; }
.document-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); box-shadow: var(--shadow); }
.document-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 23px 23px 0; }
.document-heading h2 { font-size: 22px; }
.document-heading .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
.live-badge { display: flex; align-items: center; gap: 6px; padding: 5px 8px; color: var(--muted); background: var(--field-surface); border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.live-badge .status-dot { flex-basis: 5px; width: 5px; height: 5px; background: var(--green); }
.document-description { padding: 10px 23px 19px; color: var(--muted); font-size: 12px; }
.preview-sheet { max-height: min(50vh, 620px); padding: 23px; margin: 0 19px; overflow: auto; background: var(--field-surface); border: 1px solid var(--line); border-radius: 4px 4px 12px 12px; box-shadow: 0 4px 10px rgb(0 0 0 / 12%); scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--field-surface); }
.preview-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 2px solid var(--line-strong); }
.preview-brand > img { flex: 0 0 42px; }
.preview-brand > div { min-width: 0; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.preview-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: 0.3px; }
.preview-counts { display: inline-block; margin-top: 16px; padding: 5px 9px; border-radius: 5px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.preview-route-summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.preview-route-summary > div { min-width: 0; }
.preview-route-summary > div:last-child { text-align: right; }
.route-summary-label { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; }
.preview-route-summary strong { display: block; margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.route-summary-arrow { text-align: center; color: var(--cherry); font-size: 18px; }
.preview-section { margin-top: 21px; }
.preview-section > h3 { margin-bottom: 11px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; }
.preview-passengers { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.preview-passengers li { font-size: 12px; overflow-wrap: anywhere; }
.preview-passengers strong { font-size: 12px; font-weight: 650; }
.preview-passengers small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: pre-line; }
.preview-segments { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.preview-segment { padding: 14px 0 15px; border-block: 1px solid var(--line); }
.preview-segment + .preview-segment { border-top: 0; padding-top: 0; }
.preview-segment-heading { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; overflow-wrap: anywhere; }
.preview-leg-number { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border-radius: 5px; color: var(--cherry); background: var(--cherry-pale); font-size: 9px; font-weight: 750; }
.preview-segment-heading strong { padding-top: 2px; min-width: 0; font-weight: 650; }
.preview-route { display: grid; grid-template-columns: minmax(0, 1fr) 27px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 13px; }
.preview-airport { min-width: 0; }
.preview-airport:last-child { text-align: right; }
.airport-code { display: block; font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -0.7px; }
.airport-name { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.airport-time { display: block; margin-top: 8px; font-size: 12px; font-weight: 650; }
.airport-date, .airport-zone { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.route-arrow { padding-top: 2px; text-align: center; color: #8595a5; font-size: 21px; }
.preview-segment-detail { margin-top: 8px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; white-space: pre-line; }
.preview-placeholder { color: var(--muted); font-size: 11px; }
.preview-payment { margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.payment-status { padding: 4px 8px; border-radius: 5px; color: var(--amber); background: var(--amber-pale); font-size: 9px; font-weight: 650; }
.payment-status[data-status="pago"] { color: var(--green); background: var(--green-pale); }
.payment-status[data-status="parcial"] { color: var(--partial); background: var(--partial-pale); }
.preview-note { margin-top: 9px; color: var(--muted); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-disclaimer { padding-top: 15px; margin-top: 21px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 9px; }
.document-actions { padding: 15px 19px 20px; }
.readiness-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.readiness-row p { font-size: 11px; color: var(--muted); }
.readiness-row p[data-ready="true"] { color: var(--green); font-weight: 650; }
.readiness-row .button { flex: 0 0 auto; padding-inline: 9px; font-size: 10px; }
.validation-list { max-height: 210px; overflow-y: auto; padding: 8px 12px; margin: 0 0 14px; color: var(--cherry-dark); background: var(--cherry-pale); border: 1px solid var(--error-line); border-radius: 9px; list-style: none; }
.validation-list a { display: flex; align-items: center; min-height: 44px; font-size: 11px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.document-actions > .button-primary { min-height: 53px; padding-inline: 18px; font-size: 14px; }
.document-footnote { margin-top: 11px; color: var(--muted); text-align: center; font-size: 10px; }
.pdf-result { margin-top: 16px; padding: 16px; border: 1px solid var(--green-line); border-radius: 12px; background: var(--green-pale); }
.pdf-result-heading { display: flex; align-items: center; gap: 8px; }
.pdf-result-heading h3 { color: var(--green); font-size: 14px; }
.success-mark { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--green-pale); background: var(--green); }
.pdf-result > p { margin-top: 8px; color: var(--muted); font-size: 11px; }
.pdf-result-buttons { display: grid; gap: 8px; margin-top: 14px; }
.care-note { display: flex; gap: 11px; padding: 18px 16px; color: var(--muted); font-size: 11px; }
.care-note > span { color: var(--cherry); font-size: 20px; }
.care-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 550; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.page-footer > span { flex-shrink: 0; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.confirmation-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 20px 24px; border: 1px solid var(--error-line); border-radius: 14px; background: var(--cherry-pale); }
.confirmation-panel h2 { margin-bottom: 5px; color: var(--cherry-dark); font-size: 17px; }
.confirmation-panel p { color: var(--muted); font-size: 12px; }
.confirmation-panel .button-row { flex-shrink: 0; }
.mobile-tabbar { display: none; }

@media (min-width: 1350px) {
    .lookup-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .lookup-fields > .button { grid-column: auto; }
}

@media (min-width: 981px) and (max-width: 1240px) {
    .header-inner, .page-shell { width: calc(100% - 48px); }
    .workspace { grid-template-columns: minmax(0, 1fr) 355px; gap: 20px; }
    .panel { padding: 22px; }
    .passenger-card, .segment-card, .lookup-panel { padding: 16px; }
    .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-three > .field:last-child { grid-column: 1 / -1; }
    .airport-fields { grid-template-columns: minmax(0, 1fr); }
    .airport-group .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .airport-group .field:last-child { grid-column: 1 / -1; }
    .payment-choice { gap: 8px; padding: 11px; }
    .payment-choice .method-mark { display: none; }
}

@media (max-width: 980px) {
    html { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .header-inner, .page-shell { width: calc(100% - 48px); }
    .page-shell { max-width: 740px; }
    .page-intro { padding-block: 34px 28px; }
    .workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .document-column { position: static; }
    .preview-sheet { max-height: none; overflow: visible; padding: 26px; }
    .preview-route { grid-template-columns: minmax(0, 1fr) 45px minmax(0, 1fr); }
    .preview-brand > div { font-size: 12px; }
    .airport-code { font-size: 29px; }
    .preview-section > h3, .preview-disclaimer { font-size: 10px; }
    .preview-airport .airport-name, .airport-date, .airport-zone { font-size: 11px; }
    .preview-segment-heading, .preview-segment-detail { font-size: 12px; }
    .preview-passengers strong { font-size: 13px; }
    .preview-passengers small { font-size: 11px; }
    .document-actions { padding: 20px; }
    .document-heading { padding-top: 25px; }
    .document-footnote { font-size: 11px; }
    .readiness-row p { font-size: 12px; }
    .readiness-row .button { font-size: 11px; }
    .pdf-result { padding: 20px; }
    .pdf-result-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pdf-result-buttons > a { grid-column: 1 / -1; }
    .confirmation-panel { flex-wrap: wrap; }
    .mobile-tabbar {
        position: fixed;
        z-index: 50;
        bottom: 0;
        left: 0;
        right: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
        padding: 7px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
        border-top: 1px solid var(--line-strong);
        background: var(--surface);
        box-shadow: 0 -6px 25px rgb(0 0 0 / 25%);
    }
    .mobile-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 59px; padding: 6px 2px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.3; }
    .mobile-tab.is-active { color: var(--cherry); background: var(--cherry-pale); }
    .mobile-tab.is-active::before { content: ""; position: absolute; top: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--cherry); }
    .nav-icon { position: relative; display: block; width: 24px; height: 24px; }
    .icon-people::before, .icon-people > span::before { content: ""; position: absolute; top: 2px; left: 5px; width: 8px; height: 8px; border: 1.7px solid currentColor; border-radius: 50%; }
    .icon-people::after, .icon-people > span::after { content: ""; position: absolute; bottom: 2px; left: 2px; width: 14px; height: 9px; border: 1.7px solid currentColor; border-radius: 8px 8px 3px 3px; }
    .icon-people > span::before { left: 15px; top: 4px; width: 6px; height: 6px; }
    .icon-people > span::after { left: 17px; bottom: 3px; width: 6px; height: 7px; border-left: 0; border-radius: 0 7px 2px 0; }
    .icon-plane > span { display: block; width: 24px; height: 24px; background: currentColor; clip-path: polygon(45% 4%, 55% 4%, 60% 37%, 94% 63%, 94% 72%, 59% 59%, 58% 83%, 72% 93%, 72% 100%, 50% 93%, 28% 100%, 28% 93%, 42% 83%, 41% 59%, 6% 72%, 6% 63%, 40% 37%); transform: rotate(30deg) scale(0.9); }
    .icon-wallet::before { content: ""; position: absolute; inset: 4px 1px 3px; border: 1.7px solid currentColor; border-radius: 4px; }
    .icon-wallet::after { content: ""; position: absolute; top: 10px; right: 1px; width: 8px; height: 6px; border: 1.5px solid currentColor; border-radius: 2px; }
    .icon-wallet > span { position: absolute; left: 5px; top: 1px; width: 13px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; transform: rotate(-8deg); }
    .icon-document::before { content: ""; position: absolute; inset: 1px 4px; border: 1.7px solid currentColor; border-radius: 3px; }
    .icon-document::after { content: ""; position: absolute; top: 7px; left: 8px; width: 8px; height: 1.6px; background: currentColor; box-shadow: 0 4px currentColor, 0 8px currentColor; }
}

@media (max-width: 620px) {
    .header-inner, .page-shell { width: calc(100% - 32px); }
    .header-inner { min-height: 79px; gap: 12px; }
    .brand { gap: 8px; }
    .brand img { width: 47px; height: 47px; }
    .brand-name { font-size: 19px; letter-spacing: 3.5px; }
    .brand-name > span { font-size: 8px; letter-spacing: 2.1px; }
    .header-caption { max-width: 95px; gap: 6px; font-size: 10px; line-height: 1.4; }
    .page-intro { display: block; padding-top: 28px; }
    .page-intro .eyebrow { max-width: 260px; font-size: 9px; letter-spacing: 1.2px; }
    h1 { font-size: 43px; letter-spacing: -1.7px; }
    .intro-description { margin-top: 14px; font-size: 13px; line-height: 1.7; }
    .draft-tools { flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); }
    .privacy-chip { gap: 8px; font-size: 10px; }
    .privacy-chip small { font-size: 9px; }
    .privacy-icon { flex: 0 0 17px; width: 17px; height: 21px; }
    .draft-tools .button { padding-inline: 6px; font-size: 10px; }
    .panel { padding: 20px 16px; border-radius: 17px; }
    .editor { gap: 18px; }
    .section-heading { gap: 10px; margin-bottom: 18px; }
    .section-heading .eyebrow { font-size: 9px; letter-spacing: 1px; }
    .section-heading h2 { font-size: 20px; }
    .step-number { flex-basis: 35px; width: 35px; height: 39px; border-radius: 11px; font-size: 11px; }
    .count-badge { padding: 4px 6px; font-size: 10px; }
    .passenger-card, .segment-card { padding: 15px 12px; }
    .passenger-card .field-grid, .grid-three { grid-template-columns: minmax(0, 1fr); }
    .card-heading { gap: 5px; }
    .card-tools { gap: 0; }
    .card-title h3 { font-size: 13px; }
    .card-title .card-subtitle { font-size: 10px; }
    .airport-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .airport-group { padding: 14px 12px; }
    .lookup-panel { padding: 16px 12px; }
    .lookup-fields { gap: 10px; }
    .lookup-fields input { padding-inline: 8px; }
    .notice { gap: 10px; padding: 12px; font-size: 11px; }
    .payment-options { gap: 9px; }
    .payment-choice { min-height: 69px; padding: 11px; gap: 9px; }
    .payment-choice .method-mark { display: none; }
    .payment-choice > span:last-child { font-size: 12px; }
    .payment-choice small { font-size: 9px; }
    .document-panel { border-radius: 17px; }
    .document-heading { padding: 22px 18px 0; }
    .document-heading h2 { font-size: 21px; }
    .document-description { padding-inline: 18px; }
    .preview-sheet { padding: 20px 16px; margin-inline: 14px; }
    .preview-brand > div { font-size: 10px; letter-spacing: 0.7px; }
    .preview-route { grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr); gap: 7px; }
    .preview-segment-heading, .preview-segment-detail { font-size: 11px; }
    .document-actions { padding: 16px 14px 18px; }
    .pdf-result-buttons { grid-template-columns: minmax(0, 1fr); }
    .pdf-result { padding: 15px; }
    .readiness-row p { font-size: 11px; }
    .page-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 22px 8px; margin-top: 0; }
    .confirmation-panel { padding: 18px; }
    .confirmation-panel .button-row { flex-shrink: 1; }
}

@media (max-width: 380px) {
    .header-inner, .page-shell { width: calc(100% - 24px); }
    .header-caption { max-width: 78px; font-size: 9px; }
    h1 { font-size: 38px; }
    .panel { padding: 18px 12px; }
    .section-heading { gap: 8px; }
    .section-heading h2 { font-size: 18px; }
    .section-heading .eyebrow { font-size: 8px; letter-spacing: 0.7px; }
    .count-badge { padding-inline: 4px; font-size: 9px; }
    .lookup-fields, .segment-details .field-grid { grid-template-columns: minmax(0, 1fr); }
    .payment-choice { padding: 10px 8px; gap: 7px; }
    .payment-choice small { font-size: 8px; }
    .mobile-tab { font-size: 10px; }
    .document-heading { gap: 6px; }
    .document-heading .eyebrow { font-size: 8px; }
    .preview-brand > div { font-size: 9px; }
    .preview-brand small { font-size: 9px; }
}

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

@media (forced-colors: active) {
    .button, .mobile-tab.is-active, .payment-choice, .result-option { border: 1px solid ButtonText; }
    .button:disabled { color: GrayText; }
    .mobile-tab.is-active { outline: 2px solid Highlight; outline-offset: -3px; }
    .icon-plane > span { forced-color-adjust: none; background: ButtonText; }
}

@media print {
    :root {
        color-scheme: light;
        --ink: #1d2e43;
        --muted: #626b76;
        --paper: #ffffff;
        --surface: #ffffff;
        --surface-soft: #f1f4f6;
        --surface-raised: #eaf0f3;
        --field-surface: #ffffff;
        --line: #dfe3e7;
        --line-strong: #afbeca;
        --cherry: #b83248;
        --cherry-pale: #fff0f1;
        --green: #216449;
        --green-pale: #edf7f0;
        --amber: #805217;
        --amber-pale: #fff7e7;
        --partial: #4c528d;
        --partial-pale: #f0f0fc;
    }
    .site-header, .page-intro, .editor, .mobile-tabbar, .document-actions, .care-note, .page-footer, .confirmation-panel, .skip-link, #app-feedback { display: none !important; }
    body { padding: 0; background: white; }
    .page-shell { width: 100%; }
    .workspace { display: block; }
    .document-column { position: static; }
    .document-panel { border: 0; box-shadow: none; background: white; }
    .preview-sheet { max-height: none; overflow: visible; border: 0; box-shadow: none; }
    .preview-segment { break-inside: avoid; }
}

/* Página de acesso (login por senha) */
.login-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    background:
        radial-gradient(ellipse at 12% -10%, rgb(184 50 72 / 20%), transparent 55%),
        radial-gradient(ellipse at 100% 0%, rgb(36 61 87 / 40%), transparent 45%),
        var(--navy);
}
.login-shell {
    width: min(420px, calc(100% - 40px));
    margin: auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.login-card {
    width: 100%;
    padding: 34px 30px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgb(9 17 28 / 35%);
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--ink);
}
.login-brand .brand-name { font-size: 20px; letter-spacing: 4px; }
.login-brand .brand-name > span { font-size: 9px; letter-spacing: 2.6px; }
.login-card h1 { font-size: 24px; letter-spacing: -0.4px; color: var(--ink); }
.login-intro { margin-top: 8px; color: var(--muted); }
.login-form { margin-top: 22px; }
.login-form .button { margin-top: 18px; }
.login-error {
    margin-top: 18px;
    padding: 12px 14px;
    color: var(--cherry-dark);
    background: var(--cherry-pale);
    border: 1px solid var(--error-line);
    border-radius: 12px;
    font-weight: 600;
}
.login-footnote { color: rgb(255 255 255 / 72%); font-size: 12px; letter-spacing: 0.4px; }