/* BIRDIONTECH hi-tech visual layer (2026-09-15). Loaded last, after theme-contrast.css.
   Atmosphere, panel surfaces, glows and type rhythm only: text colours keep the contrast rules of theme-contrast.css. */
:root{--tech-border:#cfe0f0;--tech-glow:#3fc0ff;--grid-line:#0b4f9c12;--panel-top:#ffffff;--panel-bottom:#f6fafe;--num-a:#0b4f9c;--num-b:#0a7e6a}
:root:not([data-theme=light]){--tech-border:#2a4457;--grid-line:#8fd3ff12;--panel-top:#182a3a;--panel-bottom:#131f2b;--num-a:#8fd3ff;--num-b:#7fe3c9}

/* ---- page atmosphere: soft glows plus a faint engineering grid that fades out downwards ---- */
:root[data-theme=light] body{background:radial-gradient(1100px 520px at 88% -8%,#d3ecff 0%,transparent 60%),radial-gradient(800px 480px at -8% 45%,#e7e1ff 0%,transparent 55%),var(--bg)}
:root:not([data-theme=light]) body{background:radial-gradient(1100px 600px at 88% -8%,#163d5f 0%,transparent 60%),radial-gradient(800px 560px at -8% 60%,#1b2a4d 0%,transparent 55%),var(--bg)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(to right,var(--grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--grid-line) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:radial-gradient(ellipse at 75% 0%,#000 0%,transparent 72%);mask-image:radial-gradient(ellipse at 75% 0%,#000 0%,transparent 72%)}

/* ---- panel surfaces: one material for every card ---- */
.panel,.small-card,.health-card,.health-total,.station-tile,.account-scope,.geo-frame,.wind-panel,.reliability-summary,.reliability-history,.empty-state,.setup-box,.mission-chart,.station-toolbar,.sensor-card{background:linear-gradient(180deg,var(--panel-top),var(--panel-bottom));border:1px solid var(--tech-border);box-shadow:inset 0 1px 0 #ffffffb0,0 10px 30px #1a3a5c0f}
:root:not([data-theme=light]) :is(.panel,.small-card,.health-card,.health-total,.station-tile,.account-scope,.geo-frame,.wind-panel,.reliability-summary,.reliability-history,.empty-state,.setup-box,.mission-chart,.station-toolbar,.sensor-card){box-shadow:inset 0 1px 0 #ffffff12,0 12px 34px #00000045}
.small-card strong,.geo-stat strong{background:linear-gradient(120deg,var(--num-a),var(--num-b));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---- sidebar: deep navy with a glowing active item ---- */
.sidebar{background:linear-gradient(180deg,#10233a 0%,#0b192b 100%);border-right:1px solid #1e3448}
.sidebar .nav-item{border-radius:12px;transition:background .15s,color .15s,box-shadow .15s}
.sidebar .nav-item:hover:not(.active){background:#ffffff0a}
.sidebar .nav-item.active{background:linear-gradient(90deg,#14384f,#102c42);color:#8ff0d3;box-shadow:inset 3px 0 0 #53dfbd,0 0 0 1px #1f4a5e,0 8px 24px #53dfbd1a}
.sidebar .brand-logo{filter:drop-shadow(0 4px 10px #3fc0ff40)}

/* ---- primary actions ---- */
.button:not(.secondary):not(.ghost):not(.danger):not(:disabled){background:linear-gradient(120deg,#0c7669,#1461c4);border-color:transparent;color:#fff;box-shadow:0 8px 22px #1461c433}
.button:not(.secondary):not(.ghost):not(.danger):not(:disabled):hover{box-shadow:0 10px 28px #1461c44d;filter:brightness(1.05)}
:focus-visible{outline:2px solid var(--tech-glow);outline-offset:2px}

/* ---- admin account strip: one compact line instead of a tall empty panel ---- */
.account-scope{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;padding:12px 18px;border-radius:14px}
.account-scope .account-identity{display:flex;align-items:center;gap:10px;margin:0}
.account-scope p{margin:0;color:var(--muted);font-size:.9rem}

/* ---- readability floors on desktop: nothing below 13px, table text 15px ---- */
@media (min-width:1101px){
 html{font-size:16px}
 .muted{font-size:max(14px,.875rem)}
 small,.station-tile p{font-size:13.5px}
 th{font-size:13px;letter-spacing:.02em}
 td{font-size:15px}
 .sidebar .nav-item{font-size:15px}
 .eyebrow{font-size:12px;letter-spacing:.2em;font-weight:800}
 .brand-word small{font-size:8.5px}
}
@media (prefers-reduced-motion:reduce){.sidebar .nav-item{transition:none}}

/* ---- text size control (Aa): three steps, remembered per browser ---- */
.icon-button.text-size{display:inline-flex;align-items:center;justify-content:center;gap:1px;font-weight:800;letter-spacing:-.04em;line-height:1}
.icon-button.text-size span:first-child{font-size:1.05em}.icon-button.text-size span:last-child{font-size:.75em;transform:translateY(.15em)}
.icon-button.text-size[data-level="1"]{color:var(--accent-text)}
.icon-button.text-size[data-level="2"]{color:var(--accent-text);box-shadow:inset 0 0 0 2px var(--accent-text)}

/* ---- header controls: language, text size and theme live in one pill ---- */
.utility{gap:2px;padding:4px;align-items:center;border-radius:999px;background:linear-gradient(180deg,var(--panel-top),var(--panel-bottom));border:1px solid var(--tech-border);box-shadow:inset 0 1px 0 #ffffffb0,0 8px 22px #1a3a5c14}
:root:not([data-theme=light]) .utility{box-shadow:inset 0 1px 0 #ffffff12,0 8px 22px #00000040}
.utility>select,.utility>.icon-button{min-height:36px;height:36px;border:0;background:transparent;border-radius:999px;box-shadow:none;color:var(--text);font-size:.9rem;font-weight:600;transition:background .15s,color .15s}
.utility>select{padding:0 30px 0 14px;max-width:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235b6b7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right 12px center}
:root:not([data-theme=light]) .utility>select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a0b3c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>")}
.utility>.icon-button{min-width:40px;width:40px;padding:0;filter:none}
.utility>select:hover,.utility>.icon-button:hover{background-color:var(--surface2);filter:none}
.utility>select:focus-visible,.utility>.icon-button:focus-visible{outline-offset:-2px}
/* Aa: plain, larger, largest */
.utility .icon-button.text-size{font-size:1rem;gap:0}
.utility .icon-button.text-size[data-level="1"]{color:var(--accent-text);background-color:var(--soft)}
.utility .icon-button.text-size[data-level="2"]{color:#fff;background:linear-gradient(120deg,#0c7669,#1461c4);box-shadow:none}
/* theme: moon in light mode (switch to dark), sun in dark mode (switch to light) */
.utility>#theme{font-size:0;background-repeat:no-repeat;background-position:center;background-size:20px 20px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312304e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/></svg>")}
:root:not([data-theme=light]) .utility>#theme{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecf4f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/></svg>")}
/* status pill next to the group */
.topbar .connection{padding:8px 14px 8px 12px;border-radius:999px;background:var(--soft);font-weight:600}
.topbar .connection.waiting{background:var(--surface2)}
@media (max-width:640px){.utility>select{padding:0 24px 0 10px;font-size:.85rem;background-position:right 8px center}.utility>.icon-button{min-width:36px;width:36px}}

/* ---- responsive audit fixes (2026-09-15) ---- */
/* Title bar: leave room for the status pill + control group at every width, so they never overlap the title. */
@media (min-width:900px){.topbar{padding-right:240px}}
@media (min-width:641px) and (max-width:899px){.topbar{padding-right:210px}}
@media (max-width:640px){.topbar{padding-right:172px;align-items:flex-start}.topbar h1{font-size:1.35rem;line-height:1.25}}
/* Small print used to go down to 9px on tablets and desktops: floor every label at 12px and button labels at 13px. */
.overview-atlas .eyebrow,.atlas-coordinate-label,#atlasPositionStatus,.atlas-coverage span,.geo-nature-tag,.map-reading-number small,.sensor-group-title span,.sensor-group-title small,.wind-panel .eyebrow,.geo-detail-head .eyebrow,.geo-data-status,.geo-detail dt{font-size:12px!important}
#atlasExplore span,#atlasSensors span,#mapExpand{font-size:13px!important}
/* Touch targets on phones and tablets: links and map controls at least 40px tall. */
@media (max-width:899px){
 .demo-banner a,.text-button,#atlasSensors{min-height:40px;display:inline-flex;align-items:center}
 .maplibregl-ctrl-group button{width:40px!important;height:40px!important}
}
.eyebrow,#missionAlertCount{font-size:max(12px,.72rem)!important}
