/* =========================================================
   ARES-6 · Dashboard styles
   Zwei Themes über [data-theme] auf <html>: "dark" und "light".
   ========================================================= */

:root {
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --left-w: 318px;
  --right-w: 300px;
  --top-h: 58px;
  --bottom-h: 92px;
  --radius: 4px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080b10;
  --bg-2: #0c1118;
  --panel: #0f151d;
  --panel-2: #131b25;
  --line: #1e2935;
  --line-2: #2a3846;
  --text: #d5dee8;
  --text-2: #93a3b5;
  --muted: #5f6f81;
  --accent: #3fd0ff;
  --accent-ink: #04141c;
  --accent-soft: rgba(63, 208, 255, 0.12);
  --brand: #ff6b1a;
  --brand-soft: rgba(255, 107, 26, 0.14);
  --ok: #3ddc97;
  --warn: #ffb020;
  --err: #ff4d5e;
  --track: #1a2430;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --vp-bg: #06080c;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9edf2;
  --bg-2: #f3f5f8;
  --panel: #fbfcfd;
  --panel-2: #f1f4f7;
  --line: #dde3ea;
  --line-2: #c9d2dc;
  --text: #17202b;
  --text-2: #4a5868;
  --muted: #8592a1;
  --accent: #0a86c4;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 134, 196, 0.1);
  --brand: #e85a0c;
  --brand-soft: rgba(232, 90, 12, 0.1);
  --ok: #12a26a;
  --warn: #c77a00;
  --err: #d62f42;
  --track: #e2e7ed;
  --shadow: 0 10px 30px rgba(30, 45, 60, 0.14);
  --vp-bg: #dfe4ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); }

/* ---------------- App grid ---------------- */

#app {
  display: grid;
  grid-template-columns: var(--left-w) 1fr var(--right-w);
  grid-template-rows: var(--top-h) 1fr var(--bottom-h);
  grid-template-areas:
    "top top top"
    "left view right"
    "left bottom right";
  height: 100vh;
  width: 100vw;
}

/* ---------------- Header ---------------- */

.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 300px; }
.brand-mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.brand-title { font-weight: 800; letter-spacing: 0.22em; font-size: 17px; }
.brand-sub { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); margin-top: 2px; white-space: nowrap; }

.chips { display: flex; gap: 8px; flex: 1; justify-content: center; min-width: 0; }
.chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.chip-k { color: var(--muted); }
.chip-v { color: var(--accent); font-weight: 600; }
.chip-v.warn { color: var(--warn); }
.chip-v.err { color: var(--err); }
.chip-v.ok { color: var(--ok); }

.top-right { display: flex; align-items: center; gap: 10px; font-size: 11px; white-space: nowrap; }
.top-k { color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.08em; }
.top-v { color: var(--text-2); min-width: 54px; }
.sim-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.sim-dot.paused { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

.theme-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg-2);
  margin-left: 6px;
}
.theme-switch button {
  width: 30px; height: 26px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------------- Side panels ---------------- */

.panel {
  background: var(--panel);
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.panel-left { grid-area: left; border-right: 1px solid var(--line); }
.panel-right { grid-area: right; border-left: 1px solid var(--line); display: flex; flex-direction: column; }

.sec { border-bottom: 1px solid var(--line); }
.sec-head {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  background: transparent; border: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  cursor: pointer; text-align: left;
}
.sec-head:hover { background: var(--panel-2); }
.sec-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.04em;
}
.sec-caret { margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.sec.collapsed .sec-caret { transform: rotate(-45deg); }
.sec-body { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.sec.collapsed .sec-body { display: none; }

.btn-grid { display: grid; gap: 6px; }
.btn-grid.two { grid-template-columns: 1fr 1fr; }
.btn-grid.three { grid-template-columns: 1fr 1fr 1fr; }

.btn {
  padding: 8px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: default; border-color: var(--line); }
.btn .ico { font-size: 10px; margin-right: 3px; }

/* Slider */
.slider { display: grid; grid-template-columns: 1fr auto; row-gap: 7px; }
.slider label { font-size: 12px; color: var(--text-2); }
.slider .val { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-align: right; }
.slider .val .lim { color: var(--warn); margin-left: 6px; font-size: 10px; }
.slider input { grid-column: 1 / -1; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--track) var(--p));
}
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 16px;
  margin-top: -6.5px;
  border-radius: 2px;
  background: var(--panel);
  border: 2px solid var(--accent);
}
input[type="range"]::-moz-range-thumb {
  width: 7px; height: 13px;
  border-radius: 2px;
  background: var(--panel);
  border: 2px solid var(--accent);
}
input[type="range"]:focus-visible { outline: 1px dashed var(--accent); outline-offset: 3px; }

