/* =========================================================
   GVAW — Tactical Military Aviation theme (loaded after site.css)
   Navy / white airforce palette, Saira + IBM Plex Mono.
   Change the main colours through the variables in :root.
   ========================================================= */
:root {
  --gunmetal: #1c1f22;     /* charcoal (section background) */
  --gunmetal-2: #22262a;   /* alternating section charcoal */
  --gunmetal-3: #2c3136;   /* card gunmetal */
  --olive: #3f4a23;        /* olive drab */
  --olive-2: #5d6b33;
  --khaki: #c8b88a;        /* khaki accent */
  --sand: #ece4cc;         /* main text */
  --navy-deep: #141618;
  --hostile: #d7262e;
  --amber: #e0a03a;
  --ok: #46d36b;
  --muted: #9a9585;
  --font-head: 'Saira Semi Condensed', 'Arial Narrow', sans-serif;
  --font-ui: 'Saira', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --notch: var(--gunmetal);

  /* map the legacy tokens (style.css / site.css / admin.css) onto the palette */
  --navy-950: #1c1f22;
  --navy-900: #22262a;
  --navy-800: #22262a;
  --navy-700: #2c3136;
  --navy-600: #3a4046;
  --blue-400: #c8b88a;
  --blue-300: #c8b88a;
  --gold: #c8b88a;
  --gold-light: #ece4cc;
  --ink: #ece4cc;
  --ink-dim: #9a9585;
  --line: rgba(200,184,138,.18);
  --radius: 0px;
  --maxw: 1280px;
  --font: var(--font-ui);
  --red: #d7262e;
  --red-light: #ef3a42;
  --sky: #c8b88a;
  --hud: #46d36b;
}
:root[data-theme="light"] {
  --gunmetal: #f3f5f9; --gunmetal-2: #ffffff; --gunmetal-3: #e6ebf2; --olive: #d5dce7; --olive-2: #9aa6bd;
  --khaki: #2c4a6e; --sand: #1c1f22; --muted: #4e5a72; --notch: #f3f5f9;
  --navy-950: #f3f5f9; --navy-900: #ffffff; --navy-800: #ffffff; --navy-700: #e6ebf2; --navy-600: #d5dce7;
  --blue-400: #2c4a6e; --blue-300: #2c4a6e; --gold: #2c4a6e; --gold-light: #1c1f22;
  --ink: #1c1f22; --ink-dim: #4e5a72; --line: rgba(20,22,24,.14);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { background: var(--gunmetal); color: var(--sand); font-family: var(--font-ui); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
a { color: var(--khaki); }
a:hover { color: var(--sand); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: 1px; color: var(--sand); text-transform: uppercase; }
h3 { font-weight: 700; letter-spacing: 2px; font-size: 1.25rem; }
h4 { font-weight: 700; letter-spacing: 2px; }
p { color: var(--muted); }
.lede { color: #d2d9e6; }
:root[data-theme="light"] .lede { color: var(--muted); }
::selection { background: var(--khaki); color: var(--gunmetal); }
.container { max-width: var(--maxw); padding: 0 40px; }
.small { font-size: .9rem; }

.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: 3px; color: var(--khaki); text-transform: uppercase; }
.eyebrow::before { display: none; }
.eyebrow.center { justify-content: center; }
.tag { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--khaki); border: 1px solid var(--line); background: var(--gunmetal); border-radius: 0; padding: .2rem .6rem; }
.pill { border-radius: 0; font-family: var(--font-mono); font-weight: 500; letter-spacing: 2px; font-size: .7rem; padding: .15rem .6rem; }
.pill.open, .pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.brief, .pill.warn, .pill.gold { color: var(--amber); border-color: var(--amber); }
.link-more { display: inline-block; margin-top: 1.4rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: 2px; color: var(--khaki); }
.link-more:hover { color: var(--sand); }
.i-inline { width: 1.1em; height: 1.1em; vertical-align: -.18em; color: var(--khaki); }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 0;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: 3px; text-transform: uppercase;
  padding: .85rem 1.8rem; border: 2px solid var(--sand); background: transparent; color: var(--sand); transition: .25s;
}
.btn:hover { background: var(--sand); color: var(--gunmetal); }
.btn:not(.primary):not(.btn-gold)::before, .btn:not(.primary):not(.btn-gold)::after { content: ""; position: absolute; width: 12px; height: 2px; background: var(--notch); transition: .25s; }
.btn:not(.primary):not(.btn-gold)::before { top: -2px; right: 22%; }
.btn:not(.primary):not(.btn-gold)::after { bottom: -2px; left: 22%; }
.btn:hover::before, .btn:hover::after { opacity: 0; }
.btn.primary, .btn-gold { background: var(--hostile); border-color: var(--hostile); color: #fff; }
.btn.primary:hover, .btn-gold:hover { background: var(--red-light); border-color: var(--red-light); color: #fff; }
.nav-actions .btn-gold { background: var(--olive); border-color: var(--olive-2); color: var(--sand); }
.nav-actions .btn-gold:hover { background: var(--olive-2); border-color: var(--khaki); color: #fff; }
:root[data-theme="light"] .btn.primary, :root[data-theme="light"] .btn-gold { color: #fff; }
:root[data-theme="light"] .btn.primary:hover, :root[data-theme="light"] .btn-gold:hover { color: var(--sand); }
.btn-outline { border-color: var(--khaki); color: var(--sand); }
.btn-outline:hover { background: var(--khaki); border-color: var(--khaki); color: var(--gunmetal); }
.btn-lg { padding: 1rem 2rem; font-size: .95rem; }
.btn-sm { padding: .45rem 1rem; font-size: .78rem; letter-spacing: 2px; border-width: 1px; }
.btn-sm::before, .btn-sm::after { display: none; }
.btn .arr { transition: .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- header / nav ---------- */
header.site { position: sticky; top: 0; z-index: 100; background: rgba(20,22,24,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.nav-wrap { display: flex; align-items: center; gap: 1.4rem; padding: 12px 40px; min-height: 0; transition: padding .3s; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { width: 44px; height: 44px; max-height: none; margin: 0; object-fit: contain; filter: none; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: 3px; line-height: 1; color: #fff; display: block; }
.brand-text small { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 2px; color: var(--khaki); margin-top: 4px; text-transform: uppercase; }
nav.primary { flex: 1; min-width: 0; }
nav.primary ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 2px; }
nav.primary a { display: block; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; padding: 6px 10px; color: #fff; border: 1px solid transparent; border-radius: 0; background: none; transition: .2s; }
nav.primary a:hover { border-color: var(--khaki); color: var(--khaki); background: none; }
nav.primary a.active { border-color: rgba(200,184,138,.5); color: var(--khaki); background: rgba(200,184,138,.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .clock { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--khaki); color: var(--khaki); font-family: var(--font-head); letter-spacing: 2px; padding: 6px 12px; cursor: pointer; border-radius: 0; width: auto; height: auto; font-size: 13px; }

/* home: header floats over the banner until scrolled */
.page-home header.site { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home header.site.scrolled { background: rgba(20,22,24,.94); border-bottom-color: var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.page-home header.site.scrolled .nav-wrap { padding-top: 8px; padding-bottom: 8px; }

/* ---------- HOME HERO / VIDEO BANNER ---------- */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; display: grid; place-items: center; isolation: isolate; background: var(--navy-deep); padding: 0; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(.4) sepia(.2) hue-rotate(40deg) contrast(1.1) brightness(.6); }
.yt-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; pointer-events: none; }
.yt-bg iframe { position: absolute; top: 50%; left: 50%; border: 0; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100vh;
  transform: translate(-50%, -50%) scale(1.2); opacity: 0; transition: opacity 1.6s ease; filter: grayscale(.4) sepia(.2) hue-rotate(40deg) contrast(1.1) brightness(.75); }
.yt-bg.ready iframe { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 60% 30%, #3a3f33 0%, #1f2326 45%, #141618 100%); }
.hero-tint { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,22,24,.9) 0%, rgba(20,22,24,.6) 35%, rgba(20,22,24,.12) 60%, rgba(20,22,24,.05) 100%), linear-gradient(180deg, transparent 60%, var(--gunmetal) 100%); }
.radar-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 69% 55%, rgba(14,16,18,.5) 0, rgba(14,16,18,.35) 30%, transparent 48%); }
.contour { position: absolute; inset: 0; z-index: 1; opacity: .08; pointer-events: none; width: 100%; height: 100%; }
.radar-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: .92; }
.coords { position: absolute; z-index: 3; text-shadow: 0 0 6px #000, 0 0 2px #000; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); opacity: .7; line-height: 1.6; }
.coords.tl { top: 100px; left: 40px; }
.coords.tr { top: 100px; right: 40px; text-align: right; }
.coords.bl { bottom: 40px; left: 40px; }
.coords.br { bottom: 40px; right: 40px; text-align: right; }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: 1280px; padding: 0 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.classif { display: inline-flex; font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; margin-bottom: 24px; color: #fff; }
.classif span { padding: 5px 12px; border: 1px solid var(--khaki); }
.hero h1 { font-family: var(--font-head); font-weight: 800; font-style: italic; color: var(--sand); font-size: clamp(52px, 8.5vw, 118px); line-height: .92; text-transform: uppercase; letter-spacing: 2px; transform: rotate(-4deg); transform-origin: left center; margin: 38px 0 14px; color: #fff; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--sand); }
.hero h1 .accent { color: var(--khaki); }
.hero p.lead { margin: 24px 0 36px; max-width: 540px; color: #e3e8f2; font-size: clamp(16px, 1.8vw, 19px); }
.hero .btn { color: var(--sand); border-color: var(--sand); --notch: #1c1f22; }
.hero .btn.primary { color: #fff; }

.status-panel { position: absolute; z-index: 3; right: 40px; bottom: 90px; width: 300px; background: rgba(20,22,24,.72); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--font-mono); font-size: 12px; color: #fff; }
.status-panel header { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--khaki); letter-spacing: 2px; }
.status-panel header i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 8px var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.status-row { display: grid; grid-template-columns: 1fr auto; padding: 11px 18px; border-bottom: 1px dashed var(--line); }
.status-row:last-of-type { border-bottom: none; }
.status-row span { color: var(--muted); }
.status-row b { font-weight: 500; color: #fff; }
.status-row b.ok { color: var(--ok); }
.status-row b.warn { color: var(--amber); }
.status-link { display: block; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--khaki); letter-spacing: 2px; font-size: 11px; }
.scroll-down { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid var(--khaki); border-radius: 14px; }
.scroll-down::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--khaki); transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translate(-50%, 14px); opacity: 0; } }
.hb-sound { position: absolute; z-index: 4; left: 40px; bottom: 80px; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); background: rgba(20,22,24,.6); border: 1px solid var(--line); padding: 6px 12px; }
.hb-sound:hover { color: #fff; border-color: var(--khaki); }
.hb-sound .hb-sound-on, .hb-sound[aria-pressed="true"] .hb-sound-off { display: none; }
.hb-sound[aria-pressed="true"] .hb-sound-on { display: inline; }

/* ---------- SECTIONS ---------- */
.sec { position: relative; padding: 120px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 60px; border-bottom: 1px solid var(--line); padding-bottom: 24px; flex-wrap: wrap; }
.sec-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--khaki); margin-bottom: 8px; text-transform: uppercase; }
.sec-title { font-family: var(--font-head); font-weight: 800; letter-spacing: 1px; font-size: clamp(40px, 5.5vw, 72px); line-height: 1; text-transform: uppercase; margin: 0; color: var(--sand); }
.sec-title span { color: var(--khaki); }
.sec-desc { max-width: 420px; color: var(--muted); margin: 0; }

/* about */
.about { background: var(--gunmetal-2); --notch: var(--gunmetal-2); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.about-main { grid-column: span 7; }
.about-main p { color: #d2d9e6; margin-bottom: 16px; }
.about-main p.big { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.3; color: var(--sand); text-transform: uppercase; letter-spacing: .5px; }
.about-main p.big span { color: var(--khaki); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 28px; }
.about-stats div { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.about-stats div + div { border-left: 1px solid var(--line); }
.about-stats b { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--sand); }
.about-stats span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.about .timeline { grid-column: span 5; display: block; border-left: 2px solid var(--olive); padding-left: 30px; align-self: start; }
.tl-item { position: relative; display: block; padding-bottom: 34px; color: inherit; }
.tl-item::before { content: ""; position: absolute; left: -39px; top: 6px; width: 16px; height: 16px; background: var(--gunmetal-2); border: 2px solid var(--olive-2); transform: rotate(45deg); transition: .2s; }
a.tl-item:hover::before { border-color: var(--khaki); }
.tl-item.now::before { background: #fff; border-color: #fff; }
.tl-item b { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--khaki); display: block; line-height: 1; }
.tl-item h4 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 18px; margin: 6px 0 4px; }
.tl-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* operations */
.ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ops-3 { grid-template-columns: repeat(3, 1fr); }
.op { background: var(--gunmetal-2); border: 1px solid var(--line); padding: 30px 26px 26px; position: relative; transition: .3s; overflow: hidden; display: flex; flex-direction: column; }
.op::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.op:hover { border-color: var(--khaki); transform: translateY(-6px); background: var(--gunmetal-3); }
.op .icon { width: 52px; height: 52px; border: 1px solid var(--khaki); display: grid; place-items: center; margin-bottom: 22px; color: var(--khaki); }
.op .icon svg { width: 28px; height: 28px; }
.op h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.op p { color: var(--muted); font-size: 16px; flex-grow: 1; }
.op .freq { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--amber); display: flex; justify-content: space-between; }
.news-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: var(--khaki); margin-bottom: 14px; }
.op.news-card h3 { font-size: 20px; }

.schedule { margin-top: 50px; border: 1px solid var(--line); background: var(--navy-deep); font-family: var(--font-mono); font-size: 14px; overflow-x: auto; }
.schedule table { width: 100%; border-collapse: collapse; min-width: 640px; }
.schedule th { text-align: left; font-weight: 500; color: var(--khaki); letter-spacing: 2px; font-size: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--gunmetal-2); }
.schedule td { padding: 14px 20px; border-bottom: 1px dashed var(--line); color: #fff; }
.schedule tr:last-child td { border-bottom: none; }
.schedule tr:hover td { background: rgba(200,184,138,.05); }
.schedule caption { caption-side: bottom; text-align: left; padding: 10px 20px; color: var(--muted); font-size: 12px; }

/* CTA — Remove Before Flight */
section.cta { --notch: var(--olive); position: relative; background: var(--olive); overflow: hidden; padding: 130px 0; }
section.cta::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: repeating-linear-gradient(45deg, #000 0 2px, transparent 2px 12px); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
section.cta .sec-tag { color: #fff; }
section.cta blockquote { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; text-transform: uppercase; color: #fff; }
section.cta blockquote span { color: var(--khaki); }
section.cta p { margin: 22px 0 34px; color: #d2d9e6; max-width: 560px; }
section.cta .btn { border-color: #fff; color: #fff; }
section.cta .btn:hover { background: #fff; color: var(--navy-deep); }
.rbf-wrap { display: flex; justify-content: center; }
.rbf { width: 240px; transform-origin: 50% 0; animation: swing 4s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
.cta-compact { padding: 90px 0; }
.cta-compact .rbf { width: 170px; }

/* ---------- FOOTER ---------- */
footer.site { background: var(--navy-deep); padding: 0 0 30px; border-top: 1px solid var(--line); margin-top: 0; color: var(--muted); }
footer.site > .container { padding-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-grid h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--khaki); margin: 0 0 16px; font-weight: 500; }
.foot-grid p, .foot-grid li { color: var(--muted); font-size: 15px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand h5 { margin: 0; }
.footer-logo { width: 48px; height: auto; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }

/* ---------- INNER PAGE HERO ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 110px 0 70px; background: var(--navy-deep); border-bottom: 1px solid var(--line); color: #fff; --notch: var(--navy-deep); }
.ph-bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center 35%; filter: grayscale(.4) sepia(.2) hue-rotate(40deg) contrast(1.1) brightness(.6); opacity: .55; }
.ph-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(20,22,24,.95) 0%, rgba(20,22,24,.7) 45%, rgba(20,22,24,.3) 100%), linear-gradient(180deg, transparent 55%, var(--navy-deep) 100%); }
.page-hero .contour { z-index: -1; opacity: .1; }
.page-hero .coords.br { bottom: 26px; }
.page-hero.has-photo .ph-bg { filter: brightness(.9); opacity: 1; }
.ph-credit { position: absolute; right: 40px; bottom: 8px; z-index: 3; max-width: calc(100% - 80px); font-family: var(--font-mono); font-size: 9px; letter-spacing: .5px; text-align: right; color: rgba(236,228,204,.55); text-decoration: none; text-shadow: 0 0 4px #000; }
.ph-credit:hover { color: #c8b88a; text-decoration: underline; }
.page-hero .container { position: relative; }
.page-hero .sec-title { color: #fff; font-size: clamp(40px, 6vw, 80px); max-width: 980px; }
.page-hero .lede { margin: 22px 0 0; max-width: 640px; color: #d2d9e6; font-size: 1.08rem; }
.page-hero .lede a { color: #fff; text-decoration: underline; }
.page-hero .btn { color: #fff; border-color: #fff; }
.page-hero .btn-gold { color: #fff; }
.page-hero .btn-gold:hover { color: #fff; }
.page-hero.center { text-align: center; }
.page-hero.center .sec-title, .page-hero.center .lede { margin-left: auto; margin-right: auto; }
.page-hero.center .hero-actions { justify-content: center; }
.page-hero .crumbs { color: var(--muted); }

/* ---------- GENERIC PAGE BLOCKS ---------- */
.pg { padding: 100px 0; }
.pg.alt { background: var(--gunmetal-2); --notch: var(--gunmetal-2); border: 0; }
.pg-head { display: block; margin-bottom: 50px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.pg-head h2, .pg .narrow > h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1; margin: 4px 0 12px; }
.pg-head p { max-width: 640px; margin: 0; }
.narrow { max-width: 900px; }

.card, .feature, .panel, .step, .person, .event, .tl-card, .shot, .stat-tile, .doc-shell, .hist-card {
  border-radius: 0; border: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px) top / 100% 4px no-repeat, var(--gunmetal-2);
  box-shadow: none; transition: .3s;
}
.pg.alt .card, .pg.alt .feature { background-color: var(--gunmetal); }
.card:hover, .feature:hover, a.event:hover { border-color: var(--khaki); transform: translateY(-4px); background-color: var(--gunmetal-3); box-shadow: none; }
.feature { padding: 30px 26px 26px; }
.feature h3 { font-size: 22px; margin: 0 0 8px; }
.feature p { font-size: 15.5px; }
.feature .ic { width: 52px; height: 52px; border-radius: 0; background: none; border: 1px solid var(--khaki); display: grid; place-items: center; color: var(--khaki); margin-bottom: 22px; font-size: 1.4rem; clip-path: none; }
.feature .ic svg { width: 28px; height: 28px; filter: none; }
.feature:hover .ic { background: none; color: var(--sand); border-color: var(--sand); }
.feature .tag { margin-bottom: 12px; }
a.feature { color: inherit; display: block; }
a.feature .go, .channel-card .go, .hist-card .go { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--amber); }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-xl { padding: 40px 36px; }
.feature-xl h3 { font-size: 32px; }
.feature-row { display: flex; gap: 24px; align-items: flex-start; }
.feature-row .ic { flex-shrink: 0; margin-bottom: 0; }
.stack-list { display: grid; gap: 16px; }
.channel-card { position: relative; }
.channel-card::after { content: ''; position: absolute; right: 22px; top: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.6s infinite; }
.cards { gap: 20px; }

/* leadership plates */
.dogtag { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 0; background: var(--gunmetal-2); box-shadow: none; transition: .3s; }
.dogtag::before { display: none; }
.dogtag:hover { border-color: var(--khaki); transform: translateY(-4px); }
.dt-avatar { flex-shrink: 0; width: 60px; height: 60px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--gunmetal); background: var(--khaki); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); box-shadow: none; }
.dt-body { display: flex; flex-direction: column; }
.dt-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); text-transform: uppercase; }
.dt-body b { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: 1px; color: var(--sand); line-height: 1.1; transform: none; }
.dt-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.dt-icon { position: absolute; right: -8px; bottom: -12px; width: 90px; height: 90px; color: var(--khaki); opacity: .1; }

/* squadron cards (squadrons page) */
.sq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sq-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 34px 30px 28px; border: 1px solid var(--line); border-radius: 0;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px, var(--gunmetal-2); transition: .3s; }
.sq-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.sq-card:hover { border-color: var(--khaki); transform: translateY(-6px); }
.sq-watermark { position: absolute; z-index: -1; right: -30px; bottom: -30px; width: 200px; height: 200px; color: var(--khaki); opacity: .08; }
.sq-card:hover .sq-watermark { opacity: .14; }
.sq-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sq-patch { flex-shrink: 0; width: 60px; height: 60px; display: grid; place-items: center; color: var(--khaki); border: 1px solid var(--khaki); }
.sq-patch svg { width: 32px; height: 32px; }
.sq-card:hover .sq-patch { color: var(--sand); border-color: var(--sand); }
.sq-meta { display: flex; flex-direction: column; gap: 4px; }
.sq-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--olive-2); }
.sq-cat { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--khaki); }
.sq-code { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; margin: 0 0 6px; color: var(--sand); }
.sq-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.sq-desc { color: #d2d9e6; margin-bottom: 18px; flex-grow: 1; }
:root[data-theme="light"] .sq-desc { color: var(--muted); }
.sq-airframes { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.sq-airframes li { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; padding: 4px 10px; background: var(--gunmetal); border: 1px solid var(--line); color: var(--khaki); }
.sq-card-lg .sq-code { font-size: 56px; }

/* schedule page: departures board */
.flight-board { border: 1px solid var(--line); background: var(--navy-deep); font-family: var(--font-mono); overflow: hidden; color: #fff; border-radius: 0; }
.fb-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--gunmetal-2); border-bottom: 1px solid var(--line); }
.fb-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: 3px; text-transform: uppercase; }
.fb-title svg { width: 24px; height: 24px; color: var(--khaki); transform: rotate(45deg); }
.fb-clock { font-size: 12px; letter-spacing: 2px; color: var(--khaki); }
.fb-row { display: grid; grid-template-columns: 120px 120px minmax(0, 1fr) 200px 150px; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px dashed var(--line); }
.fb-row:not(.fb-labels):hover { background: rgba(200,184,138,.05); }
.fb-labels { font-size: 12px; letter-spacing: 2px; color: var(--khaki); background: var(--gunmetal-2); border-top: 0; text-transform: uppercase; }
.fb-day, .fb-time { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.fb-day { color: var(--khaki); }
.fb-sortie b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: 2px; text-transform: uppercase; }
.fb-sortie small { display: block; color: var(--muted); font-family: var(--font-ui); font-size: 14px; margin-top: 2px; }
.fb-type { font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.fb-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; color: var(--ok); border: 1px solid var(--ok); padding: 2px 10px; justify-self: start; text-transform: uppercase; }
.fb-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.flight-board .empty-state { margin: 20px; }
.fb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-family: var(--font-mono); }
.fb-filters a { padding: 6px 14px; border: 1px solid var(--line); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.fb-filters a:hover { color: var(--sand); border-color: var(--khaki); }
.fb-filters a.active { color: var(--gunmetal); background: var(--sand); border-color: var(--sand); }
a.fb-row { color: inherit; text-decoration: none; }
.fb-status.warn { color: var(--amber); border-color: var(--amber); }
.fb-status.warn i { background: var(--amber); }

/* join: pipeline */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pipeline::before { content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.pl-step { position: relative; }
.pl-badge { position: relative; width: 60px; height: 60px; margin: 0 0 22px; display: grid; place-items: center; color: var(--khaki); background: var(--gunmetal-2); border: 2px solid var(--khaki); transform: rotate(45deg) scale(.82); transition: .3s; }
.pl-badge svg { width: 26px; height: 26px; transform: rotate(-45deg); }
.pl-badge span { display: none; }
.pl-step:hover .pl-badge { background: var(--sand); color: var(--gunmetal); }
.pl-step h3 { font-size: 22px; margin-bottom: 6px; }
.pl-step p { font-size: 15px; }

/* archive: history timeline */
.history { position: relative; display: block; border-left: 2px solid var(--olive); padding-left: 34px; }
.hist-item { position: relative; display: block; padding-bottom: 28px; color: inherit; }
.hist-item::before { content: ""; position: absolute; left: -43px; top: 10px; width: 16px; height: 16px; background: var(--gunmetal); border: 2px solid var(--olive-2); transform: rotate(45deg); transition: .2s; }
.hist-item:hover::before { background: #fff; border-color: #fff; }
.hist-year { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--khaki); margin-bottom: 10px; }
.hist-node { display: none; }
.hist-card { padding: 26px 24px 22px; }
.hist-item:hover .hist-card { border-color: var(--khaki); background-color: var(--gunmetal-3); transform: translateX(4px); }
.hist-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; }
.hist-card h3 { font-size: 24px; margin: 0 0 6px; }

/* media */
.shot { margin: 0; overflow: hidden; }
.shot .frame { position: relative; overflow: hidden; background: var(--navy-deep); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.shot .frame img, .shot .frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform 5s ease; }
.shot:hover .frame img { transform: scale(1.06); }
.shot-empty { width: 48px; height: 48px; color: var(--olive-2); }
.shot-badge { position: absolute; left: 12px; top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: #fff; background: rgba(20,22,24,.75); border: 1px solid var(--line); padding: 3px 8px; pointer-events: none; }
.shot .cap { padding: 18px 20px 20px; }
.shot .cap h3 { font-size: 19px; margin: 0 0 4px; }
.shot .cap p { margin: 0; font-size: 14.5px; }
.gun-cam { position: relative; margin: 0 0 30px; overflow: hidden; border: 1px solid var(--line); }
.gun-cam img { width: 100%; display: block; }

/* login */
.login-stage { position: relative; overflow: hidden; isolation: isolate; min-height: 82vh; display: flex; align-items: center; padding: 80px 0; background: var(--navy-deep); }
.auth-wrap { max-width: 480px; margin: 0 auto; }
.auth-card { position: relative; text-align: center; padding: 70px 36px 34px; border: 1px solid var(--line); border-radius: 0; background: rgba(20,22,24,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none; color: #fff; }
.auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.auth-emblem { width: 96px; margin: -118px auto 18px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.auth-card h1 { font-size: 40px; color: #fff; margin: 8px 0; }
.auth-card p { color: var(--muted); }
.auth-btn { width: 100%; margin-top: 18px; }
.auth-btn svg { width: 20px; height: 20px; }
.auth-card .form-note { color: var(--muted); margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.auth-foot a { color: #fff; text-decoration: underline; }

/* 403 */
.restricted-icon { width: 90px; height: 90px; margin: 30px auto 0; color: var(--hostile); filter: drop-shadow(0 0 12px rgba(224,51,63,.5)); animation: pulse 2.4s infinite; }
.restricted-icon svg { width: 100%; height: 100%; }

/* stats quick links */
.stat-link { display: block; color: inherit; }
.stat-link-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; color: var(--khaki); border: 1px solid var(--khaki); }
.stat-link-ic svg { width: 28px; height: 28px; }

/* prose */
.doc-shell { padding: 40px; }
.prose { color: #d2d9e6; }
:root[data-theme="light"] .prose { color: var(--ink); }
.prose h2, .prose h3 { margin-top: 1.8rem; }
.prose a { color: var(--khaki); }

/* empty states */
.empty-state { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border: 1px dashed var(--line); background: var(--gunmetal-2); }
.empty-state p { margin: 0; color: var(--muted); }
.es-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--amber); border: 1px solid var(--amber); padding: 4px 10px; }

/* forms & tables */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=file], select, textarea { border-radius: 0; background: var(--navy-deep); border: 1px solid var(--line); color: var(--sand); font-family: var(--font-ui); }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: #fff; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--khaki); border-color: var(--khaki); }
label { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--khaki); }
fieldset { border-radius: 0; border-color: var(--line); }
legend { font-family: var(--font-mono); color: var(--khaki); letter-spacing: 2px; }
table.data th { font-family: var(--font-mono); font-weight: 500; color: var(--khaki); letter-spacing: 2px; }
.table-wrap, .table-scroll { border-radius: 0; }
.notice, .alert { border-radius: 0; font-family: var(--font-mono); font-size: .85rem; }

/* ==========================================================
   READY ROOM — member area (layouts.member, built on admin.css)
   ========================================================== */
.adm-body { background: var(--gunmetal); font-family: var(--font-ui); }
.adm-side { background: var(--navy-deep); border-right: 1px solid var(--line); }
:root[data-theme="light"] .adm-side { background: #fff; }
.adm-brand .t { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.adm-brand .t small { font-family: var(--font-mono); font-weight: 400; letter-spacing: 2px; color: var(--khaki); }
.adm-brand img { width: 44px; height: 44px; filter: none; }
.adm-group { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 3px; color: var(--olive-2); opacity: 1; }
.adm-link { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; border-radius: 0; border: 1px solid transparent; color: var(--muted); }
.adm-link .ic { display: inline-grid; place-items: center; font-size: 1.15rem; color: var(--khaki); }
.adm-link:hover { background: none; border-color: var(--line); color: var(--sand); }
.adm-link.active, :root[data-theme="light"] .adm-link.active { background: var(--gunmetal-3); color: var(--sand); border-color: transparent; box-shadow: inset 3px 0 0 var(--khaki); }
.adm-user .cs { font-family: var(--font-head); letter-spacing: 1px; }
.adm-user .role { font-family: var(--font-mono); color: var(--khaki); letter-spacing: 1px; }
.adm-top { background: color-mix(in srgb, var(--gunmetal) 90%, transparent); }
.adm-crumb { font-family: var(--font-mono); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }
.adm-crumb b { color: var(--khaki); }
.adm-head h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; transform: none; text-shadow: none; }
.adm-card, .adm-stat, .adm-tile { border-radius: 0; border: 1px solid var(--line); box-shadow: none;
  background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px) top / 100% 4px no-repeat, var(--gunmetal-2); }
.adm-card h3 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 18px; }
.adm-stat .ic { border-radius: 0; color: var(--khaki); font-size: 1.5rem; background: none; border: 1px solid var(--khaki); clip-path: none; }
.adm-stat .num { font-family: var(--font-head); font-weight: 800; color: var(--sand); transform: none; }
.adm-stat .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--khaki); }
.adm-empty .ic { font-size: 2.4rem; color: var(--olive-2); }
.adm-table th { font-family: var(--font-mono); font-weight: 500; letter-spacing: 2px; color: var(--khaki); }
.adm-pill { border-radius: 0; font-family: var(--font-mono); letter-spacing: 1px; }
.adm-flash { border-radius: 0; font-family: var(--font-mono); }
.mem-hero { border-radius: 0; border: 1px solid var(--line); background: radial-gradient(ellipse at 60% 30%, #3a3f33 0%, #1f2326 45%, #141618 100%); box-shadow: none; }
.mem-hero .hero-bg { filter: grayscale(.4) sepia(.2) hue-rotate(40deg) contrast(1.1) brightness(.75); }
.mem-hero .hero-overlay { background: linear-gradient(90deg, rgba(20,22,24,.92) 0%, rgba(20,22,24,.7) 40%, rgba(20,22,24,.2) 100%); }
.mem-hero.has-photo { padding-bottom: 2.2rem; }
.mem-hero.has-photo .hero-bg { filter: brightness(.9); }
.mem-hero .hero-credit { position: absolute; right: 1.8rem; bottom: 8px; z-index: 1; max-width: calc(100% - 3.6rem); font-family: var(--font-mono); font-size: 9px; letter-spacing: .5px; text-align: right; color: rgba(236,228,204,.55); text-decoration: none; text-shadow: 0 0 4px #000; }
.mem-hero .hero-credit:hover { color: #c8b88a; text-decoration: underline; }
.mem-hero .hello { font-family: var(--font-mono); font-weight: 500; letter-spacing: 3px; color: #c8b88a; }
.mem-hero h1 { font-size: clamp(36px, 5vw, 64px); font-style: italic; color: #fff; transform: none; }
.mem-hero .sub { color: #d2d9e6; }
.mem-hero .avatar { border-radius: 0; border: 2px solid #c8b88a; clip-path: none; }
.mem-hero .btn::before, .mem-hero .btn::after { display: none; }
.mem-hero .btn-outline { color: #fff; border-color: rgba(200,184,138,.6); background: rgba(20,22,24,.35); }
.btn-gold .i-inline, .btn.primary .i-inline { color: currentColor; }
.mem-event, .date-chip { border-radius: 0; box-shadow: none; }
.mem-event:hover { border-color: var(--khaki); }
.date-chip .m { color: var(--khaki); font-family: var(--font-mono); }
.date-chip .d { font-family: var(--font-head); font-weight: 800; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .nav-actions .clock { display: none; }
}
@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; }
  .status-panel, .coords { display: none; }
  .radar-bg { opacity: .35; }
  .radar-shade { background: radial-gradient(circle at 50% 50%, rgba(14,16,18,.6) 0, transparent 60%); }
  .ops, .ops-3 { grid-template-columns: repeat(2, 1fr); }
  .about-main, .about .timeline { grid-column: 1 / -1; }
  .cta-grid { grid-template-columns: 1fr; }
  .split-cards, .sq-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .pipeline::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .fb-row { grid-template-columns: 110px 110px minmax(0, 1fr); }
  .fb-type, .fb-status, .fb-labels span:nth-child(n+4) { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-wrap { flex-wrap: wrap; }
  nav.primary { order: 4; width: 100%; flex-basis: 100%; display: none; }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; justify-content: flex-start; padding: 8px 0 12px; }
  nav.primary a { padding: 12px 14px; font-size: 14px; }
  .page-home header.site:not(.scrolled) nav.primary.open { background: rgba(20,22,24,.98); }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-wrap { padding: 10px 16px; }
  .brand-text { font-size: 20px; }
  .brand-text small { display: none; }
  .nav-actions .btn-outline { display: none; }
  .sec, .pg { padding: 84px 0; }
  section.cta { padding: 84px 0; }
  .hero-inner { padding: 0 16px; margin-top: 80px; }
  .ops, .ops-3 { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .about-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .feature-row { flex-direction: column; }
  .fb-labels { display: none; }
  .fb-row { grid-template-columns: 1fr 1fr; }
  .fb-sortie { grid-column: 1 / -1; }
  .page-hero { padding: 80px 0 56px; }
  .page-hero .coords { display: none; }
  .ph-credit { left: 20px; right: 20px; max-width: none; }
  .hb-sound { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rbf, .status-panel header i, .scroll-down::after, .channel-card::after, .fb-status i, .restricted-icon { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   MISSIONS — next operation + operations board (Ready Room)
   ========================================================== */
.op-next {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  min-height: 300px; padding: 40px; margin-bottom: 50px; border: 1px solid var(--line); background: var(--navy-deep); color: #fff;
}
.op-next::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1; background: repeating-linear-gradient(90deg, #c8b88a 0 14px, transparent 14px 20px); }
.op-next-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: grayscale(.4) sepia(.2) hue-rotate(40deg) contrast(1.1) brightness(.6); opacity: .6; }
.op-next-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,24,.95) 0%, rgba(20,22,24,.75) 50%, rgba(20,22,24,.35) 100%); }
.op-next-body { max-width: 680px; }
.op-next .sec-tag { color: #c8b88a; }
.op-next-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; margin: 6px 0 14px; color: #fff; font-style: italic; }
.op-next-summary { color: #d2d9e6; margin: 0 0 18px; }
.op-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.op-meta span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border: 1px solid rgba(200,184,138,.35); background: rgba(20,22,24,.55); color: #fff; }
.op-meta .i-inline { color: #c8b88a; }
.op-next .btn-gold { color: #fff; }
.op-next .btn-gold:hover { color: #fff; }
.op-next .btn-outline { color: #fff; }
.op-next .btn::before, .op-next .btn::after { display: none; }
.op-lock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--amber); }
.op-lock .i-inline { color: var(--amber); }
.op-countdown { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 270px; border: 1px solid rgba(200,184,138,.35); background: rgba(20,22,24,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--font-mono); }
.op-countdown header { grid-column: 1 / -1; padding: 10px 16px; border-bottom: 1px solid rgba(200,184,138,.25); font-size: 11px; letter-spacing: 3px; color: #c8b88a; }
.op-countdown div { display: flex; flex-direction: column; align-items: center; padding: 14px 10px; }
.op-countdown div + div { border-left: 1px dashed rgba(200,184,138,.25); }
.op-countdown b { font-family: var(--font-head); font-weight: 800; font-size: 42px; line-height: 1; color: #fff; }
.op-countdown span { font-size: 10px; letter-spacing: 2px; color: #9aa6bd; margin-top: 4px; }

.op-board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.op-board-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 2px 0 0; }
.op-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--amber); }
.op-board { border: 1px solid var(--line); background: var(--gunmetal-2); margin-bottom: 50px; }
.op-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 110px 160px 150px 170px; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px dashed var(--line); color: var(--sand); font-family: var(--font-mono); font-size: 13px; transition: background .2s; }
.op-row:first-child { border-top: 0; }
a.op-row:hover { background: var(--gunmetal-3); color: var(--sand); }
.op-labels { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--khaki); background: var(--gunmetal); padding-top: 12px; padding-bottom: 12px; }
.op-date { display: flex; flex-direction: column; line-height: 1; }
.op-date b { font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--sand); }
.op-date small { font-size: 10px; letter-spacing: 2px; color: var(--khaki); margin-top: 4px; }
.op-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.op-name em { font-style: normal; font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.op-name strong { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--sand); }
.op-row.locked { opacity: .7; }
.op-board.archived .op-row:not(.op-labels) { opacity: .75; }
.op-board .empty-state { margin: 16px; }
@media (max-width: 1100px) {
  .op-row { grid-template-columns: 80px minmax(0, 1fr) 150px; }
  .op-row > :nth-child(3), .op-row > :nth-child(4), .op-row > :nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .op-next { padding: 28px 20px; }
  .op-countdown { min-width: 0; width: 100%; }
  .op-labels { display: none; }
  .op-row { grid-template-columns: 64px minmax(0, 1fr); }
  .op-row > :nth-child(6) { grid-column: 2; }
}

/* ---------- mission detail ---------- */
.op-back { display: inline-block; margin-bottom: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--khaki); }
.op-back:hover { color: var(--sand); }
.op-detail-hero { min-height: 260px; margin-bottom: 30px; }
.op-detail-hero .op-next-title { font-size: clamp(34px, 5vw, 64px); }
.op-detail-hero .op-meta { margin-bottom: 0; }
.op-detail-hero .op-meta .pill { background: rgba(20,22,24,.55); }
.op-detail-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }

.op-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.op-tabs button {
  flex: 1; min-width: 150px; text-align: left; cursor: pointer; padding: 14px 16px; border: 1px solid var(--line); border-bottom: none;
  background: var(--gunmetal-2); color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; transition: .2s;
}
.op-tabs button small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 2px; color: var(--olive-2); }
.op-tabs button em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--amber); margin-left: 6px; }
.op-tabs button:hover { color: var(--sand); }
.op-tabs button.active { background: var(--gunmetal-3); color: var(--sand); box-shadow: inset 0 3px 0 var(--sand); }
.op-panel { border: 1px solid var(--line); background: var(--gunmetal-3); padding: 30px; min-height: 260px; }
.op-panel-title { font-size: 18px; letter-spacing: 2px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.op-panel .prose + .op-panel-title { margin-top: 28px; }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pkg-card { border: 1px solid var(--line); border-left: 3px solid var(--khaki); background: var(--gunmetal-2); padding: 18px 18px 14px; transition: .2s; }
.pkg-card:hover { border-color: var(--khaki); }
.pkg-card.hostile { border-left-color: var(--hostile); }
.pkg-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.pkg-prio { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--olive-2); }
.pkg-card header b { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: 1px; line-height: 1; color: var(--sand); }
.pkg-aircraft { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.pkg-data { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px dashed var(--line); }
.pkg-data div { padding: 10px 0 2px; }
.pkg-data dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.pkg-data dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--sand); word-break: break-word; }
.pkg-card .side { color: var(--khaki); }
.pkg-card.hostile .side { color: var(--hostile); }

.ato-terminal { border: 1px solid var(--line); background: var(--navy-deep); font-family: var(--font-mono); }
.ato-terminal header { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.ato-terminal header i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); margin-right: 8px; }
.ato-terminal pre { margin: 0; padding: 20px; max-height: 520px; overflow: auto; white-space: pre-wrap; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: #b9f5c9; }

.op-aside { display: grid; gap: 16px; }
.status-panel.op-status { position: static; width: auto; right: auto; bottom: auto; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-deep); color: var(--sand); }
.op-status .status-row:last-of-type { border-bottom: none; }
.roster-row > span { display: flex; align-items: center; gap: 10px; color: var(--sand) !important; }
.roster-av { width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 10px; color: #fff; }
:root[data-theme="light"] .ato-terminal pre { color: #0f5132; }
@media (max-width: 1000px) { .op-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .op-panel { padding: 20px; } .op-tabs button { min-width: calc(50% - 4px); } }

/* ---------- Ready Room sidebar & user menus ---------- */
.adm-nav { gap: 2px; }
.adm-group { margin-top: 1.3rem; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.adm-link { position: relative; padding: .6rem .75rem; }
.adm-link .ic svg { width: 18px; height: 18px; }
.adm-link.locked { color: var(--olive-2); }
.adm-link.locked .ic { color: var(--olive-2); }
.adm-link.locked:hover { color: var(--muted); border-color: var(--line); }
.adm-link .lock { margin-left: auto; display: inline-grid; color: var(--amber); }
.adm-link .lock svg { width: 14px; height: 14px; }
.adm-enlist { display: block; margin: 1.2rem .3rem 0; padding: 14px 14px 12px; border: 1px solid rgba(240,169,46,.4); background: rgba(240,169,46,.06); color: var(--sand); }
.adm-enlist .sec-tag { color: var(--amber); font-size: 10px; margin-bottom: 4px; }
.adm-enlist b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.adm-enlist span:last-child { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.adm-enlist:hover { border-color: var(--amber); color: var(--sand); }
.adm-user { align-items: center; }
.adm-user .avatar { border-radius: 0; }
.adm-user .who { min-width: 0; flex: 1; }
.adm-user .cs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-user-actions { display: flex; gap: 4px; }
.adm-user-actions a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--khaki); }
.adm-user-actions a:hover { border-color: var(--khaki); color: var(--sand); }
.adm-user-actions svg { width: 16px; height: 16px; }
.theme-toggle { display: inline-grid; place-items: center; padding: .4rem .6rem; }
.theme-toggle svg { width: 16px; height: 16px; }

.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); color: #fff; transition: .2s; }
.user-chip:hover { border-color: var(--khaki); color: #fff; }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 0; font-size: 12px; font-weight: 700; }
.uc-text { display: flex; flex-direction: column; line-height: 1.1; }
.uc-text b { font-family: var(--font-head); font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.uc-text small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--khaki); }
@media (max-width: 720px) { .uc-text small { display: none; } }

/* ==========================================================
   THE AIRMAN — roster catalog + pilot service record
   ========================================================== */
.roster-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--gunmetal-2); margin-bottom: 26px; }
.roster-summary > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; }
.roster-summary > div + div { border-left: 1px solid var(--line); }
.roster-summary.roster-summary-5 { grid-template-columns: repeat(5, 1fr); }
.roster-summary svg { grid-row: 1 / span 2; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--khaki); color: var(--khaki); }
.roster-summary b { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; color: var(--sand); }
.roster-summary span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }

