/* Parallel Studio – gemeinsames Designsystem (S1-23).
   Nur Darstellung: keine Logik, keine Rechte, keine Daten. Wird von den Admin-Seiten (Basis-Template), dem Production Workspace
   und dem Retusche-Arbeitsplatz geladen. Schrift Jost (SIL OFL 1.1, selbst gehostet, siehe fonts/Jost-OFL-LICENSE.txt):
   nur für Großbuchstaben-Labels, Titel und Navigation; Fließtext in der Systemschrift. */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/studio/static/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/studio/static/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Farben: Weiß, Off-White, Schwarz, feine Grautöne; Status zurückhaltend */
  --ps-white: #ffffff;
  --ps-paper: #fafaf9;          /* Off-White für Flächen */
  --ps-ink: #111111;            /* Typografie */
  --ps-ink-2: #3a3a3a;
  --ps-muted: #77767a;
  --ps-line: #e7e6e3;           /* feine Trennlinien */
  --ps-line-strong: #cfcdc8;
  --ps-frame: #f1f0ed;          /* Bildhintergrund vor dem Laden */
  --ps-ok: #2f6b4f;   --ps-ok-bg: #eef4f0;
  --ps-warn: #8a5a12; --ps-warn-bg: #f7f1e6;
  --ps-bad: #9b2c25;  --ps-bad-bg: #f8ecea;
  --ps-info: #3d4f6b; --ps-info-bg: #eef1f5;
  /* Schrift */
  --ps-font-label: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ps-font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ps-track: .14em;            /* Laufweite für Großbuchstaben */
  --ps-fs-xs: 11px; --ps-fs-s: 12px; --ps-fs-m: 14px; --ps-fs-l: 16px; --ps-fs-xl: 22px; --ps-fs-xxl: 30px;
  /* Abstände (4er-Raster) */
  --ps-1: 4px; --ps-2: 8px; --ps-3: 12px; --ps-4: 16px; --ps-5: 24px; --ps-6: 32px; --ps-7: 48px; --ps-8: 64px;
  /* Formen */
  --ps-radius: 2px; --ps-radius-l: 4px;
  --ps-shadow: 0 1px 2px rgba(17,17,17,.04);
  --ps-max: 1440px;
}

/* ------------------------------------------------------------ Grundlage */
*, *::before, *::after { box-sizing: border-box; }
body.ps { margin: 0; background: var(--ps-white); color: var(--ps-ink); font: var(--ps-fs-m)/1.55 var(--ps-font-body); -webkit-font-smoothing: antialiased; }
.ps a { color: var(--ps-ink); text-underline-offset: 3px; text-decoration-color: var(--ps-line-strong); }
.ps a:hover { text-decoration-color: var(--ps-ink); }
.ps-label, .ps-eyebrow { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); }

/* ------------------------------------------------------------ Kopfzeile und Navigation */
.ps-top { position: sticky; top: 0; z-index: 10; background: var(--ps-white); border-bottom: 1px solid var(--ps-line); }
.ps-top-inner { max-width: var(--ps-max); margin: 0 auto; padding: var(--ps-4) var(--ps-6); display: flex; align-items: center; gap: var(--ps-6); }
.ps-wordmark { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: .28em; font-size: var(--ps-fs-m); color: var(--ps-ink); text-decoration: none; white-space: nowrap; }
.ps-nav { display: flex; gap: var(--ps-5); flex: 1; flex-wrap: wrap; }
.ps-nav a, .ps-nav span { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); text-decoration: none; padding: var(--ps-1) 0; border-bottom: 1px solid transparent; }
.ps-nav a:hover { color: var(--ps-ink); }
.ps-nav a[aria-current="page"] { color: var(--ps-ink); border-bottom-color: var(--ps-ink); }
.ps-nav .is-soon { opacity: .45; cursor: default; }
.ps .ps-top form { margin: 0; }                       /* höher gewichtet als .ps form (sonst Abstand unten, Knopf sitzt zu hoch) */
.ps-logo { display: block; height: 36px; width: auto; flex: none; margin-left: var(--ps-2);
  transform: translateY(7px); }   /* Schriftzug „para el“ auf Höhe des Abmelden-Knopfs; die Balken hängen darunter wie im Logo */
.ps-auth .ps-logo { margin-left: auto; }
.pw-logo { background: url("/studio/static/parallel-pictures-logo.png") no-repeat center / contain; }   /* Workspace: Logo als Hintergrund, kein <img> */

/* ------------------------------------------------------------ Seitenaufbau */
.ps-main { max-width: var(--ps-max); margin: 0 auto; padding: var(--ps-7) var(--ps-6) var(--ps-8); }
.ps-main > h1, .ps-h1 { font-family: var(--ps-font-label); font-weight: 400; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xl); margin: 0 0 var(--ps-6); color: var(--ps-ink); }
.ps-main h2 { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-s); color: var(--ps-ink); margin: var(--ps-7) 0 var(--ps-4); padding-bottom: var(--ps-3); border-bottom: 1px solid var(--ps-line); }
.ps-main h2:first-child { margin-top: 0; }
.ps-main p { max-width: 72ch; color: var(--ps-ink-2); }
.ps-muted { color: var(--ps-muted); }
.ps-divider { border: 0; border-top: 1px solid var(--ps-line); margin: var(--ps-6) 0; }

/* ------------------------------------------------------------ Buttons */
.ps button, .ps .ps-btn { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs);
  padding: 11px 20px; border: 1px solid var(--ps-ink); background: var(--ps-ink); color: var(--ps-white); border-radius: var(--ps-radius); cursor: pointer; line-height: 1; text-decoration: none; display: inline-block; }
.ps button:hover, .ps .ps-btn:hover { background: var(--ps-ink-2); border-color: var(--ps-ink-2); }
.ps button:disabled { opacity: .4; cursor: not-allowed; }
.ps .ps-btn-ghost, .ps-top button { background: transparent; color: var(--ps-ink); border-color: var(--ps-line-strong); }
.ps .ps-btn-ghost:hover, .ps-top button:hover { background: var(--ps-paper); border-color: var(--ps-ink); }
.ps .ps-btn-danger { background: transparent; color: var(--ps-bad); border-color: var(--ps-bad); }

/* ------------------------------------------------------------ Formulare */
.ps form { margin: 0 0 var(--ps-5); }
.ps-main form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ps-4) var(--ps-5); padding: var(--ps-5); background: var(--ps-paper); border: 1px solid var(--ps-line); border-radius: var(--ps-radius-l); }
.ps-main form label { display: flex; flex-direction: column; gap: var(--ps-2); font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); }
.ps input, .ps select, .ps textarea { font: var(--ps-fs-m)/1.4 var(--ps-font-body); color: var(--ps-ink); text-transform: none; letter-spacing: 0;
  padding: 10px 12px; min-width: 220px; background: var(--ps-white); border: 1px solid var(--ps-line-strong); border-radius: var(--ps-radius); }
.ps input:focus, .ps select:focus, .ps textarea:focus, .ps button:focus-visible, .ps a:focus-visible { outline: 1px solid var(--ps-ink); outline-offset: 2px; }
.ps input[type="file"] { padding: 8px; background: var(--ps-white); }
.ps-main form p { flex-basis: 100%; margin: 0; }
.ps [role="alert"] { padding: var(--ps-3) var(--ps-4); background: var(--ps-bad-bg); color: var(--ps-bad); border-left: 2px solid var(--ps-bad); }

/* ------------------------------------------------------------ Tabellen */
.ps table { width: 100%; border-collapse: collapse; margin: 0 0 var(--ps-6); }
.ps th { text-align: left; font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted);
  padding: var(--ps-3) var(--ps-4) var(--ps-3) 0; border-bottom: 1px solid var(--ps-ink); }
.ps td { padding: var(--ps-4) var(--ps-4) var(--ps-4) 0; border-bottom: 1px solid var(--ps-line); vertical-align: top; }
.ps tr:hover td { background: var(--ps-paper); }
.ps td a { text-decoration: none; }
.ps tr:empty { display: none; }
.ps td a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Karten, Kennzahlen, Status */
.ps-card { background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: var(--ps-radius-l); padding: var(--ps-5); }
.ps-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--ps-4); margin-bottom: var(--ps-6); }
.ps-stat { border: 1px solid var(--ps-line); padding: var(--ps-5); }
.ps-stat-n { font-size: var(--ps-fs-xxl); font-weight: 300; letter-spacing: -.01em; margin-top: var(--ps-2); }
.ps-pill { display: inline-block; font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 10px;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--ps-line-strong); color: var(--ps-ink-2); background: var(--ps-white); }
.ps-pill.is-ok { color: var(--ps-ok); background: var(--ps-ok-bg); border-color: transparent; }
.ps-pill.is-warn { color: var(--ps-warn); background: var(--ps-warn-bg); border-color: transparent; }
.ps-pill.is-bad { color: var(--ps-bad); background: var(--ps-bad-bg); border-color: transparent; }
.ps-pill.is-info { color: var(--ps-info); background: var(--ps-info-bg); border-color: transparent; }

/* ------------------------------------------------------------ Bilder: Vergleich und Contact Sheet
   Ruhiges Raster: alle Bilder gleich hoch (Laptop ca. 360–420 px), Seitenverhältnis bleibt (contain), Label darüber, Klick = volle Größe. */
