/* Self-hosted fonts — latin subset only. See DEPLOYMENT.md for refresh. */
@font-face { font-family:'Barlow'; font-style:normal; font-weight:300; font-display:swap; src:url(fonts/barlow-300.woff2) format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:300; font-display:swap; src:url(fonts/barlow-condensed-300.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/barlow-condensed-400.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:800; font-display:swap; src:url(fonts/barlow-condensed-800.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:900; font-display:swap; src:url(fonts/barlow-condensed-900.woff2) format('woff2'); }
@font-face { font-family:'Space Mono'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/space-mono-400.woff2) format('woff2'); }
@font-face { font-family:'Space Mono'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/space-mono-700.woff2) format('woff2'); }

.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; }

[data-theme="dark"] {
    --bg0: #060F1E;
    --bg1: #0B1E3D;
    --bg2: #112847;
    --bgp: #0B1E3Dee;
    --bgc: #0d1a2e;
    --bgh: #1A3A5C;
    --bd: #1A3A5C;
    --bda: #2A5A8A;
    --t1: #F4F8FB;
    --t2: #8BA0B8;
    --tm: #4A6A8A;
    --sh: rgba(0,0,0,.4);
}

[data-theme="light"] {
    --bg0: #eef1f5;
    --bg1: #fff;
    --bg2: #f4f6f9;
    --bgp: #ffffffee;
    --bgc: #f8f9fb;
    --bgh: #e8ecf1;
    --bd: #d0d7e0;
    --bda: #a0b0c4;
    --t1: #1a2535;
    --t2: #556677;
    --tm: #99aabb;
    --sh: rgba(0,0,0,.08);
}

:root {
    --r: #ff3344;
    --o: #F5A623;
    --y: #EEB800;
    --g: #3DE8A0;
    --b: #00C8E8;
    --c: #00C8E8;
    --p: #9c6ade;
    --gr: rgba(0,200,83,.12);
    --rr: rgba(255,51,68,.12);
    --br: rgba(0,200,232,.12);
    --or: rgba(255,136,0,.12);
    --b2: rgba(0,200,232,0.06);
    --t-inv: #060a10;
    --t-light: #0B1E3D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--bg0);
    color: var(--t1);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    transition: background .35s, color .35s;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Top Bar */
.tb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--bg1);
    border-bottom: 1px solid var(--bd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1001;
    transition: background .35s;
}

