/* ─────────────────────────────────────────────────────────────────────────
 * common.css — shared across all JetQuote pages.
 *
 * Loaded BEFORE each page's <style> block, so per-page rules win on conflict.
 *
 * 2026-06-19 — Apple-style design refresh (imported from the Claude Design
 * project "Jet Supply CMS"). The shared :root palette is remapped to the new
 * ink / ivory / navy / champagne-gold system; existing variable NAMES are kept
 * (--blue, --surface, --text, …) so every page's existing `var(--…)` reference
 * adopts the new colors without per-rule edits. New semantic tokens (--ink,
 * --navy, --gold, --ivory, --paper, --mono, …) and a reusable component layer
 * (.app-bar, .ds-card, .kpi, .pill, .mono, …) are added below. See
 * .planning/design/JET-SUPPLY-APP-STYLE.md for the full spec.
 *
 * Scope:
 *   - font imports + :root design tokens + safe-area insets
 *   - body.dark variable overrides + universal dark rules
 *   - drawer + drawer-overlay base styles
 *   - shared component layer (opt-in classes)
 *
 * z-index policy:
 *   Drawer z-index is set via --z-drawer-overlay / --z-drawer. Default 200/201.
 *   Pages with higher modals override these:
 *     - handlers.html → 300/301 ; quote.html → 600/601
 * ───────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  /* ── New canonical palette (Apple-style refresh) ───────────────────────────
   * 2026-06-19 colour update: realigned to the claude.ai/design _ds token scale
   * (paper / stone / earthier semantics). Brand ink #0B1B2B + navy #2E5680 are
   * unchanged. Gold gains soft/mid/dark steps from the _ds gold ramp. */
  --ink:#0B1B2B;            /* headings, primary buttons, wordmark (unchanged) */
  --navy-900:#0B1B2B;       /* brand navy (CONFIRMED) — dark/ink surfaces, headings, dark buttons */
  --navy-800:#11253A;       /* lifted navy — hovers, avatars, secondary ink */
  --ink-text:#141B20;       /* body text (_ds ink-800) */
  --navy:#2E5680;           /* links, icons, secondary accent (unchanged) */
  --navy-dk:#1A3550;        /* on-tint navy text */
  --navy-tint:rgba(46,86,128,.08);
  --gold:#A8884F;           /* champagne brand mark (sparing) — _ds gold-500 */
  --gold-soft:#D9C8A3;      /* _ds gold-300 */
  --gold-mid:#C3AB78;       /* _ds gold-400 */
  --gold-dk:#8C6F3D;        /* _ds gold-600 */
  --ivory:#FBF9F5;          /* mobile page bg / soft fills (_ds paper-000) */
  --paper:#F6F2EA;          /* desktop page bg (_ds paper-100) */
  --card:#FFFFFF;           /* card / surface */
  --muted-1:#515753; --muted-2:#6B716D; --muted-3:#8C918D; --faint:#B4B8B4;  /* _ds stone 600/500/400/300 */
  --ok:#4A6B4E;             /* success / booked (_ds success) */
  --warn:#B07A2E;           /* follow-up due / own-slot (_ds warning) */
  --bad:#9A3B33;            /* cancelled / over-capacity / tight (_ds danger) */
  --font:-apple-system,BlinkMacSystemFont,'Plus Jakarta Sans','Segoe UI',sans-serif;
  --mono:'Spline Sans Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --card-bd:1px solid rgba(11,27,43,.05);
  --card-sh:0 2px 12px -2px rgba(11,27,43,.08);
  --bar-sh:0 2px 14px -4px rgba(11,27,43,.12);
  --raise-sh:0 12px 34px -12px rgba(11,27,43,.28);
  --row-div:1px solid rgba(11,27,43,.07);
  --field-bd:1px solid rgba(11,27,43,.12);
  --bar-bg:rgba(255,255,255,.82);

  /* ── Legacy token names, remapped to the new system ────────────────────── */
  --blue:#2E5680;--blue-dk:#1A3550;--blue-lt:rgba(46,86,128,.08);--blue-mid:rgba(46,86,128,.20);
  --text:#141B20;--muted:#6B716D;--border:rgba(11,27,43,.10);--surface:#F6F2EA;
  --white:#ffffff;--danger:#9A3B33;--success:#4A6B4E;
  --r:12px;--rlg:16px;
  --safe-top:env(safe-area-inset-top,0px);--safe-bot:env(safe-area-inset-bottom,0px);
  --z-drawer-overlay:200;
  --z-drawer:201;
}