.ps-compare { --ps-img-h: clamp(300px, 46vh, 420px); display: flex; flex-wrap: wrap; gap: var(--ps-5); align-items: flex-start; margin: var(--ps-4) 0 var(--ps-4); }
.ps-figure { margin: 0; display: flex; flex-direction: column; gap: var(--ps-2); }
.ps-figure .ps-frame { height: var(--ps-img-h, 400px); aspect-ratio: 3 / 4; background: var(--ps-frame); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; }
.ps-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ps-figure figcaption { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); }
.ps-figure.is-primary figcaption { color: var(--ps-ink); }
.ps-figure.is-primary .ps-frame { outline: 1px solid var(--ps-ink); outline-offset: 0; }
.ps-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--ps-5); }
.ps-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ps-2) var(--ps-4); margin: 0 0 var(--ps-3); color: var(--ps-muted); font-size: var(--ps-fs-xs); }
.ps-meta b { font-weight: 500; color: var(--ps-ink); }
.ps-note { padding: var(--ps-3) var(--ps-4); border-left: 2px solid var(--ps-line-strong); background: var(--ps-paper); color: var(--ps-ink-2); font-size: var(--ps-fs-s); }
.ps-section { padding-bottom: var(--ps-7); margin-bottom: var(--ps-7); border-bottom: 1px solid var(--ps-line); }
.ps-section:last-child { border-bottom: 0; }

/* ------------------------------------------------------------ Library und Look Builder (S1-24)
   Bildraster mit kleinen, gleich hohen Kacheln (Thumbnails); Klick öffnet die volle Größe. Schritte 01–03 mit Nummer vor dem Titel. */
.ps-library { --ps-img-h: 240px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: var(--ps-4) 0 var(--ps-6); }
.ps-tile .ps-frame { width: 100%; height: var(--ps-img-h, 240px); aspect-ratio: auto; }
.ps-tile figcaption { line-height: 1.7; }
.ps-tile figcaption .ps-muted { text-transform: none; letter-spacing: 0; font-family: var(--ps-font-body); }
.ps-main .ps-tile form { padding: 0; background: transparent; border: 0; margin: var(--ps-2) 0 0; gap: var(--ps-2); }
.ps-tile select { min-width: 0; flex: 1 1 100%; }
.ps-step-n { color: var(--ps-muted); margin-right: var(--ps-3); }

/* ------------------------------------------------------------ Model Gallery (048)
   Große Porträt-Kacheln, Model-ID über dem Bild; das Identitätsporträt der Detailseite groß und primär. */
.ps-gallery { --ps-img-h: clamp(320px, 44vh, 440px); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ps-gallery .ps-tile-id { margin: 0; color: var(--ps-ink); }
.ps-portrait { --ps-img-h: clamp(420px, 70vh, 760px); }

/* ------------------------------------------------------------ Dialoge */
.ps-modal { position: fixed; inset: 0; background: rgba(17,17,17,.32); display: flex; align-items: center; justify-content: center; z-index: 50; }
.ps-modal-box { background: var(--ps-white); width: min(560px, calc(100vw - 48px)); padding: var(--ps-6); border-radius: var(--ps-radius-l); box-shadow: 0 12px 40px rgba(17,17,17,.12); }

/* ------------------------------------------------------------ Anmeldung */
.ps-auth .ps-main { max-width: 440px; padding-top: var(--ps-8); }
.ps-auth .ps-main form { flex-direction: column; align-items: stretch; }
.ps-auth .ps-main input { min-width: 0; width: 100%; }

/* ------------------------------------------------------------ Laptop */
@media (max-width: 1100px) {
  .ps-top-inner, .ps-main { padding-left: var(--ps-5); padding-right: var(--ps-5); }
  .ps-compare { --ps-img-h: 340px; }
}
@media (max-width: 720px) {
  .ps-top-inner { flex-wrap: wrap; gap: var(--ps-3); }
  .ps input, .ps select { min-width: 0; width: 100%; }
}

/* S1-28: Prompt-Vorschau im Look Builder – vollständiger Prompt, lesbar umbrochen */
.ps-prompt { white-space: pre-wrap; word-break: break-word; font-size: var(--ps-fs-s); line-height: 1.55; border: 1px solid var(--ps-line-strong); padding: var(--ps-4); background: var(--ps-paper); color: var(--ps-ink); }

/* ------------------------------------------------------------ F: Matrix-Versionen und Visual Review (045)
   Original und optimierte Fassung nebeneinander; Prompt Inspector je Baustein nutzt .ps-prompt (S1-28). */
.ps-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--ps-6); align-items: start; }
.ps-prompt + .ps-prompt, h3 + .ps-prompt { margin: 0 0 var(--ps-3); }
.ps-prompt-edit { width: 100%; min-height: 28rem; font-family: inherit; font-size: var(--ps-fs-s); }
.ps-figure.is-chosen .ps-frame { outline: 2px solid var(--ps-ink); outline-offset: 0; }

/* ------------------------------------------------------------ A/B Visual Review (Jill 14.11.2026): Bilder zuerst, alles andere aufklappbar */
.ps-main.ab-wide { max-width: none; padding-left: var(--ps-6); padding-right: var(--ps-6); }
.ab-noscroll { overflow: hidden; }
.ab { display: flex; flex-direction: column; gap: var(--ps-5); }
.ab-cap { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-ink); margin: 0; }
.ab-sub { font-size: var(--ps-fs-xs); color: var(--ps-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ab-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ps-5); flex-wrap: wrap; }
.ab-head .ab-cap { color: var(--ps-muted); }
.ab-actions { display: flex; gap: var(--ps-5); margin: 0; flex-wrap: wrap; }
.ab-actions a, .ab-tools a, .ab-tools button { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-ink); }
/* Referenzleiste */
.ab-refs { display: flex; gap: var(--ps-4); overflow-x: auto; padding-bottom: var(--ps-2); scrollbar-width: thin; }
.ab-ref { flex: none; width: 120px; display: flex; flex-direction: column; gap: var(--ps-1); align-items: flex-start; background: none; border: 0; padding: 0; cursor: zoom-in; text-align: left; }
.ab-ref img { width: 120px; height: 160px; object-fit: contain; background: var(--ps-frame); display: block; }
.ab-ref:hover img { outline: 1px solid var(--ps-ink); }
/* Ansichten und Modus */
.ab-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--ps-5); flex-wrap: wrap; position: sticky; top: 69px; z-index: 5; background: var(--ps-white); padding: var(--ps-3) 0; border-bottom: 1px solid var(--ps-line); }
.ab-tabs, .ab-mode { display: flex; gap: var(--ps-5); flex-wrap: wrap; }
.ab-tabs button, .ab-mode button { background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; padding: var(--ps-1) 0; cursor: pointer;
  font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-s); color: var(--ps-muted); }
.ab-tabs button:hover, .ab-mode button:hover { color: var(--ps-ink); }
.ab-tabs button[aria-pressed="true"], .ab-mode button[aria-pressed="true"] { color: var(--ps-ink); border-bottom-color: var(--ps-ink); }
/* Bildpaar */
.ab-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ps-5); }
.ab-fig { margin: 0; display: flex; flex-direction: column; gap: var(--ps-2); min-width: 0; }
.ab-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ps-4); }
.ab-tools { display: flex; gap: var(--ps-4); }
.ab-tools button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ps-line-strong); }
.ab-img { display: block; width: 100%; padding: 0; border: 0; background: var(--ps-frame); cursor: zoom-in; }
.ab-img img, .ab-slide-box img { display: block; width: 100%; height: auto; max-height: calc(100vh - 210px); object-fit: contain; }
.ab-empty { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: var(--ps-frame); color: var(--ps-muted); }
/* Vorher/Nachher-Regler */
.ab-slide { display: flex; flex-direction: column; align-items: center; gap: var(--ps-3); }
.ab-slide-box { position: relative; width: min(100%, calc((100vh - 210px) * .75)); background: var(--ps-frame); cursor: ew-resize; touch-action: none; user-select: none; }
.ab-slide-box img { max-height: none; }
.ab-slide-a { position: absolute; inset: 0; height: 100% !important; }
.ab-slide-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ps-white); box-shadow: 0 0 0 1px rgba(17,17,17,.25); pointer-events: none; }
.ab-slide-l, .ab-slide-r { position: absolute; top: var(--ps-3); background: rgba(255,255,255,.85); padding: 2px var(--ps-2); }
.ab-slide-l { left: var(--ps-3); } .ab-slide-r { right: var(--ps-3); }
.ab-range { width: min(100%, calc((100vh - 210px) * .75)); accent-color: var(--ps-ink); }
/* Details */
.ab-details { margin-top: var(--ps-5); border-top: 1px solid var(--ps-line); padding-top: var(--ps-3); }
.ab-details summary { cursor: pointer; font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); }
.ab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ps-6); margin-top: var(--ps-4); }
.ab-cols > div { min-width: 0; display: flex; flex-direction: column; gap: var(--ps-3); }
.ab-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--ps-1) var(--ps-4); margin: 0; font-size: var(--ps-fs-s); }
.ab-dl dt { color: var(--ps-muted); } .ab-dl dd { margin: 0; }
.ab-list { margin: 0; padding-left: var(--ps-4); font-size: var(--ps-fs-s); }
.ab-prompt { max-height: 420px; overflow: auto; white-space: pre-wrap; }
/* Lightbox */
.ab-lb { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.98); }
.ab-lb[hidden] { display: none; }
.ab-lb-close { position: absolute; top: var(--ps-4); right: var(--ps-5); z-index: 2; background: none; border: 0; cursor: pointer;
  font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-ink); }