/* Segmentierte Auswahl (Flugmodus) */
.seg { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2); }
.seg kbd { margin-left: 4px; }
.seg-btns { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg-btns button {
  padding: 5px 10px; border: 0; background: var(--bg-2);
  font-size: 11.5px; color: var(--text-2); cursor: pointer;
}
.seg-btns button + button { border-left: 1px solid var(--line-2); }
.seg-btns button:hover { color: var(--text); }
.seg-btns button.active { background: var(--accent-soft); color: var(--accent); }

/* Toggle */
.toggle { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { width: 30px; height: 16px; border-radius: 999px; background: var(--track); border: 1px solid var(--line-2); position: relative; transition: background 0.15s; }
.toggle-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: transform 0.15s, background 0.15s; }
.toggle input:checked + .toggle-ui { background: var(--accent-soft); border-color: var(--accent); }
.toggle input:checked + .toggle-ui::after { transform: translateX(14px); background: var(--accent); }
.toggle input:focus-visible + .toggle-ui { outline: 1px dashed var(--accent); outline-offset: 2px; }

.statline { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statline b { color: var(--accent); font-weight: 500; }
.statline .w { color: var(--warn); }

.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; align-items: center; }
.keys dt { display: flex; gap: 4px; }
.keys dd { margin: 0; color: var(--text-2); font-size: 12px; }
kbd {
  font-family: var(--font-mono); font-size: 10px;
  min-width: 20px; padding: 2px 6px; text-align: center;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 3px; background: var(--bg-2); color: var(--text);
}

/* ---------------- Viewport ---------------- */

.viewport {
  grid-area: view;
  position: relative;
  overflow: hidden;
  background: var(--vp-bg);
  min-width: 0; min-height: 0;
}
.viewport canvas.scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: none; }
.labels-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.vp-frame { position: absolute; inset: 10px; pointer-events: none; z-index: 2; }
.vp-frame i { position: absolute; width: 18px; height: 18px; border-color: var(--accent); opacity: 0.55; }
.vp-frame i:nth-child(1) { top: 0; left: 0; border-top: 1.5px solid; border-left: 1.5px solid; }
.vp-frame i:nth-child(2) { top: 0; right: 0; border-top: 1.5px solid; border-right: 1.5px solid; }
.vp-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.vp-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.vp-top {
  position: absolute; top: 18px; left: 22px; right: 22px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  pointer-events: none;
  z-index: 3;
}

.cam-buttons { display: flex; gap: 4px; align-items: center; pointer-events: auto; }
.cam-label { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: var(--brand); padding: 5px 8px; border: 1px solid var(--brand-soft); border-radius: 3px; background: color-mix(in srgb, var(--panel) 75%, transparent); }
.cam-buttons button {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: color-mix(in srgb, var(--panel) 75%, transparent);
  color: var(--text-2);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.cam-buttons button:hover { color: var(--text); border-color: var(--accent); }
.cam-buttons button.active { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }

.compass { position: relative; width: 300px; height: 34px; overflow: hidden; flex: none; mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.compass-strip { position: absolute; top: 0; left: 50%; height: 22px; will-change: transform; }
.compass-strip span { position: absolute; top: 0; width: 1px; height: 6px; background: var(--muted); }
.compass-strip span.major { height: 10px; background: var(--text-2); }
.compass-strip em { position: absolute; top: 11px; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-2); }
.compass-strip em.card { color: var(--accent); font-weight: 700; }
.compass-needle { position: absolute; left: 50%; top: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--brand); transform: translateX(-50%); }
.compass-val { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 10px; color: var(--brand); }