.tbl {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lm {
    width: 42px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}
.lm-goggles { display: block; overflow: visible; transition: filter 0.35s; }
[data-theme="dark"]  .lm:hover .lm-goggles { filter: drop-shadow(0 0 4px rgba(0,200,232,0.5)); }
[data-theme="light"] .lm:hover .lm-goggles { filter: drop-shadow(0 0 4px rgba(11,30,61,0.3)); }
@keyframes visorPulse { 0%,100%{opacity:1} 50%{opacity:0.85} }
.lm-goggles { animation: visorPulse 6s ease-in-out infinite; }

.lt {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: color 0.35s;
}

/* Wordmark — two-tone per brand identity §04:
     Dark variant  → "UK DRONE" white  +  "MAP" cyan
     Light variant → "UK DRONE" navy   +  "MAP" cyan dim
   .wm-1 inherits the container colour (set per-theme on .lt / .ab-title / .ab-footer-logo / .tc-brand);
   .wm-2 is the brand accent and overrides locally. */
[data-theme="dark"] .lt  { color: #F4F8FB; background: none; -webkit-text-fill-color: #F4F8FB; }
[data-theme="light"] .lt { color: #0B1E3D; background: none; -webkit-text-fill-color: #0B1E3D; }

.wm-1 { color: inherit; }
.wm-2 { color: #00C8E8; -webkit-text-fill-color: #00C8E8; transition: color 0.35s; }
[data-theme="light"] .wm-2 { color: #0099B8; -webkit-text-fill-color: #0099B8; } /* cyan dim for light surface */

/* ─── SVG LOGO THEMING ────────────────────────────────────────────
   Per brand identity (ukdronemap-brand-identity.md §04):
     Dark variant  → Deep Black surface · Cyan arrow · Amber motors · White centre
     Light variant → Chart White surface · Navy arrow · Amber motors · Navy centre
   Motor dots are AMBER in both variants — the only constant across the system. */
.sv-motor { fill: #F5A623; stroke: none; }

[data-theme="dark"] .sv-ring         { stroke: #00C8E8; opacity: 0.5; }
[data-theme="dark"] .sv-ring-inner   { stroke: #00C8E8; opacity: 0.3; fill: none; }
[data-theme="dark"] .sv-n            { fill: #00C8E8; }
[data-theme="dark"] .sv-dim          { fill: #1A3A5C; }
[data-theme="dark"] .sv-dot          { fill: #F4F8FB; }
[data-theme="dark"] .sv-hole         { fill: #0B1E3D; }
[data-theme="dark"] .sv-arm          { stroke: #00C8E8; opacity: 0.35; fill: none; }
[data-theme="dark"] .sv-motor        { fill: #F5A623; opacity: 1; }

[data-theme="light"] .sv-ring        { stroke: #0B1E3D; opacity: 0.3; }
[data-theme="light"] .sv-ring-inner  { stroke: #0B1E3D; opacity: 0.2; fill: none; }
[data-theme="light"] .sv-n           { fill: #0B1E3D; }
[data-theme="light"] .sv-dim         { fill: rgba(11,30,61,0.25); }
[data-theme="light"] .sv-dot         { fill: #0B1E3D; }
[data-theme="light"] .sv-hole        { fill: #F4F8FB; }
[data-theme="light"] .sv-arm         { stroke: #0B1E3D; opacity: 0.3; fill: none; }
[data-theme="light"] .sv-motor       { fill: #F5A623; opacity: 1; }

.ls {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: var(--tm);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -1px;
}

.tbc {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ck {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--c);
    letter-spacing: 2px;
}

.ck em {
    font-style: normal;
    color: var(--tm);
    font-size: 13px;
    margin-left: 3px;
}

.co {
    font-size: 13px;
    color: var(--t2);
    letter-spacing: .5px;
}

.tbr {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hm {
    display: none;
    background: none;
    border: 1px solid var(--bd);
    color: var(--t1);
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* Connection Status */
.cn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--bd);
}

.cn.on {
    color: var(--g);
    border-color: rgba(0,200,83,.3);
    background: var(--gr);
}

.cn.of {
    color: var(--r);
    border-color: rgba(255,51,68,.3);
    background: var(--rr);
}

.cnd {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: pu 2s infinite;
}

.cn.on .cnd { background: var(--g); }
.cn.of .cnd { background: var(--r); }

@keyframes pu {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* Buttons */
.bt {
    background: var(--bg2);
    border: 1px solid var(--bd);
    color: var(--t1);
    padding: 5px 10px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: .5px;
    white-space: nowrap;
}

.bt:hover {
    background: var(--bgh);
    border-color: var(--bda);
}

.bt svg { flex-shrink: 0; }

.btg { border-color: rgba(0,200,83,.4); color: var(--g); }
.btg:hover { background: var(--gr); }

.btc { border-color: rgba(0,188,212,.4); color: var(--c); }
.btc:hover { background: rgba(0,188,212,.08); }

.bto { border-color: rgba(255,136,0,.4); color: var(--o); }
.bto:hover { background: var(--or); }

/* Toast Notifications */
.tr {
    position: fixed;
    top: 56px;
    right: 12px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.to {
    background: var(--bgp);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    letter-spacing: .4px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(16px);
    pointer-events: auto;
    max-width: 340px;
    animation: ti .25s ease, to2 .25s ease 3.75s forwards;
    box-shadow: 0 4px 20px var(--sh);
}

.to.s { border-left: 3px solid var(--g); color: var(--g); }
.to.e { border-left: 3px solid var(--r); color: var(--r); }
.to.i { border-left: 3px solid var(--b); color: var(--b); }
.to.w { border-left: 3px solid var(--y); color: var(--y); }

@keyframes ti {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: none; }
}

@keyframes to2 {
    to { opacity: 0; transform: translateY(-8px); }
}

/* Search Bar */
.sw {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 380px;
}

.sb {
    display: flex;
    align-items: center;
    background: var(--bgp);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 0 10px;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px var(--sh);
}

.sb svg { flex-shrink: 0; stroke: var(--tm); }

.si {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--t1);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    padding: 9px 8px;
    outline: none;
    letter-spacing: .4px;
}

.si::placeholder { color: var(--t2); }

.sr {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bgp);
    border: 1px solid var(--bd);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    display: none;
}

.sri {
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--bd);
    transition: background .12s;
}

.sri:hover { background: var(--bgh); }
.sri:last-child { border-bottom: none; }

/* Sidebar */
.sd {
    position: fixed;
    top: 48px;
    left: 0;
    bottom: 50px;
    width: 280px;
    background: var(--bg1);
    border-right: 1px solid var(--bd);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background .35s, transform .3s;
}

.sdt {
    display: flex;
    border-bottom: 1px solid var(--bd);
    flex-shrink: 0;
    position: relative;
}

/* Horizontal tabs container — hidden, dropdown used instead */
.sdt-tabs {
    display: none;
    flex: 1;
    min-width: 0;
}

.st {
    flex: 1;
    padding: 9px 4px;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--tm);
    border-bottom: 2px solid transparent;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.st-icon { font-size: 14px; line-height: 1; }
.st-label { font-size: 11px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.st:hover { color: var(--t2); }
.st.on { color: var(--c); border-bottom-color: var(--c); }

/* Dropdown selector — always visible */
.sdt-sel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--c);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.sdt-sel:hover { background: var(--bgh); }
.sdt-sel-icon { font-size: 14px; }
.sdt-sel-label { flex: 1; text-align: left; }
.sdt-sel-arrow { font-size: 13px; color: var(--tm); transition: transform .2s; }
.sdt-menu.open ~ .sd-hide .sdt-sel-arrow,
.sdt-sel[aria-expanded="true"] .sdt-sel-arrow { transform: rotate(180deg); }

/* Dropdown menu — hidden by default */
.sdt-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg1);
    border-bottom: 1px solid var(--bd);
    box-shadow: 0 8px 24px var(--sh);
    z-index: 10;
    flex-direction: column;
    animation: sdtSlide .15s ease-out;
}
@keyframes sdtSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.sdt-mi {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--t1);
    cursor: pointer;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background .12s, color .12s;
    border-left: 3px solid transparent;
}
.sdt-mi:hover { background: var(--bgh); color: var(--t2); }
.sdt-mi.on { color: var(--c); border-left-color: var(--c); background: var(--bgh); font-weight: 600; }
.sdt-mi-icon { font-size: 14px; width: 20px; text-align: center; }
.sdt-menu.open { display: flex; }

.sp {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: none;
}

.sp.on { display: block; }

.sp::-webkit-scrollbar { width: 4px; }
.sp::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

.tt {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--tm);
    margin: 12px 0 6px 3px;
}

.tt:first-child { margin-top: 0; }

/* Layer Legend */
.ly {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1px;
    transition: background .12s;
}

.ly:hover { background: var(--bgh); }

/* Tick checkbox */
.tk {
    width: 13px;
    height: 13px;
    accent-color: var(--c);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.dt {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Select All / Clear All buttons */
.ly-btns { display: flex; gap: 6px; margin-bottom: 8px; }
.ly-btn {
    flex: 1; padding: 5px 8px; font-size: 12px; text-align: center;
    background: var(--bg0); border: 1px solid var(--bd); border-radius: 4px;
    color: var(--t2); cursor: pointer; letter-spacing: .5px; transition: background .15s;
}
.ly-btn:hover { background: var(--bgh); }

.ll { font-size: 13px; flex: 1; line-height: 1.4; }
.la { display: block; font-size: 11px; color: var(--tm); margin-top: 1px; }
.lc { font-size: 11px; color: var(--tm); background: var(--bg0); padding: 1px 5px; border-radius: 3px; min-width: 18px; text-align: center; }

/* Sidebar hide/show */
.sd-hide {
    background: none;
    border: none;
    color: var(--tm);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color .2s;
}
.sd-hide:hover { color: var(--t2); }

.sd-show {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--bg1);
    border: 1px solid var(--bd);
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: var(--tm);
    cursor: pointer;
    font-size: 13px;
    padding: 12px 4px;
    transition: color .2s, background .2s;
    display: none;
}
.sd-show:hover { color: var(--t2); background: var(--bgh); }

.sd.hidden { transform: translateX(-100%); }

/* Weather Location Input */
.wx-loc { margin-bottom: 10px; }
.wx-loc-current { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.wx-loc-icon { font-size: 13px; }
.wx-loc-name { font-size: 12px; color: var(--c); font-weight: 600; letter-spacing: 0.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-loc-bar { display: flex; gap: 4px; }
.wx-loc-input {
    flex: 1; padding: 6px 8px; font-size: 12px; background: var(--bg0); border: 1px solid var(--bd);
    border-radius: 4px; color: var(--t1); outline: none; font-family: inherit;
}
.wx-loc-input:focus { border-color: var(--c); }
.wx-loc-input::placeholder { color: var(--tm); }
.wx-loc-btn {
    padding: 4px 6px; font-size: 13px; background: var(--bg0); border: 1px solid var(--bd);
    border-radius: 4px; cursor: pointer; transition: background .15s; line-height: 1;
}
.wx-loc-btn:hover { background: var(--bgh); border-color: var(--t2); }

/* Weather Widgets */
.wc {
    background: var(--bgc);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.wg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.ws {
    background: var(--bg0);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    transition: background .35s;
}

.wsl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tm);
    margin-bottom: 3px;
}

.wsv {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
}

.wsu { font-size: 12px; color: var(--tm); margin-left: 1px; }
.wa { display: inline-block; transition: transform .5s; font-size: 14px; margin-right: 3px; }

/* NOTAM Items */
.nm {
    background: var(--bgc);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}

.nm:hover { border-color: var(--bda); }

.nm::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.nm.ac::before { background: var(--r); }
.nm.up::before { background: var(--y); }

.nmh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.nmi { font-size: 13px; font-weight: 600; }
.nmi.ac { color: var(--r); }
.nmi.up { color: var(--y); }

.nmb {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nmb.active { background: var(--rr); color: var(--r); }
.nmb.upcoming { background: rgba(238,187,0,.12); color: var(--y); }

.nmd {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.5;
    margin-bottom: 6px;
}

.nmf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--tm);
}

.nmc {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--o);
    letter-spacing: 1px;
}

.nmg {
    font-size: 12px;
    color: var(--c);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nmg:hover { text-decoration: underline; }

/* ── Preflight Checklist ─────────────────────────────────────────────── */
.pf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pf-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pf-sub { font-size: 11px; color: var(--tm); margin-top: 2px; letter-spacing: 0.5px; }

.pf-nats-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,188,212,0.07);
    border: 1px solid rgba(0,188,212,0.25);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.pf-nats-btn:hover { background: rgba(0,188,212,0.14); border-color: var(--c); }
.pf-nats-btn-green { background: rgba(0,200,100,0.07); border-color: rgba(0,200,100,0.25); }
.pf-nats-btn-green .pf-nats-label { color: #00c864; }
.pf-nats-btn-green .pf-nats-arr { color: #00c864; }
.pf-nats-btn-green:hover { background: rgba(0,200,100,0.14); border-color: #00c864; }
.pf-nats-icon { font-size: 16px; flex-shrink: 0; }
.pf-nats-text { flex: 1; min-width: 0; }
.pf-nats-label { display: block; font-size: 13px; font-weight: 700; color: var(--c); letter-spacing: 0.8px; text-transform: uppercase; }
.pf-nats-sub { display: block; font-size: 11px; color: var(--tm); margin-top: 2px; }
.pf-nats-arr { font-size: 13px; color: var(--c); flex-shrink: 0; }

.pf-nats-info {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--t2);
    line-height: 1.7;
}
.pf-nats-info-title { font-size: 12px; font-weight: 700; color: var(--t1); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 8px; }
.pf-nats-info p { margin: 0 0 8px; }
.pf-nats-info p:last-of-type { margin-bottom: 0; }
.pf-nats-info a { color: var(--c); text-decoration: none; }
.pf-nats-info a:hover { text-decoration: underline; }
.pf-nats-warn { background: rgba(255,170,0,0.08); border: 1px solid rgba(255,170,0,0.2); border-radius: 4px; padding: 8px 10px; margin-top: 8px; color: var(--y); font-size: 12px; line-height: 1.6; }
.pf-nats-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf-nats-links a { font-size: 11px; color: var(--c); text-decoration: none; background: rgba(0,188,212,0.08); border: 1px solid rgba(0,188,212,0.2); border-radius: 3px; padding: 3px 7px; }
.pf-nats-links a:hover { background: rgba(0,188,212,0.15); }

.rp-nats-dataset {
    margin-top: 16px;
    background: rgba(0,188,212,0.06);
    border: 1px solid rgba(0,188,212,0.2);
    border-radius: 6px;
    padding: 12px;
}
.rp-nats-dataset-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rp-nats-dataset-badge { font-size: 13px; font-weight: 700; color: var(--c); letter-spacing: 0.8px; text-transform: uppercase; }
.rp-nats-dataset-eff { font-size: 13px; color: var(--tm); }
.rp-nats-dataset-title { font-size: 13px; font-weight: 700; color: var(--tm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.rp-nats-dataset-desc { font-size: 14px; color: var(--t2); line-height: 1.6; margin-bottom: 8px; }
.rp-nats-dataset-meta { font-size: 13px; color: var(--tm); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; }

.rp-nats-info {
    margin-top: 16px;
    background: rgba(255,170,0,0.05);
    border: 1px solid rgba(255,170,0,0.18);
    border-radius: 6px;
    padding: 12px;
    color: var(--t2);
    line-height: 1.6;
}
.rp-nats-info-title { font-size: 13px; font-weight: 700; color: var(--y); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.rp-nats-list { margin: 0 0 12px; padding-left: 16px; }
.rp-nats-list li { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.rp-nats-list li:last-child { margin-bottom: 0; }
.rp-nats-list a { color: var(--c); text-decoration: none; }
.rp-nats-list a:hover { text-decoration: underline; }
.rp-nats-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rp-nats-links a { font-size: 14px; color: var(--c); text-decoration: none; background: rgba(0,188,212,0.08); border: 1px solid rgba(0,188,212,0.2); border-radius: 4px; padding: 8px 12px; display: inline-flex; align-items: center; min-height: 36px; }
.rp-nats-links a:hover { background: rgba(0,188,212,0.15); }

.pf-score {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.pf-score.ok { color: var(--g); }
.pf-score.warn { color: var(--y); }
.pf-score.bad { color: var(--r); }

.pf-bar-wrap {
    width: 100%;
    height: 4px;
    background: var(--bg0);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}
.pf-bar { height: 100%; border-radius: 2px; transition: width .4s, background .4s; }
.pf-tally { font-size: 11px; color: var(--tm); margin-bottom: 12px; }

.pf-cat {
    background: var(--bgc);
    border: 1px solid var(--bd);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}
.pf-cat-hd {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--bg2);
    border-bottom: 1px solid var(--bd);
}
.pf-cat-icon { font-size: 14px; }
.pf-cat-label { font-size: 12px; font-weight: 600; color: var(--t1); flex: 1; letter-spacing: 0.5px; text-transform: uppercase; }
.pf-cat-count { font-size: 11px; color: var(--tm); background: var(--bg0); padding: 1px 5px; border-radius: 3px; }
.pf-cat-count.ok { color: var(--g); background: var(--gr); }

.pf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--bd);
    cursor: pointer;
    transition: background .12s;
}
.pf-item:last-child { border-bottom: none; }
.pf-item:hover:not(.auto) { background: var(--bgh); }
.pf-item.auto { cursor: default; }
.pf-item.done { background: rgba(0,200,83,.04); }

.pf-box {
    width: 16px;
    height: 16px;
    border: 2px solid var(--bda);
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.pf-box.on { background: var(--g); border-color: var(--g); }
.pf-box svg { opacity: 0; transition: opacity .15s; }
.pf-box.on svg { opacity: 1; }

.pf-item-body { flex: 1; min-width: 0; }
.pf-item-text { font-size: 13px; color: var(--t1); line-height: 1.4; transition: all .2s; }
.pf-item-text.done { color: var(--tm); text-decoration: line-through; }
.pf-item-val { font-size: 11px; color: var(--c); margin-top: 1px; }

.pf-auto { font-size: 11px; color: var(--b); letter-spacing: 0.5px; flex-shrink: 0; border: 1px solid rgba(0,200,232,.3); padding: 1px 4px; border-radius: 2px; }

.pf-fields { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pf-input {
    background: var(--bg1);
    border: 1px solid var(--bd);
    border-radius: 4px;
    color: var(--t1);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    padding: 6px 8px;
    outline: none;
    transition: border-color .2s;
    width: 100%;
    resize: none;
}
.pf-input:focus { border-color: var(--c); }
.pf-textarea { min-height: 48px; }

.pf-verdict {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.pf-verdict.pf-completed { background: rgba(0,188,212,.08); border: 1px solid rgba(0,188,212,.3); color: var(--c); }
.pf-verdict.pf-pending { background: var(--bgc); border: 1px solid var(--bd); color: var(--t2); }
.pf-verdict-icon { font-size: 14px; }
.pf-verdict-note {
    font-size: 12px;
    color: var(--tm);
    line-height: 1.5;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-left: 2px solid var(--bd);
}

.pf-actions { display: flex; gap: 6px; }
.pf-btn-reset {
    flex: 1;
    background: none;
    border: 1px solid var(--bd);
    color: var(--tm);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: border-color .2s, color .2s;
}
.pf-btn-reset:hover { border-color: var(--r); color: var(--r); }

.pf-btn-export {
    flex: 2;
    background: var(--bg2);
    border: 1px solid var(--c);
    color: var(--c);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background .2s;
}
.pf-btn-export:hover { background: rgba(0,188,212,.12); }

/* Collapsible layer groups */
.ly-collapse { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.ly-collapse:hover { color: var(--t2); }
.ly-arrow { font-size: 12px; transition: transform .2s; }
.ly-collapse.collapsed .ly-arrow { transform: rotate(-90deg); }
.lg { transition: max-height .25s ease, opacity .2s; max-height: 600px; opacity: 1; overflow: hidden; }
.lg.collapsed { max-height: 0; opacity: 0; }

/* Risk Assessment */
.ra-header { margin-bottom: 12px; }
.ra-title { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: 1px; text-transform: uppercase; }
.ra-sub { font-size: 11px; color: var(--tm); margin-top: 4px; letter-spacing: 0.5px; line-height: 1.5; }
.ra-section-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--tm); margin: 14px 0 6px 3px; }
.ra-scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.ra-sc { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--t2); background: var(--bg0); border: 1px solid var(--bd); transition: all .15s; }
.ra-sc:hover { background: var(--bgh); border-color: var(--t2); }
.ra-sc-on { background: rgba(0,188,212,.1); border-color: var(--c); color: var(--c); }
.ra-sc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-score-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ra-score-bar { flex: 1; height: 6px; background: var(--bg0); border-radius: 3px; overflow: hidden; }
.ra-score-fill { height: 100%; border-radius: 3px; transition: width .4s, background .4s; }
.ra-score-num { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; min-width: 28px; text-align: right; }
.ra-score-note { font-size: 12px; color: var(--r); line-height: 1.4; margin-bottom: 8px; }
.ra-notes-input {
    width: 100%;
    margin-top: 6px;
    background: var(--bg1);
    border: 1px solid var(--bd);
    border-radius: 4px;
    color: var(--t1);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 7px 9px;
    resize: vertical;
    min-height: 64px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}
.ra-notes-input:focus { border-color: var(--c); }
.ra-notes-input::placeholder { color: var(--tm); }
.ra-notes-general { min-height: 90px; margin: 6px 10px 8px; width: calc(100% - 20px); }
.ra-domains { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ra-domain { background: var(--bg0); border-radius: 6px; padding: 8px 10px; }
.ra-domain-hd { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--t1); margin-bottom: 4px; }
.ra-domain-val { font-size: 11px; color: var(--tm); }
.ra-domain-bar { height: 3px; background: var(--bd); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.ra-domain-bar div { height: 100%; border-radius: 2px; transition: width .3s; }
.ra-domain-ctrl { display: flex; align-items: center; gap: 6px; }
.ra-slider { flex: 1; height: 3px; -webkit-appearance: none; appearance: none; background: var(--bd); border-radius: 2px; outline: none; cursor: pointer; }
.ra-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); cursor: pointer; }
.ra-slider-labels { font-size: 11px; color: var(--tm); white-space: nowrap; }
.ra-auto-tag { font-size: 11px; color: var(--b); letter-spacing: 0.5px; border: 1px solid rgba(0,200,232,.3); padding: 1px 4px; border-radius: 2px; display: inline-block; }
.ra-cat { background: var(--bg0); border-radius: 6px; padding: 4px 0; margin-bottom: 8px; }
.ra-mit-item.done { background: rgba(0,188,212,.06); }
.ra-mit-pts { font-size: 11px; color: var(--g); margin-top: 1px; font-weight: 600; }
.ra-mit-applied { color: var(--tm); text-decoration: line-through; }

/* Auto-mitigations (pilot/drone profile) */
.ra-auto-mit { background: rgba(0,200,232,.06); border-left: 2px solid var(--b); cursor: default; }
.ra-auto-mit-icon { font-size: 12px; width: 20px; text-align: center; flex-shrink: 0; margin-right: 4px; }
.ra-auto-expired { opacity: 0.5; border-left-color: var(--r); }
.ra-auto-expired .pf-item-text { text-decoration: line-through; color: var(--r); }
.ra-no-fleet { font-size: 12px; color: var(--tm); text-align: center; padding: 12px 8px; background: var(--bg0); border-radius: 6px; margin-bottom: 8px; line-height: 1.6; }

/* Fleet & Flight Plan Shared */
.fm-header { margin-bottom: 12px; }
.fm-title { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: 1px; text-transform: uppercase; }
.fm-sub { font-size: 11px; color: var(--tm); margin-top: 2px; letter-spacing: 0.5px; }
.fm-section-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--tm); margin: 14px 0 6px 3px; }

.fm-card { background: var(--bg0); border: 1px solid var(--bd); border-radius: 6px; padding: 10px 12px; margin-bottom: 6px; transition: border-color .15s, background .15s; }
.fm-card:hover { border-color: var(--c); }
.fm-card.active { border-color: var(--c); background: var(--bgh); }
.fm-card-hd { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 6px; }
.fm-card-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--t2); padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.03); }
.fm-card-row:last-child { border-bottom: none; }
.fm-card-row span:first-child { color: var(--tm); }
.fm-card-actions { display: flex; gap: 4px; }

.fm-edit-tag { font-size: 11px; color: var(--c); letter-spacing: 1px; border: 1px solid rgba(0,188,212,.3); padding: 1px 6px; border-radius: 2px; cursor: pointer; }
.fm-btn-sm { background: none; border: 1px solid var(--bd); border-radius: 4px; padding: 2px 6px; cursor: pointer; font-size: 13px; transition: border-color .15s; }
.fm-btn-sm:hover { border-color: var(--c); }
.fm-btn-del:hover { border-color: var(--r); }

.fm-empty { background: var(--bg0); border: 1px dashed var(--bd); border-radius: 6px; padding: 12px; text-align: center; font-size: 13px; color: var(--c); cursor: pointer; transition: background .15s; }
.fm-empty:hover { background: var(--bgh); }

/* Badges */
.fm-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fm-badge { font-size: 11px; padding: 1px 5px; border-radius: 2px; letter-spacing: 0.5px; font-weight: 600; }
.fm-badge-ok { background: var(--gr); color: var(--g); }
.fm-badge-warn { background: var(--rr); color: var(--r); }

/* Expiry indicators */
.fm-valid { color: var(--g); font-size: 11px; font-weight: 600; }
.fm-expiring { color: var(--o); font-size: 11px; font-weight: 600; }
.fm-expired { color: var(--r); font-size: 11px; font-weight: 600; }

/* Form fields */
.fm-field { margin-bottom: 10px; }
.fm-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--tm); margin-bottom: 3px; }
.fm-input {
    width: 100%; padding: 7px 10px; font-size: 13px; font-family: 'Space Mono', monospace;
    background: var(--bg0); border: 1px solid var(--bd); border-radius: 4px;
    color: var(--t1); outline: none; transition: border-color .15s; box-sizing: border-box;
}
.fm-input:focus { border-color: var(--c); }
.fm-input::placeholder { color: var(--tm); }
.fm-textarea { min-height: 50px; resize: vertical; }
.fm-select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.fm-check-wrap { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.fm-check { width: 14px; height: 14px; accent-color: var(--c); cursor: pointer; }
.fm-check-label { font-size: 12px; color: var(--t1); }
.fm-map-btn { display: block; margin-top: 4px; background: none; border: 1px solid var(--bd); border-radius: 4px; padding: 4px 8px; font-size: 12px; color: var(--c); cursor: pointer; font-family: inherit; transition: border-color .15s; }
.fm-map-btn:hover { border-color: var(--c); }

/* Flight plan card */
.fp-card-actions { display: flex; gap: 4px; margin-top: 8px; justify-content: flex-end; }
.fp-status { font-size: 11px; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.5px; font-weight: 600; }

/* Linked assessment badges */
.fp-linked { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.fp-badge { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; border: 1px solid var(--bd); background: var(--bg0); cursor: pointer; transition: background .15s, border-color .15s; font-size: 12px; color: var(--t1); }
.fp-badge:hover { background: var(--bg1); }
.fp-badge-icon { font-size: 13px; }
.fp-badge-status { margin-left: auto; font-size: 13px; }
.fp-no-link { font-size: 11px; color: var(--tm); text-align: center; padding: 6px; border: 1px dashed var(--bd); border-radius: 4px; }
.fp-btn-link { border-color: var(--b) !important; color: var(--b) !important; }

/* Link section in edit view */
.fp-link-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--bd); }
.fp-link-card { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border: 1px solid var(--bd); border-radius: 4px; margin-bottom: 6px; background: var(--bg0); }
.fp-link-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--t1); }
.fp-link-ts { font-size: 11px; color: var(--tm); }
.fp-link-btns { display: flex; gap: 3px; }
.fp-link-empty { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border: 1px dashed var(--bd); border-radius: 4px; margin-bottom: 6px; font-size: 12px; color: var(--tm); }

/* Local-only privacy banner — used on preflight / fleet / flight / risk panels */
.lp-local { display: flex; align-items: center; gap: 6px; background: var(--bg0); border: 1px solid var(--g); border-left-width: 3px; border-radius: 4px; padding: 6px 9px; margin-bottom: 10px; font-size: 12px; line-height: 1.5; color: var(--g); letter-spacing: 0.4px; text-transform: uppercase; font-weight: 600; }
.lp-local-icon { font-size: 13px; flex-shrink: 0; }
.lp-local strong { color: var(--g); font-weight: 800; }
.lp-local span.lp-local-desc { color: var(--t2); font-weight: 400; text-transform: none; letter-spacing: 0.2px; }

/* Places */
.pl-disclaimer { background: var(--rr); border: 1px solid var(--r); border-left-width: 3px; border-radius: 4px; padding: 8px 10px; margin-bottom: 10px; font-size: 12px; line-height: 1.55; color: var(--r); letter-spacing: 0.3px; text-transform: uppercase; font-weight: 600; }
.pl-disclaimer strong { color: var(--r); font-weight: 800; }
.pl-search { margin-bottom: 8px; }
.pl-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pl-filter { background: var(--bg0); border: 1px solid var(--bd); border-radius: 12px; padding: 4px 8px; font-size: 11px; color: var(--t1); cursor: pointer; font-family: inherit; transition: all .15s; letter-spacing: 0.3px; }
.pl-filter:hover { border-color: var(--c); color: var(--c); }
.pl-filter-on { background: var(--c); border-color: var(--c); color: var(--t-inv); font-weight: 600; }
.pl-count { font-size: 11px; color: var(--tm); margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.pl-card { background: var(--bg0); border: 1px solid var(--bd); border-radius: 6px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; transition: border-color .15s, background .15s; }
.pl-card:hover { border-color: var(--c); background: var(--bgh); }
.pl-card.active { border-color: var(--c); background: var(--bgh); }
.pl-card-hd { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.pl-card-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.pl-card-title { flex: 1; min-width: 0; }
.pl-name { font-size: 13px; font-weight: 600; color: var(--t1); line-height: 1.3; }
.pl-region { font-size: 11px; color: var(--tm); margin-top: 1px; }
.pl-stars { font-size: 12px; color: var(--y); flex-shrink: 0; letter-spacing: 1px; }
.pl-terrain { font-size: 11px; color: var(--b); margin-bottom: 4px; font-style: italic; }
.pl-notes { font-size: 11px; color: var(--t2); line-height: 1.5; margin-bottom: 6px; }
.pl-card-foot { display: flex; justify-content: space-between; align-items: center; }
.pl-type-badge { font-size: 11px; color: var(--tm); background: var(--bg1); padding: 2px 6px; border-radius: 3px; letter-spacing: 0.5px; text-transform: uppercase; }

/* About */
/* ── About panel ── */
.ab-wrap { padding: 4px 0 16px; }

/* Hero */
.ab-logo { text-align: center; margin-bottom: 14px; padding: 20px 0 8px; }
.ab-logo svg { overflow: visible; transition: filter 0.35s; }
[data-theme="dark"]  .ab-logo svg       { filter: drop-shadow(0 0 10px rgba(0,200,232,0.25)); }
[data-theme="dark"]  .ab-logo svg:hover { filter: drop-shadow(0 0 20px rgba(0,200,232,0.55)); }
[data-theme="light"] .ab-logo svg       { filter: drop-shadow(0 0 6px  rgba(11,30,61,0.15)); }
[data-theme="light"] .ab-logo svg:hover { filter: drop-shadow(0 0 14px rgba(11,30,61,0.3)); }
.ab-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: 6px; text-transform: uppercase; text-align: center; transition: color 0.35s; }
/* Two-tone wordmark base colour — matches .lt per brand §04 */
[data-theme="dark"]  .ab-title { color: #F4F8FB; }
[data-theme="light"] .ab-title { color: #0B1E3D; }
.ab-tag { font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--tm); text-align: center; margin-top: 5px; }
.ab-domain { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--c); text-align: center; margin-top: 8px; opacity: 0.7; letter-spacing: 1px; }

/* Sections */
.ab-section { margin-top: 14px; background: var(--bg0); border-radius: 8px; padding: 14px; border: 1px solid var(--bd); }
.ab-section-title { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--c); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--bd); }
.ab-text { font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 14px; line-height: 1.8; color: var(--t2); }
.ab-text strong { color: var(--t1); font-weight: 600; }
.ab-text p { margin: 0 0 8px 0; }
.ab-text ul { padding-left: 0; margin: 8px 0; }
.ab-quote { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; text-align: center; padding: 12px 8px; color: var(--c); letter-spacing: 1px; border-left: 2px solid var(--c); margin: 8px 0; background: rgba(0,200,232,0.04); border-radius: 0 4px 4px 0; }
.ab-src-list { list-style: none; padding: 0; margin: 8px 0; font-family: 'Barlow', sans-serif; font-size: 13px; line-height: 1.6; color: var(--t2); }
.ab-src-list li { padding: 6px 0; border-bottom: 1px solid var(--bd); }
.ab-src-list li:last-child { border-bottom: none; }
.ab-src-list li strong { color: var(--t1); font-weight: 600; }
.ab-src-list li a { color: var(--c); text-decoration: none; }
.ab-src-list li a:hover { text-decoration: underline; }
.ab-src-note { font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 13px; line-height: 1.6; color: var(--t2); opacity: 0.8; margin-top: 8px; font-style: italic; }

/* Timeline */
.ab-timeline { position: relative; padding-left: 18px; border-left: 2px solid var(--bd); margin-top: 4px; }
.ab-tl-item { position: relative; padding: 8px 0 8px 14px; }
.ab-tl-item::before { content: ''; position: absolute; left: -23px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--bd); border: 2px solid var(--bg0); }
.ab-tl-now::before { background: var(--c); box-shadow: 0 0 10px rgba(0,200,232,0.6); }
.ab-tl-year { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 900; color: var(--c); letter-spacing: 2px; margin-bottom: 3px; }
.ab-tl-text { font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 14px; line-height: 1.7; color: var(--t2); }
.ab-tl-now .ab-tl-text { color: var(--t1); font-weight: 500; }

/* Feature grid */
.ab-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ab-feat { background: var(--bg1); border: 1px solid var(--bd); border-radius: 6px; padding: 10px 10px 10px 10px; }
.ab-feat-icon { font-size: 18px; margin-bottom: 5px; line-height: 1; }
.ab-feat-name { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; color: var(--t1); letter-spacing: 0.5px; margin-bottom: 3px; }
.ab-feat-desc { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 300; color: var(--t2); line-height: 1.5; }

/* Data sources */
.ab-sources { display: flex; flex-direction: column; gap: 8px; }
.ab-source { background: var(--bg1); border: 1px solid var(--bd); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.ab-source-name { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; color: var(--t1); letter-spacing: 0.5px; }
.ab-source-desc { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 300; color: var(--t2); line-height: 1.5; }

/* Useful links */
.ab-links { display: flex; flex-direction: column; gap: 6px; }
.ab-link { display: flex; align-items: center; gap: 12px; background: var(--bg1); border: 1px solid var(--bd); border-radius: 6px; padding: 10px 12px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.ab-link:hover { border-color: rgba(0,200,232,0.4); background: rgba(0,200,232,0.04); }
.ab-link-creator { border-color: rgba(0,200,232,0.25) !important; }
.ab-link-icon { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.ab-link-name { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; color: var(--t1); letter-spacing: 0.3px; }
.ab-link-desc { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 300; color: var(--t2); margin-top: 1px; line-height: 1.4; }

/* Footer */
.ab-footer { text-align: center; margin-top: 20px; padding: 20px 0 8px; border-top: 1px solid var(--bd); }
/* Footer logo — inherits .wm-1 / .wm-2 coloring per brand §04 */
.ab-footer-logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 18px; letter-spacing: 5px; text-transform: uppercase; opacity: 0.8; transition: color 0.35s; }
[data-theme="dark"]  .ab-footer-logo { color: #F4F8FB; }
[data-theme="light"] .ab-footer-logo { color: #0B1E3D; }
.ab-footer-slogan { font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 14px; color: var(--t2); margin-top: 5px; }
.ab-footer-domain { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--c); margin-top: 6px; letter-spacing: 1px; }
.ab-footer-creator { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--tm); margin-top: 8px; }
.ab-footer-creator a { color: var(--c); text-decoration: none; }
.ab-footer-creator a:hover { text-decoration: underline; }
.ab-footer-legal { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ab-footer-legal a { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--tm); text-decoration: none; letter-spacing: 0.5px; }
.ab-footer-legal a:hover { color: var(--c); }
.ab-footer-legal span { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--tm); letter-spacing: 0.5px; }
.ab-footer-dot { opacity: 0.4; }

/* Right Panel */
.rp {
    position: fixed;
    top: 48px;
    right: 0;
    bottom: 50px;
    width: 340px;
    background: var(--bg1);
    border-left: 1px solid var(--bd);
    z-index: 998;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s, background .35s;
}

.rp.open { transform: none; z-index: 1000; }

.rc {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--tm);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}

.rc:hover { color: var(--t1); }

.rph { padding: 16px 52px 16px 16px; border-bottom: 1px solid var(--bd); flex-shrink: 0; }
.rpb { display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px; }
.rpn { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.rps { font-size: 14px; color: var(--t2); }
.rpy { flex: 1; overflow-y: auto; padding: 16px; }

.dr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--bd);
}

.dl {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tm);
    flex-shrink: 0;
    padding-right: 12px;
}

.dv { font-size: 14px; text-align: right; max-width: 60%; line-height: 1.4; }

/* Permission badge wrapper */
.rp-perm { text-align: center; margin-top: 4px; }

.rp-advice {
    margin-top: 12px;
    padding: 10px;
    background: var(--bgc);
    border: 1px solid var(--bd);
    border-radius: 4px;
    font-size: 14px;
    color: var(--t2);
    line-height: 1.7;
}
.rp-src {
    margin-top: 10px;
    font-size: 13px;
    color: var(--tm);
    text-align: center;
    line-height: 1.5;
}
.rp-src a { color: var(--c); }

.pm {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 14px;
}

.pmn { background: var(--rr); color: var(--r); border: 1px solid rgba(255,51,68,.3); }
.pmr { background: var(--or); color: var(--o); border: 1px solid rgba(255,136,0,.3); }
.pmc { background: rgba(238,187,0,.12); color: var(--y); border: 1px solid rgba(238,187,0,.3); }
.pmo { background: var(--gr); color: var(--g); border: 1px solid rgba(0,200,83,.3); }

/* Modal */
.mb {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.mb.open { display: flex; }

.mo {
    background: var(--bg1);
    border: 1px solid var(--bd);
    border-radius: 10px;
    width: 440px;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--sh);
}

.moh {
    padding: 16px 18px;
    border-bottom: 1px solid var(--bd);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mot { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; }
.moy { padding: 16px 18px; }

.sg { margin-bottom: 16px; }
.sgl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--tm); margin-bottom: 4px; display: block; }
.sgd { font-size: 13px; color: var(--t2); margin-bottom: 6px; line-height: 1.5; }
.sgi { width: 100%; background: var(--bg0); border: 1px solid var(--bd); color: var(--t1); font-family: 'Space Mono', monospace; font-size: 13px; padding: 8px 10px; border-radius: 4px; outline: none; transition: background .35s; }
.sgi:focus { border-color: var(--c); }
.sgi::placeholder { color: var(--t2); }

.sv {
    background: linear-gradient(135deg, var(--g), var(--c));
    border: none;
    color: var(--t-inv);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 8px;
}

.sv:hover { opacity: .9; }

/* Map Container */
.mw {
    position: fixed;
    top: 48px;
    left: 280px;
    right: 0;
    bottom: 50px;
    z-index: 1;
    transition: left .3s, right .3s;
}

.mw.ro { right: 340px; }

#map {
    width: 100%;
    height: 100%;
    background: var(--bg0);
}

/* Leaflet Overrides */
.leaflet-control-zoom a {
    background: var(--bg1) !important;
    color: var(--t1) !important;
    border-color: var(--bd) !important;
    font-size: 14px !important;
}

.leaflet-control-attribution { display: none !important; }

.leaflet-popup-content-wrapper {
    background: var(--bgp) !important;
    color: var(--t1) !important;
    border: 1px solid var(--bd) !important;
    border-radius: 6px !important;
    font-family: 'Space Mono', monospace !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px var(--sh) !important;
}

.leaflet-popup-tip { background: var(--bgp) !important; }
.leaflet-popup-content { font-size: 13px !important; margin: 8px 12px !important; }

.leaflet-draw-toolbar a {
    background-color: var(--bg1) !important;
    border-color: var(--bd) !important;
}

.leaflet-draw-actions a {
    background: var(--bg2) !important;
    color: var(--t1) !important;
    border-color: var(--bd) !important;
    font-size: 13px !important;
}

/* Weather HUD */
.wh {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 500;
    background: var(--bgp);
    border: 1px solid var(--bd);
    border-radius: 7px;
    padding: 10px 14px;
    backdrop-filter: blur(16px);
    min-width: 180px;
    box-shadow: 0 4px 20px var(--sh);
    transition: background .35s;
}

.wht {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tm);
    margin-bottom: 6px;
}

.whr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 13px;
}

.whr .wl { color: var(--t2); font-size: 13px; }
.whr .wv { font-family: 'Space Mono', monospace; font-weight: 500; }

/* Crosshair */
.xh {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
}

.xh::before, .xh::after {
    content: '';
    position: absolute;
    background: rgba(0,188,212,.2);
}

.xh::before { width: 1px; height: 28px; top: -14px; left: 0; }
.xh::after { width: 28px; height: 1px; left: -14px; top: 0; }

/* Grid Overlay */
.mw::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.015) 3px, rgba(0,0,0,.015) 6px);
}

