/* OutfitLoop-Tool – Designsystem der Landingpage (dunkel, Lime-Akzent). Schriften lokal, keine Fremd-Domains.
   Akzentfarbe: config/brand.json → colors (hier als Standard gesetzt). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic.woff2) format('woff2'); }
/* Hook-Schriften (gleiche Dateien wie im Editor; werden erst geladen, wenn sie gebraucht werden) */
@font-face { font-family: 'EDT Inter'; font-weight: 500 900; font-display: swap; src: url(/assets/editor/fonts/edt-inter.woff2) format('woff2'); }
@font-face { font-family: 'EDT Inter'; font-style: italic; font-weight: 500 900; font-display: swap; src: url(/assets/editor/fonts/edt-inter-italic.woff2) format('woff2'); }
@font-face { font-family: 'EDT Bebas Neue'; font-weight: 400; font-display: swap; src: url(/assets/editor/fonts/edt-bebas-neue.woff2) format('woff2'); }
@font-face { font-family: 'EDT Cinzel'; font-weight: 600 900; font-display: swap; src: url(/assets/editor/fonts/edt-cinzel.woff2) format('woff2'); }
@font-face { font-family: 'EDT Montserrat'; font-weight: 700; font-display: swap; src: url(/assets/editor/fonts/edt-montserrat-bold.woff2) format('woff2'); }
@font-face { font-family: 'EDT DM Serif Display'; font-weight: 400; font-display: swap; src: url(/assets/editor/fonts/edt-dm-serif-display.woff2) format('woff2'); }