.ab-lb-stage { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: var(--ps-6); }
.ab-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.ab-lb.is-zoom .ab-lb-stage { overflow: auto; display: block; padding: 0; cursor: grab; }
.ab-lb.is-zoom .ab-lb-stage img { max-width: none; max-height: none; cursor: zoom-out; }
@media (max-width: 900px) { .ab-cols { grid-template-columns: 1fr; } }
/* A/B: Bild- und Textknöpfe ohne die Standard-Knopfgestaltung (schwarze Fläche) */
.ps .ab button, .ps .ab button:hover { background: none; border: 0; border-radius: 0; color: var(--ps-ink); min-height: 0; height: auto; box-shadow: none; }
.ps .ab .ab-ref, .ps .ab .ab-img { padding: 0; text-transform: none; letter-spacing: 0; display: flex; }
.ps .ab .ab-img { display: block; background: var(--ps-frame); }
.ps .ab .ab-ref { flex-direction: column; }
.ps .ab .ab-tools button { padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ps-line-strong); }
.ps .ab .ab-tabs button, .ps .ab .ab-mode button { padding: var(--ps-1) 0; color: var(--ps-muted); border-bottom: 1px solid transparent; font-size: var(--ps-fs-s); }
.ps .ab .ab-tabs button:hover, .ps .ab .ab-mode button:hover, .ps .ab .ab-tabs button[aria-pressed="true"], .ps .ab .ab-mode button[aria-pressed="true"] { color: var(--ps-ink); }
.ps .ab .ab-tabs button[aria-pressed="true"], .ps .ab .ab-mode button[aria-pressed="true"] { border-bottom-color: var(--ps-ink); }
.ps .ab .ab-lb-close { position: absolute; padding: var(--ps-2); }
.ps .ab .ab-img { background: transparent; }
.ab-ref { width: 96px; } .ab-ref img { width: 96px; height: 128px; }
.ab-img img { max-height: calc(100vh - 150px); margin: 0 auto; }
/* A/B Layout 2 (Jill 15.11.): Bilder füllen die Bildschirmhöhe; Referenzen als schmale Spalte links; kein doppelter Seitentitel */
.ps-main.ab-wide { padding-top: var(--ps-3); padding-bottom: var(--ps-5); }
.ps-main.ab-wide > h1 { display: none; }
.ab { gap: var(--ps-3); }
.ab-bar { top: 69px; padding: var(--ps-2) 0; gap: var(--ps-3) var(--ps-6); justify-content: flex-start; }
.ab-bar .ab-mode { margin-left: auto; }
.ab-bar .ab-head { flex-basis: 100%; gap: var(--ps-4); }
.ab-bar .ab-head .ab-cap { font-size: 10px; }
.ab-bar .ab-actions { gap: var(--ps-4); }
.ab-stage { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--ps-5); align-items: start; }
.ab-refs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ps-3) var(--ps-2); overflow: visible; padding: 0; position: sticky; top: 140px; }
.ab-ref, .ab-ref img { width: 70px; }
.ab-ref img { height: 94px; }
.ab-ref .ab-cap { font-size: 9px; letter-spacing: .08em; line-height: 1.25; }
.ab-ref .ab-sub { font-size: 9px; width: 70px; }
.ab-pair { gap: var(--ps-3); }
.ab-fig { gap: var(--ps-1); }
.ab-fig figcaption { padding: 0 var(--ps-1); }
.ps .ab .ab-img { display: flex; justify-content: center; }
.ab-img img { height: calc(100vh - 185px); min-height: 420px; width: auto; max-width: 100%; max-height: none; object-fit: contain; margin: 0; }
.ab-slide-box { width: min(100%, calc((100vh - 185px) * .75)); }
.ab-range { width: min(100%, calc((100vh - 185px) * .75)); }
.ab-details { margin-top: var(--ps-3); }
@media (max-width: 1100px) {
  .ab-stage { grid-template-columns: 1fr; }
  .ab-refs { position: static; display: flex; overflow-x: auto; }
}
@media (max-width: 700px) { .ab-pair { grid-template-columns: 1fr; } .ab-img img { height: auto; min-height: 0; } }
.ab [hidden] { display: none !important; }            /* Ansicht/Modus ausblenden schlägt display:grid/flex */
.ab-img img { height: calc(100vh - 192px); }
.ab-img img { height: auto; min-height: 0; width: auto; max-width: 100%; max-height: calc(100vh - 192px); }   /* Seitenverhältnis bleibt, kein Leerraum */

/* ------------------------------------------------------------ Visual Review als Bild-Gallery (17.11.2026)
   Ruhige Fläche, die Bilder tragen die Seite. Technische Angaben stehen im Inspector, nicht auf der Seite. */
.ps-main.vr-wide { max-width: none; padding: var(--ps-5) var(--ps-6) var(--ps-7); }
.ps-main.vr-wide > h1 { margin-bottom: var(--ps-4); }
body.vr-open { overflow: hidden; }
.vr [hidden] { display: none !important; }
.vr-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ps-3) var(--ps-6); padding-bottom: var(--ps-4); margin-bottom: var(--ps-5); border-bottom: 1px solid var(--ps-line); }
.vr-facts { display: flex; flex-wrap: wrap; gap: var(--ps-2) var(--ps-5); flex: 1; font-family: var(--ps-font-label); font-size: var(--ps-fs-xs); text-transform: uppercase; letter-spacing: var(--ps-track); color: var(--ps-muted); }
.vr-facts b { color: var(--ps-ink); font-weight: 500; }
.vr-facts .is-warn b { color: var(--ps-warn); }
.vr-head form, .ps-main .vr-head form { display: inline-flex; padding: 0; margin: 0; background: none; border: 0; }
.vr-headnote { flex-basis: 100%; margin: 0; color: var(--ps-warn); font-size: var(--ps-fs-s); }

.vr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ps-5); }
@media (min-width: 1700px) { .vr-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ps-4); } }
@media (max-width: 900px) { .vr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ps .vr-tile { display: flex; flex-direction: column; gap: var(--ps-3); padding: 0; margin: 0; background: none; border: 0; border-radius: 0; color: var(--ps-ink); text-align: left; cursor: zoom-in; line-height: 1.3; }
.ps .vr-tile:hover { background: none; }
.ps .vr-tile[disabled] { cursor: default; }
.vr-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 1801 / 2600; background: #f4f4f4; overflow: hidden; }
.vr-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vr-tile:not([disabled]):hover .vr-pic { outline: 1px solid var(--ps-ink); outline-offset: 3px; }
.vr-cap { display: flex; align-items: baseline; gap: var(--ps-3); flex-wrap: wrap; }
.vr-name { font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-s); color: var(--ps-ink); }
.vr-state, .vr-count, .vr-sub { font-family: var(--ps-font-label); text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); }
.is-approved > .vr-cap .vr-state, .vr-state.is-approved { color: var(--ps-ok); }
.is-rejected > .vr-cap .vr-state, .vr-state.is-rejected, .is-failed > .vr-cap .vr-state, .vr-state.is-failed { color: var(--ps-bad); }
.is-missing > .vr-cap .vr-state, .vr-state.is-missing { color: var(--ps-warn); }
.vr-empty { font-family: var(--ps-font-label); text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); padding: var(--ps-4); text-align: center; }
.vr-note { font-size: var(--ps-fs-s); color: var(--ps-muted); text-transform: none; letter-spacing: 0; font-family: var(--ps-font-body); }