[data-theme="light"] .mw::after { display: none; }

/* Bottom Bar */
.bb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg1);
    border-top: 1px solid var(--bd);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    font-size: 12px;
    color: var(--tm);
    transition: background .35s;
}

.bb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 32px;
    min-height: 32px;
}

.bbl, .bbr { display: flex; align-items: center; gap: 12px; }
.da.f { color: var(--g); }
.da.s { color: var(--o); }
.da.ol { color: var(--r); }

/* Keyboard Help */
.kh {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bgp);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--t2);
    z-index: 2000;
    backdrop-filter: blur(12px);
    display: none;
    box-shadow: 0 4px 20px var(--sh);
}

.kh.sh { display: block; animation: ti .2s ease; }

kbd {
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--c);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Top bar */
    .tb { height: 44px; padding: 0 8px; }
    .tbc { display: none; }
    .hm { display: block; }
    .lt { font-size: 13px; letter-spacing: 1.5px; }
    .ls { display: none; }
    .lm { width: 28px; height: 28px; font-size: 13px; }
    .tbr { gap: 4px; }
    .bt { padding: 4px 6px; font-size: 11px; gap: 3px; }
    .bt svg { width: 9px; height: 9px; }
    .cn { font-size: 11px; gap: 3px; }
    .cnd { width: 5px; height: 5px; }

    /* Sidebar */
    .sd { transform: translateX(-100%); z-index: 1002; width: 100%; top: 44px; bottom: 0; }
    .sd.mob { transform: none; }
    .sdt-tabs { display: none; }
    .sdt-sel { display: flex; }
    .sdt-menu.open { display: flex; }
    .st { font-size: 11px; padding: 8px 4px; letter-spacing: 0.5px; white-space: nowrap; min-width: 0; }
    .sp { padding: 8px; }

    /* Map */
    .mw { left: 0 !important; top: 44px; bottom: 46px; }
    .mw.ro { right: 0 !important; }

    /* Right detail panel */
    .rp { width: 100%; top: 44px; bottom: 28px; }

    /* Search */
    .sw { width: calc(100% - 16px); top: 50px; left: 8px; transform: none; }

    /* Weather HUD — hide on mobile (use tab instead) */
    .wh { display: none; }

    /* Bottom bar */
    .bb { font-size: 11px; }
    .bb-top { height: 26px; min-height: 26px; padding: 0 8px; }
    .bb .bbr { display: none; }
    .bb-legend { padding: 3px 8px; gap: 2px; flex-direction: column; font-size: 11px; }
    .bbl { gap: 8px; }

    /* Layers */
    .ly { padding: 6px 8px; }
    .ll { font-size: 12px; }
    .tt { font-size: 11px; letter-spacing: 1.5px; margin: 10px 0 4px 2px; }

    /* Preflight / Risk */
    .pf-item { padding: 8px 10px; }
    .pf-item-text { font-size: 12px; }
    .ra-scenarios { grid-template-columns: 1fr 1fr; gap: 4px; }
    .ra-sc { padding: 8px; font-size: 12px; }
    .ra-score-num { font-size: 18px; }
    .ra-domain { padding: 8px; }

    /* Weather location */
    .wx-loc-bar { flex-wrap: wrap; }
    .wx-loc-input { min-width: 0; flex: 1 1 100%; }

    /* Leaflet */
    .leaflet-control-zoom { margin-top: 50px !important; }
    .leaflet-control-zoom a { width: 32px !important; height: 32px !important; line-height: 32px !important; font-size: 16px !important; }
}