:root {
  --accent: #c8ff3d; --accent-rgb: 200 255 61; --accent-ink: #0c1200;
  --bg: #09090c; --bg-alt: #0e0e13; --surface-1: #131319; --surface-2: #1a1a22; --surface-3: #23232d;
  --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .14);
  --text: #f4f4f6; --text-2: #b9b9c6; --text-3: #9494a3;
  --warn: #ffc266; --danger: #ff7a7a; --info: #8fb6ff;
  --font-display: 'Bricolage Grotesque', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-accent: 'Instrument Serif', Georgia, serif;
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(var(--accent-rgb) / .3); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.15em; }
.muted { color: var(--text-3); }
.small { font-size: .82rem; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
em.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; line-height: 1.2; text-decoration: none; text-align: center; background: rgb(255 255 255 / .04); border: 1px solid var(--line-2); transition: background .16s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: rgb(255 255 255 / .09); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .18); }
.btn-danger { color: var(--danger); border-color: rgb(255 122 122 / .4); }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: .8rem; }
.btn-icon { width: 40px; padding: 0; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 0; min-height: 0; text-decoration: underline; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.stack { display: grid; gap: 14px; align-content: start; }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: .78rem; color: var(--text-3); }
.field .err { font-size: .8rem; color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; }
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px 14px; min-width: 0; }
legend { font-size: .82rem; font-weight: 700; color: var(--text-2); padding: 0 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: .84rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg input:checked + span { background: var(--text); color: #0b0b0f; border-color: transparent; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, rgb(var(--accent-rgb) / .08), transparent); }
.auth-card { width: min(440px, 100%); background: var(--surface-1); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; box-shadow: 0 40px 80px -24px rgb(0 0 0 / .85); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem/1 var(--font-display); letter-spacing: -.025em; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-weight: 800; }
.auth-foot { font-size: .8rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.qr { background: #fff; padding: 10px; border-radius: 10px; width: 200px; height: 200px; }
.qr svg { width: 100%; height: 100%; }

/* ---------- Shell ---------- */
.shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .shell { grid-template-columns: 240px minmax(0, 1fr); } }
.side { background: var(--surface-1); border-right: 1px solid var(--line); padding: 14px 10px; display: none; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (min-width: 980px) { .side { display: flex; } }
.side.is-open { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 90; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .55); }
.side-brand { padding: 4px 8px 6px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 12px; color: var(--text-2); font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav a:hover { background: rgb(255 255 255 / .05); color: var(--text); }
.nav a[aria-current="page"] { background: rgb(var(--accent-rgb) / .12); color: var(--text); }
.nav a[aria-current="page"] .i { color: var(--accent); }
.nav .count { margin-left: auto; font-size: .7rem; font-weight: 800; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.nav .count.warn { background: var(--warn); color: #241600; }
.plan-box { margin-top: auto; display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; }
.plan-box b { font-size: .9rem; }
.meter { height: 6px; border-radius: 6px; background: rgb(255 255 255 / .08); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; width: 0; transition: width .5s var(--ease); }
.meter.warn i { background: var(--warn); }
.meter.full i { background: var(--danger); }
.meter-row { display: grid; gap: 4px; }
.meter-row span { display: flex; justify-content: space-between; gap: 8px; color: var(--text-3); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px clamp(16px, 2.6vw, 28px); background: rgb(9 9 12 / .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .menu-btn { display: inline-flex; }
@media (min-width: 980px) { .top .menu-btn, .top .brand { display: none; } }
/* Live-Punkt (SSE-Verbindung): verbunden = nur Punkt + Tooltip; Text nur bei offline/verbindet neu */
.live { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 2px; font-size: .76rem; color: var(--warn); cursor: default; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.live.on i { opacity: .85; }
.live-txt:empty { display: none; }
.live.on i { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .live.on i { animation: ping 2s infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .5); } 70% { box-shadow: 0 0 0 7px rgb(var(--accent-rgb) / 0); } }
.top-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.top-page-actions { display: contents; }
/* Sprachwahl: Flagge + Kürzel */
.top-lang { position: relative; }
.top-lang-btn { gap: 6px; padding-inline: 10px 9px; min-height: 36px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.top-lang-caret { font-size: .7rem; color: var(--text-3); }
.flag { display: block; width: 18px; height: 12px; border-radius: 2px; flex: none; }
.top-lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 112px; margin: 0; padding: 6px; list-style: none; display: grid; gap: 2px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 32px -12px rgb(0 0 0 / .8); }
.top-lang-menu[hidden] { display: none; }
.top-lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .86rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; text-align: left; }
.top-lang-opt:hover, .top-lang-opt:focus-visible { background: rgb(255 255 255 / .07); }
.top-lang-opt[aria-current=true] { color: var(--accent); }
.top-lang-opt .i { width: 15px; height: 15px; margin-left: auto; }
.content { padding: clamp(16px, 2.6vw, 28px); display: grid; gap: 18px; align-content: start; min-width: 0; max-width: 1280px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; }
.page-head p { color: var(--text-3); font-size: .9rem; max-width: 70ch; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: .86rem; border: 1px solid; }
.banner.info { background: rgb(143 182 255 / .08); border-color: rgb(143 182 255 / .3); }
.banner.warn { background: rgb(255 194 102 / .08); border-color: rgb(255 194 102 / .35); }
.banner.danger { background: rgb(255 122 122 / .08); border-color: rgb(255 122 122 / .35); }
.banner.ok { background: rgb(var(--accent-rgb) / .08); border-color: rgb(var(--accent-rgb) / .3); }

/* ---------- Karten, Kennzahlen, Pillen ---------- */
.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.kpis { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.kpi { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--line); }
.kpi span { font-size: .76rem; color: var(--text-3); font-weight: 600; }
.kpi b { font: 700 1.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi b small { font-size: .55em; color: var(--text-3); }
.cols-2 { display: grid; gap: 12px; }
@media (min-width: 860px) { .cols-2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 650; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; color: var(--text-2); background: rgb(255 255 255 / .07); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.running, .pill.queued_job, .pill.rendering { color: var(--info); background: rgb(143 182 255 / .13); }
.pill.review, .pill.retry_wait, .pill.refs_pending { color: var(--warn); background: rgb(255 194 102 / .13); }
.pill.approved, .pill.done, .pill.ready, .pill.active { color: var(--accent); background: rgb(var(--accent-rgb) / .12); }
.pill.failed, .pill.rejected, .pill.cancelled { color: var(--danger); background: rgb(255 122 122 / .12); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); margin: 0 4px 4px 0; }
.empty { color: var(--text-3); font-size: .9rem; padding: 18px; text-align: center; border: 1px dashed var(--line-2); border-radius: 14px; }
.progress { display: block; height: 6px; border-radius: 6px; background: rgb(255 255 255 / .08); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--info); width: 0; transition: width .4s var(--ease); }
.stages { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--text-3); }
.stages li.done { color: var(--text-2); }
.stages li.now { color: var(--text); font-weight: 600; }
.ticker { list-style: none; padding: 0; display: grid; }
.ticker li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.ticker li:last-child { border-bottom: 0; }
.ticker time { color: var(--text-3); font-size: .74rem; font-variant-numeric: tabular-nums; }

/* ---------- Tabellen (mobil als Karten) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .prog { display: inline-block; vertical-align: middle; width: 80px; margin-left: 8px; }
@media (max-width: 760px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--line); }
  .table th, .table td { border: 0; padding: 0; min-width: 0; }
  .table tbody th { grid-column: 1 / -1; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
  .table td.wide, .table td.actions { grid-column: 1 / -1; }
  .table td.num { text-align: left; }
}

/* ---------- Dialog, Toast ---------- */
/* Mittig im sichtbaren Fenster: der Reset „* { margin: 0 }“ oben nimmt dem nativen <dialog> sein margin:auto (dann
   hängt er links oben) → hier ausdrücklich zurücksetzen. Mind. 16 px Abstand zum Rand, Inhalt scrollt im Dialog,
   Kopf und Fußleiste bleiben sichtbar (sticky), Seite dahinter ist gesperrt. */
dialog { position: fixed; inset: 0; margin: auto; background: var(--surface-1); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 0; width: min(640px, calc(100vw - 32px)); max-width: calc(100vw - 32px); height: fit-content; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 40px 80px -24px rgb(0 0 0 / .9); }
dialog.dlg-wide { width: min(960px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html:has(dialog[open]) { overflow: hidden; }
.dlg { container-type: inline-size; display: grid; gap: 14px; padding: 0 clamp(16px, 3vw, 24px); min-width: 0; }
.dlg > :last-child:not(.dlg-foot):not(:has(> .dlg-foot:last-child)) { margin-bottom: clamp(16px, 3vw, 22px); }
.dlg-head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: clamp(16px, 3vw, 20px) 0 8px; background: var(--surface-1); }
.dlg-head h2 { min-width: 0; overflow-wrap: anywhere; }
.dlg-foot { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 10px 0 clamp(16px, 3vw, 20px); background: var(--surface-1); }
/* breite Dialoge: Vorschau + Regler nebeneinander, sobald der Dialog selbst ≥ 760 px breit ist (nicht das Fenster) */
.dlg .layout-grid { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 760px) { .dlg .layout-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; } }
.toasts { position: fixed; z-index: 300; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); }
.toast { padding: 11px 14px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); font-size: .88rem; box-shadow: 0 16px 32px -16px rgb(0 0 0 / .8); display: flex; gap: 10px; align-items: flex-start; }
.toast.error { border-color: rgb(255 122 122 / .5); }
.toast.ok { border-color: rgb(var(--accent-rgb) / .5); }
.toast a { color: var(--accent); font-weight: 600; }

/* ---------- Listen/Kacheln ---------- */
.tiles { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.prod { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--line); min-width: 0; }
.prod .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--text-3); font-size: .7rem; }
.prod > span { display: grid; min-width: 0; line-height: 1.25; font-size: .86rem; }
.prod .brandname { font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.prod .meta { font-size: .74rem; color: var(--text-3); }
.prod .price { font: 700 .95rem/1 var(--font-display); white-space: nowrap; text-align: right; }
.prod.is-selected { border-color: var(--accent); background: rgb(var(--accent-rgb) / .06); }
.prod input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.fig-card { display: grid; gap: 10px; align-content: start; }
.fig-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
/* Figuren: Portrait-Karten mit Hover-Galerie (Figuren-Agent) */
.fig-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.fig-portrait { padding: 0; overflow: hidden; }
.fig-portrait > :not(.fig-media) { margin-inline: 14px; }
.fig-portrait > .fig-top { margin-top: 12px; }
.fig-portrait > :last-child { margin-bottom: 14px; }
.fig-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-3); overflow: hidden; }
.fig-main { position: absolute; inset: 0; }
.fig-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.fig-ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 3rem var(--font-display); color: var(--text-3); }
.fig-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 28px 10px 10px; background: linear-gradient(to top, rgb(0 0 0 / .75), transparent); opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.fig-media:hover .fig-strip, .fig-media:focus-within .fig-strip { opacity: 1; transform: none; }
@media (hover: none) { .fig-strip { opacity: 1; transform: none; } }
.fig-thumb { flex: 1 1 0; min-width: 0; max-width: 56px; aspect-ratio: 1; padding: 0; border: 2px solid rgb(255 255 255 / .55); border-radius: 9px; overflow: hidden; background: none; }
.fig-thumb:hover, .fig-thumb:focus-visible { border-color: var(--accent); }
.fig-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.fig-name { font: 700 1.15rem var(--font-display); }
.fig-tags { display: flex; flex-wrap: wrap; }
.fig-look { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; display: grid; place-items: center; font-weight: 800; color: var(--text-2); }
.refs { display: flex; gap: 6px; flex-wrap: wrap; }
.refs img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.format-cards { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.format-cards label { display: grid; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-1); cursor: pointer; position: relative; min-height: 100%; }
.format-cards input { position: absolute; opacity: 0; }
.format-cards input:checked + .fc { outline: 2px solid var(--accent); outline-offset: 10px; border-radius: 4px; }
.format-cards label:has(input:checked) { border-color: var(--accent); background: rgb(var(--accent-rgb) / .07); }
.format-cards label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.format-cards label:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.format-cards .fid { font-size: .7rem; font-weight: 800; color: var(--text-3); letter-spacing: .06em; }
.format-cards b { font-size: .92rem; }
.format-cards small { font-size: .76rem; color: var(--text-3); }
.hookstyles { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); }
.hookstyles label { position: relative; display: grid; gap: 4px; justify-items: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; text-align: center; }
.hookstyles input { position: absolute; opacity: 0; }
.hookstyles label:has(input:checked) { border-color: var(--accent); background: rgb(var(--accent-rgb) / .08); }
.hookstyles label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hookstyles .aa { font-size: 1.5rem; line-height: 1; }
.hookstyles small { font-size: .74rem; color: var(--text-2); }
.f-clean { font-family: 'EDT Inter', Inter, sans-serif; font-weight: 600; }
.f-italic { font-family: 'EDT Inter', Inter, sans-serif; font-weight: 600; font-style: italic; }
.f-heavy { font-family: 'EDT Inter', Inter, sans-serif; font-weight: 860; text-transform: uppercase; }
.f-bebas { font-family: 'EDT Bebas Neue', 'Arial Narrow', sans-serif; text-transform: uppercase; }
.f-cinzel { font-family: 'EDT Cinzel', Georgia, serif; font-weight: 700; text-transform: uppercase; }
.f-montserrat { font-family: 'EDT Montserrat', 'Segoe UI', sans-serif; font-weight: 700; }
.f-editorial { font-family: 'EDT DM Serif Display', Georgia, serif; }

