:root {
  color-scheme: light;
  --ink: #0c2636;
  --muted: #4d6470;
  --paper: #f3f7f6;
  --white: #fff;
  --line: #d5e1e0;
  --teal: #006a63;
  --accent: #81ecdb;
  --focus: #008b80;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
a { color: var(--teal); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.page { width: min(calc(100% - 48px), 1040px); margin-inline: auto; }
.topbar { color: white; background: #0b2434; }
.topbar-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: white; font-weight: 700; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 11px; color: var(--accent); background: #17404a; font-size: 24px; }
.brand small { display: block; color: #bad0d6; font-size: .78rem; font-weight: 500; margin-top: 2px; }
.mode { display: flex; gap: 3px; padding: 3px; border: 1px solid #365460; border-radius: 10px; flex: none; }
.mode a { display: inline-flex; align-items: center; gap: 6px; min-height: 41px; padding: 0 14px; text-decoration: none; color: #dcecec; border-radius: 7px; font-size: .875rem; font-weight: 650; }
.mode a[aria-current] { color: #082d35; background: #d8f2ed; }
.mode-count { min-width: 20px; padding: 2px 5px; text-align: center; border-radius: 20px; background: #e8b45f; color: #382308; font-size: .72rem; }
.topbar :focus-visible, .hero :focus-visible { outline-color: var(--accent); }
.demo-note { display: flex; align-items: center; gap: 8px; margin: 27px 0 17px; font-size: .84rem; color: var(--muted); }
.demo-note span { width: 7px; height: 7px; border-radius: 50%; background: #168b78; }
.pilot-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 27px; }
.hero { padding: clamp(22px,4vw,36px); border-radius: 20px; color: white; background: radial-gradient(ellipse at 97% 4%, #175362 0%, #0c3040 42%, #102a3b 73%); }
.hero-label, .eyebrow { font-size: .78rem; font-weight: 680; letter-spacing: .075em; text-transform: uppercase; }
.hero-label { color: #aee6dd; }
.hero-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.hero h1 { font-size: clamp(2.2rem,5vw,3.55rem); font-weight: 760; line-height: 1; letter-spacing: -.055em; }
.aircraft-model { color: #c6dce1; font-size: 1.04rem; margin-top: 10px; }
.presence { font-size: .76rem; font-weight: 660; white-space: nowrap; border-radius: 20px; padding: 5px 9px; background: #304e5d; color: #e4f0f3; }
.presence[data-present="true"] { background: #cef2e8; color: #075446; }
.hero-plan { margin-top: 27px; }
.hero .button { width: 100%; justify-content: space-between; background: var(--accent); color: #082e35; }
.hero .button--hero-secondary { background: #daf5f0; }
.hero-hint { margin-top: 11px; font-size: .83rem; color: #c5dbe2; }
.aircraft-picker { margin-top: 25px; }
.aircraft-picker h2, .agenda h2 { font-size: 1.16rem; letter-spacing: -.015em; margin-bottom: 12px; }
.aircraft-options { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 9px; }
.aircraft-option { min-height: 90px; text-align: left; border: 1px solid var(--line); padding: 12px; border-radius: 12px; background: var(--white); color: var(--ink); }
.aircraft-option[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #eaf7f3; }
.aircraft-option strong,.aircraft-option span,.aircraft-option small { display: block; }
.aircraft-option span, .aircraft-option small { margin-top: 3px; color: var(--muted); font-size: .79rem; }
.aircraft-option small { color: var(--teal); font-size: .75rem; }
.button { min-height: 46px; padding: 10px 15px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 9px; font-weight: 680; font-size: .91rem; text-decoration: none; }
.button--primary { background: var(--teal); color: white; }
.button--secondary { background: white; color: var(--ink); border-color: #b9ccce; }
.button:hover { filter: brightness(.95); }
.quiet-button { min-height: 44px; border: 0; padding: 0 3px; background: transparent; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.request-card, .empty { padding: 17px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; }
.request-card + .request-card { margin-top: 10px; }
.request-card__top, .operator-section-header { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.request-card h3 { font-size: 1rem; }
.request-card p { margin-top: 8px; }
.request-card__meta, .muted, .empty p { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.empty p { margin-top: 6px; }
.request-notes, .operator-notes { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.request-card__actions { display: flex; gap: 8px 15px; flex-wrap: wrap; margin-top: 13px; }
.status { padding: 4px 8px; border-radius: 20px; font-size: .75rem; font-weight: 650; background: #eff3f4; color: #405865; }
.status[data-status="sent"] { background: #fff2d7; color: #704615; }
.status[data-status="received"], .status[data-status="completed"] { background: #dff5ed; color: #05594d; }
.services-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 9px 0 0; list-style: none; }
.services-list li { border-radius: 6px; padding: 4px 7px; background: #ecf5f3; color: #194b48; font-size: .79rem; }
.feedback { font-size: .9rem; color: var(--teal); margin-top: 16px; min-height: 1.2em; }
.demo-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 14px; margin-top: 20px; border-top: 1px solid var(--line); padding: 9px 0 20px; font-size: .85rem; }

.operator-view h1, #operator h1 { font-size: clamp(1.9rem,4vw,2.8rem); letter-spacing: -.035em; margin: 0 0 6px; }
.operator-section-header { margin: 20px 0 10px; justify-content: flex-start; }
.operator-section-header h2, .section-title { font-size: 1.16rem; }
.operator-count { font-size: .82rem; color: var(--muted); }
.operator-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.operator-items .request-card { margin: 0; }
.operator-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 8px 12px; }
.operator-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 650; }
.operator-notes { margin-top: 11px; }
.operator-history { margin-top: 25px; }
.operator-history summary { min-height: 42px; cursor: pointer; font-weight: 650; }
.operator-feedback:not(:empty), .operator-confirmation { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: #e6f3f0; }
.operator-feedback[data-intent="error"] { color: #922715; background: #fff1eb; }

dialog { width: min(calc(100% - 28px),500px); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 16px; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgb(14 38 52 / .66); }
.dialog-head,.dialog-body,.dialog-foot { padding: 17px 21px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--teal); margin-bottom: 4px; }
.dialog-head h2 { font-size: 1.35rem; line-height: 1.15; }
.close-button { border: 0; background: var(--paper); color: var(--ink); width: 44px; height: 44px; border-radius: 9px; font-size: 1.35rem; }
.field, legend { display: block; font-size: .91rem; font-weight: 650; margin-bottom: 7px; }
.field span, legend span { color: var(--muted); font-size: .76rem; font-weight: 500; margin-left: 3px; }
input[type="datetime-local"], textarea { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 10px; min-height: 45px; border: 1px solid #b9ccce; border-radius: 8px; color: var(--ink); background: white; }
.hint { margin: 4px 0 15px; }
fieldset { border: 0; padding: 0; margin: 0 0 15px; min-width: 0; }
.service-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.service-picker label { display: flex; align-items: center; gap: 7px; padding: 5px 8px; min-height: 44px; cursor: pointer; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; }
input[type="checkbox"] { accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.dialog-foot { border-top: 1px solid var(--line); background: var(--paper); }
.dialog-foot .button { width: 100%; }
.form-error { color: #942d1d; font-size: .88rem; margin-top: 10px; }

.workspace { padding-top: clamp(20px,4vw,38px); }
.access-card, .account-manager { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px,4vw,24px); }
.access-card { max-width: 450px; margin-inline: auto; }
.access-card h1 { font-size: clamp(1.55rem,4vw,2rem); letter-spacing: -.035em; }
.access-intro { margin: 8px 0 20px; }
.access-card input, .account-form input:not([type="checkbox"]), .account-form select { display: block; width: 100%; padding: 9px 11px; margin-bottom: 13px; color: var(--ink); border: 1px solid #b9ccce; min-height: 45px; border-radius: 8px; background: white; font: inherit; }
.access-card button { width: 100%; }
.footer-actions { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.workspace > .feedback { margin: 0 0 14px; min-height: auto; }
.workspace > .feedback[data-intent="error"] { color: #922715; background: #fff1eb; border-radius: 8px; padding: 9px 12px; }
.account-manager { margin-top: 24px; }
.account-manager summary { cursor: pointer; font-weight: 680; }
.account-manager > div { margin-top: 14px; }
.account-form { max-width: 650px; }
.account-form > .muted { margin-bottom: 12px; }
.account-form .service-picker { max-height: 16rem; overflow: auto; padding: 2px; }

@media (max-width: 700px) {
  .page { width: min(calc(100% - 28px),520px); }
  .pilot-layout, .operator-items { grid-template-columns: minmax(0,1fr); }
  .pilot-layout { gap: 24px; }
  .topbar-inner { min-height: 68px; gap: 9px; }
  .brand { gap: 7px; font-size: .92rem; }
  .brand-mark { width: 32px; height: 36px; font-size: 20px; }
  .brand small { display: none; }
  .mode a { padding-inline: 8px; }
  .demo-note { margin-top: 18px; }
  .aircraft-picker { margin-top: 20px; }
}