/* Small phones (< 400px) */
@media (max-width: 400px) {
    .tb { padding: 0 6px; }
    .lt { font-size: 14px; }
    .bt span { display: none; }
    .bt { padding: 5px; }
    .ra-scenarios { grid-template-columns: 1fr; }
    .ra-sc { padding: 6px 8px; }
    .disc-box { border-radius: 0; max-height: 100vh; }
    .disc-title { font-size: 14px; }
    .disc-body { font-size: 12px; }
}

/* Tablets / landscape phones */
@media (min-width: 769px) and (max-width: 1024px) {
    .sd { width: 240px; }
    .mw { left: 240px; }
    .ll { font-size: 12px; }
}

/* Landscape phone */
@media (max-width: 768px) and (orientation: landscape) {
    .sd { width: 50%; }
    .tb { height: 38px; }
    .mw { top: 38px; bottom: 40px; }
    .sd { top: 38px; bottom: 0; }
    .bb-top { height: 22px; min-height: 22px; }
    .bb-legend { padding: 2px 8px; font-size: 11px; }
    .rp { top: 38px; bottom: 40px; width: 50%; }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .ly { padding: 8px 10px; min-height: 38px; }
    .pf-item { padding: 10px 12px; min-height: 40px; }
    .ra-sc { min-height: 40px; }
    .bt { min-height: 32px; }
    .wx-loc-btn { min-width: 32px; min-height: 32px; font-size: 12px; }
    .wx-loc-input { min-height: 32px; font-size: 13px; }
    .tk { width: 16px; height: 16px; }
    .ra-slider { height: 6px; }
    .ra-slider::-webkit-slider-thumb { width: 18px; height: 18px; }
    .sd-hide { padding: 8px 12px; font-size: 14px; }
    .sdt-mi { padding: 12px 16px; min-height: 40px; font-size: 14px; }
    .sdt-sel { padding: 10px 14px; min-height: 40px; font-size: 14px; }
    .ly-collapse { min-height: 32px; }
    .fm-input { min-height: 36px; font-size: 13px; }
    .fm-textarea { min-height: 60px; }
    .fm-select { min-height: 36px; }
    .fm-check { width: 18px; height: 18px; }
    .fm-btn-sm { min-width: 32px; min-height: 32px; font-size: 12px; }
    .fm-empty { min-height: 40px; padding: 14px; }
    .fm-map-btn { min-height: 32px; font-size: 13px; }
}
/* Airport Quick Jump */
.apq {
    position: fixed;
    top: 108px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: calc(100% - 20px);
    background: var(--bgp);
    border: 1px solid var(--bd);
    border-radius: 8px;
    backdrop-filter: blur(16px);
    z-index: 998;
    font-size: 13px;
    box-shadow: 0 4px 20px var(--sh);
}