/* ── Drawer ───────────────────────────────────────────────────────────── */
.drawer-overlay{position:fixed;inset:0;background:rgba(11,27,43,.32);z-index:var(--z-drawer-overlay);
  opacity:0;pointer-events:none;transition:opacity .25s;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);}
.drawer-overlay.open{opacity:1;pointer-events:all;}
.drawer{position:fixed;top:0;right:0;bottom:0;width:264px;
  background:var(--bar-bg);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  z-index:var(--z-drawer);box-shadow:-8px 0 40px -12px rgba(11,27,43,.28);
  transform:translateX(100%);transition:transform .32s cubic-bezier(.22,.61,.36,1);
  display:flex;flex-direction:column;}
.drawer.open{transform:translateX(0);}
.drawer-hd{padding:calc(16px + var(--safe-top)) 20px 14px;
  display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid rgba(11,27,43,.07);}
.drawer-title{font-size:15px;font-weight:600;color:var(--ink);}
.drawer-close{background:none;border:none;cursor:pointer;font-size:22px;
  color:var(--muted);line-height:1;padding:2px 4px;}
.drawer-body{padding:12px 0;flex:1;overflow-y:auto;}
.drawer-item{display:flex;align-items:center;gap:12px;padding:13px 20px;
  text-decoration:none;color:var(--ink-text);font-size:14px;font-weight:500;
  transition:background .14s;cursor:pointer;}
.drawer-item:hover{background:var(--navy-tint);color:var(--navy);}
.drawer-item svg{width:20px;height:20px;fill:var(--navy);opacity:.78;flex-shrink:0;}
.drawer-sep{height:1px;background:rgba(11,27,43,.07);margin:8px 0;}
.drawer-section{font-size:10px;font-weight:600;color:var(--muted-3);
  letter-spacing:.12em;text-transform:uppercase;padding:10px 20px 4px;font-family:var(--mono);}

