:root {
  --ink: #10264f;
  --ink-2: #1d3768;
  --paper: #f8f4e9;
  --white: #fffdf7;
  --sky: #dce8ec;
  --yellow: #f4b942;
  --orange: #ed6a3a;
  --muted: #6e7888;
  --line: rgba(16, 38, 79, .14);
  --shadow: 0 24px 70px rgba(16, 38, 79, .14);
  --display: "Barlow Condensed", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
form { margin: 0; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.overline { display: block; margin-bottom: 12px; color: var(--orange); font: 800 .83rem/1 var(--body); letter-spacing: .16em; }

.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 600 1.3rem/1 var(--display); letter-spacing: .08em; }
.brand strong { font-weight: 900; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--paper); background: var(--ink); border-radius: 50%; transform: rotate(-12deg); }
.nav-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.button { border: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border-radius: 3px; font-weight: 700; cursor: pointer; transition: transform .18s, background .18s, opacity .18s; }
.button:hover { transform: translateY(-2px); }
.button:disabled, .button.is-disabled { opacity: .42; pointer-events: none; box-shadow: none; cursor: not-allowed; }
.button-primary { color: var(--ink); background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.button-dark { color: var(--white); background: var(--ink); }
.button-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button-ghost.is-current { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-large { min-height: 56px; padding-inline: 27px; }
.button-small { min-height: 36px; padding-inline: 13px; font-size: .82rem; }
.button-block { width: 100%; }
.icon-button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.text-button { padding: 4px; border: 0; color: var(--orange); background: transparent; font-weight: 700; cursor: pointer; }

.home-main { min-height: 680px; padding: 70px 0 100px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 40px; }
.home-copy { position: relative; z-index: 2; }
.home-copy h1, .ticket-intro h1, .dashboard-header h1, .auth-copy h1, .error-shell h1 { margin: 0; font: 900 clamp(4rem, 7vw, 7rem)/.82 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.home-copy h1 em { color: var(--orange); font-style: normal; }
.home-copy p { max-width: 480px; margin: 28px 0 32px; color: var(--muted); font-size: 1.05rem; }
.demo-wrap { position: relative; transform: rotate(2deg); }
.boarding-pass { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(250px, .68fr); color: var(--ink); background: var(--white); border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; }
.pass-main { position: relative; min-width: 0; padding: 42px; overflow: hidden; background-color: var(--white); background-image: radial-gradient(circle at 15% 20%, rgba(16, 38, 79, .05) 0 1px, transparent 1.5px); background-size: 8px 8px; }
.pass-main > *:not(.pass-map) { position: relative; z-index: 1; }
.pass-map { position: absolute; inset: 10% 1% 6%; opacity: .12; background: url('/images/world-map.svg') center/contain no-repeat; }
.pass-top { display: flex; justify-content: space-between; gap: 20px; font: 900 1.45rem/1 var(--display); letter-spacing: .035em; }
.airline { display: inline-flex; gap: 8px; }
.route { margin: 25px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; text-align: center; }
.route > div { min-width: 0; }
.route small, .pass-meta small, .stub-flight small { display: block; font: 600 .75rem/1 var(--body); letter-spacing: .08em; }
.route strong { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline: auto; font: 900 clamp(2.6rem, 4vw, 4.2rem)/1 var(--display); }
.route time { display: block; margin-top: 5px; font: 700 1.05rem/1 var(--body); }
.route-center { min-width: 145px; display: grid; gap: 6px; }
.route-center b { color: var(--ink); font: 800 .86rem/1 var(--display); letter-spacing: .035em; }
.route-center small { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.route-plane { padding: 0 20px; color: var(--orange); font-size: 3.7rem; line-height: 1; transform: rotate(3deg); }
.stopover-strip { margin: 0 0 13px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
.stopover-title { color: var(--orange); font: 900 .78rem/1 var(--body); letter-spacing: .14em; }
.stopover-line { position: relative; display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.stopover-line::before { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; height: 2px; background: var(--ink); opacity: .25; }
.stopover-point { position: relative; min-width: 52px; display: grid; justify-items: center; text-align: center; }
.stopover-point i { position: relative; z-index: 1; width: 11px; height: 11px; background: var(--orange); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px var(--orange); }
.stopover-point b { margin-top: 6px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 .72rem/1 var(--display); text-transform: uppercase; }
.stopover-point small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.stopover-end i { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.continuation-message { grid-column: 2; margin: 5px 0 0; color: var(--orange); font: 800 .7rem/1.2 var(--body); text-align: center; }
.pass-rule { height: 3px; background: var(--ink); }
.pass-meta { padding-top: 16px; display: grid; grid-template-columns: 1.55fr 1.2fr .8fr .7fr .7fr; gap: 16px; }
.pass-meta b { display: block; margin-top: 6px; font: 800 1.28rem/1 var(--display); text-transform: uppercase; }
.pass-stub { position: relative; padding: 25px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; color: var(--white); background: var(--ink); }
.pass-stub::before { content: ""; position: absolute; left: -11px; top: 0; bottom: 0; width: 22px; background: radial-gradient(circle at center, var(--paper) 0 9px, transparent 10px) center -11px/22px 44px repeat-y; }
.stub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seat-pill { padding: 7px 10px; color: var(--ink); background: var(--white); border-radius: 30px; font-size: .68rem; white-space: nowrap; }
.seat-pill b { margin-left: 3px; font: 900 1.15rem/1 var(--display); }
.pass-stub > strong { max-width: 240px; overflow-wrap: anywhere; font: 900 clamp(1.8rem, 2.5vw, 2.65rem)/.88 var(--display); text-transform: uppercase; }
.stub-label { font: 700 .75rem/1 var(--body); letter-spacing: .14em; }
.fake-barcode { height: 75px; background: repeating-linear-gradient(90deg, var(--white) 0 3px, transparent 3px 7px, var(--white) 7px 9px, transparent 9px 15px); }
.stub-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; font: 900 1.22rem/1 var(--display); }
.stub-route b:last-child { text-align: right; }
.stub-route span { color: var(--yellow); }
.stub-barcode { height: 28px; }
.stub-scan-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.stub-scan-copy { display: grid; align-content: end; gap: 3px; }
.stub-scan-copy small { color: #aebbd0; font-size: .62rem; letter-spacing: .12em; }
.stub-scan-copy b { font: 800 1rem/1 var(--display); }
.stub-scan-copy span { color: #aebbd0; font-size: .62rem; }
.floating-tag { position: absolute; padding: 15px 20px; color: var(--white); background: var(--orange); box-shadow: 6px 6px 0 var(--ink); font-size: .7rem; letter-spacing: .11em; transform: rotate(-5deg); }
.floating-tag strong { font: 900 1.6rem/1 var(--display); }
.tag-one { top: -45px; right: 30px; }
.tag-two { bottom: -45px; left: 70px; background: var(--yellow); color: var(--ink); transform: rotate(4deg); }
.manifesto { padding: 80px 0; color: var(--white); background: var(--ink); }
.manifesto-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 25px; align-items: start; }
.manifesto-grid > span { color: var(--yellow); font: 900 2rem/1 var(--display); }
.manifesto h2 { margin: 0 0 10px; font: 800 2rem/1 var(--display); text-transform: uppercase; }
.manifesto p { margin: 0; color: #b9c5d8; }
.footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; }

.ticket-public { padding: 60px 0 90px; }
.ticket-intro { margin-bottom: 40px; }
.ticket-intro h1 { font-size: clamp(3rem, 7vw, 6rem); }
.ticket-intro p { margin: 18px 0 0; color: var(--muted); font-size: 1.1rem; }
.ticket-actions-public { margin-top: 28px; }
.boarding-pass-full { min-height: 405px; }
.boarding-pass-full .pass-main { padding: clamp(28px, 3vw, 39px); }
.boarding-pass-full .pass-stub { padding: 25px 24px; }
.stub-flight { display: grid; grid-template-columns: 1.25fr .8fr .7fr; gap: 14px; }
.stub-flight b { display: block; margin-top: 5px; font: 800 1.12rem/1 var(--display); }
.ticket-qr { width: 92px; max-width: 100%; padding: 4px; background: white; }
.section-heading h2 { margin: 0; font: 900 3.2rem/.95 var(--display); text-transform: uppercase; }
.ticket-note-panel { margin-top: 35px; padding: 24px 28px; background: rgba(255,255,255,.45); border-left: 4px solid var(--orange); }
.ticket-note-panel .overline { margin-bottom: 8px; }
.ticket-note-panel p { margin: 0; color: var(--muted); white-space: pre-line; }
.rsvp-panel { margin-top: 35px; padding: clamp(24px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(16,38,79,.07); }
.rsvp-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.rsvp-heading h2 { margin: 0; font: 900 clamp(2.5rem, 5vw, 4.2rem)/.9 var(--display); text-transform: uppercase; }
.rsvp-heading p { max-width: 390px; margin: 0; color: var(--muted); }
.rsvp-form { margin-top: 30px; display: grid; gap: 24px; }
.post-response-info { margin-top: 26px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; color: var(--white); background: var(--ink); border: 5px solid var(--yellow); box-shadow: 8px 8px 0 var(--orange); }
.post-response-info span { display: block; margin-bottom: 7px; color: var(--yellow); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.post-response-info strong { display: block; font: 900 clamp(2rem, 4vw, 3.3rem)/.9 var(--display); text-transform: uppercase; }
.post-response-info p { max-width: 620px; margin: 12px 0 0; color: #d6deeb; }
.post-response-button { min-height: 68px; padding-inline: 28px; color: var(--ink); background: var(--yellow); box-shadow: 5px 5px 0 var(--white); font-size: 1rem; text-align: center; }
.post-response-button b { font-size: 1.5rem; }
.rsvp-presence { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; }
.rsvp-presence legend { margin-bottom: 8px; font-size: .82rem; font-weight: 700; }
.rsvp-presence label { position: relative; display: block; }
.rsvp-presence input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-presence span { min-height: 55px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); cursor: pointer; transition: .18s; }
.rsvp-presence input:checked + span { color: var(--white); background: var(--ink); border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--yellow); }
.meal-fields { padding: 22px; display: grid; grid-template-columns: 1fr; gap: 16px; background: #fff3d6; border: 1px solid rgba(244,185,66,.65); transition: opacity .18s; }
.meal-fields.is-disabled { opacity: .42; }
.meal-deadline-note { margin: 0; color: #8d3021; font-size: .78rem; }
.anecdote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.anecdote-fields label:first-child { grid-row: span 2; }
.anecdote-fields small, .field-help { color: var(--muted); font-size: .72rem; }
.field-help { margin: 0; }
.anecdote-preview { padding: 12px; display: flex; align-items: center; gap: 16px; background: var(--sky); }
.anecdote-preview img { width: 90px; height: 70px; object-fit: cover; }
.anecdote-preview label { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.anecdote-preview input { width: auto; }
.form-error { margin: 0; padding: 12px 14px; color: #8d3021; background: #fee5d7; }

.auth-shell { min-height: calc(100vh - 193px); display: grid; grid-template-columns: 1fr 460px; align-items: center; gap: 90px; padding-block: 70px; }
.auth-copy h1 { font-size: clamp(3.5rem, 7vw, 6.5rem); }
.auth-copy p { max-width: 500px; color: var(--muted); }
.panel { padding: 38px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card { display: grid; gap: 22px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: .82rem; font-weight: 700; }
input, textarea, select { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 2px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,106,58,.12); }
.alert, .notice { padding: 13px 16px; color: #8d3021; background: #fee5d7; border-left: 4px solid var(--orange); }

.dashboard-main { padding: 55px 0 100px; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.dashboard-header-actions { display: flex; align-items: center; gap: 12px; }
.dashboard-header h1 { font-size: clamp(3.3rem, 7vw, 6rem); }
.settings-first-panel { margin-top: 50px; }
.notice { margin-top: 28px; color: #305a42; background: #e2f1e6; border-color: #4b8e65; }
.notice span { margin-right: 10px; font-weight: 800; }
.stat-row { margin: 50px 0 25px; display: grid; grid-template-columns: repeat(3, 1fr); border: solid var(--line); border-width: 1px 0; }
.stat-row article { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-right: 1px solid var(--line); }
.stat-row article:last-child { border-right: 0; }
.stat-row small { color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.stat-row strong { font: 900 3rem/1 var(--display); }
.response-summary { margin-bottom: 70px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.response-summary article { min-width: 0; padding: 18px; display: grid; align-content: center; background: var(--white); }
.response-summary small { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.response-summary strong { font: 900 2.5rem/1 var(--display); }
.response-summary span { color: var(--muted); font-size: .7rem; }
.response-summary .meal-total { background: #fff3d6; }
.section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading > span { color: var(--muted); }
.aircraft-panel, .flight-settings-panel, .info-page-panel { margin-bottom: 45px; padding: 30px; border: 1px solid var(--line); }
.aircraft-panel { color: var(--white); background: var(--ink); overflow: hidden; }
.aircraft-panel .section-heading > span { color: #bdc8d9; }
.aircraft-facts { margin: -4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.aircraft-facts span { padding: 7px 10px; color: #d5ddeb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .7rem; letter-spacing: .04em; }
.aircraft-facts b { color: var(--yellow); }
.cabin-scroll { min-height: 220px; padding: 28px 20px; display: flex; align-items: center; overflow-x: auto; color: var(--ink); background: var(--white); border-radius: 110px 34px 34px 110px; }
.cabin-nose { width: 90px; flex: 0 0 90px; display: grid; justify-items: center; color: var(--orange); }
.cabin-nose span, .cabin-tail span { font-size: .56rem; font-weight: 900; letter-spacing: .12em; writing-mode: vertical-rl; }
.cabin-nose b { font-size: 2.6rem; transform: rotate(-45deg); }
.cabin-grid { min-width: 920px; padding: 0 14px; display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; border-inline: 2px solid var(--line); }
.cabin-column { display: grid; grid-template-rows: 30px 30px 24px 30px 30px 30px; gap: 3px; text-align: center; }
.cabin-column small { display: grid; place-items: center; color: var(--muted); font: 800 .58rem/1 var(--body); }
.cabin-seat { display: grid; place-items: center; color: var(--ink); background: var(--sky); border: 1px solid rgba(16,38,79,.16); border-radius: 7px 7px 3px 3px; font-size: .66rem; cursor: help; }
.cabin-seat.is-window { box-shadow: inset 0 3px 0 var(--yellow); }
.cabin-seat.is-occupied { color: var(--white); background: var(--orange); border-color: var(--orange); box-shadow: none; }
.cabin-tail { width: 54px; flex: 0 0 54px; display: grid; place-items: center; color: var(--muted); }
.cabin-legend { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: #bdc8d9; font-size: .72rem; }
.cabin-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cabin-legend i { width: 13px; height: 13px; background: var(--sky); border-radius: 3px; }
.cabin-legend i.occupied { background: var(--orange); }
.radio-strip { margin: 22px -30px -30px; padding: 20px 30px; display: grid; grid-template-columns: .65fr 1fr 2fr .45fr; gap: 22px; color: var(--ink); background: var(--yellow); }
.radio-strip small, .radio-strip b { display: block; }
.radio-strip small { font-size: .55rem; font-weight: 800; letter-spacing: .11em; }
.radio-strip b { margin-top: 5px; font: 900 1.15rem/1 var(--display); }
.flight-settings-panel { background: var(--white); }
.info-page-panel { background: #fff3d6; border-color: rgba(244,185,66,.65); }
.info-page-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-page-submit { display: flex; justify-content: flex-end; }
.flight-settings-form { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); align-items: end; gap: 12px; }
.flight-location { min-width: 0; }
.flight-continuation { grid-column: span 2; }
.flight-settings-form > .button { min-height: 48px; }
.stopover-admin { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.stopover-admin-title { margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.stopover-admin-title strong { font: 800 1.45rem/1 var(--display); text-transform: uppercase; }
.stopover-admin-row { margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.stopover-admin-row > form:first-child, .stopover-add-form { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; align-items: center; }
.stopover-add-form { margin-top: 14px; }
.ticket-list { display: grid; gap: 18px; }
.admin-ticket { padding: 0 26px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(16,38,79,.05); }
.admin-ticket-head { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ticket-identity { display: flex; align-items: center; gap: 18px; }
.ticket-identity h3 { margin: 0; font: 800 1.75rem/1 var(--display); text-transform: uppercase; }
.ticket-identity p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.flight-chip { padding: 10px 12px; color: var(--white); background: var(--ink); font: 800 1rem/1 var(--display); letter-spacing: .06em; }
.ticket-actions { display: flex; gap: 10px; }
.response-status { font-weight: 800; }
.response-yes { color: #34734d; }
.response-no { color: #9b3a2a; }
.response-pending { color: var(--orange); }
.ticket-edit { padding: 0 0 26px; border-top: 1px solid var(--line); }
.ticket-edit .form-grid { margin-top: 24px; }
.ticket-edit-actions { display: flex; justify-content: flex-end; }
.admin-anecdote { padding: 18px 0 24px; border-top: 1px solid var(--line); }
.admin-anecdote .overline { margin-bottom: 6px; }
.admin-anecdote p { max-width: 760px; margin: 0; color: var(--muted); white-space: pre-line; }
.admin-anecdote img { width: 120px; height: 85px; margin-top: 12px; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 3px 12px rgba(16,38,79,.16); }
.empty-state { padding: 70px 25px; text-align: center; border: 1px dashed var(--line); }
.empty-state > span { display: block; color: var(--orange); font-size: 3rem; }
.empty-state h3 { margin: 10px 0 5px; font: 800 2rem/1 var(--display); text-transform: uppercase; }
.empty-state p { margin: 0 0 25px; color: var(--muted); }

.create-dialog { width: min(780px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; color: var(--ink); background: var(--paper); border: 0; box-shadow: 0 30px 100px rgba(4,16,39,.45); }
.create-dialog::backdrop { background: rgba(4,16,39,.72); backdrop-filter: blur(4px); }
.create-form { padding: 35px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; }
.dialog-head h2 { margin: 0; font: 900 3rem/1 var(--display); text-transform: uppercase; }
.form-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.span-2 { grid-column: span 2; }
.dialog-actions { margin-top: 26px; display: flex; justify-content: flex-end; gap: 12px; }

.error-shell { min-height: calc(100vh - 193px); padding: 90px 0; text-align: center; }
.error-code { display: block; color: var(--yellow); font: 900 9rem/.8 var(--display); text-shadow: 6px 6px 0 var(--ink); }
.error-shell h1 { margin-top: 35px; font-size: 4rem; }
.error-shell p { margin-bottom: 25px; color: var(--muted); }

.print-toolbar { position: sticky; z-index: 10; top: 0; width: min(1180px, calc(100% - 40px)); min-height: 82px; margin: 0 auto 28px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.print-toolbar > div { display: grid; text-align: center; }
.print-toolbar span { color: var(--muted); font-size: .78rem; }
.bulk-print-list { width: min(1320px, calc(100% - 40px)); margin: 0 auto 80px; display: grid; gap: 45px; }
.bulk-print-page-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bulk-ticket-sheet { padding: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bulk-ticket-heading { min-width: 0; margin-bottom: 15px; display: flex; justify-content: space-between; gap: 20px; font-size: .72rem; letter-spacing: .09em; }
.bulk-ticket-heading > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-ticket-heading strong { font-size: .85rem; letter-spacing: 0; }
.bulk-note { margin: 14px 0 0; color: var(--muted); font-size: .76rem; }
.bulk-note span { margin-right: 14px; color: var(--orange); font-weight: 800; letter-spacing: .12em; }


.info-main { padding: 65px 0 110px; }
.info-hero { display: grid; grid-template-columns: 1.45fr .72fr; gap: 35px; align-items: stretch; }
.info-hero-copy { min-height: 350px; padding: 55px; display: flex; flex-direction: column; justify-content: center; background: var(--white); background-image: radial-gradient(circle, rgba(16,38,79,.07) 1px, transparent 1.3px); background-size: 9px 9px; border: 1px solid var(--line); }
.info-hero h1 { max-width: 760px; margin: 0; font: 900 clamp(4rem, 8vw, 7rem)/.82 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.info-hero-copy p { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; }
.info-flight-card { padding: 34px; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 23px; color: var(--white); background: var(--ink); }
.info-flight-card > span, .info-flight-card > strong { grid-column: span 2; }
.info-flight-card > span { color: var(--yellow); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.info-flight-card > strong { font: 900 2.5rem/.95 var(--display); text-transform: uppercase; }
.info-flight-card div:last-child { grid-column: span 2; }
.info-flight-card small, .info-flight-card b { display: block; }
.info-flight-card small { color: #aebbd0; font-size: .63rem; letter-spacing: .1em; }
.info-flight-card b { margin-top: 5px; font: 800 1.35rem/1 var(--display); text-transform: uppercase; }
.info-board { margin-top: 34px; color: var(--white); background: #091a39; border: 8px solid var(--ink); box-shadow: var(--shadow); }
.info-board-row { min-height: 66px; padding: 12px 22px; display: grid; grid-template-columns: 120px 1fr 130px; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.13); }
.info-board-row:last-child { border-bottom: 0; }
.info-board-row time { color: var(--yellow); font: 900 1.65rem/1 var(--display); }
.info-board-row strong { font: 800 1.35rem/1 var(--display); letter-spacing: .035em; }
.info-board-row > span:last-child { color: #b8c5d8; font-size: .68rem; font-weight: 800; letter-spacing: .11em; }
.info-board-row > .status-on-time { color: #79d99d; }
.info-board-head { min-height: 38px; color: #8292aa; font-size: .58rem; font-weight: 800; letter-spacing: .13em; }
.after-flight-message { margin: 22px 0 0; padding: 18px 22px; color: var(--ink); background: var(--yellow); font: 900 1.35rem/1.1 var(--display); text-align: center; text-transform: uppercase; }
.info-content-grid { margin-top: 34px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 25px; }
.info-message, .info-details { padding: 36px; background: var(--white); border: 1px solid var(--line); }
.info-message > div { white-space: pre-line; font-size: 1.05rem; }
.info-details { display: grid; gap: 25px; background: var(--sky); }
.info-details small, .info-details strong { display: block; }
.info-details small { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.info-details strong { margin-top: 7px; }
.info-details p { margin: 0; color: var(--muted); font-size: .68rem; }

@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: white !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .nav, .footer, .ticket-intro, .ticket-actions-public, .rsvp-panel, .no-print { display: none !important; }
  .ticket-public { width: 160mm; height: 110mm; margin: 8mm auto 0; padding: 0; overflow: hidden; }
  .ticket-page .boarding-pass-full { width: 160mm; height: 98mm; min-height: 0; box-shadow: none; border: .25mm solid #777; break-inside: avoid; }
  .ticket-page .boarding-pass-full .pass-main { padding: 6mm; }
  .ticket-page .boarding-pass-full .pass-stub { padding: 5mm; }
  .ticket-page .ticket-note-panel { width: 160mm; max-height: 10mm; margin-top: 2mm; padding: 1.5mm 3mm; overflow: hidden; break-inside: avoid; font-size: 7pt; }
  .ticket-page .ticket-note-panel .overline { display: inline; margin-right: 3mm; font-size: 5.5pt; }
  .ticket-page .ticket-note-panel p { display: inline; }
  .bulk-print-list { width: 100%; margin: 0; display: block; }
  .bulk-print-page-sheet { width: 281mm; height: 194mm; margin: 8mm; display: grid; grid-template-columns: repeat(2, 137mm); grid-template-rows: repeat(2, 70mm); gap: 8mm 7mm; align-content: center; break-after: page; page-break-after: always; }
  .bulk-print-page-sheet:last-child { break-after: auto; page-break-after: auto; }
  .bulk-ticket-sheet { width: 137mm; height: 70mm; padding: 2mm; display: block; overflow: hidden; background: white; border: .25mm dashed #777; box-shadow: none; break-inside: avoid; }
  .bulk-ticket-heading { height: 4mm; margin: 0 0 1mm; gap: 3mm; font-size: 4.5pt; line-height: 4mm; }
  .bulk-ticket-heading strong { font-size: 5pt; }
  .bulk-ticket-sheet .boarding-pass-full { width: 132.5mm; height: 56mm; min-height: 0; grid-template-columns: minmax(0, 1fr) 34mm; box-shadow: none; border: .2mm solid #aaa; }
  .bulk-ticket-sheet .pass-main { padding: 3mm; display: flex; flex-direction: column; justify-content: space-between; }
  .bulk-ticket-sheet .pass-stub { min-height: 0; padding: 2.5mm 2mm; gap: 1mm; }
  .bulk-ticket-sheet .pass-stub::before { display: none; }
  .bulk-ticket-sheet .pass-top { gap: 2mm; font-size: 7pt; }
  .bulk-ticket-sheet .route { margin: 2mm 0 1.5mm; }
  .bulk-ticket-sheet .route strong { font-size: 15pt; }
  .bulk-ticket-sheet .route time { margin-top: .5mm; font-size: 6pt; }
  .bulk-ticket-sheet .route-center { min-width: 23mm; gap: .5mm; }
  .bulk-ticket-sheet .route-plane { padding: 0 2mm; font-size: 18pt; }
  .bulk-ticket-sheet .route-center b { font-size: 5pt; }
  .bulk-ticket-sheet .route-center small { font-size: 4.5pt; }
  .bulk-ticket-sheet .stopover-strip { margin-bottom: 1mm; grid-template-columns: auto 1fr; gap: 2mm; }
  .bulk-ticket-sheet .stopover-title { font-size: 4.5pt; }
  .bulk-ticket-sheet .stopover-line { gap: 1mm; }
  .bulk-ticket-sheet .stopover-point { min-width: 10mm; }
  .bulk-ticket-sheet .stopover-point i { width: 2mm; height: 2mm; border-width: .3mm; }
  .bulk-ticket-sheet .stopover-line::before { top: .8mm; }
  .bulk-ticket-sheet .stopover-point b { max-width: 20mm; margin-top: 1mm; font-size: 4.5pt; }
  .bulk-ticket-sheet .stopover-point small { margin-top: .4mm; font-size: 4pt; }
  .bulk-ticket-sheet .continuation-message { margin-top: .5mm; font-size: 4.5pt; }
  .bulk-ticket-sheet .pass-rule { height: .4mm; }
  .bulk-ticket-sheet .pass-meta { padding-top: 1.5mm; gap: 1mm; }
  .bulk-ticket-sheet .pass-meta small, .bulk-ticket-sheet .stub-flight small { font-size: 4pt; }
  .bulk-ticket-sheet .pass-meta b { margin-top: .6mm; font-size: 6pt; }
  .bulk-ticket-sheet .stub-top { gap: 1mm; }
  .bulk-ticket-sheet .stub-label { font-size: 4.5pt; }
  .bulk-ticket-sheet .seat-pill { padding: 1mm 1.5mm; font-size: 4pt; }
  .bulk-ticket-sheet .seat-pill b { font-size: 7pt; }
  .bulk-ticket-sheet .pass-stub > strong { font-size: 11pt; }
  .bulk-ticket-sheet .stub-flight { gap: 1mm; }
  .bulk-ticket-sheet .stub-flight b { margin-top: .5mm; font-size: 6pt; }
  .bulk-ticket-sheet .stub-route { gap: 1mm; font-size: 6pt; }
  .bulk-ticket-sheet .stub-scan-row { gap: 1.5mm; }
  .bulk-ticket-sheet .stub-scan-copy { gap: .5mm; }
  .bulk-ticket-sheet .stub-scan-copy small, .bulk-ticket-sheet .stub-scan-copy span { font-size: 3.7pt; }
  .bulk-ticket-sheet .stub-scan-copy b { font-size: 5.5pt; }
  .bulk-ticket-sheet .ticket-qr { width: 16mm; padding: .7mm; }
  .bulk-note { height: 4mm; margin: 1mm 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 4.5pt; line-height: 4mm; }
  .bulk-note span { margin-right: 2mm; }
}

@media screen and (max-width: 900px) {
  .home-main { grid-template-columns: 1fr; padding-top: 35px; }
  .home-copy { text-align: center; }
  .home-copy p { margin-inline: auto; }
  .demo-wrap { margin-top: 40px; }
  .manifesto-grid { grid-template-columns: auto 1fr; }
  .auth-shell { grid-template-columns: 1fr; gap: 45px; }
  .auth-card { max-width: 560px; }
  .info-hero, .info-content-grid { grid-template-columns: 1fr; }
  .flight-settings-form { grid-template-columns: repeat(2, 1fr); }
  .flight-location { grid-column: span 2; }
  .flight-continuation { grid-column: span 2; }
  .flight-settings-form > .button { grid-column: span 2; }
  .response-summary { grid-template-columns: repeat(3, 1fr); }
  .response-summary .meal-total { grid-column: span 1; }
  .bulk-print-page-sheet { grid-template-columns: 1fr; }
}

@media screen and (max-width: 680px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav { min-height: 72px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 32px; height: 32px; }
  .nav > .button-ghost { min-height: 38px; padding-inline: 11px; font-size: .74rem; }
  .nav-actions { gap: 5px; }
  .nav-actions .button { min-height: 38px; padding-inline: 10px; font-size: .7rem; }
  .home-main { min-height: auto; padding-bottom: 80px; }
  .home-copy h1 { font-size: 4rem; }
  .boarding-pass { grid-template-columns: 1fr; }
  .pass-main { padding: 22px; }
  .pass-top { font-size: 1rem; }
  .route { margin: 32px 0 22px; }
  .route strong { font-size: 1.95rem; }
  .route-plane { padding-inline: 8px; font-size: 2rem; }
  .route-center { min-width: 64px; }
  .route-center b { font-size: .6rem; }
  .route time { font-size: .82rem; }
  .stopover-strip { grid-template-columns: 1fr; gap: 10px; }
  .stopover-title { text-align: center; }
  .stopover-point b { max-width: 70px; font-size: .62rem; }
  .pass-meta { grid-template-columns: 1fr 1fr; }
  .pass-stub { min-height: 220px; padding: 28px; }
  .pass-stub::before { display: none; }
  .floating-tag { display: none; }
  .manifesto { padding: 55px 0; }
  .manifesto-grid { gap: 17px 13px; }
  .footer { padding: 25px 0; flex-direction: column; align-items: flex-start; justify-content: center; }
  .ticket-public { padding-top: 35px; }
  .ticket-actions-public { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .boarding-pass-full .pass-main, .boarding-pass-full .pass-stub { padding: 25px; }
  .rsvp-heading { align-items: flex-start; flex-direction: column; }
  .post-response-info { grid-template-columns: 1fr; }
  .post-response-button { width: 100%; }
  .rsvp-presence, .meal-fields, .anecdote-fields { grid-template-columns: 1fr; }
  .meal-deadline-note, .anecdote-fields label:first-child { grid-column: auto; grid-row: auto; }
  .dashboard-main { padding-top: 35px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .dashboard-header-actions { width: 100%; align-items: stretch; flex-direction: column-reverse; }
  .settings-header .button { width: 100%; }
  .stat-row { grid-template-columns: 1fr; margin: 40px 0 20px; }
  .stat-row article { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-row article:last-child { border-bottom: 0; }
  .response-summary { margin-bottom: 55px; grid-template-columns: 1fr 1fr; }
  .response-summary article:nth-child(3) { grid-column: span 2; }
  .section-heading h2 { font-size: 2.4rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .aircraft-panel, .flight-settings-panel, .info-page-panel { padding: 20px 12px; margin-bottom: 45px; }
  .aircraft-facts { gap: 5px; }
  .cabin-scroll { margin-inline: -6px; padding-inline: 8px; border-radius: 50px 20px 20px 50px; }
  .cabin-nose { width: 58px; flex-basis: 58px; }
  .cabin-tail { width: 35px; flex-basis: 35px; }
  .radio-strip { margin: 20px -12px -20px; padding: 18px 12px; grid-template-columns: 1fr 1fr; }
  .radio-strip span:nth-child(3) { grid-column: span 2; }
  .info-page-form { grid-template-columns: 1fr; }
  .info-page-submit .button { width: 100%; }
  .flight-settings-form { grid-template-columns: 1fr 1fr; }
  .flight-continuation { grid-column: span 2; }
  .stopover-admin-title { align-items: flex-start; flex-direction: column; }
  .stopover-admin-row > form:first-child, .stopover-add-form { grid-template-columns: 1fr 100px; }
  .stopover-admin-row .text-button, .stopover-add-form .button { grid-column: span 2; }
  .admin-ticket { padding-inline: 15px; }
  .admin-ticket-head { padding: 18px 0; align-items: flex-start; }
  .ticket-identity { align-items: flex-start; gap: 10px; }
  .ticket-actions { flex-direction: column; align-items: flex-end; }
  .ticket-actions .button { font-size: .7rem; }
  .create-form { padding: 23px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .dialog-actions { flex-direction: column-reverse; }
  .info-main { padding-top: 35px; }
  .info-hero-copy { min-height: 300px; padding: 30px 22px; }
  .info-hero h1 { font-size: 4rem; }
  .info-flight-card { padding: 26px 22px; }
  .info-board { border-width: 4px; }
  .info-board-row { padding: 12px; grid-template-columns: 58px 1fr 76px; gap: 8px; }
  .info-board-row time { font-size: 1.2rem; }
  .info-board-row strong { font-size: .9rem; }
  .info-board-row > span:last-child { font-size: .5rem; }
  .info-message, .info-details { padding: 25px 20px; }
}