.apq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--bd);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--tm);
}

.apq-header span {
    font-weight: 600;
}

.apq-toggle {
    background: none;
    border: none;
    color: var(--tm);
    cursor: pointer;
    font-size: 13px;
}

.apq-list {
    max-height: 300px;
    overflow-y: auto;
    display: block;
    padding: 8px;
}

.apq-list.collapsed {
    display: none;
}

.apq-group {
    margin-bottom: 10px;
}

.apq-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c);
    padding: 4px 6px;
    background: var(--bg0);
    border-radius: 3px;
    margin-bottom: 4px;
}

.apq-group-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.apq-item {
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.apq-item:hover {
    background: var(--bgh);
    border-color: var(--c);
}

.apq-item-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.apq-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.apq-name {
    color: var(--t1);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apq-meta {
    font-size: 11px;
    color: var(--t2);
}

.apq-frz {
    font-size: 11px;
    color: var(--tm);
}

.apq-type {
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apq-type.major { background: var(--rr); color: var(--r); }
.apq-type.military { background: var(--or); color: var(--o); }
.apq-type.business { background: var(--br); color: var(--b); }
.apq-type.disused { background: rgba(128,128,128,.15); color: #888; }
.apq-type.airsports { background: rgba(0,188,212,.12); color: var(--c); }
.apq-type.royal { background: var(--gr); color: var(--g); }
.apq-type.atc { background: rgba(156,106,222,.2); color: var(--p); }
.apq-type.heliport { background: var(--gr); color: var(--c); }

/* Airport Map Pin */
.airport-pin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* ── Layer Info Button ───────────────────────────────────────────────── */
.li-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--bd);
    border-radius: 50%;
    color: rgba(0,200,232,0.5);
    font-size: 13px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .2s, border-color .2s;
    margin-left: 2px;
}
.li-btn:hover { color: var(--c); border-color: var(--c); }

/* ── Disclaimer Modal ────────────────────────────────────────────────── */
.disc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.disc-overlay.show { display: flex; }

.disc-box {
    background: var(--bg1);
    border: 1px solid var(--bda);
    border-radius: 10px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}

.disc-logo {
    align-self: flex-start;
    margin: 20px 20px 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(0,200,232,0.35);
    padding: 3px 10px;
    border-radius: 2px;
    transition: color 0.35s;
}
[data-theme="dark"]  .disc-logo { color: #F4F8FB; }
[data-theme="light"] .disc-logo { color: #0B1E3D; }

.disc-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--t1);
    padding: 10px 20px 0;
}

.disc-sub {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--r);
    padding: 6px 20px 12px;
    border-bottom: 2px solid var(--r);
    text-transform: uppercase;
}

.disc-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--t1);
    line-height: 1.75;
    scrollbar-width: thin;
    scrollbar-color: var(--bd) transparent;
}
.disc-body::-webkit-scrollbar { width: 4px; }
.disc-body::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