/* ── Dark theme — variables + universal rules ─────────────────────────── */
body.dark {
  --ink:#EAF0F6;--ink-text:#E8EDF5;--navy:#7FB0E6;--navy-dk:#A9CCF0;--navy-tint:rgba(127,176,230,.12);
  --card:#161D2A;--ivory:#1A2334;--paper:#0F1521;
  --muted-1:#AEB6C4;--muted-2:#8A95A8;--muted-3:#6E7889;
  --card-bd:1px solid rgba(255,255,255,.06);
  --card-sh:0 2px 12px -2px rgba(0,0,0,.4);
  --row-div:1px solid rgba(255,255,255,.07);
  --field-bd:1px solid rgba(255,255,255,.14);
  --bar-bg:rgba(22,29,42,.82);
  --blue:#7FB0E6;--blue-dk:#A9CCF0;--blue-lt:rgba(127,176,230,.12);--blue-mid:rgba(127,176,230,.24);
  --text:#E8EDF5;--muted:#8A95A8;--border:rgba(255,255,255,.10);--surface:#0F1521;
  --white:#161D2A;--danger:#E08585;--success:#7BB97F;
}
body.dark { background:#0B1018; color:var(--text); }
body.dark .topbar { background:var(--bar-bg); border-color:var(--border); }
body.dark .drawer { background:var(--bar-bg); }
body.dark .app-bar { background:var(--bar-bg); border-color:rgba(255,255,255,.07); }
/* Dark mode: force text inputs onto a dark themed surface. Several pages set a
   hardcoded white input background via `input:not([type=checkbox]):not([type=radio])`
   (specificity 0,2,1) which out-specifies a plain `body.dark input` override —
   leaving white-text-on-white-field in dark mode. This higher-specificity rule
   wins on every page; .auto-fill readonly fields keep their own tinted style. */
body.dark input:not([type=checkbox]):not([type=radio]):not(.auto-fill),
body.dark select,
body.dark textarea { background:var(--card); color:var(--text); }

/* Phase 19 (COLL-01/COLL-02) — saved-meta footer + conflict notice.
   Shared by 5 detail pages (customer / handlers / passengers / fleet / quote).
   Amber palette mirrors the warning tone (NOT var(--danger), reserved for
   delete / error surfaces). */
.saved-meta{font-size:12px;color:var(--muted);text-align:right;padding:8px 0 4px;}
.saved-meta-actor{font-weight:600;}
.conflict-notice{display:flex;align-items:center;gap:8px;
  padding:10px 14px;margin:12px 0;
  background:rgba(176,122,46,.10);border:1px solid rgba(176,122,46,.45);border-radius:var(--r);
  color:#6B5320;font-size:13px;}
.conflict-notice-text{flex:1;}
.conflict-notice-dismiss{background:none;border:none;cursor:pointer;
  font-size:18px;line-height:1;padding:0 4px;color:inherit;margin-left:auto;}

/* ═══════════════════════════════════════════════════════════════════════
 * Design-system component layer (Apple-style refresh) — opt-in classes.
 * Pages adopt these for the new look; nothing here changes a page that does
 * not use the class names. See .planning/design/JET-SUPPLY-APP-STYLE.md.
 * ═══════════════════════════════════════════════════════════════════════ */

.mono{font-family:var(--mono);}

/* Brand wordmark lockup (official SVG, fill=currentColor). Size from CSS per the
   2026-06-19 brand refresh: ~21px desktop / ~14px mobile; --lg for login splash.
   Colour comes from the element's `color` (set inline per context). */
.brand-lockup{height:21px;width:auto;display:block;}
.brand-lockup--lg{height:34px;}
@media (max-width:640px){.brand-lockup{height:14px;}.brand-lockup--lg{height:30px;}}

/* Drawer trigger — pinned to the far right of the bar on EVERY page via
   margin-left:auto so the bar's flex layout (logo width, spacer, page controls)
   can never push it off-screen. It stays IN normal flow (not absolute) so it
   reserves its own width — any right-side control such as the user avatar then
   sits to its LEFT instead of being covered (2026-06-23 fix). The quote builder
   (.qb-topbar) handles its own trigger. */
.topbar .hamburger{
  margin-left:auto;
  display:inline-flex;align-items:center;justify-content:center;
  z-index:6;flex:none;
}

/* Blurred top bar (desktop nav surface) */
.app-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:14px;
  height:62px;padding:0 26px;background:var(--bar-bg);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(11,27,43,.07);}
.app-bar .wordmark{display:flex;align-items:center;gap:12px;color:var(--ink);}
/* wordmark svg sizing now governed by .brand-lockup (~21px desktop / 14px mobile) */
.app-bar .bar-sub{font-size:13px;font-weight:600;letter-spacing:.01em;color:#3A3A3C;
  border-left:1px solid rgba(11,27,43,.12);padding-left:14px;}
.app-bar .avatar{width:36px;height:36px;border-radius:50%;background:#11253A;
  display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;
  color:var(--gold);letter-spacing:.04em;flex:none;}

/* Page container */
.app-wrap{max-width:1240px;margin:0 auto;padding:30px 26px 60px;}

/* Grouped white card */
.ds-card{background:var(--card);border:var(--card-bd);box-shadow:var(--card-sh);
  border-radius:16px;padding:16px 18px;}
.ds-card.tight{padding:14px 16px;}

/* Section header row */
.section-hd{display:flex;align-items:center;justify-content:space-between;
  padding-bottom:11px;border-bottom:1px solid rgba(11,27,43,.08);margin-bottom:6px;}
.section-hd .lbl{font-size:13px;font-weight:600;letter-spacing:.01em;color:#3A3A3C;}
.section-hd a{font-size:12px;color:var(--navy);font-weight:500;text-decoration:none;}
.section-hd .count{font-size:12px;color:var(--warn);font-weight:600;}

/* KPI tile */
.kpi-strip{display:grid;gap:14px;margin-bottom:14px;}
.kpi{background:var(--card);border:var(--card-bd);box-shadow:var(--card-sh);
  border-radius:16px;padding:16px 18px;}
.kpi .eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.14em;color:var(--muted-3);text-transform:uppercase;}
.kpi .val{font-weight:600;font-size:30px;color:var(--ink);margin-top:8px;line-height:1;}
.kpi .sub{font-size:12px;color:var(--muted-2);margin-top:6px;}
.kpi .sub.ok{color:var(--ok);}

/* List row */
.ds-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:var(--row-div);text-decoration:none;}
.ds-row:last-child{border-bottom:none;}
.ref-chip{font-family:var(--mono);font-size:11px;color:var(--navy);background:var(--navy-tint);
  padding:2px 7px;border-radius:8px;white-space:nowrap;}