/* Bildansicht */
.vr-viewer { position: fixed; inset: 0; z-index: 60; background: var(--ps-white); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.vr-top { display: flex; align-items: center; gap: var(--ps-5); padding: var(--ps-3) var(--ps-5); border-bottom: 1px solid var(--ps-line); }
.vr-title { display: flex; align-items: baseline; gap: var(--ps-4); min-width: 0; }
.vr-modes { display: flex; gap: var(--ps-2); flex: 1; justify-content: center; flex-wrap: wrap; }
.vr-tools { display: flex; gap: var(--ps-2); }
.ps .vr-mode, .ps .vr-ghost { background: transparent; color: var(--ps-ink); border: 1px solid var(--ps-line-strong); padding: 9px 14px; }
.ps .vr-mode:hover, .ps .vr-ghost:hover { background: var(--ps-paper); border-color: var(--ps-ink); }
.ps .vr-mode[aria-pressed="true"] { background: var(--ps-ink); color: var(--ps-white); border-color: var(--ps-ink); }
.vr-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; min-height: 0; }
.ps .vr-nav { background: none; border: 0; color: var(--ps-muted); font-size: 44px; font-weight: 200; padding: 0 var(--ps-4); letter-spacing: 0; cursor: pointer; }
.ps .vr-nav:hover { background: var(--ps-paper); color: var(--ps-ink); }
.vr-canvas { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ps-4); min-height: 0; padding: var(--ps-3) 0; }
.is-pair .vr-canvas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vr-fig { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.vr-fig figcaption { text-align: center; padding-top: var(--ps-2); font-family: var(--ps-font-label); text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); }
.vr-box { min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; background: #f4f4f4; cursor: zoom-in; overflow: hidden; }
.vr-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none; }
.is-zoom .vr-box { display: block; overflow: auto; cursor: zoom-out; }
.is-zoom .vr-box img { max-width: none; max-height: none; }
.vr-pick, .vr-strip { display: flex; gap: var(--ps-3); padding: var(--ps-2) var(--ps-5); overflow-x: auto; justify-content: center; border-top: 1px solid var(--ps-line); }
.ps .vr-thumb { display: flex; flex-direction: column; align-items: center; gap: var(--ps-1); padding: 0 0 var(--ps-1); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--ps-muted); font-size: 10px; flex: none; cursor: pointer; line-height: 1.2; }
.ps .vr-thumb:hover { background: none; color: var(--ps-ink); }
.ps .vr-thumb[aria-pressed="true"], .ps .vr-thumb.is-main { color: var(--ps-ink); border-bottom-color: var(--ps-ink); }
.ps .vr-thumb[disabled] { cursor: default; opacity: .6; }
.vr-thumb img, .vr-thumb .vr-empty { height: 64px; width: 46px; object-fit: contain; background: var(--ps-frame); display: flex; align-items: center; justify-content: center; padding: 0; font-size: 8px; }
.vr-pick .vr-thumb img { height: 76px; width: 56px; }
.vr-panel { padding: var(--ps-3) var(--ps-5); border-top: 1px solid var(--ps-line); }
.vr-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ps-3) var(--ps-5); min-height: 36px; }
.vr-row, .vr-form { display: flex; gap: var(--ps-2); align-items: center; flex-wrap: wrap; }
.ps .vr-ok { background: var(--ps-ok); border-color: var(--ps-ok); }
.ps .vr-ok:hover { background: #24543d; border-color: #24543d; }
.ps .vr-danger { background: var(--ps-bad); border-color: var(--ps-bad); }
.vr-form select, .vr-form input { min-width: 240px; padding: 8px 10px; }
.vr-form input { min-width: 360px; }
.vr-hint, .vr-msg, .vr-decided { margin: 0; font-size: var(--ps-fs-s); color: var(--ps-muted); max-width: none; }
.vr-decided.is-PASS { color: var(--ps-ok); } .vr-decided.is-REJECT, .vr-decided.is-REVISE { color: var(--ps-bad); }

/* Inspector: alles Technische, eingeklappt */
.vr-tech { margin-top: var(--ps-7); border-top: 1px solid var(--ps-line); padding-top: var(--ps-4); }
.vr-tech > summary { cursor: pointer; font-family: var(--ps-font-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ps-track); font-size: var(--ps-fs-xs); color: var(--ps-muted); }
.vr-tech > summary:hover { color: var(--ps-ink); }
.vr-tech[open] > summary { margin-bottom: var(--ps-5); color: var(--ps-ink); }

/* 058 Product Fundus */
.fu-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #f4f4f2; color: #8a8a86; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fu-upload { display: grid; gap: 6px; margin-top: 8px; }
.fu-upload input[type=file] { font-size: 12px; max-width: 100%; }

/* ------------------------------------------------------------ Parallel Studio Nutzerführung (22.11.2026): Dashboard, Karten, Ablauf */
.st-ic { flex: none; color: var(--ps-ink); }
.ps .st-btn, .ps a.st-btn { display: inline-flex; align-items: center; gap: var(--ps-2); background: var(--ps-ink); color: var(--ps-white); border: 1px solid var(--ps-ink);
  border-radius: 999px; padding: 10px 22px; font: 500 var(--ps-fs-s)/1 var(--ps-font-label); letter-spacing: var(--ps-track); text-transform: uppercase;
  text-decoration: none; cursor: pointer; }
.ps .st-btn:hover { background: #2b2b2b; }
.ps .st-btn-s { padding: 8px 16px; font-size: var(--ps-fs-xs); }
.ps .st-btn-ghost { background: transparent; color: var(--ps-ink); border: 1px solid var(--ps-line-strong); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.st-crumbs { display: flex; gap: var(--ps-2); font-size: var(--ps-fs-s); color: var(--ps-muted); margin: 0 0 var(--ps-3); }
.st-crumbs a { color: var(--ps-muted); text-decoration: none; } .st-crumbs a:hover { color: var(--ps-ink); }
.st-titlebar { display: flex; align-items: center; justify-content: space-between; gap: var(--ps-4); }
.st-lead { color: var(--ps-muted); font-size: var(--ps-fs-l); margin: -8px 0 var(--ps-6); }
.st-h2 { font: 500 var(--ps-fs-s)/1.4 var(--ps-font-label); letter-spacing: var(--ps-track); text-transform: uppercase; color: var(--ps-ink); margin: var(--ps-7) 0 var(--ps-4); }
.st-panel .st-h2 { margin-top: 0; }
.st-h3 { font-size: var(--ps-fs-m); font-weight: 600; margin: var(--ps-5) 0 var(--ps-3); }
.st-muted { color: var(--ps-muted); }
.st-hero { display: flex; align-items: center; gap: var(--ps-5); padding: var(--ps-6); border: 1px solid var(--ps-ink); border-radius: 16px; background: var(--ps-ink);
  color: var(--ps-white) !important; text-decoration: none; margin-bottom: var(--ps-6); transition: transform .12s ease; }
.st-hero .st-ic { color: var(--ps-white); }
.st-hero:hover { transform: translateY(-1px); }
.st-hero > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.st-hero-title { font: 500 var(--ps-fs-xl)/1.2 var(--ps-font-label); letter-spacing: .04em; }
.st-hero-text { color: #cfcfcf; }
.st-hero-go .st-ic { color: var(--ps-white); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--ps-5); }
.st-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ps a.st-card { display: flex; flex-direction: column; gap: var(--ps-3); padding: var(--ps-6) var(--ps-5); border: 1px solid var(--ps-line); border-radius: 14px;
  background: var(--ps-white); text-decoration: none; color: var(--ps-ink); transition: border-color .12s ease, box-shadow .12s ease; min-height: 150px; }
.ps a.st-card:hover { border-color: var(--ps-ink); box-shadow: 0 6px 18px rgba(17,17,17,.06); }
.st-card-title { font-size: var(--ps-fs-l); font-weight: 600; margin-top: var(--ps-2); }
.st-card-text { color: var(--ps-muted); }
.st-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--ps-5); }
.ps a.st-prod { display: flex; flex-direction: column; border: 1px solid var(--ps-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ps-ink); background: var(--ps-white); }
.ps a.st-prod:hover { border-color: var(--ps-ink); }
.st-prod-img { aspect-ratio: 3 / 4; background: var(--ps-frame); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.st-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.st-noimg { color: var(--ps-muted); font-size: var(--ps-fs-s); }
.st-prod-meta { display: flex; flex-direction: column; gap: 4px; padding: var(--ps-3) var(--ps-4) var(--ps-4); }
.st-prod-sku { font-weight: 600; } .st-prod-sub, .st-prod-state { color: var(--ps-muted); font-size: var(--ps-fs-s); }
.st-tag { align-self: flex-start; font: 500 var(--ps-fs-xs)/1 var(--ps-font-label); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ps-line-strong);
  border-radius: 999px; padding: 4px 8px; }
.st-tag.is-test { color: var(--ps-warn); border-color: var(--ps-warn); }
.st-bar { height: 3px; background: var(--ps-line); border-radius: 3px; overflow: hidden; margin-top: 4px; } .st-bar span { display: block; height: 100%; background: var(--ps-ink); }
.st-filter { display: flex; gap: var(--ps-4); align-items: end; flex-wrap: wrap; margin-bottom: var(--ps-5); }
.st-check { display: flex; align-items: center; gap: var(--ps-2); }
.st-empty { color: var(--ps-muted); padding: var(--ps-6) 0; }
.st-alert { background: var(--ps-bad-bg); color: var(--ps-bad); padding: var(--ps-3) var(--ps-4); border-radius: 10px; }
.st-stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ps-3); padding: 0; margin: 0 0 var(--ps-6); border-bottom: 1px solid var(--ps-line); padding-bottom: var(--ps-5); }
.st-step, .st-step a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ps-muted); text-decoration: none; }
.st-step-nr { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ps-line-strong); font-weight: 600; }
.st-step.is-active .st-step-nr { background: var(--ps-ink); color: var(--ps-white); border-color: var(--ps-ink); }
.st-step.is-active { color: var(--ps-ink); }
.st-step.is-done .st-step-nr { background: var(--ps-paper); color: var(--ps-ink); border-color: var(--ps-ink); }
.st-step-name { font-size: var(--ps-fs-s); }
.st-panel { border: 1px solid var(--ps-line); border-radius: 14px; padding: var(--ps-5); margin-bottom: var(--ps-5); background: var(--ps-white); }
.st-form { max-width: 1100px; }
.st-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--ps-4); }
.st-fields label { display: flex; flex-direction: column; gap: 6px; font-size: var(--ps-fs-s); color: var(--ps-ink-2); }
.st-fields input, .st-fields select { border: 1px solid var(--ps-line-strong); border-radius: 10px; padding: 10px 12px; font-size: var(--ps-fs-m); background: var(--ps-white); }
.st-drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--ps-4); }
.st-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 170px; border: 1px dashed var(--ps-line-strong);
  border-radius: 14px; cursor: pointer; padding: var(--ps-4); text-align: center; }
