:root { --bg:#05070c; --bg2:#080b12; --card:#10141d; --fg:#e8ecf5; --muted:#8a92a6;
  --ok:#3fb950; --blk:#f85149; --accent:#d29922; --glow:#38e0ff; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, sans-serif; color:var(--fg);
  background:
    radial-gradient(1100px 650px at 80% -10%, rgba(56,224,255,.05), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(210,153,34,.05), transparent 60%),
    linear-gradient(180deg, #05070c, #070a11);
  background-attachment: fixed; min-height:100vh; position:relative; }

/* ---- Zufaelliger Kolonie-Hintergrund (site-weit, in base.html gesetzt) ---- */
/* Das Bild selbst kommt per inline <style> aus base.html (variiert je Reload).
   Hier nur Position/Scrim/Lesbarkeit: fixiert, leicht abgedunkelt+weichgezeichnet. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: brightness(.62) saturate(1.0) blur(1px);
}
/* zusaetzlicher kuehler Schleier fuer gleichmaessige Lesbarkeit ueber allem */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 50% 28%, rgba(5,7,12,.08), rgba(4,6,11,.52) 88%),
    linear-gradient(180deg, rgba(6,9,16,.30), rgba(4,6,11,.58));
}
header { padding:1rem 1.5rem;
  background:linear-gradient(180deg, rgba(10,13,20,.92), rgba(7,10,17,.78));
  border-bottom:1px solid #1b2130; backdrop-filter:blur(6px);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  position:relative; z-index:3;
  box-shadow:0 1px 0 rgba(56,224,255,.08), 0 8px 30px rgba(0,0,0,.45); }
header h1 { font-size:1.1rem; margin:0; color:#eef3ff;
  text-shadow:0 0 14px rgba(56,224,255,.25); }
