/* StickStudio – Oberfläche */
:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --surface-3: #eeeef0;
  --line: #e6e6e9;
  --line-2: #d6d6db;
  --text: #0a0a0a;
  --text-2: #45454c;
  --muted: #84848c;
  --accent: #0a0a0a;
  --accent-hover: #2a2a2e;
  --accent-soft: #f0f0f2;
  --accent-text: #0a0a0a;
  --on-accent: #ffffff;
  --ok: #15803d;
  --ok-soft: #f2f8f4;
  --warn: #a35c00;
  --warn-soft: #fdf6ea;
  --err: #c8261e;
  --err-soft: #fcefee;
  --info: #45454c;
  --info-soft: #f0f0f2;
  --canvas: #ebebed;
  --canvas-dot: #d4d4d9;
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .06);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 28px rgba(0, 0, 0, .10);
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090a; --surface: #111113; --surface-2: #17171a; --surface-3: #1f1f23; --line: #232327; --line-2: #313137;
    --text: #f4f4f5; --text-2: #b5b5bc; --muted: #84848c;
    --accent: #f4f4f5; --accent-hover: #ffffff; --accent-soft: #1d1d21; --accent-text: #f4f4f5; --on-accent: #0a0a0a;
    --ok: #4ade80; --ok-soft: #142019; --warn: #f5a524; --warn-soft: #261d10; --err: #ff6b62; --err-soft: #2b1514;
    --info: #b5b5bc; --info-soft: #1d1d21; --canvas: #070708; --canvas-dot: #1c1c20;
    --shadow-float: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090a; --surface: #111113; --surface-2: #17171a; --surface-3: #1f1f23; --line: #232327; --line-2: #313137;
  --text: #f4f4f5; --text-2: #b5b5bc; --muted: #84848c;
  --accent: #f4f4f5; --accent-hover: #ffffff; --accent-soft: #1d1d21; --accent-text: #f4f4f5; --on-accent: #0a0a0a;
  --ok: #4ade80; --ok-soft: #142019; --warn: #f5a524; --warn-soft: #261d10; --err: #ff6b62; --err-soft: #2b1514;
  --info: #b5b5bc; --info-soft: #1d1d21; --canvas: #070708; --canvas-dot: #1c1c20;
  --shadow-float: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ------------------------------------------------------------------ Kopfzeile */
.topbar {
  height: 56px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px 0 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 30px; height: 30px; color: var(--accent); }
.brand-name { font-size: 16px; letter-spacing: -.01em; font-weight: 500; }
.brand-name b { font-weight: 700; }
.doc {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 11px 5px 9px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text-2);
}
.doc .ic { width: 15px; height: 15px; color: var(--muted); }
.doc-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.doc-meta { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-meta:not(:empty)::before { content: "·"; margin-right: 8px; }
.tb-spacer { flex: 1; }
.tb-actions { display: flex; gap: 4px; align-items: center; }
.export { display: flex; margin-left: 8px; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.export select {
  border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background-color: var(--surface);
  padding: 0 26px 0 10px; height: 34px; font-weight: 600; font-size: 12px; letter-spacing: .02em;
}
.export .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; height: 34px; }

/* ------------------------------------------------------------------ Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); white-space: nowrap;
  font-weight: 550; color: var(--text); transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.btn.soft { background: var(--surface-2); border-color: var(--line); }
.btn.soft:hover:not(:disabled) { background: var(--surface-3); }
.btn.soft.attn { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-text); }
.btn.block { width: 100%; margin-top: 10px; }
.btn.small { height: 26px; padding: 0 9px; font-size: 12px; gap: 5px; }
.btn.small .ic { width: 14px; height: 14px; }
.btn.icon-only { width: 32px; padding: 0; }

/* ------------------------------------------------------------------ Layout */
.layout { flex: 1; display: grid; grid-template-columns: 324px minmax(0, 1fr) 340px; min-height: 0; }
.panel { overflow-y: auto; background: var(--surface); min-height: 0; }
.panel.left { border-right: 1px solid var(--line); padding: 6px 0 24px; }
.panel.right { border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }

/* Abschnitte links */
.sec { border-bottom: 1px solid var(--line); }
.sec > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; user-select: none;
}
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary:hover { background: var(--surface-2); }
.sec-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; font-size: 12px; font-weight: 700; }
.sec-title { font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.sec-sum { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-variant-numeric: tabular-nums; }
.chev { color: var(--muted); transition: transform .2s; width: 14px; height: 14px; }
details[open] > summary .chev { transform: rotate(90deg); }
.sec-body { padding: 2px 16px 16px; }

/* Felder */
.fld { display: block; margin-top: 12px; }
.lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 550; color: var(--text-2); margin-bottom: 5px; }
span.lbl { margin-top: 12px; }
.sec-body > span.lbl:first-child { margin-top: 10px; }
select, input[type=number], input[type=text], input[type=search] {
  width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font-size: 13px; transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b828e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
}
select:hover, input[type=number]:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
select:focus, input:focus { border-color: var(--accent); box-shadow: var(--focus); outline: none; }
.inp-unit { position: relative; display: flex; align-items: center; }
.inp-unit input { padding-right: 46px; font-variant-numeric: tabular-nums; }
.inp-unit > span { position: absolute; right: 10px; color: var(--muted); font-size: 12px; pointer-events: none; }
.inp-unit.sm { width: 78px; flex: none; }
.inp-unit.sm input { padding-right: 22px; }
.out {
  font-weight: 600; color: var(--text); font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3);
  font-variant-numeric: tabular-nums;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.hint { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

/* Schieberegler */
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer; display: block;
  --p: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) 0 var(--p), var(--line-2) var(--p) 100%);
}
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; margin-top: -6px;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 1.5px solid var(--accent); }
input[type=range]:disabled { opacity: .4; cursor: default; }
.range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Schalter */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.switch { position: relative; width: 32px; height: 19px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(13px); }
.switch input:focus-visible + i { box-shadow: var(--focus); }