.st-drop:hover { border-color: var(--ps-ink); }
.st-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-drop-title { font-weight: 600; } .st-drop-hint { color: var(--ps-muted); font-size: var(--ps-fs-s); }
.st-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--ps-3); }
.st-pick { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--ps-line); border-radius: 12px; padding: 8px; cursor: pointer; }
.st-pick input { position: absolute; top: 10px; left: 10px; }
.st-pick:has(input:checked) { border-color: var(--ps-ink); box-shadow: 0 0 0 1px var(--ps-ink); }
.st-pick-img { aspect-ratio: 3 / 4; background: var(--ps-frame); border-radius: 8px; overflow: hidden; display: flex; }
.st-pick-img img { width: 100%; height: 100%; object-fit: contain; }
.st-pick-name { font-size: var(--ps-fs-s); }
.st-seg { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--ps-3); }
.st-seg label { display: flex; gap: var(--ps-3); border: 1px solid var(--ps-line); border-radius: 12px; padding: var(--ps-4); cursor: pointer; }
.st-seg label:has(input:checked) { border-color: var(--ps-ink); box-shadow: 0 0 0 1px var(--ps-ink); }
.st-actions { display: flex; justify-content: flex-end; gap: var(--ps-3); margin: var(--ps-5) 0 var(--ps-8); }
.st-product { display: flex; gap: var(--ps-4); align-items: center; margin-bottom: var(--ps-5); }
.st-product-img { width: 72px; aspect-ratio: 3 / 4; background: var(--ps-frame); border-radius: 8px; overflow: hidden; display: flex; }
.st-product-img img { width: 100%; height: 100%; object-fit: contain; }
.st-product > span:last-child { display: flex; flex-direction: column; }
.st-nav a { white-space: nowrap; }
@media (max-width: 900px) { .st-nav { display: none; } .st-stepper { grid-template-columns: repeat(2, 1fr); } }