.disc-body p { margin-bottom: 8px; }
.disc-body strong { color: var(--t1); font-weight: 700; }

.disc-body ul {
    padding-left: 18px;
    margin-bottom: 8px;
}

.disc-body ul li { margin-bottom: 7px; }

/* Big red "THIS APP DOES NOT TELL YOU IT IS SAFE" banner */
.disc-alert {
    background: rgba(255,51,68,0.15);
    border: 2px solid var(--r);
    border-radius: 6px;
    color: var(--t1);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.5;
    padding: 12px 14px;
    margin-bottom: 14px;
    text-align: center;
}

/* Labelled section blocks */
.disc-block {
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: var(--bgc);
}

.disc-block-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--c);
    text-transform: uppercase;
    margin-bottom: 7px;
}

.disc-block-liability {
    border-color: var(--r);
    background: rgba(255,51,68,0.06);
}

.disc-block-liability .disc-block-label {
    color: var(--r);
}

.disc-check {
    padding: 12px 20px;
    border-top: 1px solid var(--bd);
    border-bottom: 1px solid var(--bd);
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    line-height: 1.6;
    background: var(--bgc);
}

.disc-check input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--c);
    cursor: pointer;
}

.disc-check label { cursor: pointer; }

.disc-actions {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    justify-content: flex-end;
}

.disc-btn-decline {
    background: none;
    border: 1px solid var(--bd);
    color: var(--t2);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: border-color .2s, color .2s;
}
.disc-btn-decline:hover { border-color: var(--r); color: var(--r); }

.disc-btn-accept {
    background: linear-gradient(135deg, var(--g), var(--c));
    border: none;
    color: var(--t-inv);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: opacity .2s;
}
.disc-btn-accept:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; filter: grayscale(0.4); }
.disc-btn-accept:not(:disabled):hover { opacity: 0.85; }
.disc-btn-accept:focus-visible,
.disc-btn-decline:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .apq {
        top: 50px;
        width: calc(100% - 16px);
        left: 8px;
        transform: none;
    }
    .apq-item {
        padding: 6px 8px;
    }
}
/* ═══════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════ */

.blog-header {
    padding: 16px 14px 10px;
    border-bottom: 1px solid var(--bd);
    margin-bottom: 4px;
}
.blog-header-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c);
}
.blog-header-sub {
    font-size: 11px;
    color: var(--tm);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 16px;
}

