/* ============================================================
   Sales-Baukasten — Ethereal Glass (dark) UI
   ============================================================ */
:root {
  --bg: #07070a;
  --bg-soft: #0b0b10;
  --ink: #eceef2;
  --muted: #8b909c;
  --faint: #5c616d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --core: #0d0e13;

  --acc: #7c6bff;
  --acc-2: #22d3ee;
  --emerald: #34d399;
  --amber: #f59e0b;
  --rose: #fb7185;
  --pink: #f472b6;

  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --r-sm: 0.625rem;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.75);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- ambient background --- */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-a { width: 540px; height: 540px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(124, 107, 255, 0.55), transparent 70%); }
.orb-b { width: 460px; height: 460px; top: 30%; right: -160px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%); }
.orb-c { width: 420px; height: 420px; bottom: -180px; left: 35%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.3), transparent 70%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* --- app shell --- */
.shell { position: relative; z-index: 2; display: grid; grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100dvh; }

/* ---------------- sidebar ---------------- */
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column;
  gap: 26px; padding: 26px 18px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px;
  color: #fff; border-radius: 12px;
  background: linear-gradient(145deg, var(--acc), #5a45d6);
  box-shadow: 0 10px 26px -8px rgba(124, 107, 255, 0.8), var(--hi); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: 0.02em; }

.nav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.nav-item { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: none; background: transparent; color: var(--muted);
  font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 12px;
  transition: color 0.35s var(--ease); text-align: left; }
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--ink); }
.nav-item .ic { width: 18px; height: 18px; }
.nav-glow { position: absolute; left: 0; right: 0; z-index: 0; height: 44px; border-radius: 12px;
  background: var(--glass-2); border: 1px solid var(--line); box-shadow: var(--hi);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease); opacity: 0; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--glass);
  color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.pill.good { color: var(--emerald); border-color: rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.08); }
.pill.good .dot { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.pill.bad { color: var(--rose); border-color: rgba(251, 113, 133, 0.25); background: rgba(251, 113, 133, 0.08); }
.pill.bad .dot { background: var(--rose); box-shadow: 0 0 10px var(--rose); }

.concurrency { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 8px 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }
.cc-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cc-stepper { display: inline-flex; align-items: center; gap: 6px; }
.cc-stepper button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--glass-2); color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1;
  display: grid; place-items: center; transition: border-color 0.3s var(--ease); }
.cc-stepper button:hover { border-color: var(--acc); }
#cc-val { min-width: 16px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* svg icon defaults (thin line) */
svg.ic, .ic { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- content ---------------- */
.content { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1280px; min-width: 0; width: 100%; }
.view { animation: viewIn 0.6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 10.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--acc-2);
  border: 1px solid var(--line); background: var(--glass); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(34px, 5vw, 58px); margin: 18px 0 0; }
.display.sm { font-size: clamp(30px, 4vw, 44px); }
.lede { color: var(--muted); font-size: 15px; margin: 10px 0 0; max-width: 52ch; }

/* ---------------- hero / composer ---------------- */
.hero { margin-bottom: 44px; }
.composer { margin-top: 28px; max-width: 720px; padding: 6px; border-radius: var(--r-xl);
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--hi); }
.composer-core { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px;
  background: var(--core); border: 1px solid var(--line); border-radius: calc(var(--r-xl) - 6px); }
.composer-core .globe { width: 20px; height: 20px; color: var(--faint); flex: none; }
#url-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--sans); font-size: 16px; padding: 10px 0; }
#url-input::placeholder { color: var(--faint); }