/* Upload-Felder: Vorschau und Ziehen-und-Ablegen (studio_upload.js) */
.st-drop { position: relative; overflow: hidden; }
.st-drop.is-over { border-color: #111; background: #f2f2f0; }
.st-drop.has-file .icon, .st-drop.has-file .st-drop-title { display: none; }
.st-drop-preview { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 8px; object-fit: contain; }

/* Phase 2: Model sichtbar, aber dieser Marke noch nicht zugewiesen */
.st-pick.is-off { opacity: .45; cursor: not-allowed; }
.st-newpiece { display: flex; flex-direction: column; gap: 8px; }
/* Jill 23.11.: kompakte Ansichten-Auswahl statt großer Radio-Karten */
.st-mini { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.st-mini label { cursor: pointer; }
.st-mini input { position: absolute; opacity: 0; pointer-events: none; }
.st-mini span { display: inline-block; padding: 8px 16px; border: 1px solid #d6d6d6; border-radius: 999px; font-size: 14px; }
.st-mini input:checked + span { background: #111; color: #fff; border-color: #111; }
.st-slots { display: flex; flex-direction: column; gap: 8px; }
.st-slot { display: grid; grid-template-columns: 180px 100px repeat(3, minmax(130px, 1fr)) 90px; gap: 12px; align-items: end; padding: 10px 0;
           border-bottom: 1px solid #eee; }
.st-slot-name { font-weight: 500; align-self: center; }
.st-slot-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #666; }
.st-slot-field select { font-size: 14px; padding: 6px; }
.st-slot-off { grid-column: 2 / -1; color: #999; font-size: 14px; align-self: center; }
.st-slot-status { font-size: 12px; color: #666; align-self: center; }
.st-slot-sum { margin-top: 12px; font-weight: 500; }
.st-internal { margin-top: 16px; font-size: 14px; color: #666; }
.st-slot-on { display: flex; align-items: center; gap: 6px; font-size: 13px; align-self: center; cursor: pointer; }
.st-slot-on input { width: 18px !important; height: 18px; margin: 0; accent-color: #111; flex: none; }

/* Ergebnisse: ein Satz, was zu tun ist; Aktionen direkt an jedem Bild (Jill 23.11.) */
.vr-lead { flex: 1; min-width: 280px; }
.vr-leadline { margin: 0; font-size: 20px; font-weight: 600; color: var(--ps-ink); max-width: none; }
.vr-leadsub { margin: 4px 0 0; font-size: var(--ps-fs-s); color: var(--ps-muted); max-width: none; }
.vr-allslot { display: inline-flex; align-items: center; gap: var(--ps-3); }
.vr-more { flex-basis: 100%; }
.vr-more > summary { cursor: pointer; font-size: var(--ps-fs-s); color: var(--ps-muted); }
.vr-more > summary:hover { color: var(--ps-ink); }
.vr-more[open] > summary { margin-bottom: var(--ps-3); color: var(--ps-ink); }
.vr-more .vr-facts { margin-bottom: var(--ps-3); }
.vr-more form { margin-right: var(--ps-3); }
.vr-card { display: flex; flex-direction: column; gap: var(--ps-3); min-width: 0; }
.vr-card .vr-state { padding: 3px 8px; border: 1px solid var(--ps-line-strong); border-radius: 999px; }
.vr-card.is-approved .vr-state { border-color: var(--ps-ok); color: var(--ps-ok); }
.vr-card.is-rejected .vr-state, .vr-card.is-failed .vr-state { border-color: var(--ps-bad); color: var(--ps-bad); }
.vr-cardact { display: flex; flex-direction: column; gap: var(--ps-2); }
.vr-cardact .vr-actions { justify-content: flex-start; flex-direction: column; align-items: stretch; gap: var(--ps-2); min-height: 0; }
.vr-cardact .vr-row { gap: var(--ps-2); }
.vr-cardact .vr-row button { flex: 1; white-space: nowrap; }
.vr-cardact .vr-form { flex-direction: column; align-items: stretch; padding: var(--ps-3); background: var(--ps-paper); }
.vr-cardact .vr-form select, .vr-cardact .vr-form input, .vr-cardact .vr-form textarea { min-width: 0; width: 100%; box-sizing: border-box; }
.vr-links { display: flex; flex-wrap: wrap; gap: var(--ps-2) var(--ps-4); font-size: var(--ps-fs-s); }
.vr-links a, .ps .vr-links .vr-link { color: var(--ps-muted); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; font-size: var(--ps-fs-s); letter-spacing: 0; text-transform: none; cursor: pointer; }
.vr-links a:hover, .ps .vr-links .vr-link:hover { color: var(--ps-ink); background: none; }
.st-slot-detail { display: grid; grid-template-columns: 240px 1fr; gap: var(--ps-4); align-items: center; padding: 0 0 var(--ps-4) 180px; border-bottom: 1px solid var(--ps-line); }
@media (max-width: 900px) { .st-slot-detail { grid-template-columns: 1fr; padding-left: 0; } }

/* ------------------------------------------------------------ Jill 23.11.: saubere, symmetrische Raster (Kopfzeile, Neue Bildproduktion, Ergebnisse) */
/* Kopfzeile: Zeile 1 Marke links, Aktionen rechts; Zeile 2 Navigation in einer Linie */
.ps-top-inner { flex-wrap: wrap; row-gap: var(--ps-3); }
.ps-top-inner .ps-wordmark { margin-right: auto; }
.ps-top-inner .ps-nav { order: 9; flex: 0 0 100%; flex-wrap: nowrap; gap: var(--ps-6); overflow-x: auto; padding-top: var(--ps-3); border-top: 1px solid var(--ps-line); }
.ps-top-inner .ps-nav a, .ps-top-inner .ps-nav span { white-space: nowrap; }
.ps-logo { transform: none; }
/* Neue Bildproduktion: das Formular ist kein Flex-Kasten; jede Sektion volle Breite, gleiche Ränder */
.ps-main form.st-form { display: block; padding: 0; background: none; border: 0; border-radius: 0; max-width: 1100px; margin-left: 0; }
.ps-main form.st-form[method="get"] { margin-bottom: var(--ps-5); }
.ps-main form.st-form label { font-family: var(--ps-font-body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: var(--ps-fs-s); color: var(--ps-ink-2); }
.ps-main form.st-form p { flex-basis: auto; }
.st-form .st-panel { width: 100%; box-sizing: border-box; }
.st-form .st-h2 { padding-bottom: var(--ps-3); border-bottom: 1px solid var(--ps-line); margin-bottom: var(--ps-4); }
.st-form .st-drops { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--ps-5); }
@media (max-width: 900px) { .st-form .st-drops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-form .st-drop { min-height: 220px; box-sizing: border-box; }
.st-form .st-drop-title { font-size: var(--ps-fs-m); color: var(--ps-ink); }
.st-form .st-drop-preview { max-height: 180px; }
.st-form .st-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
@media (max-width: 900px) { .st-form .st-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-form .st-fields input, .st-form .st-fields select, .st-form textarea { min-width: 0; width: 100%; box-sizing: border-box; }
.st-form .st-seg { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ps-main form.st-form .st-seg label, .ps-main form.st-form .st-check, .ps-main form.st-form .st-mini label, .ps-main form.st-form .st-slot-on { flex-direction: row; align-items: center; gap: var(--ps-3); }
.ps-main form.st-form .st-seg label { min-height: 56px; box-sizing: border-box; font-size: var(--ps-fs-m); color: var(--ps-ink); }
.ps-main form.st-form .st-drop { align-items: center; }
.st-form .st-seg input, .st-form .st-pick input, .st-form .st-check input { min-width: 0; width: auto; padding: 0; }
.st-form .st-picks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .st-form .st-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-form .st-actions { justify-content: flex-end; margin: var(--ps-5) 0 var(--ps-8); }
.st-form .st-actions .st-btn { min-width: 320px; justify-content: center; padding: 14px 22px; }
/* Ansichten: eine Tabelle, alle Felder auf einer Linie */
.st-slot { grid-template-columns: minmax(160px, 1.2fr) 80px repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 10px 0; }
.st-slot select { min-width: 0; width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; font-size: var(--ps-fs-m); }
.st-slot-head { padding: 0 0 8px; border-bottom: 1px solid var(--ps-ink); font: 500 var(--ps-fs-xs)/1.4 var(--ps-font-label); letter-spacing: var(--ps-track); text-transform: uppercase; color: var(--ps-muted); }
.st-slot-on { justify-content: flex-start; }
.st-slot.is-off select { opacity: .4; }
.st-slot-name { align-self: center; }
.st-slot-off { grid-column: 2 / -1; }
.st-slot-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: var(--ps-3) 0 var(--ps-4); }
.st-slot-detail .st-drop { min-height: 150px; }
.st-slot-sum { margin: var(--ps-4) 0 0; text-align: right; }
/* Ergebnisse: gleiche Karten, gleiche Knöpfe */
.vr-head { align-items: center; }
.vr-head .st-btn-ghost, .vr-allslot .vr-ok { height: 42px; display: inline-flex; align-items: center; box-sizing: border-box; padding: 0 20px; border-radius: 999px; }
.vr-grid { align-items: start; }
.vr-tile:not([disabled]):hover .vr-pic, .ps .vr-tile:focus-visible .vr-pic { outline: 1px solid var(--ps-ink); outline-offset: -1px; }
.ps .vr-tile:focus-visible { outline: none; }
.vr-card .vr-cap { min-height: 48px; align-items: center; justify-content: space-between; }
.vr-cardact .vr-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ps-2); }
.vr-cardact .vr-row button { height: 40px; padding: 0 8px; box-sizing: border-box; font-size: var(--ps-fs-xs); }
.vr-links { justify-content: space-between; }
.ps .st-slot-on input { min-width: 0; width: 18px !important; height: 18px; padding: 0; margin: 0; flex: none; }
.ps-main form.st-form p.st-slot-sum { max-width: none; text-align: right; font-weight: 500; }
.ps-main form.st-form .st-slot-detail p { max-width: none; }
.vr-cardact .vr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vr-cardact .vr-row .vr-ok { grid-column: 1 / -1; }
.vr-cardact .vr-row button { white-space: nowrap; }
.vr-links { justify-content: flex-start; gap: var(--ps-2) var(--ps-5); }
/* Image Builder Schritt 2: Auswahl in einer Linie, Prompt-Editor und Technik eingeklappt */
.ps-main form.ub-viewform { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.ps-main form.ub-viewform select { min-width: 0; width: 100%; box-sizing: border-box; }
.ps-main form.ub-viewform p { grid-column: 1 / -1; }
.ub-prompt, .ub-tech { margin: var(--ps-4) 0; }
.ub-prompt > summary { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border: 1px solid var(--ps-line-strong); border-radius: 999px; cursor: pointer; list-style: none; font-size: var(--ps-fs-s); }
.ub-prompt > summary::-webkit-details-marker { display: none; }
.ub-prompt[open] > summary { background: var(--ps-ink); color: var(--ps-white); border-color: var(--ps-ink); margin-bottom: var(--ps-4); }
.ub-tech > summary { cursor: pointer; font-size: var(--ps-fs-s); color: var(--ps-muted); }
/* Fünf Bereiche (Jill 23.11.) */
.st-stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .st-stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); } .st-step-name { font-size: 11px; text-align: center; } }
.st-step-name { text-align: center; }
.st-form .st-h3, .st-panel .st-h3 { font: 500 var(--ps-fs-s)/1.4 var(--ps-font-body); color: var(--ps-ink); margin: var(--ps-5) 0 var(--ps-3); max-width: none; }
.st-form .st-h2 + .st-h3 { margin-top: 0; }
.ub-sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ps-3); margin-bottom: var(--ps-4); }
@media (max-width: 900px) { .ub-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ub-sum-tile { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ub-sum-tile > span { aspect-ratio: 3 / 4; background: var(--ps-frame); border-radius: 8px; overflow: hidden; display: flex; }
.ub-sum-tile img { width: 100%; height: 100%; object-fit: contain; }
.ub-sum-tile figcaption { font-size: var(--ps-fs-s); color: var(--ps-ink-2); }
.ps-main p.ub-cost { font-size: var(--ps-fs-m); margin: 0 0 var(--ps-3); }
.st-prod-wrap { display: flex; flex-direction: column; gap: 6px; }
.ps-main form.st-prod-move { display: block; padding: 0; background: none; border: 0; }
.ps .st-linkbtn { background: none; border: 0; padding: 0; color: var(--ps-muted); font: var(--ps-fs-s)/1.4 var(--ps-font-body); text-transform: none; letter-spacing: 0; text-decoration: underline; cursor: pointer; }
.ps .st-linkbtn:hover { color: var(--ps-ink); background: none; }
.ps .st-drop-remove { position: relative; z-index: 2; background: var(--ps-white); color: var(--ps-ink); border: 1px solid var(--ps-line-strong); border-radius: 999px; padding: 6px 14px; font: var(--ps-fs-s)/1 var(--ps-font-body); text-transform: none; letter-spacing: 0; cursor: pointer; }
.ps .st-drop-remove:hover { border-color: var(--ps-ink); background: var(--ps-paper); }
.st-form .st-actions { justify-content: space-between; align-items: center; }
.st-backlink { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border: 1px solid var(--ps-line-strong); border-radius: 999px; color: var(--ps-ink); text-decoration: none; font-size: var(--ps-fs-s); }
.st-backlink:hover { border-color: var(--ps-ink); }
/* Model Cast: kleine Kacheln, 10 je Reihe (Jill 23.11.) */
.st-form .st-picks.st-models { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--ps-2); }
@media (max-width: 1100px) { .st-form .st-picks.st-models { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 700px) { .st-form .st-picks.st-models { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-models .st-pick { padding: 4px; border-radius: 8px; gap: 4px; }
.st-models .st-pick-img { border-radius: 6px; }
.st-models .st-pick-name { font-size: 11px; line-height: 1.25; }
.st-models .st-pick input { top: 6px; left: 6px; }
/* UX-Runde 3 (Jill 23.11.) */
.st-slot-name { display: flex; align-items: center; gap: var(--ps-3); }
.st-crop { flex: none; background: var(--ps-paper); border-radius: 4px; }
.st-library { margin: var(--ps-5) 0; border: 1px solid var(--ps-line); border-radius: 12px; padding: var(--ps-3) var(--ps-4); }
.st-library > summary { cursor: pointer; font-weight: 500; color: var(--ps-ink); }
.st-library[open] > summary { margin-bottom: var(--ps-4); }
.ps-main form.st-form .st-seg label span { display: block; }
.ps-main form.st-form .st-seg label span b { display: block; }
.ps-main form.st-form p.st-auto-hint { max-width: none; margin: var(--ps-3) 0 0; }
.vr-refs { margin: 0 0 var(--ps-5); border: 1px solid var(--ps-line); border-radius: 12px; padding: var(--ps-3) var(--ps-4); }
.vr-refs > summary { cursor: pointer; font-weight: 500; }
.vr-refs[open] > summary { margin-bottom: var(--ps-4); }
.vr-refs-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--ps-3); }
@media (max-width: 1100px) { .vr-refs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vr-ref { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ps-ink); }
.vr-ref-img { aspect-ratio: 3 / 4; background: #f4f4f4; display: flex; overflow: hidden; border-radius: 6px; }
.vr-ref-img img { width: 100%; height: 100%; object-fit: contain; }
.vr-ref:hover .vr-ref-img { outline: 1px solid var(--ps-ink); outline-offset: -1px; }
.vr-ref-cap { font-size: var(--ps-fs-s); }
.vr-ref-sub { font-size: 11px; color: var(--ps-muted); }
/* Render-Seite als Produktionsoberfläche (Jill 23.11.): Bildkarten, Creative Settings, Kosten und Budget, Technik im Advanced Inspector */
.ub-views { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ps-3); margin-bottom: var(--ps-5); }
@media (max-width: 900px) { .ub-views { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ps a.ub-vcard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid var(--ps-line); border-radius: 12px; padding: var(--ps-4); color: var(--ps-ink); text-decoration: none; background: var(--ps-white); min-height: 100%; box-sizing: border-box; }
.ps a.ub-vcard:hover { border-color: var(--ps-ink); }
.ps a.ub-vcard.is-bad { border-color: #b3261e; }
.ub-vnum { font: 500 var(--ps-fs-xs)/1 var(--ps-font-label); text-transform: uppercase; letter-spacing: var(--ps-track); color: var(--ps-muted); }
.ub-vfig { align-self: stretch; display: flex; justify-content: center; background: var(--ps-paper); border-radius: 8px; padding: var(--ps-3) 0; }
.ub-crop { width: 42px; height: 90px; }
.ub-vcard b { font-weight: 500; font-size: var(--ps-fs-m); line-height: 1.3; }
.ub-vmeta { font-size: var(--ps-fs-s); color: var(--ps-ink-2); line-height: 1.35; }
.ub-vstate { margin-top: auto; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; background: var(--ps-paper); color: var(--ps-ink-2); white-space: nowrap; }
.ub-vstate.is-ok { background: #e8f3ea; color: #1d5a2b; }
.ub-vstate.is-bad { background: #fbe9e7; color: #8c1d18; }
.ps-main p.ub-sub, .ub-sub { font-size: var(--ps-fs-s); color: var(--ps-muted); margin: 0; max-width: none; }
.ps-main p.ub-note, .ps-main p.ub-error { font-size: var(--ps-fs-s); margin: var(--ps-3) 0 0; max-width: none; }
.ps-main p.ub-error { color: #8c1d18; background: #fbe9e7; border-radius: 8px; padding: var(--ps-3) var(--ps-4); margin: 0 0 var(--ps-4); }
.ps-main form.ub-settings { max-width: none; }
.ub-settings .st-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ub-settings .st-actions, .ub-render .st-actions { justify-content: space-between; align-items: center; margin: var(--ps-5) 0 0; }
.ps-main .ub-render form.st-form { max-width: none; }
.ub-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ps-3); margin: 0; }
.ub-facts > div { border: 1px solid var(--ps-line); border-radius: 12px; padding: var(--ps-4); }
.ub-facts dt { font: 500 var(--ps-fs-xs)/1 var(--ps-font-label); text-transform: uppercase; letter-spacing: var(--ps-track); color: var(--ps-muted); margin-bottom: 8px; }
.ub-facts dd { margin: 0; font-size: var(--ps-fs-l, 20px); color: var(--ps-ink); }
.ub-render .st-btn { min-width: 320px; justify-content: center; padding: 14px 22px; }
.ps .st-btn[disabled] { background: var(--ps-line-strong); border-color: var(--ps-line-strong); cursor: not-allowed; }
.ub-block { margin-top: var(--ps-4); background: #fbe9e7; border-radius: 12px; padding: var(--ps-4); color: #5f1410; font-size: var(--ps-fs-s); }
.ub-block ul { margin: 8px 0 0; padding-left: 18px; }
.ub-block li { margin: 4px 0; }
.ub-block a { color: inherit; font-weight: 500; }
.ps-main h2.ub-h { margin: var(--ps-8) 0 var(--ps-2); }
.ub-view { border: 1px solid var(--ps-line); border-radius: 12px; padding: 0 var(--ps-4); margin: var(--ps-3) 0; background: var(--ps-white); }
.ub-view > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--ps-3); min-height: 56px; cursor: pointer; font-weight: 500; list-style: none; }
.ub-view > summary::-webkit-details-marker { display: none; }
.ub-view > summary .ub-vstate { margin-top: 0; }
.ub-view[open] { padding-bottom: var(--ps-4); }
.ub-view[open] > summary { border-bottom: 1px solid var(--ps-line); margin-bottom: var(--ps-4); }
.ps-main .ub-view form.ub-viewform { padding: 0; background: none; border: 0; }
/* Pose-Abnahme (Jill 23.11.): acht Posen nebeneinander, je Bild Approve / Reject */
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ps-4); margin-top: var(--ps-4); }
@media (max-width: 1000px) { .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--ps-line); border-radius: 12px; padding: var(--ps-3); background: var(--ps-white); }
.pr-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: var(--ps-frame); border-radius: 8px; overflow: hidden; color: var(--ps-muted); font-size: var(--ps-fs-s); text-decoration: none; }
.pr-img img { width: 100%; height: 100%; object-fit: contain; }
.pr-card b { font-weight: 500; font-size: var(--ps-fs-m); }
.pr-card .ub-vstate { margin-top: 0; align-self: flex-start; }
.ps-main form.pr-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; background: none; border: 0; }
.pr-act button { justify-content: center; height: 40px; }
.ps-main p.st-qa-links { display: flex; gap: var(--ps-3); max-width: none; margin: 0 0 var(--ps-4); }
/* Pose-Abnahme: Führung in drei Schritten */
.pr-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ps-4); }
@media (max-width: 1000px) { .pr-guide { grid-template-columns: 1fr; } }
.pr-step { display: flex; gap: var(--ps-3); padding: var(--ps-4); border: 1px solid var(--ps-line); border-radius: 12px; opacity: .55; }
.pr-step.is-now { opacity: 1; border-color: var(--ps-ink); box-shadow: 0 0 0 1px var(--ps-ink); }
.pr-step.is-done { opacity: 1; }
.pr-nr { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ps-ink); display: flex; align-items: center; justify-content: center; font-weight: 500; }
.pr-step.is-now .pr-nr { background: var(--ps-ink); color: var(--ps-white); }
.pr-step b { display: block; font-weight: 500; font-size: var(--ps-fs-m); margin-bottom: 4px; }
.ps-main .pr-step p { margin: 0 0 var(--ps-3); font-size: var(--ps-fs-s); color: var(--ps-ink-2); max-width: none; }
.ps-main form.pr-form { display: block; padding: 0; background: none; border: 0; }
.pr-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pr-step .st-btn { justify-content: center; }
/* Sechs Schritte (Jill 23.11.): ein Schritt sichtbar, Weiter und Zurück, verständliche Zeilen */
.st-stepper { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .st-stepper { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.st-step a { cursor: pointer; }
.st-wizard section[hidden], .st-wz-brand[hidden], .st-bgtext[hidden], .st-wz-nav button[hidden], .st-add[hidden] { display: none !important; }
.ps-main form.st-wz-brand { margin-bottom: var(--ps-4); }
.ps-main form.st-wz-brand label { flex-direction: column; align-items: flex-start; max-width: 420px; }
.st-wz-btns { display: flex; gap: var(--ps-3); align-items: center; }
.st-form .st-wz-nav .st-btn { min-width: 220px; }
.st-form .st-wz-nav .st-btn-ghost { height: 46px; padding: 0 24px; }
.st-form .st-fields + .st-drops { margin-top: var(--ps-5); }
.st-drop.is-missing { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.st-slot { grid-template-columns: minmax(200px, 1.4fr) 110px repeat(2, minmax(0, 1fr)); }
.ps .st-slot-rm { background: none; border: 0; padding: 0; color: var(--ps-muted); font: var(--ps-fs-s)/1.4 var(--ps-font-body); text-transform: none; letter-spacing: 0; text-decoration: underline; cursor: pointer; }
.ps .st-slot-rm:hover { color: var(--ps-ink); background: none; }
.ps .st-add { margin-top: var(--ps-4); height: 42px; padding: 0 20px; }
.st-slot select:disabled { opacity: .55; }
.st-chosen { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--ps-3); }
@media (max-width: 900px) { .st-chosen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-chosen > .st-muted { grid-column: 1 / -1; }
.st-chosen-item { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.st-chosen-item img, .st-chosen-text { aspect-ratio: 3 / 4; width: 100%; object-fit: contain; background: var(--ps-frame); border-radius: 8px; }
.st-chosen-text { display: flex; align-items: center; justify-content: center; color: var(--ps-muted); font-size: var(--ps-fs-s); }
.st-chosen-item figcaption { font-size: 12px; color: var(--ps-ink-2); line-height: 1.3; }
.ps-main form.ub-viewform { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.ps .st-add { width: auto; display: inline-flex; align-items: center; }
.st-slot-on input[hidden] { display: none; }
.st-form .st-muted + .st-drops { margin-top: var(--ps-3); }

/* Brand Studio */
.st-note { background: #eef5ee; color: #1f5b2c; padding: var(--ps-3) var(--ps-4); border-radius: 10px; }
.st-tag.is-ok { color: #1f5b2c; border-color: #1f5b2c; }
.st-todo { list-style: none; padding: 0; margin: 0 0 var(--ps-4); display: grid; gap: var(--ps-2); }
.st-todo a { color: var(--ps-ink); text-decoration: none; }
.st-todo .is-done a { color: var(--ps-ink-2); }
.ps-main form.st-form.st-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ps-3); margin-top: var(--ps-4); }
.ps-main form.st-form.st-inline label { display: flex; flex-direction: column; gap: 6px; flex: 0 1 360px; margin: 0; }
.ps-main form.st-form.st-inline .st-btn { margin: 0 0 2px; }
.st-poses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--ps-2) var(--ps-4); }
.st-flow { list-style: none; display: flex; flex-wrap: wrap; gap: var(--ps-2); padding: 0; margin: 0 0 var(--ps-5); counter-reset: none; }
.st-flow li { border: 1px solid var(--ps-line); border-radius: 999px; padding: 6px 14px; font-size: var(--ps-fs-xs); color: var(--ps-ink-2); background: var(--ps-white); }
.st-flow li + li::before { content: none; }
.st-flow-nav li { padding: 0; }
.st-flow-nav a { display: block; padding: 6px 14px; color: var(--ps-ink-2); text-decoration: none; }
.st-flow-nav li.is-done { border-color: #1f5b2c; }
.st-flow-nav li.is-done a { color: #1f5b2c; }
.st-flow-nav li.is-active { background: var(--ps-ink); border-color: var(--ps-ink); }
.st-flow-nav li.is-active a { color: var(--ps-white); }
.st-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ps-3); padding: var(--ps-3) var(--ps-4); border-radius: 10px; margin-bottom: var(--ps-4); }
.st-status.is-ok { background: #eef5ee; color: #1f5b2c; }
.st-status.is-draft { background: #fbf4e6; color: #6b4a00; }
.st-docs { list-style: none; padding: 0; margin: 0 0 var(--ps-4); display: grid; gap: var(--ps-2); }
.st-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ps-3); }
.st-docs form { margin: 0 0 0 auto; }
.st-posetable, .st-review { width: 100%; border-collapse: collapse; margin-bottom: var(--ps-4); }
.st-posetable th, .st-posetable td, .st-review th, .st-review td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ps-line); vertical-align: top; font-size: var(--ps-fs-s); }
.st-posetable th:nth-child(n+3), .st-posetable td:nth-child(n+3) { text-align: center; width: 96px; }
.st-review th { width: 200px; font-weight: 600; }
.st-review .st-tag { display: inline-block; margin: 0 4px 4px 0; }
.st-changed { color: #6b4a00; font-weight: 400; font-size: var(--ps-fs-xs); }
.ps-main form.st-form.st-notes label, .ps-main form.st-form label.st-bgtext { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--ps-4); }
.ps-main form.st-form textarea { width: 100%; max-width: 820px; font: inherit; padding: 10px 12px; border: 1px solid var(--ps-line-strong); border-radius: 8px; }
.st-variant { flex-direction: column; align-items: stretch !important; border-bottom: 1px solid var(--ps-line); padding-bottom: var(--ps-3); }
.st-variant-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ps-3); }
.st-variant-head form { margin: 0; }
.st-variant-head form:first-of-type { margin-left: auto; }
.st-pre { white-space: pre-wrap; font: inherit; font-size: var(--ps-fs-s); background: #f6f6f4; border-radius: 8px; padding: 12px 14px; margin: 0 0 var(--ps-3); }
.st-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--ps-4); margin: var(--ps-4) 0; }
.st-cal-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--ps-line); border-radius: 12px; padding: var(--ps-3); background: var(--ps-white); }
.st-cal-card form { display: flex; gap: 8px; margin: 0; }
.st-cal-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #f3f3f1; border-radius: 8px; overflow: hidden; color: var(--ps-ink-2); font-size: var(--ps-fs-s); }
.st-cal-img img { width: 100%; height: 100%; object-fit: contain; }
.st-cal-refs { display: flex; gap: 6px; }
.st-cal-refs img { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ps-line); background: #f3f3f1; }
.st-src { display: inline-block; margin-top: 4px; color: var(--ps-ink-2); font-size: var(--ps-fs-xs); }

