/* Laura · Vortex (drittes Dashboard). Gestaltung der Oberfläche "Vortex" nach JARVIS YouTube-Edition (MIT, © 2026 irgendwasmitIT, siehe vortex-LICENSE-MIT.txt);
   Grundstile (Variablen, Glas, Zeichenfläche) sind eigene Umsetzung. Keine Inline-Stile (strenge CSP). */
:root { --ac: #4fb6ff; --ac-rgb: 79,182,255; --bg: #02060e; --tx: #e8f1ff; --mut: rgba(232,241,255,.55); --glass: rgba(8,14,26,.62); --brd2: rgba(255,255,255,.08);
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--tx); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
#vx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.jv-glass { background: var(--glass); border: 1px solid var(--brd2); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
@keyframes jvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes jvBlink { 50% { opacity: 0; } }

#vx-zurueck:hover { color: #fff; border-color: rgba(var(--ac-rgb), .5); }
  :root {
    --ac: #4fb6ff;
    --ac-rgb: 79, 182, 255;
    --bg: #02060e;
    --brd: rgba(79, 182, 255, 0.28);
    --brd2: rgba(79, 182, 255, 0.14);
    --mut: rgba(165, 205, 245, 0.58);
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  * {
    box-sizing: border-box;
  }

  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: #e6f2ff;
    font-family: var(--sans);
    user-select: none;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
      radial-gradient(circle at 50% 44%, transparent 46%, rgba(1, 4, 12, 0.65) 100%),
      repeating-linear-gradient(
        to bottom,
        rgba(79, 182, 255, 0.018) 0px,
        rgba(79, 182, 255, 0.018) 1px,
        transparent 1px,
        transparent 4px
      );
  }

  #vxCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    cursor: grab;
    touch-action: none;
  }
  #vxCanvas.dragging { cursor: grabbing; }
  #vxCanvas.hover-node { cursor: pointer; }

  .jv-glass {
    background: linear-gradient(155deg, rgba(8, 22, 46, 0.78) 0%, rgba(3, 10, 24, 0.68) 100%);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    border: 1px solid var(--brd);
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.62),
      0 0 22px rgba(79, 182, 255, 0.08),
      inset 0 1px 0 rgba(190, 230, 255, 0.16),
      inset 0 0 20px rgba(79, 182, 255, 0.05);
  }

  @keyframes jvBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.25; }
  }

  @keyframes jvIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  :root {
    --ac: #4fb6ff;
    --ac-rgb: 79, 182, 255;
    --bg: #02060e;
    --brd: rgba(79, 182, 255, 0.28);
    --brd2: rgba(79, 182, 255, 0.14);
    --mut: rgba(165, 205, 245, 0.58);
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  * {
    box-sizing: border-box;
  }

  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: #e6f2ff;
    font-family: var(--sans);
    user-select: none;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
      radial-gradient(circle at 50% 44%, transparent 46%, rgba(1, 4, 12, 0.65) 100%),
      repeating-linear-gradient(
        to bottom,
        rgba(79, 182, 255, 0.018) 0px,
        rgba(79, 182, 255, 0.018) 1px,
        transparent 1px,
        transparent 4px
      );
  }

  #vxCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    cursor: grab;
    touch-action: none;
  }
  #vxCanvas.dragging { cursor: grabbing; }
  #vxCanvas.hover-node { cursor: pointer; }

  .jv-glass {
    background: linear-gradient(155deg, rgba(8, 22, 46, 0.78) 0%, rgba(3, 10, 24, 0.68) 100%);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    border: 1px solid var(--brd);
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.62),
      0 0 22px rgba(79, 182, 255, 0.08),
      inset 0 1px 0 rgba(190, 230, 255, 0.16),
      inset 0 0 20px rgba(79, 182, 255, 0.05);
  }

  @keyframes jvBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.25; }
  }

  @keyframes jvIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #vx-top {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--mono);
  }
  #vx-top > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 14px;
    border-right: 1px solid var(--brd2);
    white-space: nowrap;
  }
  #vx-top > div:last-child { border-right: 0; }
  #vx-top small { font-size: 8.5px; letter-spacing: 0.2em; color: var(--mut); }
  #vx-top b { font-size: 13px; font-weight: 600; color: #cfe6ff; letter-spacing: 0.04em; }
  #vx-top .live {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ac);
  }
  #vx-top .live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36e08a;
    box-shadow: 0 0 8px #36e08a;
    animation: jvBlink 1.6s steps(1) infinite;
  }
  #vx-top #vxModel { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }

  #vx-title {
    position: fixed;
    left: 20px;
    top: 68px;
    z-index: 5;
    pointer-events: none;
    padding-left: 12px;
    border-left: 2px solid rgba(79, 182, 255, 0.55);
  }
  #vx-title h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 28px rgba(79, 182, 255, 0.65), 0 0 8px rgba(140, 215, 255, 0.35);
  }
  #vx-title h1 span { color: var(--ac); }
  #vx-title p {
    margin: 4px 0 0;
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--mut);
    text-transform: uppercase;
  }
  #vx-title .st {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    color: rgba(207, 230, 255, 0.82);
  }

  /* Reparatur-Fortschrittspanel (Overfitting, Underfitting, Trägheit) */
  #vx-repair {
    position: fixed;
    left: 16px;
    top: 176px;
    width: 326px;
    z-index: 12;
    border-radius: 12px;
    padding: 11px 13px;
    font-family: var(--mono);
  }
  #vx-repair .rep-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--brd2);
  }
  #vx-repair .rep-head h4 {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ac);
  }
  #vx-repair .rep-eta-pill {
    font-size: 10px;
    font-weight: 700;
    color: #9be7ff;
    background: rgba(79, 182, 255, 0.12);
    border: 1px solid var(--brd2);
    border-radius: 6px;
    padding: 2px 7px;
  }
  #vx-repair .rep-overall {
    margin-bottom: 9px;
  }
  #vx-repair .rep-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 10px;
    margin-bottom: 3px;
    gap: 6px;
  }
  #vx-repair .rep-lbl {
    color: rgba(225, 240, 255, 0.9);
    font-weight: 600;
    white-space: nowrap;
  }
  #vx-repair .rep-stats {
    color: var(--mut);
    font-size: 9.5px;
    white-space: nowrap;
  }
  #vx-repair .rep-stats b {
    color: #fff;
    font-weight: 700;
  }
  #vx-repair .rep-track {
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
  }
  #vx-repair .rep-track.big {
    height: 8px;
  }
  #vx-repair .rep-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.22s linear, background 0.25s ease;
  }
  #vx-repair .rep-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 7px;
    border-top: 1px solid var(--brd2);
  }
  #vx-repair .rep-actions {
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid var(--brd2);
    display: flex;
    gap: 6px;
    justify-content: space-between;
  }
  #vx-repair button {
    background: rgba(79, 182, 255, 0.1);
    border: 1px solid var(--brd);
    color: #d6ebff;
    font-family: var(--mono);
    font-size: 9.5px;
    padding: 4px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  #vx-repair button:hover {
    background: rgba(79, 182, 255, 0.24);
    border-color: var(--ac);
  }
  #vx-repair button.active {
    background: rgba(54, 224, 138, 0.22);
    border-color: #36e08a;
    color: #d8ffeb;
  }

  #vx-feed {
    position: fixed;
    right: 16px;
    top: 68px;
    width: 288px;
    max-height: 256px;
    overflow-y: auto;
    z-index: 10;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: var(--mono);
  }
  #vx-feed h4 {
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ac);
    display: flex;
    justify-content: space-between;
  }
  #vx-feed h4 em { font-style: normal; color: var(--mut); }
  #vx-feed .it {
    font-size: 11px;
    line-height: 1.35;
    padding: 5px 0;
    border-top: 1px solid var(--brd2);
    color: rgba(220, 235, 255, 0.85);
    animation: jvIn 0.3s;
  }
  #vx-feed .it span { color: var(--mut); margin-right: 6px; font-size: 10px; }
  #vx-feed .it b { font-weight: 600; margin-right: 6px; }

  #vx-detail {
    position: fixed;
    left: 16px;
    top: 422px;
    width: 326px;
    max-height: calc(100vh - 538px);
    overflow-y: auto;
    z-index: 16;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--mono);
    display: none;
    animation: jvIn 0.22s ease-out;
  }
  #vx-detail.open { display: block; }
  #vx-detail .det-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--brd2);
  }
  #vx-detail .det-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  #vx-detail .det-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
  }
  #vx-detail .det-close {
    background: transparent;
    border: 1px solid var(--brd2);
    color: var(--mut);
    border-radius: 6px;
    padding: 2px 7px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
  }
  #vx-detail .det-close:hover { color: #fff; border-color: var(--ac); }
  #vx-detail .det-bar-wrap { margin: 8px 0 10px; }
  #vx-detail .det-bar-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--mut);
    margin-bottom: 4px;
  }
  #vx-detail .det-bar {
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  #vx-detail .det-bar > i {
    display: block;
    height: 100%;
    width: 25%;
    border-radius: 4px;
    transition: width 0.3s ease;
  }
  #vx-detail .det-desc {
    font-size: 10.5px;
    line-height: 1.45;
    color: rgba(215, 234, 255, 0.88);
    margin-bottom: 8px;
    white-space: pre-line;
  }
  #vx-detail .det-chips-title {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--mut);
    margin: 8px 0 5px;
  }
  #vx-detail .det-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
  }
  #vx-detail .det-chip {
    background: rgba(79, 182, 255, 0.09);
    border: 1px solid var(--brd2);
    color: #d6ebff;
    border-radius: 6px;
    padding: 3px 7px;
    font-family: var(--mono);
    font-size: 9.5px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  #vx-detail .det-chip:hover {
    border-color: var(--ac);
    background: rgba(79, 182, 255, 0.22);
  }
  #vx-detail .det-chip.active {
    background: rgba(255, 90, 170, 0.25);
    border-color: #ff6ab5;
    color: #fff;
  }
  #vx-detail .det-chip.bot-chip.active {
    background: rgba(70, 255, 195, 0.25);
    border-color: #46ffc3;
    color: #fff;
  }
  #vx-detail .det-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 10px;
  }
  #vx-detail .det-meta > div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--brd2);
    border-radius: 7px;
    padding: 5px 7px;
  }
  #vx-detail .det-meta small { display: block; font-size: 8.5px; color: var(--mut); }
  #vx-detail .det-meta b { font-size: 10.5px; color: #e2f1ff; }
  #vx-detail .det-logs-title {
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: var(--mut);
    margin-bottom: 5px;
  }
  #vx-detail .det-logs {
    max-height: 115px;
    overflow-y: auto;
    font-size: 10.5px;
  }
  #vx-detail .det-log-it {
    padding: 4px 0;
    border-top: 1px solid var(--brd2);
    color: rgba(220, 236, 255, 0.85);
    line-height: 1.35;
  }
  #vx-detail .det-log-it span { color: var(--mut); margin-right: 5px; font-size: 9.5px; }

  #vx-sig {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 300px;
    height: 92px;
    z-index: 5;
    border-radius: 12px;
    padding: 8px 10px;
  }
  #vx-sig small {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--mut);
    display: block;
    margin-bottom: 4px;
  }
  #vx-sig canvas { width: 100%; height: 64px; display: block; }

  #vx-view-ctrl {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 15;
    border-radius: 12px;
    padding: 10px 12px;
    width: 298px;
    font-family: var(--mono);
  }
  #vx-view-ctrl h4 {
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ac);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #vx-view-ctrl .ctrl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-top: 1px solid var(--brd2);
    font-size: 10.5px;
    color: var(--mut);
  }
  #vx-view-ctrl .ctrl-row:first-of-type { border-top: 0; padding-top: 0; }
  #vx-view-ctrl .btn-grp { display: flex; gap: 5px; flex-wrap: wrap; }
  #vx-view-ctrl button {
    background: rgba(79, 182, 255, 0.1);
    border: 1px solid var(--brd);
    color: #d6ebff;
    font-family: var(--mono);
    font-size: 9.5px;
    padding: 4px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  #vx-view-ctrl button:hover {
    background: rgba(79, 182, 255, 0.24);
    border-color: var(--ac);
  }
  #vx-view-ctrl button.active {
    background: rgba(79, 182, 255, 0.32);
    border-color: #8fd3ff;
    color: #fff;
  }
  #vx-view-ctrl .hint {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--brd2);
    font-size: 9.5px;
    color: var(--mut);
    line-height: 1.4;
  }

  @media (max-width: 1720px) { #vx-top .opt2 { display: none; } }
  @media (max-width: 1600px) { #vx-top .opt { display: none; } }
  @media (max-width: 1250px) { #vx-top { display: none; } }
  @media (max-width: 1180px) { #vx-sig { display: none; } }
  @media (max-width: 860px) {
    #vx-title { top: 56px; }
    #vx-title h1 { font-size: 22px; }
    #vx-feed { display: none; }
    #vx-repair { left: 16px; right: 16px; width: auto; top: auto; bottom: 265px; }
    #vx-detail { left: 16px; right: 16px; width: auto; top: auto; bottom: 455px; max-height: 180px; }
    #vx-view-ctrl { left: 16px; right: 16px; width: auto; }
  }

#vx-zurueck { position: fixed; top: 14px; left: 16px; z-index: 13; padding: 8px 12px; border-radius: 10px; font: 600 12px var(--mono); letter-spacing: .08em; color: #cfe6ff; text-decoration: none; }
#vx-zurueck:hover { color: #fff; border-color: rgba(var(--ac-rgb), .5); }
#vx-hinweis { position: fixed; left: 50%; transform: translateX(-50%); top: 66px; z-index: 14; width: max-content; max-width: min(420px, calc(100vw - 32px)); text-align: center; padding: 10px 12px; border-radius: 12px; font: 11px/1.4 var(--mono); color: #ffd9a0; }
#vx-hinweis[hidden] { display: none; }
#vx-lizenz { position: fixed; right: 16px; bottom: 4px; z-index: 4; font: 9px var(--mono); letter-spacing: .06em; color: rgba(207,230,255,.35); text-decoration: none; }
#vx-lizenz:hover { color: rgba(207,230,255,.8); }
#vx-hinweis:not([hidden]) ~ #vx-lizenz { display: none; }
#vx-top .live.aus i { background: #ff6a6a; box-shadow: 0 0 8px #ff6a6a; animation: none; }
.fa-l1 { color: var(--ac); } .fa-l2 { color: #36e08a; } .zoomwert { color: #cfe6ff; }

/* Zustandsanzeige und Chat der Vortex-Seite */
#vx-chat-knopf { position: fixed; top: 14px; left: 108px; z-index: 13; padding: 8px 12px; border-radius: 10px; font: 600 12px var(--mono); letter-spacing: .08em; color: #cfe6ff; cursor: pointer; }
#vx-chat-knopf:hover, #vx-chat-knopf[aria-pressed="true"] { color: #fff; border-color: rgba(var(--ac-rgb), .6); }
#vx-zustand { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: .2em; color: #cfe6ff; white-space: nowrap; }
#vx-zustand i { width: 9px; height: 9px; border-radius: 50%; background: #5d7a99; box-shadow: 0 0 8px #5d7a99; }
#vx-zustand.hoert { color: #7ff0ff; border-color: rgba(90, 230, 255, .6); } #vx-zustand.hoert i { background: #5ae6ff; box-shadow: 0 0 12px #5ae6ff; animation: jvBlink 0.7s steps(1) infinite; }
#vx-zustand.erkennt { color: #ffd98a; border-color: rgba(255, 200, 90, .55); } #vx-zustand.erkennt i { background: #ffc85a; box-shadow: 0 0 12px #ffc85a; animation: jvBlink 0.5s steps(1) infinite; }
#vx-zustand.denkt { color: #ffb070; border-color: rgba(255, 150, 70, .6); } #vx-zustand.denkt i { background: #ff9646; box-shadow: 0 0 12px #ff9646; animation: jvBlink 0.9s steps(1) infinite; }
#vx-zustand.spricht { color: #8dffc0; border-color: rgba(54, 224, 138, .6); } #vx-zustand.spricht i { background: #36e08a; box-shadow: 0 0 12px #36e08a; animation: jvBlink 0.45s steps(1) infinite; }
#vx-zustand.lauscht { color: #9fd0ff; } #vx-zustand.lauscht i { background: #4fb6ff; box-shadow: 0 0 8px #4fb6ff; }
#vx-chat { position: fixed; top: 172px; left: 16px; width: 400px; height: min(420px, calc(100vh - 290px)); min-width: 260px; min-height: 170px; max-width: 94vw; max-height: 92vh; overflow: hidden; resize: both; user-select: text; -webkit-user-select: text; z-index: 11; display: flex; flex-direction: column; border-radius: 12px; padding: 10px 12px; font-family: var(--mono); }
#vx-chat[hidden] { display: none; }
#vx-chat h4 { margin: 0 0 8px; font-size: 10px; letter-spacing: .22em; color: var(--ac); cursor: move; user-select: none; -webkit-user-select: none; touch-action: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#vx-chat h4 button { padding: 3px 8px; font-size: 10px; letter-spacing: .08em; cursor: pointer; }
#vxChatLog, #vxChatLog * { user-select: text; -webkit-user-select: text; cursor: text; }
#vxChatLog { flex: 1; min-height: 0; overflow-y: auto; font-size: 12px; line-height: 1.4; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
#vxChatLog .cz { color: rgba(220, 235, 255, .88); } #vxChatLog .cz b { color: #7fd0ff; font-weight: 700; }
#vxChatLog .cz.laura b { color: #8dffc0; } #vxChatLog .cz.warte { color: var(--mut); font-style: italic; } #vxChatLog .cz.fehler { color: #ffb4a0; } #vxChatLog .cz.fehler b { color: #ff8a70; }
#vx-chat .chat-zeile { display: flex; gap: 6px; margin-top: 8px; }
#vx-chat input { flex: 1; min-width: 0; background: rgba(2, 8, 20, .7); border: 1px solid var(--brd2); border-radius: 8px; padding: 8px 10px; color: var(--tx); font: 16px var(--mono); }
#vx-chat button { background: rgba(79, 182, 255, .16); border: 1px solid rgba(79, 182, 255, .45); border-radius: 8px; color: #cfe6ff; padding: 0 12px; font: 600 12px var(--mono); cursor: pointer; }
#vx-chat button:disabled { opacity: .45; cursor: default; }
#vx-hinweis { top: 104px !important; }
@media (max-width: 860px) { #vx-chat { top: auto; bottom: 80px; left: 16px; right: 16px; width: auto; } #vx-zustand { top: 100px; font-size: 11px; letter-spacing: .14em; } #vx-hinweis { top: 140px !important; } }
#vx-chat button.active { background: rgba(54, 224, 138, .22); border-color: rgba(54, 224, 138, .7); color: #d6ffe9; }
#vx-chat #vxChatMic { white-space: nowrap; }
#vxCanvas { will-change: transform; transform: translateZ(0); }
#vxGpu { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
body.chat-an #vx-feed { display: none; }   /* der Chat steht links; dort zeigt er dasselbe, was die Aktivitätsliste zeigt */
#vx-chat .chat-zeile { gap: 5px; } #vx-chat input { flex: 1 1 150px; } #vx-chat .chat-zeile button { padding: 0 9px; flex: 0 0 auto; }

/* Echter Chat (laura.js) im Vortex-Fenster */
#vx-chat { width: 440px; height: min(600px, calc(100vh - 290px)); }
#vx-chat .vx-anmeldung { display: flex; gap: 6px; margin-bottom: 8px; }
#vx-chat .vx-anmeldung input { flex: 1; min-width: 0; padding: 6px 8px; font: 16px var(--mono); }
#vx-chat .vx-anmeldung input.hidden, #vx-chat .vx-anmeldung:has(input.hidden) { display: none; }
#vx-chat #panel-links { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; font-family: system-ui, sans-serif; }
#vx-chat #terminal-drop-zone { flex: 1 1 auto; min-height: 0; }
#vx-chat h2 { color: #cfe6ff; }
#vx-chat #terminal-chat-log { user-select: text; -webkit-user-select: text; }

/* Fenster: verschiebbar und einklappbar (Chat, 3D-Modell, Fortschritt) */
.vx-fenster > h4 { cursor: move; user-select: none; -webkit-user-select: none; touch-action: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vx-fenster > h4 > :first-child { margin-right: auto; }
.vx-fenster .vx-einklapp { padding: 1px 9px; font: 700 13px var(--mono); line-height: 1.2; background: rgba(79,182,255,.14); border: 1px solid rgba(79,182,255,.4); border-radius: 6px; color: #cfe6ff; cursor: pointer; }
.vx-fenster.eingeklappt { height: auto !important; min-height: 0 !important; resize: none !important; max-height: none !important; }
.vx-fenster.eingeklappt > :not(h4) { display: none !important; }
.vx-fenster.eingeklappt > h4 { margin-bottom: 0; }
#vx-view-ctrl { cursor: default; }
/* Reparatur-Fortschritt */
#vx-fortschritt { position: fixed; top: 84px; right: 16px; width: 340px; z-index: 11; border-radius: 12px; padding: 10px 12px; font-family: var(--mono); }
#vx-fortschritt h4 { margin: 0 0 8px; font-size: 10px; letter-spacing: .2em; color: var(--ac); }
#vx-fortschritt h4 em { font-style: normal; color: #cfe6ff; font-size: 10px; border: 1px solid var(--brd2); border-radius: 999px; padding: 2px 8px; letter-spacing: .08em; }
#vx-fortschritt .fz-zeile { margin-bottom: 8px; }
#vx-fortschritt .fz-kopf { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .08em; margin-bottom: 3px; }
#vx-fortschritt .fz-w { color: var(--mut); } #vx-fortschritt .fz-w b { color: #e8f1ff; font-weight: 700; }
#vx-fortschritt .fz-l.rosa { color: #ff7ac6; } #vx-fortschritt .fz-l.gruen { color: #6ef7c2; } #vx-fortschritt .fz-l.gelb { color: #ffb85c; } #vx-fortschritt .fz-l.blau { color: #7fc8ff; }
#vx-fortschritt .fz-spur { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
#vx-fortschritt .fz-spur i { display: block; height: 100%; width: 0; transition: width .6s ease; border-radius: 3px; }
#vx-fortschritt i.rosa { background: #ff5aaa; } #vx-fortschritt i.gruen { background: #46ffc3; } #vx-fortschritt i.gelb { background: #ffaa3c; } #vx-fortschritt i.blau { background: #4fb6ff; }
#vx-fortschritt .fz-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 10px 0 6px; padding-top: 8px; border-top: 1px solid var(--brd2); }
#vx-fortschritt .fz-zahlen small, #vx-fortschritt .fz-letzte small { display: block; font-size: 8.5px; letter-spacing: .16em; color: var(--mut); }
#vx-fortschritt .fz-zahlen b { font-size: 12px; color: #e2f1ff; }
#vx-fortschritt .fz-letzte { font-size: 11px; color: #cfe6ff; margin-bottom: 4px; } #vx-fortschritt .fz-letzte small { display: inline; margin-right: 6px; }
#vx-fortschritt .fz-hinweis { margin: 6px 0 0; font-size: 9px; line-height: 1.35; color: var(--mut); }
@media (max-width: 1250px) { #vx-fortschritt { top: 150px; } }
@media (max-width: 860px) { #vx-fortschritt { left: 16px; right: 16px; width: auto; top: 190px; } }
.vx-fenster > h4 > :first-child { white-space: nowrap; }
#vx-fortschritt .fz-l.rot { color: #ff8a6a; } #vx-fortschritt i.rot { background: #ff5a4a; }

/* Handy (iPhone-App und Browser): kompakter Kopf, Fenster als Leisten unten, Chat als Blatt von unten. !important schlaegt gemerkte Fensterlagen. */
@media (max-width: 600px) {
  #vx-zurueck { display: none !important; }
  #vx-chat-knopf { left: 12px !important; top: calc(env(safe-area-inset-top, 0px) + 12px) !important; }
  #vx-zustand { top: calc(env(safe-area-inset-top, 0px) + 12px) !important; left: auto !important; right: 12px !important; transform: none !important; font-size: 10px; letter-spacing: .1em; padding: 6px 12px; }
  #vx-title { top: calc(env(safe-area-inset-top, 0px) + 58px) !important; left: 14px !important; }
  #vx-title h1 { font-size: 20px; } #vx-title p { display: none; } #vx-title .st { font-size: 9px; letter-spacing: .1em; }
  #vx-hinweis { top: calc(env(safe-area-inset-top, 0px) + 110px) !important; }
  #vx-fortschritt, #vx-view-ctrl { left: 12px !important; right: 12px !important; width: auto !important; top: auto !important; max-height: 55vh; overflow-y: auto; }
  #vx-fortschritt { bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important; }
  #vx-view-ctrl { bottom: calc(env(safe-area-inset-bottom, 0px) + 64px) !important; }
  #vx-detail { display: none !important; }
  #vx-chat { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto !important; height: 58vh !important; max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); resize: none; }
  body.chat-an #vx-fortschritt, body.chat-an #vx-view-ctrl { display: none !important; }
}