/* ---------- Review / Slides ---------- */
.posts-grid { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.post-card { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--line-2); }
.post-card .cover { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; border-radius: 10px; background: var(--surface-3); }
.slides { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.slide { flex: 0 0 auto; width: clamp(120px, 28vw, 180px); display: grid; gap: 6px; align-content: start; scroll-snap-align: start; }
.slide .stack { gap: 6px; }
.slide .stack .row { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.slide img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--surface-3); }
.slide .row { justify-content: space-between; font-size: .76rem; color: var(--text-3); }
.big-slide { width: min(360px, 100%); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: var(--surface-3); }

/* ---------- Statistik ---------- */
/* Nur das Diagramm selbst (nicht das Icon in der Überschrift!) – es wird in echter Pixelbreite gezeichnet, nie gestreckt */
.chart-plot { width: 100%; min-width: 0; }
.chart-plot .chart-svg { width: 100%; height: auto; max-width: none; overflow: visible; }
.chart .card-h .i { width: 1.1em; height: 1.1em; }
.baseline { stroke: rgb(255 255 255 / .22); }
.ax-today { fill: var(--text); }
.bar-past { fill: rgb(var(--accent-rgb) / .55); }
.bar-today { fill: var(--accent); }
.bar-plan { fill: rgb(255 255 255 / .03); stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ax { fill: var(--text-3); font-size: 11px; font-weight: 600; }
.val { fill: var(--text-2); font-size: 12px; font-weight: 700; }
.gridline { stroke: rgb(255 255 255 / .07); }
/* Posts pro Tag – schlanke Säulen (Variante 1, 10.10.2026) */
.sc-head { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; justify-content: space-between; }
.sc-sum { font-size: .82rem; color: var(--text-3); margin: 0; }
.sc-sum b { color: var(--text); font: 700 1.3rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.sc-sub { font-size: .78rem; color: var(--text-3); margin: 0; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 2px 0 0; font-size: .78rem; color: var(--text-2); }
.sc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sc-legend .k-done { background: rgb(var(--accent-rgb) / .62); }
.sc-legend .k-today { background: var(--accent); }
.sc-legend .k-plan { border: 1.5px dashed var(--text-3); }
.sc-legend .k-ref { width: 18px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--text-2); vertical-align: 4px; }
.sc-plot { position: relative; }
.sc-done { fill: rgb(var(--accent-rgb) / .62); }
.sc-today { fill: var(--accent); }
.sc-plan { fill: rgb(255 255 255 / .03); stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sc-todayband { fill: rgb(var(--accent-rgb) / .045); }
.sc-slot { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 3; }
.sc-ref { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 6 4; opacity: .7; }
.sc-hit { fill: transparent; }
.sc-col { outline: none; cursor: default; }
.sc-col:focus-visible .sc-hit { stroke: var(--accent); stroke-width: 2; rx: 8px; }
.sc-col.is-hover .sc-done { fill: rgb(var(--accent-rgb) / .85); }
.sc-col.is-hover .sc-plan { stroke: var(--text); }
.sc-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; font-size: .78rem; color: var(--text); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 8px 24px rgb(0 0 0 / .45); display: grid; gap: 1px; }
.sc-tip[hidden] { display: none; }
.sc-tip b { font-weight: 700; }
.sc-tip span, .sc-tip small { color: var(--text-2); }
.sc-empty { position: absolute; transform: translate(-50%, -50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: .82rem; white-space: nowrap; max-width: calc(100% - 40px); white-space: normal; text-align: center; }
.sc-hint { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sc-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-grow .45s var(--ease, ease-out) both; }
}
@keyframes sc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hbars { list-style: none; padding: 0; display: grid; gap: 9px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 3ch; gap: 10px; align-items: center; font-size: .82rem; color: var(--text-2); }
.hbars .hb { height: 10px; border-radius: 0 4px 4px 0; background: rgb(255 255 255 / .05); overflow: hidden; }
.hbars .hb i { display: block; height: 100%; background: var(--accent); opacity: .8; width: 0; }
.hbars b { text-align: right; color: var(--text); }

/* ---------- Editor-Container ---------- */
.editor-wrap { display: grid; gap: 12px; }
.edt-defs { position: absolute; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 420px) {
  .content { padding: 14px 16px; }
  .btn { white-space: normal; }
}

/* Kopfzeile auf schmalen Bildschirmen kompakt halten */
@media (max-width: 640px) {
  .top { position: static; }
  .top .lbl { display: none; }
  .top .btn-sm { padding: 4px 10px; }
}

/* Layout-Editor (Phase 2) */
.layout-grid { display: grid; gap: 14px; }
/* Verlaufs-Knöpfe im Layout-Editor (Schritt zurück/vor, Original ansehen, Auf Standard zurücksetzen): 2 Spalten, Text bricht um */
.hist-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hist-row .hist-btn { white-space: normal; justify-content: flex-start; text-align: left; min-height: 38px; }
.hist-row .hist-btn[aria-pressed="true"] { background: rgb(var(--accent-rgb) / .14); border-color: rgb(var(--accent-rgb) / .5); }
.hist-hint { color: var(--text-3); font-weight: 500; }
@media (min-width: 900px) { .layout-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; } }
.layout-stage { position: relative; width: min(360px, 100%); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: 14px; overflow: hidden; background: var(--surface-3); touch-action: none; }
.layout-canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.eye-stage { cursor: crosshair; }
.eye-stage:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; }
.eye-marker { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgb(0 0 0 / .55); pointer-events: none; }
.eye-manual { max-width: 360px; margin-inline: auto; width: 100%; }
/* D4 v2: Augen verpixeln – automatische Vorschau, Stil-Regler, Nachbearbeiten */
.eye-lead { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgb(var(--accent-rgb) / .08); border: 1px solid rgb(var(--accent-rgb) / .28); font-size: .9rem; }
.eye-lead .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.eye-prev-col { min-width: 0; }
.eye-stage2 { position: relative; width: min(360px, 100%); margin-inline: auto; border-radius: 14px; overflow: hidden; background: var(--surface-3); touch-action: none; }
.eye-stage2 .eye-canvas { display: block; width: 100%; height: 100%; }
.eye-stage2:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; }
.eye-stage2.is-correct { cursor: crosshair; box-shadow: 0 0 0 2px var(--info); }
.eye-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eye-ov-box { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1.5px rgb(0 0 0 / .9)); }
.eye-ov-box.is-ghost { stroke: var(--accent); opacity: .85; }
.eye-ov-dot { fill: var(--accent); stroke: #0b0b0f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.eye-status { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.eye-status .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.eye-status.is-ok .i { color: var(--ok, #3ddc84); } .eye-status.is-warn { color: var(--warn); } .eye-status.is-info .i { color: var(--info); }
.eye-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.eye-ref { display: grid; gap: 3px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font-size: .72rem; cursor: pointer; min-width: 0; }
.eye-ref img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: 7px; }
.eye-ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eye-ref[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--text); }
.eye-ref:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eye-prev-actions { flex-wrap: wrap; }
.eye-correct { display: grid; gap: 8px; padding: 10px; border-radius: 12px; border: 1px dashed var(--info); }
.eye-ctrls { min-width: 0; }
.eye-vars { padding: 10px 12px 12px; }
.eye-var-row { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eye-var { position: relative; cursor: pointer; min-width: 0; }
.eye-var input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.eye-var-card { display: grid; gap: 4px; justify-items: center; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-1); text-align: center; min-width: 0; }
.eye-var-card b { font-size: .82rem; }
.eye-var-card small { font-size: .7rem; color: var(--text-3); overflow-wrap: anywhere; }
.eye-var-mini { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-3); }
.eye-var:has(input:checked) .eye-var-card { border-color: var(--accent); background: rgb(var(--accent-rgb) / .08); box-shadow: 0 0 0 1px var(--accent); }
.eye-var:has(input:focus-visible) .eye-var-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.eye-range label { display: inline-flex; gap: 6px; align-items: center; }
.eye-range-hint { margin: 2px 0 0; }
.eye-dial { width: 18px; height: 18px; color: var(--accent); flex: none; }
.eye-dial line { transition: transform .15s var(--ease); }
@media (prefers-reduced-motion: reduce) { .eye-dial line { transition: none; } }
.eye-edit-stage { cursor: default; }
.eye-ov.is-edit { pointer-events: auto; }
.eye-h-body { fill: transparent; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; cursor: move; filter: drop-shadow(0 0 1.5px rgb(0 0 0 / .9)); }
.eye-h.is-sel .eye-h-body { stroke: var(--accent); stroke-dasharray: none; stroke-width: 2; }
.eye-h-corner { fill: #fff; stroke: #0b0b0f; stroke-width: 1.5; cursor: nwse-resize; vector-effect: non-scaling-stroke; }
.eye-h-rot { fill: var(--accent); stroke: #0b0b0f; stroke-width: 1.5; cursor: grab; vector-effect: non-scaling-stroke; }
.eye-h-stem { stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.eye-angle { flex-wrap: nowrap; align-items: center; }
.eye-angle-in { max-width: 7.5em; }
.eye-edit-ctrls .row { flex-wrap: wrap; }
.slide .eye-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.warn { color: var(--warn); border-color: rgb(255 194 102 / .4); }
.st-overlay { position: absolute; inset: 0; }
.st-safe { position: absolute; border: 1px dashed rgb(255 255 255 / .7); outline: 1px dashed rgb(0 0 0 / .35); outline-offset: -2px; pointer-events: none; border-radius: 6px; }
.st-handle { position: absolute; padding: 0; background: transparent; border: 2px solid transparent; border-radius: 10px; cursor: grab; touch-action: none; }
.st-handle:hover { border-color: rgb(255 255 255 / .55); }
.st-handle.is-sel { border-color: var(--accent); box-shadow: 0 0 0 1px rgb(0 0 0 / .45); }
.st-handle:active { cursor: grabbing; }
.st-handle:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.st-guide { position: absolute; background: #ff3d8b; pointer-events: none; z-index: 60; }
.st-guide-x { top: 0; bottom: 0; width: 1px; }
.st-guide-y { left: 0; right: 0; height: 1px; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); }
.custom-color { display: inline-flex; align-items: center; gap: 6px; }
.custom-color input[type=color] { width: 38px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; }
.seg button[aria-pressed="true"] { background: var(--text); color: #0b0b0f; }

/* ===== .btn-del-* : Löschen-Button, 5 Varianten (del-button.js · config ui.deleteButton · ?del=1..5) =====
   Ruhezustand = neutraler .btn; Hover UND Tastaturfokus = rot (Fokusring zusätzlich), Touch ohne Hover bleibt neutral. */
.btn-del { --btn-del-red: #ff7a7a; --btn-del-solid: #c62635; position: relative; }
.btn-del::before { content: ""; position: absolute; inset: -3px; } /* Klickfläche >= 40 px, optisch unverändert */
@media (max-width: 640px), (pointer: coarse) { .btn-del::before { inset: -5px; } }
.btn-del:focus-visible { outline: 2px solid var(--btn-del-red); outline-offset: 2px; }
.btn-del-menu .btn-del-item:focus-visible { outline: 2px solid var(--btn-del-red); outline-offset: -2px; }
/* V1 Ghost-Rot */
.btn-del-v1:focus-visible { color: var(--btn-del-red); border-color: var(--btn-del-red); background: rgb(255 122 122 / .12); }
/* V2 Rot gefüllt */
.btn-del-v2 { transition: background-color .15s, border-color .15s, color .15s; }
.btn-del-v2:focus-visible { color: #fff; border-color: var(--btn-del-solid); background: var(--btn-del-solid); }
@media (hover: hover) {
  .btn-del-v1:hover { color: var(--btn-del-red); border-color: var(--btn-del-red); background: rgb(255 122 122 / .12); }
  .btn-del-v2:hover { color: #fff; border-color: var(--btn-del-solid); background: var(--btn-del-solid); }
}
/* V3 Pille mit Text / V4 Zwei-Schritt: unsichtbarer Platzhalter reserviert die ausgeklappte Breite (kein Layout-Sprung) */
.btn-del-slot { display: inline-grid; vertical-align: middle; }
.btn-del-slot > * { grid-area: 1 / 1; }
.btn-del-sizer { visibility: hidden; pointer-events: none; padding-left: 12px; padding-right: 14px; }
.btn-del-slot .btn-del { justify-self: start; align-self: start; max-width: 40px; padding: 4px 0 4px 12px; justify-content: flex-start; overflow: visible; white-space: nowrap; transition: max-width .2s ease, background-color .15s, border-color .15s, color .15s, padding .2s; }
.btn-del-slot .btn-del-text { opacity: 0; transition: opacity .15s; }
.btn-del-slot .btn-del:focus-visible, .btn-del-v4 .btn-del.is-armed { max-width: 240px; padding-right: 14px; }
.btn-del-slot .btn-del:focus-visible .btn-del-text, .btn-del-v4 .btn-del.is-armed .btn-del-text { opacity: 1; }
.btn-del-v3 .btn-del:focus-visible { color: #fff; border-color: var(--btn-del-solid); background: var(--btn-del-solid); }
.btn-del-v4 .btn-del:focus-visible { color: var(--btn-del-red); border-color: var(--btn-del-red); background: rgb(255 122 122 / .12); }
.btn-del-v4 .btn-del.is-armed, .btn-del-v4 .btn-del.is-armed:focus-visible { color: #fff; border-color: var(--btn-del-solid); background: var(--btn-del-solid); }
.btn-del-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) {
  .btn-del-slot .btn-del:hover { max-width: 240px; padding-right: 14px; }
  .btn-del-slot .btn-del:hover .btn-del-text { opacity: 1; }
  .btn-del-v3 .btn-del:hover { color: #fff; border-color: var(--btn-del-solid); background: var(--btn-del-solid); }
  .btn-del-v4 .btn-del:hover { color: var(--btn-del-red); border-color: var(--btn-del-red); background: rgb(255 122 122 / .12); }
  .btn-del-v4 .btn-del.is-armed:hover { color: #fff; border-color: var(--btn-del-solid); background: var(--btn-del-solid); }
}
/* V4: Text „Sicher?“ nur im scharfen Zustand, nicht bei bloßem Hover/Fokus */
.btn-del-v4 .btn-del:not(.is-armed) { max-width: 40px !important; padding-right: 0 !important; }
.btn-del-v4 .btn-del:not(.is-armed) .btn-del-text { opacity: 0 !important; }
/* V5 Mehr-Menü */
.btn-del-dots { font-size: 1.25rem; line-height: 1; font-weight: 700; transform: translateY(-2px); }
.btn-del-menu { position: fixed; z-index: 1000; min-width: 190px; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgb(0 0 0 / .5); display: grid; gap: 2px; }
.btn-del-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; font-size: .9rem; font-weight: 600; }
.btn-del-item:hover, .btn-del-item:focus { background: rgb(255 255 255 / .09); }
.btn-del-item.is-del:hover, .btn-del-item.is-del:focus { color: var(--btn-del-red, #ff7a7a); background: rgb(255 122 122 / .14); }
@media (max-width: 640px), (pointer: coarse) { .btn-del-item { min-height: 44px; } }
@media (hover: none) { .btn-del-item.is-del:hover { color: var(--text); background: none; } }

/* ===== .acc-avatar-* : runder Avatar vor dem Account-Namen ===== */
.acc-avatar-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acc-avatar-txt { min-width: 0; overflow-wrap: anywhere; }
.acc-avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-3); display: inline-grid; place-items: center; }
.acc-avatar-sm { width: 28px; height: 28px; }
.acc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: center 20%; display: block; }
.acc-avatar-ini { font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: var(--text); }
.acc-avatar-sm .acc-avatar-ini { font-size: .65rem; }
.acc-avatar-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--bg); }
@media (max-width: 640px) { .acc-avatar:not(.acc-avatar-sm) { width: 36px; height: 36px; } }

/* Prüfen – Augen-Karte: ein Schalter für diesen Post, Figur-Standard + Zurücksetzen, Meldung mit Rückgängig */
.eye-post-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, rgb(255 255 255 / .12)); border-radius: 12px; }
.eye-post-lbl { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.eye-post-state { flex: none; font-size: .9rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.eye-post-state.is-on { color: #34c759; }
.eye-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.eye-post-meta .eye-post-default { margin: 0; }
.eye-post-meta .btn-link { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; }
.eye-post-meta .btn-link .i { width: 14px; height: 14px; }
.eye-post-dev { color: var(--warn); }
.eye-post-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgb(52 199 89 / .12); }
.eye-post-msg[hidden] { display: none; }
.eye-post-msg > .i { flex: none; width: 16px; height: 16px; color: #34c759; }
.eye-post-msg > span { flex: 1 1 12rem; min-width: 0; }
.eye-post-card .ao-lock { padding: 0; }