/* Client Roster */
.st-roster-dir { font-size: var(--ps-fs-s); letter-spacing: .08em; text-transform: uppercase; color: var(--ps-ink-2); }
.st-roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--ps-4); margin: var(--ps-3) 0 var(--ps-5); }
.st-roster-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.st-roster-card > img, .st-roster-card > a > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; background: #f3f3f1; display: block; }
.st-roster-card.is-face > a { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 1 / 1; }
.st-roster-card.is-face > a > img { aspect-ratio: 1 / 1; object-position: 50% 0; transform: scale(1.7); transform-origin: 50% 0; border-radius: 0; }
.st-roster-card figcaption { font-size: var(--ps-fs-s); color: var(--ps-ink-2); }
.st-roster-more { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.st-roster-more img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 6px; }
.ps-main form.st-form.st-inline label.st-rights { flex-direction: row; align-items: flex-start; gap: 8px; flex: 1 1 100%; }
.ps-main form.st-form.st-inline label.st-rights input[type=checkbox] { width: 16px !important; min-width: 16px; height: 16px; padding: 0; margin: 3px 0 0; flex: 0 0 16px !important; }

/* KI-Casting im Vorschlag */
.st-cast { position: relative; }
.st-cast .st-cast-why { display: block; font-size: 12px; line-height: 1.35; color: var(--ps-ink-2); margin-top: 4px; }
.st-gaps { margin: 6px 0 4px; padding-left: 18px; }
/* Neue Bildproduktion: zurück aus Schritt 6 (Production UX, 25.11.) */
.st-revise-hint { margin: calc(-1 * var(--ps-3)) 0 var(--ps-5); color: var(--ps-ink-2); font-size: var(--ps-fs-s); line-height: 1.5; }
.st-revise-hint a { color: var(--ps-ink); text-decoration: underline; text-underline-offset: 3px; }
.st-revise-banner { margin: 0 0 var(--ps-5); padding: var(--ps-3) var(--ps-4); border: 1px solid var(--ps-line-strong); border-radius: 10px; background: var(--ps-white); line-height: 1.5; }
.st-stepper a { cursor: pointer; }
.st-stepper a:hover .st-step-name { color: var(--ps-ink); text-decoration: underline; text-underline-offset: 3px; }
.st-stepper a:hover .st-step-nr { border-color: var(--ps-ink); }
.st-drop.st-drop-stored .st-drop-title { display: block; }
/* Production UX: gespeicherte Produktbilder ersetzen oder entfernen */
.st-drop.st-drop-stored{cursor:pointer;position:relative}
.st-drop.st-drop-stored .st-drop-stored-img{display:block;max-width:100%;max-height:180px;margin:0 auto 8px;object-fit:contain}
.st-drop.st-drop-stored .st-drop-stored-note{display:flex;flex-direction:column;align-items:center;gap:4px;color:#767676;font-size:13px}
.st-drop.st-drop-stored.has-new .st-drop-stored-img,.st-drop.st-drop-stored.is-removed .st-drop-stored-img{display:none}
.st-drop.st-drop-stored.is-removed{opacity:.75;border-style:dashed}
.ps .st-drop-unkeep{position:relative;z-index:2;margin-top:8px;background:var(--ps-white);color:var(--ps-ink);border:1px solid var(--ps-line-strong);border-radius:999px;padding:6px 14px;font:var(--ps-fs-s)/1 var(--ps-font-body);text-transform:none;letter-spacing:0;cursor:pointer}
.ps .st-drop-unkeep:hover{border-color:var(--ps-ink);background:var(--ps-paper)}
.st-drop.st-drop-stored.has-new .st-drop-unkeep{display:none}

/* ---- Strang B: Schritt 6 vereinfacht (Demo) ---- */
.ub-more { margin-top: var(--ps-4); }
.ub-more > summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: var(--ps-3) 0; list-style: none; }
.ub-more > summary::-webkit-details-marker { display: none; }
.ub-more > summary::after { content: "Aufklappen ▾"; font-size: var(--ps-fs-xs); color: var(--ps-muted); }
.ub-more[open] > summary::after { content: "Zuklappen ▴"; }