/* Unter-Abschnitte */
details.sub { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
details.sub > summary { list-style: none; padding: 9px 12px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
details.sub > summary::-webkit-details-marker { display: none; }
details.sub > summary::before {
  content: ""; width: 14px; height: 14px; flex: none; transition: transform .2s;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
details.sub[open] > summary::before { transform: rotate(90deg); }
details.sub[open] { padding: 0 12px 12px; }
details.sub[open] > summary { margin: 0 -12px; }
details.sub select, details.sub input[type=number] { background-color: var(--surface); }

/* Maschine */
.machine-card {
  margin-top: 8px; padding: 9px 11px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; line-height: 1.35;
}
.machine-card b { color: var(--text); font-weight: 650; width: 100%; font-size: 12.5px; }
.machine-card span { display: inline-flex; align-items: center; gap: 4px; }
.machine-card .ic { width: 13px; height: 13px; }
.size-row { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: end; gap: 4px; }
.size-link { display: grid; place-items: center; height: 34px; color: var(--muted); }
.tip { display: flex; gap: 8px; margin-top: 8px; padding: 9px 11px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.tip .ic { color: var(--muted); margin-top: 1px; width: 15px; height: 15px; }
.tip p { margin: 0; font-size: 12px; color: var(--text-2); }

/* Stichrichtung */
.angle-row { display: flex; align-items: center; gap: 10px; }
.angle-presets { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.angle-presets button {
  width: 34px; height: 30px; border: 0; background: transparent; border-radius: 7px; display: grid; place-items: center; color: var(--text-2);
}
.angle-presets button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; overflow: hidden; }
.angle-presets button:hover { background: var(--surface-3); }
.angle-presets button.on { background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-2); }
#angleDial { width: 44px; height: 44px; cursor: grab; touch-action: none; flex: none; }

/* Farbliste */
.color-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.color-item {
  display: grid; grid-template-columns: 18px 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 6px 9px; align-items: center;
  padding: 8px 10px 8px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.color-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.color-item.skip .sw, .color-item.skip .meta { opacity: .45; }
.color-item .ord { display: flex; flex-direction: column; align-items: center; grid-row: 1 / 3; }
.color-item .ord button { border: 0; background: none; padding: 0; color: var(--muted); width: 18px; height: 16px; display: grid; place-items: center; border-radius: 4px; }
.color-item .ord button:hover { color: var(--accent-text); background: var(--accent-soft); }
.color-item .ord .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.sw {
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; position: relative; border: 0; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 -6px 10px rgba(0, 0, 0, .12), inset 0 4px 8px rgba(255, 255, 255, .22);
}
.sw:hover { transform: scale(1.04); }
.sw .orig { position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--surface); }
.color-item .meta { min-width: 0; }
.color-item .meta b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.color-item .meta b small { font-weight: 500; color: var(--muted); margin-left: 3px; }
.color-item .meta span { display: block; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.color-item .row2 { grid-column: 3 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.color-item .row2 select { height: 28px; font-size: 12px; padding-left: 8px; background-color: var(--surface-2); background-position: right 5px center; padding-right: 22px; }

/* ------------------------------------------------------------------ Arbeitsfläche */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.canvas-wrap {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
#canvas { display: block; position: absolute; inset: 0; touch-action: none; }
.float { position: absolute; z-index: 3; }
.f-top { top: 14px; left: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: calc(100% - 230px); }
.canvas-wrap.empty .float { display: none; }
.seg {
  display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-float);
}
.seg button {
  border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-weight: 550; white-space: nowrap;
}
.seg button:hover { background: var(--surface-2); color: var(--text); }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.seg button .ic { width: 15px; height: 15px; }
.subbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 550;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); color: var(--muted); backdrop-filter: blur(6px);
}
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.chip input:checked + span { color: var(--text); }
.chip input:checked + span::before { background: var(--accent); }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.fabric-colors {
  display: inline-flex; gap: 4px; align-items: center; height: 26px; padding: 0 6px 0 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px);
  font-size: 12px; color: var(--muted); font-weight: 550;
}
.fabric-colors button { width: 16px; height: 16px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.fabric-colors button.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.brush-opts {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.brush-opts select { height: 26px; width: auto; max-width: 170px; font-size: 12px; }
.brush-opts .mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.brush-opts input[type=range] { width: 90px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); display: inline-block; flex: none; }

.f-tools {
  left: 14px; top: 50%; transform: translateY(-40%); display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float);
}
.f-tools button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); display: grid; place-items: center; }
.f-tools button .ic { width: 18px; height: 18px; }
.f-tools button:hover { background: var(--surface-2); color: var(--text); }
.f-tools button.on { background: var(--accent); color: var(--on-accent); }