.island { display: inline-flex; align-items: center; gap: 12px; padding: 11px 11px 11px 22px;
  border: none; cursor: pointer; border-radius: 999px; color: #fff; font-family: var(--sans);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(180deg, #8b7bff, #6a4bff);
  box-shadow: 0 12px 30px -8px rgba(124, 107, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.island:hover { box-shadow: 0 16px 38px -8px rgba(124, 107, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.island:active { transform: scale(0.97); }
.island:disabled { opacity: 0.6; cursor: progress; }
.island-ic { width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.island-ic svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.island:hover .island-ic { transform: translate(3px, -1px) scale(1.06); }
.error-text { color: var(--rose); font-size: 14px; margin: 12px 4px 0; }

/* composer settings (model + effort) */
.composer-settings { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 2px 0; max-width: 720px; }
.setting { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; }
.setting > span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); }
.setting select {
  appearance: none; -webkit-appearance: none;
  background: var(--core) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b909c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 36px 11px 14px; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color 0.3s var(--ease); }
.setting select:hover { border-color: var(--line-2); }
.setting select:focus { outline: none; border-color: var(--acc); }
.setting input {
  background: var(--core); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; font-family: var(--sans); font-size: 14px; font-weight: 600;
  transition: border-color 0.3s var(--ease); }
.setting input:focus { outline: none; border-color: var(--acc); }

.skill-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 2px 0; max-width: 920px; }
.skill-check { display: inline-flex; align-items: flex-start; gap: 10px; min-width: 220px; flex: 1;
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass);
  cursor: pointer; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.skill-check:hover { border-color: var(--line-2); background: var(--glass-2); }
.skill-check input { margin-top: 3px; accent-color: var(--acc); }
.skill-check span { display: flex; flex-direction: column; gap: 3px; }
.skill-check b { font-size: 13px; color: var(--ink); }
.skill-check small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* options line in detail */
.d-opts { font-size: 12px; color: var(--faint); margin: -8px 0 18px; }
.d-opts b { color: var(--muted); font-weight: 700; }

/* prompt editor */
.prompt-card { padding: 20px; margin-bottom: 16px; }
.prompt-area {
  width: 100%; min-height: 280px; margin-top: 6px; resize: vertical;
  background: #060709; color: #cdd3db; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.prompt-area:focus { outline: none; border-color: var(--acc); }
.prompt-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.prompt-status { margin-right: auto; font-size: 13px; color: var(--muted); }
.lede code { font-family: var(--mono); font-size: 12px; background: var(--glass-2); padding: 1px 6px; border-radius: 6px; color: var(--acc-2); }

.prompt-workbench { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.prompt-list-panel { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass);
  box-shadow: var(--shadow), var(--hi); padding: 8px; }
.prompt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.prompt-list-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; color: var(--muted); background: transparent; border: 1px solid transparent;
  border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; font-family: var(--sans);
  font-size: 13px; font-weight: 700; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.prompt-list-item:hover, .prompt-list-item.active { color: var(--ink); background: var(--glass-2); border-color: var(--line-2); }
.prompt-list-item small { color: var(--emerald); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.prompt-editor { padding: 18px; }
.prompt-editor-top { display: flex; align-items: end; gap: 14px; margin-bottom: 14px; }
.prompt-name { flex: 1; }
.prompt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.prompt-tab { border: 1px solid var(--line); background: var(--glass); color: var(--muted);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font-family: var(--sans); font-size: 12px; font-weight: 700;
  transition: all 0.3s var(--ease); }
.prompt-tab:hover, .prompt-tab.active { color: var(--ink); border-color: var(--acc); background: rgba(124, 107, 255, 0.12); }
.prompt-editor .prompt-area { min-height: 520px; }
.prompt-actions { flex-wrap: wrap; justify-content: flex-end; }

/* HTML template management */
.templates-layout { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.4fr); gap: 16px; align-items: start; }
.template-upload, .template-list-card { padding: 22px; }
.template-form { display: flex; flex-direction: column; gap: 14px; }
.template-form .island { align-self: flex-start; margin-top: 4px; }
.setting input[type="file"] {
  background: var(--core); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; font-family: var(--sans); font-size: 13px;
}
.html-template-list { display: flex; flex-direction: column; gap: 10px; }
.html-template-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--core); }
.template-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--ink); }
.template-title span { color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.08);
  border-radius: 999px; padding: 3px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.html-template-row p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.template-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.empty-inline { color: var(--faint); font-size: 13px; margin: 0; }

/* ---------------- jobs layout ---------------- */
.jobs-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }

.joblist-panel, .detail-panel, .card { position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--glass);
  box-shadow: var(--shadow), var(--hi); }
.joblist-panel { padding: 8px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px; }
.panel-head h2 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 0; }
.count { font-size: 12px; font-weight: 700; color: var(--muted); padding: 3px 9px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--line); }

