:root {
  --bg: #0a1017;
  --bg2: #0f1720;
  --panel: #121c27;
  --panel2: #172331;
  --line: #22324a;
  --text: #d8e2ee;
  --muted: #7c90a6;
  --accent: #3ec1ff;
  --ok: #3ddc84;
  --warn: #ffb020;
  --crit: #ff4d4f;
  --early: #5aa9ff;
  --notruf: #ff3b3b;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; overflow: hidden; }
button, select, input { font-family: inherit; font-size: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.pad { padding: 10px 12px; }
.mono { font-family: var(--mono); }
b { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; transition: background .12s, border-color .12s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #1d2c3e; border-color: #2f4664; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #0f6fb0; border-color: #1d8bd6; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #1580c9; }
.btn.danger { background: #7d1d22; border-color: #b0313a; color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn.icon { padding: 4px 8px; }
.btn.active { background: #0f5d94; border-color: var(--accent); color: #fff; }
.btn.done { background: #12341f; border-color: #1f6b3d; color: #8ff0b4; }

.logo { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #0f6fb0, #3ec1ff); color: #fff; font-weight: 800; letter-spacing: .5px; font-size: 13px; }
.logo.big { width: 64px; height: 64px; font-size: 20px; border-radius: 12px; }
.count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--line); font-size: 11px; line-height: 18px; text-align: center; color: var(--text); margin-left: 4px; }
.count.hot { background: var(--notruf); color: #fff; animation: blink 1s steps(2) infinite; }

/* ---------- Startbildschirm ---------- */
.screen { position: fixed; inset: 0; display: grid; place-items: center; overflow: auto; padding: 24px;
  background: radial-gradient(1200px 600px at 20% 10%, #12304a 0%, transparent 60%), radial-gradient(900px 500px at 90% 90%, #2a1530 0%, transparent 60%), var(--bg); }
.start-card { width: min(980px, 100%); background: rgba(18, 28, 39, .92); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.start-head { display: flex; gap: 18px; align-items: center; }
.start-head h1 { margin: 0; font-size: 28px; }
.start-head p { margin: 4px 0 0; }
.intro { line-height: 1.6; color: #b9c7d6; margin: 18px 0 8px; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.start-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 18px 0 8px; }
.choice-list { display: grid; gap: 8px; }
.choice { text-align: left; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; }
.choice:hover { border-color: #33507a; }
.choice.sel { border-color: var(--accent); background: #0e2a40; }
.choice b { display: block; font-size: 14px; }
.choice span { color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: center; margin: 6px 0; cursor: pointer; }
.start-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.start-actions .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- Leitstand Layout ---------- */
#app { position: fixed; inset: 0; display: grid; grid-template-rows: 58px minmax(0, 1fr) 280px; }
#top { display: flex; align-items: center; gap: 18px; padding: 0 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.clockbox { text-align: center; }
#clock { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: 1px; color: #fff; }
#shiftbar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 2px; overflow: hidden; }
#shiftbar-fill { height: 100%; background: var(--accent); width: 0; }
.speed { display: flex; gap: 3px; }
.speed .btn { padding: 4px 8px; font-family: var(--mono); font-size: 12px; }
.kpis { display: flex; gap: 6px; flex: 1; justify-content: center; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; min-width: 92px; }
.kpi small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.kpi b { font-family: var(--mono); font-size: 15px; }
.topbtns { display: flex; gap: 6px; }

#main { display: grid; grid-template-columns: minmax(0, 1fr) 390px; min-height: 0; }
#mapwrap { position: relative; min-width: 0; min-height: 0; background: #0b141d; overflow: hidden; }
#map { width: 100%; height: 100%; display: block; cursor: grab; }
#map.dragging { cursor: grabbing; }
#maptools { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
#legend { position: absolute; left: 10px; bottom: 10px; background: rgba(10,16,23,.85); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 11px; display: grid; grid-template-columns: auto auto; gap: 3px 14px; }
#legend .li { display: flex; align-items: center; gap: 6px; }
#legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
#legend .ln { width: 18px; height: 4px; border-radius: 2px; }
#pausebadge { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #111; font-weight: 800; padding: 3px 14px; border-radius: 4px; letter-spacing: 2px; }
#tooltip { position: absolute; pointer-events: none; background: rgba(8,13,19,.95); border: 1px solid #33465e; border-radius: 6px; padding: 7px 9px; font-size: 12px; line-height: 1.45; max-width: 320px; z-index: 5; }

#side { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(110px, 0.7fr) minmax(120px, 0.95fr) minmax(230px, 1.6fr); border-left: 1px solid var(--line); min-height: 0; background: var(--bg2); }
.panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; padding: 7px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.scroll { overflow: auto; min-height: 0; flex: 1; }
.scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.scroll::-webkit-scrollbar-thumb { background: #26374d; border-radius: 5px; }

/* ---------- Funk ---------- */
.call { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #1a2736; }
.call .prio { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 3px; letter-spacing: .5px; }
.prio.notruf { background: var(--notruf); color: #fff; }
.prio.dringend { background: var(--warn); color: #111; }
.prio.normal { background: #2b4058; color: #cfe0f2; }
.call.notruf { background: rgba(255, 59, 59, .12); animation: pulsebg 1.2s ease-in-out infinite; }
.call .from { font-weight: 600; }
.call .txt { grid-column: 1 / 3; color: var(--muted); font-size: 12px; }
.call .age { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.call .age.late { color: var(--crit); font-weight: 700; }
.call .btn { grid-row: 1 / 3; grid-column: 3; }

/* ---------- Einsätze ---------- */
.inc { padding: 8px 12px; border-bottom: 1px solid #1a2736; border-left: 3px solid transparent; cursor: pointer; }
.inc:hover { background: #142030; }
.inc.notruf { border-left-color: var(--notruf); }
.inc.dringend { border-left-color: var(--warn); }
.inc.normal { border-left-color: #3b5878; }
.inc.closed { opacity: .55; }
.inc .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.inc .title { font-weight: 600; }
.inc .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.inc .units { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.unitchip { font-size: 10.5px; padding: 1px 6px; border-radius: 3px; background: #1d2b3c; border: 1px solid #2c4058; font-family: var(--mono); }
.unitchip.onsite { background: #173825; border-color: #2b7046; color: #9ff0bf; }
.score { font-family: var(--mono); font-weight: 700; }
.score.good { color: var(--ok); } .score.mid { color: var(--warn); } .score.bad { color: var(--crit); }
.badge-open { font-size: 10px; color: var(--warn); font-weight: 700; }

/* ---------- Fahrzeugdetails ---------- */
.det { padding: 10px 12px; }
.det-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.linebadge { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 5px; font-weight: 800; color: #fff; font-size: 13px; }
.det-head .t { font-size: 15px; font-weight: 600; }
.det-head .s { color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 3px 8px; font-size: 12.5px; }
.kv span:nth-child(odd) { color: var(--muted); }
.bar { height: 7px; background: #1e2b3b; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar > div { height: 100%; }
.det h4 { margin: 12px 0 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.actrow { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 6px; }
.actrow select { background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; max-width: 100%; min-width: 0; flex: 1 1 200px; }
.hint { font-size: 11.5px; color: var(--muted); }

/* ---------- Bottom-Tabs ---------- */
#bottom { display: flex; flex-direction: column; border-top: 1px solid var(--line); min-height: 0; background: var(--bg2); }
#tabs { display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--panel); border-bottom: 1px solid var(--line); }
#tabs button { background: none; border: none; padding: 8px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 600; }
#tabs button.active { color: #fff; border-bottom-color: var(--accent); }
#tabs .tabspacer { flex: 1; }
#tabs select { background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }
.tab { display: none; flex: 1; min-height: 0; }
.tab.active { display: block; }
#tab-band.active { display: block; position: relative; }
#band { width: 100%; height: 100%; display: block; }

table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.grid th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; color: var(--muted); padding: 5px 8px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
table.grid td { padding: 4px 8px; border-bottom: 1px solid #172433; white-space: nowrap; }
table.grid tr:hover td { background: #142030; }
table.grid tr.sel td { background: #10324c; }
table.grid tr.stoerung td { color: #ffb3b3; }
.dl { font-family: var(--mono); font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.loadbar { display: inline-block; width: 60px; height: 7px; background: #1e2b3b; border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.loadbar > div { height: 100%; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; padding: 10px; }
.res-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.res-card h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.res-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px dashed #1f2e40; }
.res-line:last-child { border-bottom: 0; }
.big-num { font-family: var(--mono); font-size: 20px; font-weight: 700; }

.logline { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 3px 12px; border-bottom: 1px solid #142130; font-size: 12.5px; }
.logline .tm { font-family: var(--mono); color: var(--muted); }
.logline.crit { color: #ff9c9c; } .logline.warn { color: #ffd38a; } .logline.good { color: #9ff0bf; } .logline.cmd { color: #9fd8ff; } .logline.sys { color: var(--muted); }
.logline.click { cursor: pointer; } .logline.click:hover { background: #142030; }

/* ---------- Modal ---------- */
#modal { position: fixed; inset: 0; background: rgba(3, 6, 10, .72); display: grid; place-items: center; z-index: 20; padding: 20px; }
.dialog { width: min(1040px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid #2c4058; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.dialog.notruf { border-color: var(--notruf); box-shadow: 0 0 0 2px rgba(255,59,59,.25), 0 30px 80px rgba(0,0,0,.6); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.dlg-head h3 { margin: 0; font-size: 17px; }
.dlg-head .sub { color: var(--muted); font-size: 12px; }
.dlg-head .spacer { flex: 1; }
.dlg-body { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 0; flex: 1; }
.transcript { padding: 12px 16px; overflow: auto; border-right: 1px solid var(--line); background: #0d151e; min-height: 260px; }
.msg { margin-bottom: 10px; max-width: 92%; }
.msg .who { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.msg .bubble { padding: 7px 10px; border-radius: 8px; line-height: 1.45; background: #1a2736; }
.msg.fahrer .bubble { background: #1c2a3b; border-left: 3px solid var(--warn); }
.msg.lst { margin-left: auto; }
.msg.lst .bubble { background: #0f3a5a; border-right: 3px solid var(--accent); }
.msg.lst .who { text-align: right; }
.msg.sys .bubble { background: transparent; border: 1px dashed #33465e; color: #a9bbcf; font-size: 12px; }
.msg.ext .bubble { background: #2a2140; border-left: 3px solid #b26cf0; }
.actions { padding: 12px 16px; overflow: auto; }
.actgroup { margin-bottom: 12px; }
.actgroup h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.actgroup .list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.actgroup .btn { text-align: left; white-space: normal; line-height: 1.3; padding: 7px 10px; }
.dlg-msg { margin: 0 16px; padding: 7px 10px; border-radius: 6px; font-size: 12.5px; }
.dlg-msg.err { background: #3a1517; border: 1px solid #7d2a2f; color: #ffb3b3; }
.dlg-msg.ok { background: #13301f; border: 1px solid #22603b; color: #a8f0c4; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--panel2); }
.result { padding: 10px 16px; border-top: 1px solid var(--line); background: #0d151e; }
.result ul { margin: 6px 0 0; padding-left: 18px; }
.result li.bad { color: #ffb3b3; } .result li.good { color: #a8f0c4; }

.doc { width: min(860px, 100%); }
.doc .content { padding: 16px 22px; overflow: auto; line-height: 1.55; }
.doc h2 { font-size: 15px; margin: 18px 0 6px; color: var(--accent); }
.doc h2:first-child { margin-top: 0; }
.doc ul { margin: 4px 0; padding-left: 20px; }
.doc table { border-collapse: collapse; margin: 6px 0; }
.doc td, .doc th { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
kbd { background: #1e2b3b; border: 1px solid #33465e; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-family: var(--mono); font-size: 11px; }

.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 16px; }
.report-kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.report-kpi small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.report-kpi b { font-family: var(--mono); font-size: 22px; }
.grade { font-size: 30px; font-weight: 800; text-align: center; margin: 8px 0; }
details.increp { border-bottom: 1px solid var(--line); padding: 6px 0; }
details.increp summary { cursor: pointer; display: flex; justify-content: space-between; }
details.increp ul { margin: 4px 0; font-size: 12.5px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; right: 404px; top: 68px; display: flex; flex-direction: column; gap: 8px; z-index: 15; pointer-events: none; }
.toast { background: rgba(18, 28, 39, .97); border: 1px solid #2c4058; border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 6px; max-width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: slidein .2s ease-out; }
.toast.crit { border-left-color: var(--notruf); } .toast.warn { border-left-color: var(--warn); } .toast.good { border-left-color: var(--ok); }

@keyframes blink { 50% { opacity: .35; } }
@keyframes pulsebg { 50% { background: rgba(255, 59, 59, .26); } }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1250px) {
  .kpi { min-width: 70px; padding: 3px 6px; }
  .brand { min-width: 0; } .brand > div { display: none; }
  #main { grid-template-columns: minmax(0, 1fr) 340px; }
  #toasts { right: 354px; }
}
@media (max-width: 900px) {
  .start-grid { grid-template-columns: 1fr; }
  .dlg-body { grid-template-columns: 1fr; }
  .actgroup .list { grid-template-columns: 1fr; }
}

/* ===================== Nachtdisposition ===================== */
#night { position: fixed; inset: 0; display: grid; grid-template-rows: 58px minmax(0, 1fr);
  background: radial-gradient(900px 500px at 85% 0%, #1b1840 0%, transparent 60%), #080c14; }
#n-top { display: flex; align-items: center; gap: 18px; padding: 0 14px; background: #0c1020; border-bottom: 1px solid #262b55; }
.logo.night { background: linear-gradient(135deg, #3b2f8f, #7b6cf0); }
#n-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 0; }
#n-left, #n-right { display: grid; min-height: 0; }
#n-left { grid-template-rows: minmax(90px, 0.5fr) minmax(0, 2fr); border-right: 1px solid var(--line); }
#n-right { grid-template-rows: minmax(0, 1.7fr) minmax(150px, 1fr); }
#night .panel h2 { background: #10142a; }
#night .panel h2 .tabspacer { flex: 1; }
.nfilter { display: flex; gap: 4px; text-transform: none; letter-spacing: 0; }
.small { font-size: 11px; }

.ntable td { vertical-align: middle; padding: 5px 8px; }
.ntable tr { cursor: pointer; }
.ntable tr.sel td { background: #1e1a4a !important; }
.ntable tr.sel td:first-child { box-shadow: inset 3px 0 0 #8f7cff; }
.ntable select { background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 4px; max-width: 210px; }
.ntable select.bad { border-color: var(--crit); color: #ffb3b3; }
.ntable td.issues { white-space: normal; min-width: 180px; font-size: 12px; }
.st { font-weight: 800; margin-right: 3px; }
.st.err { color: var(--crit); } .st.warn { color: var(--warn); } .st.ok { color: var(--ok); }
tr.row-err td.issues { color: #ffb3b3; } tr.row-warn td.issues { color: #ffd38a; }
.vchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px 2px 8px; border-radius: 5px; background: #1d2b3c; border: 1px solid #2f4664; font-weight: 700; }
.vchip small { color: var(--muted); font-weight: 400; }
.vchip .x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 3px; }
.vchip .x:hover { color: var(--crit); }

#n-depot { padding: 8px 10px; }
.exit-hint { font-size: 11px; color: var(--muted); margin: 0 0 6px 66px; }
.lane { display: flex; align-items: stretch; gap: 6px; margin-bottom: 6px; }
.lane-lbl { width: 60px; flex: none; display: grid; place-items: center; background: #10142a; border: 1px solid #262b55; border-radius: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.lane .slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; flex: 1; border-left: 3px solid #4b3fb0; padding-left: 6px; }
.lane.ws .slots { border-left-color: #7d2a2f; }
.slot { border: 1px dashed #232c3d; border-radius: 6px; min-height: 64px; }
.bcard { position: relative; background: #131c29; border: 1px solid #2a3a52; border-radius: 6px; padding: 5px 6px; cursor: pointer; min-height: 64px; user-select: none; transition: transform .08s, border-color .1s; }
.bcard:hover { transform: translateY(-1px); border-color: #4a6a94; }
.bcard .bc-top { display: flex; justify-content: space-between; align-items: baseline; }
.bcard .bc-top b { font-family: var(--mono); font-size: 13px; }
.bc-type { font-size: 10px; font-weight: 800; padding: 0 4px; border-radius: 3px; background: #26364c; }
.bcard.gelenk .bc-type { background: #2c4a73; } .bcard.solo .bc-type { background: #3d3d55; } .bcard.ebus .bc-type { background: #1f5a44; }
.bc-soc { height: 4px; background: #1e2b3b; border-radius: 2px; margin: 4px 0 2px; overflow: hidden; }
.bc-soc.none { background: transparent; }
.bc-soc > div { height: 100%; }
.bc-flags { display: flex; gap: 3px; align-items: center; min-height: 15px; font-size: 10px; }
.bc-flags .socv { font-family: var(--mono); color: var(--muted); margin-right: auto; }
.bc-flags .f { padding: 0 3px; border-radius: 3px; font-weight: 700; }
.bc-flags .f.err { background: #5c1a1e; color: #ffb3b3; } .bc-flags .f.warn { background: #4d3a10; color: #ffd38a; } .bc-flags .f.info { background: #24364c; color: #9fb7d0; }
.bc-asg { margin-top: 3px; font-size: 10.5px; font-family: var(--mono); border-left: 3px solid; padding-left: 4px; color: #e8eef5; }
.bc-asg.free { border-left-color: transparent; color: var(--muted); font-family: var(--font); }
.bcard.asg { background: #172235; }
.bcard.c-ok { border-color: #2b8a52; box-shadow: 0 0 0 1px #2b8a52 inset; }
.bcard.c-warn { border-color: #9a7a20; }
.bcard.c-err { opacity: .5; }
.bcard.sel { border-color: #b3a6ff; box-shadow: 0 0 0 2px #8f7cff; opacity: 1; }
.bcard.conf::after { content: "⇄"; position: absolute; top: -7px; right: -6px; background: var(--warn); color: #111; border-radius: 50%; width: 16px; height: 16px; font-size: 11px; display: grid; place-items: center; font-weight: 800; }
.bcard.ws { cursor: not-allowed; opacity: .55; background: #1d1416; }
.isslist { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; }
.isslist li.err { color: #ffb3b3; } .isslist li.warn { color: #ffd38a; } .isslist li.info { color: #9fb7d0; } .isslist li.ok { color: #a8f0c4; }

/* ===================== Echte Karte ===================== */
#attribution { position: absolute; right: 6px; bottom: 4px; font-size: 10.5px; color: #c9d6e3; background: rgba(10,16,23,.75); padding: 1px 6px; border-radius: 3px; }
#attribution a { color: #9fd8ff; text-decoration: none; }