.roster-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; padding: 14px; border: 1px solid var(--line); background: var(--navy-deep); }
.rf-search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 12px; border: 1px solid var(--line); background: var(--gunmetal-2); text-transform: none; letter-spacing: 0; }
.rf-search svg { width: 18px; height: 18px; color: var(--khaki); flex-shrink: 0; }
.rf-search input {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 42px; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: transparent; outline: none; box-shadow: none;
  color: var(--sand); font-family: var(--font-ui); font-size: 14px; letter-spacing: .2px; text-transform: none;
  -webkit-appearance: none; appearance: none;
}
.rf-search input::placeholder { color: var(--muted); opacity: 1; }
.rf-search input::-webkit-search-decoration { -webkit-appearance: none; }
.rf-search input::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; opacity: .6;
  background: linear-gradient(45deg, transparent 45%, var(--khaki) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--khaki) 45% 55%, transparent 55%);
}
.rf-search input::-webkit-search-cancel-button:hover { opacity: 1; }
.rf-search { min-height: 44px; cursor: text; }
.rf-search:focus-within { border-color: var(--khaki); }
.roster-filters select { width: auto; min-width: 170px; flex: 0 1 auto; height: 44px; background: var(--gunmetal-2); padding: 0 12px; }
.rf-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.rf-count b { color: var(--sand); font-weight: 500; }

