/* ════════════════════════════════════════════════════════════════════════
   PaneScale v2 — Windrad-Hintergrund, interaktive Vorschau, Scroll-Bewegung,
   Scale-Story, Filme
   ════════════════════════════════════════════════════════════════════════ */

.scroll-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  height: 2px;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* Wörter aus der Maske heben */
[data-split] .w {
  display: inline-block;
  vertical-align: top;
  clip-path: inset(-0.12em -0.3em -0.28em -0.3em);
}
[data-split] .wi {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  filter: blur(6px);
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.06s + 0.05s);
}
[data-split].is-in .wi {
  transform: none;
  opacity: 1;
  filter: none;
}

/* Wachsen beim Hereinscrollen */
[data-rise] {
  --rise: 1;
  transform: scale(calc(0.94 + 0.06 * var(--rise))) translateY(calc((1 - var(--rise)) * 30px));
  transform-origin: 50% 0;
}
.reveal[data-rise].is-in {
  transform: scale(calc(0.94 + 0.06 * var(--rise))) translateY(calc((1 - var(--rise)) * 30px));
}

/* Lichtkegel unter dem Cursor */
.spot {
  position: relative;
  isolation: isolate;
}
.spot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(56, 182, 255, 0.11), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.spot:hover::after {
  opacity: 1;
}

/* ── Hero v2 ──────────────────────────────────────────────────────────── */

.hero-v2 {
  position: relative;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-v2::before {
  display: none;
}
.hero-bg,
.page-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.4s ease;
  background: radial-gradient(ellipse 60% 50% at 78% 30%, rgba(77, 107, 255, 0.25), transparent 70%), var(--bg);
}
.hero-bg.is-ready,
.hero-bg.no-webgl,
.page-bg.is-ready,
.page-bg.no-webgl {
  opacity: 1;
}
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 70%, var(--bg)), linear-gradient(90deg, rgba(7, 8, 11, 0.86) 0%, rgba(7, 8, 11, 0.55) 34%, transparent 62%);
  pointer-events: none;
}
.hero-v2-inner {
  position: relative;
  padding-top: clamp(72px, 11vh, 132px);
  padding-bottom: 72px;
}
.hero-copy {
  max-width: 720px;
}
.hero-title {
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-top: 6px;
}
.hero-title .line {
  display: inline;
}
.hero-title .line:first-child::after {
  content: '\A';
  white-space: pre;
}
.hero-copy .lead {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--text-2);
  max-width: 54ch;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 32px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-facts .i {
  color: var(--faint);
}
.btn-glow {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 10px 40px -8px rgba(56, 182, 255, 0.65), 0 0 0 6px rgba(77, 107, 255, 0.14);
}

/* ── Vorschau-Bühne ───────────────────────────────────────────────────── */

.pg-stage {
  margin-top: clamp(56px, 9vh, 96px);
}
.pg-stage:fullscreen {
  display: flex;
  flex-direction: column;
  padding: 24px;
  margin: 0;
  background: var(--bg);
}
.pg-stage:fullscreen .pg-app {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pg-stage:fullscreen .app-body {
  height: auto;
  flex: 1;
}
.pg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.pg-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
}
.pg-live > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b2);
  animation: live 2s infinite;
}
@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(56, 182, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0);
  }
}
.pg-live .muted {
  font-weight: 400;
}
.pg-drive {
  display: none;
  margin-left: 10px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  color: #07080b;
  background: var(--grad);
  border-radius: 999px;
}
.pg-bar.is-driving .pg-drive {
  display: inline-block;
  animation: pop 0.3s var(--ease);
}
.pg-tools {
  display: flex;
  gap: 4px;
}
.pg-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.pg-tools button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.pg-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}
.pg-hints span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pg-app {
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px -40px rgba(77, 107, 255, 0.45);
}
.pg-app .app-body {
  grid-template-columns: 186px minmax(0, 1fr) 236px;
  height: clamp(480px, 50vw, 640px);
}
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 7px;
}
.app-chip:hover {
  background: rgba(255, 255, 255, 0.05);
}
.app-chip .i {
  font-size: 13px;
}
.app-tab {
  cursor: pointer;
}
.app-tab:hover {
  color: var(--text);
}
.app-ic.has-badge {
  display: inline-flex;
  cursor: pointer;
}
.app-ic.has-badge b {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font: 700 9px/14px var(--font);
  text-align: center;
  color: #07080b;
  background: var(--warn);
  border-radius: 999px;
}
.pg-app .side-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.pg-app .side-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.side-lanes {
  min-height: 0;
  overflow: hidden;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tool-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.tool-btn .i {
  font-size: 12px;
}
.tool-btn b {
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font: 700 9px/14px var(--font);
  text-align: center;
  color: #07080b;
  background: var(--warn);
  border-radius: 999px;
}
.tool-btn.is-accent {
  color: #ffd78a;
  border-color: rgba(245, 184, 61, 0.35);
  background: rgba(245, 184, 61, 0.08);
}
.tool-docks {
  display: flex;
  gap: 2px;
}
.tool-dock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 7px;
  font-size: 11px;
  color: var(--faint);
}
.tool-dock .i {
  font-size: 12px;
}
.pg-app .tool-right {
  display: flex;
  gap: 6px;
}
.pg-status {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 28px;
  padding: 0 12px;
  font-size: 11px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}