/* ---- Strang B: Brand-Studio-Übersicht (UX-Paket 0) ---- */
.st-flow-nav .st-flow-n { display: inline-block; min-width: 18px; margin-right: 8px; font-weight: 600; color: var(--ps-muted); }
.st-flow-nav a:hover { color: var(--ps-ink); }
.st-flow-nav li:has(a:hover) { border-color: var(--ps-ink); }
.st-flow-nav li.st-flow-off { border: 0; background: transparent; padding: 6px 4px; color: var(--ps-muted); }
.st-flow-nav li.st-flow-off .st-flow-n { color: var(--ps-line); }
.st-brand-card { position: relative; display: flex; flex-direction: column; gap: var(--ps-3); padding: var(--ps-5); border: 1px solid var(--ps-line); border-radius: 14px; background: var(--ps-white); }
.st-brand-card:hover { border-color: var(--ps-ink); box-shadow: 0 6px 18px rgba(17,17,17,.06); }
.st-brand-card .st-card-title { display: flex; justify-content: space-between; align-items: baseline; text-decoration: none; color: var(--ps-ink); margin-top: 0; }
.st-brand-card .st-card-go { font-size: var(--ps-fs-xs); font-weight: 500; color: var(--ps-muted); }
.st-brand-card .st-card-title:hover .st-card-go { color: var(--ps-ink); }
.st-todo { font-size: var(--ps-fs-xs); }
.st-todo-h { display: block; color: var(--ps-ink-2); margin-bottom: 4px; }
.st-todo ul { margin: 0; padding-left: 18px; }
.st-todo a { color: var(--ps-ink); text-decoration: underline; }
/* ---- Strang B: Startseite als Arbeitsfläche (Demo) ---- */
.st-rec-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--ps-6); }
.st-home-h { margin-top: var(--ps-7); }
.st-grid-home .st-card-text { font-size: var(--ps-fs-xs); }

/* Fortschrittsbalken ohne Inline-Style (die Sicherheitsregel der Seite blockiert style-Attribute) */
.st-bar .st-w0 { width: 0%; }
.st-bar .st-w5 { width: 5%; }
.st-bar .st-w10 { width: 10%; }
.st-bar .st-w15 { width: 15%; }
.st-bar .st-w20 { width: 20%; }
.st-bar .st-w25 { width: 25%; }
.st-bar .st-w30 { width: 30%; }
.st-bar .st-w35 { width: 35%; }
.st-bar .st-w40 { width: 40%; }
.st-bar .st-w45 { width: 45%; }
.st-bar .st-w50 { width: 50%; }
.st-bar .st-w55 { width: 55%; }
.st-bar .st-w60 { width: 60%; }
.st-bar .st-w65 { width: 65%; }
.st-bar .st-w70 { width: 70%; }
.st-bar .st-w75 { width: 75%; }
.st-bar .st-w80 { width: 80%; }
.st-bar .st-w85 { width: 85%; }
.st-bar .st-w90 { width: 90%; }
.st-bar .st-w95 { width: 95%; }
.st-bar .st-w100 { width: 100%; }

/* Brand Studio: Model-Prompt je Casting-Lücke (26.11.) */
.st-gaps .st-gap-prompt { margin: 6px 0 10px; }
.st-gaps .st-gap-prompt summary { cursor: pointer; color: var(--st-muted, #6b6b6b); font-size: 13px; }
.st-gaps .st-gap-prompt p { margin: 6px 0 0; max-width: 72ch; }
