:root {
  color-scheme: light;
  --night: #07181d;
  --deep: #0e2a31;
  --teal: #1b5159;
  --aqua: #a9c7c4;
  --cream: #f3f1eb;
  --paper: #fbfaf6;
  --white: #ffffff;
  --gold: #c3a36a;
  --ink: #14282d;
  --muted: #68797b;
  --line: #d9dfdb;
  --danger: #9e3d2e;
  --shadow: 0 20px 55px rgba(5, 25, 30, .13);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--teal); text-underline-offset: 3px; }
[hidden] { display: none !important; }

.wordmark { font: 650 28px/1 Arial, sans-serif; letter-spacing: .26em; text-decoration: none; }
.wordmark-light { color: var(--white); }
.wordmark-dark { color: var(--night); }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: .19em; }
.muted { color: var(--muted); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: 27px; line-height: 1.2; }
h3 { font-size: 20px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.2fr) minmax(390px, .8fr); }
.login-brand { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 78px); color: white; background: radial-gradient(circle at 70% 35%, rgba(73, 129, 133, .38), transparent 38%), linear-gradient(145deg, #102e35 0%, #06161b 70%); }
.login-brand::before { content: ""; position: absolute; right: -18%; top: 23%; width: 72%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.login-brand::after { content: ""; position: absolute; right: -6%; top: 35%; width: 46%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transform: rotate(-24deg); }
.login-brand > * { position: relative; z-index: 1; }
.login-copy { max-width: 690px; }
.login-copy .eyebrow { color: var(--aqua); }
.login-copy h1 { margin: 15px 0 26px; font-size: clamp(52px, 7vw, 96px); }
.login-copy h1 em { color: var(--aqua); font-weight: 400; }
.login-copy > p:last-child { max-width: 520px; color: #c8d5d3; font-size: clamp(17px, 2vw, 22px); }
.login-footnote { margin: 0; color: #8ea6a6; letter-spacing: .08em; }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 44px; background: var(--paper); }
.login-form-wrap { width: min(100%, 440px); }
.login-form-wrap h2 { margin: 5px 0 10px; font-size: 42px; }
.login-form-wrap > .muted { margin-bottom: 34px; }
.login-help { display: flex; justify-content: space-between; gap: 22px; margin-top: 25px; font-size: 13px; }

.stack-form { display: grid; gap: 18px; }
.stack-form.compact { gap: 14px; }
label { display: grid; gap: 7px; color: #385158; font-size: 13px; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 49px; border: 1px solid #bbc8c5; border-radius: 10px; outline: 0; background: white; color: var(--ink); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,81,89,.13); }
.field-note { color: var(--muted); font-size: 11px; font-weight: 400; }
.primary, .secondary-button, .service-button { min-height: 48px; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; text-align: center; text-decoration: none; }
.primary { background: var(--night); color: white; }
.primary:hover { background: var(--deep); }
.secondary-button { display: inline-grid; place-items: center; border: 1px solid #bdc9c6; background: white; color: var(--ink); }
.wide { width: 100%; }
button:disabled, input:disabled, textarea:disabled { opacity: .55; cursor: wait; }

#toast { position: fixed; z-index: 1000; top: max(18px, env(safe-area-inset-top)); left: 50%; max-width: min(92vw, 560px); transform: translate(-50%, -160%); border-radius: 12px; padding: 13px 18px; background: var(--night); color: white; box-shadow: var(--shadow); opacity: 0; transition: transform .26s ease, opacity .26s ease; text-align: center; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.error { background: #7f3024; }

.app-shell { min-height: 100vh; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.app-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 max(24px, calc((100vw - 1180px)/2)); border-bottom: 1px solid rgba(190,200,196,.75); background: rgba(243,241,235,.91); backdrop-filter: blur(18px); }
.logo-button { border: 0; background: transparent; padding: 10px 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.65); color: var(--ink); }
.icon-button svg, .nav-item svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.avatar { display: grid; place-items: center; width: 43px; height: 43px; border: 0; border-radius: 50%; background: var(--night); color: white; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.avatar-large { width: 62px; height: 62px; flex: 0 0 62px; font-size: 17px; }
.app-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 40px; }
.view { animation: reveal .26s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.welcome-row h1 { margin: 0; }
.concierge-link { margin-bottom: 8px; font-weight: 700; white-space: nowrap; }

.trip-list { display: grid; gap: 28px; }
.trip-card { position: relative; display: grid; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 25px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 5px 22px rgba(5,25,30,.04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.trip-card:hover { transform: translateY(-2px); border-color: #b4c2be; box-shadow: 0 14px 35px rgba(5,25,30,.09); }
.trip-card.featured { min-height: 360px; padding: clamp(28px, 5vw, 58px); border: 0; background: radial-gradient(circle at 85% 20%, rgba(92,143,145,.34), transparent 30%), linear-gradient(140deg, #133740, #07171c 72%); color: white; box-shadow: var(--shadow); }
.trip-card.featured::after { content: ""; position: absolute; right: -12%; bottom: -60%; width: 55%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.trip-card.featured .eyebrow { color: var(--aqua); }
.trip-card.featured .trip-reference, .trip-card.featured .trip-card-details { color: #adc1c0; }
.trip-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.trip-card-top > div { display: grid; }
.trip-reference { color: var(--muted); font-size: 12px; }
.trip-date { color: inherit; font-size: 14px; font-weight: 650; }
.route-line { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); margin: 35px 0 24px; }
.route-line strong { font: 400 clamp(37px, 6vw, 72px)/1 Georgia, serif; letter-spacing: -.03em; }
.route-line.large strong { font-size: clamp(35px, 7vw, 62px); }
.route-arrow { color: var(--gold); font-size: 29px; }
.trip-card-details { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px 28px; margin-top: auto; color: var(--muted); }
.trip-card-details span + span { position: relative; }
.trip-card-details span + span::before { content: ""; position: absolute; left: -15px; top: .55em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.list-heading { display: flex; align-items: center; gap: 10px; margin: 16px 0 -10px; }
.list-heading h2 { margin: 0; }
.count-badge { display: inline-grid; place-items: center; min-width: 25px; height: 25px; border-radius: 999px; background: #dce4e0; font-size: 12px; }
.trip-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.trip-grid .trip-card .route-line { margin: 28px 0 21px; }
.trip-grid .trip-card .route-line strong { font-size: 38px; }

.section-heading { max-width: 680px; margin-bottom: 32px; }
.section-heading h1 { margin: 4px 0 12px; }
.updates-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.update-row { display: grid; grid-template-columns: 11px 1fr auto; align-items: center; gap: 18px; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 22px 24px; background: transparent; color: var(--ink); text-align: left; }
.update-row:last-child { border-bottom: 0; }
.update-row:hover { background: #f0f2ed; }
.update-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.update-copy { display: grid; gap: 4px; }
.update-copy small, .update-copy time { color: var(--muted); }
.chevron { color: var(--muted); font-size: 27px; }
.empty-state { display: grid; place-items: center; min-height: 300px; border: 1px dashed #c4ceca; border-radius: 18px; padding: 40px; text-align: center; }
.empty-state h2 { margin: 15px 0 8px; }
.empty-state p { max-width: 440px; }
.empty-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--night); color: white; font-size: 11px; font-weight: 700; letter-spacing: .18em; }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.panel-card { border: 1px solid var(--line); border-radius: 17px; padding: 26px; background: var(--paper); }
.panel-card h2 { margin-bottom: 14px; }
.profile-card { display: flex; align-items: center; gap: 19px; }
.profile-card h2, .profile-card p { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-links { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.text-button { border: 0; background: transparent; padding: 8px 0; font-weight: 700; }
.danger { color: var(--danger); }

.bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: max(15px, env(safe-area-inset-bottom)); display: flex; width: min(420px, calc(100% - 28px)); transform: translateX(-50%); border: 1px solid rgba(255,255,255,.13); border-radius: 21px; padding: 8px; background: rgba(7,24,29,.95); color: #8fa6a6; box-shadow: 0 13px 38px rgba(3,18,22,.28); backdrop-filter: blur(20px); }
.nav-item { position: relative; display: grid; flex: 1; place-items: center; gap: 2px; border: 0; border-radius: 14px; padding: 7px 8px 5px; background: transparent; color: inherit; font-size: 10px; }
.nav-item.active { background: rgba(255,255,255,.09); color: white; }
.nav-item svg { width: 20px; }
.nav-item i { position: absolute; top: 6px; right: calc(50% - 17px); width: 6px; height: 6px; border: 1px solid var(--night); border-radius: 50%; background: var(--gold); }

dialog { margin: 0; padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3,17,21,.62); backdrop-filter: blur(4px); }
.sheet-dialog { width: min(760px, 100%); max-width: none; height: 100dvh; max-height: none; margin-left: auto; animation: slide-in .28s ease; }
@keyframes slide-in { from { transform: translateX(35px); opacity: 0; } to { transform: none; opacity: 1; } }
.request-dialog { width: min(590px, calc(100% - 28px)); max-height: min(760px, calc(100dvh - 40px)); margin: auto; border-radius: 20px; }
.dialog-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 20px 24px; background: rgba(251,250,246,.94); backdrop-filter: blur(15px); }
.dialog-header h2 { margin: 0; font-size: 25px; }
.dialog-header .eyebrow { margin-bottom: 3px; }
.dialog-close { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 25px; line-height: 1; }
.dialog-body { padding: 27px; }
.trip-summary { margin-bottom: 28px; border-radius: 16px; padding: 27px; background: var(--night); color: white; }
.trip-summary .route-line { margin: 0 0 15px; }
.trip-summary .muted { color: #9eb3b2; }
.trip-summary .secondary-button { width: max-content; margin-top: 8px; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: white; }
.leg-card { overflow: hidden; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.leg-heading { padding: 23px 24px 13px; }
.leg-heading h3 { margin: 0; }
.location-block { padding: 17px 24px; border-top: 1px solid var(--line); }
.location-head { display: flex; align-items: center; gap: 17px; }
.location-head .eyebrow { margin-bottom: 2px; }
.location-head > div:last-child { display: grid; }
.airport-code { display: grid; place-items: center; flex: 0 0 62px; width: 62px; height: 54px; border-radius: 9px; background: var(--cream); font: 400 21px Georgia, serif; }
.fbo-info { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 13px 0 0 79px; color: var(--muted); }
.fbo-info strong { width: 100%; color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.detail-line { display: grid; align-content: start; gap: 5px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.detail-grid .detail-line:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-line > span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.detail-line strong { white-space: pre-line; }
.service-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 24px; }
.service-button { border: 1px solid #bbcac6; background: white; color: var(--teal); }
.service-button:hover { background: #eff3ef; }
.arrangements { border-top: 1px solid var(--line); padding: 22px 24px; background: #f7f7f3; }
.arrangements h4 { margin-bottom: 13px; }
.arrangement-card { border: 1px solid var(--line); border-radius: 11px; padding: 17px; background: white; }
.arrangement-card + .arrangement-card { margin-top: 10px; }
.arrangement-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arrangement-card p { margin: 10px 0 0; white-space: pre-line; }
.status { border-radius: 999px; padding: 4px 9px; background: #e8eeeb; color: #315148; font-size: 11px; font-weight: 700; }
.status.confirmed { background: #ddefe5; color: #1f6849; }
.status.declined { background: #f6e3df; color: #8c3b30; }
.status.review { background: #fff0cf; color: #815b13; }
.team-response { margin-top: 15px; border-left: 2px solid var(--gold); padding: 9px 0 9px 14px; }
.team-response .eyebrow { margin: 0; }
.team-response p { margin-top: 5px; }
.request-route { border-radius: 10px; padding: 13px 15px; background: var(--cream); font: 400 18px Georgia, serif; }
.notice { border-left: 2px solid var(--gold); padding-left: 13px; color: var(--muted); font-size: 13px; }
.text-link.center { justify-self: center; }
.noscript { padding: 20px; text-align: center; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 42vh; padding: 32px 28px; }
  .login-copy { margin-top: 70px; }
  .login-copy h1 { font-size: clamp(48px, 13vw, 72px); }
  .login-footnote { display: none; }
  .login-panel { min-height: 58vh; padding: 48px 28px max(45px, env(safe-area-inset-bottom)); }
  .login-form-wrap { max-width: 520px; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-header { height: 66px; padding: 0 18px; }
  .wordmark { font-size: 24px; }
  .app-content { width: min(100% - 30px, 1180px); padding-top: 34px; }
  .welcome-row { display: block; }
  .welcome-row h1 { font-size: 37px; }
  .concierge-link { display: inline-block; margin-top: 15px; }
  .trip-card.featured { min-height: 315px; padding: 27px 24px; }
  .trip-card.featured .route-line strong { font-size: 47px; }
  .trip-card-details { display: grid; gap: 5px; }
  .trip-card-details span + span::before { display: none; }
  .trip-grid { grid-template-columns: 1fr; }
  .trip-card { padding: 21px; }
  .trip-grid .trip-card .route-line strong { font-size: 34px; }
  .updates-list { border-radius: 14px; }
  .update-row { padding: 19px 17px; gap: 13px; }
  .panel-card { padding: 22px; }
  .sheet-dialog { width: 100%; }
  .request-dialog { width: calc(100% - 20px); }
  .dialog-header { padding: 15px 16px; }
  .dialog-body { padding: 18px 14px 40px; }
  .trip-summary { padding: 22px 20px; }
  .trip-summary .route-line strong { font-size: 40px; }
  .location-block, .leg-heading { padding-left: 18px; padding-right: 18px; }
  .fbo-info { margin-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .detail-line:nth-child(odd) { border-right: 0; }
  .detail-line { padding: 16px 18px; }
  .service-actions { grid-template-columns: 1fr; padding: 18px; }
  .arrangements { padding: 18px; }
  .account-links { align-items: flex-start; flex-direction: column; }
}

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