.route{font-family:var(--mono);font-size:13px;letter-spacing:.04em;color:var(--ink);}
.figure{font-family:var(--mono);font-size:13px;color:var(--ink-text);}
.row-sub{font-size:12px;color:var(--muted-2);margin-top:4px;}

/* Status badge */
.badge{font-family:var(--mono);font-size:9px;font-weight:600;letter-spacing:.1em;
  padding:2px 7px;border-radius:8px;text-transform:uppercase;}
.badge.booked{background:rgba(74,107,78,.16);color:var(--ok);}
.badge.cancelled{background:rgba(154,59,51,.12);color:var(--bad);}
.badge.quoting{background:rgba(176,122,46,.13);color:var(--warn);}

/* Pills + buttons */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;
  padding:4px 11px;border-radius:980px;border:1px solid rgba(11,27,43,.14);
  background:var(--ivory);color:var(--navy-dk);cursor:pointer;
  transition:transform .12s,background .14s;}
.pill:active{transform:scale(.98);}
.btn-ink{display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;
  background:var(--ink);color:var(--ivory);font-size:14px;font-weight:600;
  padding:12px 20px;border-radius:13px;font-family:var(--font);
  transition:transform .12s,opacity .14s;}
.btn-ink:active{transform:scale(.98);}
.btn-ink svg{stroke:var(--ivory);}

/* Command bar */
.cmd-bar{display:flex;align-items:center;gap:12px;background:var(--card);
  border:1px solid rgba(11,27,43,.16);border-radius:16px;padding:6px 6px 6px 18px;
  box-shadow:0 12px 34px -20px rgba(11,27,43,.4);transition:border-color .18s;}
.cmd-bar:focus-within{border-color:rgba(11,27,43,.4);}
.cmd-bar input{flex:1;border:0;background:transparent;font-size:16px;color:var(--ink-text);
  padding:11px 0;font-family:var(--font);}
.cmd-bar input:focus{outline:none;}

/* Toast */
.ds-toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:60;
  background:var(--ink);color:var(--ivory);font-size:13px;padding:11px 20px;border-radius:12px;
  box-shadow:0 14px 34px -12px rgba(11,27,43,.5);}

@keyframes dsInUp{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}

/* ── Responsive substrate (Phase 30) — additive; desktop-identical ──────────
   Single documented phone breakpoint: 640px (matches .brand-lockup line 152 and
   ROADMAP <=640px; 390px test viewport falls inside it). */
:root{ --bp-phone:640px; }   /* doc token; @media literals use 640px directly */

/* Global no-horizontal-overflow guard (top-level — harmless on desktop). */
html,body{ max-width:100%; overflow-x:hidden; }
img,video,canvas{ max-width:100%; height:auto; }
svg:not(.drawer-item svg){ max-width:100%; }       /* don't collapse chrome icons (Pitfall 3) */
.drawer{ max-width:100vw; }

/* Reusable wide-table treatment (opt-in; no current page uses these names). */
.rwrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }   /* MUST be auto, not hidden */
.rwrap > table{ min-width:max-content; }

@media (max-width:640px){
  /* >=44px touch targets on the SHARED controls that live in common.css */
  .drawer-item{ min-height:44px; }
  .btn-ink{ min-height:44px; }
  .pill{ min-height:44px; }
  .drawer-close{ min-width:44px; min-height:44px; }

  /* row->card stack opt-in (pages add data-label per cell later) */
  .rstack thead{ position:absolute; left:-9999px; }
  .rstack tr{ display:block; margin-bottom:12px; }
  .rstack td{ display:block; text-align:right; }
  .rstack td::before{ content:attr(data-label); float:left; font-weight:600; color:var(--muted); }
}