.pg-status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pg-status .i {
  font-size: 12px;
}
.pg-status .s-needs {
  color: var(--warn);
  font-weight: 600;
}
.pg-status .s-work {
  color: var(--ink-accent);
}
.pg-status .s-done {
  color: var(--ok);
}
.pg-status .s-mem {
  margin-left: auto;
}
.pg-app .grid-area {
  position: relative;
}
.pgrid.is-easing {
  transition: grid-template-columns 0.35s var(--ease), grid-template-rows 0.35s var(--ease);
}
.pgrid.is-max {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
}
.pg-pane.is-hidden {
  display: none;
}
.pg-pane {
  cursor: text;
}
.pane-acts {
  display: flex;
  gap: 2px;
  margin-left: 4px;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.pg-pane:hover .pane-acts,
.pg-pane.is-focus .pane-acts {
  opacity: 1;
}
.pane-acts button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  border-radius: 5px;
}
.pane-acts button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.pane-acts .i {
  font-size: 12px;
}
.pg-pane .pane-state {
  margin-left: 0;
}
.pg-pane .pane-head {
  gap: 7px;
}
.pg-pane .pane-lane {
  margin-left: auto;
}
.pane-input {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 0;
  padding: 0 10px;
  overflow: hidden;
  font: 400 11px var(--mono);
  color: var(--b1);
  border-top: 1px solid transparent;
  transition: height 0.2s var(--ease), border-color 0.2s;
}
.pg-pane.is-focus .pane-input,
.pg-pane:hover .pane-input {
  height: 30px;
  border-top-color: var(--line);
}
.pane-input input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
}
.pane-input input::placeholder {
  color: var(--faint);
}
.ln.err {
  color: var(--err);
}
.ln.err::before {
  content: '✗ ';
}
.seams {
  position: absolute;
  inset: 8px;
  pointer-events: none;
}
.seam {
  position: absolute;
  pointer-events: auto;
  z-index: 3;
  outline: none;
}
.seam::after {
  content: '';
  position: absolute;
  border-radius: 3px;
  background: var(--b2);
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 0 10px var(--b2);
}
.seam-v {
  top: 0;
  bottom: 0;
  width: 12px;
  margin-left: -6px;
  cursor: col-resize;
}
.seam-v::after {
  left: 5px;
  width: 2px;
  top: 30%;
  bottom: 30%;
}
.seam-h {
  left: 0;
  right: 0;
  height: 12px;
  margin-top: -6px;
  cursor: row-resize;
}
.seam-h::after {
  top: 5px;
  height: 2px;
  left: 30%;
  right: 30%;
}
.seam:hover::after,
.seam:focus-visible::after,
.seam.is-drag::after {
  opacity: 1;
}
.pg-bc {
  cursor: text;
}
.bc-input {
  flex: 1;
  min-width: 0;
  font: 400 11.5px var(--mono);
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
}
.bc-input::placeholder {
  color: var(--faint);
}
.pg-toast {
  width: 290px;
  bottom: 64px;
  right: 252px;
}
.pg-toast.is-on {
  pointer-events: auto;
}
.toast-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.toast-actions .mini-btn {
  height: 26px;
  font-size: 11.5px;
}
.app-dash {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 10px;
  background: #0b0d12;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
}
.dash-head span {
  margin-left: auto;
  font-weight: 400;
  color: var(--faint);
  font-size: 11px;
}
.dash-head .i {
  font-size: 13px;
  color: var(--b2);
}
.dash-label {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.dash-label.needs {
  color: var(--warn);
}
.dash-label.working {
  color: var(--ink-accent);
}
.dash-label.done {
  color: var(--ok);
}
.dash-item {
  display: flex;
  gap: 9px;
  width: 100%;
  padding: 7px 6px;
  text-align: left;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.dash-item > i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
}
.dash-item span {
  min-width: 0;
}
.dash-item b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}
.dash-item small {
  display: block;
  font: 400 10.5px var(--mono);
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg-flash {
  position: absolute;
  left: 50%;
  top: 56px;
  z-index: 6;
  transform: translateX(-50%);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
  background: rgba(20, 23, 30, 0.96);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.4s, transform 0.4s;
}
.pg-flash.is-out {
  opacity: 0;
  transform: translate(-50%, -6px);
}
.pg-demo {
  flex: 1;
  min-height: 0;
  height: 100%;
}
.pg-app .pg-demo.demo {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  background: #090b0f;
}

/* Unterhaltung (Agent/Chat) */
.conv {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.conv-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
}
.conv-item {
  display: flex;
  gap: 9px;
  padding: 8px;
  text-align: left;
  border-radius: 8px;
}
.conv-item.is-active {
  background: rgba(255, 255, 255, 0.05);
}
.conv-item > i {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
}
.conv-item b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.conv-item small {
  display: block;
  font-size: 11px;
  color: var(--faint);
}
.conv-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.conv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.conv-head b {
  display: block;
  font-size: 13px;
}
.conv-head small {
  font-size: 11px;
  color: var(--faint);
}
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.seg button {
  height: 22px;
  padding: 0 9px;
  font-size: 11px;
  color: var(--muted);
  border-radius: 6px;
}
.seg button.is-on {
  color: var(--text);
  background: var(--raised-2);
}
.conv-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  scrollbar-width: thin;
}
.msg {
  max-width: 82%;
  font-size: 12.5px;
  line-height: 1.6;
  animation: ln-in 0.3s var(--ease);
}
.msg code {
  font: 500 11.5px var(--mono);
  padding: 1px 5px;
  background: var(--raised-2);
  border-radius: 5px;
}
.msg-me {
  align-self: flex-end;
  padding: 9px 13px;
  background: rgba(77, 107, 255, 0.16);
  border: 1px solid rgba(77, 107, 255, 0.3);
  border-radius: 12px 12px 4px 12px;
}
.msg-ai {
  align-self: flex-start;
  color: var(--text-2);
}
.msg-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.tool-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font: 500 10.5px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  animation: ln-in 0.3s var(--ease);
}
.tool-call .i {
  font-size: 11px;
  color: var(--b2);
}
.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.msg-actions .mini-btn {
  height: 24px;
  font-size: 11px;
}
.mini-diff {
  margin-top: 8px;
  font: 400 10.5px/1.6 var(--mono);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.mini-diff .d {
  padding: 0 10px;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-diff .add {
  color: #8fe6b3;
  background: rgba(61, 214, 140, 0.08);
}
.mini-diff .del {
  color: #f1a3a3;
  background: rgba(242, 109, 109, 0.08);
}
.mini-diff .ctx {
  color: var(--faint);
}
.conv-input {
  display: flex;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 6px 6px 6px 12px;
  background: #0d0f15;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.conv-input input {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  background: none;
  border: 0;
  outline: none;
}

@media (max-width: 1100px) {
  .pg-app .app-body {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .app-dash {
    display: none;
  }
  .pg-toast {
    right: 14px;
  }
  .tool-docks {
    display: none;
  }
}
@media (max-width: 960px) {
  .pg-app .app-body {
    grid-template-columns: minmax(0, 1fr);
    height: 520px;
  }
  .conv {
    grid-template-columns: minmax(0, 1fr);
  }
  .conv-side {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero-v2-inner {
    padding-top: 44px;
  }
  .hero-title {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }
  .pg-app .app-body {
    height: 460px;
  }
  .layout-chip[data-n='6'],
  .layout-chip[data-n='9'],
  .layout-chip[data-n='12'],
  .layout-chip[data-n='16'],
  .app-chip,
  .pg-status .s-mem,
  .pg-hints {
    display: none;
  }
  .pg-app .tool-right .tool-btn:first-child {
    display: none;
  }
  .pg-bar .muted,
  .pg-tools button:last-child {
    display: none;
  }
}

/* Werkzeugleiste und Pane-Köpfe passen sich der eigenen Breite an */
.pg-app .app-main {
  container-type: inline-size;
}
.pg-pane {
  container-type: inline-size;
}
@container (max-width: 980px) {
  .tool-docks {
    display: none;
  }
}
@container (max-width: 560px) {
  .pg-app .tool-right .tool-btn:first-child {
    display: none;
  }
  .pg-app [data-attn] {
    display: none;
  }
}
@container (max-width: 250px) {
  .pg-pane .pane-lane {
    display: none;
  }
  .pg-pane .pane-acts {
    margin-left: auto;
  }
}

/* ── Scale-Story (v4): Zeichen aus Glas → Raster aus echten CLI-Sitzungen ─────
   Licht nur in den Fugen (WebGL über die ganze Bühne, assets/js/scale.js); links Zahl + Kapitel-Rad,
   stufenlos an die Scrollposition gekoppelt. */

.scale {
  position: relative;
  height: 460vh;
}
.scale-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sx-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.sx-gl.is-on {
  opacity: 1;
}
.scale-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 56px;
  align-items: center;
  width: 100%;
}
.scale-copy {
  position: relative;
  min-width: 0;
}
.sx-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Rollende Zahl: alle Stufen untereinander, scale.js schiebt sie stufenlos durch das Fenster */
.sx-count {
  --rh: clamp(5.4rem, 10vw, 8.6rem);
  position: relative;
  height: var(--rh);
  margin-top: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.sx-roll {
  will-change: transform;
}
.sx-rv {
  display: flex;
  align-items: baseline;
  gap: 16px;
  height: var(--rh);
  white-space: nowrap;
}
.sx-rv b {
  font-size: var(--rh);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  padding-right: 0.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sx-rv span {
  font-size: 18px;
  color: var(--muted);
}

/* Kapitel-Rad: das aktive Kapitel steht im Fokus (Leiste links), die anderen gleiten gedimmt vorbei */
.sx-wheel {
  --wh: clamp(250px, 37vh, 320px);
  position: relative;
  height: var(--wh);
  margin-top: 20px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 66%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 66%, transparent 100%);
}
.sx-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sx-item {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding-left: 22px;
  will-change: transform, opacity;
}
.sx-hd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 9px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sx-hd:focus-visible {
  outline: 2px solid var(--b2);
  outline-offset: 2px;
  border-radius: 6px;
}
.sx-hd b {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.sx-hd:hover b,
.sx-item.is-on .sx-hd b {
  color: #fff;
}
.sx-i {
  flex: none;
  width: 18px;
  font: 600 11px var(--mono);
  color: var(--faint);
  transition: color 0.4s var(--ease);
}
.sx-item.is-on .sx-i {
  color: var(--ink-accent);
}
.sx-t {
  margin: 0;
  padding: 0 0 14px 30px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.sx-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.sx-lens {
  position: absolute;
  left: -0.5px;
  top: 0;
  width: 2px;
  height: 40px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--b1), var(--b2) 45%, var(--b3) 80%, var(--b4));
  box-shadow: 0 0 14px rgba(56, 182, 255, 0.5);
}
.sx-lens::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(90deg, rgba(120, 190, 255, 0.06), transparent);
  pointer-events: none;
}

/* Bühne */
.scale-stage {
  position: relative;
  height: min(70vh, 640px);
}
.sx-seams {
  position: absolute;
  left: -44px;
  top: -44px;
  pointer-events: none;
}
.scale.has-gl .sx-seams,
.scale.has-gl .sp-core {
  display: none;
}
/* Im Zeichen laufen noch keine Sitzungen: Hinweis erst ab dem Raster */
.scale .sx-note {
  transition: opacity 0.5s var(--ease);
}
.scale[data-st='0'] .sx-note {
  opacity: 0;
}
.scale-board {
  position: absolute;
  inset: 0;
}

/* Pane */
.sp {
  --logo: 1;
  --glow: 56, 182, 255;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  /* Im Zeichen durchsichtig: das Glas zeichnet der Shader darunter; im Raster dunkel für die Sitzung */
  background: rgba(10, 12, 17, calc(0.97 * (1 - var(--logo))));
  will-change: transform, width, height;
  isolation: isolate;
}
.scale.no-gl .sp {
  background: #0b0d12;
}
.sp-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 1px;
  background:
    linear-gradient(135deg, #45f0c9 0%, #38b6ff 40%, #4d6bff 75%, #9b5cff 100%);
  background-size: var(--gs, 100% 100%);
  background-position: var(--gp, 0 0);
  background-repeat: no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: calc(0.34 * (1 - var(--logo)));
  transition: opacity 0.4s;
}
.scale.no-gl .sp-edge {
  opacity: 0.55;
}
.sp-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: calc(1 - var(--logo));
}
.sp-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.sp-head b {
  flex: none;
  font-weight: 600;
  color: var(--text);
}
.sp-head em {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
  color: var(--muted);
}
.sp-chips {
  display: flex;
  gap: 5px;
  flex: none;
}
.sp-chip {
  display: none;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  font: 500 10px var(--mono);
  color: #b8c2d4;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: sx-chip 0.5s var(--ease) both;
}
.sp-chip svg {
  color: var(--b2);
}
.scale:not([data-st='0']) .sp-head em {
  display: none;
}
.scale:not([data-st='0']) .sp-chips {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.scale:not([data-st='0']) .sp-chip[data-k='br'],
.scale:is([data-st='2'], [data-st='3'], [data-st='4']) .sp-chip[data-k='cp'] {
  display: inline-flex;
}
@keyframes sx-chip {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.9);
  }
}
.sp-state {
  flex: none;
  height: 17px;
  padding: 0 7px;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 17px;
  border-radius: 999px;
  color: var(--ink-accent);
  background: rgba(56, 182, 255, 0.12);
}
.sp-state[data-s='done'] {
  color: var(--ok);
  background: var(--ok-soft);
}
.sp-state[data-s='needs'],
.sp-state[data-s='paused'] {
  color: var(--warn);
  background: var(--warn-soft);
}
.sp-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  bottom: 0;
  overflow: hidden;
  opacity: calc(1 - var(--logo));
}
.sp.is-s .sp-head {
  height: 22px;
  gap: 5px;
  padding: 0 7px;
  font-size: 10px;
}
.sp.is-s .sp-body {
  top: 22px;
}
.sp.is-s .sp-head em,
.sp.is-s .sp-chips {
  display: none;
}
.sp.is-s .sp-state {
  margin-left: auto;
  height: 14px;
  padding: 0 5px;
  font-size: 8.5px;
  line-height: 14px;
}
.sp.is-xs .sp-state {
  display: none;
}