.f-zoom {
  right: 14px; top: 14px; display: flex; align-items: center; gap: 1px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-float);
}
.f-zoom button { height: 30px; min-width: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); display: grid; place-items: center; }
.f-zoom button:hover { background: var(--surface-2); color: var(--text); }
.f-zoom .pct { font-size: 12px; font-weight: 600; min-width: 54px; font-variant-numeric: tabular-nums; }
.vsep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }

.f-player {
  left: 50%; bottom: 16px; transform: translateX(-50%); width: min(720px, calc(100% - 120px));
  display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float);
}
.play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.play:hover:not(:disabled) { background: var(--accent-hover); }
.play:disabled { opacity: .4; cursor: default; }
.play .ic { width: 17px; height: 17px; }
.track { position: relative; flex: 1; min-width: 80px; height: 22px; }
.track-colors { position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 6px; overflow: hidden; display: flex; background: var(--line-2); }
.track-colors i { display: block; height: 100%; min-width: 2px; border-right: 1.5px solid var(--surface); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.track-colors i:last-child { border-right: 0; }
.track input[type=range] { position: absolute; inset: 0; height: 22px; }
.track input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 6px; }
.track input[type=range]::-moz-range-track { background: transparent; }
.track input[type=range]::-moz-range-progress { background: transparent; }
.track input[type=range]::-webkit-slider-thumb { margin-top: -5px; border-color: var(--text); }
.f-player select { width: auto; height: 28px; font-size: 12px; padding-left: 8px; padding-right: 24px; background-position: right 4px center; }
.sim-info { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 170px; text-align: right; }