.joblist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.job-card { padding: 13px 14px; border-radius: var(--r-md); cursor: pointer; border: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.job-card:hover { background: var(--glass-2); transform: translateX(2px); }
.job-card.active { background: var(--glass-2); border-color: var(--line-2);
  box-shadow: inset 0 0 0 1px rgba(124, 107, 255, 0.25); }
.job-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-card .domain { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; word-break: break-all; }
.job-card .meta { color: var(--faint); font-size: 11.5px; margin-top: 4px; display: flex; gap: 8px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  color: var(--faint); padding: 48px 20px; }
.empty-ic { width: 34px; height: 34px; opacity: 0.5; }
.empty p { margin: 0; font-size: 13.5px; line-height: 1.5; }

/* status pills */
.status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.01em; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.queued { color: var(--amber); background: rgba(245, 158, 11, 0.1); }
.status.running { color: var(--acc-2); background: rgba(34, 211, 238, 0.1); }
.status.waiting_review { color: var(--amber); background: rgba(245, 158, 11, 0.12); }
.status.done { color: var(--emerald); background: rgba(52, 211, 153, 0.1); }
.status.error { color: var(--rose); background: rgba(251, 113, 133, 0.1); }
.status.canceled { color: var(--faint); background: var(--glass-2); }
.status.running::before { animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------------- detail panel ---------------- */
.detail-panel { padding: 24px; }
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; min-height: 360px; color: var(--faint); text-align: center; }
.detail-empty p { margin: 0; font-size: 14px; line-height: 1.6; }
.ghost-stepper { display: flex; gap: 14px; }
.ghost-stepper span { width: 38px; height: 38px; border-radius: 50%; border: 1.5px dashed var(--line-2);
  animation: floaty 3s var(--ease) infinite; }
.ghost-stepper span:nth-child(2) { animation-delay: 0.2s; }
.ghost-stepper span:nth-child(3) { animation-delay: 0.4s; }
.ghost-stepper span:nth-child(4) { animation-delay: 0.6s; }
.ghost-stepper span:nth-child(5) { animation-delay: 0.8s; }
@keyframes floaty { 50% { transform: translateY(-6px); opacity: 0.6; } }

.d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.d-title { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.d-url { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px;
  text-decoration: none; margin-top: 6px; max-width: 100%; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.d-url svg { flex: none; }
.d-url:hover { color: var(--acc-2); }
.d-head-right { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: 12.5px;
  font-weight: 600; transition: all 0.35s var(--ease); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-2); }
.btn-ghost.good:hover { color: var(--emerald); border-color: rgba(52, 211, 153, 0.4); }
.btn-ghost.danger:hover { color: var(--rose); border-color: rgba(251, 113, 133, 0.4); }
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }

/* stepper */
/* Spaltenzahl wird per JS gesetzt (repeat(<Anzahl Schritte>, 1fr)); 6 als Fallback. */
.stepper { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 8px 0 26px; }
/* left/right + fill-width werden in app.js exakt aus der Schrittzahl berechnet. */
.stepper-track, .stepper-fill { position: absolute; top: 20px; height: 2px; border-radius: 2px; }
.stepper-track { left: 8.333%; right: 8.333%; background: var(--line-2); }
.stepper-fill { left: 8.333%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc-2));
  box-shadow: 0 0 12px rgba(124, 107, 255, 0.6); transition: width 0.7s var(--ease); }
.snode { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.snode .ring { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--core); border: 2px solid var(--line-2); color: var(--faint);
  transition: all 0.5s var(--ease); }
.snode .ring svg { width: 16px; height: 16px; }
.snode .s-label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.snode .s-note { font-size: 10px; color: var(--faint); text-align: center; max-width: 12ch; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snode.running .ring { border-color: var(--acc-2); color: var(--acc-2);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.1); animation: ringpulse 1.4s var(--ease) infinite; }
.snode.running .s-label { color: var(--ink); }
.snode.done .ring { border-color: transparent; color: #fff;
  background: linear-gradient(160deg, var(--acc), #5a45d6); box-shadow: 0 8px 20px -6px rgba(124, 107, 255, 0.7); }
.snode.done .s-label { color: var(--ink); }
.snode.error .ring { border-color: var(--rose); color: var(--rose); background: rgba(251, 113, 133, 0.12); }
.snode.skipped .ring { border-style: dashed; }
@keyframes ringpulse { 50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }

/* cost strip */
.d-cost { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.kpi { flex: 1; min-width: 120px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--core); border: 1px solid var(--line); }
.kpi .k-label { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }
.kpi .k-val { font-family: var(--display); font-size: 21px; font-weight: 600; margin-top: 4px;
  letter-spacing: -0.01em; }
.kpi .k-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* links */
.d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.linkpill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); transition: all 0.35s var(--ease); }
.linkpill:hover { background: var(--glass-2); border-color: var(--line-2); transform: translateY(-1px); }
.linkpill svg { width: 14px; height: 14px; stroke: var(--acc-2); }