/* ── Touch targets on tablets/touchscreens (iPad Pro 11" = 834/1194px) ──
   The 44px rules above are scoped to ≤640px, so iPad — which is >640px and
   runs the DESKTOP layout — kept mouse-sized controls. `pointer:coarse`
   catches any primary-touch device (phone AND tablet) without pulling the
   phone row→card reflow onto iPad. SIZING ONLY — no layout changes here. */
@media (pointer:coarse){
  .drawer-item{ min-height:44px; }
  .btn-ink{ min-height:44px; }
  .pill{ min-height:44px; }
  .drawer-close{ min-width:44px; min-height:44px; }
}

/* ── Desktop primary top-nav (2026-06-21) ───────────────────────────────────
   Inline horizontal nav injected into `.topbar` by js/drawer.js mountDrawer().
   Hidden on phones (drawer covers ≤640px); shown at ≥641px. Additive — pages
   without the JS injection are unchanged. */
/* shared top-bar user-initials avatar — injected by mountTopNav on every page */
.tb-avatar{ width:32px; height:32px; border-radius:50%; background:#11253A; color:#D9C8A3;
  display:flex; align-items:center; justify-content:center; flex:none; margin-left:10px;
  font-family:var(--mono,'Spline Sans Mono'); font-size:11px; font-weight:600; text-transform:uppercase; cursor:default; }

.app-nav{ display:none; }
.app-nav-link{ font-size:13px; font-weight:500; color:var(--muted-2);
  padding:7px 11px; border-radius:9px; text-decoration:none; white-space:nowrap;
  transition:background .14s, color .14s; }
.app-nav-link:hover{ color:var(--ink); background:var(--navy-tint); }
.app-nav-link.current{ font-weight:600; color:var(--ink); background:rgba(11,27,43,.06); }
@media (min-width:641px){
  .app-nav{ display:flex; align-items:center; gap:2px; margin-left:4px;
    padding-left:14px; border-left:1px solid rgba(11,27,43,.12); }
}


/* ───────────────────────────────────────────────────────────────────────
   Shared record-editor drawer (.st-*) — the right slide-over add/edit panel.
   Used by the Settings hub (airports / types / fleet) AND the quote builder's
   "Edit tail" action, which both reuse js/settings.js's openForm/saveForm.
   (Settings also declares these inline; identical values — harmless override.)
   ─────────────────────────────────────────────────────────────────────── */
.st-modal-overlay{ position:fixed; inset:0; background:rgba(11,27,43,.42); z-index:800;
  opacity:0; visibility:hidden; transition:opacity .3s ease, visibility 0s linear .3s; }
.st-modal-overlay.open{ opacity:1; visibility:visible; transition:opacity .3s ease, visibility 0s; }
.st-modal{ position:absolute; top:0; right:0; height:100%; width:min(472px,100%); background:#fff;
  display:flex; flex-direction:column; box-shadow:-20px 0 60px -24px rgba(11,27,43,.5);
  transform:translateX(100%); transition:transform .3s cubic-bezier(.32,.72,0,1); will-change:transform; }
.st-modal-overlay.open .st-modal{ transform:translateX(0); }
.st-modal-grip{ display:none; }
.st-modal-hd{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 20px;
  border-bottom:1px solid rgba(11,27,43,.07); }