.readouts {
  font-size: 11px;
  display: grid; gap: 3px;
  text-align: right;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  backdrop-filter: blur(6px);
}
.readouts div { display: flex; justify-content: flex-end; gap: 10px; }
.readouts span { color: var(--muted); }
.readouts b { color: var(--text); font-weight: 500; min-width: 150px; }
.readouts b.warn { color: var(--warn); }

/* Drone feed (PiP). Das Bild selbst rendert WebGL in den Bereich von .feed-window. */
.drone-feed {
  position: absolute; right: 22px; bottom: 44px;
  width: 360px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 3;
  pointer-events: none;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drone-feed.hidden { display: none; }
.feed-head, .feed-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  background: var(--panel);
  color: var(--text-2);
}
.feed-head { border-bottom: 1px solid var(--line); }
.feed-foot { border-top: 1px solid var(--line); justify-content: flex-start; }
.feed-live { color: var(--err); display: flex; align-items: center; gap: 6px; }
.feed-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--err); animation: blink 1.2s infinite; }
.feed-window { position: relative; height: 202px; }
.feed-window::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px); }
.feed-cross { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); }
.feed-cross::before, .feed-cross::after { content: ""; position: absolute; background: rgba(255,255,255,0.75); }
.feed-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.feed-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.feed-corners i { position: absolute; width: 12px; height: 12px; border-color: rgba(255,255,255,0.7); }
.feed-corners i:nth-child(1) { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.feed-corners i:nth-child(2) { top: 8px; right: 8px; border-top: 1px solid; border-right: 1px solid; }
.feed-corners i:nth-child(3) { bottom: 8px; left: 8px; border-bottom: 1px solid; border-left: 1px solid; }
.feed-corners i:nth-child(4) { bottom: 8px; right: 8px; border-bottom: 1px solid; border-right: 1px solid; }
.feed-docked { position: absolute; left: 10px; top: 10px; font-family: var(--font-mono); font-size: 10px; color: #fff; background: rgba(0,0,0,0.45); padding: 2px 6px; border-radius: 2px; }
.feed-docked.hidden { display: none; }
.feed-ir { margin-left: 6px; padding: 0 5px; border-radius: 2px; background: #ff2fa0; color: #fff; font-weight: 700; }
.feed-ir.hidden { display: none; }
.btn-scan { border-color: color-mix(in srgb, var(--warn) 55%, var(--line-2)); color: var(--warn); }
.btn-scan.active { background: color-mix(in srgb, var(--warn) 14%, transparent); border-color: var(--warn); color: var(--warn); }

/* World labels (CSS2D) */
.world-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  padding: 3px 7px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  white-space: nowrap;
  transform: translateY(-14px);
}
.world-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: var(--accent); }

.world-label.heat { border-color: var(--warn); color: var(--warn); }
.world-label.heat::after { background: var(--warn); }
.world-label.found { border-color: var(--ok); color: var(--ok); }
.world-label.found::after { background: var(--ok); }

/* Toasts */
.toasts { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 4; pointer-events: none; }
.toast {
  font-family: var(--font-mono); font-size: 12px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease-out;
}
.toast b { margin-right: 8px; }
.toast.warn { border-left-color: var(--warn); }
.toast.warn b { color: var(--warn); }
.toast.err { border-left-color: var(--err); }
.toast.err b { color: var(--err); }
.toast.ok b { color: var(--ok); }
.toast.out { opacity: 0; transition: opacity 0.4s; }

.paused {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.3em;
  padding: 10px 18px; border: 1px solid var(--warn); color: var(--warn);
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  border-radius: 3px; display: none; z-index: 4;
}
.paused.show { display: block; }

.kbd-hint { position: absolute; left: 22px; bottom: 16px; font-size: 10.5px; color: var(--muted); z-index: 3; pointer-events: none; letter-spacing: 0.04em; }

/* ---------------- Telemetry ---------------- */

.tsec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tsec h2 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.16em; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.tsec h2 small { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; color: var(--muted); letter-spacing: 0.06em; }
.trow { display: grid; grid-template-columns: 78px 1fr 72px; align-items: center; gap: 10px; padding: 4px 0; font-size: 11.5px; }
.trow span { color: var(--text-2); }
.trow b { text-align: right; font-weight: 500; font-size: 11.5px; }
.trow b.accent { color: var(--accent); grid-column: 2 / -1; }
.bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; background: var(--accent); border-radius: 2px; transition: width 0.25s linear; }
.bar i.warn { background: var(--warn); }
.bar i.err { background: var(--err); }
.bar i.ok { background: var(--ok); }