header nav { display:flex; align-items:center; gap:.2rem; font-size:.95rem; }
header nav a, main a { color:var(--accent); text-decoration:none; }
/* ---- Menue-Hover: sanftes Glow/Underline + Bloom ---- */
header nav a {
  position:relative; cursor:pointer; padding:.35rem .6rem; border-radius:7px;
  color:#cfe0ff; font-weight:600; letter-spacing:.01em;
  transition:color .18s ease, background .18s ease, text-shadow .22s ease, box-shadow .22s ease;
}
header nav a::after {
  content:""; position:absolute; left:.6rem; right:.6rem; bottom:.15rem; height:2px;
  background:linear-gradient(90deg, transparent, var(--glow), transparent);
  transform:scaleX(0); transform-origin:center; opacity:0;
  transition:transform .22s ease, opacity .22s ease;
  box-shadow:0 0 8px var(--glow);
}
header nav a:hover, header nav a:focus-visible {
  color:#ffffff; background:rgba(56,224,255,.08); outline:none;
  text-shadow:0 0 10px rgba(56,224,255,.7), 0 0 20px rgba(56,224,255,.35);
  box-shadow:0 0 0 1px rgba(56,224,255,.25) inset, 0 0 18px rgba(56,224,255,.18);
}
header nav a:hover::after, header nav a:focus-visible::after { transform:scaleX(1); opacity:1; }
@media (prefers-reduced-motion: reduce){
  header nav a, header nav a::after { transition:none; }
}
.badge { font-size:.7rem; background:#262a33; color:var(--muted); padding:.1rem .4rem; border-radius:4px; }
main { padding:1.5rem; max-width:980px; margin:0 auto; }
main { position:relative; z-index:2; }
.card { background:linear-gradient(180deg, rgba(16,20,29,.94), rgba(11,14,21,.94));
  border:1px solid #20283a; border-radius:8px; padding:1rem 1.25rem; margin:1rem 0;
  box-shadow:0 6px 24px rgba(0,0,0,.35); backdrop-filter:blur(2px); }
/* Bloom auf Akzent-Raendern/Chips */
.ok-border { box-shadow:0 0 16px rgba(63,185,80,.18); }
.blocked-border { box-shadow:0 0 16px rgba(248,81,73,.18); }
.mode-card { box-shadow:0 0 18px rgba(59,130,246,.20); }
h2, h3 { text-shadow:0 0 12px rgba(56,224,255,.12); }
.intro-mode.def { box-shadow:0 0 14px rgba(63,185,80,.14); }
.intro-mode.off { box-shadow:0 0 14px rgba(248,81,73,.14); }
.ok-border { border-color:var(--ok); } .blocked-border { border-color:var(--blk); }
h2,h3 { margin-top:0; }
table { width:100%; border-collapse:collapse; margin:.5rem 0; }
th,td { text-align:left; padding:.4rem .5rem; border-bottom:1px solid #262a33; font-size:.9rem; }
.ok { color:var(--ok); } .blocked { color:var(--blk); }
form label { display:block; margin:.4rem 0; font-size:.9rem; }
input, select, textarea { background:#0f1115; color:var(--fg); border:1px solid #30353f;
  border-radius:4px; padding:.4rem; width:100%; max-width:420px; }
form.inline input, form.inline select { width:auto; display:inline-block; }
.row { display:flex; gap:1rem; flex-wrap:wrap; }
button { background:var(--accent); color:#1a1d24; border:none; border-radius:5px;
  padding:.5rem .9rem; font-weight:600; cursor:pointer; margin-top:.5rem; }
button:disabled { background:#444; color:#999; cursor:not-allowed; }
pre.notice, pre.disclaimer { background:#0b0d11; padding:.75rem; border-radius:6px;
  font-size:.8rem; white-space:pre-wrap; color:var(--muted); }
.sev-critical td { color:#ff7b72; } .sev-high td { color:#f0883e; }
.sev-medium td { color:#d29922; } .sev-low td { color:#58a6ff; }
.hint, small { color:var(--muted); font-size:.8rem; }
footer { padding:1rem 1.5rem; border-top:1px solid #262a33; color:var(--muted); }

/* --- GUI-Erweiterungen (Modus, Live-Feed, Danger-Button) --- */
.mode-card { border-color: #3b82f6; }
.live-feed {
  background: #0b0d11; color: #c9d1d9; padding: .75rem; border-radius: 6px;
  font-size: .78rem; max-height: 280px; overflow-y: auto; white-space: pre-wrap;
  min-height: 4rem;
}
.btn-danger {
  background: #f85149; color: #fff; font-size: .75rem; padding: .25rem .5rem;
  margin-top: 0;
}
code { font-size: .85em; color: #79c0ff; }
#scan-badge { font-size: .85rem; }

/* ===================== Lebende Schwarm-Karte ===================== */
.antmap-card { border-color:#223; background:linear-gradient(180deg,#121725,#0d1119); }
#antmap-wrap { position:relative; width:100%; border-radius:10px; overflow:hidden;
  border:1px solid #1d2740; box-shadow:0 0 40px rgba(40,120,200,.08) inset; }
#antmap { position:relative; z-index:2; display:block; width:100%; touch-action:manipulation; }
/* additiver 3D-Layer liegt transparent HINTER dem 2D-Canvas */
#antmap-3d { position:absolute; left:0; top:0; z-index:1; display:block;
  pointer-events:none; }
.antmap-tip { position:absolute; z-index:20; pointer-events:none; max-width:240px;
  background:rgba(10,14,24,.96); border:1px solid #2e6; border-color:rgba(80,220,200,.5);
  color:#e8eefc; font-size:.75rem; line-height:1.35; padding:.5rem .6rem; border-radius:8px;
  box-shadow:0 6px 24px rgba(0,0,0,.6); }
.antmap-tip .r { color:#9fb0cc; }
.antmap-legend { display:flex; flex-wrap:wrap; gap:.8rem; align-items:center;
  margin-top:.6rem; font-size:.75rem; color:#9fb0cc; }
.antmap-legend .dot { display:inline-block; width:10px; height:10px; border-radius:50%;
  margin-right:.3rem; vertical-align:middle; box-shadow:0 0 6px currentColor; }
.dot.idle{ background:#7d8799; color:#7d8799;} .dot.running{ background:#38e0ff; color:#38e0ff;}
.dot.done{ background:#3fffa3; color:#3fffa3;} .dot.blocked{ background:#ff4d8d; color:#ff4d8d;}
#map-mode-line { margin-top:.5rem; }

/* ---- Königin-Kammer (klappt aus dem Hügel auf) ---- */
.queen-chamber { position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:min(540px, 94%); max-height:0; opacity:0; overflow:hidden; z-index:15;
  background:linear-gradient(180deg, rgba(18,24,40,.98), rgba(10,14,24,.99));
  border:1px solid rgba(120,160,230,.35); border-bottom:none;
  border-radius:14px 14px 0 0; box-shadow:0 -10px 40px rgba(0,0,0,.6), 0 0 30px rgba(90,150,255,.12);
  transition:max-height .45s cubic-bezier(.22,.9,.3,1), opacity .35s ease;
  backdrop-filter:blur(3px); }
.queen-chamber.open { max-height:440px; opacity:1; }
.chamber-head { display:flex; justify-content:space-between; align-items:center;
  padding:.5rem .8rem; font-weight:600; color:#ffd98a;
  border-bottom:1px solid rgba(120,160,230,.2); background:rgba(255,200,100,.05); }
.chamber-x { background:transparent; color:#9fb0cc; border:none; font-size:1rem; cursor:pointer; margin:0; padding:.1rem .4rem; }
.chamber-tabs { display:flex; gap:.3rem; padding:.5rem .6rem 0; flex-wrap:wrap; }
.chamber-tabs .ctab { background:rgba(40,52,80,.6); color:#c7d2ec; border:1px solid rgba(120,160,230,.25);
  border-radius:8px 8px 0 0; font-size:.76rem; font-weight:600; padding:.4rem .6rem; margin:0; cursor:pointer; }
.chamber-tabs .ctab.active { background:rgba(80,120,210,.35); color:#fff; border-color:rgba(130,180,255,.6); }
.chamber-body { padding:.6rem .85rem 1rem; overflow-y:auto; max-height:350px; font-size:.8rem; color:#dde6f6; }
.cham-sec h4 { margin:.2rem 0 .5rem; color:#8fe3ff; }
.cham-list { margin:.2rem 0 .6rem; padding-left:1.1rem; }
.cham-list li { margin:.15rem 0; }
.cham-links { margin-top:.5rem; }
.cham-links a { color:#7af0d0; }
.memgraph-svg { width:100%; background:radial-gradient(circle at 50% 45%, #0f1626, #0a0e18);
  border:1px solid rgba(120,160,230,.2); border-radius:10px; }
@media (max-width:560px){
  .queen-chamber.open { max-height:70vh; }
  .chamber-body { max-height:52vh; }
}
@media (prefers-reduced-motion: reduce){
  .queen-chamber { transition:none; }
}

/* ===================== Bühne: gemalter Nest-Querschnitt ===================== */
#antmap-colony { position:absolute; inset:0; z-index:0; overflow:hidden; }
#antmap-stage { position:absolute; inset:0; display:block; width:100%; height:100%; }
#antmap-colony-fx { position:absolute; left:0; top:0; pointer-events:none; mix-blend-mode:screen; }

/* ===== Soldaten-Karten (Octogents-Stil) ===== */
#soldier-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:.9rem; }
.soldier-card { background:linear-gradient(180deg,#0e1322,#0a0d16); border:1px solid #1d2740;
  border-radius:6px; padding:.6rem .7rem; font-size:.82rem; box-shadow:0 0 20px rgba(40,120,200,.06) inset; }
.sc-head { display:flex; align-items:center; gap:.5rem; }
.sc-avatar { font-size:1.3rem; filter:drop-shadow(0 0 4px rgba(120,180,255,.5)); }
.sc-id { flex:1; min-width:0; }
.sc-name { font-weight:700; letter-spacing:.04em; color:#9fd0ff; text-transform:uppercase; font-size:.8rem; }
.sc-role { color:var(--muted); font-size:.72rem; line-height:1.2; }
.sc-badge { font-family:monospace; font-size:.75rem; background:#111a2b; border:1px solid #2a3a5a;
  color:#8a92a6; padding:.1rem .4rem; border-radius:4px; }
.sc-badge.part { color:#ffcf7a; border-color:#5a4a2a; }
.sc-badge.full { color:#3fffa3; border-color:#2a5a46; }
.sc-tabs { display:flex; gap:.25rem; margin:.5rem 0 .3rem; }
.sc-tabs button { background:#101726; color:#8a92a6; border:1px solid #1d2740; border-radius:4px;
  padding:.2rem .55rem; font-size:.72rem; font-weight:600; margin:0; }
.sc-tabs button.active { background:#17233c; color:#9fd0ff; border-color:#38507e; }
.sc-bar { height:4px; background:#121a2b; border-radius:3px; overflow:hidden; margin:.2rem 0 .4rem; }
.sc-bar span { display:block; height:100%; width:0; background:linear-gradient(90deg,#38e0ff,#3fffa3); transition:width .3s; }
.sc-body { max-height:420px; overflow:auto; }
.pb { border:1px solid #182236; border-radius:4px; padding:.35rem .45rem; margin:.3rem 0; background:#0b1120; }
.pb-off { opacity:.5; }
.pb-head { display:flex; justify-content:space-between; align-items:center; gap:.4rem; }
.pb-en { font-size:.76rem; color:#cfe0ff; font-weight:600; margin:0; }
.pb-en input { width:auto; margin-right:.3rem; }
.pb-mode { font-size:.62rem; padding:.05rem .35rem; border-radius:3px; background:#122; color:#7affd1; }
.pb-mode.offensive { background:#2a1420; color:#ff7b9c; }
.pb-desc { color:var(--muted); font-size:.7rem; margin:.15rem 0; }
ul.tasks { list-style:none; margin:.2rem 0 0; padding:0; }
ul.tasks li { display:flex; align-items:center; gap:.3rem; font-size:.74rem; padding:.1rem 0; }
ul.tasks li label { margin:0; flex:1; display:flex; align-items:center; gap:.3rem; }
ul.tasks li input { width:auto; }
.tstat { font-size:.6rem; padding:0 .3rem; border-radius:3px; }
.tstat.open { color:#7d8799; } .tstat.done { color:#3fffa3; }
.tov { font-size:.65rem; }
.sc-files { display:flex; flex-wrap:wrap; gap:.3rem; margin-top:.45rem; border-top:1px solid #182236; padding-top:.4rem; }
.chip { font-size:.66rem; background:#101726; border:1px solid #223; color:#8fb4e8; padding:.1rem .4rem;
  border-radius:3px; cursor:pointer; }
.chip:hover { background:#17233c; }
.vault-grid { display:flex; flex-wrap:wrap; gap:.3rem; margin:.3rem 0; }
.vfile { background:#101726; color:#8fb4e8; border:1px solid #223; font-size:.7rem; padding:.2rem .45rem; margin:0; }
.vault-pre { background:#06080e; font-size:.7rem; max-height:200px; overflow:auto; white-space:pre-wrap; }

.skill-toolbar { display:flex; flex-wrap:wrap; gap:.3rem; align-items:center; margin:.2rem 0 .4rem; }
.skill-toolbar button { background:#101726; color:#8a92a6; border:1px solid #1d2740; border-radius:4px;
  padding:.15rem .5rem; margin:0; font-size:.7rem; }
.skill-toolbar button.active { background:#17233c; color:#9fd0ff; border-color:#38507e; }
.skill-md { font-size:.78rem; line-height:1.45; color:#d5e2f5; max-height:360px; overflow:auto;
  background:#06080e; border:1px solid #182236; border-radius:5px; padding:.5rem .6rem; }
.skill-md .skill-h { color:#9fd0ff; margin:.55rem 0 .25rem; font-size:.92rem; }
.skill-md .skill-p { margin:.2rem 0; }
.skill-md .skill-quote { margin:.3rem 0; padding:.3rem .5rem; border-left:3px solid #38507e;
  background:rgba(56,224,255,.05); color:#b8c7e0; }
.skill-md .skill-ul, .skill-md .skill-ol { margin:.2rem 0 .35rem 1.1rem; }
.skill-md .skill-meta { display:flex; gap:.45rem; font-size:.68rem; color:#8a92a6;
  border-bottom:1px dashed #1d2740; padding:.1rem 0; }
.skill-md .skill-meta span { color:#79c0ff; min-width:5rem; text-transform:uppercase; }
.skill-md .skill-pre { background:#04060a; border:1px solid #1d2740; border-radius:4px;
  padding:.4rem .5rem; overflow:auto; font-size:.7rem; }
.skill-md code { background:#121a2b; padding:0 .25rem; border-radius:3px; color:#ffcf7a; font-size:.86em; }
.vault-pre { max-height:280px; }

.mem-add textarea { width:100%; max-width:none; min-height:48px; font-size:.75rem; }
.mem-list { list-style:none; padding:0; margin:.3rem 0 0; }
.mem-list li { display:flex; justify-content:space-between; gap:.4rem; font-size:.74rem;
  border-bottom:1px solid #182236; padding:.2rem 0; }
.mem-del { background:#2a1420; color:#ff7b9c; padding:0 .4rem; margin:0; font-size:.7rem; }

/* ===== Risiko-Heatmap ===== */
.heatmap-grid { border-collapse:collapse; font-size:.74rem; }
.heatmap-grid th, .heatmap-grid td { border:1px solid #1d2740; padding:.3rem .5rem; text-align:center; }
.heatmap-grid th { background:#101726; color:#9fd0ff; }
.heatmap-grid td.hm-dim { text-align:left; color:#cfe0ff; background:#0b1120; white-space:nowrap; }
.hm-cell { color:#e6e6e6; font-family:monospace; }
.hm-empty { color:#39405a; }

/* ===== Octogent-Phasenmodell ===== */
.phase-strip { display:flex; gap:.5rem; flex-wrap:wrap; margin:.4rem 0 .6rem; }
.phase-box { flex:1; min-width:150px; background:#0b1120; border:1px solid #1d2740;
  border-radius:5px; padding:.4rem .5rem; }
.phase-box.ph-off { border-color:#4a2a3a; }
.phase-name { font-weight:700; font-size:.74rem; color:#9fd0ff; }
.phase-sol { font-size:.7rem; color:#cfe0ff; margin:.15rem 0; }
.phase-tools { font-size:.65rem; }

/* ---- WLAN-Survey (passiv) ---- */
#wlan-section h4 { margin: .9rem 0 .35rem; }
table.wlan-aps { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.wlan-aps th, table.wlan-aps td { padding: .25rem .4rem; border-bottom: 1px solid #222838; text-align: left; }
.wlan-warn { background: rgba(255,123,107,.08); border: 1px solid #ff7b6b; border-radius: 8px; padding: .5rem .8rem; margin: .4rem 0; }
.wlan-warn ul { margin: .3rem 0 0 1rem; }
.wlan-band { margin: .4rem 0; }
.wlan-chbars { display: flex; gap: .3rem; align-items: flex-end; height: 70px; }
.wlan-chbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 26px; height: 100%; }
.wlan-chbar-fill { width: 18px; border-radius: 3px 3px 0 0; }
.wlan-chbar-lbl { font-size: .7rem; color: #8a92a6; margin-top: 2px; }
.wlan-coverage { display: flex; flex-wrap: wrap; gap: .5rem; }
.wlan-point { border: 1px solid #333; border-radius: 10px; padding: .5rem .7rem; min-width: 120px; background: #141a26; }
.wlan-point-label { font-weight: 600; }
.wlan-point-rssi { font-size: 1.2rem; font-weight: 700; }
.wlan-recs { margin: .3rem 0 0 1rem; }
.wlan-recs li { margin: .2rem 0; }

/* ---- WLAN-Menü: Sub-Tab-Leiste (gleiche Optik wie Königin-Kammer-Tabs) ---- */
.wlan-tabs { display:flex; gap:.4rem; flex-wrap:wrap; margin:.6rem 0 .2rem; }
.wlan-tabs .wtab { background:rgba(40,52,80,.6); color:#c7d2ec;
  border:1px solid rgba(120,160,230,.25); border-radius:7px 7px 0 0;
  padding:.45rem .8rem; font-weight:600; cursor:pointer; margin-top:0; }
.wlan-tabs .wtab.active { background:rgba(80,120,210,.35); color:#fff;
  border-color:rgba(130,180,255,.6); }
.wlan-tabs .wtab-offensive { color:#ff9f93; border-color:rgba(248,81,73,.45); }
.wlan-tabs .wtab-offensive.active { background:rgba(248,81,73,.22);
  color:#fff; border-color:#f85149; }
.wlan-offensive-panel { background:#1c1518; }

/* ---- WLAN scan-first Toolbar / klickbare AP-Tabelle ---- */
.wlan-toolbar {
  background: rgba(12,16,26,.72);
  border: 1px solid rgba(120,160,230,.22);
  border-radius: 12px;
  padding: .7rem .85rem;
  margin: .4rem 0 .7rem;
  box-shadow: 0 0 18px rgba(80,140,255,.08);
}
.wlan-toolbar-row {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: flex-end;
}
.wlan-field { display: flex; flex-direction: column; gap: .2rem;
  font-size: .72rem; color: #9aa6c3; font-weight: 600; letter-spacing: .02em; }
.wlan-field.grow { flex: 1 1 180px; min-width: 160px; }
.wlan-field select, .wlan-field input[type="search"],
.wlan-field input[type="text"] {
  background: #0d121c; color: #e8eefc; border: 1px solid #2a3348;
  border-radius: 8px; padding: .4rem .55rem; font-size: .9rem; min-width: 140px;
}
.wlan-field select:focus, .wlan-field input:focus {
  outline: none; border-color: #5a8dff;
  box-shadow: 0 0 0 2px rgba(90,141,255,.25);
}
.wlan-field.wlan-check { flex-direction: row; align-items: center; gap: .4rem;
  padding-bottom: .35rem; font-weight: 500; color: #c7d2ec; }
button.wlan-primary {
  background: linear-gradient(180deg, #3d6fe0, #2a4fad);
  color: #fff; border: 1px solid #6a9bff; border-radius: 8px;
  padding: .5rem 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 14px rgba(80,140,255,.35);
}
button.wlan-primary:hover { filter: brightness(1.1); }
button.wlan-ghost {
  background: transparent; color: #9aa6c3; border: 1px solid #2a3348;
  border-radius: 8px; padding: .35rem .7rem; cursor: pointer;
}
.wlan-status { margin-top: .55rem; font-size: .85rem; color: #9aa6c3; }
.wlan-status.busy { color: #7ad0ff; }
.wlan-status.ok { color: #3fffa3; }
.wlan-status.warn { color: #ffcf7a; }
.wlan-status.err { color: #ff6b6b; }

.wlan-selection {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  align-items: center; border-radius: 10px; padding: .55rem .8rem; margin: .5rem 0;
  border: 1px dashed #2a3348; background: rgba(20,26,38,.6); color: #8a92a6;
}
.wlan-selection.active {
  border-style: solid; border-color: #3fffa3;
  background: rgba(63,255,163,.06);
  box-shadow: 0 0 16px rgba(63,255,163,.12); color: #e8eefc;
}
.wlan-sel-main { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.wlan-sel-ssid { font-weight: 700; font-size: 1.05rem; }
.wlan-sel-bssid { font-size: .85rem; }
.wlan-sel-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.wlan-badge-conn { border-color: #3fffa3 !important; color: #3fffa3 !important; }

.wlan-table-scroll {
  overflow-x: auto; border: 1px solid #222838; border-radius: 10px;
  background: rgba(10,14,22,.55); max-height: 420px; overflow-y: auto;
}
table.wlan-aps-interactive thead th {
  position: sticky; top: 0; background: #121826; z-index: 1;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #8a92a6;
}
table.wlan-aps-interactive tr.wlan-ap-row { cursor: pointer; transition: background .12s; }
table.wlan-aps-interactive tr.wlan-ap-row:hover { background: rgba(80,120,210,.12); }
table.wlan-aps-interactive tr.wlan-ap-row.selected {
  background: rgba(63,255,163,.1);
  outline: 1px solid rgba(63,255,163,.45);
}
table.wlan-aps-interactive tr.wlan-ap-row.connected td.wlan-ssid { color: #3fffa3; font-weight: 600; }
.wlan-ssid { font-weight: 600; }
.wlan-dot-conn {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #3fffa3; box-shadow: 0 0 8px #3fffa3;
}
.wlan-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; margin-right: .35rem; vertical-align: middle; }
.wlan-bars i { display: inline-block; width: 3px; background: #2a3348; border-radius: 1px; }
.wlan-bars i.on { background: #3fffa3; }
button.wlan-pick {
  background: rgba(80,120,210,.25); color: #cfe0ff; border: 1px solid rgba(120,160,230,.35);
  border-radius: 6px; padding: .2rem .45rem; font-size: .75rem; cursor: pointer;
}
button.wlan-pick:hover { background: rgba(80,120,210,.45); }
.wlan-sec-open { border-color: #ff6b6b !important; color: #ff6b6b !important; }
.wlan-sec-wep { border-color: #ff6b6b !important; color: #ff6b6b !important; }
.wlan-sec-wpa { border-color: #ffcf7a !important; color: #ffcf7a !important; }
.wlan-sec-wpa2 { border-color: #9fe08a !important; color: #9fe08a !important; }
.wlan-sec-wpa3 { border-color: #3fffa3 !important; color: #3fffa3 !important; }


/* ===================== Startseite: Ameisen-Hintergrund + Beschreibung ===================== */
/* Dezenter, selbst-enthaltener Kolonie-Hintergrund (reines SVG, kein CDN, kein Bild-Download).
   Liegt hinter dem Inhalt (z-index -1), niedrige Deckkraft, stört die Lesbarkeit nicht. */
/* Der frühere body.home::before (statisches colony-bg.svg) ist durch den
   zufälligen Kolonie-Hintergrund in base.html abgelöst (site-weit, siehe oben). */

.intro-card {
  background: linear-gradient(180deg, rgba(26,29,36,.92), rgba(16,18,22,.92));
  border: 1px solid #2a2f3a;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 0 0 1.25rem;
  backdrop-filter: blur(2px);
}
.intro-card h2 { display:flex; align-items:center; gap:.5rem; margin-bottom:.4rem; }
.intro-card p { line-height:1.55; margin:.5rem 0; max-width:70ch; }
.intro-modes { display:flex; flex-wrap:wrap; gap:.9rem; margin:.8rem 0 .4rem; }
.intro-mode { flex:1 1 220px; background:#0f1115; border:1px solid #262a33;
  border-radius:8px; padding:.6rem .8rem; font-size:.86rem; line-height:1.45; }
.intro-mode.def { border-color:rgba(63,185,80,.45); }
.intro-mode.off { border-color:rgba(248,81,73,.45); }
.intro-mode strong { display:block; margin-bottom:.2rem; }
.intro-guards { font-size:.82rem; color:var(--muted); line-height:1.5; margin:.5rem 0 0; }
.intro-guards code { color:#79c0ff; }

.didyouknow {
  margin-top:1rem; background:#0b0d11; border:1px dashed rgba(210,153,34,.5);
  border-radius:8px; padding:.85rem .9rem .7rem; font-size:.88rem; line-height:1.5;
  display:flex; gap:.6rem; align-items:flex-start; position:relative; overflow:hidden;
}
.didyouknow .dyk-ant { font-size:1.2rem; line-height:1; margin-top:.05rem; }
.didyouknow b { color:var(--accent); }
#dyk-fact { transition:opacity .4s ease; }

/* ---- Laufschrift-Ticker + Liste: "Neueste Schwachstellen" ----
   Optik strikt im bestehenden antbb-Theme (var(--card/--accent/--glow/--muted),
   gleiche Card-Optik, Hover/Bloom). Keine fremden Farben/Fonts. */
.didyouknow { align-items:center; }
.dyk-label { color:var(--accent); font-weight:700; white-space:nowrap; flex:0 0 auto; }
.dyk-ticker {
  position:relative; overflow:hidden; flex:1 1 auto; min-width:0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.dyk-track { display:inline-block; white-space:nowrap; will-change:transform; }
.dyk-track:hover { animation-play-state:paused; }
.dyk-seq { display:inline-block; }
.dyk-sep { color:var(--muted); margin:0 1.1rem; opacity:.7; }
.dyk-ticker a { color:#79c0ff; text-decoration:none; }
.dyk-ticker a:hover { text-decoration:underline; color:#ffffff;
  text-shadow:0 0 10px rgba(56,224,255,.55); }
.dyk-sev { font-size:.72rem; font-weight:700; padding:.03rem .32rem; border-radius:4px;
  margin-left:.15rem; vertical-align:middle; background:#262a33; color:var(--muted); }
/* Severity-Farben = bestehende .sev-* Palette (kein Octogent-Look) */
.dyk-sev-CRITICAL { background:rgba(248,81,73,.18); color:#ff7b72;
  box-shadow:0 0 10px rgba(248,81,73,.18); }
.dyk-sev-HIGH     { background:rgba(240,136,62,.16); color:#f0883e; }
.dyk-sev-MEDIUM   { background:rgba(210,153,34,.16); color:var(--accent); }
.dyk-sev-LOW      { background:rgba(88,166,255,.14); color:#58a6ff; }
@keyframes dyk-scroll {
  from { transform:translateX(0); }
  to   { transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .dyk-track { animation:none !important; white-space:normal; }
}

/* Sichtbare, ausklappbare Liste – gleiche Card-Optik wie der Rest der Startseite */
.dyk-list-card {
  margin-top:.55rem; padding:.55rem .9rem .7rem;
  /* erbt .card (Gradient, Border, Bloom) – nur etwas kompakter */
}
.dyk-list-card > summary {
  cursor:pointer; list-style:none; display:flex; gap:.7rem; align-items:baseline;
  flex-wrap:wrap; color:var(--fg); font-weight:600; user-select:none;
}
.dyk-list-card > summary::-webkit-details-marker { display:none; }
.dyk-list-card > summary::before {
  content:"▸"; color:var(--glow); margin-right:.15rem;
  text-shadow:0 0 8px rgba(56,224,255,.45);
  transition:transform .15s ease;
}
.dyk-list-card[open] > summary::before { content:"▾"; }
.dyk-list-card > summary:hover {
  text-shadow:0 0 10px rgba(56,224,255,.35);
}
.dyk-list {
  list-style:none; margin:.55rem 0 0; padding:0;
  max-height:320px; overflow-y:auto;
}
.dyk-li {
  position:relative; padding:.45rem .15rem .45rem 1.5rem; border-bottom:1px solid #262a33;
  font-size:.85rem; line-height:1.4;
}
.dyk-li:last-child { border-bottom:none; }
.dyk-li-head { display:flex; flex-wrap:wrap; gap:.35rem; align-items:center;
  margin-bottom:.15rem; color:var(--fg); }
.dyk-li-author { color:var(--accent); font-weight:600; }
.dyk-li-text { color:var(--muted); }
.dyk-li-link { color:#79c0ff; font-size:.8rem; margin-left:.2rem; }
.dyk-li-link:hover { color:#ffffff; text-shadow:0 0 10px rgba(56,224,255,.55); }
.dyk-li code { color:#79c0ff; }



/* ---- Späher-Ameisen entlang der Laufschrift (dezent, performant) ----
   Nutzt den vorhandenen Scout-Sprite; klein skaliert, opacity niedrig,
   pointer-events:none – Lesbarkeit der CVEs bleibt ungestoert. */
.dyk-ants-rail {
  position:absolute; left:0; right:0; top:2px; height:16px;
  pointer-events:none; overflow:hidden; z-index:1;
}
.dyk-walker {
  position:absolute; top:0; left:-20px; width:16px; height:14px;
  background:url("/static/sprites/scout_tq.png") center/contain no-repeat;
  opacity:.55; filter:drop-shadow(0 0 3px rgba(210,153,34,.45));
  will-change:left;
}
.dyk-w1 { animation: dyk-walk-box 18s linear infinite; }
.dyk-w2 { animation: dyk-walk-box 26s linear infinite reverse; animation-delay:-8s; opacity:.4; top:1px; }
.dyk-w3 { animation: dyk-walk-box 22s linear infinite; animation-delay:-14s; opacity:.35; width:13px; height:11px; }
@keyframes dyk-walk-box {
  from { left:-20px; }
  to   { left:calc(100% + 4px); }
}
@media (prefers-reduced-motion: reduce) {
  .dyk-walker { animation:none !important; display:none; }
}


/* ---- Papierkorb / Soft-Delete (Targets-Archiv) ---- */
.trash-link { font-size: .6em; font-weight: 400; margin-left: .8em; opacity: .85; }
.trash-link:hover { opacity: 1; }
.btn-archive { background: transparent; border: 1px solid #c0392b55; color: #e08a7f;
  font-size: .85em; padding: 2px 8px; margin-left: 6px; border-radius: 6px; cursor: pointer; }
.btn-archive:hover { background: #c0392b22; color: #ff9f93; }
.btn-restore { background: transparent; border: 1px solid #27ae6055; color: #7fd6a0;
  font-size: .85em; padding: 2px 8px; border-radius: 6px; cursor: pointer; }
.btn-restore:hover { background: #27ae6022; color: #9affc0; }

/* ---- WLAN Scope / Queen / Airgorah (aufgeräumt) ---- */
.wlan-queen-box {
  border: 1px solid rgba(80,120,210,.45);
  background: rgba(40,60,110,.22);
  border-radius: 12px;
  padding: .7rem .9rem;
  margin: .6rem 0 1rem;
}
.wlan-queen-head { display:flex; flex-wrap:wrap; gap:.5rem; align-items:baseline; margin-bottom:.45rem; }
.wlan-queen-checks { display:flex; flex-wrap:wrap; gap:.55rem .9rem; margin:.35rem 0 .55rem; }
.wlan-check-item { display:inline-flex; align-items:center; gap:.35rem; font-size:.9rem; color:#c7d2ec; }
.wlan-queen-actions { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; }
button.wlan-queen-btn { background: linear-gradient(135deg,#3a5fd0,#6a3fd0); border:none; color:#fff; font-weight:700; }
.wlan-scope-create input { min-width: 8rem; }
.wlan-eng-row {
  display:flex; justify-content:space-between; gap:.6rem; flex-wrap:wrap;
  border-top:1px solid #2a2f3a; padding:.45rem 0; align-items:flex-start;
}
.wlan-eng-actions { display:flex; gap:.35rem; flex-wrap:wrap; }
.wlan-tool-grid { display:flex; flex-wrap:wrap; gap:.35rem; margin:.4rem 0; }
.wlan-air-actions { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.45rem; }
.wlan-air-actions button { min-width: 11rem; }
.wlan-tabs .wtab[data-tab="scope"].active {
  background: rgba(60,140,100,.35); border-color: rgba(63,255,163,.45);
}
.dyk-li::before { content:"🐜"; position:absolute; left:.1rem; top:.45rem; font-size:.85rem;
  opacity:.75; filter:drop-shadow(0 0 4px rgba(210,153,34,.35)); }
.dyk-li:hover { background:rgba(56,224,255,.04); }
.dyk-li:hover::before { opacity:1; filter:drop-shadow(0 0 6px rgba(56,224,255,.6)); }

/* ---- WLAN-Coverage-Heatmap (antbb Schwarz-Theme + Ameisen-Look) -------- */
.wlan-heat-toolbar { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center;
  margin:.5rem 0; }
.wlan-heat-spacer { flex:1 1 auto; }
.wlan-file { cursor:pointer; background:#0f1115; border:1px solid #30353f;
  padding:.35rem .6rem; border-radius:5px; color:var(--fg); }
.wlan-file:hover { border-color:var(--accent); color:var(--accent); }
.wlan-heat-stage { position:relative; border:1px solid #30353f; border-radius:8px;
  background:#05070c; overflow:hidden; box-shadow:0 0 24px rgba(56,224,255,.08) inset; }
#heat-canvas { display:block; width:100%; height:auto; cursor:crosshair; }
.wlan-heat-legend { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center;
  margin-top:.5rem; font-size:.85rem; color:var(--muted); }
.wlan-heat-leg { padding:.15rem .5rem; border-radius:10px; color:#05070c; font-weight:600; }
.wlan-heat-gut { background:#3fb950; }
.wlan-heat-ok { background:#c6e03f; }
.wlan-heat-schwach { background:#e0a022; }
.wlan-heat-funkloch { background:#f85149; color:#fff; }
.wlan-heat-count { margin-left:auto; color:var(--glow); font-variant-numeric:tabular-nums; }


/* ---- Blue Queen (eigenständige Ansicht /blue) ---- */
body.blue-body {
  --blue-glow: #38e0ff;
  --blue-deep: #061018;
  --blue-panel: rgba(6, 14, 24, .92);
  --blue-line: rgba(56, 224, 255, .28);
  --blue-ink: #cfefff;
}
body.blue-body::before {
  background-image:
    linear-gradient(180deg, rgba(2,8,14,.72), rgba(2,6,12,.88)),
    url("/static/colony/ref3_symmetric.jpg") !important;
  filter: saturate(.55) hue-rotate(160deg);
}
body.blue-body header {
  background: rgba(4,10,18,.92);
  border-bottom: 1px solid var(--blue-line);
  box-shadow: 0 0 28px rgba(56,224,255,.08);
}
body.blue-body header h1 { color: #9fe9ff; text-shadow: 0 0 12px rgba(56,224,255,.35); }
body.blue-body nav a[href="/blue"] {
  color: #7ef0ff; font-weight: 700;
  text-shadow: 0 0 8px rgba(56,224,255,.45);
}

.blue-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--blue-line);
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(56,224,255,.16), transparent 55%),
    linear-gradient(160deg, #071018 0%, #0a1524 55%, #050a12 100%);
  padding: 1.25rem 1.35rem 1.1rem;
  margin: .2rem 0 1rem;
  box-shadow: 0 0 40px rgba(56,224,255,.08), inset 0 0 40px rgba(20,80,120,.12);
}
.blue-hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 55%; height: 140%;
  background: radial-gradient(circle, rgba(56,224,255,.18), transparent 65%);
  pointer-events: none;
}
.blue-hero-ants { position: absolute; inset: 0; pointer-events: none; opacity: .35; }
.bha { position: absolute; font-size: .95rem; filter: drop-shadow(0 0 4px rgba(56,224,255,.7)); }
.bha1 { left: 8%; bottom: 18%; animation: bha-crawl 14s linear infinite; }
.bha2 { left: 42%; bottom: 10%; animation: bha-crawl 18s linear infinite reverse; }
.bha3 { left: 72%; bottom: 22%; animation: bha-crawl 16s linear infinite; }
@keyframes bha-crawl {
  0% { transform: translateX(0) rotate(-8deg); opacity: .2; }
  40% { opacity: .55; }
  100% { transform: translateX(42px) rotate(8deg); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .bha1,.bha2,.bha3 { animation: none; }
}
.blue-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.2rem; align-items: start;
}
.blue-crest {
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem;
  background: radial-gradient(circle at 35% 30%, #1a3a55, #071018 70%);
  border: 1px solid rgba(56,224,255,.45);
  box-shadow: 0 0 22px rgba(56,224,255,.35), inset 0 0 12px rgba(56,224,255,.15);
}
.blue-kicker {
  margin: 0 0 .25rem; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: #6ec8e8;
}
.blue-hero-copy h2 {
  margin: 0; color: #e8f7ff; font-size: 1.55rem; letter-spacing: .02em;
  text-shadow: 0 0 14px rgba(56,224,255,.35);
}
.blue-sub { display: block; font-size: .85rem; font-weight: 500; color: #8fd4ef; margin-top: .15rem; }
.blue-lede { color: #c5dceb; font-size: .92rem; line-height: 1.45; margin: .45rem 0 .35rem; max-width: 52rem; }
.blue-motto {
  margin: 0; font-size: .78rem; color: #7affd1;
  border-left: 2px solid #3fffa3; padding-left: .55rem;
}
.blue-hero-stats {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .35rem;
}
.bstat {
  min-width: 5.4rem; padding: .45rem .7rem;
  background: rgba(4,12,20,.75); border: 1px solid rgba(56,224,255,.22);
  border-radius: 10px; text-align: center;
}
.bstat b {
  display: block; font-size: 1.25rem; color: #7ef0ff;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(56,224,255,.4);
}
.bstat span { font-size: .68rem; color: #8aa6bc; letter-spacing: .03em; }

.blue-jump {
  display: flex; flex-wrap: wrap; gap: .45rem .7rem; margin: 0 0 1rem;
  padding: .45rem .2rem; font-size: .82rem;
}
.blue-jump a {
  color: #9fdfff; text-decoration: none;
  border: 1px solid rgba(56,224,255,.22); border-radius: 999px;
  padding: .2rem .65rem; background: rgba(8,16,28,.7);
}
.blue-jump a:hover { border-color: rgba(56,224,255,.55); background: rgba(16,36,56,.85); }
.blue-jump-off { color: #c9b6ff !important; border-color: rgba(176,77,255,.35) !important; }

.blue-card {
  background: var(--blue-panel) !important;
  border-color: rgba(56,224,255,.18) !important;
  box-shadow: 0 0 24px rgba(56,224,255,.05);
}
.blue-card h3 { color: #b8e9ff; }
.blue-card h3 small { color: #7a93a8; font-weight: 500; }

.blue-form {
  display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: flex-end;
  margin: .4rem 0 .6rem;
}
.blue-field { display: flex; flex-direction: column; gap: .25rem;
  font-size: .75rem; color: #8fb4c8; font-weight: 600; }
.blue-field select, .blue-field-input, .blue-job-form select {
  background: #071018; color: #e8f7ff; border: 1px solid #1e3348;
  border-radius: 8px; padding: .4rem .55rem; min-width: 160px;
}
.blue-interval { width: 8rem; min-width: 8rem; }
.blue-check {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 600; color: #cfefff; margin: 0;
}
.blue-check input { width: auto; }
.blue-ack { color: #ffcf7a; }
.blue-go {
  background: linear-gradient(180deg, #1a6a8a, #0e3a52);
  border: 1px solid #38e0ff; color: #e8f7ff;
  border-radius: 8px; padding: .5rem 1rem; font-weight: 700;
  box-shadow: 0 0 16px rgba(56,224,255,.25); cursor: pointer;
}
.blue-go:hover { filter: brightness(1.1); }
.blue-go:disabled { opacity: .6; cursor: wait; }
.blue-feed, #blue-run-log.feed {
  background: #040a12; border: 1px solid #1d3348; padding: .7rem;
  font-family: ui-monospace, monospace; font-size: .82rem; color: #c9d4e6;
  max-height: 240px; overflow: auto; border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(56,224,255,.04);
}
.blue-filter {
  width: 100%; max-width: 480px; margin: .35rem 0 .7rem;
  background: #071018; color: #e8f7ff; border: 1px solid #1e3348;
  border-radius: 8px; padding: .45rem .65rem;
}

/* Blue phase pipeline */
.blue-phases-host .phase-row,
.blue-phase-strip {
  display: flex; flex-wrap: wrap; gap: .55rem; margin: .3rem 0 .5rem;
}
.phase-chip.blue, .blue-phase-chip {
  flex: 1; min-width: 120px;
  border: 1px solid #2a5a8a; color: #9fe9ff; background:
    linear-gradient(180deg, #0c1c2e, #081018);
  border-radius: 10px; padding: .55rem .65rem;
  box-shadow: 0 0 14px rgba(56,224,255,.08);
}
.blue-phase-chip .ph-name {
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  font-size: .78rem; color: #7ef0ff;
}
.blue-phase-chip .ph-sol {
  margin-top: .25rem; font-size: .72rem; color: #c5dceb; line-height: 1.35;
}
.blue-phase-chip .ph-arrow {
  float: right; color: #3a6a88; font-weight: 700;
}

body.blue-body #soldier-cards,
.blue-soldier-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem;
}
body.blue-body .soldier-card {
  background: linear-gradient(180deg, #0c1826, #070e16);
  border: 1px solid rgba(56,224,255,.22);
  box-shadow: 0 0 22px rgba(56,224,255,.06) inset, 0 4px 18px rgba(0,0,0,.35);
}
body.blue-body .soldier-card:hover {
  border-color: rgba(56,224,255,.5);
  box-shadow: 0 0 26px rgba(56,224,255,.12);
}
body.blue-body .sc-name { color: #7ef0ff; }
body.blue-body .sc-body { max-height: 380px; }
body.blue-body .pb {
  border-color: rgba(56,224,255,.18); background: #071421;
}
body.blue-body .pb-mode { background: #0d2a3a; color: #7affd1; }
body.blue-body .sc-pb-strip {
  display: flex; flex-wrap: wrap; gap: .25rem; margin: .35rem 0 .15rem;
}
body.blue-body .sc-pb-chip {
  font-size: .62rem; padding: .08rem .35rem; border-radius: 4px;
  background: #0d2233; border: 1px solid #1e4a66; color: #9fdfff;
}

.blue-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.blue-table th, .blue-table td {
  padding: .4rem .5rem; border-bottom: 1px solid #1a2c3e; text-align: left;
}
.blue-table th { color: #8fd4ef; background: #0a1520; }
.blue-jobs-wrap { overflow-x: auto; margin: .4rem 0; }
.blue-run-list { list-style: none; padding: 0; margin: .3rem 0; }
.blue-run-list li {
  padding: .35rem .2rem; border-bottom: 1px solid #152536;
  font-size: .82rem; color: #c5dceb;
}
.br-pill {
  display: inline-block; background: #12283a; border: 1px solid #2a5a8a;
  border-radius: 999px; padding: 0 .45rem; margin-right: .35rem; color: #7ef0ff;
  font-size: .72rem;
}
.br-status { color: #7affd1; margin-right: .35rem; }

.blue-posture-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}
.blue-posture-tile {
  background: #071018; border: 1px solid #1d3348; border-radius: 10px;
  padding: .7rem .8rem;
}
.bpt-label {
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: #6ec8e8; margin-bottom: .3rem;
}
.bpt-ok { color: #3fffa3; font-weight: 700; }
.bpt-idle { color: #8a92a6; font-weight: 600; }
.blue-pillars { margin: .2rem 0 0 1rem; padding: 0; color: #c5dceb; font-size: .82rem; }
.blue-pillars li { margin: .15rem 0; }
.blue-runs-list { min-height: 2rem; }

.phase-chip.blue { border-color:#2a5a8a; color:#7ec8ff; background:#0a1524; }

/* Posture-Ledger (/blue) */
.bstat-open b { color:#ffb86b; text-shadow:0 0 8px rgba(255,150,60,.35); }
.bstat-closed b { color:#3fffa3; text-shadow:0 0 8px rgba(63,255,163,.35); }
.lg-pill { display:inline-block; font-size:.66rem; font-weight:800; letter-spacing:.05em;
  padding:.05rem .45rem; border-radius:999px; border:1px solid #2a5a8a; }
.lg-pill.lg-fail { color:#ffb86b; border-color:#8a5a2a; background:#241709; }
.lg-pill.lg-pass { color:#3fffa3; border-color:#2a5a46; background:#08241a; }
#blue-ledger-table tr.lg-fail td:first-child { box-shadow: inset 3px 0 0 #ff9f4a; }
#blue-ledger-table tr.lg-pass td:first-child { box-shadow: inset 3px 0 0 #3fffa3; }

.blue-firstrun{margin:.6rem 0 0;font-size:.82rem;opacity:.85}
.blue-firstrun a{color:#7fe0ff}

/* Soldaten-Karten (Target): Tools + Oversight-Hinweis je Playbook */
.pb-tools { display:flex; flex-wrap:wrap; gap:.2rem; margin:.15rem 0 .25rem; }
.pb-gate { font-size:.66rem; color:#ffcf7a; background:#1d1606; border:1px dashed #6b5420; border-radius:5px; padding:.15rem .4rem; margin:.15rem 0 .25rem; }

/* WLAN-Features: Clients-/Geräte-Tabellen + Geräteklassen-Badges */
.clients-table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .82rem; }
.clients-table th, .clients-table td { text-align: left; padding: .3rem .45rem; border-bottom: 1px solid rgba(110,231,255,.12); }
.clients-table th { color: #7ad0ff; font-weight: 600; }
.dev-kind { display: inline-block; padding: .1rem .45rem; border-radius: 5px; font-size: .74rem; border: 1px solid; }
.dev-kind-router { color: #3fffa3; border-color: #1d5c3a; background: #06170e; }
.dev-kind-repeater { color: #7ad0ff; border-color: #1d4a6b; background: #061019; }
.dev-kind-iot { color: #ffd166; border-color: #6b5420; background: #191306; }
.dev-kind-unknown { color: #9aa6c3; border-color: #3a4258; background: #0d1017; }
.dev-fw-old { color: #ff6b6b; }
.dev-fw-ok { color: #3fffa3; }