.blog-card {
    background: var(--bg0);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.blog-card:hover {
    border-color: var(--c);
    background: var(--bgh);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.blog-cat {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}
.blog-cat-regulation { background: rgba(255,51,68,.15); color: var(--r); border: 1px solid rgba(255,51,68,.3); }
.blog-cat-community  { background: rgba(0,200,83,.12);  color: var(--g); border: 1px solid rgba(0,200,83,.25); }
.blog-cat-gear       { background: rgba(0,200,232,.12); color: var(--b); border: 1px solid rgba(0,200,232,.25); }
.blog-cat-locations  { background: rgba(156,106,222,.12); color: var(--p); border: 1px solid rgba(156,106,222,.25); }
.blog-cat-safety     { background: rgba(255,136,0,.12); color: var(--o); border: 1px solid rgba(255,136,0,.3); }
.blog-cat-tech       { background: rgba(0,188,212,.12); color: var(--c); border: 1px solid rgba(0,188,212,.25); }
.blog-cat-skills     { background: rgba(238,187,0,.12); color: var(--y); border: 1px solid rgba(238,187,0,.25); }
.blog-cat-builds     { background: rgba(0,200,83,.12);  color: var(--g); border: 1px solid rgba(0,200,83,.25); }

.blog-tag {
    font-size: 13px;
    color: var(--t2);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.blog-date {
    font-size: 13px;
    color: var(--tm);
    margin-left: auto;
}

.blog-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    line-height: 1.45;
    margin-bottom: 5px;
}
.blog-card-summary {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.55;
    margin-bottom: 8px;
}
.blog-card-read {
    font-size: 13px;
    color: var(--c);
    letter-spacing: 1px;
    font-weight: 600;
}

/* ── Post view ── */
.blog-post {
    padding: 12px 14px 24px;
}
.blog-back {
    background: none;
    border: 1px solid var(--bd);
    color: var(--t2);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-bottom: 14px;
    display: inline-block;
    transition: background .15s, color .15s;
}
.blog-back:hover {
    background: var(--bgh);
    color: var(--t1);
}
.blog-back-bottom { margin-top: 20px; margin-bottom: 0; }

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.blog-post-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.blog-post-body {
    font-size: 14px;
    color: var(--t2);
    line-height: 1.7;
}
.blog-post-body p { margin-bottom: 10px; }
.blog-post-body h4 {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--c);
    text-transform: uppercase;
    margin: 14px 0 6px;
    font-weight: 700;
}
.blog-post-body ul, .blog-post-body ol {
    padding-left: 16px;
    margin-bottom: 10px;
}
.blog-post-body li {
    margin-bottom: 5px;
    line-height: 1.6;
}
.blog-post-body strong { color: var(--t1); font-weight: 600; }
.blog-post-body em { color: var(--t1); font-style: italic; }

.blog-tip {
    background: rgba(0,200,83,.08);
    border-left: 2px solid var(--g);
    padding: 8px 10px;
    border-radius: 0 3px 3px 0;
    color: var(--t1) !important;
    font-size: 13px !important;
    margin-top: 14px !important;
}

/* ═══════════════════════════════════════════════
   BOTTOM BAR LEGEND
   ═══════════════════════════════════════════════ */

.bb-legend {
    border-top: 1px solid var(--bd);
    padding: 4px 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--tm);
    line-height: 1.4;
}
.bb-legend strong { color: var(--t2); font-weight: 600; }

/* ═══════════════════════════════════════════════
   MOBILE UI POLISH
   ═══════════════════════════════════════════════ */

/* --- Disclaimer on mobile --- */
@media (max-width: 768px) {
    .disc-overlay { padding: 0; align-items: stretch; }
    .disc-box {
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        height: 100%;
    }
    .disc-logo { margin: 14px 14px 0; }
    .disc-title { font-size: 15px; padding: 8px 14px 0; }
    .disc-sub { font-size: 12px; padding: 5px 14px 10px; }
    .disc-body { padding: 12px 14px; font-size: 13px; line-height: 1.65; }
    .disc-alert { font-size: 13px; padding: 10px 12px; }
    .disc-block { padding: 8px 12px; margin-bottom: 8px; }
    .disc-block-label { font-size: 11px; letter-spacing: 1.5px; }
    .disc-check { padding: 10px 14px; font-size: 13px; }
    .disc-actions { padding: 10px 14px; flex-wrap: wrap; }
    .disc-btn-decline, .disc-btn-accept { flex: 1; min-height: 40px; font-size: 12px; }
}