/* Zustände */
.sp[data-s='needs'] {
  animation: sx-needs 1.6s ease-in-out infinite;
}
.sp[data-s='needs'] .sp-edge,
.sp[data-s='paused'] .sp-edge {
  background: var(--warn);
  opacity: 0.85;
}
/* Puls nur innen: nichts glüht über die Kante in die Fugen */
@keyframes sx-needs {
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(245, 184, 61, 0.5),
      inset 0 0 30px rgba(245, 184, 61, 0.16);
  }
}
.sp::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.sp.is-cp::after {
  animation: sx-cp 0.9s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(var(--glow), 1), inset 0 0 26px rgba(var(--glow), 0.35);
}
.sp.is-rw::after {
  animation: sx-cp 1.2s var(--ease);
  box-shadow: inset 0 0 0 2px #9b5cff, inset 0 0 40px rgba(155, 92, 255, 0.45);
}
@keyframes sx-cp {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.sp-toast {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 16px);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  color: #dfe5f5;
  background: rgba(16, 18, 28, 0.92);
  border: 1px solid rgba(140, 160, 235, 0.35);
  box-shadow: 0 10px 30px -10px rgba(77, 107, 255, 0.35);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.sp-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sp-veil {
  position: absolute;
  z-index: 3;
  inset: 22px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  text-align: center;
  font-size: 10.5px;
  color: var(--warn);
  background: rgba(8, 9, 13, 0.74);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.sp-veil b {
  font-size: 11px;
  color: var(--text);
}
.sp-veil span {
  color: var(--muted);
}
.sp.is-paused .sp-veil {
  opacity: 1;
}
.sp.is-paused .tm {
  filter: grayscale(0.7) brightness(0.8);
}
.sp-core {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  border-radius: 28%;
  background: #fff;
  box-shadow:
    0 0 18px rgba(205, 240, 255, 0.95),
    0 0 60px rgba(56, 182, 255, 0.7);
  animation: sx-core 3.2s ease-in-out infinite;
}
@keyframes sx-core {
  50% {
    box-shadow:
      0 0 26px rgba(205, 240, 255, 1),
      0 0 90px rgba(56, 182, 255, 0.85);
  }
}

/* Terminal: feste Spaltenzahl, auf die Pane-Breite skaliert */
.tm {
  --sh0: #9aa0ab;
  --sh1: #ffffff;
  position: absolute;
  left: 0;
  top: 0;
  width: 52ch;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  transform-origin: 0 0;
  font: 400 12px/1.45 var(--mono);
  font-variant-ligatures: none;
  color: #d9dce3;
  background: #0b0d12;
}
/* Inline wie die echten CLIs: Ausgabe beginnt oben, die Eingabe folgt direkt darunter;
   erst wenn es voll ist, läuft der Verlauf oben heraus. */
.tm-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tm-scroll > *,
.tm-foot {
  flex: none;
}
.tm-foot [hidden] {
  display: none !important;
}
.tm .l {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 1.45em;
}
.tm .g {
  margin-top: 0.7em;
}
.tm .hi {
  padding-left: 2ch;
  text-indent: -2ch;
}
.tm .hr {
  padding-left: 5ch;
  text-indent: -5ch;
}
.tm .hr4 {
  padding-left: 4ch;
  text-indent: -4ch;
}
.tm b {
  font-weight: 700;
  color: #fff;
}
.tm s {
  text-decoration-thickness: 1px;
}
.tm .dm {
  color: #8b909b;
}
.tm .ok {
  color: #4eba65;
}
.tm .err {
  color: #ff6b80;
}
.tm .gl {
  color: #8b909b;
}
.tm .d {
  transition: opacity 0.5s, background-color 0.5s;
}
.tm .da {
  background: #225c2b;
}
.tm .dr {
  background: #7a2936;
}
.tm .d.rw {
  opacity: 0.32;
  background: transparent;
  text-decoration: line-through;
}
.cur {
  display: inline-block;
  width: 1ch;
  height: 1.2em;
  margin-left: 1px;
  vertical-align: -0.22em;
  background: #d9dce3;
  animation: sx-blink 1.05s steps(1) infinite;
}
@keyframes sx-blink {
  50% {
    opacity: 0;
  }
}
.shim {
  background: linear-gradient(90deg, var(--sh0) 0 38%, var(--sh1) 50%, var(--sh0) 62% 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sx-shim 2.2s linear infinite;
}
@keyframes sx-shim {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}

/* Claude Code (dunkles Theme) */
.tm-claude {
  --sh0: #d77757;
  --sh1: #ffd0bd;
}
.tm-claude .ic,
.cc-pt {
  color: #b1b9f9;
}
.cc-m,
.cc-sp {
  color: #d77757;
}
.cc-dot {
  color: #e8e8e8;
}
.cc-dot.ok {
  color: #4eba65;
}
.cc-dot.err {
  color: #ff6b80;
}
.cc-dot.run {
  color: #8b909b;
  animation: sx-blink 0.9s steps(1) infinite;
}
.cc-user {
  color: #c9ccd3;
  background: rgba(255, 255, 255, 0.07);
}
.cc-sp {
  margin-top: 0.7em;
}
.cc-in {
  margin-top: 0.6em;
  padding: 1px 0;
  border-top: 1px solid #4a4f5a;
  border-bottom: 1px solid #4a4f5a;
  white-space: pre-wrap;
}
.cc-mode {
  padding-left: 2ch;
}
.cc-acc {
  color: #af87ff;
}
.cc-perm {
  margin-top: 0.6em;
  padding: 2px 1ch 3px;
  border: 1px solid #b1b9f9;
  border-radius: 7px;
}
.is-pick .pk {
  background: rgba(177, 185, 249, 0.2);
}

/* Codex */
.tm-codex .ic {
  color: #7fd4f5;
}
.cx-box {
  display: inline-block;
  padding: 2px 1.5ch 3px 1ch;
  border: 1px solid #4a4f5a;
  border-radius: 6px;
  white-space: pre;
}
.cx-um {
  color: #c9ccd3;
  background: rgba(255, 255, 255, 0.07);
}
.cx-c,
.cx-cmd {
  color: #7fd4f5;
}
.cx-sp {
  color: #9aa0ab;
}
.cx-rule {
  white-space: nowrap !important;
  overflow: hidden;
}
.tm-codex .da {
  background: transparent;
  color: #5fd38d;
}
.tm-codex .dr {
  background: transparent;
  color: #ff7d8f;
}
.cx-in {
  margin-top: 0.6em;
  padding: 3px 1ch;
  background: rgba(255, 255, 255, 0.07);
  white-space: pre-wrap;
}
.cx-ft,
.gm-ft {
  display: flex;
  justify-content: space-between;
  gap: 2ch;
  padding: 0 1ch;
}
.gm-ft > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cx-perm {
  margin-top: 0.6em;
  padding-left: 1ch;
  border-left: 2px solid #7fd4f5;
}
.cx-perm.is-pick .pk,
.is-pick .pk {
  background: rgba(127, 212, 245, 0.18);
}

/* Gemini CLI */
.tm-gemini {
  --sh0: #8ab4f8;
  --sh1: #e6dcff;
}
.tm-gemini .ic,
.gm-acc,
.gm-model {
  color: #c4a7ff;
}
.gm-star {
  color: #a88bfa;
}
.gm-user {
  color: #8b909b;
}
.gm-tool {
  padding: 2px 1ch 3px;
  border: 1px solid #4a4f5a;
  border-radius: 6px;
}
.gm-st {
  color: #8ab4f8;
}
.tm-gemini .da {
  background: rgba(78, 186, 101, 0.2);
}
.tm-gemini .dr {
  background: rgba(255, 107, 128, 0.2);
}
.gm-sp {
  color: #8ab4f8;
}
.gm-in {
  margin-top: 0.3em;
  padding: 2px 1ch;
  border: 1px solid #8ab4f8;
  border-radius: 6px;
  white-space: pre-wrap;
}
.gm-path {
  color: #8ab4f8;
}

/* Aider */
.ad-u {
  color: #5fd38d;
}
.ad-c {
  color: #e5c07b;
}
.ad-kr {
  color: #8ab4f8;
}
.tm-aider .da {
  background: transparent;
  color: #5fd38d;
}
.tm-aider .dr {
  background: transparent;
  color: #ff7d8f;
}

/* Karten je Stufe */
.sx-cards {
  position: absolute;
  z-index: 6;
  right: -40px;
  bottom: -30px;
  width: 292px;
  pointer-events: none;
}
.sx-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 14px 14px 8px;
  border-radius: 22px;
  /* Liquid Glass: helle Tönung oben, kaum Eigenfarbe, starke Unschärfe dahinter */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035) 46%, rgba(255, 255, 255, 0.02)),
    rgba(16, 18, 26, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 28px 64px -28px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  filter: blur(5px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), filter 0.45s var(--ease);
  pointer-events: none;
}
/* Glaskante: weißes Licht oben links und unten rechts, an den Seiten fast unsichtbar */
.sx-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.07) 30%, rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0.14));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sx-card.is-on {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}
.sx-ch {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  font-size: 12.5px;
}
.sx-ch svg {
  color: rgba(255, 255, 255, 0.62);
  flex: none;
}
.sx-ch b {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sx-ch > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.sx-rows {
  display: grid;
  margin-top: 8px;
}
.sx-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 2px;
  font-size: 11.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: sx-row 0.45s var(--ease) both;
}
@keyframes sx-row {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.sx-row > i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
}
.sx-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 10.5px var(--mono);
  color: #c9d1e0;
}
.sx-ds {
  flex: none;
  font: 600 10.5px var(--mono);
}
.sx-ds em {
  font-style: normal;
}
.sx-ds .ok,
.sx-n {
  color: var(--ok);
}
.sx-ds .err {
  color: #ff7d8f;
}
.sx-n {
  font: 600 10.5px var(--mono);
  font-style: normal;
  color: #c9d1e0;
  font-variant-numeric: tabular-nums;
}
.sx-mini {
  padding: 6px 2px;
}
.sx-mini b {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sx-x {
  flex: none;
  font: 500 10.5px var(--mono);
  color: var(--muted);
}
.sx-mini .sx-n {
  flex: none;
  min-width: 46px;
  text-align: right;
}
.sx-id {
  flex: none;
  font: 600 10.5px var(--mono);
  color: var(--ink-accent);
}
.sx-f {
  display: grid;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}
.sx-f b,
.sx-f span,
.sx-att b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sx-f b {
  font-weight: 600;
}
.sx-f span {
  font-size: 10.5px;
  color: var(--muted);
}
.sx-row.is-rw .sx-f b {
  text-decoration: line-through;
  color: var(--muted);
}
.sx-att {
  align-items: center;
}
.sx-att > div {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 1px;
}
.sx-att b {
  font-weight: 600;
}
.sx-li {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--warn);
  background: rgba(245, 184, 61, 0.12);
}
/* Glas-Kapseln; die Hauptaktion ist hell, alles andere durchsichtig */
.sx-btn {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  font: 600 11px/1 inherit;
  font-family: inherit;
  color: #0c0e14;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s var(--ease), background 0.2s;
}
.sx-btn:hover {
  background: #fff;
}
.sx-btn.ghost {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.sx-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.sx-btn.is-press {
  transform: scale(0.94);
}
.sx-badge {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 600 10.5px var(--mono);
  color: var(--warn) !important;
  background: rgba(245, 184, 61, 0.12);
}
.sx-big {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 12px;
  padding: 0 2px 4px;
}
.sx-big b {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.sx-big span {
  font-size: 12px;
  color: var(--muted);
}
.sx-big em {
  margin-left: auto;
  font: 500 11px var(--mono);
  font-style: normal;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sx-empty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.sx-empty svg {
  color: var(--ok);
}
.sx-note {
  position: absolute;
  left: 0;
  bottom: -32px;
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .scale {
    height: 400vh;
  }
  .scale-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sx-title {
    font-size: 1.3rem;
  }
  .sx-count {
    --rh: 4.2rem;
    margin-top: 6px;
  }
  .sx-rv span {
    font-size: 15px;
  }
  .sx-wheel {
    --wh: 128px;
    margin-top: 4px;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
  }
  .sx-hd b {
    font-size: 16.5px;
  }
  .sx-t {
    font-size: 14px;
    padding-bottom: 10px;
  }
  .scale-stage {
    height: min(42vh, 400px);
  }
  .sx-cards {
    right: 6px;
    bottom: -22px;
    width: min(280px, 82%);
  }
  .sx-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sx-gl {
    transition: none;
  }
  .sp-core,
  .sp[data-s='needs'],
  .shim,
  .cur {
    animation: none;
  }
}

/* ── Seiten-Hero und CTA mit Windrad ──────────────────────────────────── */

.page-hero.has-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero.has-bg::before {
  display: none;
}
.page-bg {
  z-index: -2;
}
.page-bg-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, var(--bg)), linear-gradient(90deg, rgba(7, 8, 11, 0.9) 0%, rgba(7, 8, 11, 0.6) 40%, transparent 72%);
}
.page-hero.is-center .page-bg-fade {
  background: linear-gradient(to bottom, transparent 60%, var(--bg)), radial-gradient(ellipse 46% 52% at 50% 46%, rgba(7, 8, 11, 0.86), rgba(7, 8, 11, 0.4) 70%, transparent);
}
.cta-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
  border-radius: inherit;
}
.cta-bg.is-ready {
  opacity: 1;
}
.cta-bg.is-ready ~ .cta-grid {
  opacity: 0.35;
}
@media (max-width: 640px) {
  .page-bg-fade {
    background: linear-gradient(to bottom, rgba(7, 8, 11, 0.2), rgba(7, 8, 11, 0.75) 60%, var(--bg));
  }
}