.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pilot-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--gunmetal-2); color: var(--sand); transition: .25s; overflow: hidden; }
.pilot-card::before { content: ""; height: 4px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.pilot-card:hover { border-color: var(--khaki); transform: translateY(-5px); background: var(--gunmetal-3); color: var(--sand); }
.pilot-card[hidden] { display: none; }
.pc-top { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; }
.pc-sqn { color: var(--khaki); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ok); }
.pc-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pc-status.warn { color: var(--amber); }
.pc-status.mute { color: var(--muted); }
.pc-id { display: flex; align-items: center; gap: 14px; padding: 16px; }
.pc-avatar { flex-shrink: 0; width: 62px; height: 62px; display: grid; place-items: center; object-fit: cover; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pc-rank { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--amber); }
.pc-id h3 { font-size: 22px; letter-spacing: 1px; margin: 0 0 6px; word-break: break-word; }
.pc-data { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.pc-data div { padding: 10px 8px; text-align: center; }
.pc-data div + div { border-left: 1px dashed var(--line); }
.pc-data dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.pc-data dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--sand); }
.pc-go { padding: 12px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.pilot-card:hover .pc-go { color: var(--sand); }

.pilot-hero { align-items: center; min-height: 240px; margin-bottom: 24px; }
.pilot-id { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.pilot-avatar { flex-shrink: 0; width: 120px; height: 120px; display: grid; place-items: center; object-fit: cover; font-family: var(--font-head); font-weight: 800; font-size: 40px; color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pilot-hero .op-meta { margin-bottom: 0; }
.pilot-hero .op-meta .pill { background: rgba(20,22,24,.55); }
.pilot-bio { min-height: 0; margin-bottom: 30px; }
.pilot-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); margin: -12px 0 30px; }
.pilot-note b { color: var(--sand); font-weight: 500; }

.service-log { position: relative; margin-bottom: 40px; }
.service-log::before { content: ""; position: absolute; left: 123px; top: 0; bottom: 0; width: 2px; background: var(--olive); }
.sl-item { position: relative; display: grid; grid-template-columns: 90px 44px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 12px 0; color: var(--sand); }
a.sl-item:hover { color: var(--sand); }
a.sl-item:hover .sl-body { border-color: var(--khaki); background: var(--gunmetal-3); }
.sl-date { text-align: right; line-height: 1.1; }
.sl-date b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.sl-date small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.sl-node { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; color: var(--khaki); background: var(--gunmetal); border: 2px solid var(--olive-2); transform: rotate(45deg) scale(.8); }
.sl-node svg { width: 22px; height: 22px; transform: rotate(-45deg); }
.sl-item:first-child .sl-node { background: var(--sand); color: var(--gunmetal); border-color: var(--sand); }
.sl-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); background: var(--gunmetal-2); transition: .2s; }
.sl-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--amber); }
.sl-body strong { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; }
.sl-body small { color: var(--muted); font-size: 13px; }

.badge-group { padding: 12px 18px; border-bottom: 1px dashed var(--line); }
.badge-group:last-child { border-bottom: 0; }
.bg-label { display: block; font-size: 11px; letter-spacing: 2px; color: var(--khaki); margin-bottom: 8px; }
.bg-list { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; padding: 3px 8px; border: 1px solid var(--line); background: var(--gunmetal-2); color: var(--sand); }
.badge-tag.gold { border-color: rgba(240,169,46,.6); color: var(--amber); }
.bg-none { font-size: 12px; color: var(--olive-2); }

@media (max-width: 900px) {
  .roster-summary, .roster-summary.roster-summary-5 { grid-template-columns: 1fr 1fr; }
  .roster-summary > div:nth-child(odd) { border-left: 0; }
  .roster-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .rf-count { margin-left: 0; width: 100%; }
  .roster-filters select { flex: 1 1 100%; }
  .pilot-avatar { width: 84px; height: 84px; font-size: 28px; }
  .service-log::before { left: 21px; }
  .sl-item { grid-template-columns: 44px minmax(0, 1fr); }
  .sl-date { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .sl-node { grid-row: 1 / span 2; grid-column: 1; }
  .sl-body { grid-column: 2; }
}

/* ==========================================================
   COMMAND CENTER — admin panel (layouts.admin, built on admin.css)
   ========================================================== */
.adm-content .adm-table-wrap, .adm-content .adm-search, .adm-content .adm-app, .adm-content .adm-pkg, .adm-content .adm-list,
.adm-content .adm-check, .adm-content .adm-scroll, .adm-content .adm-add, .adm-content .adm-toolbar, .adm-content .adm-split > *,
.adm-content .adm-empty, .adm-content input, .adm-content select, .adm-content textarea, .adm-burger { border-radius: 0; }
.adm-tile { display: flex; flex-direction: column; color: var(--sand); transition: .25s; }
.adm-tile:hover { border-color: var(--khaki); transform: translateY(-4px); background-color: var(--gunmetal-3); color: var(--sand); }
.adm-tile .ic { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--khaki); color: var(--khaki); font-size: 1.5rem; margin-bottom: 14px; }
.adm-tile:hover .ic { color: var(--sand); border-color: var(--sand); }
.adm-tile h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 6px; }
.adm-tile p { font-size: 14px; color: var(--muted); margin: 0; }
.adm-stat .ic svg, .adm-tile .ic svg { width: 1em; height: 1em; }
.adm-table-wrap { border: 1px solid var(--line); background: var(--gunmetal-2); }
.adm-table thead th { background: var(--navy-deep); font-size: 11px; }
.adm-table td { border-bottom: 1px dashed var(--line); }
.adm-table tbody tr:hover td { background: rgba(200,184,138,.05); }
.adm-title-cell strong, .adm-card-title { font-family: var(--font-head); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.adm-card-sub, .adm-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); text-transform: uppercase; }
.adm-search { background: var(--navy-deep); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; }
.adm-search:focus { border-color: var(--khaki); outline: none; }
.adm-count { font-family: var(--font-mono); letter-spacing: 1px; color: var(--muted); }
.btn-ghost { border-radius: 0; font-family: var(--font-head); letter-spacing: 2px; text-transform: uppercase; }
.btn-danger-o { border-radius: 0; font-family: var(--font-head); letter-spacing: 2px; text-transform: uppercase; border-color: var(--hostile); color: var(--hostile); background: transparent; }
.btn-danger-o:hover { background: var(--hostile); color: #fff; }
.adm-link .count { border-radius: 0; font-family: var(--font-mono); background: var(--hostile); }
.adm-sticky-actions { background: color-mix(in srgb, var(--gunmetal) 92%, transparent); border-top: 1px solid var(--line); }
.adm-form h3, .adm-card > h3 { display: flex; align-items: center; gap: 8px; }
.adm-checks label, .adm-check { text-transform: none; letter-spacing: 0; font-family: var(--font-ui); font-size: .9rem; color: var(--sand); }

/* Panels use the full width next to the sidebar (no centred max-width gutter) */
.adm-content { max-width: none; margin: 0; padding: 2rem 2.4rem 3rem; }
.adm-content > .op-board-head.adm-mt { margin-top: 2.6rem; }
@media (max-width: 900px) { .adm-content { padding: 1.3rem 1rem 3rem; } }

/* ==========================================================
   TRAINING — request form + instructor picker modal
   ========================================================== */
.train-form { min-height: 0; }
.train-form label { margin-top: 1rem; }
.instr-picked {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--navy-deep); color: var(--sand); font: inherit; transition: .2s;
}
.instr-picked:hover, .instr-picked:focus-visible { border-color: var(--khaki); outline: none; }
.ip-avatar { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--gunmetal-3); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ip-avatar svg { width: 22px; height: 22px; color: var(--khaki); }
.ip-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ip-text b { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; }
.ip-text small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.ip-change { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); white-space: nowrap; }
.field-error { margin: 6px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--hostile); }

.instr-modal {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line);
  background: var(--gunmetal); color: var(--sand); overflow: auto;
}
.instr-modal::backdrop { background: rgba(14,16,18,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.instr-modal[open] { animation: im-in .25s ease-out; }
@keyframes im-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.im-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); background: var(--gunmetal); }
.im-head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.im-head h2 { margin: 2px 0 0; font-size: clamp(24px, 3vw, 34px); }
.im-close { width: 40px; height: 40px; border: 1px solid var(--line); background: none; color: var(--sand); font-size: 16px; cursor: pointer; }
.im-close:hover { border-color: var(--khaki); }
.im-search { margin: 18px 26px 0; }
.im-grid { padding: 18px 26px 26px; }
.instr-modal .empty-state { margin: 0 26px 26px; }
.im-card { width: 100%; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.im-card .pc-data { grid-template-columns: repeat(3, 1fr); }
.im-card.selected { border-color: var(--sand); box-shadow: inset 0 0 0 1px var(--sand); }
.im-card.selected .pc-go::before { content: "● "; color: var(--ok); }
.im-card.off { opacity: .5; cursor: not-allowed; }
.im-card.off:hover { transform: none; border-color: var(--line); background: var(--gunmetal-2); }
.im-card .any-av { background: var(--gunmetal-3); }
.im-card .any-av svg { width: 28px; height: 28px; color: var(--khaki); }
.im-note { margin: 0; padding: 0 16px 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .im-head, .im-grid { padding-left: 16px; padding-right: 16px; } .im-search { margin: 14px 16px 0; } }
.train-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1100px) { .train-wrap { grid-template-columns: 1fr; } }

/* ==========================================================
   PILOT DOSSIER — personnel detail (stats & achievements)
   Chart palette validated (dataviz validator, dark #22262a + light #fff):
   kills #4f8fd6 · deaths #c47816
   ========================================================== */
:root { --c-kill: #4f8fd6; --c-death: #c47816; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* hover tooltip for chart marks and medals */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 20;
  padding: 5px 9px; white-space: nowrap; pointer-events: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px;
  color: #fff; background: #141618; border: 1px solid rgba(200,184,138,.35);
}