/* adjust (Anpassen) box */
.adjust-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; }
.adjust-box #adjust-input { flex: 1; min-width: 220px; background: var(--core); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
  font-family: var(--sans); font-size: 14px; transition: border-color 0.3s var(--ease); }
.adjust-box #adjust-input::placeholder { color: var(--faint); }
.adjust-box #adjust-input:focus { outline: none; border-color: var(--acc); }
.adjust-box #adjust-status { margin-right: 0; }

/* console */
.console-wrap { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.console-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: #0a0b0f; border-bottom: 1px solid var(--line); }
.c-dots { display: flex; gap: 6px; }
.c-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2c34; }
.c-dots i:nth-child(1) { background: #ff5f57; } .c-dots i:nth-child(2) { background: #febc2e; }
.c-dots i:nth-child(3) { background: #28c840; }
.c-title { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.noise-count { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.autoscroll { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); cursor: pointer; }
.console { margin: 0; padding: 14px 16px; max-height: 380px; overflow: auto; background: #060709;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.console .l { display: block; }
.console .t { color: #3f4453; margin-right: 9px; }
.console .step { color: #c4b5fd; font-weight: 700; }
.console .agent { color: #93c5fd; }
.console .tool { color: #fcd34d; }
.console .success { color: #6ee7b7; }
.console .warn { color: #fdba74; }
.console .error { color: #fca5a5; }
.console .info { color: #aeb4c0; }
.console::-webkit-scrollbar, .joblist::-webkit-scrollbar { width: 8px; }
.console::-webkit-scrollbar-thumb { background: #1c1e26; border-radius: 8px; }

/* ---------------- stats ---------------- */
.view-head { margin-bottom: 32px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card { padding: 22px; }
.stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line); }
.sc-ic svg { width: 18px; height: 18px; }
.sc-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.sc-val { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 600;
  letter-spacing: -0.02em; margin-top: 14px; }
.sc-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.sc-accent .sc-val { background: linear-gradient(120deg, #c4b9ff, var(--acc-2)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }

.chart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-card { padding: 22px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chart-head h3 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 0; }
.chart-head .hint { font-size: 11.5px; color: var(--faint); }

/* bar chart */
.bars { width: 100%; height: 200px; display: block; }
.bars rect { transition: height 0.6s var(--ease), y 0.6s var(--ease); }
.bars .axis { fill: var(--faint); font-size: 9px; font-family: var(--sans); }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut-center { font-family: var(--display); fill: var(--ink); }
.legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 130px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-row .lg-name { color: var(--ink); font-weight: 600; text-transform: capitalize; }
.legend-row .lg-val { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* step bars (full width card) */
.stepbars { display: flex; flex-direction: column; gap: 16px; }
.stepbar .sb-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.stepbar .sb-name { font-weight: 600; text-transform: capitalize; }
.stepbar .sb-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.sb-track { height: 10px; border-radius: 999px; background: var(--glass-2); overflow: hidden; border: 1px solid var(--line); }
.sb-fill { height: 100%; border-radius: 999px; width: 0; transition: width 0.8s var(--ease); }

/* recent table */
.recent-card { padding: 22px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th { text-align: left; color: var(--faint); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0 12px 12px; }
.rtable td { padding: 12px; border-top: 1px solid var(--line); color: var(--ink);
  font-variant-numeric: tabular-nums; }
.rtable tr td:first-child { font-weight: 700; }
.rtable .num { text-align: right; color: var(--muted); }
.rtable tbody tr { transition: background 0.3s var(--ease); }
.rtable tbody tr:hover { background: var(--glass); }

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center;
    flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; backdrop-filter: blur(16px); background: rgba(7, 7, 10, 0.7); }
  .brand-text small { display: none; }
  .nav { order: 3; width: 100%; flex-direction: row; gap: 2px; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .nav-item { flex: 0 0 auto; }
  .nav-glow { display: none; }
  .nav-item.active { background: var(--glass-2); }
  .sidebar-foot { flex-direction: row; flex-wrap: wrap; margin: 0 0 0 auto; min-width: 0; }
  .deploy-hide { display: none; }
}
@media (max-width: 860px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .prompt-workbench { grid-template-columns: 1fr; }
  .templates-layout { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .content { padding: 24px 16px 60px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 13px; }
  .sidebar-foot { width: 100%; margin-left: 0; }
  .concurrency { flex: 1; min-width: 170px; }
  .pill { flex: 1; justify-content: center; }
  .composer-core { flex-wrap: wrap; }
  .island { width: 100%; justify-content: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .island span:first-child { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