/* --- Sidebar panels on mobile --- */
@media (max-width: 768px) {
    .sp { padding: 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

    /* Header and titles */
    .pf-header { flex-wrap: wrap; gap: 6px; }
    .pf-title { font-size: 12px; }
    .pf-sub { font-size: 12px; }
    .pf-score { font-size: 16px; }

    /* Risk assessment */
    .ra-header { padding: 8px 0; }
    .ra-title { font-size: 12px; }
    .ra-sub { font-size: 12px; line-height: 1.45; }
    .ra-section-title { font-size: 11px; letter-spacing: 1.5px; }
    .ra-scenarios { grid-template-columns: 1fr 1fr; gap: 4px; }
    .ra-sc { padding: 8px 6px; font-size: 12px; }
    .ra-sc span { font-size: 11px; }
    .ra-domain { padding: 8px; }
    .ra-domain-hd { font-size: 12px; }
    .ra-notes-input { font-size: 13px; min-height: 56px; padding: 6px 8px; }
    .ra-notes-general { margin: 4px 8px 6px; width: calc(100% - 16px); }
    .ra-score-note { font-size: 11px; }
    .ra-slider-labels { font-size: 11px; }

    /* Preflight */
    .pf-item { padding: 9px 10px; }
    .pf-item-text { font-size: 12px; line-height: 1.45; }
    .pf-cat-hd { font-size: 13px; }
    .pf-bar-wrap { height: 4px; }
    .pf-actions { flex-wrap: wrap; gap: 6px; }
    .pf-btn-reset, .pf-btn-export { flex: 1; min-width: 0; font-size: 12px; min-height: 38px; }
    .pf-verdict { font-size: 13px; }
    .pf-verdict-note { font-size: 12px; margin: 0 0 8px; }

    /* Blog on mobile */
    .blog-header { padding: 12px 10px 8px; }
    .blog-header-title { font-size: 12px; }
    .blog-card { padding: 10px; }
    .blog-card-title { font-size: 14px; }
    .blog-card-summary { font-size: 13px; }
    .blog-post { padding: 10px; }
    .blog-post-title { font-size: 12px; }
    .blog-post-body { font-size: 13px; }
    .blog-post-body h4 { font-size: 13px; }
    .blog-tip { font-size: 13px !important; padding: 7px 8px; }
    .blog-back { padding: 6px 10px; font-size: 13px; min-height: 34px; }

    /* About section */
    .ab-wrap { padding: 10px; }
    .ab-features { grid-template-columns: 1fr 1fr; }
    .ab-title { font-size: 22px; letter-spacing: 4px; }
    .ab-text { font-size: 14px; }

    /* Weather panel */
    .wc { padding: 8px; }
    .wg { grid-template-columns: 1fr 1fr; gap: 4px; }
    .ws { padding: 5px 6px; }
    .wsl { font-size: 11px; }
    .wsv { font-size: 13px; }
}

/* --- Small phones --- */
@media (max-width: 400px) {
    .ra-scenarios { grid-template-columns: 1fr; }
    .ra-sc { padding: 7px 8px; }
    .ra-sc span { display: inline; }
    .blog-card-meta { gap: 4px; }
    .blog-cat { font-size: 12px; padding: 1px 4px; }
    .disc-alert { font-size: 13px; padding: 8px 10px; }
    .disc-body { font-size: 13px; }
}

/* --- Tablets --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .ra-notes-input { min-height: 52px; }
    .ra-scenarios { grid-template-columns: 1fr 1fr 1fr; }
    .blog-card-title { font-size: 14px; }
}

/* Bottom bar spacing handled in main .mw rule */

/* ═══════════════════════════════════════════════
   UI ENHANCEMENTS
   ═══════════════════════════════════════════════ */

/* ── 1. Glassmorphism: Top Bar ────────────────── */
.tb {
    background: rgba(11, 30, 61, 0.82) !important;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(0, 200, 232, 0.12) !important;
}
[data-theme="light"] .tb {
    background: rgba(255, 255, 255, 0.82) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ── 2. Glassmorphism: Sidebar ────────────────── */
.sd {
    background: rgba(11, 30, 61, 0.88) !important;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-right: 1px solid rgba(0, 200, 232, 0.1) !important;
}
[data-theme="light"] .sd {
    background: rgba(255, 255, 255, 0.88) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.07) !important;
}
.sdt {
    background: rgba(6, 15, 30, 0.4);
    border-bottom: 1px solid rgba(0, 200, 232, 0.08) !important;
}
[data-theme="light"] .sdt {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* ── 3. Tab Panel Enter Animation ────────────── */
.sp.on {
    animation: panelFadeUp .22s cubic-bezier(.22,1,.36,1);
}
@keyframes panelFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.sp.on > *:nth-child(1)  { animation: itemIn .25s .03s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(2)  { animation: itemIn .25s .06s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(3)  { animation: itemIn .25s .09s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(4)  { animation: itemIn .25s .12s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(5)  { animation: itemIn .25s .15s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(6)  { animation: itemIn .25s .18s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(7)  { animation: itemIn .25s .21s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(8)  { animation: itemIn .25s .23s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(9)  { animation: itemIn .25s .25s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(10) { animation: itemIn .25s .27s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(11) { animation: itemIn .25s .29s both cubic-bezier(.22,1,.36,1); }
.sp.on > *:nth-child(12) { animation: itemIn .25s .31s both cubic-bezier(.22,1,.36,1); }
@keyframes itemIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ── 4. Card Micro-interactions ──────────────── */
.fm-card {
    transition: transform .18s cubic-bezier(.22,1,.36,1), border-color .18s, box-shadow .18s !important;
}
.fm-card:hover {
    transform: translateY(-2px);
    border-color: var(--c) !important;
    box-shadow: 0 4px 16px rgba(0, 200, 232, 0.1);
}
.pl-card {
    transition: transform .18s cubic-bezier(.22,1,.36,1), border-color .18s, box-shadow .18s !important;
}
.pl-card:hover {
    transform: translateY(-2px);
    border-color: var(--c) !important;
    box-shadow: 0 4px 16px rgba(0, 200, 232, 0.1);
}
.wc {
    transition: border-color .18s, box-shadow .18s !important;
}
.wc:hover {
    border-color: rgba(0, 200, 232, 0.35);
    box-shadow: 0 2px 12px rgba(0, 200, 232, 0.06);
}
.ws {
    transition: transform .15s cubic-bezier(.22,1,.36,1), border-color .15s, background .2s !important;
}
.ws:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 200, 232, 0.3);
}
.nm {
    transition: transform .18s cubic-bezier(.22,1,.36,1), border-color .18s, box-shadow .18s !important;
}
.nm:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
}

/* ── 5. Button Press Feel ─────────────────────── */
.bt { transition: all .15s cubic-bezier(.22,1,.36,1) !important; }
.bt:active { transform: scale(.96); }
.disc-btn-accept:active, .disc-btn-decline:active { transform: scale(.97); }
.sv:active { transform: scale(.98); }
.ly { transition: background .12s, transform .12s !important; }
.ly:active { transform: scale(.98); }

/* ── 6. Improved Toast Notifications ─────────── */
@keyframes ti {
    from { opacity: 0; transform: translateX(24px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes to2 {
    to { opacity: 0; transform: translateY(-6px) scale(.97); }
}
.to {
    box-shadow: 0 6px 24px var(--sh), 0 1px 4px rgba(0,0,0,.2) !important;
    border-radius: 8px !important;
}

/* ── 7. Right Panel Content Cascade ──────────── */
.rp.open .rpy .dr:nth-child(1) { animation: rowIn .2s .05s both; }
.rp.open .rpy .dr:nth-child(2) { animation: rowIn .2s .10s both; }
.rp.open .rpy .dr:nth-child(3) { animation: rowIn .2s .14s both; }
.rp.open .rpy .dr:nth-child(4) { animation: rowIn .2s .18s both; }
.rp.open .rpy .dr:nth-child(5) { animation: rowIn .2s .21s both; }
.rp.open .rpy .dr:nth-child(6) { animation: rowIn .2s .24s both; }
.rp.open .rpy .dr:nth-child(7) { animation: rowIn .2s .27s both; }
.rp.open .rpy .dr:nth-child(8) { animation: rowIn .2s .30s both; }
@keyframes rowIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── 8. Progress Bar Shimmer ─────────────────── */
.pf-bar, .ra-score-fill, .ra-domain-bar div {
    position: relative;
    overflow: hidden;
}
.pf-bar::after, .ra-score-fill::after, .ra-domain-bar div::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2.4s ease infinite;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ── 9. Connection Status Ripple ─────────────── */
.cnd { position: relative; }
.cn.on .cnd::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--g);
    animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(3); opacity: 0; }
}
.cn.of .cnd { animation: none; }
.cn.of .cnd::after { display: none; }

/* ── 10. Disclaimer Modal Cinematic Entrance ──── */
.disc-overlay.show { animation: overlayIn .3s ease; }
@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.disc-overlay.show .disc-box {
    animation: discBoxIn .4s .05s cubic-bezier(.22,1,.36,1) both;
}
@keyframes discBoxIn {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.disc-overlay.show .disc-logo   { animation: discItemIn .3s .15s both; }
.disc-overlay.show .disc-title  { animation: discItemIn .3s .22s both; }
.disc-overlay.show .disc-sub    { animation: discItemIn .3s .28s both; }
.disc-overlay.show .disc-body   { animation: discItemIn .3s .34s both; }
.disc-overlay.show .disc-check  { animation: discItemIn .3s .40s both; }
.disc-overlay.show .disc-actions { animation: discItemIn .3s .46s both; }
@keyframes discItemIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── 11. Dropdown menu animation polish ──────── */
@keyframes sdtSlide {
    from { opacity: 0; transform: translateY(-6px) scaleY(.97); }
    to   { opacity: 1; transform: none; }
}

/* ── 12. Active tab glow ─────────────────────── */
.st.on { text-shadow: 0 0 8px rgba(0, 200, 232, 0.4); }
.sdt-mi.on {
    background: rgba(0, 200, 232, 0.08) !important;
    border-left: 3px solid var(--c) !important;
}

/* ── 13. Scrollbar polish ─────────────────────── */
.sp::-webkit-scrollbar { width: 3px; }
.sp::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 232, 0.2);
    border-radius: 2px;
}
.sp::-webkit-scrollbar-thumb:hover { background: rgba(0, 200, 232, 0.4); }

/* ── 14. Search bar focus glow ────────────────── */
.sb { transition: border-color .2s, box-shadow .2s; }
.sb:focus-within {
    border-color: rgba(0, 200, 232, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.08), 0 4px 20px var(--sh) !important;
}

/* ── 15. Right panel smoother slide ──────────── */
.rp { transition: transform .28s cubic-bezier(.22,1,.36,1), background .35s !important; }
.rp.open .rph { animation: fadeIn .25s .1s both; }
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── 16. MOBILE ACCESSIBILITY ────────────────────────────────────────────
   WCAG 2.1 AA compliance for touch + low-vision users
   ─────────────────────────────────────────────────────────────────────── */

/* Fix muted text contrast — was #4A6A8A (fails AA), now passes 4.5:1 */
:root { --tm: #7A9BBF; }
[data-theme="light"] { --tm: #4A6080; }

/* ── Minimum 44px touch targets ── */
@media (hover: none) and (pointer: coarse) {
    /* Toolbar buttons */
    .bt {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    /* Tab bar buttons */
    .st {
        min-height: 44px !important;
        padding: 10px 6px !important;
        font-size: 13px !important;
    }
    /* Tab dropdown selector */
    #sdtSel {
        min-height: 44px !important;
        padding: 10px 12px !important;
    }
    /* Layer toggle rows */
    .ly {
        min-height: 44px !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
    }
    /* Layer group labels */
    .ll {
        font-size: 14px !important;
    }
    /* Section headings */
    .tt {
        font-size: 13px !important;
        letter-spacing: .06em !important;
    }
    /* Preflight checklist items */
    .pf-item {
        min-height: 44px !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
    }
    /* Risk assessment items */
    .ra-sc {
        min-height: 44px !important;
        padding: 8px !important;
    }
    /* Sidebar panel inner padding */
    .sp {
        padding: 12px !important;
    }
    /* Bottom bar — taller for easier tapping */
    .bb-top {
        height: 38px !important;
    }
    .bb-top .da,
    .bb-top .cn,
    .bb-top #ck,
    .bb-top .bbl,
    .bb-top .bbs {
        font-size: 13px !important;
    }
    /* Fleet / places list items */
    .fl-row,
    .pl-row {
        min-height: 44px !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
    }
    /* Generic small buttons inside panels */
    .sm-btn, .act-btn, .fp-btn {
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    /* Search bar */
    #src {
        height: 44px !important;
        font-size: 14px !important;
        padding: 0 14px !important;
    }
    /* Config modal rows */
    .cfg-row {
        min-height: 44px !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
}

/* ── Focus-visible keyboard outlines ── */
.bt:focus-visible,
.st:focus-visible,
.sdt-mi:focus-visible,
.ly:focus-visible,
.pf-item:focus-visible,
.ra-sc:focus-visible,
.fl-row:focus-visible,
.pl-row:focus-visible,
a:focus-visible {
    outline: 2px solid var(--c) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

/* ── Reduce motion for vestibular disorders ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── 17. DETAILS PANEL — TYPOGRAPHY & LAYOUT ────────────────────────── */

/* Description block */
.rp-desc {
    margin-top: 14px;
    font-size: 14px;
    color: var(--t2);
    line-height: 1.6;
}

/* Drone altitude note */
.rp-drone-note {
    margin: 12px 0;
    padding: 10px 12px;
    background: var(--b2);
    border-radius: 6px;
    border-left: 2px solid var(--c);
}
.rp-drone-note-hd {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--tm);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.rp-drone-note-ln {
    font-size: 14px;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: 6px;
}
.rp-drone-note-ln:last-child { margin-bottom: 0; }

/* Panel scroll area — safe-area padding so last item clears phone home bar */
.rpy {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* Fix panel bottom on mobile so it clears the taller bottom bar */
@media (max-width: 768px) and (orientation: portrait) {
    .rp { bottom: 38px; }
}

/* Focus ring on close button */
.rc:focus-visible {
    outline: 2px solid var(--c) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

/* ── Details panel close — outside .rp to escape stacking context ── */
.rp-close {
    position: fixed;
    top: 48px;
    right: 0;
    width: 44px;
    height: 44px;
    z-index: 1100;
    background: var(--bg1);
    border: none;
    border-left: 1px solid var(--bd);
    border-bottom: 1px solid var(--bd);
    color: var(--tm);
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    border-radius: 0 0 0 6px;
}
.rp-close:hover { color: var(--t1); background: var(--bg2); }
.rp-close:focus-visible {
    outline: 2px solid var(--c);
    outline-offset: -2px;
}
@media (max-width: 768px) {
    .rp-close { top: 44px; }
}

/* ── Zone picker popup ───────────────────────────────────────────────────── */
.zone-picker-popup .leaflet-popup-content-wrapper {
    background: var(--bg1, #0B1E3D);
    border: 1px solid var(--bd, #1A3A5C);
    border-radius: 8px;
    color: var(--t1, #F4F8FB);
    padding: 0;
    box-shadow: 0 4px 20px var(--sh, rgba(0,0,0,.4));
}
.zone-picker-popup .leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}
.zone-picker-popup .leaflet-popup-tip-container { display: none; }
.zone-picker-popup .leaflet-popup-close-button {
    color: var(--t2, #8BA0B8);
    top: 8px; right: 8px;
    font-size: 16px;
}
.zone-picker-popup .leaflet-popup-close-button:hover { color: var(--t1, #F4F8FB); }
.zp-hd {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--t2, #8BA0B8);
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--bd, #1A3A5C);
}
.zp-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--bd, #1A3A5C);
    transition: background .12s;
}
.zp-item:last-child { border-bottom: none; }
.zp-item:hover { background: var(--bgh, #1A3A5C); }
.zp-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1, #F4F8FB);
}
.zp-type {
    font-size: 14px;
    color: var(--t2, #8BA0B8);
}