.dossier {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: center;
  padding: 40px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--navy-deep); color: #fff;
}
.dossier::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1; background: repeating-linear-gradient(90deg, #c8b88a 0 14px, transparent 14px 20px); }
.dossier-grid { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.dossier-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.dossier.has-photo { padding-bottom: 52px; }
.dossier.has-photo .op-next-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,16,18,.94) 0%, rgba(14,16,18,.72) 45%, rgba(14,16,18,.35) 100%), linear-gradient(0deg, rgba(14,16,18,.7) 0%, transparent 40%); }
.dossier-credit { position: absolute; right: 40px; bottom: 14px; z-index: 1; max-width: 420px; font-family: var(--font-mono); font-size: 9px; line-height: 1.4; letter-spacing: .5px; text-align: right; color: rgba(236,228,204,.55); text-decoration: none; }
.dossier-credit:hover { color: #c8b88a; text-decoration: underline; }
.dossier-id { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.dossier-avatar { position: relative; flex-shrink: 0; width: 150px; height: 150px; padding: 6px; background: conic-gradient(from 210deg, #c8b88a, rgba(200,184,138,.1), #c8b88a); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dossier-avatar img, .dossier-avatar span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; font-family: var(--font-head); font-weight: 800; font-size: 48px; color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dossier-rank { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; padding: 2px 8px; color: #141618; background: #c8b88a; }
.dossier-name h1 { margin: 4px 0 0; font-size: clamp(44px, 7vw, 92px); line-height: .9; font-style: italic; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.dossier-sqcs { margin: 8px 0 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 4px; color: #c8b88a; }
.dossier .sec-tag { color: #c8b88a; }
.dossier .op-meta { margin: 0; }
.dossier .op-meta .pill { background: rgba(20,22,24,.55); }

.rating-card { position: relative; border: 1px solid rgba(200,184,138,.35); background: rgba(20,22,24,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--font-mono); }
.rating-card header { padding: 10px 16px; border-bottom: 1px solid rgba(200,184,138,.25); font-size: 11px; letter-spacing: 3px; color: #c8b88a; }
.rating-body { position: relative; width: 150px; height: 150px; margin: 16px auto 4px; }
.rating-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.rating-ring circle { fill: none; stroke-width: 9; }
.rating-ring .track { stroke: rgba(200,184,138,.15); }
.rating-ring .value { stroke: var(--c-kill); stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.rating-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rating-center b { font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; color: #fff; font-style: italic; }
.rating-center span { font-size: 11px; letter-spacing: 2px; color: #9aa6bd; }
.rating-title { text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: 4px; color: #fff; }
.rating-parts { list-style: none; margin: 12px 0 0; padding: 10px 16px 12px; border-top: 1px dashed rgba(200,184,138,.25); display: grid; gap: 4px; }
.rating-parts li { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1px; color: #9aa6bd; }
.rating-parts b { color: #fff; font-weight: 500; }

.record-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.record-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); background: var(--gunmetal-2); overflow: hidden; }
.record-tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.rt-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.record-tile b { font-family: var(--font-head); font-weight: 800; font-size: 46px; line-height: 1; color: var(--sand); }
.record-tile b em { font-style: normal; font-size: 22px; color: var(--muted); }
.record-tile small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.rt-bar { height: 6px; background: rgba(200,184,138,.12); }
.rt-bar i { display: block; height: 100%; background: var(--c-kill); border-radius: 0 4px 4px 0; }

.qual-track { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; border: 1px solid var(--line); background: var(--navy-deep); }
.qt-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: var(--muted); }
.qt-step + .qt-step { border-left: 1px dashed var(--line); }
.qt-node { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; border: 2px solid var(--olive-2); transform: rotate(45deg) scale(.82); }
.qt-node > * { transform: rotate(-45deg); }
.qt-node svg { width: 18px; height: 18px; }
.qt-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; }
.qt-step.done { color: var(--sand); }
.qt-step.done .qt-node { border-color: var(--khaki); color: var(--khaki); }
.qt-step.current { color: var(--sand); background: var(--gunmetal-3); box-shadow: inset 0 3px 0 var(--sand); }
.qt-step.current .qt-node { border-color: var(--sand); background: var(--sand); color: var(--gunmetal); }
.qt-step:not(.current) { opacity: .4; filter: grayscale(1); }
.qt-now { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--ok); }

.combat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; margin-bottom: 16px; }
.kd-card { padding: 22px; border: 1px solid var(--line); background: var(--gunmetal-2); }
.kd-hero { display: block; margin: 8px 0 14px; font-family: var(--font-head); font-weight: 800; font-size: 64px; line-height: 1; font-style: italic; color: var(--sand); }
.kd-bar { display: flex; gap: 2px; height: 14px; }
.kd-bar i { display: block; height: 100%; min-width: 2px; cursor: default; }
.kd-bar i.k { background: var(--c-kill); border-radius: 4px 0 0 4px; }
.kd-bar i.d { background: var(--c-death); border-radius: 0 4px 4px 0; }
.kd-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.kd-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.kd-legend i.k { background: var(--c-kill); }
.kd-legend i.d { background: var(--c-death); }
.kd-legend b { color: var(--sand); font-weight: 500; margin-left: 4px; }
.combat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); background: var(--gunmetal-2); }
.combat-tiles div { padding: 16px 18px; border-bottom: 1px dashed var(--line); }
.combat-tiles div:not(:nth-child(3n)) { border-right: 1px dashed var(--line); }
.combat-tiles div:nth-last-child(-n+3) { border-bottom: 0; }
.combat-tiles dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.combat-tiles dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1; color: var(--sand); }

.airframe-chart { padding: 20px 22px 16px; margin-bottom: 30px; border: 1px solid var(--line); background: var(--gunmetal-2); }
.ac-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-top { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.ac-top b { color: var(--sand); font-weight: 500; }
.ac-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 50px; gap: 12px; align-items: center; padding: 6px 0; }
.ac-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-track { height: 12px; background: rgba(200,184,138,.08); }
.ac-track i { display: block; height: 100%; background: var(--c-kill); border-radius: 0 4px 4px 0; }
.ac-row:hover .ac-track i { filter: brightness(1.2); }
.ac-value { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--sand); }
.pilot-bio-line { margin: -6px 0 18px; font-style: italic; color: var(--muted); }

.medal-case { border: 1px solid var(--line); background: var(--navy-deep); font-family: var(--font-mono); }
.medal-case header { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 2px; color: var(--khaki); }
.medal-case header i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.medal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
.medal { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px 12px; border: 1px solid var(--line); background: var(--gunmetal-2); transition: .25s; }
.medal:hover { border-color: var(--khaki); transform: translateY(-3px); }
.medal-ribbon { width: 34px; height: 20px; margin-bottom: -4px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.medal-ribbon.medal { background: linear-gradient(90deg, #8a1c26 0 30%, #f0f0f0 30% 40%, #1f3b78 40% 60%, #f0f0f0 60% 70%, #8a1c26 70%); }
.medal-ribbon.reward { background: linear-gradient(90deg, #1f3b78 0 35%, #f0a92e 35% 65%, #1f3b78 65%); }
.medal-ribbon.achievement { background: linear-gradient(90deg, #2f4d2a 0 25%, #c9b26a 25% 35%, #2f4d2a 35% 65%, #c9b26a 65% 75%, #2f4d2a 75%); }
.medal-ribbon.patch { background: linear-gradient(90deg, #c8b88a 0 20%, #2c3136 20% 80%, #c8b88a 80%); }
.medal-disc { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #1a1406; }
.medal-disc svg { width: 28px; height: 28px; }
.medal.gold .medal-disc { background: radial-gradient(circle at 35% 30%, #ffe9a8, #e3b04b 55%, #9a6b14); box-shadow: 0 0 0 3px rgba(240,169,46,.35), 0 6px 16px rgba(240,169,46,.25); }
.medal.silver .medal-disc { background: radial-gradient(circle at 35% 30%, #ffffff, #c4ccd8 55%, #6f7a8c); box-shadow: 0 0 0 3px rgba(196,204,216,.3); }
.medal.steel .medal-disc { background: radial-gradient(circle at 35% 30%, #d6e4f2, #7fa2c6 55%, #2f4b6b); box-shadow: 0 0 0 3px rgba(200,184,138,.3); color: #06101f; }
.medal b { margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--sand); line-height: 1.2; }
.medal small { margin-top: 3px; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.medal.locked .medal-ribbon { filter: grayscale(1); opacity: .35; }
.medal.locked .medal-disc { background: var(--gunmetal-3); box-shadow: inset 0 0 0 2px var(--olive-2); color: var(--olive-2); }
.medal.locked b { color: var(--muted); }

@media (max-width: 1100px) {
  .dossier { grid-template-columns: 1fr; }
  .rating-card { max-width: 320px; }
  .record-tiles { grid-template-columns: 1fr 1fr; }
  .combat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dossier { padding: 26px 20px; }
  .dossier.has-photo { padding-bottom: 56px; }
  .dossier-credit { left: 20px; right: 20px; max-width: none; }
  .dossier-avatar { width: 110px; height: 110px; }
  .qual-track { grid-template-columns: 1fr 1fr; }
  .qt-step:nth-child(3) { border-left: 0; }
  .qt-step:nth-child(n+3) { border-top: 1px dashed var(--line); }
  .record-tiles { grid-template-columns: 1fr; }
  .ac-row { grid-template-columns: 110px minmax(0, 1fr) 40px; }
  .combat-tiles { grid-template-columns: 1fr 1fr; }
  .combat-tiles div { border-right: 0 !important; border-bottom: 1px dashed var(--line) !important; }
}
@media (prefers-reduced-motion: reduce) { .rating-ring .value { transition: none; } }

/* ==========================================================
   PROFILE EDIT — photo, personal details, hangar
   ========================================================== */
img.avatar { object-fit: cover; }
.pe-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.pe-photo { text-align: center; }
.pe-preview { display: flex; justify-content: center; margin: 6px 0 12px; }
.pe-avatar { width: 150px !important; height: 150px !important; font-size: 46px !important; font-family: var(--font-head); font-weight: 800; border-radius: 0 !important;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; color: #fff; }
.pe-avatar[hidden] { display: none; }
.pe-callsign { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; color: var(--sand); }
.pe-callsign small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.pe-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0 0; padding: 18px 14px; cursor: pointer;
  border: 1px dashed var(--khaki); background: var(--navy-deep); text-transform: none; letter-spacing: 0; color: var(--sand); transition: .2s; }
.pe-drop:hover, .pe-drop:focus-within { border-style: solid; background: var(--gunmetal-3); }
.pe-drop svg { width: 26px; height: 26px; color: var(--khaki); }
.pe-drop b { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
.pe-drop span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pe-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pe-remove { justify-content: center; font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--font-ui); }
.pe-colors { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pe-colors > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.swatch { margin: 0; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 28px; height: 28px; background: var(--sw); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: transform .15s; }
.swatch input:checked + span { transform: scale(1.2); box-shadow: inset 0 0 0 3px var(--sand); }
.swatch input:focus-visible + span { outline: 2px solid var(--khaki); }
.pe-locked { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--navy-deep); }
.pe-locked dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 0; }
.pe-locked dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.pe-locked dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sand); }
.pe-hangar .op-panel-title small { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: none; }
.pe-hangar fieldset { margin: 0 0 18px; padding: 14px 16px 16px; border: 1px solid var(--line); }
.pe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-chip { margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.pe-chip input { position: absolute; opacity: 0; }
.pe-chip span { display: inline-block; padding: 6px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; color: var(--muted); border: 1px solid var(--line); background: var(--gunmetal-2); transition: .15s; }
.pe-chip:hover span { border-color: var(--khaki); color: var(--sand); }
.pe-chip input:checked + span { color: var(--gunmetal); background: var(--khaki); border-color: var(--khaki); }
.pe-chip input:checked + span::before { content: "✓ "; }
.pe-chip input:focus-visible + span { outline: 2px solid var(--khaki); outline-offset: 2px; }
.mem-hero img.avatar { width: 84px; height: 84px; }
@media (max-width: 900px) { .pe-grid { grid-template-columns: 1fr; } .pe-locked dl { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   RICH TEXT — admin editor + rendered content
   ========================================================== */
.rich-content img { max-width: 100%; height: auto; display: block; margin: 1rem 0; }
.rich-content img.img-center { margin-left: auto; margin-right: auto; }
.rich-content img.img-left { float: left; margin: .3rem 1.2rem .8rem 0; }
.rich-content img.img-right { float: right; margin: .3rem 0 .8rem 1.2rem; }
.rich-content::after { content: ""; display: block; clear: both; }
.rich-content blockquote { margin: 1.2rem 0; padding: .6rem 1.2rem; border-left: 3px solid var(--khaki); color: var(--sand); font-style: italic; background: rgba(200,184,138,.05); }
.rich-content h2, .rich-content h3 { margin: 1.6rem 0 .6rem; }
.rich-content hr { border: 0; border-top: 1px dashed var(--line); margin: 1.6rem 0; }
.rich-content a { color: var(--khaki); text-decoration: underline; }

.rte-field { grid-column: 1 / -1; }
.rte { position: relative; border: 1px solid var(--line); background: var(--navy-deep); }
.rte:focus-within { border-color: var(--khaki); }
.rte-toolbar { position: sticky; top: var(--adm-top, 60px); z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--gunmetal-2); }
.rte-toolbar button, .rte-toolbar select, .rte-imgbar button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; cursor: pointer; border: 1px solid transparent; border-radius: 0;
  background: transparent; color: var(--sand); font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; width: auto;
}
.rte-toolbar select { border-color: var(--line); background: var(--navy-deep); padding: 0 8px; }
.rte-toolbar button:hover, .rte-imgbar button:hover { border-color: var(--line); background: var(--gunmetal-3); }
.rte-toolbar button svg { width: 16px; height: 16px; color: var(--khaki); }
.rte-img-btn { border-color: var(--khaki) !important; }
.rte-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.rte.source-mode .rte-toolbar button:not(.rte-source-btn), .rte.source-mode .rte-toolbar select { opacity: .35; pointer-events: none; }
.rte.source-mode .rte-source-btn { background: var(--khaki); color: var(--gunmetal); }

.rte-stage { position: relative; }
.rte-area { min-height: 360px; max-height: 70vh; overflow-y: auto; padding: 22px 26px; outline: none; color: var(--sand); line-height: 1.7; font-family: var(--font-ui); }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rte-area p { margin: 0 0 1rem; color: inherit; }
.rte-area img { cursor: pointer; }
.rte-area img.rte-selected { outline: 2px solid var(--khaki); outline-offset: 2px; }
.rte-source { display: block; width: 100%; min-height: 360px; padding: 18px; border: 0; background: #0f1113; color: #b9f5c9; font-family: var(--font-mono); font-size: 13px; resize: vertical; }
.rte-source[hidden], .rte-area[hidden] { display: none; }

.rte-handle { position: absolute; z-index: 5; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
  background: var(--khaki); border: 2px solid var(--gunmetal); box-shadow: 0 0 0 1px var(--khaki); }
.rte-handle[hidden], .rte-size[hidden], .rte-imgbar[hidden], .rte-drop[hidden] { display: none; }
.rte-size { position: absolute; z-index: 5; padding: 2px 8px; pointer-events: none; font-family: var(--font-mono); font-size: 11px; color: var(--gunmetal); background: var(--khaki); }
.rte-imgbar { position: absolute; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--khaki); background: var(--gunmetal); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.rte-imgbar-label { padding: 0 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.rte-imgbar .danger { color: var(--hostile); }
.rte.resizing, .rte.resizing * { cursor: nwse-resize !important; user-select: none; }

.rte-drop { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none;
  border: 2px dashed var(--khaki); background: rgba(20,22,24,.82); font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--sand); }
.rte-drop svg { width: 28px; height: 28px; color: var(--khaki); }
.rte-status { min-height: 0; padding: 0 12px; font-family: var(--font-mono); font-size: 12px; color: var(--ok); }
.rte-status:not(:empty) { padding: 8px 12px; border-top: 1px dashed var(--line); }
.rte-status.error { color: var(--hostile); }
@media (max-width: 640px) { .rte-area { padding: 16px; } }

/* ---------- admin: navigation link-type toggle ---------- */
.link-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.lt-option { margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.lt-option + .lt-option { border-left: 1px solid var(--line); }
.lt-option input { position: absolute; opacity: 0; }
.lt-option span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); background: var(--navy-deep); transition: .15s; }
.lt-option span small { width: 100%; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 1px; text-transform: none; color: var(--muted); }
.lt-option:hover span { color: var(--sand); }
.lt-option input:checked + span { color: var(--gunmetal); background: var(--khaki); }
.lt-option input:checked + span small, .lt-option input:checked + span .i-inline { color: var(--gunmetal); }
.lt-option input:focus-visible + span { outline: 2px solid var(--khaki); outline-offset: -2px; }
.lt-option input:disabled + span { opacity: .4; cursor: not-allowed; }
.link-panel[hidden] { display: none; }

/* ==========================================================
   ADMIN · REGISTRATIONS — review queue
   ========================================================== */
.reg-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.reg-sum { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-left-width: 3px; background: var(--gunmetal-2); }
.reg-sum b { font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1; color: var(--sand); }
.reg-sum span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.reg-sum.warn { border-left-color: var(--amber); }
.reg-sum.info { border-left-color: var(--khaki); }
.reg-sum.ok { border-left-color: var(--ok); }
.reg-sum.bad { border-left-color: var(--hostile); }

.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.reg-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.reg-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.reg-tabs button { padding: 8px 12px; cursor: pointer; border: 1px solid var(--line); background: var(--gunmetal-2); color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.reg-tabs button em { font-style: normal; font-family: var(--font-mono); font-weight: 400; font-size: 11px; margin-left: 4px; color: var(--khaki); }
.reg-tabs button:hover { color: var(--sand); }
.reg-tabs button.active { background: var(--khaki); border-color: var(--khaki); color: var(--gunmetal); }
.reg-tabs button.active em { color: var(--gunmetal); }
.reg-search { flex: 0 1 280px; }

.reg-list { display: grid; gap: 10px; }
.reg-card { border: 1px solid var(--line); background: var(--gunmetal-2); transition: border-color .2s; }
.reg-card[hidden] { display: none; }
.reg-card[open] { border-color: var(--khaki); }
.reg-card summary { list-style: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 18px; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; }
.reg-card summary::-webkit-details-marker { display: none; }
.reg-card summary:hover { background: var(--gunmetal-3); }
.reg-avatar { width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--gunmetal); background: var(--khaki); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.reg-id { display: flex; flex-direction: column; min-width: 0; }
.reg-id b { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-id small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-facts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.reg-fact, .reg-score { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.reg-score.ok { color: var(--ok); border-color: rgba(70,211,107,.4); }
.reg-score.warn { color: var(--amber); border-color: rgba(224,160,58,.45); }
.reg-score.bad { color: var(--hostile); border-color: rgba(215,38,46,.45); }
.reg-caret { color: var(--muted); transition: transform .2s; }
.reg-card[open] .reg-caret { transform: rotate(180deg); }

.reg-body { padding: 4px 16px 16px; border-top: 1px dashed var(--line); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-block { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--navy-deep); }
.reg-block.private { border-color: rgba(224,160,58,.35); }
.reg-label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.reg-block.private .reg-label { color: var(--amber); }
.reg-block dl { margin: 0; display: grid; gap: 6px; }
.reg-block dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.reg-block dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.reg-block dd { margin: 0; color: var(--sand); word-break: break-word; }
.reg-quote { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--khaki); background: rgba(200,184,138,.05); color: var(--sand); font-style: italic; }
.reg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.reg-chips small { width: 90px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.reg-answer { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); }
.reg-answer:first-of-type { border-top: 0; }
.reg-answer .mark { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; font-weight: 700; }
.reg-answer.ok .mark { color: var(--gunmetal); background: var(--ok); }
.reg-answer.bad .mark { color: #fff; background: var(--hostile); }
.reg-answer b { display: block; font-size: 14px; color: var(--sand); }
.reg-answer span { font-size: 13px; color: var(--muted); }
.reg-answer em { color: var(--sand); }
.reg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.reg-done { font-family: var(--font-mono); font-size: 12px; color: var(--ok); }
.reg-done a { color: var(--khaki); }

.reg-side .adm-card + .adm-card { margin-top: 16px; }
.q-list { display: grid; gap: 8px; margin-top: 12px; }
.q-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); background: var(--navy-deep); }
.q-item.off .q-text { opacity: .5; }
.q-text b { display: block; font-size: 14px; color: var(--sand); }
.q-text span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.q-actions { grid-column: 2; display: flex; gap: 6px; }
.q-switch { position: relative; width: 38px; height: 20px; margin-top: 2px; padding: 0; cursor: pointer; border: 1px solid var(--line); background: var(--gunmetal-3); }
.q-switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--muted); transition: .2s; }
.q-switch.on { border-color: var(--ok); background: rgba(70,211,107,.15); }
.q-switch.on i { left: 20px; background: var(--ok); }
.q-form { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.q-form-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); text-transform: uppercase; }

@media (max-width: 1200px) { .reg-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .reg-summary { grid-template-columns: 1fr 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-card summary { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .reg-facts, .reg-caret { display: none; }
  .reg-search { flex: 1 1 100%; }
}

/* ==========================================================
   SWEETALERT2 — themed to the gunmetal / khaki palette
   ========================================================== */
.swal2-container.swal2-backdrop-show { background: rgba(14,16,18,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.gv-swal.swal2-popup { border-radius: 0; border: 1px solid var(--line); background: #22262a; color: #ece4cc; font-family: var(--font-ui); padding: 1.6rem 1.4rem 1.4rem; }
.gv-swal.swal2-popup::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, #5d6b33 0 14px, transparent 14px 20px); }
.gv-swal .swal2-title { font-family: var(--font-head); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #ece4cc; font-size: 1.5rem; }
.gv-swal .swal2-html-container { color: #c9c3b0; font-size: 1rem; }
.gv-swal .swal2-html-container ul { text-align: left; margin: .4rem 0 0; padding-left: 1.2rem; }
.gv-swal .swal2-html-container li { margin: .25rem 0; }
.gv-swal .swal2-icon { border-width: 3px; }
.gv-swal .swal2-icon.swal2-warning { border-color: #e0a03a; color: #e0a03a; }
.gv-swal .swal2-icon.swal2-question { border-color: #c8b88a; color: #c8b88a; }
.gv-swal .swal2-icon.swal2-error { border-color: #d7262e; }
.gv-swal .swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: #d7262e; }
.gv-swal .swal2-icon.swal2-success { border-color: #46d36b; color: #46d36b; }
.gv-swal .swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: #46d36b; }
.gv-swal .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(70,211,107,.3); }
.gv-swal .swal2-icon.swal2-success [class^='swal2-success-circular-line'], .gv-swal .swal2-icon.swal2-success .swal2-success-fix { background: transparent !important; }
.gv-swal-actions { gap: 10px; }
.gv-swal-actions .btn { min-width: 120px; }
.gv-swal-actions .btn::before, .gv-swal-actions .btn::after { display: none; }
.gv-swal .swal2-input-label { color: #c8b88a; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; margin: 1rem 2em 0; justify-content: flex-start; }
.gv-swal .swal2-textarea { margin: .5rem 2em 0; border-radius: 0; border: 1px solid var(--line); background: #1a1d20; color: #ece4cc; font-family: var(--font-ui); font-size: .95rem; box-shadow: none; }
.gv-swal .swal2-textarea:focus { border-color: #c8b88a; box-shadow: 0 0 0 2px rgba(200,184,138,.25); }
.btn-danger-solid { background: #d7262e; border-color: #d7262e; color: #fff; }
.btn-danger-solid:hover { background: #ef3a42; border-color: #ef3a42; color: #fff; }
.gv-swal.gv-toast.swal2-popup { padding: .7rem 1rem; border-left: 3px solid #46d36b; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.gv-swal.gv-toast .swal2-title { font-family: var(--font-ui); font-weight: 600; font-size: .95rem; letter-spacing: .3px; text-transform: none; margin: 0 .4rem; }
.gv-swal.gv-toast .swal2-timer-progress-bar { background: #c8b88a; }
.gv-flash { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--line); font-family: var(--font-mono); font-size: .85rem; }
.gv-flash.ok { border-color: rgba(70,211,107,.5); color: #46d36b; }
.gv-flash.err { border-color: rgba(215,38,46,.5); color: #ef6a70; }
.gv-flash ul { margin: 0; padding-left: 1.1rem; }

/* ---------- admin personnel catalog ---------- */
.admin-pilot .pc-id { color: var(--sand); }
.admin-pilot .pc-id:hover h3 { color: var(--khaki); }
.pc-avatar.avatar { border-radius: 0; }
img.pc-avatar { object-fit: cover; }
.pc-private { display: grid; gap: 6px; margin: 0; padding: 10px 16px; border-top: 1px dashed var(--line); background: rgba(224,160,58,.04); }
.pc-private div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; }
.pc-private dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.pc-private dt .i-inline { color: var(--amber); }
.pc-private dd { margin: 0; font-size: 13px; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-admin-actions { display: flex; gap: 8px; padding: 12px 16px; margin-top: auto; }
.pc-admin-actions .btn { flex: 1; }
.admin-pilot[hidden] { display: none; }
.admin-pilot[data-quick-view] { cursor: pointer; }
.admin-pilot[data-quick-view]:hover h3 { color: var(--khaki); }
.admin-pilot[data-quick-view]:focus-visible { outline: 2px solid var(--khaki); outline-offset: 2px; }

/* pilot quick view (admin roster card → modal) */
.pilot-quick { width: min(720px, calc(100vw - 32px)); }
.pq-id { display: flex; align-items: center; gap: 14px; }
.pq-id .pc-avatar { width: 56px; height: 56px; }

/* /stats/pilots: active pilots under the search */
.pilot-search-active { margin-top: 2.5rem; }
.pc-last-flight { padding: 0 16px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--ok); }

/* admin training: instructor and member avatars */
.tr-avatar { width: 44px; height: 44px; font-size: 14px; }
.tr-pilot { display: inline-flex; align-items: center; gap: 8px; }
.pq-body { display: grid; gap: 22px; padding: 20px 26px 24px; }
.pq-section h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--khaki); }
.pq-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); background: var(--gunmetal-2); color: var(--sand); }
.pq-row + .pq-row { margin-top: 6px; }
a.pq-row:hover { border-color: var(--khaki); color: var(--sand); }
.pq-date { display: flex; flex-direction: column; align-items: center; font-family: var(--font-mono); line-height: 1.15; }
.pq-date b { font-size: 13px; color: var(--sand); }
.pq-date small { font-size: 10px; color: var(--muted); }
.pq-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pq-text strong { font-family: var(--font-head); letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-text small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-empty { margin: 0; padding: 12px; border: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.pq-foot { margin: 8px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pq-foot b { color: var(--sand); }
.pq-training-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pq-loading { display: grid; place-items: center; min-height: 240px; }
.pilot-quick .picker-foot { gap: 8px; }
.pill.bad { color: var(--hostile); border-color: var(--hostile); }

/* flight log (x-stats.flight-log) on /profile and /stats/pilots/{nick} */
.flight-log { margin-top: 2rem; }
.flight-log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.flight-log-head h3 { margin: 0; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }
.flight-log-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.flight-log-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--gunmetal-2); }
.flight-log-scroll table.data { min-width: 720px; font-size: .85rem; }
.flight-log-scroll th { background: var(--gunmetal-3); white-space: nowrap; }
.flight-log-scroll td { font-family: var(--font-mono); white-space: nowrap; }
.flight-log-scroll tr:last-child td { border-bottom: 0; }
.fl-date small { display: block; font-size: 10px; color: var(--muted); }
.fl-aircraft { font-family: var(--font-head) !important; font-weight: 700; letter-spacing: .5px; color: var(--sand); }
.flight-log-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.fl-route small { display: block; font-size: 10px; color: var(--muted); }
.fl-role { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; color: var(--khaki); vertical-align: middle; }
.fl-status { display: inline-block; min-width: 104px; padding: .2rem .5rem; border: 1px solid; text-align: center; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: 1.5px; }
.fl-status.green { color: var(--ok); border-color: var(--ok); }
.fl-status.amber { color: var(--amber); border-color: var(--amber); }
.fl-status.red { background: var(--hostile); border-color: var(--hostile); color: #fff; }
.fl-status.blue { background: #2f6fb5; border-color: #2f6fb5; color: #fff; }
.fl-uncounted { color: var(--muted); text-decoration: line-through; }
:root[data-theme="light"] .fl-status.green { color: #1c8a54; border-color: #1c8a54; }
:root[data-theme="light"] .fl-status.amber { color: #a86a10; border-color: #a86a10; }
.pf-main .flight-log { margin-top: 0; }

/* DeckMarks LSO / Runway Safety Officer logs (x-stats.landing-marks) and the greenie board (/stats/greenie-board) */
.landing-marks .flight-log-head .btn { letter-spacing: 1.5px; }
.landing-marks { container-type: inline-size; }
.landing-marks .flight-log-scroll { scrollbar-color: var(--line) transparent; }
.landing-marks .flight-log-scroll table.data { min-width: 0; width: 100%; }
/* the comment takes whatever width is left and truncates, instead of pushing the table wide */
.landing-marks .lm-comment { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.landing-marks th.lm-comment { color: var(--khaki); }
.landing-marks .lm-act { width: 1%; text-align: right; }
.landing-marks .lm-act .btn-sm { padding: .3rem .7rem; font-size: .7rem; letter-spacing: 1.5px; }
@container (max-width: 620px) {
  .landing-marks .lm-opt { display: none; }
  .landing-marks .flight-log-scroll th, .landing-marks .flight-log-scroll td { padding-left: .6rem; padding-right: .6rem; }
}
.gb-cell { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding: 0 4px; border-radius: 2px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1.05; color: #fff; background: #2a2f34; }
.gb-cell small { font-size: 9px; font-weight: 400; opacity: .75; }
.gb-cell.g-perfect { background: #15803d; }
.gb-cell.g-ok { background: #22c55e; color: #08240f; }
.gb-cell.g-fair { background: #eab308; color: #2a2000; }
.gb-cell.g-nograde { background: #8b5a2b; }
.gb-cell.g-bolter { background: #2563eb; }
.gb-cell.g-cut { background: #dc2626; }
.gb-cell.g-waveoff { background: #0b0f14; border: 1px solid #3a4048; }
.gb-cell.gb-empty { background: transparent; border: 1px solid var(--line); }
.gb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 1.4rem; }
.gb-stats div { padding: 12px 14px; border: 1px solid var(--line); background: var(--gunmetal-2); }
.gb-stats dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.gb-stats dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--sand); }
.gb-panel { border: 1px solid var(--line); border-top: 2px dashed var(--olive-2); background: var(--gunmetal-2); }
.gb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.gb-head h3 { display: inline; margin: 0 12px 0 0; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }
.gb-head span { font-size: 13px; color: var(--muted); }
.gb-legend { display: flex; flex-wrap: wrap; gap: 4px; }
.gb-scroll { overflow-x: auto; }
.gb-table { min-width: 980px; }
.gb-table th { background: var(--gunmetal-3); white-space: nowrap; }
.gb-table td { font-family: var(--font-mono); vertical-align: middle; }
.gb-table tr:last-child td { border-bottom: 0; }
.gb-pilot strong { font-family: var(--font-head); color: var(--sand); }
.gb-pilot small { display: block; font-size: 11px; color: var(--muted); }
.gb-mine td:first-child { box-shadow: inset 3px 0 0 var(--khaki); }
.gb-you { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--khaki); font-size: 10px; letter-spacing: 1px; color: var(--khaki); }
.gb-cells { display: flex; gap: 4px; }
.gb-source { margin-top: 1rem; font-size: 13px; color: var(--muted); }
.gb-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.gb-pager > span:not(.btn) { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.gb-pager .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.gb-cells button.gb-cell { border: 0; cursor: pointer; }
.gb-cells button.gb-cell:hover, .gb-cells button.gb-cell:focus-visible { outline: 2px solid var(--sand); outline-offset: 1px; }

/* debrief popup (x-stats.landing-debrief); the canvases and detail markup come from DeckMarks / RunwayMarks */
.lm-debrief { width: min(1280px, calc(100vw - 32px)); }
.lm-debrief .im-head h2 { display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.lm-debrief .im-head .gb-cell { min-width: 0; height: 24px; padding: 0 8px; font-size: 11px; }
.lm-debrief-meta { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lm-debrief-body { padding: 16px 26px; background: #0f141b; color: #e5e7eb; }
.lm-debrief-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 26px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lm-debrief-call { margin-bottom: 8px; font-family: var(--font-mono); font-size: 17px; color: #fbbf24; white-space: pre-wrap; }
.lm-debrief-call:empty { display: none; }
.lm-debrief-call .rm-call-sub { margin-left: 14px; font-family: var(--font-ui); font-size: 13px; color: #9ca3af; }
.lm-debrief-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.lm-debrief h6 { margin: 12px 0 5px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9ca3af; }
.lm-debrief canvas { display: block; max-width: 100%; height: auto; border: 1px solid #374151; background: #111827; }
.lm-debrief-msg { padding: 30px; text-align: center; color: #9ca3af; }
.lm-debrief-err { color: #fbbf24; }
.lm-debrief #passDetail, .lm-debrief #trajInfo { font-size: 12.5px; }
.lm-debrief #passDetail h6, .lm-debrief #trajInfo h6 { color: #cbbd92; }
.lm-debrief #passDetail table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 4px 0; }
.lm-debrief #passDetail th, .lm-debrief #passDetail td { padding: 3px 6px; border-bottom: 1px solid #1f2937; text-align: left; }
.lm-debrief dl.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin: 0; }
.lm-debrief dt, .lm-debrief dd { margin: 0 0 3px; }
.lm-debrief #passDetail ul, .lm-debrief #trajInfo ul { padding-left: 18px; margin: 4px 0; }
.lm-debrief #trajInfo .fs-6 { font-size: 15px; }
.lm-debrief #trajInfo .fw-bold { font-weight: 700; }
.lm-debrief #trajInfo .text-warning { color: #fbbf24; }
.lm-debrief #trajInfo code { font-family: var(--font-mono); color: #67e8f9; }
.lm-debrief #trajInfo .mb-2 { margin-bottom: 8px; }
.lm-debrief #trajInfo .mt-3 { margin-top: 14px; }
@media (max-width: 1000px) { .lm-debrief-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .lm-debrief-body, .lm-debrief-foot { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 640px) { .pq-body { padding: 16px; } .pq-row { grid-template-columns: 48px minmax(0, 1fr); } .pq-row > .pill { grid-column: 2; justify-self: start; } }

/* ==========================================================
   REWARDS & MEDALS — admin gallery, form, artwork display
   ========================================================== */
.medal-disc.gold-disc, .medal-disc.silver-disc, .medal-disc.steel-disc { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #1a1406; }
.medal-disc svg { width: 30px; height: 30px; }
.medal-disc.gold-disc { background: radial-gradient(circle at 35% 30%, #ffe9a8, #e3b04b 55%, #9a6b14); }
.medal-disc.silver-disc { background: radial-gradient(circle at 35% 30%, #ffffff, #c4ccd8 55%, #6f7a8c); }
.medal-disc.steel-disc { background: radial-gradient(circle at 35% 30%, #e8e2cf, #b8a87a 55%, #5d6b33); }

.reward-tabs { margin-bottom: 16px; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.reward-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--gunmetal-2); color: var(--sand); transition: .2s; }
.reward-card[hidden] { display: none; }
.reward-card:hover { border-color: var(--khaki); transform: translateY(-4px); color: var(--sand); }
.reward-art { position: relative; height: 160px; display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, rgba(200,184,138,.12), transparent 65%), var(--navy-deep); }
.reward-art img { max-width: 120px; max-height: 120px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.55)); transition: transform .25s; }
.reward-card:hover .reward-art img { transform: scale(1.08) rotate(-3deg); }
.reward-noart { position: absolute; bottom: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.reward-meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.reward-type { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.reward-meta b { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; }
.reward-meta small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.reward-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 20px; align-items: start; }
.reward-preview { text-align: center; margin-bottom: 14px; }
.reward-preview small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.checker { width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--line);
  background-color: #2c3136; background-image: linear-gradient(45deg, #3a4046 25%, transparent 25%), linear-gradient(-45deg, #3a4046 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #3a4046 75%), linear-gradient(-45deg, transparent 75%, #3a4046 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.checker img { max-width: 180px; max-height: 180px; object-fit: contain; }
.checker [hidden] { display: none; }
.reward-side .adm-card + .adm-card { margin-top: 16px; }
.award-search { margin: 6px 0 10px; }
.award-list { max-height: 280px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border: 1px solid var(--line); background: var(--navy-deep); }
.award-pilot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px; cursor: pointer; border: 1px solid transparent; text-transform: none; letter-spacing: 0; font-family: var(--font-ui); font-size: 13px; color: var(--sand); }
.award-pilot[hidden] { display: none; }
.award-pilot:hover { border-color: var(--line); background: var(--gunmetal-2); }
.award-pilot input { width: auto; margin: 0; }
.award-pilot:has(input:checked) { border-color: var(--khaki); background: rgba(200,184,138,.08); }
.award-pilot.holds { opacity: .5; cursor: default; }
.award-pilot em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--ok); }
.ap-avatar { width: 26px !important; height: 26px !important; font-size: 10px !important; border-radius: 0 !important; flex-shrink: 0; object-fit: cover; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: inline-grid; place-items: center; color: #fff; }
.award-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); align-self: center; }
.holder-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); }
.holder-row:first-of-type { border-top: 0; }
.holder-text b a { color: var(--sand); font-family: var(--font-head); letter-spacing: 1px; text-transform: uppercase; }
.holder-text small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.holder-text q { display: block; font-size: 12px; font-style: italic; color: var(--khaki); }
.reward-delete { margin-top: 16px; text-align: right; }
.reward-auto { font-style: normal; color: var(--ok); }
.reward-side .auto-award-card + .adm-card { margin-top: 16px; }

/* award mode (manual / automatic) on the reward form */
.award-mode { margin: 18px 0 6px; padding: 0; border: 0; }
.award-mode legend { padding: 0; margin-bottom: 8px; font-size: .82rem; font-weight: 700; color: var(--sand); }
.award-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.award-mode-switch label { margin: 0; cursor: pointer; }
.award-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.award-mode-switch span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); background: var(--navy-deep); transition: border-color .15s, background .15s; }
.award-mode-switch b { font-family: var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--sand); }
.award-mode-switch small { font-size: 12px; color: var(--muted); font-weight: 400; }
.award-mode-switch label:hover span { border-color: var(--olive-2); }
.award-mode-switch input:checked + span { border-color: var(--khaki); background: rgba(200,184,138,.08); box-shadow: inset 3px 0 0 var(--khaki); }
.award-mode-switch input:focus-visible + span { outline: 2px solid var(--khaki); outline-offset: 2px; }
.award-criteria { margin-top: 12px; padding: 12px 14px 4px; border: 1px dashed var(--line); }
.award-criteria[hidden] { display: none; }
.award-criteria > .hint { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .award-mode-switch { grid-template-columns: 1fr; } }

/* artwork on the dossier medal case, admin personnel and profile */
.medal.has-art { position: relative; padding-top: 12px; }
.medal-art { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); transition: transform .25s; }
.medal.has-art:hover .medal-art { transform: scale(1.08); }
.medal.locked .medal-art { filter: grayscale(1) brightness(.45); opacity: .55; }
.medal-lock { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; display: grid; place-items: center; color: var(--sand); background: rgba(14,16,18,.8); border-radius: 50%; }
.medal-lock svg { width: 14px; height: 14px; }
.badge-check { display: inline-flex !important; align-items: center; gap: 6px; }
.badge-check img { width: 22px; height: 22px; object-fit: contain; }
.mem-badge img { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 4px; }
@media (max-width: 1100px) { .reward-layout { grid-template-columns: 1fr; } }

/* ==========================================================
   ADMIN · PERSONNEL EDIT — dossier summary + medal case editor
   ========================================================== */
.admin-dossier { grid-template-columns: minmax(0, 1fr) auto; padding: 28px 30px; margin-bottom: 22px; }
.admin-dossier .dossier-avatar { width: 120px; height: 120px; }
.admin-dossier .dossier-avatar .avatar { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; font-family: var(--font-head); font-weight: 800; font-size: 38px; color: #fff; border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.admin-dossier .dossier-name h1 { font-size: clamp(36px, 5vw, 64px); }
.dossier-record { display: grid; grid-template-columns: repeat(5, auto); margin: 0; border: 1px solid rgba(200,184,138,.3); background: rgba(14,16,18,.7); }
.dossier-record div { padding: 12px 16px; }
.dossier-record div + div { border-left: 1px dashed rgba(200,184,138,.25); }
.dossier-record dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: #c8b88a; white-space: nowrap; }
.dossier-record dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1; color: #ece4cc; }
.dossier-record dd em { font-style: normal; font-size: 15px; color: #9a9585; }
.dossier-record dd.small-dd { font-size: 16px; padding-top: 6px; }

.me-add { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 14px; }
.me-add-btn { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; border: 1px dashed var(--khaki); background: var(--navy-deep); color: var(--sand);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; transition: .15s; }
.me-add-btn svg { width: 18px; height: 18px; color: var(--khaki); }
.me-add-btn em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.me-add-btn:hover { border-style: solid; background: var(--gunmetal-3); }
.me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.held-reward { position: relative; }
.held-reward .medal-art { width: 60px; height: 60px; }
.held-reward .medal-disc { width: 48px; height: 48px; }
.held-reward .medal-disc svg { width: 22px; height: 22px; }
.held-reward b { font-size: 12px; }
.hr-note { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 9px !important; letter-spacing: .5px; color: var(--khaki) !important; }
.hr-remove { position: absolute; top: 4px; right: 4px; z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--gunmetal); color: var(--muted); font-size: 11px; opacity: .6; transition: .15s; }
.held-reward:hover .hr-remove { opacity: 1; }
.hr-remove:hover { color: #fff; background: var(--hostile); border-color: var(--hostile); }
.me-empty { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.me-dirty { margin: 12px 0 0; padding: 8px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--amber); border: 1px solid rgba(224,160,58,.4); background: rgba(224,160,58,.06); }

.reward-modal { width: min(920px, calc(100vw - 32px)); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 18px 26px 10px; }
.picker-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px 12px; cursor: pointer; text-align: center;
  border: 1px solid var(--line); background: var(--gunmetal-2); color: var(--sand); font: inherit; transition: .15s; }
.picker-card[hidden] { display: none; }
.picker-card:hover { border-color: var(--khaki); transform: translateY(-3px); }
.picker-art { height: 84px; display: grid; place-items: center; }
.picker-art img { max-width: 80px; max-height: 80px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.picker-card b { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; }
.picker-card small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.picker-state { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; }
.picker-state i { font-style: normal; }
.picker-state .add { color: var(--khaki); }
.picker-state .held { display: none; color: var(--ok); }
.picker-card.is-held { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); background: rgba(70,211,107,.06); }
.picker-card.is-held .add { display: none; }
.picker-card.is-held .held { display: inline; }
.picker-empty { margin: 0 26px 16px; }
.picker-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 12px 26px; border-top: 1px solid var(--line); background: var(--gunmetal); }
@media (max-width: 1100px) { .admin-dossier { grid-template-columns: 1fr; } .dossier-record { grid-template-columns: repeat(3, 1fr); } .dossier-record div:nth-child(4) { border-left: 0; } }
@media (max-width: 640px) { .dossier-record { grid-template-columns: 1fr 1fr; } .dossier-record div { border-left: 0 !important; } .me-add { grid-template-columns: 1fr; } }

/* ==========================================================
   ADMIN · EVENTS — mission catalog with banner images
   ========================================================== */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mission-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--gunmetal-2); transition: .2s; overflow: hidden; }
.mission-card[hidden] { display: none; }
.mission-card:hover { border-color: var(--khaki); transform: translateY(-4px); }
.mc-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at 60% 30%, #3a3f33 0%, #1f2326 55%, #141618 100%); }
.mc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 4s ease; }
.mission-card:hover .mc-media img { transform: scale(1.06); }
.mc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,18,.15) 40%, rgba(14,16,18,.85) 100%); pointer-events: none; }
.mc-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(200,184,138,.35); }
.mc-placeholder svg { width: 64px; height: 64px; }
.mc-date { position: absolute; z-index: 1; left: 12px; bottom: 10px; display: flex; flex-direction: column; line-height: 1; color: #fff; }
.mc-date b { font-family: var(--font-head); font-weight: 800; font-size: 34px; }
.mc-date small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: #c8b88a; }
.mc-state { position: absolute; z-index: 1; top: 10px; right: 10px; background: rgba(14,16,18,.75); }
.mc-body { padding: 14px 16px 10px; flex: 1; }
.mc-type { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.mc-body h3 { margin: 4px 0 8px; font-size: 19px; line-height: 1.2; }
.mc-body h3 a { color: var(--sand); }
.mc-body h3 a:hover { color: var(--khaki); }
.mc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 0; border-top: 1px dashed var(--line); }
.mc-stats div { padding: 8px 0 0; text-align: center; }
.mc-stats div + div { border-left: 1px dashed var(--line); }
.mc-stats dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.mc-stats dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--sand); }
.mc-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.mc-actions .btn-gold { flex: 1; }

.mission-banner-field { margin: 4px 0 8px; }
.mb-preview { aspect-ratio: 16 / 9; max-height: 240px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: var(--navy-deep); }
.mb-preview img { width: 100%; height: 100%; object-fit: cover; }
.mb-preview [hidden] { display: none; }
.mb-empty { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mb-empty svg { width: 20px; height: 20px; }

/* Native date/time pickers: dark popup + khaki-tinted picker icon */
input[type="time"], input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
:root[data-theme="light"] :is(input[type="time"], input[type="date"], input[type="datetime-local"]) { color-scheme: light; }
.f input[type="time"], .f input[type="date"], .f input[type="datetime-local"] { width: 100%; min-height: 42px; font-family: var(--font-mono, "IBM Plex Mono", monospace); letter-spacing: .5px; }
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: sepia(1) saturate(2) brightness(1.1); cursor: pointer; opacity: .85; }

/* Searchable select (main.js: select[data-searchable]) */
.ss { position: relative; }
.ss .ss-native { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.ss-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; padding: .68rem 2.2rem .68rem .8rem; background: var(--navy-deep); border: 1px solid var(--line); border-radius: 9px; color: var(--sand); font: inherit; font-family: var(--font-ui); text-align: left; cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-trigger::after { content: ""; position: absolute; right: .9rem; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--khaki); border-bottom: 2px solid var(--khaki); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.ss.open .ss-trigger::after { transform: translateY(-30%) rotate(-135deg); }
.ss-trigger.is-placeholder { color: var(--ink-dim, #8a8f94); }
.ss-trigger:focus-visible, .ss.open .ss-trigger { outline: 2px solid color-mix(in srgb, var(--khaki) 55%, transparent); border-color: var(--khaki); }
.ss.is-invalid .ss-trigger { border-color: var(--hostile); }
.ss-panel { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: var(--gunmetal-2); border: 1px solid var(--khaki); border-radius: 9px; box-shadow: 0 14px 34px rgba(0,0,0,.5); padding: .45rem; }
.ss-panel .ss-search { width: 100%; min-height: 38px; padding: .5rem .7rem; background: var(--navy-deep); border: 1px solid var(--line); border-radius: 7px; color: var(--sand); font-family: var(--font-ui); }
.ss-panel .ss-search:focus { outline: none; border-color: var(--khaki); }
.ss-list { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 240px; overflow-y: auto; }
.ss-list li { padding: .5rem .65rem; border-radius: 6px; color: var(--sand); cursor: pointer; font-size: .92rem; }
.ss-list li.active { background: color-mix(in srgb, var(--khaki) 18%, transparent); }
.ss-list li.selected { color: var(--khaki); font-weight: 700; }
.ss-list li.selected::before { content: "✓ "; }
.ss-list .ss-empty { color: var(--ink-dim, #8a8f94); cursor: default; font-style: italic; }

/* ==========================================================
   LIGHT MODE (Ready Room / Admin)
   Panels become light surfaces; photo/gradient heroes stay dark "islands"
   by re-declaring the dark tokens locally, so their text keeps contrast.
   ========================================================== */
:root[data-theme="light"] { --navy-deep: #ffffff; --notch: #f3f5f9; }
:root[data-theme="light"] :is(.op-next, .op-detail-hero, .pilot-hero, .dossier, .mem-hero, .mc-media, .page-hero, .flight-board, .hero, .login-stage, .gv-swal) {
  --gunmetal: #1c1f22; --gunmetal-2: #22262a; --gunmetal-3: #2c3136; --olive: #3f4a23; --olive-2: #5d6b33;
  --khaki: #c8b88a; --sand: #ece4cc; --muted: #9a9585; --navy-deep: #141618; --notch: #1c1f22;
  --navy-950: #1c1f22; --navy-900: #22262a; --navy-800: #22262a; --navy-700: #2c3136; --navy-600: #3a4046;
  --blue-400: #c8b88a; --blue-300: #c8b88a; --gold: #c8b88a; --gold-light: #ece4cc;
  --ink: #ece4cc; --ink-dim: #9a9585; --line: rgba(200,184,138,.18); --ok: #46d36b;
  color: var(--sand);
}
:root[data-theme="light"] :is(.op-next, .op-detail-hero, .pilot-hero, .dossier, .mem-hero, .page-hero, .hero, .login-stage) :is(h1, h2, h3, h4) { color: #fff; }
:root[data-theme="light"] :is(.op-next, .op-detail-hero, .pilot-hero, .dossier, .mem-hero) p { color: #d2d9e6; }
:root[data-theme="light"] :is(.op-next, .op-detail-hero, .pilot-hero, .dossier, .mem-hero) .btn-outline { color: #fff; }

/* hard-coded white text that sits on (now light) panels */
:root[data-theme="light"] .status-row b,
:root[data-theme="light"] .schedule td,
:root[data-theme="light"] .user-chip,
:root[data-theme="light"] .about-main p { color: var(--sand); }
:root[data-theme="light"] .status-row b.ok { color: var(--adm-ok, #1c8a54); }
:root[data-theme="light"] .status-row b.warn,
:root[data-theme="light"] .pill.brief, :root[data-theme="light"] .pill.warn, :root[data-theme="light"] .pill.gold { color: #a86a10; border-color: #a86a10; }
:root[data-theme="light"] .pill.open, :root[data-theme="light"] .pill.ok { color: #1c8a54; border-color: #1c8a54; }
:root[data-theme="light"] .dossier-record dd { color: var(--sand); }
:root[data-theme="light"] .dossier .dossier-record dd { color: #ece4cc; }

/* ==========================================================
   Flight seats (mission briefing + admin event editor)
   ========================================================== */
.seat-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px dashed var(--line); }
.seat { display: grid; grid-template-columns: minmax(84px, auto) 104px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; }
.seat:last-child { border-bottom: none; }
.seat-id { font-weight: 600; color: var(--sand); white-space: nowrap; }
.seat-role { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; }
.seat-pilot { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sand); font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.seat-pilot em { font-style: normal; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 2px; color: var(--ok); }
.seat-act form { margin: 0; }
.seat-act .btn-sm { padding: 6px 12px; font-size: 11px; }
.seat.mine { background: color-mix(in srgb, var(--khaki) 12%, transparent); box-shadow: inset 3px 0 0 var(--khaki); padding-left: 8px; }
.seat-you { font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.seat-list.compact .seat { grid-template-columns: 96px 100px minmax(0, 1fr) auto; min-height: 38px; }
.seat-list.compact .seat-pilot { font-size: 14px; }
.adm-flight + .adm-flight { margin-top: 14px; }
.adm-flight .seat-list { margin: 6px 0 0 14px; border-top: none; }
.adm-note { margin: -4px 0 14px; font-size: .82rem; }
.adm-subhead { margin: 20px 0 4px; font-size: 13px; letter-spacing: 2px; }
.mc-stats dd small { font-size: 13px; color: var(--muted); font-weight: 600; }

.my-seat-body { display: grid; gap: 10px; justify-items: start; padding: 14px 18px 18px; }
.my-seat-body p { margin: 0; font-size: 13px; line-height: 1.5; }
.my-seat-id { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 1px; color: var(--sand); }
.my-seat-body small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--khaki); }

.flight-modal { width: min(760px, calc(100vw - 32px)); }
.flight-modal-body { padding: 18px 26px 26px; }
.flight-modal-body > p { margin: 0 0 14px; font-size: 13px; }
.flight-modal .ss-panel { position: relative; top: 4px; }

@media (max-width: 560px) {
  .seat { grid-template-columns: auto minmax(0, 1fr) auto; }
  .seat-role { display: none; }
}

/* Rich text (TinyMCE) content on briefings */
.prose img { max-width: 100%; height: auto; }
.prose figure { margin: 1rem 0; }
.prose figcaption { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.f .tox-tinymce { border: 1px solid var(--line); border-radius: 9px; }

/* Pilot-side view: staff shortcut + draft preview banner */
.op-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.op-topbar .op-back { margin-bottom: 0; }
.op-staff-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.op-staff-link:hover { border-color: var(--khaki); color: var(--sand); }
.op-preview-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; padding: 12px 16px; border: 1px dashed var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); font-size: 14px; color: var(--sand); }
.op-preview-banner b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--amber); }
:root[data-theme="light"] .op-preview-banner b { color: #a86a10; }

/* ==========================================================
   Flights & Seats tab (pilot sign-up)
   ========================================================== */
.seat-brief { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 18px 20px; border: 1px solid var(--line); background: var(--navy-deep); position: relative; }
.seat-brief::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--khaki); }
.seat-brief h3 { margin: 4px 0 6px; font-size: clamp(22px, 2.4vw, 30px); font-style: italic; }
.seat-brief p { margin: 0; font-size: 14px; }
.seat-meter { position: relative; display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 10px 16px 14px; border: 1px solid var(--line); }
.seat-meter b { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--sand); }
.seat-meter span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; line-height: 1.4; color: var(--muted); }
.seat-meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line); }
.seat-meter i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill); background: var(--ok); transition: width .4s; }

.flight-stack { display: grid; gap: 18px; }
.flight-card { border: 1px solid var(--line); background: var(--gunmetal-2); }
.flight-card.hostile { border-color: color-mix(in srgb, var(--hostile) 45%, var(--line)); }
.fc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--khaki) 10%, transparent), transparent 60%); }
.flight-card.hostile .fc-head { background: linear-gradient(90deg, color-mix(in srgb, var(--hostile) 14%, transparent), transparent 60%); }
.fc-pkg { display: grid; place-items: center; align-content: center; width: 54px; height: 54px; border: 1px solid var(--khaki); font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--khaki); line-height: 1.1; text-align: center; }
.fc-pkg b { display: block; font-family: var(--font-head); font-size: 22px; letter-spacing: 0; color: var(--sand); }
.flight-card.hostile .fc-pkg { border-color: var(--hostile); }
.fc-title h4 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-style: italic; letter-spacing: 1px; line-height: 1; }
.fc-title span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.fc-count { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.fc-count b { font-family: var(--font-head); font-size: 26px; color: var(--sand); }
.fc-count small { display: block; font-size: 9px; letter-spacing: 2px; }

.fc-route { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 18px; border-bottom: 1px dashed var(--line); }
.fc-stop small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.fc-stop b { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: 1px; color: var(--sand); text-transform: uppercase; }
.fc-stop span { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.fc-stop.arr { text-align: right; }
.fc-line { display: flex; align-items: center; gap: 8px; color: var(--khaki); font-size: 18px; }
.fc-line i { flex: 1; height: 0; border-top: 1px dashed color-mix(in srgb, var(--khaki) 60%, transparent); }
.fc-line svg { transform: rotate(90deg); }
.fc-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.fc-meta div { display: flex; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; }
.fc-meta dt { letter-spacing: 2px; color: var(--khaki); }
.fc-meta dd { margin: 0; color: var(--sand); }
.flight-card.hostile .side { color: var(--hostile); }

.fc-elements { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px 18px 18px; }
@media (min-width: 1700px) { .fc-elements { grid-template-columns: 1fr 1fr; } }
.fc-element-tag { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); }
.seat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seat-tile { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); background: var(--navy-deep); transition: border-color .2s, transform .2s; }
.seat-tile.open { border-style: dashed; }
.seat-tile.open:hover { border-color: var(--khaki); transform: translateY(-2px); }
.seat-tile.mine { border-color: var(--khaki); box-shadow: inset 0 0 0 1px var(--khaki), 0 0 18px color-mix(in srgb, var(--khaki) 20%, transparent); }
.st-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.st-id { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: 1px; color: var(--sand); white-space: nowrap; }
.st-role { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); text-align: right; }
.st-pilot { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; }
.st-pilot > div { min-width: 0; }
.st-pilot b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 16px; letter-spacing: 1px; color: var(--sand); }
.st-pilot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.st-avatar { flex-shrink: 0; width: 40px !important; height: 40px !important; display: grid; place-items: center; object-fit: cover; font-family: var(--font-head); font-weight: 800; font-size: 14px; color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.st-empty { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--muted); font-size: 18px; }
.st-open { color: var(--ok) !important; font-size: 13px !important; letter-spacing: 2px !important; }
.st-act { margin-top: auto; }
.st-act form { margin: 0; }
.st-btn { width: 100%; min-height: 36px; border: 1px solid var(--hostile); background: var(--hostile); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: .2s; }
.st-btn:hover { background: var(--red-light); border-color: var(--red-light); }
.st-btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.st-btn.ghost:hover { border-color: var(--hostile); color: var(--hostile); }
.st-note { display: block; padding: 9px 0 0; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); text-align: center; }
.st-note.ok, .seat-tile.mine .st-note { color: var(--ok); }
:root[data-theme="light"] .st-open, :root[data-theme="light"] .st-note.ok, :root[data-theme="light"] .seat-tile.mine .st-note { color: #1c8a54 !important; }

@media (max-width: 640px) {
  .fc-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fc-head .pill { display: none; }
  .seat-tiles { grid-template-columns: 1fr; }
}

/* ==========================================================
   Admin · Edit Event
   ========================================================== */
.ev-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; padding: 26px 26px 22px; border: 1px solid var(--line); background: radial-gradient(ellipse at 70% 20%, #3a3f33 0%, #1f2326 50%, #141618 100%); color: #ece4cc; }
.ev-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, #c8b88a 0 14px, transparent 14px 20px); z-index: 1; }
.ev-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.ev-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,24,.94) 0%, rgba(20,22,24,.78) 50%, rgba(20,22,24,.45) 100%); }
.ev-hero .sec-tag { color: #c8b88a; }
.ev-hero h2 { margin: 6px 0 12px; font-size: clamp(26px, 3.2vw, 42px); font-style: italic; line-height: 1; color: #fff; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chips > span:not(.adm-pill) { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(200,184,138,.35); background: rgba(20,22,24,.55); font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: #ece4cc; }
.ev-chips em { font-style: normal; color: #9a9585; }
.ev-stats { display: grid; grid-template-columns: repeat(4, auto); margin: 0; border: 1px solid rgba(200,184,138,.3); background: rgba(14,16,18,.7); }
.ev-stats div { padding: 10px 16px; border-left: 1px dashed rgba(200,184,138,.25); }
.ev-stats div:first-child { border-left: none; }
.ev-stats dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: #c8b88a; white-space: nowrap; }
.ev-stats dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1; color: #ece4cc; }
.ev-stats dd small { font-size: 15px; color: #9a9585; }
.ev-stats dd.sm { font-size: 16px; padding-top: 6px; }

.ev-layout { display: grid; gap: 20px; align-items: start; }
.ev-layout.with-flights { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); }
.ev-form { display: grid; gap: 16px; }
.ev-section { display: grid; gap: 14px; }
.ev-sec-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px dashed var(--line); }
.ev-sec-head > span { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--khaki); font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--khaki); }
.ev-sec-head h3 { margin: 0; font-size: 17px; letter-spacing: 2px; }
.ev-sec-head p { margin: 3px 0 0; font-size: 13px; }

.ev-banner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.ev-banner .mb-preview { max-height: none; aspect-ratio: 16 / 9; }
.ev-banner-side { display: grid; gap: 8px; align-content: start; }
.ev-banner-side .pe-drop { min-height: 150px; }

.ev-timeline { display: grid; grid-template-columns: auto minmax(30px, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); background: var(--navy-deep); }
.ev-timeline small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.ev-timeline b { display: block; font-family: var(--font-head); font-size: 17px; letter-spacing: 1px; color: var(--sand); }
.ev-timeline span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ev-timeline > div:last-child { text-align: right; }
.ev-timeline i { height: 0; border-top: 1px dashed color-mix(in srgb, var(--khaki) 60%, transparent); }

.ev-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-toggle { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--navy-deep); cursor: pointer; transition: border-color .2s; }
.ev-toggle:hover { border-color: var(--khaki); }
.ev-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ev-switch { flex-shrink: 0; position: relative; width: 42px; height: 22px; margin-top: 2px; border: 1px solid var(--line); background: var(--gunmetal-3); transition: .2s; }
.ev-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--muted); transition: .2s; }
.ev-toggle input:checked + .ev-switch { background: color-mix(in srgb, var(--ok) 25%, transparent); border-color: var(--ok); }
.ev-toggle input:checked + .ev-switch::after { left: 22px; background: var(--ok); }
.ev-toggle input:focus-visible + .ev-switch { outline: 2px solid var(--khaki); outline-offset: 2px; }
.ev-toggle b { display: block; font-family: var(--font-head); font-size: 15px; letter-spacing: 1px; color: var(--sand); }
.ev-toggle small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--muted); }

.ev-savebar { z-index: 5; align-items: center; padding: 12px 0; }
.ev-savebar-note { margin-left: auto; font-size: 12px; color: var(--muted); }

.ev-flights { position: sticky; top: 16px; display: grid; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; }
.ev-flights-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ev-flights-head h3 { margin: 0; font-size: 17px; letter-spacing: 2px; }
.ev-flights-head p { margin: 3px 0 0; font-family: var(--font-mono); font-size: 12px; }
.ev-meter { height: 4px; background: var(--line); }
.ev-meter i { display: block; height: 100%; background: var(--ok); }
.afl { border: 1px solid var(--line); border-left: 3px solid var(--khaki); background: var(--navy-deep); }
.afl.hostile { border-left-color: var(--hostile); }
.afl-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 12px 8px; }
.afl-pkg { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--sand); }
.afl-title b { font-family: var(--font-head); font-size: 19px; letter-spacing: 1px; color: var(--sand); }
.afl-title small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.afl-route { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto; align-items: center; gap: 10px; padding: 0 12px 10px; font-family: var(--font-mono); font-size: 12px; color: var(--sand); }
.afl-route em { font-style: normal; color: var(--muted); }
.afl-route i { height: 0; border-top: 1px dashed var(--line); }
.afl-seats, .afl-unseated { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 12px; }
.afl-unseated { padding: 0; }
.aseat { padding: 8px 10px; border: 1px solid var(--line); background: var(--gunmetal-2); }
.aseat.open { border-style: dashed; }
.aseat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.aseat-top b { font-family: var(--font-head); font-size: 14px; letter-spacing: 1px; color: var(--sand); }
.aseat-top small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; color: var(--muted); white-space: nowrap; }
.aseat-pilot { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-top: 6px; }
.aseat-pilot span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--sand); }
.aseat-pilot em { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--ok); }
.aseat-av { width: 28px !important; height: 28px !important; font-size: 11px !important; }
.aseat-pilot .adm-inline .btn { padding: 2px 8px; font-size: 11px; }
:root[data-theme="light"] .aseat-pilot em { color: #1c8a54; }
.ev-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.ev-empty svg { font-size: 28px; color: var(--khaki); }
.ev-empty b { font-family: var(--font-head); letter-spacing: 2px; color: var(--sand); }
.ev-empty p { margin: 0; font-size: 13px; }

@media (max-width: 1200px) {
  .ev-layout.with-flights { grid-template-columns: 1fr; }
  .ev-flights { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .ev-banner, .ev-toggles { grid-template-columns: 1fr; }
  .ev-stats { grid-template-columns: repeat(2, auto); width: 100%; }
  .ev-savebar-note { display: none; }
}
.ev-banner .mb-preview { position: relative; width: 100%; max-height: none; }
.ev-banner .mb-preview img { position: absolute; inset: 0; }
.ev-banner-side .checkbox-row { margin: 0; }
.adm-form .ev-toggle small, .adm-form .ev-toggle b { text-transform: none; }
.adm-form .ev-toggle small { font-family: var(--font-ui); font-weight: 400; letter-spacing: 0; }
.aseat-top b { white-space: nowrap; }

/* ==========================================================
   Admin · Edit Event tabs + Mission Map (.miz briefing)
   ========================================================== */
.ev-tabs { display: flex; gap: 0; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.ev-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; margin-bottom: -1px; }
.ev-tabs button:hover { color: var(--sand); }
.ev-tabs button.active { color: var(--sand); border-bottom-color: var(--khaki); background: color-mix(in srgb, var(--khaki) 7%, transparent); }
.ev-tabs em { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; padding: 2px 6px; border: 1px solid var(--line); color: var(--khaki); }

.miz-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 24px; text-align: center; }
.miz-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--khaki); color: var(--khaki); font-size: 30px; }
.miz-empty h3 { margin: 4px 0 0; font-size: 22px; }
.miz-empty > p { max-width: 640px; margin: 0; font-size: 14px; }
.miz-upload { width: min(640px, 100%); margin-top: 8px; }
.miz-drop { min-height: 170px; }
.miz-drop.is-over, .miz-drop.is-busy { border-color: var(--khaki); background: color-mix(in srgb, var(--khaki) 8%, transparent); }
.miz-busy { margin: 10px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--khaki); }

.miz-shell { border: 1px solid var(--line); background: var(--gunmetal-2); }
.miz-shell:fullscreen { display: flex; flex-direction: column; }
.miz-shell:fullscreen .miz-body { flex: 1; height: auto; }
.miz-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--khaki) 9%, transparent), transparent 70%); }
.miz-title h3 { margin: 4px 0 8px; font-size: clamp(20px, 2.2vw, 28px); font-style: italic; }
.miz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.miz-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.miz-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.miz-actions form { margin: 0; }
.miz-actions label.btn { cursor: pointer; }
.miz-error { padding: 8px 18px 0; }

.miz-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(78vh, 860px); min-height: 520px; }
.miz-side { display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line); background: var(--navy-deep); }
.miz-block { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.miz-grow { flex: 1; }
.miz-sec { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 3px; color: var(--khaki); cursor: default; }
.miz-sec span { color: var(--muted); }
.miz-row { display: flex; gap: 6px; }
.miz-row select { flex: 1; min-width: 0; padding: 6px 8px; font-size: 13px; }
.miz-mini { padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--sand); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; cursor: pointer; }
.miz-mini:hover { border-color: var(--khaki); color: var(--khaki); }
.miz-range { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.miz-range input { flex: 1; accent-color: var(--khaki); }
.miz-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.miz-layers label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sand); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0; }
.miz-layers input { accent-color: var(--khaki); }

.miz-side-head { margin: 8px 0 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; }
.miz-side-head:first-child { margin-top: 0; }
.miz-side-head.blue { color: #4f8fd6; }
.miz-side-head.red { color: #ff5151; }
.miz-side-head.neutrals { color: var(--ok); }
.miz-flight { border: 1px solid var(--line); margin-bottom: 6px; background: var(--gunmetal-2); }
.miz-flight.open { border-color: var(--khaki); }
.mf-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; }
.mf-head input { accent-color: var(--khaki); margin: 0; }
.mf-head > i { width: 10px; height: 10px; border-radius: 50%; }
.mf-name { cursor: pointer; min-width: 0; }
.mf-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 14px; letter-spacing: 1px; color: var(--sand); }
.mf-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.mf-name:hover b { color: var(--khaki); }
.mf-slots { padding: 2px 6px; border: 1px solid var(--ok); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--ok); white-space: nowrap; }
.mf-wps { display: none; width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 10px; }
.miz-flight.open .mf-wps { display: table; }
.mf-wps th { padding: 4px 6px; text-align: left; font-weight: 500; letter-spacing: 1px; color: var(--khaki); border-top: 1px dashed var(--line); }
.mf-wps td { padding: 3px 6px; color: var(--sand); border-top: 1px dashed var(--line); white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }

.miz-wx { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.miz-wx div { padding: 6px 8px; border: 1px solid var(--line); }
.miz-wx dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--khaki); }
.miz-wx dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--sand); }
.miz-brief summary { cursor: pointer; list-style: none; }
.miz-brief summary::after { content: "▾"; }
.miz-brief[open] summary::after { content: "▴"; }
.miz-brief p { margin: 0 0 8px; font-size: 12px; line-height: 1.5; }
.miz-brief h5 { margin: 8px 0 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: #4f8fd6; }

.miz-mapwrap { position: relative; }
.miz-map { position: absolute; inset: 0; background: #0a0c0d; }
.miz-readout { position: absolute; left: 10px; bottom: 10px; z-index: 500; padding: 5px 10px; border: 1px solid rgba(200,184,138,.3); background: rgba(14,16,18,.85); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: #ece4cc; pointer-events: none; }
.miz-map .leaflet-control-attribution { background: rgba(14,16,18,.8) !important; color: #9a9585 !important; font-size: 9px !important; }
.miz-map .leaflet-control-attribution a { color: #9a9585 !important; }
.miz-map .leaflet-bar a { background: #1c1f22; color: #ece4cc; border-color: rgba(200,184,138,.25); }
.miz-icon { background: none; border: 0; }
.miz-wp { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c); background: rgba(14,16,18,.9); color: #fff; font: 700 9px/1 var(--font-mono); box-shadow: 0 0 6px rgba(0,0,0,.7); }
.miz-wp.first { border-radius: 2px; background: var(--c); color: #000; }
.miz-lbl { display: inline-block; transform: translate(12px, -50%); white-space: nowrap; font: 600 10px var(--font-mono); letter-spacing: .5px; color: #ece4cc; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 0 1px #000; pointer-events: none; }
.miz-lbl.flight { transform: translate(14px, 6px); font: 800 12px var(--font-head); letter-spacing: 1px; color: #fff; }
.miz-lbl.zone { transform: translate(-50%, -50%); color: #e0a03a; }
.miz-lbl.text { transform: none; padding: 2px 6px; border: 1px solid rgba(255,255,255,.3); background: rgba(14,16,18,.7); font-size: 11px; }
.miz-nato { filter: drop-shadow(0 0 2px #000); }
.leaflet-tooltip.miz-tip { padding: 6px 10px; border: 1px solid rgba(200,184,138,.35); border-radius: 0; background: rgba(14,16,18,.94); color: #ece4cc; font: 11px/1.5 var(--font-mono); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.leaflet-tooltip.miz-tip::before { display: none; }
.miz-tip b { font-family: var(--font-head); font-size: 13px; letter-spacing: 1px; }
.miz-dim { color: #9a9585; }
.miz-side.blue, .miz-tip .miz-side.blue { color: #4f8fd6; }
.miz-tip .miz-side.red { color: #ff5151; }

@media (max-width: 900px) {
  .miz-body { grid-template-columns: 1fr; height: auto; }
  .miz-side { max-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .miz-mapwrap { height: 70vh; }
}
.miz-actions { align-items: center; }
.miz-actions .btn { display: inline-flex; align-items: center; height: 38px; margin: 0; }

/* Mission Map: 2D/3D toggle, Cesium globe, active flight elements */
.miz-view { display: inline-flex; }
.miz-view .miz-mini { min-width: 36px; }
.miz-view .miz-mini + .miz-mini { border-left: 0; }
.miz-mini.on { background: var(--khaki); border-color: var(--khaki); color: #141618; }
.miz-globe { position: absolute; inset: 0; z-index: 600; background: #0a0c0d; }
.miz-globe[hidden] { display: none; }
.miz-globe .cesium-viewer, .miz-globe .cesium-widget, .miz-globe canvas { width: 100%; height: 100%; }
.miz-globe-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #0a0c0d; font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: #c8b88a; }
.miz-globe-loading[hidden] { display: none; }
.miz-globe ~ .miz-readout { z-index: 700; }
.miz-hint { margin: -2px 0 10px; font-size: 11px; line-height: 1.45; color: var(--muted); }
.miz-hint b { color: var(--sand); }
.miz-flight.inactive { opacity: .55; }
.miz-flight.inactive .mf-slots { border-color: var(--line); color: var(--muted); }
.miz-flight.inactive:hover { opacity: .85; }
.mf-head input:disabled { cursor: progress; }
.miz-globe { z-index: 1100; }
.miz-readout { z-index: 1200; }
.miz-globe-zoom { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-direction: column; border: 1px solid rgba(200,184,138,.3); }
.miz-globe-zoom button { width: 34px; height: 34px; border: 0; background: #1c1f22; color: #ece4cc; font: 700 18px/1 var(--font-mono); cursor: pointer; }
.miz-globe-zoom button + button { border-top: 1px solid rgba(200,184,138,.25); }
.miz-globe-zoom button:hover { background: #2c3136; color: #c8b88a; }
.miz-globe { overscroll-behavior: contain; touch-action: none; }
.mf-slots.mine { border-color: var(--khaki); color: var(--khaki); }
.op-map-panel { padding: 0 !important; }
.op-map-panel .miz-body { height: min(72vh, 760px); grid-template-columns: 270px minmax(0, 1fr); }
.miz-readonly .mf-head { grid-template-columns: 0 auto minmax(0, 1fr) auto; }

/* ==========================================================
   Ready Room · My Profile
   ========================================================== */
.pf-hero { align-items: center; }
.pf-avatar { flex-shrink: 0; width: 120px; height: 120px; padding: 3px; background: linear-gradient(135deg, #c8b88a, #5d6b33); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); position: relative; z-index: 1; }
.pf-avatar .avatar { width: 100% !important; height: 100% !important; display: grid; place-items: center; object-fit: cover; border-radius: 0 !important; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-family: var(--font-head); font-weight: 800; font-size: 36px; color: #fff; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.pf-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid rgba(200,184,138,.35); background: rgba(20,22,24,.55); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: #ece4cc; }

.pf-record { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px 0 20px; border: 1px solid var(--line); background: var(--navy-deep); }
.pf-record div { padding: 14px 18px; border-left: 1px dashed var(--line); }
.pf-record div:first-child { border-left: none; }
.pf-record dt { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--khaki); }
.pf-record dd { margin: 6px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--sand); }
.pf-record dd.sm { font-size: 22px; }
.pf-record dd .pf-unit { margin: 0 8px 0 3px; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pf-record dd .pf-unit:last-of-type { margin-right: 0; }
.pf-record dd small { display: block; margin-top: 5px; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 1px; color: var(--muted); }

.pf-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.pf-main, .pf-side { display: grid; gap: 20px; min-width: 0; }
.pf-main > .mem-sec, .pf-main > section:not(.pf-card) { margin-top: 0; }
.pf-card { border: 1px solid var(--line); background: var(--gunmetal-2); padding: 18px 20px; position: relative; }
.pf-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: repeating-linear-gradient(90deg, var(--olive-2) 0 14px, transparent 14px 20px); }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pf-head h3 { margin: 0; font-size: 16px; letter-spacing: 2px; }
.pf-head a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--khaki); }
.pf-sub { display: flex; justify-content: space-between; margin: 16px 0 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); }
.pf-sub span { color: var(--khaki); }
.pf-empty { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line); }
.pf-empty p { margin: 0; font-size: 13px; }

.pf-sortie { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); background: var(--navy-deep); color: inherit; transition: border-color .2s; }
.pf-sortie + .pf-sortie { margin-top: 8px; }
.pf-sortie:hover { border-color: var(--khaki); }
.pf-sortie.upcoming { border-left: 3px solid var(--khaki); }
.pf-sortie.past { opacity: .8; }
.pf-date { display: grid; place-items: center; width: 50px; padding: 4px 0; border: 1px solid var(--line); line-height: 1; }
.pf-date b { font-family: var(--font-head); font-size: 22px; color: var(--sand); }
.pf-date small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.pf-date.is-year b { font-size: 16px; }
.pf-head-link { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--khaki); }
.pf-legacy-actions { display: flex; gap: 6px; }
.pf-legacy-actions form { margin: 0; }
.pf-sortie-body { min-width: 0; }
.pf-sortie-body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 16px; letter-spacing: .5px; color: var(--sand); }
.pf-sortie-body small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pf-seat { text-align: right; font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: 1px; color: var(--khaki); }
.pf-seat small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; color: var(--muted); }

.pf-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pf-award { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); background: var(--navy-deep); text-align: center; }
.pf-award img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.pf-award-disc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 22px; color: #141618; background: radial-gradient(circle at 35% 30%, #f6e7a8, #c8a23a 60%, #7a5c12); }
.pf-award.steel .pf-award-disc { background: radial-gradient(circle at 35% 30%, #d6e4f2, #7fa2c6 55%, #2f4b6b); }
.pf-award.bronze .pf-award-disc { background: radial-gradient(circle at 35% 30%, #f0c9a0, #b07a45 55%, #5e3b1c); }
.pf-award b { font-family: var(--font-head); font-size: 13px; line-height: 1.2; color: var(--sand); }
.pf-award small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); }

.pf-facts { display: grid; margin: 0; }
.pf-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pf-facts div:last-child { border-bottom: none; }
.pf-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pf-facts dt em { font-style: normal; font-size: 9px; color: var(--khaki); }
.pf-facts dd { margin: 0; text-align: right; font-family: var(--font-head); font-size: 14px; letter-spacing: .5px; color: var(--sand); }
.pf-bio { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.55; }
.pf-chips-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips-list span { padding: 4px 9px; border: 1px solid var(--line); background: var(--navy-deep); font-family: var(--font-mono); font-size: 11px; color: var(--sand); }

@media (max-width: 1100px) {
  .pf-layout { grid-template-columns: 1fr; }
  .pf-record { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-record div:nth-child(4) { border-left: none; }
}
@media (max-width: 640px) {
  .pf-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-avatar { width: 88px; height: 88px; }
  .pf-sortie { grid-template-columns: auto minmax(0, 1fr); }
  .pf-seat { grid-column: 2; text-align: left; }
}

/* Pilot dossier (personnel detail) tidy-up */
.dossier-main { display: grid; gap: 24px; min-width: 0; }
.dossier-facts { grid-template-columns: repeat(5, minmax(0, auto)); justify-self: start; max-width: 100%; }
.dossier-facts dd.small-dd { white-space: nowrap; }
.pd-gap { margin-bottom: 0; }
.op-board-head.pd-section { margin-top: 40px; }
.pd-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pd-empty svg { flex-shrink: 0; font-size: 18px; color: var(--khaki); }
.medal-grid > .pd-empty { grid-column: 1 / -1; }
@media (max-width: 900px) { .dossier-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dossier-facts div:nth-child(odd) { border-left: none; } }

/* ==========================================================
   Home · Activities + Upcoming Operations board
   ========================================================== */
.act-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--gunmetal-2); }
.act-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 26px 24px 22px; border-left: 1px solid var(--line); overflow: hidden; transition: background .25s; }
.act-card:first-child { border-left: none; }
.act-card:hover { background: color-mix(in srgb, var(--khaki) 6%, transparent); }
.act-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--khaki); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.act-card:hover::after { transform: scaleX(1); }
.act-no { position: absolute; top: 10px; right: 16px; font-family: var(--font-head); font-weight: 800; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--khaki) 30%, transparent); }
.act-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--khaki); color: var(--khaki); font-size: 24px; }
.act-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: 2px; }
.act-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.act-freq { justify-self: start; padding: 3px 8px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--amber); }

.act-head { margin-top: 56px; }
.act-title { margin: 2px 0 0; font-size: clamp(26px, 3vw, 38px); }
.ops-board { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: auto; gap: 18px; }
.ops-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--gunmetal-2); transition: border-color .25s, transform .25s; }
.ops-card:hover { border-color: var(--khaki); transform: translateY(-3px); }
.ops-card.featured { grid-row: span 2; }
.ops-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at 60% 30%, #3a3f33 0%, #1f2326 55%, #141618 100%); }
.ops-card.featured .ops-media { aspect-ratio: 16 / 10; }
.ops-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ops-card:hover .ops-media img { transform: scale(1.05); }
.ops-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,18,.1) 35%, rgba(14,16,18,.88) 100%); }
.ops-date { position: absolute; z-index: 1; left: 14px; bottom: 12px; display: grid; line-height: 1; color: #fff; }
.ops-date b { font-family: var(--font-head); font-weight: 800; font-size: 38px; }
.ops-date small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: #c8b88a; }
.ops-type, .ops-lock { position: absolute; z-index: 1; top: 12px; padding: 3px 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; background: rgba(14,16,18,.75); border: 1px solid rgba(200,184,138,.4); color: #ece4cc; }
.ops-type { left: 12px; }
.ops-lock { right: 12px; display: inline-flex; align-items: center; gap: 5px; color: #e0a03a; border-color: rgba(224,160,58,.5); }
.ops-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; }
.ops-body h4 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: 1px; }
.ops-card.featured .ops-body h4 { font-size: clamp(22px, 2.2vw, 28px); font-style: italic; }
.ops-body h4 a { color: var(--sand); }
.ops-body h4 a:hover { color: var(--khaki); }
.ops-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ops-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ops-summary { margin: 0; font-size: 14px; line-height: 1.55; }
.ops-seats { display: grid; gap: 6px; margin-top: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.ops-seats i { display: block; height: 4px; background: var(--line); }
.ops-seats b { display: block; height: 100%; background: var(--ok); }
.ops-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.act-training { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 18px; border: 1px solid var(--line); background: var(--navy-deep); }
.act-training-tag { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); border-right: 1px solid var(--line); }
.act-training-item { display: grid; gap: 2px; padding: 10px 16px; border-right: 1px dashed var(--line); min-width: 0; }
.act-training-item b { font-family: var(--font-head); font-size: 14px; letter-spacing: .5px; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.act-training-item small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.act-training-item em { font-style: normal; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--amber); }
.act-training-item em.ok { color: var(--ok); }

/* ==========================================================
   Public operation briefing (/operations/{mission})
   ========================================================== */
.ob-page { padding-top: 110px; }
.ob-dim { font-style: normal; color: #9a9585; }
.ob-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); background: var(--navy-deep); }
.ob-strip dl { display: flex; flex-wrap: wrap; margin: 0; }
.ob-strip dl div { padding: 4px 18px; border-left: 1px dashed var(--line); }
.ob-strip dl div:first-child { border-left: none; padding-left: 0; }
.ob-strip dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--khaki); }
.ob-strip dd { margin: 3px 0 0; font-family: var(--font-head); font-size: 16px; letter-spacing: 1px; color: var(--sand); }
.ob-strip dd.ok { color: var(--ok); }
.ob-strip dd.warn { color: var(--amber); }
.ob-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-you { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--khaki); }
.ob-tabs-wrap .op-panel .flight-card + .flight-card { margin-top: 16px; }
.ob-seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 18px 18px; }
.ob-seat { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); background: var(--navy-deep); }
.ob-seat.open { border-style: dashed; }
.ob-seat b { font-family: var(--font-head); font-size: 15px; letter-spacing: 1px; color: var(--sand); }
.ob-seat small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.ob-seat span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--sand); }
.ob-seat.open span { color: var(--ok); }