/* ── Filme: Galerie ───────────────────────────────────────────────────── */

.films-sec .section-head {
  margin-bottom: 44px;
}
.fp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}
/* sanftes Licht hinter dem Player */
.fp::before {
  content: '';
  position: absolute;
  inset: 8% 30% 12% 4%;
  z-index: -1;
  background: radial-gradient(60% 60% at 40% 50%, rgba(77, 107, 255, 0.28), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.fp-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 30px 90px -50px rgba(77, 107, 255, 0.45);
}
.fp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07080b;
}
.fp-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.fp-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #07080b;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.fp-toggle .i {
  font-size: 28px;
}
.fp-ic-pause {
  display: none;
}
.fp.is-playing .fp-toggle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}
.fp.is-playing .fp-stage:hover .fp-toggle,
.fp-toggle:focus-visible {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
}
.fp.is-playing .fp-ic-play {
  display: none;
}
.fp.is-playing .fp-ic-pause {
  display: block;
}
.fp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.fp-bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
}
.fp.is-missing .fp-video {
  opacity: 0;
}
/* Infozeile unter dem Bild */
.fp-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px 22px 20px;
}
.fp-idx {
  align-self: start;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 2px;
  font: 500 12px var(--mono);
  color: var(--faint);
}
.fp-idx b {
  font: 600 22px/1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--text);
}
.fp-desc {
  min-width: 0;
}
.fp-desc .fp-k {
  display: block;
  margin-bottom: 4px;
  font: 500 11.5px var(--mono);
  color: var(--ink-accent);
}
.fp-desc b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.fp-desc p {
  margin: 4px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.fp-desc.is-in > * {
  animation: fp-in 0.5s var(--ease) both;
}
.fp-desc.is-in > :nth-child(2) {
  animation-delay: 0.04s;
}
.fp-desc.is-in > :nth-child(3) {
  animation-delay: 0.08s;
}
@keyframes fp-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.fp-full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.fp-full:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
/* Kapitel: Liste so hoch wie der Player, scrollt in sich */
.fp-side {
  position: relative;
  min-height: 320px;
}
.fp-list {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 2px 4px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  /* unten weich ausblenden: zeigt, dass die Liste weitergeht; Abstand, damit das letzte Kapitel frei steht */
  padding-bottom: 36px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
}
.fp-ch {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px;
  text-align: left;
  border-radius: 14px;
  transition: background 0.2s;
}
.fp-ch:hover {
  background: rgba(255, 255, 255, 0.04);
}
.fp-ch.is-on {
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.fp-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07080b;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.fp-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.25s, transform 0.4s var(--ease);
}
.fp-ch:hover .fp-thumb img,
.fp-ch.is-on .fp-thumb img {
  opacity: 1;
}
.fp-ch:hover .fp-thumb img {
  transform: scale(1.04);
}
.fp-p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(7, 8, 11, 0.6);
  opacity: 0;
}
.fp-ch.is-on .fp-p,
.fp-ch.is-seen .fp-p {
  opacity: 1;
}
.fp-p i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.fp-t {
  min-width: 0;
}
.fp-t b {
  display: block;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-t small {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  font: 500 11px var(--mono);
  color: var(--faint);
  white-space: nowrap;
}
.fp-ch.is-on .fp-t small,
.fp-ch.is-on .fp-n {
  color: var(--ink-accent);
}
.films-more {
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .fp {
    grid-template-columns: minmax(0, 1fr);
  }
  .fp::before {
    inset: 4% 10% 30%;
  }
  .fp-side {
    min-width: 0;
    min-height: 0;
  }
  .fp-list {
    position: static;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 0 8px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .fp-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .fp-ch {
    width: 196px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 6px 6px 10px;
  }
}
@media (max-width: 640px) {
  .fp-toggle {
    width: 58px;
    height: 58px;
  }
  .fp-info {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    padding: 14px 16px 16px;
  }
  .fp-idx {
    display: none;
  }
  .fp-full span {
    display: none;
  }
  .fp-full {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .fp-desc b {
    font-size: 16px;
  }
  .fp-desc p {
    font-size: 13.5px;
  }
  .fp-ch {
    width: 168px;
  }
}

/* Knopf mit Laufzeit */
.btn-meta {
  margin-left: 4px;
  font: 500 12px var(--mono);
  color: var(--faint);
}

/* ── Filme: Karten ────────────────────────────────────────────────────── */

.film-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 20px;
}
.film-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.film-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  overflow: hidden;
  background: #0b0d12;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}
.film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.film-card:hover .film-thumb img {
  transform: scale(1.03);
}
.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #07080b;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.film-play .i {
  font-size: 20px;
}
.film-card:hover .film-play,
.film-card:focus-visible .film-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.film-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 7px;
  font: 500 11px var(--mono);
  background: rgba(7, 8, 11, 0.7);
  border-radius: 6px;
}
.film-k {
  font: 500 12px var(--mono);
  color: var(--ink-accent);
}
.film-card b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.film-blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 960px) {
  .film-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .film-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Filme: Vollbild-Player ───────────────────────────────────────────── */

html.has-dialog {
  overflow: hidden;
}
.film-dlg {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
.film-dlg[hidden] {
  display: none;
}
.film-dlg-back {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s;
}
.film-dlg-panel {
  position: relative;
  width: min(1280px, 100%);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s, transform 0.3s var(--ease);
}
.film-dlg.is-open .film-dlg-back,
.film-dlg.is-open .film-dlg-panel {
  opacity: 1;
}
.film-dlg.is-open .film-dlg-panel {
  transform: none;
}
.film-dlg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.film-dlg-k {
  font: 500 12px var(--mono);
  color: var(--ink-accent);
}
.film-dlg-t {
  font-size: 17px;
  font-weight: 600;
}
.film-dlg-n {
  margin-left: auto;
  font: 500 12px var(--mono);
  color: var(--faint);
}
.film-dlg-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07080b;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
}
.film-dlg-blurb {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .film-dlg {
    padding: 12px;
  }
  .film-dlg-t {
    font-size: 15px;
  }
  .film-dlg-n {
    display: none;
  }
}

/* ── Interaktive Demos ────────────────────────────────────────────────── */

.demo-hint,
.demo-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.demo-hint {
  color: var(--ink-accent);
}
.demo-hint .i,
.demo-replay .i {
  font-size: 12px;
}
.demo-hint + .demo-replay + .pill,
.demo-hint ~ .pill {
  margin-left: 10px;
}
.demo-replay {
  display: none;
  height: 24px;
  padding: 0 9px;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  transition: background 0.2s;
}
.demo-replay:hover {
  background: rgba(255, 255, 255, 0.06);
}
.demo.is-manual .demo-hint {
  display: none;
}
.demo.is-manual .demo-replay {
  display: inline-flex;
}
.demo.is-interactive .cp {
  cursor: pointer;
}
.demo.is-interactive .cp:hover {
  background: rgba(255, 255, 255, 0.035);
}
.wf-approve {
  margin-left: auto;
  animation: pop 0.3s var(--ease);
}
.wf-approve[hidden] {
  display: none;
}
.say-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 560px;
  margin: 4px auto 0;
}
.say-chip {
  height: 28px;
  padding: 0 11px;
  font: 500 11.5px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.say-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.say-chip.is-on {
  color: #07080b;
  background: var(--b1);
  border-color: transparent;
}
@container (max-width: 520px) {
  .demo-hint {
    display: none;
  }
}

/* Undo braucht Platz für fünf Schritte und die Dateiliste */
.feature-block .demo[data-demo='undo'] {
  height: 590px;
}
.demo[data-demo='undo'] .demo-body {
  gap: 10px;
}
@media (max-width: 640px) {
  .feature-block .demo[data-demo='undo'] {
    height: 640px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Hero v4 — Rahmen-Architektur am Layout ausgerichtet, transparente Kopfzeile
   ════════════════════════════════════════════════════════════════════════ */

.has-frame .site-header:not(.is-scrolled),
body:has(.frame-bg) .site-header:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.hero-v4 {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
}
.frame-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background: var(--bg);
}
.frame-bg.is-ready,
.frame-bg.no-webgl {
  opacity: 1;
}
.hero-v4-inner {
  max-width: calc(1180px + 2 * var(--gutter));
  padding-top: clamp(64px, 10vh, 112px);
  padding-bottom: 96px;
}
.hero-v4 .hero-copy {
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-accent);
}
.hero-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--b1);
  box-shadow: 0 0 10px var(--b1);
}
.hero-h {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: var(--display-weight);
  font-optical-sizing: auto;
  letter-spacing: var(--display-track);
  line-height: 1;
  color: var(--display-ink);
}
.hero-h .line {
  display: block;
}
.hero-h .w-block {
  display: block;
}
.hero-h2 {
  color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub {
  max-width: 50ch;
  margin: 26px 0 0;
  font-size: clamp(1.04rem, 1.25vw, 1.16rem);
  line-height: 1.6;
  color: #a7adbb;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--faint);
}
.hero-meta i {
  width: 3px;
  height: 3px;
  margin: 0 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.hero-meta b {
  margin-left: 4px;
  color: var(--text);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
/* Hero-Knöpfe: .btn .btn-lg aus site.css (ein Knopf-System für alle Seiten, 11.10.) */

/* Seiten-Heros: Rahmen hinter Kopfzeile und Text */
.page-hero.has-bg {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(96px + var(--header-h));
  padding-bottom: 104px;
}
.page-hero.has-bg h1,
.page-hero.has-bg .lead,
.page-hero.has-bg .eyebrow,
.page-hero.has-bg .btn-row {
  position: relative;
}

/* Demo sitzt in den unteren Logo-Panes; Abstand kommt aus der Logo-Geometrie */
.hero-v4 .pg-stage {
  margin-top: var(--logo-gap, 120px);
}
.hero-v4.logo-tight .hero-h {
  font-size: clamp(2.6rem, 4.3vw, 4.1rem);
}
.hero-v4 .pg-bar {
  margin-bottom: 16px;
}
.hero-v4 .pg-app {
  box-shadow: 0 70px 160px -60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 100px -50px rgba(77, 107, 255, 0.5);
}
.pg-drive {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 0;
  font: 500 12px var(--mono);
  color: var(--b1);
  background: none;
  border-radius: 0;
}
.pg-drive .i {
  font-size: 12px;
}
.pg-bar.is-driving .pg-drive {
  display: inline-flex;
  animation: none;
}

@media (max-width: 640px) {
  .hero-v4-inner {
    padding-top: 44px;
    padding-bottom: 64px;
  }
  .hero-h {
    font-size: clamp(2.5rem, 11.5vw, 3.4rem);
  }
  .hero-meta i:nth-of-type(2),
  .hero-meta i:nth-of-type(2) ~ * {
    display: none;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Kein harter Strich unter dem Hero */
.hero-v4 + .scale {
  border-top: 0;
}
@media (max-width: 640px) {
  .page-hero.has-bg {
    padding-top: calc(56px + var(--header-h));
    padding-bottom: 80px;
  }
}

@media (max-width: 759px) {
  .hero-v4-inner {
    padding-top: var(--logo-space, 44px);
  }
  .hero-v4 .pg-stage {
    margin-top: 56px;
  }
  .page-hero.has-logo > .wrap {
    padding-top: var(--logo-space, 0px);
  }
}

/* Video Studio v2: der Schnittplatz braucht Höhe für Bühne + Timeline */
.feature-block .demo[data-demo='video'] {
  height: 620px;
}

/* ── Voice (Start, v2): Konsole wie in der App + Vorschau, die jeden Befehl ausführt (assets/js/voice-home.js) ── */

.vx-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.vx-h {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: var(--display-weight);
  line-height: 1.04;
  letter-spacing: var(--display-track);
  color: var(--display-ink);
}
.vx-lead {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.vx {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  margin-top: 48px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow:
    0 40px 120px -50px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vx::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -12%;
  top: -35%;
  width: 62%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(56, 182, 255, 0.1), rgba(155, 92, 255, 0.04) 55%, transparent 75%);
  pointer-events: none;
}

/* Konsole */
.vx-con {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.vx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vx-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.vx-seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.vx-seg button svg {
  width: 13px;
  height: 13px;
}
.vx-seg button:hover {
  color: var(--text);
}
.vx-seg button.is-on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.vx-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11.5px var(--mono);
  color: var(--faint);
}
.vx-local svg {
  width: 12px;
  height: 12px;
}
.vx-rec {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.vx-mic {
  --lv: 0;
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #e9f3ff;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.vx-mic svg {
  width: 22px;
  height: 22px;
}
.vx-mic::before {
  content: '';
  position: absolute;
  inset: -5px;
  padding: 1.5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #45f0c9, #38b6ff, #4d6bff, #9b5cff, #45f0c9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transform: scale(calc(1 + var(--lv) * 0.16));
  transition: opacity 0.4s var(--ease);
  animation: vx-spin 3.2s linear infinite;
}
.vx-mic::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 182, 255, 0.4), rgba(155, 92, 255, 0.12) 60%, transparent);
  opacity: calc(var(--lv) * 1.4);
  transform: scale(calc(0.8 + var(--lv) * 0.5));
}
.vx[data-phase='live'] .vx-mic {
  color: #fff;
  background: radial-gradient(circle at 50% 30%, rgba(120, 190, 255, 0.34), rgba(77, 107, 255, 0.12));
}
.vx[data-phase='live'] .vx-mic::before {
  opacity: 1;
}
@keyframes vx-spin {
  to {
    rotate: 360deg;
  }
}
.vx-wave {
  flex: 1;
  min-width: 0;
  height: 64px;
}
.vx-timer {
  flex: none;
  min-width: 34px;
  text-align: right;
  font: 500 12px var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}
.vx[data-phase='live'] .vx-timer {
  color: var(--text-2);
}
.vx-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.vx-status.is-live {
  color: var(--ink-accent);
}
.vx-status.is-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f6d;
  box-shadow: 0 0 10px #ff5f6d;
  animation: vx-blink 1.2s ease-in-out infinite;
}
.vx-status svg {
  animation: vx-spin 0.9s linear infinite;
}
@keyframes vx-blink {
  50% {
    opacity: 0.3;
  }
}
.vx-heard {
  min-height: 64px;
  margin-top: 18px;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}
/* solange zugehört/transkribiert wird: zwei schimmernde Zeilen, wo gleich der Satz steht */
.vx[data-phase='live'] .vx-heard:empty::before,
.vx[data-phase='live'] .vx-heard:empty::after,
.vx[data-phase='busy'] .vx-heard:empty::before,
.vx[data-phase='busy'] .vx-heard:empty::after {
  content: '';
  display: block;
  width: 74%;
  height: 11px;
  margin-top: 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 20%, rgba(150, 200, 255, 0.14) 50%, rgba(255, 255, 255, 0.04) 80%) 0 0 / 220% 100%;
  animation: vx-shim 1.6s linear infinite;
}
.vx-heard:empty::after {
  width: 46%;
  margin-top: 12px;
}
.vx[data-phase='busy'] .vx-heard:empty::before,
.vx[data-phase='busy'] .vx-heard:empty::after {
  animation-duration: 0.8s;
}
@keyframes vx-shim {
  to {
    background-position: -220% 0;
  }
}
.vx-q {
  color: var(--faint);
}
.vx-w {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(4px);
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.vx-w.is-in {
  opacity: 1;
  filter: none;
  transform: none;
}
.vx-replies {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 82px;
  margin-top: 12px;
}
.vx-r {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
  animation: vx-in 0.45s var(--ease) both;
}
.vx-r svg {
  flex: none;
  margin-top: 3px;
}
.vx-r.is-ok svg {
  color: var(--ok);
}
.vx-r.is-warn {
  color: #f5d28a;
}
.vx-r.is-warn svg {
  color: var(--warn);
}
.vx-r.is-info svg {
  color: var(--ink-accent);
}
@keyframes vx-in {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
  }
}
.vx-try {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vx-try:focus-within {
  border-color: rgba(56, 182, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(56, 182, 255, 0.12);
}
.vx-try input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: 500 13.5px var(--mono);
}
.vx-try input::placeholder {
  color: var(--faint);
}
.vx-try button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.vx-try button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.vx-try button svg {
  width: 15px;
  height: 15px;
}
.vx-sugg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.vx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 28px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: 500 11.5px var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.vx-chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}
.vx-chip.is-on {
  color: #fff;
  border-color: rgba(56, 182, 255, 0.5);
  background: rgba(56, 182, 255, 0.1);
}
.vx-chip svg {
  flex: none;
}
.vx-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vorschau: Code-Modus mit Panes und Board */
.vx-app {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 560px;
  padding: 14px;
  background: #0a0c11;
  transition: background 0.5s var(--ease);
}
.vx-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 2px 10px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.vx-proj {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}
.vx-proj svg,
.vx-lay svg,
.vx-att svg {
  width: 12px;
  height: 12px;
}
.vx-modes {
  display: inline-flex;
  gap: 2px;
  margin-left: 6px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.vx-modes i {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-style: normal;
  transition: background 0.3s, color 0.3s;
}
.vx-modes i.is-on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
.vx-lay,
.vx-att {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 500 10.5px var(--mono);
}
.vx-lay {
  margin-left: auto;
}
.vx-att {
  padding: 3px 8px;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.vx-att.is-on {
  color: var(--warn);
  background: rgba(245, 184, 61, 0.12);
}
.vx-grid,
.vx-board {
  transition: opacity 0.4s var(--ease);
}
.vx-app.is-reset .vx-grid,
.vx-app.is-reset .vx-board {
  opacity: 0;
}
.vx-grid {
  position: relative;
  flex: 1;
  min-height: 0;
}
.vxp {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: #0d1016;
  cursor: pointer;
  transition:
    left 0.7s var(--ease-io),
    top 0.7s var(--ease-io),
    width 0.7s var(--ease-io),
    height 0.7s var(--ease-io),
    border-color 0.4s,
    box-shadow 0.4s,
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.vxp.is-new {
  opacity: 0;
  transform: scale(0.94);
}
.vxp.is-focus {
  border-color: rgba(120, 180, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(120, 180, 255, 0.22),
    0 0 24px -6px rgba(56, 182, 255, 0.45);
}
.vxp[data-s='needs'] {
  border-color: rgba(245, 184, 61, 0.6);
  box-shadow:
    0 0 0 1px rgba(245, 184, 61, 0.2),
    0 0 26px -8px rgba(245, 184, 61, 0.5);
}
.vxp.is-empty {
  border: 1px dashed rgba(255, 255, 255, 0.13);
  background: transparent;
  cursor: default;
}
.vxp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  font-size: 11.5px;
  color: var(--faint);
}
.vxp-h {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  white-space: nowrap;
}
.vxp-h i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.vxp-h b {
  font-weight: 600;
  color: var(--text);
}
.vxp-h em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font: normal 400 10px var(--mono);
  color: var(--faint);
}
.vxp-st {
  flex: none;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 650;
  color: var(--ink-accent);
  background: rgba(56, 182, 255, 0.12);
}
.vxp-st[data-s='needs'] {
  color: var(--warn);
  background: rgba(245, 184, 61, 0.14);
}
.vxp-st[data-s='starting'] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}
.vxp-b {
  padding: 7px 9px;
  font: 400 10px/1.5 var(--mono);
  color: #c9ced8;
}
.vxp.is-swap .vxp-b {
  animation: vx-in 0.45s var(--ease) both;
}
.vxp-l {
  overflow: hidden;
  white-space: pre;
  text-overflow: ellipsis;
}
.vxp-l.is-perm {
  color: #f3d08a;
}
.vxp .dm {
  color: var(--faint);
}
.vxp-spin {
  color: color-mix(in srgb, var(--c) 75%, #fff);
}
.vxp-you {
  color: #eef1f6;
  background: rgba(255, 255, 255, 0.06);
}
.vxp-in {
  display: flex;
  margin-top: 4px;
  padding-top: 4px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre;
  color: #eef1f6;
}
.vxp-cur {
  flex: none;
  width: 6px;
  height: 12px;
  margin-left: 1px;
  background: #d9dde6;
  animation: vx-blink 1s steps(2, jump-none) infinite;
}
.vxp.is-small .vxp-b {
  font-size: 9px;
}
.vxp.is-small .vxp-h em {
  display: none;
}
.vx-over {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(10, 12, 17, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.vx-over b {
  font-size: 15px;
}
.vx-over span {
  font-size: 12px;
  color: var(--muted);
}
.vx-app.is-away .vx-over {
  opacity: 1;
}
.vx-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.vx-col {
  min-height: 78px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.vx-ch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.vx-ch svg {
  width: 12px;
  height: 12px;
}
.vx-cards {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}
.vx-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 7px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.045);
  animation: vx-in 0.5s var(--ease) both;
}
.vx-card span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.vx-card.is-night svg {
  color: #b9a6ff;
}
.vx-none {
  font-size: 11px;
  color: var(--faint);
}
.is-flash {
  animation: vx-flash 1.1s var(--ease);
}
.vx-card.is-flash {
  animation:
    vx-in 0.5s var(--ease) both,
    vx-flash 1.2s var(--ease);
}
@keyframes vx-flash {
  0% {
    box-shadow:
      0 0 0 1px rgba(120, 190, 255, 0.6),
      0 0 22px rgba(56, 182, 255, 0.35);
  }
}

/* „theme“: die Vorschau wechselt ins helle Theme */
.vx-app.is-light {
  background: #f2f3f6;
}
.vx-app.is-light .vx-proj,
.vx-app.is-light .vxp-h b {
  color: #18181b;
}
.vx-app.is-light .vx-modes {
  background: rgba(0, 0, 0, 0.05);
}
.vx-app.is-light .vx-modes i.is-on {
  color: #18181b;
  background: #fff;
}
.vx-app.is-light .vxp {
  border-color: rgba(0, 0, 0, 0.09);
  background: #fff;
}
.vx-app.is-light .vxp-h {
  border-color: rgba(0, 0, 0, 0.06);
  background: #f7f8fa;
}
.vx-app.is-light .vxp-b,
.vx-app.is-light .vxp-in,
.vx-app.is-light .vxp-you {
  color: #2b2f38;
}
.vx-app.is-light .vxp-cur {
  background: #2b2f38;
}
.vx-app.is-light .vx-col {
  border-color: rgba(0, 0, 0, 0.07);
  background: #fff;
}
.vx-app.is-light .vx-card {
  color: #2b2f38;
  background: #eef0f4;
}
.vx-app.is-light .vxp.is-empty {
  border-color: rgba(0, 0, 0, 0.15);
  background: transparent;
}

.vx-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.vx-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.vx-facts svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ink-accent);
}
.vx-facts b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.vx-facts span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.vx-more {
  display: flex;
  width: fit-content;
  margin: 30px auto 0;
}

@media (max-width: 960px) {
  .vx {
    grid-template-columns: 1fr;
  }
  .vx-con {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .vx-app {
    min-height: 430px;
  }
  .vx-modes {
    display: none;
  }
  .vx-try {
    margin-top: 16px;
  }
  .vx-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .vx {
    margin-top: 32px;
    border-radius: 18px;
  }
  .vx-con {
    padding: 18px 16px;
  }
  .vx-local {
    display: none;
  }
  .vx-app {
    min-height: 400px;
    padding: 10px;
  }
  .vx-board {
    grid-template-columns: 1fr;
  }
  .vx-lead {
    font-size: 16px;
  }
  .vxp.is-small .vxp-st {
    display: none;
  }
  .vxp.is-small .vxp-b {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vx-mic::before,
  .vx-status::before,
  .vx-status svg,
  .vx-heard::before,
  .vx-heard::after,
  .vxp-cur {
    animation: none;
  }
}