.st-modal-hd h3{ margin:0; font-size:17px; font-weight:600; color:var(--ink,#0B1B2B); text-transform:capitalize; }
.st-modal-sub{ font-size:11.5px; color:#8C8A82; margin-top:4px; line-height:1.4; }
.st-modal-close{ background:transparent; border:0; font-size:24px; line-height:1; color:#8C8A82; cursor:pointer; flex:none; margin-top:-2px; }
.st-modal-close:hover{ color:var(--ink,#0B1B2B); }
.st-modal-body{ padding:18px 20px; display:grid; grid-template-columns:repeat(6,1fr); gap:15px 12px;
  align-content:start; flex:1; overflow:auto; }
.st-field{ min-width:0; }
.st-field label{ display:block; font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:#6E6A62; margin-bottom:5px; }
.st-input{ width:100%; font-family:inherit; font-size:15px; color:var(--ink-text,#1A1A1A); background:#fff;
  border:1px solid rgba(11,27,43,.16); border-radius:10px; padding:11px 12px; min-height:44px; outline:none; }
.st-input:focus{ border-color:#A8884F; }
.st-input[readonly]{ background:var(--paper,#F4EFE6); color:#6E6A62; }
textarea.st-input{ min-height:auto; }
select.st-input{ -webkit-appearance:none; appearance:none; padding-right:34px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6A62' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center; background-size:12px; }
.st-field-hint{ grid-column:span 6; font-size:11px; color:#8C8A82; margin-top:4px; }
.st-formsec{ grid-column:span 6; font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:#8C8A82; margin-top:4px; padding-top:13px; border-top:1px solid rgba(11,27,43,.08);
  display:flex; flex-direction:column; gap:3px; }
.st-formsec-note{ font-size:11px; font-weight:400; letter-spacing:0; text-transform:none; color:#A8884F; }
.st-seg{ display:flex; width:100%; background:rgba(11,27,43,.05); border-radius:12px; padding:3px; gap:3px; }
.st-seg-opt{ flex:1; border:0; background:transparent; font-family:inherit; font-size:12.5px; font-weight:600;
  color:#6E6A62; padding:8px 8px; border-radius:9px; cursor:pointer; min-height:40px; white-space:nowrap;
  transition:background .14s,color .14s; }
.st-seg-opt:hover{ color:var(--ink,#0B1B2B); }
.st-seg-opt.current{ background:var(--ink,#0B1B2B); color:#F4EFE6; }
.st-photo{ position:relative; width:100%; height:104px; border:1.5px dashed rgba(11,27,43,.22); border-radius:12px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; overflow:hidden;
  background:var(--paper,#F4EFE6); transition:border-color .14s; }
.st-photo:hover{ border-color:#A8884F; }
.st-photo.is-locked{ cursor:not-allowed; }
.st-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.st-photo-add{ display:flex; flex-direction:column; align-items:center; gap:4px; color:#8C8A82; font-size:12px; font-weight:500; text-align:center; padding:0 8px; }
.st-photo-plus{ font-size:20px; line-height:1; color:#A8884F; }
.st-photo-x{ position:absolute; top:7px; right:7px; width:24px; height:24px; border-radius:50%; border:0;
  background:rgba(11,27,43,.6); color:#fff; font-size:15px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; }
.st-photo-x:hover{ background:#0B1B2B; }
.st-photo-busy{ position:absolute; inset:0; background:rgba(255,255,255,.8); display:flex; align-items:center; justify-content:center; }
.st-photo-spin{ width:22px; height:22px; border:2.5px solid rgba(11,27,43,.2); border-top-color:var(--navy,#2E5680);
  border-radius:50%; animation:st-spin .7s linear infinite; }
@keyframes st-spin{ to{ transform:rotate(360deg); } }
.st-notes{ display:flex; flex-direction:column; gap:7px; }
.st-note-row{ display:flex; gap:8px; align-items:center; }
.st-note-row::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--navy,#2E5680); flex:none; }
.st-note-inp{ flex:1; min-height:40px; font-size:14px; }
.st-note-x{ flex:none; background:none; border:0; cursor:pointer; color:#8C8A82; font-size:20px; line-height:1; padding:2px 6px; }
.st-note-x:hover{ color:#9A3B33; }
.st-note-add{ margin-top:9px; font-family:inherit; font-size:13px; font-weight:600; color:var(--navy,#2E5680);
  background:rgba(11,27,43,.05); border:1px solid rgba(11,27,43,.10); border-radius:11px; padding:7px 14px; cursor:pointer; }
.st-note-add:hover{ background:rgba(11,27,43,.09); }
.st-modal-link{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:2px;
  padding:11px 13px; font-size:13px; font-weight:600; color:var(--navy,#2E5680); text-decoration:none;
  background:rgba(46,86,128,.06); border:1px solid rgba(46,86,128,.16); border-radius:11px; }
.st-modal-link:hover{ background:rgba(46,86,128,.11); }
.st-modal-link svg{ flex:none; stroke:currentColor; }
.st-modal-err{ display:none; color:#9A3B33; font-size:12.5px; padding:0 18px; }
.st-modal-ft{ display:flex; justify-content:flex-end; gap:8px; padding:14px 18px; border-top:1px solid rgba(11,27,43,.07); }
.st-btn{ font-family:inherit; font-size:13.5px; font-weight:600; border-radius:11px; padding:9px 16px; cursor:pointer; border:1px solid transparent; }
.st-btn--ghost{ background:transparent; border-color:rgba(11,27,43,.16); color:#6E6A62; }
.st-btn--primary{ background:var(--ink,#0B1B2B); color:#F4EFE6; }
.st-btn--danger{ background:transparent; border-color:rgba(154,59,51,.4); color:#9A3B33; }
.st-btn--danger:hover{ background:rgba(154,59,51,.08); }
.st-btn[disabled]{ opacity:.5; cursor:not-allowed; }
.st-btn:active{ transform:scale(.98); }
@media (max-width:900px){ .st-modal{ width:min(440px,100%); } }
@media (max-width:560px){
  .st-modal{ top:auto; bottom:0; left:0; right:0; height:auto; max-height:92vh; width:100%;
    border-radius:22px 22px 0 0; transform:translateY(100%);
    box-shadow:0 -18px 50px -16px rgba(11,27,43,.5); }
  .st-modal-overlay.open .st-modal{ transform:translateY(0); }
  .st-modal-grip{ display:block; width:38px; height:4px; border-radius:980px;
    background:rgba(11,27,43,.18); margin:10px auto 0; }
  .st-modal-hd{ padding:12px 18px 14px; }
  .st-modal-body{ padding:16px 18px; gap:14px 10px; }
  .st-input{ font-size:16px; }
  .st-modal-ft{ padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); }
  .st-modal-ft .st-btn{ flex:1; min-height:48px; }
  .st-modal-ft .st-btn--danger{ flex:0 0 auto; }
}
.st-toast{ position:fixed; left:50%; bottom:26px; transform:translate(-50%,18px); opacity:0; pointer-events:none;
  background:var(--ink,#0B1B2B); color:#F4EFE6; font-size:13.5px; font-weight:500; padding:11px 18px; border-radius:12px;
  box-shadow:0 10px 30px -8px rgba(11,27,43,.5); transition:opacity .25s, transform .25s; z-index:900; }
.st-toast.show{ opacity:1; transform:translate(-50%,0); }

/* Aircraft-type type-ahead inside the record-editor drawer (replaces the
   unstyleable native <datalist>). Matches the drawer's white-card language. */
.st-typeahead{ position:relative; }
.st-ac-drop{ position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:50;
  background:#fff; border:1px solid rgba(11,27,43,.12); border-radius:11px;
  box-shadow:0 16px 40px -14px rgba(11,27,43,.45); max-height:266px; overflow-y:auto;
  padding:5px; display:none; }
.st-ac-drop.open{ display:block; }
.st-ac-item{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 11px; border-radius:8px; cursor:pointer; transition:background .12s; }
.st-ac-item:hover, .st-ac-item.active{ background:rgba(11,27,43,.05); }
.st-ac-name{ font-size:14px; color:var(--ink-text,#1A1A1A); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.st-ac-item:hover .st-ac-name, .st-ac-item.active .st-ac-name{ color:var(--ink,#0B1B2B); }
.st-ac-icao{ font-family:var(--mono,'Spline Sans Mono'); font-size:11px; font-weight:600;
  letter-spacing:.04em; color:#A8884F; flex:none; }

/* ── WebKit date/time inputs — app-wide normalization (2026-07-06) ──────────
   iOS Safari gives date/time inputs their own box model: system appearance,
   flex-CENTERED value text, and a value area that COLLAPSES while the field
   is empty — so an untouched date field (doc Issued/Expires, leg date,
   quotes range filter) looks visibly different from its sibling text fields
   until it is focused or filled. Normalize to the text-input model here in
   the shared substrate; every page already styles its own background /
   border / padding (.fld, .ls-in, .q-cmd, quote.html input rules), so
   stripping the native appearance never leaves an unstyled field. */
input[type="date"],input[type="time"],input[type="datetime-local"]{
  -webkit-appearance:none;appearance:none;display:block;line-height:normal;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value{
  text-align:left;margin:0;min-height:1.2em;
}
