/* Bild-Werkstatt: dunkles Design mit Blauakzenten (kein Orange). */
:root {
  --bg: #0b1017;
  --surface: #121a24;
  --surface-2: #18222f;
  --border: #253244;
  --text: #e6edf7;
  --muted: #8a99ad;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --danger: #f05252;
  --danger-soft: rgba(240, 82, 82, 0.12);
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  min-height: 100vh;
}
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0; font-weight: 600; }
h2 { font-size: 1.05rem; margin: 0 0 .25rem; font-weight: 600; }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; }
.muted { color: var(--muted); margin: 0 0 1rem; }
small { color: var(--muted); font-weight: 400; }

/* Kopfzeile */
.topbar {
  display: flex; align-items: center; gap: 2rem;
  padding: .7rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark.lg { width: 40px; height: 40px; }
.nav { display: flex; gap: .25rem; flex: 1; }
.nav a { color: var(--muted); padding: .4rem .8rem; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.logout { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 1.75rem 1.5rem 4rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }

/* Karten */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}
.empty { text-align: center; padding: 3rem 1rem; }
.empty-title { font-size: 1.1rem; margin: 0 0 .35rem; }
.empty .muted { margin: 0; }

/* Buttons */
.btn {
  font: inherit; cursor: pointer;
  border: 1px solid transparent; border-radius: 8px;
  padding: .5rem 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; margin-top: 1rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-hover); outline-offset: 2px;
}