.legs { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; }
#leg-svg { width: 104px; height: 104px; }
#leg-svg .body { fill: var(--panel-2); stroke: var(--line-2); }
#leg-svg .leg { stroke: var(--text-2); stroke-width: 2.2; stroke-linecap: round; }
#leg-svg .foot { fill: var(--ok); }
#leg-svg .foot.moving { fill: var(--accent); }
#leg-svg .foot.lifting { fill: var(--warn); }
#leg-svg .nose { fill: var(--brand); }
#leg-svg text { font-family: var(--font-mono); font-size: 7px; fill: var(--muted); }
.leg-table { display: grid; gap: 4px; font-size: 10.5px; }
.leg-row { display: grid; grid-template-columns: 20px 62px 1fr 26px; gap: 6px; align-items: center; }
.leg-row .id { color: var(--accent); }
.leg-row .st { text-align: center; padding: 1px 0; border-radius: 2px; border: 1px solid; font-size: 9px; letter-spacing: 0.04em; }
.st.grounded { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.st.moving { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.st.lifting { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.leg-row .ang { color: var(--muted); text-align: right; }

.tsec-nav { flex: 1; border-bottom: 0; }
.trow b.wide { grid-column: 2 / -1; color: var(--text); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.tile b { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.tile.on { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); }
.tile.on b { color: var(--accent); }
.tile.hot { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.tile.hot b { color: var(--warn); }
.trow b.wide.warn { color: var(--warn); }
.minimap { position: relative; aspect-ratio: 44 / 40; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.minimap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------- Footer ---------------- */

.bottombar {
  grid-area: bottom;
  display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  border-top: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
}
.cmd { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; border-right: 1px solid var(--line); min-width: 0; }
.cmd > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-k { color: var(--brand); font-weight: 700; }
.cmd-k2 { color: var(--muted); }
.cmd-sub { color: var(--accent); font-size: 11px; }
.log { list-style: none; margin: 0; padding: 10px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font-size: 11px; overflow: hidden; min-width: 0; }
.log li { display: flex; gap: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li time { color: var(--muted); flex: none; }
.log li .lv { flex: none; width: 34px; }
.log li .lv.info { color: var(--accent); }
.log li .lv.ok { color: var(--ok); }
.log li .lv.warn { color: var(--warn); }

@keyframes blink { 50% { opacity: 0.2; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* Kleinere Bildschirme: Seitenleisten schmaler. */
@media (max-width: 1500px) {
  :root { --left-w: 282px; --right-w: 270px; }
  .brand-sub { display: none; }
  .brand { min-width: 0; }
  .compass { width: 180px; }
  .readouts b { min-width: 118px; }
  .drone-feed { width: 300px; }
  .feed-window { height: 168px; }
}
@media (max-width: 1420px) {
  .compass { display: none; }
}
@media (max-width: 1240px) {
  .chips .chip:nth-child(3) { display: none; }
  .readouts { display: none; }
}