.drop {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 6;
  background: color-mix(in srgb, var(--canvas) 70%, transparent);
}
.drop-card {
  width: min(460px, 100%); text-align: center; padding: 34px 32px 26px; border-radius: 18px; background: var(--surface);
  border: 1.5px dashed var(--line-2); box-shadow: var(--shadow-float);
}
.drop.over .drop-card { border-color: var(--accent); background: var(--accent-soft); }
.drop-ic { width: 60px; height: 60px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.drop-ic .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.drop h3 { font-size: 19px; letter-spacing: -.01em; margin: 16px 0 4px; }
.drop-card > p { color: var(--muted); margin: 0 0 18px; }
.drop-card .btn { height: 38px; padding: 0 18px; font-size: 13.5px; }
.drop-steps { list-style: none; padding: 0; margin: 22px 0 0; display: flex; justify-content: center; gap: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.drop-steps li { display: flex; align-items: center; gap: 6px; }
.drop-steps b { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; }
.drop .hint { font-size: 11.5px; margin-top: 16px; }

.busy {
  position: absolute; top: 108px; left: 50%; transform: translateX(-50%); z-index: 7; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; display: flex; gap: 9px; align-items: center; box-shadow: var(--shadow-float); font-size: 12.5px; font-weight: 550;
}
.spinner { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Rechte Spalte */
.status { margin: 14px 14px 0; padding: 14px; border-radius: var(--r-lg); display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.status .st-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.status .st-ic .ic { width: 20px; height: 20px; stroke-width: 2; }
.status b { display: block; font-size: 14.5px; letter-spacing: -.005em; }
.status small { display: block; color: var(--text-2); font-size: 12px; margin-top: 1px; }
.status.ok { background: var(--surface-2); }
.status.ok .st-ic { background: var(--accent); color: var(--on-accent); }
.status.ok b { color: var(--text); }
.status.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.status.warn .st-ic { background: var(--warn); color: #fff; }
.status.warn b { color: var(--warn); }
.status.err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 22%, transparent); }
.status.err .st-ic { background: var(--err); color: #fff; }
.status.err b { color: var(--err); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 14px 4px; }
.stat { padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.stat span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.stat span .ic { width: 13px; height: 13px; }
.stat b { display: block; font-size: 17px; font-weight: 680; letter-spacing: -.01em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: 12px; font-weight: 550; color: var(--muted); margin-left: 2px; }

.tabs { display: flex; gap: 2px; margin: 10px 14px 0; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs button { flex: 1; height: 30px; border: 0; background: transparent; border-radius: 7px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; font-weight: 700; background: var(--line-2); color: var(--text); }
.badge:empty { display: none; }
.badge.err { background: var(--err); color: #fff; }
.badge.warn { background: var(--warn); color: #fff; }
.badge.ok { background: var(--accent); color: var(--on-accent); }
.tab { padding: 4px 14px 14px; overflow-y: auto; flex: 1; min-height: 0; }
.tab > .btn.block:first-child { margin-top: 10px; }

.msgs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.msg .m-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--info); }
.msg .m-ic .ic { width: 14px; height: 14px; stroke-width: 2.1; }
.msg.err .m-ic { background: var(--err-soft); color: var(--err); }
.msg.warn .m-ic { background: var(--warn-soft); color: var(--warn); }
.msg.has-where { cursor: pointer; }
.msg.has-where:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.msg b { display: block; font-size: 12.5px; font-weight: 650; margin-top: 2px; }
.msg p { margin: 3px 0 0; font-size: 12px; color: var(--text-2); }
.msg .m-act { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg .where { font-size: 11.5px; color: var(--accent-text); font-weight: 600; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; font-size: 12.5px; margin-top: 12px; }
.kv span:nth-child(odd) { color: var(--muted); }
.kv span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.seq { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.seq li { display: grid; grid-template-columns: 22px 22px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.seq li:last-child { border-bottom: 0; }
.seq li .num { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.seq li .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.seq li small { color: var(--muted); }
h3.sub { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 4px; font-weight: 650; }
.region-head { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.region-head .swatch { width: 34px; height: 34px; border-radius: 9px; }
.region-head small { color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text); margin: 4px 4px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.empty .ic { width: 28px; height: 28px; stroke-width: 1.5; margin-bottom: 6px; color: var(--line-2); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn-row .btn { width: 100%; }
#regionPanel .angle-presets { display: inline-flex; margin-top: 6px; }

.transfer { margin: 0 14px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); flex: none; }
.transfer > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 13px; cursor: pointer; font-weight: 650; }
.transfer > summary::-webkit-details-marker { display: none; }
.transfer > summary .ic:first-child { color: var(--accent-text); }
.transfer > summary .chev { margin-left: auto; }
.transfer ol { margin: 0; padding: 0 13px 12px; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 7px; }
.transfer li { counter-increment: s; display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 12px; color: var(--text-2); }
.transfer li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text); }
.transfer li b { color: var(--text); font-weight: 600; }

/* Garn-Auswahl */
.popover {
  position: fixed; z-index: 30; width: 360px; max-height: 440px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 16px 48px rgba(0, 0, 0, .22); display: flex; flex-direction: column; overflow: hidden;
}
.pop-head { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.pop-head strong { white-space: nowrap; }
.pop-head input { height: 30px; }
.pop-head button { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.pop-head button:hover { background: var(--surface-2); }
.thread-grid { overflow-y: auto; padding: 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.thread-grid button { display: flex; gap: 8px; align-items: center; border: 0; background: none; padding: 6px; border-radius: 8px; text-align: left; font-size: 12px; line-height: 1.25; }
.thread-grid button:hover { background: var(--surface-2); }
.thread-grid .swatch { width: 24px; height: 24px; border-radius: 6px; }
.thread-grid small { color: var(--muted); }
.pop-foot { border-top: 1px solid var(--line); padding: 8px 12px; font-size: 12px; color: var(--text-2); }
.pop-foot label { display: flex; align-items: center; gap: 8px; }
.pop-foot input[type=color] { width: 34px; height: 24px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 2px; background: var(--surface); }

.toast {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); background: #16181d; color: #fff; padding: 10px 16px;
  border-radius: 12px; z-index: 40; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: min(560px, 90vw); font-size: 12.5px; font-weight: 500;
  animation: toastIn .2s ease-out;
}
.toast.err { background: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ------------------------------------------------------------------ Schmale Bildschirme */
@media (max-width: 1280px) {
  .tb-actions .btn.ghost span { display: none; }
  .tb-actions .btn.ghost { width: 32px; padding: 0; }
  .seg button span { display: none; }
  .seg button { padding: 0 10px; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .panel.left { grid-row: 1 / 3; }
  .panel.right { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); max-height: 42vh; }
  .sim-info { display: none; }
}
@media (max-width: 760px) {
  body { overflow: auto; height: auto; }
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .doc { display: none; }
  .tb-actions { flex-wrap: wrap; width: 100%; }
  .export { margin-left: auto; }
  .layout { display: flex; flex-direction: column; }
  .stage { height: 72vh; flex: none; }
  .panel.left { order: 2; border-right: 0; }
  .panel.right { order: 3; max-height: none; overflow: visible; }
  .f-player { width: calc(100% - 32px); }
  .f-tools { top: auto; bottom: 80px; transform: none; flex-direction: row; }
  .f-top { max-width: calc(100% - 32px); top: 60px; }
  .f-zoom { top: 12px; right: 16px; }
}
@media print { body { overflow: visible; } }

/* ------------------------------------------------------------------ Einfach / Profi */
body:not(.pro) .pro-only { display: none !important; }
.sec-hint { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.choice.three { grid-template-columns: repeat(3, 1fr); }
.choice button {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px 8px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: 11.5px; font-weight: 600; line-height: 1.15;
}
.choice button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; overflow: hidden; }
.choice button:hover { border-color: var(--text-2); color: var(--text); }
.choice button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice button small { font-weight: 500; font-size: 10.5px; opacity: .75; }
.pro-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; color: var(--text-2); font-size: 12.5px; }
.pro-row b { color: var(--text); font-weight: 650; display: block; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 230px; padding: 6px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.menu button, .menu label {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px;
  font-size: 13px; color: var(--text); text-align: left; cursor: pointer; font-weight: 500;
}
.menu button:hover, .menu label:hover { background: var(--surface-2); }
.menu .ic { color: var(--text-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu .switch { margin-left: auto; }
.more-msgs { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.color-item.simple { grid-template-columns: 36px minmax(0, 1fr) auto; padding-left: 10px; }

/* Garnfolge umsortieren */
.seq-hint { margin-top: 2px; }
.seq.editable li { grid-template-columns: 14px 18px 22px minmax(0, 1fr) auto auto; gap: 8px; padding: 6px 4px; border-radius: 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.seq.editable li:hover { background: var(--surface-2); }
.seq.editable li.dragging { opacity: .4; }
.seq.editable li.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.seq.editable li.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.seq .grip { color: var(--muted); cursor: grab; display: grid; place-items: center; }
.seq .grip .ic { width: 14px; height: 14px; }
.seq .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seq .mv { display: flex; gap: 2px; }
.seq .mv button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-2); display: grid; place-items: center; padding: 0; }
.seq .mv button:hover:not(:disabled) { border-color: var(--text-2); color: var(--text); }
.seq .mv button:disabled { opacity: .3; cursor: default; }
.seq .mv .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.seq-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.seq-foot .hint { display: inline-flex; align-items: center; gap: 5px; }
.seq-foot .hint .ic { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ An Skitch senden */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .35); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(2px); }
.sk-body {
  width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); padding: 18px 18px 14px;
}
.sk-head { display: flex; align-items: center; gap: 10px; }
.sk-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sk-title > .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.sk-title b { display: block; font-size: 15px; }
.sk-title small { color: var(--muted); font-size: 12px; }
.sk-pill { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.sk-pill.on { background: var(--accent); color: var(--on-accent); }
.sk-x { width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.sk-x:hover { background: var(--surface-2); color: var(--text); }
.sk-help { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); font-size: 12.5px; }
.sk-help.info { background: var(--surface-2); border-color: var(--line); }
.sk-help > .ic { color: var(--warn); margin-top: 1px; width: 18px; height: 18px; }
.sk-help.info > .ic { color: var(--text-2); }
.sk-help > div > b { display: block; font-size: 13px; }
.sk-help p { margin: 3px 0 0; color: var(--text-2); }
.sk-help ol { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.sk-help code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); }
.sk-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.sk-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sk-steps li:first-child { border-top: 0; }
.sk-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line-2); color: var(--muted); }
.sk-steps li.active .sk-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sk-steps li.done .sk-n { background: var(--surface-3); border-color: var(--surface-3); color: var(--text); }
.sk-steps li.done .sk-n { font-size: 0; }
.sk-steps li.done .sk-n::before { content: "✓"; font-size: 13px; }
.sk-steps li.todo { opacity: .5; }
.sk-steps b { font-size: 13.5px; }
.sk-steps small { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.sk-steps .btn { margin-top: 10px; }
.sk-do { margin: 8px 0 0; font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sk-do .ic { width: 16px; height: 16px; }
.sk-do .swatch, .sk-thread .swatch { width: 14px; height: 14px; border-radius: 4px; }
.sk-change { display: flex; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sk-change > .ic { width: 20px; height: 20px; margin-top: 2px; }
.sk-thread { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; margin: 2px 0; }
.sk-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.sk-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.sk-sub { color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.sk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sk-foot small { color: var(--muted); font-size: 11px; text-align: right; }
.sk-foot a { color: inherit; }
.tip .needle { display: block; margin-top: 5px; color: var(--text-2); }
.tip .needle b { color: var(--text); font-weight: 650; }

/* KI-Reiter */
#kiPanel textarea, #kiPanel input[type="password"] { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; resize: vertical; }
.ki-text { margin: 4px 0 10px; font-size: 12.5px; color: var(--text); line-height: 1.45; }
.ki-liste { display: grid; gap: 8px; margin: 8px 0 10px; }
.ki-zeile { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text); cursor: pointer; }
.ki-zeile input { margin-top: 3px; accent-color: var(--text); }
.ki-zeile small { display: block; color: var(--muted); margin-top: 2px; font-size: 11.5px; line-height: 1.35; }
.ki-hinweise { margin: 10px 0 0; padding-left: 16px; font-size: 12px; color: var(--text-2); }
.linkbtn { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
#manualDir[hidden], .switch-row[hidden], #rightTabs button[hidden] { display: none; }

.ki-seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.ki-seg.klein { margin-top: 8px; }
.ki-zugang { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ki-datei { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.ki-mehr { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.ki-mehr summary { cursor: pointer; }
.ki-schritte { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text); display: grid; gap: 8px; }
.ki-schritte textarea { width: 100%; }
.ki-schritte a { color: inherit; }
.ki-erstellt { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; font-size: 12.5px; color: var(--text); }
.ki-erstellt p { margin: 4px 0 0; line-height: 1.45; }
.ki-mehr code { font-size: 11px; overflow-wrap: anywhere; }
.drop-ki { display: block; margin: 10px auto 0; font-size: 13px; color: var(--text-2); }

/* Nur auf der reinen Webseite: Das Stick-Programm lädt einmal in den Browser */
.motor-laden { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(3px); }
.motor-karte { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.motor-karte b { font-size: 15px; }
.motor-karte p { margin: 8px 0 12px; color: var(--text-2); }
.motor-karte small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.45; }
.motor-balken { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.motor-balken i { display: block; height: 100%; width: 3%; background: var(--accent); transition: width .4s ease; }
.motor-laden.fehler .motor-balken { display: none; }
.motor-laden.fehler p { color: var(--err); }

/* Fehlercode unter der Meldung: zum Nachschauen oder Weitergeben, lässt sich markieren und kopieren */
.fehlercode { display: block; margin-top: 6px; font: 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-2); word-break: break-word; user-select: all; }