/* Formulare */
label { display: block; font-weight: 500; margin-bottom: .3rem; }
input, select {
  font: inherit; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 7px;
  padding: .45rem .6rem; width: 100%;
}
input:focus, select:focus { border-color: var(--accent); outline: none; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--danger); }
input:disabled { opacity: .5; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; }
.field-check { justify-content: center; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.hint { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: .25rem; display: block; }
.actions { display: flex; justify-content: flex-end; position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(transparent, var(--bg) 40%); }

/* Meldungen */
.alert { border-radius: 8px; padding: .7rem 1rem; margin: 0 0 1rem; border: 1px solid; }
.alert p { margin: .15rem 0; }
.alert-error { background: var(--danger-soft); border-color: rgba(240, 82, 82, .4); color: #fecaca; }
.alert-success { background: var(--success-soft); border-color: rgba(34, 197, 94, .4); color: #bbf7d0; }

/* Tabelle Modelle */
.table-wrap { overflow-x: auto; }
table.models { border-collapse: collapse; width: 100%; min-width: 980px; }
.models th, .models td { padding: .45rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.models th { font-size: .82rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.models .num { text-align: right; }
.models .center { text-align: center; vertical-align: middle; }
.models tr.new-row td { background: var(--accent-soft); }
.w-id { min-width: 200px; }
.w-name { min-width: 140px; }
.w-num { min-width: 72px; text-align: right; }

/* Login */
.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 360px; padding: 2rem; }
.login-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }

/* --- Etappe 2 ----------------------------------------------------------- */
:root {
  --warning: #facc15;
  --warning-soft: rgba(250, 204, 21, 0.12);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.container-wide { max-width: 1500px; }
textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 7px; padding: .55rem .65rem;
  width: 100%; resize: vertical; line-height: 1.45;
}
textarea:focus { border-color: var(--accent); outline: none; }
textarea:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.mono, pre { font-family: var(--mono); font-size: .85rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row-end { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.dim { color: var(--muted); }
.warn { color: var(--warning); margin: .4rem 0; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; }
.btn-xs { padding: .1rem .45rem; font-size: .8rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(240, 82, 82, .45); }
.btn-danger:hover { background: var(--danger-soft); }
label.btn { display: inline-block; margin: 0; font-weight: 400; }
.alert-list { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
.card-flush { padding: 0; }
.narrow { max-width: 560px; margin: 2rem auto; }
.narrow h1 { margin-bottom: .75rem; }

/* Projektliste */
.new-project { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto; gap: 1rem; align-items: start; }
.new-project-actions { display: flex; gap: .5rem; padding-top: 1.75rem; flex-wrap: wrap; }
@media (max-width: 800px) { .new-project { grid-template-columns: 1fr; } .new-project-actions { padding-top: 0; } }
table.list { border-collapse: collapse; width: 100%; }
.list th, .list td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); text-align: left; }
.list th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.list tr:last-child td { border-bottom: 0; }
.list .num, .scenes .num { text-align: right; }
.muted-cell { color: var(--muted); }

/* Projektkopf und Reiter */
.project-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.crumbs { margin: 0; font-size: .85rem; color: var(--muted); }
.meta-line { margin: .2rem 0 0; }
.project-settings-line { margin: 0; font-size: .85rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { color: var(--muted); padding: .55rem .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }

/* Upload */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem 1rem;
  text-align: center; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-title { font-size: 1.05rem; font-weight: 600; }
.dropzone .muted { margin: 0; font-weight: 400; }
.dropzone-busy { display: none; color: var(--accent-hover); }
.is-busy .dropzone-busy { display: block; }
.is-busy .dropzone { opacity: .7; pointer-events: none; }

/* Bilder-Übersicht */
.assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.asset { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.asset-img { display: block; aspect-ratio: 16 / 10; background: var(--bg); }
.asset-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asset-body { padding: .6rem .75rem .75rem; }
.asset-key { font-family: var(--mono); font-weight: 600; margin: 0; word-break: break-all; }
.asset-meta { margin: .1rem 0 0; font-size: .8rem; color: var(--muted); word-break: break-all; }
.asset-actions { display: flex; gap: .4rem; margin-top: .6rem; }
.asset-actions form { margin: 0; }

/* Szenenplan */
.error-list { margin: 0; }
.error-list dt { font-weight: 600; margin-top: .75rem; }
.error-list dt:first-child { margin-top: 0; }
.error-list dd { margin: .2rem 0 0 1rem; color: #fecaca; }
pre.excerpt { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: .4rem .6rem; color: var(--text); overflow-x: auto; margin: .35rem 0 0; }
.confirm-box { border-color: rgba(250, 204, 21, .5); background: var(--warning-soft); }
.confirm-check { color: var(--warning); }

/* Szenen */
.missing-box { border-color: rgba(240, 82, 82, .45); }
.missing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.missing-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.missing-head .muted { margin: 0; font-size: .85rem; }
code.key { font-weight: 600; color: #fecaca; }
.copy-block { display: flex; gap: .5rem; align-items: flex-start; margin-top: .4rem; }
.copy-block textarea { font-size: .82rem; }
.summary-line { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); margin: 0 0 .75rem; font-size: .9rem; }
table.scenes { border-collapse: collapse; width: 100%; min-width: 1000px; }
.scenes th { font-size: .8rem; color: var(--muted); font-weight: 600; text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); }
.scenes td { padding: .55rem .6rem .2rem; vertical-align: top; }
.scene-row td { border-top: 1px solid var(--border); }
.scene-row:first-child td { border-top: 0; }
.scene-row.is-locked td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.scene-id { font-family: var(--mono); font-weight: 600; }
.vo { max-width: 360px; font-size: .88rem; color: #c9d4e3; }
.preview-row td { padding-top: 0; padding-bottom: .5rem; }
.preview-row summary { cursor: pointer; color: var(--accent-hover); font-size: .82rem; }
.preview { padding: .6rem 0 .3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.chip { display: inline-block; font-family: var(--mono); font-size: .74rem; padding: .05rem .4rem; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); }
.chip-style_frame { border-color: rgba(59, 130, 246, .5); color: var(--accent-hover); }
.chip-build_of { border-color: rgba(148, 163, 184, .6); }
.chip-missing { border-color: rgba(240, 82, 82, .6); color: #fecaca; background: var(--danger-soft); }
.manual { color: var(--warning); }
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.badge-offen { color: var(--accent-hover); border-color: rgba(59, 130, 246, .5); }
.badge-freigegeben { color: var(--success); border-color: rgba(34, 197, 94, .5); }
.badge-neu_noetig, .badge-auffaellig { color: var(--warning); border-color: rgba(250, 204, 21, .5); }
.badge-locked { color: #fecaca; border-color: rgba(240, 82, 82, .55); background: var(--danger-soft); }
.badge-new { color: var(--accent-hover); border-color: rgba(59, 130, 246, .5); }
.badge-manual { color: var(--warning); border-color: rgba(250, 204, 21, .5); font-weight: 500; }

/* Referenzbilder und Prompt */
.refs { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; gap: .75rem; flex-wrap: wrap; }
.ref { width: 150px; display: flex; flex-direction: column; gap: .25rem; }
.ref img, .ref-placeholder { width: 150px; height: 100px; object-fit: contain; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; display: block; }
.ref-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: .78rem; color: var(--muted); padding: .3rem; }
.ref-missing .ref-placeholder { border-color: rgba(240, 82, 82, .6); color: #fecaca; background: var(--danger-soft); }
.ref-no { font-size: .75rem; color: var(--muted); font-weight: 600; }
.ref-label { font-family: var(--mono); font-size: .75rem; word-break: break-all; }
pre.prompt { white-space: pre-wrap; word-wrap: break-word; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: .7rem .85rem; margin: 0; line-height: 1.5; }
.auto-text { margin-top: .75rem; }
.auto-text summary { cursor: pointer; color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }

/* Szenen-Detail */
.scene-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.scene-title { margin: 0; text-align: center; font-size: 1.2rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.25rem; }
.detail-grid > .card { margin-bottom: 1.25rem; }
.image-placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); }
dl.data { display: grid; grid-template-columns: 130px 1fr; gap: .45rem 1rem; margin: 0; }
dl.data dt { color: var(--muted); font-size: .88rem; }
dl.data dd { margin: 0; }
.vo-full { font-size: 1rem; }
.sheet-list { margin: 0 0 .8rem; padding-left: 1.4rem; }
.sheet-list li { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.sheet-list li.is-missing code { color: #fecaca; }
.sheet-actions { float: right; display: inline-flex; gap: .25rem; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form select { width: auto; flex: 1; min-width: 180px; }

/* Kosten */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin: .5rem 0 .75rem; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .65rem .85rem; display: flex; flex-direction: column; }
.stat-label { font-size: .8rem; color: var(--muted); }
.stat-value { font-size: 1.2rem; font-weight: 600; }
.danger-zone { border-color: rgba(240, 82, 82, .35); }

/* --- Etappe 3: Generierung ------------------------------------------------ */
.bell { position: relative; display: inline-flex; align-items: center; color: var(--muted); padding: .35rem; border-radius: 8px; }
.bell:hover, .bell.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.bell-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0 0 .4rem; }
.toolbar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.toolbar .check { font-weight: 400; color: var(--muted); }
.scenes th.cb, .scenes td.cb { width: 2rem; text-align: center; }
.thumb-cell { width: 112px; }
.thumb { display: block; width: 104px; aspect-ratio: 16 / 9; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.status-cell .badge { margin-bottom: .2rem; }
.job:empty, .job-none { display: none; }
.job-running { color: var(--accent-hover); border-color: rgba(59, 130, 246, .6); background: var(--accent-soft); }
.job-queued, .job-waiting { color: #c9d4e3; border-style: dashed; }
.job-failed { color: #fecaca; border-color: rgba(240, 82, 82, .55); background: var(--danger-soft); }
.job-error { display: block; color: #fecaca; font-size: .78rem; max-width: 260px; }

.progress-box { border-color: rgba(59, 130, 246, .5); }
.progress-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.progress-head form { margin: 0; }
progress { width: 100%; height: 10px; margin: .6rem 0 .3rem; appearance: none; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.progress-text { margin: 0; color: var(--muted); font-size: .9rem; }

.main-image { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.main-image img { width: 100%; height: auto; display: block; }
.generate-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .8rem; }
.generate-bar .muted { margin: 0; font-size: .88rem; }
.job-line { margin: .6rem 0 0; }

.versions { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.version { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.version.is-active { border-color: rgba(59, 130, 246, .6); }
.version-img img { width: 100%; border-radius: 5px; display: block; }
.version-title, .version-meta { margin: 0 0 .25rem; }
.version-meta { font-size: .85rem; color: var(--muted); }
.version summary { cursor: pointer; color: var(--accent-hover); font-size: .85rem; margin: .3rem 0; }
.ref-snapshot { margin: .3rem 0 .6rem; padding-left: 1.2rem; font-size: .85rem; }
@media (max-width: 700px) { .version { grid-template-columns: 1fr; } }

.plain-list { margin: 0; padding-left: 1.1rem; }
.plain-list li { margin: .2rem 0; }
table.compact td, table.compact th { padding: .35rem .6rem; }

.notifications { list-style: none; margin: 0; padding: 0; }
.notification { display: flex; gap: 1rem; align-items: baseline; padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.notification:last-child { border-bottom: 0; }
.notification.is-unread { background: var(--accent-soft); }
.notification-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.notification-text { flex: 1; }
.notification-error .notification-text a { color: #fecaca; }

/* --- Etappe 4: Sichtung, Freigabe, Export --------------------------------- */
.detail-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 900px) { .detail-main { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.section-head h2 { margin: 0; }
.section-head form { margin: 0; }
.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
a.btn { display: inline-block; }
a.btn:hover { text-decoration: none; }
a.btn-primary:hover { color: #fff; }

.status-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; padding: .6rem .75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.status-now { color: var(--muted); font-size: .9rem; }
.status-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Kontaktbogen */
.export-box .export-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.export-box.is-ready { border-color: rgba(34, 197, 94, .5); }
.progress-approved { max-width: 420px; }
.progress-approved::-webkit-progress-value { background: var(--success); }
.progress-approved::-moz-progress-bar { background: var(--success); }
.filter { display: flex; gap: .35rem; flex-wrap: wrap; margin: 0 0 .75rem; }
.filter a { color: var(--muted); padding: .3rem .75rem; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; }
.filter a:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.filter a.active { color: var(--text); background: var(--accent-soft); border-color: var(--accent); }
.toolbar-label { font-size: .85rem; align-self: center; }
.contact { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.contact-card.status-freigegeben { border-color: rgba(34, 197, 94, .55); }
.contact-card.status-neu_noetig, .contact-card.status-auffaellig { border-color: rgba(250, 204, 21, .55); }
.contact-img { display: block; aspect-ratio: 16 / 9; background: var(--bg); border-bottom: 1px solid var(--border); }
.contact-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact-noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.contact-body { padding: .55rem .7rem .7rem; display: flex; flex-direction: column; gap: .35rem; }
.contact-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.contact-head .check { margin: 0; font-weight: 600; }
.contact-no { color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-badges { margin-left: auto; display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.contact-vo { margin: 0; font-size: .86rem; color: #c9d4e3; line-height: 1.4; }

/* Gezielt ändern, Versionen, Vergleich */
.refs-small .ref { width: 120px; }
.refs-small .ref img, .refs-small .ref-placeholder { width: 120px; height: 68px; }
.version-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin: .35rem 0; }
.version-actions form { margin: 0; }
.version-title input[type=checkbox] { margin-right: .35rem; vertical-align: middle; }
.version-instruction { margin: 0 0 .25rem; font-style: italic; color: #c9d4e3; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.compare-col.is-active { border-color: rgba(59, 130, 246, .6); }
.compare-col .version-meta { margin-top: .5rem; }
.compare-pick select { width: auto; min-width: 0; flex: 0 1 auto; }
.compare-vo { margin: 0 0 1rem; color: #c9d4e3; }

/* --- Etappe 5: Batch, KI-Prüfung, Budget --------------------------------- */
.alert-warn { background: var(--warning-soft); border-color: rgba(250, 204, 21, .4); color: #fef08a; }
.alert-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.job-batch { color: var(--accent-hover); border-color: rgba(59, 130, 246, .6); border-style: dashed; }
.job-paused_budget { color: var(--warning); border-color: rgba(250, 204, 21, .55); background: var(--warning-soft); }
.meter { display: block; height: 6px; margin-top: .4rem; background: var(--bg); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.meter.meter-warn > span { background: var(--warning); }
.meter.meter-over > span { background: var(--danger); }
.meter .w-0 { width: 0; } .meter .w-10 { width: 10%; } .meter .w-20 { width: 20%; } .meter .w-30 { width: 30%; }
.meter .w-40 { width: 40%; } .meter .w-50 { width: 50%; } .meter .w-60 { width: 60%; } .meter .w-70 { width: 70%; }
.meter .w-80 { width: 80%; } .meter .w-90 { width: 90%; } .meter .w-100 { width: 100%; }
.check-result { margin: .4rem 0 0; font-size: .88rem; }
.check-result.is-flagged { color: var(--warning); }
.check-result.is-ok { color: var(--success); }
.check-result.is-error { color: #fecaca; }
.budget-ok { display: flex; gap: .5rem; align-items: flex-start; margin: .6rem 0; }
.batch-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.batch-actions form { margin: 0; }
.generate-bar .budget-ok { flex-basis: 100%; margin: 0; }