@media (max-width: 1000px) {
  .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-card:nth-child(3) { border-left: none; }
  .act-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ops-board { grid-template-columns: 1fr 1fr; }
  .ops-card.featured { grid-column: 1 / -1; grid-row: auto; }
  .ob-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .act-grid, .ops-board { grid-template-columns: 1fr; }
  .act-card { border-left: none; border-top: 1px solid var(--line); }
  .act-card:first-child { border-top: none; }
}
.ops-board.count-1 { grid-template-columns: 1fr; }
.ops-board.count-1 .ops-card.featured { flex-direction: row; grid-row: auto; }
.ops-board.count-1 .ops-card.featured .ops-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.ops-board.count-1 .ops-card.featured .ops-body { justify-content: center; padding: 28px 30px; gap: 14px; }
.ops-board.count-2 { grid-template-columns: 1.25fr 1fr; }
.ops-board.count-2 .ops-card.featured { grid-row: auto; }
@media (max-width: 1000px) {
  .ops-board.count-1 .ops-card.featured { flex-direction: column; }
  .ops-board.count-1 .ops-card.featured .ops-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .ops-board.count-2 { grid-template-columns: 1fr; }
}

/* ==========================================================
   Flight Plan tab — per-element kneeboard data card
   ========================================================== */
.fc-head { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
.fc-plan { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); background: transparent; color: var(--khaki); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.fc-plan:hover { border-color: var(--khaki); background: color-mix(in srgb, var(--khaki) 10%, transparent); }

.fp-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.fp-elements { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-elements button { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); background: var(--navy-deep); color: var(--sand); text-align: left; cursor: pointer; transition: border-color .2s; }
.fp-elements button:hover { border-color: var(--khaki); }
.fp-elements button.on { border-color: var(--khaki); box-shadow: inset 0 -2px 0 var(--khaki); background: color-mix(in srgb, var(--khaki) 9%, var(--navy-deep)); }
.fp-no { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--khaki); }
.fp-elements b { display: block; font-family: var(--font-head); font-size: 14px; letter-spacing: 1px; }
.fp-elements small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.fp-elements em { font-style: normal; padding: 1px 6px; border: 1px solid var(--khaki); font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--khaki); }
.fp-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fp-status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); margin-right: 4px; }
.fp-hint { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.fp-sheet-wrap { overflow-x: auto; padding: 18px; background: var(--navy-deep); border: 1px solid var(--line); }

.kb { width: 780px; margin: 0 auto; padding: 16px; background: #fff; color: #000; box-shadow: 0 12px 34px rgba(0,0,0,.5); font-family: 'Courier New', Courier, monospace; }
.kb table { width: 100%; border-collapse: collapse; margin-bottom: 12px; border: 2px solid #111; }
.kb th, .kb td { border: 1px solid #111; padding: 2px 4px; height: 22px; text-align: center; vertical-align: middle; font-size: 11px; color: #000; }
.kb th { background: #9ca3af; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.kb .kb-sub { background: #e5e7eb; white-space: nowrap; }
.kb .kb-title { background: #e5e7eb; padding: 4px 8px; text-align: left; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.kb .kb-title small { font-size: 10px; color: #4b5563; }
.kb .tl { text-align: left; }
.kb .tr { text-align: right; padding-right: 8px; font-weight: 700; background: #e5e7eb; }
.kb tfoot td { background: #e5e7eb; font-weight: 700; }
.kb input, .kb textarea { width: 100%; box-sizing: border-box; border: 1px solid transparent; padding: 2px; background: transparent; color: #000; font: 700 11px 'Courier New', Courier, monospace; text-align: center; }
.kb input.tl { text-align: left; padding-left: 4px; }
.kb input:hover, .kb input:focus, .kb textarea:focus { border-color: #2563eb; background: #eff6ff; outline: none; }
.kb textarea { min-height: 54px; resize: vertical; text-align: left; }
.kb output { font-weight: 700; }
.kb .kb-joker { color: #ea580c; }
.kb .kb-bingo { color: #dc2626; }
.kb .kb-open { color: #6b7280; font-style: italic; }
.kb-add { float: right; padding: 2px 8px; border: 0; background: #374151; color: #fff; font: 700 10px Arial, sans-serif; cursor: pointer; }
.kb-del { border: 0; background: none; color: #dc2626; font-weight: 700; cursor: pointer; }
.kb-route td:nth-child(1) { width: 34px; font-weight: 700; }
.kb { width: 100%; min-width: 660px; max-width: 820px; }
.fp-sheet-wrap { padding: 14px; }
[data-fp] [hidden] { display: none !important; }
.kb-route th, .kb-route td, .kb-route input, .kb-route output { font-size: 10px; letter-spacing: -.2px; }
.kb-route td { padding: 2px 2px; }

/* ===== Frag order: NATO symbols, nav points, admin route editor, kneeboards ===== */
.miz-ms svg { display: block; filter: drop-shadow(0 0 2px rgba(0,0,0,.8)); }
.miz-wp.tgt { border-color: #ff5151; box-shadow: 0 0 0 2px rgba(255,81,81,.35), 0 0 6px rgba(0,0,0,.7); }
.miz-wp.sel { outline: 2px solid #fff; outline-offset: 2px; }
.miz-nav { display: block; width: 12px; height: 12px; margin: 2px; transform: rotate(45deg); border: 2px solid #4f8fd6; background: rgba(14,16,18,.85); box-shadow: 0 0 5px rgba(0,0,0,.7); }
.miz-nav.red { border-color: #ff5151; }
.miz-nav.all { border-color: #c8b88a; }
.miz-nav + .miz-lbl { position: absolute; left: 4px; top: 8px; }
.miz-lbl.nav { color: #c8b88a; }
.miz-lbl.flight i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.mf-wps tr.tgt td { color: #ff8a8a; }
.frag-tools .miz-row { flex-wrap: wrap; }
.frag-tools a.miz-mini { display: inline-flex; align-items: center; min-height: 26px; text-decoration: none; }
.frag-tools .miz-mini:disabled { opacity: .45; cursor: not-allowed; }
.frag-editing { cursor: crosshair; }
.frag-panel { position: absolute; z-index: 1000; top: 12px; right: 12px; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 60px); display: flex; flex-direction: column; border: 1px solid var(--khaki); background: rgba(14,16,18,.96); box-shadow: 0 14px 40px rgba(0,0,0,.6); color: var(--sand); }
.frag-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--khaki); }
.frag-head select { flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid var(--line); background: var(--navy-deep); color: var(--sand); font-family: var(--font-mono); font-size: 11px; }
.frag-sub { flex: 1; color: var(--muted); }
.frag-x { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.frag-x:hover { color: #fff; }
.frag-hint { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--muted); }
.frag-scroll { overflow: auto; padding: 0 12px; }
.frag-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 11px; }
.frag-table th { position: sticky; top: 0; padding: 5px 4px; background: #15181b; color: var(--khaki); font-weight: 500; letter-spacing: 1px; text-align: left; }
.frag-table td { padding: 3px 4px; border-top: 1px dashed var(--line); white-space: nowrap; }
.frag-table input:not([type=checkbox]), .frag-table select { width: 100%; min-width: 48px; padding: 3px 5px; border: 1px solid var(--line); background: var(--navy-deep); color: var(--sand); font: inherit; }
.frag-table td:nth-child(2) input { min-width: 90px; }
.frag-table tr.sel td { background: color-mix(in srgb, var(--khaki) 12%, transparent); }
.frag-table tr.bad input[data-f="tot"] { border-color: #ff5151; color: #ff8a8a; }
.frag-table [data-gs].warn { color: #e0a03a; }
.frag-table .mono { color: var(--muted); }
.frag-table tfoot td { color: var(--khaki); }
.frag-table .tr { text-align: right; }
.frag-n { width: 24px; height: 22px; border: 1px solid var(--line); background: none; color: var(--sand); font: inherit; cursor: pointer; }
.frag-del { border: 0; background: none; color: #ff5151; cursor: pointer; }
.frag-empty { padding: 14px 4px !important; color: var(--muted); text-align: center; }
.frag-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.frag-msg { flex: 1; font-size: 12px; color: #ff8a8a; }
.kbd-warn { color: #e0a03a !important; }
.kbd-gen { width: 100%; min-height: 28px; margin-bottom: 8px; }
.kbd-list { display: grid; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.kbd-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; }
.kbd-thumb img { display: block; width: 34px; height: 45px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.kbd-list b { display: block; font-size: 12px; color: var(--sand); }
.kbd-list small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.kbd-del { border: 0; background: none; color: #ff5151; cursor: pointer; }
.kbd-upload { display: flex; gap: 6px; margin-top: 8px; }
.kbd-upload select { flex: 1; min-width: 0; padding: 4px; border: 1px solid var(--line); background: var(--navy-deep); color: var(--sand); font-size: 11px; }
.kbd-upload label { display: inline-flex; align-items: center; cursor: pointer; }
[data-theme="light"] .frag-panel { background: rgba(255,255,255,.97); color: #1b2430; }
[data-theme="light"] .frag-table th { background: #eef0f2; }

/* Flight plan: comms, laser, fuel, TOT, locks */
.kb { width: 860px; }
.kb select { width: 100%; border: 1px solid transparent; background: transparent; font: 700 10px 'Courier New', Courier, monospace; color: #000; }
.kb .kb-comms th select { width: auto; margin-left: 6px; border-color: #6b7280; background: #fff; }
.kb input[readonly], .kb select:disabled { cursor: default; }
.kb input[readonly]:hover, .kb input[readonly]:focus { border-color: transparent; background: transparent; }
.kb .kb-hint { font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #4b5563; text-align: left; }
.kb .kb-err { color: #dc2626; text-align: left; }
.kb tr.kb-tgt td { background: #fee2e2; }
.kb tr.kb-bad input.kb-tot { border-color: #dc2626; background: #fee2e2; color: #dc2626; }
.kb .kb-joker-hit { color: #ea580c; }
.kb .kb-bingo-hit { color: #dc2626; }
.kb input[type=checkbox] { width: auto; }
.fp-banner { margin: -6px 0 14px; padding: 8px 12px; border-left: 3px solid #e0a03a; background: color-mix(in srgb, #e0a03a 12%, transparent); font-size: 13px; color: var(--sand); }
.fp-banner.info { border-color: var(--khaki); }
.fp-banner a { color: var(--khaki); }
.fp-elements button.locked { border-style: dashed; }
.fp-elements button.locked::after { content: '🔒'; font-size: 11px; }

/* ===== Admin event editor: tabs, section nav, flights grid, map toolbar, export tab, draw tools ===== */
.ev-tabs { overflow-x: auto; }
.ev-tabs button { white-space: nowrap; }
.ev-tab-no { font-family: var(--font-mono); font-size: 11px; color: var(--khaki); opacity: .7; }
.ev-tabs button.active .ev-tab-no { opacity: 1; }
.ev-tabs em.ok { border-color: color-mix(in srgb, var(--ok) 55%, transparent); color: var(--ok); }
.ev-layout, .ev-layout.with-flights { grid-template-columns: 220px minmax(0, 1fr); }
.ev-secnav { position: sticky; top: 16px; display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); background: var(--navy-deep); }
.ev-secnav .sec-tag { margin-bottom: 8px; }
.ev-secnav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-left: 2px solid transparent; color: var(--sand); font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; }
.ev-secnav a:hover { border-left-color: var(--khaki); background: color-mix(in srgb, var(--khaki) 8%, transparent); }
.ev-secnav a b { font-family: var(--font-mono); font-size: 11px; color: var(--khaki); }
.ev-secnav-status { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ev-secnav-status div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ev-secnav-status small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.ev-secnav-status b { font-family: var(--font-mono); font-size: 13px; color: var(--sand); }
.ev-section { scroll-margin-top: 16px; }
.ev-flights { position: static; max-height: none; overflow: visible; gap: 14px; }
.ev-flights-hint { margin: 0; font-size: 13px; color: var(--muted); }
.ev-flights-hint a { color: var(--khaki); }
.afl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.afl-grid > .ev-empty { grid-column: 1 / -1; }

.miz-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--navy-deep); }
.mt-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-label { margin-right: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); }
.miz-toolbar select { height: 30px; padding: 0 8px; border: 1px solid var(--line); background: var(--gunmetal-2); color: var(--sand); font-size: 12px; }
.miz-toolbar .miz-mini { height: 30px; }
.miz-toolbar .miz-range { margin: 0 0 0 4px; width: 110px; }
.miz-fold summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.miz-fold summary::-webkit-details-marker { display: none; }
.miz-fold summary::after { content: "▾"; color: var(--muted); }
.miz-fold[open] summary { margin-bottom: 8px; }
.miz-fold[open] summary::after { content: "▴"; }

.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.ft-card { display: grid; gap: 14px; }
.ft-wide { grid-column: 1 / -1; }
.ft-checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--sand); }
.ft-checks li::before { content: "✔"; margin-right: 8px; color: var(--ok); }
.ft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ft-actions form { margin: 0; }
.ft-actions label.btn { cursor: pointer; }
.ft-actions .kbd-upload { margin: 0; }
.ft-actions .kbd-upload select { height: 34px; min-width: 160px; }
.ft-warn { margin: 0; padding: 8px 12px; border-left: 3px solid #e0a03a; background: color-mix(in srgb, #e0a03a 10%, transparent); font-size: 13px; color: var(--sand); }
.ft-note, .ft-empty { margin: 0; font-size: 13px; color: var(--muted); }
.ft-empty a { color: var(--khaki); }
.kbd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.kbd-grid li { display: grid; gap: 6px; }
.kbd-page { display: block; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: #fff; overflow: hidden; transition: border-color .2s; }
.kbd-page:hover { border-color: var(--khaki); }
.kbd-page img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.kbd-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.kbd-meta b { display: block; font-size: 12px; color: var(--sand); }
.kbd-meta small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--muted); }

.draw-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px 12px 0; }
.draw-tool { display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border: 1px solid var(--line); background: var(--navy-deep); color: var(--sand); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; cursor: pointer; }
.draw-tool span { font-size: 17px; line-height: 1; }
.draw-tool:hover { border-color: var(--khaki); }
.draw-tool.on { border-color: var(--khaki); background: var(--khaki); color: #141618; }
.draw-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.draw-opts label { display: inline-flex; align-items: center; gap: 6px; }
.draw-opts select { padding: 3px 5px; border: 1px solid var(--line); background: var(--navy-deep); color: var(--sand); font: inherit; }
.draw-swatches { display: inline-flex; align-items: center; gap: 4px; }
.draw-swatches button { width: 18px; height: 18px; padding: 0; border: 1px solid rgba(0,0,0,.6); cursor: pointer; }
.draw-swatches button.on { outline: 2px solid #fff; outline-offset: 1px; }
.draw-swatches input[type=color], .frag-table input[type=color] { width: 26px; min-width: 26px; height: 20px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.miz-lbl.text.sel { outline: 1px dashed #fff; }
[data-theme="light"] .ev-secnav, [data-theme="light"] .miz-toolbar { background: #f4f2ec; }

@media (max-width: 1100px) {
  .ev-layout, .ev-layout.with-flights { grid-template-columns: 1fr; }
  .ev-secnav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .ev-secnav .sec-tag, .ev-secnav-status { display: none; }
  .ft-grid { grid-template-columns: 1fr; }
}
.miz-toolbar .mt-group { flex-wrap: nowrap; }
.miz-toolbar select { width: auto; min-width: 150px; flex: 0 0 auto; }
.ft-grid > .adm-card { margin: 0; }
.ft-actions .btn, .ft-actions .kbd-upload select { display: inline-flex; align-items: center; height: 38px; margin: 0; }
@media (max-width: 900px) { .miz-toolbar .mt-group { flex-wrap: wrap; } }

/* Admin · Flights & Seats — keep seats inside their card at any width */
.afl { min-width: 0; display: flex; flex-direction: column; }
.afl-head { padding: 12px 12px 10px; border-bottom: 1px dashed var(--line); }
.afl-title { min-width: 0; }
.afl-title b { font-size: 17px; margin-right: 4px; }
.afl-title .adm-pill { vertical-align: 2px; }
.afl-head .adm-inline .btn, .aseat-pilot .adm-inline .btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; font-size: 12px; letter-spacing: 0; line-height: 1; }
.afl-route { padding: 10px 12px; font-size: 11px; }
.afl-route span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afl-seats, .afl-unseated { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afl-unseated { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.aseat { min-width: 0; padding: 8px; }
.aseat-top { min-width: 0; }
.aseat-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.aseat-top small { flex-shrink: 0; font-size: 8px; letter-spacing: 1px; }
.aseat-pilot { gap: 6px; min-width: 0; }
.aseat-pilot .st-avatar.aseat-av { flex: 0 0 26px; width: 26px !important; height: 26px !important; border-radius: 0; font-size: 10px !important; }
.aseat-pilot span { font-size: 13px; }
.aseat-pilot .adm-inline { flex-shrink: 0; }
.adm-table tr[data-signup-row][hidden] { display: none !important; }

/* ===== Coming soon mode ===== */
.cs-body { margin: 0; min-height: 100vh; background: #0e1012; color: var(--sand); }
.cs-stage { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100vh; padding: 48px 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, rgba(58,63,51,.55) 0%, rgba(14,16,18,.92) 60%, #0e1012 100%), var(--cs-bg, none) center / cover no-repeat, #141618; }
.cs-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(200,184,138,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(200,184,138,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.cs-card { width: min(640px, 100%); display: grid; justify-items: center; gap: 18px; text-align: center; }
.cs-logo { width: 96px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.cs-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 4px; color: var(--khaki); }
.cs-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #e0a03a; box-shadow: 0 0 0 0 rgba(224,160,58,.6); animation: cs-pulse 1.8s infinite; }
@keyframes cs-pulse { 70% { box-shadow: 0 0 0 10px rgba(224,160,58,0); } 100% { box-shadow: 0 0 0 0 rgba(224,160,58,0); } }
.cs-card h1 { margin: 0; font-family: var(--font-head); font-size: clamp(34px, 6vw, 60px); font-style: italic; font-weight: 800; line-height: 1.02; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.cs-message { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--sand) 85%, transparent); }
.cs-countdown { display: grid; grid-template-columns: repeat(4, minmax(64px, 96px)); margin-top: 6px; border: 1px solid rgba(200,184,138,.35); background: rgba(14,16,18,.7); }
.cs-countdown div { display: grid; gap: 4px; padding: 14px 6px; }
.cs-countdown div + div { border-left: 1px dashed rgba(200,184,138,.25); }
.cs-countdown b { font-family: var(--font-head); font-size: clamp(28px, 5vw, 42px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cs-countdown small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--khaki); }
.cs-launch { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--muted, #8d9196); }
.cs-signin { display: grid; justify-items: center; gap: 8px; margin-top: 14px; padding-top: 20px; border-top: 1px dashed rgba(200,184,138,.25); width: min(360px, 100%); }
.cs-signin p { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--sand) 80%, transparent); }
.cs-signin small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(236,228,204,.45); }
.cs-signin-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid #5865f2; background: rgba(88,101,242,.15); color: #fff; font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.cs-signin-btn:hover { background: #5865f2; }
.cs-staffbar { position: relative; z-index: 60; padding: 8px 16px; background: #e0a03a; color: #141618; font-size: 13px; text-align: center; }
.cs-staffbar a { margin-left: 8px; color: #141618; font-weight: 700; text-decoration: underline; }
.cs-admin.is-on { border-color: #e0a03a; }
.cs-admin h3 { display: flex; align-items: center; gap: 10px; }
.cs-error { margin: 0; padding: 8px 12px; border-left: 3px solid #ff5151; background: rgba(255,81,81,.12); font-size: 13px; color: #ffb3b3; }

/* ==========================================================
   PROFILE LINK — operator ID card, CR100 portrait 66.8 × 98.6 mm
   (profile modal + /id/{callsign}). Sizes are in cqw so the card
   scales as one piece and prints at its exact physical size.
   ========================================================== */
.mem-hero .btn.is-locked { opacity: .75; }
.idc {
  container-type: inline-size; position: relative; box-sizing: border-box; display: flex; flex-direction: column;
  width: min(320px, 100%); aspect-ratio: 66.8 / 98.6; margin: 0 auto; padding: 0; overflow: hidden; color: #ece4cc;
  --idc-accent: #c8b88a; border: 1px solid var(--idc-edge, rgba(200,184,138,.35)); border-radius: 12px;
  background-color: #1b1e20;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(160deg, #2a2e2c 0%, #1b1e20 55%, #141618 100%);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.idc.is-inactive { --idc-accent: #e05a5f; --idc-edge: rgba(215,38,46,.75); background-color: #241416; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(160deg, #3a1e20 0%, #24151a 55%, #160e10 100%); }
.idc.is-inactive .idc-foot small { color: #fff; background: #d7262e; display: inline-block; padding: .4cqw 1.6cqw; }
.idc > * { margin-left: 4.5cqw; margin-right: 4.5cqw; }
.idc-head { display: flex; align-items: center; gap: 3cqw; padding: 4.5cqw 0 3cqw; }
.idc-head img { width: 10cqw; height: 10cqw; object-fit: contain; }
.idc-head b { display: block; font-family: var(--font-head); font-size: 3.6cqw; line-height: 1.2; letter-spacing: .5cqw; text-transform: uppercase; }
.idc-head small { font-family: var(--font-head); font-weight: 700; font-size: 3.6cqw; letter-spacing: .5cqw; color: var(--idc-accent); }
.idc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8cqw; padding: 3cqw; text-align: center; border: 1px solid rgba(255,255,255,.1); border-bottom: 0; }
.idc .idc-avatar { width: 32cqw; height: 32cqw; margin-bottom: 1cqw; }
.idc .idc-avatar .avatar { font-size: 10cqw; }
.idc .idc-body h2 { margin: 0; max-width: 100%; font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 10.5cqw; line-height: 1; letter-spacing: .3cqw; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.idc-line { font-family: var(--font-head); font-weight: 700; font-size: 3.4cqw; letter-spacing: .4cqw; color: var(--idc-accent); text-transform: uppercase; }
.idc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; align-items: center; }
.idc-chips > span { font-size: 3cqw !important; padding: 1cqw 2.2cqw !important; }
.idc-chips > span:first-child { border: 1px solid rgba(255,255,255,.18); font-family: var(--font-head); font-weight: 700; letter-spacing: .3cqw; text-transform: uppercase; }
.idc-chips .i-inline { width: 3.2cqw; height: 3.2cqw; }
.idc-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 0; margin-bottom: 0; border: 1px solid rgba(255,255,255,.1); }
.idc-stats > div { padding: 2.2cqw 3cqw; }
.idc-stats > div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); }
.idc-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
.idc-stats > div:last-child:nth-child(odd) { grid-column: span 2; }
.idc-stats dt { font-family: var(--font-head); font-weight: 700; font-size: 2.8cqw; letter-spacing: .2cqw; color: var(--idc-accent); text-transform: uppercase; }
.idc-stats dd { margin: .6cqw 0 0; font-family: var(--font-head); font-weight: 800; font-size: 6.5cqw; line-height: 1.1; color: #fff; }
.idc-foot { display: flex; align-items: center; gap: 3cqw; margin-top: 3cqw; margin-bottom: 4.5cqw; padding: 2.5cqw 3cqw; border: 1px solid rgba(255,255,255,.1); }
.idc-foot > div { flex: 1; min-width: 0; }
.idc-qr { flex-shrink: 0; width: 17cqw; height: 17cqw; padding: 1cqw; box-sizing: border-box; background: #fff; }
.idc-qr img, .idc-qr canvas { width: 100% !important; height: 100% !important; display: block; }
.idc-chip { flex-shrink: 0; width: 6cqw; height: 8cqw; border-radius: 1cqw; background: linear-gradient(135deg, #e6cf8a, #a8893c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.idc-foot b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 3.6cqw; line-height: 1.2; letter-spacing: .2cqw; color: #fff; }
.idc-foot small { display: block; margin-top: .8cqw; font-family: var(--font-head); font-weight: 700; font-size: 3cqw; letter-spacing: .2cqw; color: var(--idc-accent); }

.idc-modal { width: min(440px, calc(100vw - 32px)); }
.legacy-modal { width: min(560px, calc(100vw - 32px)); }
.idc-modal-body { padding: 22px 26px 26px; }
.idc-copy { display: flex; gap: 8px; margin-top: 18px; }
.idc-copy input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--navy-deep, #141618); color: var(--sand); font-family: var(--font-mono); font-size: 13px; }
.idc-locked p { margin: 0 0 14px; }
.idc-req { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; }
.idc-req i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--pct); background: var(--khaki); }
.idc-req.met i { background: var(--ok); }
.idc-req.met b::after { content: " ✓"; color: var(--ok); }

.idc-stage { display: grid; justify-items: center; gap: 22px; padding: clamp(40px, 8vw, 96px) 16px; background: radial-gradient(ellipse at 50% 30%, #2b302a 0%, #141618 70%); }
.idc-stage-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.idc-print-sheet { display: none; }

@media (max-width: 560px) {
  .idc-copy { flex-wrap: wrap; }
  .idc-copy input { flex-basis: 100%; }
  .idc-copy .btn { flex: 1; }
}

/* Print: only the card, on a CR100-sized page. */
@page idcard { size: 66.8mm 98.6mm; margin: 0; }
@media print {
  body.idc-printing > :not(.idc-print-sheet) { display: none !important; }
  body.idc-printing { margin: 0; padding: 0; background: none; }
  .idc-print-sheet { display: block; page: idcard; }
  .idc-print-sheet .idc { width: 66.8mm; height: 98.6mm; aspect-ratio: auto; margin: 0; border-radius: 3mm; box-shadow: none; }
}
/* Service record: one column per stat (5 or 6 with Carrier Traps) */
.pf-record { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .pf-record { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-record div:nth-child(3n+1) { border-left: none; }
}
@media (max-width: 640px) {
  .pf-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-record div { border-left: 1px dashed var(--line); }
  .pf-record div:nth-child(2n+1) { border-left: none; }
}

/* ===== Pilot dossier on phones & tablets ===== */
.op-detail-grid > * { min-width: 0; }
.pd-jump { display: none; }
.pd-anchor, .record-tiles { scroll-margin-top: calc(var(--adm-top, 64px) + 58px); }

/* Scroll-in motion (only when JS adds .pd-anim and motion is allowed) */
.pd-anim .pd-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.pd-anim .pd-reveal.is-in { opacity: 1; transform: none; }
.pd-anim .pd-reveal :is(.rt-bar i, .ac-track i, .kd-bar i) { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1) .15s; }
.pd-anim .pd-reveal.is-in :is(.rt-bar i, .ac-track i, .kd-bar i) { transform: none; }
.pd-anim .record-tile.pd-reveal:nth-child(2) { transition-delay: .06s; }
.pd-anim .record-tile.pd-reveal:nth-child(3) { transition-delay: .12s; }
.pd-anim .record-tile.pd-reveal:nth-child(4) { transition-delay: .18s; }

@media (max-width: 1000px) {
  .op-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-jump {
    position: sticky; top: var(--adm-top, 64px); z-index: 30; display: flex; gap: 6px; margin: 0 -16px 16px; padding: 10px 16px;
    overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--gunmetal) 92%, transparent); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  }
  .pd-jump::-webkit-scrollbar { display: none; }
  .pd-jump a { flex-shrink: 0; padding: 7px 14px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: .2s; }
  .pd-jump a:hover, .pd-jump a.on { border-color: var(--khaki); color: #141618; background: var(--khaki); }
  .op-aside { grid-template-columns: minmax(0, 1fr); }
  .medal-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 640px) {
  .op-back { margin-bottom: 10px; font-size: 11px; }
  /* Hero: avatar beside the name, facts in two columns, compact rating */
  .dossier { gap: 18px; padding: 20px 16px; margin-bottom: 14px; }
  .dossier.has-photo { padding-bottom: 46px; }
  .dossier.has-photo .op-next-shade { background: linear-gradient(180deg, rgba(14,16,18,.55) 0%, rgba(14,16,18,.92) 55%, rgba(14,16,18,.97) 100%); }
  .dossier-main { gap: 16px; }
  .dossier-id { flex-wrap: nowrap; align-items: center; gap: 14px; }
  .dossier-avatar { width: 86px; height: 86px; padding: 4px; }
  .dossier-avatar img, .dossier-avatar span { font-size: 30px; }
  .dossier-rank { font-size: 9px; padding: 1px 6px; }
  .dossier-name { min-width: 0; }
  .dossier-name .sec-tag { font-size: 9px; letter-spacing: 2px; }
  .dossier-name h1 { font-size: clamp(30px, 10vw, 44px); overflow-wrap: anywhere; }
  .dossier-sqcs { margin: 4px 0 8px; font-size: 11px; letter-spacing: 2px; }
  .dossier .op-meta { gap: 6px; }
  .dossier .op-meta > * { padding: 4px 8px; font-size: 10px; }
  .dossier-facts { grid-template-columns: 1fr 1fr; justify-self: stretch; }
  .dossier-facts div { padding: 10px 12px; border-left: 0 !important; }
  .dossier-facts div:nth-child(even) { border-left: 1px dashed rgba(200,184,138,.25) !important; }
  .dossier-facts div:nth-child(n+3) { border-top: 1px dashed rgba(200,184,138,.25); }
  .dossier-facts dd.small-dd { font-size: 14px; white-space: normal; }
  .dossier-credit { left: 16px; right: 16px; bottom: 10px; text-align: left; }
  .rating-card { max-width: none; display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; }
  .rating-card header { grid-column: 1 / -1; }
  .rating-body { grid-column: 1; grid-row: 2 / span 2; width: 96px; height: 96px; margin: 12px 0 12px 14px; }
  .rating-center b { font-size: 34px; }
  .rating-center span { font-size: 9px; }
  .rating-title { grid-column: 2; grid-row: 2; margin: 14px 14px 6px 0; text-align: left; font-size: 15px; letter-spacing: 3px; }
  .rating-parts { grid-column: 2; grid-row: 3; margin: 0 14px 12px 0; padding: 6px 0 0; border-top: 1px dashed rgba(200,184,138,.25); gap: 2px; }
  .rating-parts li { font-size: 10px; }

  /* Service record: 2 × 2 */
  .record-tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .record-tile { gap: 4px; padding: 14px 12px; }
  .record-tile b { font-size: 30px; }
  .record-tile b em { font-size: 15px; }
  .rt-label { font-size: 9px; letter-spacing: 1.5px; }
  .record-tile small { font-size: 9px; letter-spacing: .5px; }

  /* Qualification: one compact 4-step track */
  .qual-track { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
  .qt-step { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 12px 4px 10px; text-align: center; }
  .qt-step + .qt-step { border-left: 1px dashed var(--line) !important; border-top: 0 !important; }
  .qt-node { width: 28px; height: 28px; }
  .qt-node svg { width: 14px; height: 14px; }
  .qt-label { font-size: 9px; letter-spacing: 1px; line-height: 1.2; }
  .qt-now { margin: 0; font-size: 8px; letter-spacing: 1px; }

  /* Telemetry */
  .op-board-head { flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; margin-bottom: 14px; }
  .op-board-head h2 { font-size: 24px; }
  .kd-card { padding: 16px; }
  .kd-hero { font-size: 46px; margin: 4px 0 10px; }
  .kd-legend { flex-wrap: wrap; font-size: 10px; }
  .combat-tiles div { padding: 12px 14px; }
  .combat-tiles dd { font-size: 22px; }
  .airframe-chart { padding: 16px 14px 12px; margin-bottom: 22px; }
  .ac-row { grid-template-columns: 92px minmax(0, 1fr) 34px; gap: 8px; }
  .ac-name { font-size: 11px; letter-spacing: .5px; }
  .ac-value { font-size: 12px; }

  /* Tables scroll inside their card, with a fade showing there is more to the right */
  .flight-log-scroll { position: relative; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .flight-log-scroll table.data, .landing-marks .flight-log-scroll table.data { min-width: 560px; font-size: .78rem; }
  .flight-log-head { flex-wrap: wrap; gap: 8px; }

  /* Service history (base layout set above): tighter cards */
  .sl-body { padding: 10px 12px; }
  .sl-body strong { font-size: 14px; overflow-wrap: anywhere; }

  .medal-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pd-jump a { transition: none; } }

/* ===== Top bar actions: one height, never wrapping ===== */
.adm-top-actions { gap: 8px; flex-shrink: 0; }
.adm-top-actions > .btn, .adm-top-actions .theme-toggle, .adm-top-actions .role-switch summary { height: 40px; margin: 0; box-sizing: border-box; }
.adm-top-actions > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; white-space: nowrap; line-height: 1; }
.adm-top-actions > .btn .i-inline { margin: 0; }
.adm-top-actions .top-icon { display: none; }
.adm-top-actions .theme-toggle { width: 40px; padding: 0; }
.adm-top-actions .role-switch summary { padding-top: 0; padding-bottom: 0; }
.adm-top-actions .role-switch .rs-ic { width: 28px; height: 28px; }
.adm-crumb { min-width: 0; }
@media (max-width: 900px) {
  .adm-top-actions .top-label { display: none; }
  .adm-top-actions .top-icon { display: inline-block; }
  .adm-top-actions > .btn { width: 40px; padding: 0; }
}

/* ===== DeckMarks pass replay (assets/js/landing-replay.js) ===== */
.lr { margin-bottom: 6px; }
.lr:empty { display: none; }
.lr-stage { position: relative; border: 1px solid #374151; background: #0b1520; overflow: hidden; }
.lm-debrief .lr-stage canvas { width: 100%; max-width: none; border: 0; aspect-ratio: 960 / 400; }
.lr-hud { position: absolute; margin: 0; font-family: var(--font-mono); color: #e5e7eb; text-shadow: 0 1px 2px #000; pointer-events: none; }
.lr-hud-l { top: 10px; left: 12px; display: grid; gap: 2px; padding: 8px 12px; background: rgba(8,12,18,.6); border-left: 3px solid #fbbf24; }
.lr-hud-l span { font-size: 10px; letter-spacing: 2px; color: #fbbf24; }
.lr-hud-l b { font-family: var(--font-head); font-size: 24px; line-height: 1; }
.lr-hud-l small { font-size: 10px; color: #9ca3af; }
.lr-hud-r { top: 10px; right: 104px; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 14px; padding: 8px 12px; background: rgba(8,12,18,.6); }
.lr-hud-r dt { font-size: 9px; letter-spacing: 1.5px; color: #9ca3af; }
.lr-hud-r dd { margin: 1px 0 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lr-cams { position: absolute; left: 12px; bottom: 10px; display: flex; }
.lr-cams button { padding: 5px 10px; border: 1px solid rgba(200,184,138,.45); background: rgba(8,12,18,.7); color: #cbd5e1; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; cursor: pointer; }
.lr-cams button + button { border-left: 0; }
.lr-cams button.on { background: #c8b88a; border-color: #c8b88a; color: #141618; }
.lr-controls { display: flex; align-items: center; gap: 8px; padding: 8px 0 18px; }
.lr-btn { flex-shrink: 0; min-width: 36px; height: 32px; padding: 0 10px; border: 1px solid #4b5563; background: #111827; color: #e5e7eb; font-size: 13px; cursor: pointer; }
.lr-btn:hover { border-color: #c8b88a; color: #c8b88a; }
.lr-btn.lr-text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; }
.lr-scrub { position: relative; flex: 1; min-width: 0; padding-bottom: 14px; }
.lr-scrub input { width: 100%; accent-color: #fbbf24; }
.lr-marks { position: absolute; left: 8px; right: 8px; bottom: 0; height: 12px; }
.lr-marks span { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: #9ca3af; }
.lr-controls select { height: 32px; padding: 0 6px; border: 1px solid #4b5563; background: #111827; color: #e5e7eb; font-family: var(--font-mono); font-size: 12px; }
.lr-chart { position: relative; }
.lm-debrief .lr-chart .lr-overlay { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-color: transparent; background: transparent; pointer-events: none; }
@media (max-width: 760px) {
  .lr-hud-r { top: auto; bottom: 44px; right: 8px; left: 8px; grid-template-columns: repeat(3, 1fr); }
  .lr-hud-l { padding: 6px 9px; }
  .lr-hud-l b { font-size: 18px; }
  .lr-controls { flex-wrap: wrap; }
  .lr-scrub { order: 5; flex-basis: 100%; }
}
.lr-chart { display: inline-block; max-width: 100%; vertical-align: top; }
.lr-stage.is-cockpit .lr-hud { display: none; }

/* Replay controls: keep the site's global form styles off them */
.lr-controls select { width: auto; min-width: 64px; flex: 0 0 auto; margin: 0; }
.lr-scrub input[type=range] { display: block; width: 100%; height: 18px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }

/* ===== Carrier landing tutorial ===== */
.lm-tutorial-btn { margin-left: 6px; padding: 6px 12px; border: 1px solid #c8b88a; background: rgba(200,184,138,.12); color: #e8dcb5; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.lm-tutorial-btn:hover { background: #c8b88a; color: #141618; }
.lt { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.lt-steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lt-steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #1f2937; background: #111827; color: #9ca3af; text-align: left; cursor: pointer; transition: .2s; }
.lt-steps button:hover { border-color: #c8b88a; }
.lt-steps b { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #4b5563; font-family: var(--font-mono); font-size: 11px; }
.lt-steps span { display: grid; gap: 1px; font-size: 13px; font-weight: 600; color: #e5e7eb; }
.lt-steps small { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: #9ca3af; }
.lt-steps .done button b { border-color: #22c55e; color: #22c55e; }
.lt-steps .on button { border-color: #fbbf24; background: rgba(251,191,36,.08); }
.lt-steps .on button b { border-color: #fbbf24; background: #fbbf24; color: #111827; }
.lt-params { width: 100%; border-collapse: collapse; font-size: 12px; }
.lt-params th, .lt-params td { padding: 4px 6px; border-bottom: 1px solid #1f2937; text-align: left; vertical-align: top; }
.lt-params th { width: 40%; font-weight: 500; color: #9ca3af; }
.lt-params td { color: #e5e7eb; font-family: var(--font-mono); font-size: 11.5px; }
.lt-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #9ca3af; }
.lm-debrief [hidden] { display: none !important; }
.lt-caption { margin: 0 0 4px; padding: 10px 14px; border: 1px solid #1f2937; border-left: 3px solid #fbbf24; background: #111827; color: #e5e7eb; }
.lt-caption:empty { display: none; }
.lt-caption span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: #fbbf24; }
.lt-caption b { display: block; margin: 2px 0 4px; font-family: var(--font-head); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; }
.lt-caption p { margin: 0; font-size: 13px; line-height: 1.45; }
.lt-caption em { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid rgba(92,255,149,.5); font-style: normal; font-family: var(--font-mono); font-size: 11px; color: #5cff95; }
@media (max-width: 1000px) { .lt { grid-template-columns: minmax(0, 1fr); } }
