/* PresentTool™ — Web app layout overrides (v3.9)
   Loaded AFTER the shared plugin styles.css. The plugin UI is sized for a fixed
   720×780 SketchUp HtmlDialog; in the browser we let it fill the viewport while
   preserving the internal panel/sidebar layout untouched. */

html, body {
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh;
  overflow: hidden;
}

#pt-root {
  width: 100% !important;
  height: 100vh !important;
  max-width: 1280px;          /* keep the workflow comfortable on wide screens */
  margin: 0 auto;
}

/* On true desktop widths give the canvas room to breathe; the slide-over
   panels (#pt-panel / #pt-offerte-panel) keep their fixed widths and still
   anchor to the right edge of #pt-root. */
@media (min-width: 900px) {
  #pt-root { box-shadow: 0 0 0 1px var(--pt-border); }
}

/* Mobile: stack-friendly — the fixed panel widths would overflow, so cap them. */
@media (max-width: 560px) {
  #pt-panel,
  #pt-offerte-panel { width: 100% !important; }
  #pt-cmd-palette { width: 92% !important; }
}

/* Web scene-upload floating action button (injected by boot.js). */
#pt-web-upload-fab {
  position: fixed;
  left: 16px;
  bottom: 56px;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-family: var(--pt-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--pt-primary);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--pt-shadow-modal);
  cursor: pointer;
}
#pt-web-upload-fab:hover { filter: brightness(1.05); }

/* The web app has no SketchUp drawing to scan — hide that affordance. */
.pt-host-web [onclick*="scanSketchUp"] { display: none !important; }

/* ════════════════════════════════════════════════════════════════════════
   WEBAPP STUDIO REDESIGN 2026 — mockup components (web-only)
   Source of truth: mockups/ui-redesign-2026-webapp/*.html (+ styles.css).
   These are the rich, screen-specific components the live plugin UI lacked.
   Built screen-by-screen; the plugin keeps its own renderers untouched.
   ──────────────────────────────────────────────────────────────────────── */
:root { --pt-text-secondary: #4A4A47; }

/* — Web tour "Verteltour — Tourregisseur" highlight card — */
.pt-web-tour {
  position: relative;
  border: 1px solid var(--pt-accent-mid, var(--pt-accent-border));
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.07), rgba(200, 149, 108, 0.04));
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pt-web-tour__head { display: flex; align-items: center; gap: 9px; }
.pt-web-tour__title { font-size: 13px; font-weight: 600; color: var(--pt-primary); }
.pt-web-tour__new {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--pt-primary); border-radius: 999px; padding: 2px 7px;
}
.pt-web-tour__meta { font-size: 11px; color: var(--pt-text-muted); margin-left: auto; font-variant-numeric: tabular-nums; }

/* — Clip card: net zo "fancy" als de Verteltour-kaart, met duidelijk
     gescheiden Sfeerclip- en Leefclip-productblokken — */
.pt-web-clip {
  position: relative;
  border: 1px solid var(--pt-accent-mid, var(--pt-accent-border));
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(156, 90, 36, 0.07), rgba(200, 149, 108, 0.04));
  display: flex; flex-direction: column; gap: 0;
}
.pt-web-clip__head { display: flex; align-items: center; gap: 9px; }
.pt-web-clip__glyph {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pt-primary); color: #fff;
}
.pt-web-clip__title { font-size: 13px; font-weight: 600; color: var(--pt-primary); }
.pt-web-clip__meta { font-size: 11px; color: var(--pt-text-muted); margin-left: auto; font-variant-numeric: tabular-nums; }

.pt-clip-products { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pt-clip-prod {
  border: 1px solid var(--pt-border); border-radius: 10px;
  padding: 11px 13px; background: var(--pt-surface-0);
}
.pt-clip-prod--leef { background: linear-gradient(135deg, rgba(150, 90, 200, 0.05), transparent); }
.pt-clip-prod__head { display: flex; align-items: flex-start; gap: 9px; }
.pt-clip-prod__ico {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pt-accent-soft); color: var(--pt-primary);
}
.pt-clip-prod--leef .pt-clip-prod__ico { background: rgba(150, 90, 200, 0.14); color: rgb(150, 90, 200); }
.pt-clip-prod__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pt-clip-prod__title { font-size: 12.5px; font-weight: 600; color: var(--pt-text); }
.pt-clip-prod__sub { font-size: 10.5px; color: var(--pt-text-muted); line-height: 1.4; }
.pt-clip-prod__cost {
  margin-left: auto; flex: 0 0 auto; align-self: flex-start;
  font-family: var(--pt-mono); font-size: 11px; color: var(--pt-text-muted); font-variant-numeric: tabular-nums;
}
.pt-clip-leef { display: flex; align-items: center; gap: 11px; margin-top: 10px; }
.pt-clip-leef--empty { align-items: center; }
.pt-clip-leef__thumb {
  width: 64px; height: 42px; border-radius: 7px; flex: 0 0 auto;
  background-size: cover; background-position: center; background-color: var(--pt-surface-3);
}
.pt-clip-leef__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.pt-clip-leef__name { font-size: 12px; font-weight: 500; color: var(--pt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-clip-leef__meta { font-size: 10.5px; color: var(--pt-text-muted); display: inline-flex; align-items: center; gap: 3px; }

/* — Render-driven clip pickers (sfeerbeeld / leefbeeld) — */
.pt-clip-pick-label {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--pt-text);
}
.pt-clip-pick-label span { font-weight: 400; font-size: 10.5px; color: var(--pt-text-muted); }
.pt-clip-pick-sub {
  margin: 12px 0 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--pt-text-muted);
}
.pt-clip-pick-empty {
  display: flex; align-items: center; gap: 11px; margin-top: 10px;
  padding: 12px 14px; border: 1px dashed var(--pt-border); border-radius: 9px;
  font-size: 11.5px; color: var(--pt-text-muted); line-height: 1.5;
}
.pt-clip-pick-empty span { flex: 1; }
.pt-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.pt-pick-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 0;
  background: none; border: none; cursor: pointer; text-align: left;
}
.pt-pick-tile__img {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 8px;
  background-size: cover; background-position: center; background-color: var(--pt-surface-3);
  border: 2px solid transparent; transition: border-color .12s, box-shadow .12s;
}
.pt-pick-tile:hover .pt-pick-tile__img { border-color: var(--pt-accent-border); }
.pt-pick-tile.is-selected .pt-pick-tile__img {
  border-color: var(--pt-primary);
  box-shadow: 0 0 0 3px var(--pt-accent-soft);
}
.pt-pick-tile__check {
  position: absolute; top: 5px; right: 5px; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--pt-primary); color: #fff;
}
.pt-pick-tile__name {
  font-size: 10.5px; color: var(--pt-text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding: 0 2px;
}
.pt-pick-tile__sub {
  font-size: 9px; color: var(--pt-text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding: 0 2px;
}
.pt-clip-shot__tag {
  font-size: 9px; font-weight: 500; color: var(--pt-text-muted);
  background: var(--pt-surface-2); border-radius: 4px; padding: 1px 5px;
  white-space: nowrap;
}
.tour-beat__set {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--pt-text-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.pt-beat-regen {
  position: absolute; top: 3px; right: 4px;
  width: 20px; height: 20px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 5px; cursor: pointer;
  background: rgba(0, 0, 0, .62); color: #fff;
  transition: background .12s, transform .12s;
}
.pt-beat-regen:hover { background: var(--pt-primary); transform: scale(1.08); }
.pt-beat-regen:disabled { opacity: .4; cursor: default; }

/* — Clean per-render clip-shot row (sfeerclip, no people/“kies-niemand”) — */
.pt-clip-shot { border: 1px solid var(--pt-border); border-radius: 8px; overflow: hidden; background: transparent; }
.pt-clip-shot.is-open { background: var(--pt-surface-1); }
.pt-clip-shot__main { display: flex; align-items: center; gap: 10px; padding: 7px 9px; cursor: pointer; }
.pt-clip-shot__thumb {
  width: 56px; height: 38px; border-radius: 5px; flex: 0 0 auto;
  background-size: cover; background-position: center; background-color: var(--pt-surface-3);
  display: flex; align-items: center; justify-content: center; color: var(--pt-text-muted);
}
.pt-clip-shot__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-clip-shot__title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--pt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-clip-shot__num { font-family: var(--pt-mono); font-size: 11px; color: var(--pt-text-muted); }
.pt-clip-shot__dir { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--pt-text-muted); }
.pt-clip-shot__tools { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.pt-clip-shot__edit { border-top: 1px solid var(--pt-border); padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }

/* — Leefclip supervisor-style panels (Scène vast · Muziek · Duur) — */
.pt-leef-panel {
  margin-top: 10px; padding: 10px 12px; border: 1px solid var(--pt-border);
  border-radius: 9px; background: var(--pt-surface-0);
}
.pt-leef-panel .panel-h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--pt-text-muted); }
.pt-leef-panel .panel-h .kick {
  font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: rgb(150, 90, 200); background: rgba(150, 90, 200, .12);
  padding: 1px 6px; border-radius: 4px;
}
.pt-leef-panel .panel-h .ttl { font-size: 12.5px; font-weight: 600; color: var(--pt-text); margin-left: 2px; }
.pt-leef-panel__scene { display: flex; align-items: center; gap: 11px; }

/* — Guide picker tiles with portraits — */
.guide-tile-row { display: flex; gap: 6px; flex-wrap: wrap; }
.guide-tile {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 6px;
  border: 1px solid var(--pt-border);
  border-radius: 9px;
  background: var(--pt-surface-0);
  font-size: 12px; font-weight: 500; color: var(--pt-text);
  cursor: pointer; transition: border-color .14s, box-shadow .14s, background .14s;
}
.guide-tile:hover { border-color: var(--pt-accent-mid, var(--pt-accent-border)); }
.guide-tile.is-selected {
  border-color: var(--pt-primary);
  background: var(--pt-accent-soft);
  box-shadow: 0 0 0 2px var(--pt-accent-soft);
  color: var(--pt-primary); font-weight: 600;
}
.guide-tile .avatar {
  width: 30px; height: 30px; border-radius: 7px;
  background-size: cover; background-position: center;
  background-color: var(--pt-surface-2);
  border: 1px solid var(--pt-border);
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
}
.guide-tile .gt-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.guide-tile .gt-desc { font-size: 10px; font-weight: 400; color: var(--pt-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* — Per-beat regie card (one per room) — */
.tour-beat {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--pt-border);
  border-radius: 11px;
  padding: 14px;
  background: var(--pt-surface-2);
}
.tour-beat__thumb {
  position: relative;
  aspect-ratio: 16 / 9;          /* netjes liggend, zoals de mockup (#2) */
  border-radius: 8px;
  overflow: hidden;
  align-self: start;
  background-size: cover; background-position: center;
  background-color: #111;
}
.tour-beat__num {
  position: absolute; top: 6px; left: 6px;
  font-family: var(--pt-mono); font-size: 9px; font-weight: 700;
  color: #fff; background: rgba(0, 0, 0, 0.6); border-radius: 5px; padding: 2px 6px;
}
.tour-beat__body { padding: 0; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
@media (max-width: 640px) { .tour-beat { grid-template-columns: 1fr; } }
.tour-beat__title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pt-text); }
.tour-beat__title .reorder { margin-left: auto; display: inline-flex; gap: 3px; }
.tour-beat__title .reorder button {
  width: 22px; height: 20px; border: 1px solid var(--pt-border); border-radius: 5px;
  background: var(--pt-surface-0); color: var(--pt-text-muted); font-size: 10px; cursor: pointer; line-height: 1;
}
.tour-beat__title .reorder button:hover { background: var(--pt-surface-2); color: var(--pt-text); }
.tour-beat__dir { font-size: 11px; color: var(--pt-text-muted); display: inline-flex; gap: 6px; align-items: center; }
.tour-beat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* Cast-badge op de thumbnail (#6) */
.tour-beat__cast {
  position: absolute; bottom: 6px; left: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; color: #fff; background: rgba(47,110,104,.92);
  padding: 2px 7px; border-radius: 6px;
}
.tour-beat__cast svg { width: 11px; height: 11px; }
/* Per-beat actie-voet: cast-preview · frame in gebruik · start deze ruimte */
.tour-beat__foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--pt-border);
}
.tour-beat__inuse { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #2F6E68; }
.tour-beat__inuse svg { width: 12px; height: 12px; }
.tour-beat__meta { font-size: 11px; color: var(--pt-text-muted); }

/* — Lightweight styled "select" used in beat cards — */
.pt-beat-select {
  width: 100%;
  font-size: 12px; color: var(--pt-text);
  background: var(--pt-surface-0);
  border: 1px solid var(--pt-border); border-radius: 7px;
  padding: 6px 8px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.pt-beat-select:focus { outline: none; border-color: var(--pt-primary); }

/* — Scene-source / uploaded scenes (web's "where do scenes come from") — */
.scene-source {
  border: 1px solid var(--pt-accent-mid, var(--pt-accent-border));
  background: linear-gradient(135deg, rgba(139,69,19,0.07), rgba(200,149,108,0.04));
  border-radius: 12px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.scene-source__head { display: flex; align-items: center; gap: 9px; }
.scene-source__head .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--pt-accent-soft, rgba(139,69,19,0.12)); color: var(--pt-primary);
}
.scene-source__head .title { font-size: 13px; font-weight: 600; color: var(--pt-text); }
.scene-source__head .badge {
  margin-left: auto; font-size: 10.5px; font-weight: 500;
  color: var(--pt-text-secondary);
  background: var(--pt-surface-0); border: 1px solid var(--pt-border);
  padding: 2px 8px; border-radius: 999px;
}
.uploaded-scenes { display: flex; gap: 8px; flex-wrap: wrap; }
.uploaded-scene { width: 96px; border-radius: 8px; border: 1px solid var(--pt-border); overflow: hidden; background: var(--pt-surface-0); cursor: pointer; transition: border-color 0.12s ease; }
.uploaded-scene:hover { border-color: var(--pt-border-strong); }
.uploaded-scene.is-selected { border-color: var(--pt-primary); box-shadow: 0 0 0 1px var(--pt-primary); }
.uploaded-scene .thumb { height: 62px; background-size: cover; background-position: center; border-bottom: 1px solid var(--pt-border); }
.uploaded-scene .cap { display: flex; align-items: center; gap: 4px; padding: 4px 6px; font-family: var(--pt-mono); font-size: 9.5px; color: var(--pt-text-muted); }
.uploaded-scene .cap .saved { margin-left: auto; color: var(--pt-success, #2F8F5B); display: inline-flex; }
.uploaded-scene--add {
  display: flex; align-items: center; justify-content: center;
  min-height: 86px; color: var(--pt-text-muted);
  border-style: dashed; background: transparent;
}
.uploaded-scene--add:hover { color: var(--pt-primary); border-color: var(--pt-primary); }

/* ── Leefbeeld op web: sfeerbeeld-basis + per-kamer castkeuze ──────────────
   Leefbeeld = mensen ín een goedgekeurd sfeerbeeld (backend img2img via
   source_sfeer_run_id). De look komt uit het sfeerbeeld, dus hier alleen een
   basis-picker + de volledige castlijst (mirror supervisor wf-leef). */
.leef-empty {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; line-height: 1.5; color: var(--pt-text-muted);
  background: var(--pt-surface-2); border: 1px solid var(--pt-border);
  border-radius: 9px; padding: 10px 12px; margin-top: 4px;
}
.leef-empty svg { flex: 0 0 auto; margin-top: 1px; opacity: 0.8; }
.leef-base { margin-top: 4px; }
.leef-base__row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.leef-base__tile {
  position: relative; width: 72px; height: 46px; padding: 0;
  border-radius: 8px; border: 2px solid transparent;
  background-size: cover; background-position: center; background-color: var(--pt-surface-3);
  cursor: pointer; transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.leef-base__tile:hover { border-color: var(--pt-border-strong); }
.leef-base__tile.is-selected { border-color: var(--pt-primary); box-shadow: 0 0 0 1px var(--pt-primary); }
.leef-base__chk {
  position: absolute; top: 3px; right: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 999px;
  background: var(--pt-primary); color: #fff;
}
.leef-cast { margin-top: 12px; }
.leef-cast__grp { margin-top: 8px; }
.leef-cast__grp-h {
  display: block; margin-bottom: 4px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pt-text-muted);
}

/* ════════════════════════════════════════════════════════════════════════
   SCREEN 01 — BRIEFING (web variant)
   Source: mockups/ui-redesign-2026-webapp/01-briefing.html, plus web-only
   density tweaks: 2-column context grid, numbered section heads, a tinted AI
   card for the notes step, a completeness pill and a prominent analyse-CTA.
   ──────────────────────────────────────────────────────────────────────── */

/* — Completeness pill in the canvas head — */
.pt-brief-progress {
  font-family: var(--pt-mono); font-size: 10.5px; font-weight: 600;
  color: var(--pt-text-muted);
  background: var(--pt-surface-2); border: 1px solid var(--pt-border);
  border-radius: 999px; padding: 2px 9px; margin-left: 8px;
  white-space: nowrap;
}
.pt-brief-progress.is-complete {
  color: var(--pt-success, #2F8F5B);
  background: rgba(47,143,91,0.10);
  border-color: rgba(47,143,91,0.30);
}

/* — Numbered section heads — */
.canvas-section-head .sec-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: 0 0 20px;
  font-family: var(--pt-mono); font-size: 11px; font-weight: 700;
  color: var(--pt-primary, #8B6F47);
  background: rgba(139,111,71,0.14);
  border-radius: 6px; margin-right: 8px;
}

/* — 2-column context grid (collapses on narrow canvases) — */
.pt-brief-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 20px; align-items: start;
}
.pt-brief-grid .field { margin: 0; }
@media (max-width: 720px) {
  .pt-brief-grid { grid-template-columns: 1fr; }
}

/* — Tinted AI card around the notes step — */
.pt-brief-ai {
  border: 1px solid var(--pt-accent-mid, var(--pt-accent-border));
  background: linear-gradient(135deg, rgba(139,111,71,0.06), rgba(200,149,108,0.03));
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pt-brief-ai .action-bar { margin-top: 0; }

/* — Prominent analyse-CTA — */
.btn.pt-brief-cta {
  border-color: var(--pt-primary, #8B6F47);
  color: var(--pt-primary, #8B6F47);
  box-shadow: 0 1px 0 rgba(139,111,71,0.12);
}
.btn.pt-brief-cta:hover {
  background: rgba(139,111,71,0.10);
  border-color: var(--pt-primary, #8B6F47);
}

/* ════════════════════════════════════════════════════════════════════════
   SCREEN 02 — MOODBOARD (web variant)
   Source: mockups/ui-redesign-2026-webapp/02-moodboard.html. Adds a briefing-
   driven coach card, reference-image strip with favourite/remove, and reuses
   the screen-01 numbered section heads.
   ──────────────────────────────────────────────────────────────────────── */

/* — ✦ Coach-voorstel card — */
.pt-mb-coach {
  border: 1px solid var(--pt-accent-mid, var(--pt-accent-border));
  background: linear-gradient(135deg, rgba(139,111,71,0.07), rgba(200,149,108,0.04));
  border-radius: 12px; padding: 14px 16px;
}
.pt-mb-coach__body {
  font-size: 12.5px; line-height: 1.55;
  color: var(--pt-text-secondary, #4A4A47); margin: 6px 0 0;
}

/* — Reference-image strip thumbnails — */
.pt-mb-refs .thumb-tile {
  position: relative; width: 96px; height: 72px;
  background-size: cover; background-position: center;
  border-radius: 7px; border: 1px solid var(--pt-border);
}
.pt-mb-refs .t-badge,
.pt-mb-refs .t-remove {
  position: absolute; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; cursor: pointer; border-radius: 5px;
  background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.78);
}
.pt-mb-refs .t-badge { top: 4px; left: 4px; }
.pt-mb-refs .t-badge.is-fav { background: var(--pt-primary, #8B6F47); color: #fff; }
.pt-mb-refs .t-remove { top: 4px; right: 4px; font-size: 13px; }
.pt-mb-refs .t-remove:hover { background: rgba(180,40,40,0.85); color: #fff; }
.pt-mb-refs .pt-ref-add {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; color: var(--pt-text-muted);
  cursor: pointer; background: var(--pt-surface-1);
}
.pt-mb-refs .pt-ref-add:hover { color: var(--pt-primary, #8B6F47); border-color: var(--pt-primary, #8B6F47); }

/* — "Aanbevolen" badge on style-matched palettes — */
.pt-pal-rec {
  margin-left: auto;
  font-family: var(--pt-mono); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--pt-primary, #8B6F47);
  background: rgba(139,111,71,0.12);
  border: 1px solid rgba(139,111,71,0.28);
  border-radius: 999px; padding: 1px 6px; white-space: nowrap;
}
#mb-palette-row .tile.is-rec { border-color: rgba(139,111,71,0.45); }

/* — Material chips with a real-colour swatch dot — */
.chip.mb-mat { display: inline-flex; align-items: center; gap: 6px; }
.chip.mb-mat .mb-sw {
  width: 13px; height: 13px; flex: 0 0 13px;
  border-radius: 4px; background: var(--sw, #cfc6b4);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.25);
}

/* ── Scherm 13 · 3D-objecten (web) ─────────────────────────────────────────── */
/* "Met textuur"-schakelaar */
.pt-3d-tex {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12.5px; color: var(--pt-text); margin-top: 12px;
}
.pt-3d-tex input { width: 15px; height: 15px; accent-color: var(--pt-primary, #8B6F47); cursor: pointer; }
.pt-3d-tex__delta {
  margin-left: auto; font-family: var(--pt-mono); font-size: 10.5px;
  color: var(--pt-text-muted); white-space: nowrap;
}

/* Render-kwaliteit-tegels (Schets / Verfijnd / Ultra) */
.pt-3d-qtiles { display: flex; flex-direction: column; gap: 8px; }
.pt-3d-qtile {
  border: 1px solid var(--pt-border); border-radius: 9px;
  padding: 9px 12px; cursor: pointer; background: var(--pt-surface-0);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.pt-3d-qtile:hover { border-color: var(--pt-border-strong); }
.pt-3d-qtile.is-selected {
  border-color: var(--pt-primary); background: var(--pt-accent-soft, rgba(139,69,19,0.06));
  box-shadow: 0 0 0 1px var(--pt-primary);
}
.pt-3d-qtile__title { font-size: 12.5px; font-weight: 600; color: var(--pt-text); }
.pt-3d-qtile__sub { font-size: 11px; color: var(--pt-text-muted); margin-top: 1px; }
.pt-3d-qtile__cost {
  font-family: var(--pt-mono); font-size: 10.5px;
  color: var(--pt-primary); margin-top: 3px;
}

/* Dedicated 3D model viewer (zoals supervisor-preview) */
.pt-3d-viewer {
  position: relative; width: 100%; height: 240px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--pt-border); background: #0e0e10;
}
.pt-3d-viewer__mv { width: 100%; height: 100%; --poster-color: transparent; }
.pt-3d-viewer__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 20px; color: #cfc8bd;
}
.pt-3d-viewer__box {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--pt-primary, #c8956c); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.pt-3d-viewer__title { font-size: 12.5px; font-weight: 600; color: #ece6dc; }
.pt-3d-viewer__sub { font-size: 11px; color: #9a948b; max-width: 280px; line-height: 1.45; }

/* Gekozen productfoto (foto→3D) */
.pt-3d-photo {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--pt-border);
  border-radius: 10px; background: var(--pt-surface-1);
}
.pt-3d-photo img {
  width: 72px; height: 72px; flex: 0 0 72px;
  object-fit: cover; border-radius: 8px; border: 1px solid var(--pt-border);
}
.pt-3d-photo__body { min-width: 0; flex: 1; }
.pt-3d-photo__name {
  font-size: 12.5px; font-weight: 600; color: var(--pt-text);
  margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* "Klaar"-resultaten met inline 3D-preview */
.pt-3d-result {
  display: flex; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--pt-border);
}
.pt-3d-result:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-3d-mv {
  width: 120px; height: 96px; flex: 0 0 120px;
  border-radius: 8px; background: var(--pt-surface-2);
  border: 1px solid var(--pt-border); --poster-color: transparent;
}
.pt-3d-mv--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--pt-text-muted);
}
.pt-3d-result__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-3d-result__name {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--pt-text);
}
.pt-3d-result__meta {
  font-family: var(--pt-mono); font-size: 10px;
  color: var(--pt-text-muted); margin-top: 2px;
}

/* ── Screen 03 · compare-variant picker (before/after slider source) ─────── */
.pt-cmp-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.pt-cmp-bar__lbl {
  font-size: 10.5px; color: var(--pt-text-muted);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.pt-cmp-select {
  flex: 0 1 auto; max-width: 280px;
  font-size: 11.5px; color: var(--pt-text);
  background: var(--pt-surface-1); border: 1px solid var(--pt-border);
  border-radius: 7px; padding: 5px 8px; cursor: pointer;
}
.pt-cmp-select:hover { border-color: var(--pt-border-strong); }

/* ── Screen 03 · tone-anchor "pick" pill (no anchor yet) ─────────────────── */
.anchor-pill--add {
  background: var(--pt-surface-1); border: 1px dashed var(--pt-border-strong);
  color: var(--pt-text-secondary); cursor: pointer;
}
.anchor-pill--add:hover {
  border-color: var(--pt-primary); color: var(--pt-text);
}

/* ── Screen 03 · tone-anchor picker modal grid ──────────────────────────── */
.pt-tone-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; max-height: 52vh; overflow-y: auto;
  margin: 4px 0; padding: 2px;
}
.pt-tone-tile {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; border-radius: 9px;
}
.pt-tone-tile__media {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  border-radius: 9px; border: 2px solid var(--pt-border);
  transition: border-color 0.12s ease;
}
.pt-tone-tile:hover .pt-tone-tile__media { border-color: var(--pt-border-strong); }
.pt-tone-tile.is-selected .pt-tone-tile__media { border-color: var(--pt-primary); }
.pt-tone-tile__cur {
  position: absolute; top: 5px; left: 5px;
  background: rgba(0,0,0,0.66); color: #fff;
  font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
}
.pt-tone-tile__check {
  position: absolute; bottom: 5px; right: 5px;
  display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pt-primary); color: #fff;
}
.pt-tone-tile.is-selected .pt-tone-tile__check { display: flex; }
.pt-tone-tile__cap {
  font-size: 10.5px; color: var(--pt-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Screen 03 · type-badge + param-caption on earlier-render thumbnails ──── */
.pt-render-tile__type {
  position: absolute; top: 3px; left: 3px;
  color: #fff; font-size: 8.5px; font-weight: 600;
  padding: 1px 5px; border-radius: 3px; letter-spacing: 0.02em;
}
.pt-render-tile__cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff; font-size: 9px; font-weight: 500;
  padding: 8px 5px 3px; border-radius: 0 0 7px 7px;
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================
   STAP 4 — Regie-storyboard: launchers + inline editor
   (mockup 04 = launchers + speler + bibliotheek; 04b = editor)
   ============================================================ */
.s4l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 720px) { .s4l-grid { grid-template-columns: 1fr; } }
.s4l {
  border: 1px solid var(--pt-border); border-radius: 11px; padding: 12px;
  background: var(--pt-surface-0); display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: border-color .12s, box-shadow .12s, background .12s;
}
.s4l:hover { border-color: var(--pt-accent-mid); }
/* Verteltour krijgt alleen een subtiel accent-randje, GEEN permanente highlight. */
.s4l.is-tour { border-color: var(--pt-accent-border); }
/* Gehighlight = de geselecteerde variant (welke speler je nu ziet). */
.s4l.is-selected { box-shadow: 0 0 0 2px var(--pt-accent-soft); border-color: var(--pt-primary); background: var(--pt-accent-soft); }
/* Regie-modal open voor deze variant. */
.s4l.is-open { box-shadow: 0 0 0 2px var(--pt-primary); border-color: var(--pt-primary); }
.s4l__count {
  margin-left: auto; font-family: var(--pt-mono); font-size: 10px; font-weight: 600;
  color: var(--pt-text-muted); background: var(--pt-surface-2);
  border-radius: 999px; padding: 1px 7px; min-width: 18px; text-align: center;
}
.s4l__head { display: flex; align-items: center; gap: 7px; }
.s4l__ico {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--pt-surface-2); color: var(--pt-primary);
}
.s4l h4 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--pt-text); }
.s4l p { margin: 0; font-size: 10.5px; line-height: 1.45; color: var(--pt-text-muted); flex: 1; }
.s4l__mono { font-family: var(--pt-mono); font-size: 10px; color: var(--pt-text-muted); }
.s4l .btn { width: 100%; justify-content: center; }
.s4l__sec { display: flex; gap: 6px; }
.s4l__sec .btn { flex: 1; }
.s4l__newtag {
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--pt-primary); border-radius: 999px; padding: 2px 6px; margin-left: auto;
}

/* Regie-editor als modal-overlay (supervisor/04b-patroon) — position:fixed zodat
   hij altijd zichtbaar is, los van de canvas-scroll/layout. */
.rg-modal {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(12, 14, 16, .55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
.rg-modal__scroll { width: min(980px, 96vw); margin: auto 0; }
.rg-modal .rg-editor { margin-top: 0; width: 100%; max-height: 90vh; display: flex; flex-direction: column; }
.rg-modal .rg-editor__body { overflow-y: auto; }

.rg-editor {
  margin-top: 12px; border: 1px solid var(--pt-border); border-radius: 14px;
  background: var(--pt-surface-1); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.38);
}
.rg-editor--tour { border-color: var(--pt-accent-border); }
.rg-editor__head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--pt-border); }
.rg-editor__mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--pt-accent-soft); color: var(--pt-primary);
}
.rg-editor__ttl { flex: 1; min-width: 0; }
.rg-editor__ttl h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--pt-text); }
.rg-editor__ttl span { font-size: 10.5px; color: var(--pt-text-muted); }
.rg-editor__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.rg-editor__foot {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--pt-border);
  background: var(--pt-surface-0);
}
.rg-editor__foot .cost-note { font-size: 11.5px; color: var(--pt-text-muted); font-variant-numeric: tabular-nums; }

.rg-tourbar {
  border: 1px solid var(--pt-border); border-radius: 11px; padding: 11px 13px;
  background: var(--pt-surface-0); display: flex; flex-direction: column; gap: 8px;
}
.rg-tourbar__foot { font-size: 10.5px; color: var(--pt-text-muted); line-height: 1.45; margin: 0; }

.rg-split { display: grid; grid-template-columns: 184px 1fr; gap: 12px; }
@media (max-width: 680px) { .rg-split { grid-template-columns: 1fr; } }
.rg-chapters {
  border: 1px solid var(--pt-border); border-radius: 10px; padding: 9px;
  background: var(--pt-surface-0); align-self: start;
}
.rg-chapters__tag { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pt-text-muted); display: block; margin: 0 0 7px 2px; }
.rg-chaplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rg-chap { display: flex; gap: 8px; align-items: flex-start; padding: 6px 7px; border: 1px solid var(--pt-border); border-radius: 8px; background: var(--pt-surface-1); cursor: pointer; transition: border-color .12s, background .12s; }
.rg-chap:hover { border-color: var(--pt-accent-mid); }
.rg-chap.is-active { border-left: 3px solid var(--pt-primary); background: var(--pt-surface-0); }
.tour-beat.rg-beat--flash { animation: rg-beat-flash 1.1s ease-out; }
@keyframes rg-beat-flash { 0% { box-shadow: 0 0 0 2px var(--pt-primary); } 100% { box-shadow: 0 0 0 0 transparent; } }
.rg-chap__n { font-family: var(--pt-mono); font-size: 10px; color: var(--pt-text-muted); padding-top: 1px; }
.rg-chap strong { display: block; font-size: 11.5px; font-weight: 600; color: var(--pt-text); }
.rg-chap span { font-size: 9.5px; color: var(--pt-text-muted); }
.rg-chap__nr { display: block; font-size: 10.5px; color: var(--pt-text-muted); line-height: 1.4; margin-top: 2px; }
.rg-chap__nr.is-empty { font-style: italic; opacity: .7; }
.rg-beats { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ── Instellingenbalk boven de split (muziek/cliplengte/timelapse) ── */
.rg-settingsbar {
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start;
  padding: 11px 13px; margin-bottom: 12px;
  border: 1px solid var(--pt-border); border-radius: 10px; background: var(--pt-surface-2);
}
.rg-set-fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rg-set-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--pt-text-muted); }

/* Edit-preset pills op de tour-beatkaart */
.tour-beat__pills { display: flex; flex-wrap: wrap; gap: 5px; }
.tour-beat__pills .chip { font-size: 11px; padding: 3px 9px; }

/* #1 — per-beat coach-knop in het scriptveld (compacte ghost-knop in label) */
.tour-beat__coach {
  margin-left: auto; padding: 2px 9px; font-size: 10.5px; line-height: 1.4;
  border-radius: 999px; border: 1px solid var(--pt-accent-border);
  color: var(--pt-primary); background: var(--pt-accent-soft);
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.tour-beat__coach:hover { background: var(--pt-accent-soft); filter: brightness(1.04); }
.tour-beat__coach:disabled { opacity: .6; cursor: default; }
.tour-beat__coach svg { flex: none; }

/* Cast-preview modal — grote 16/9 preview van het gecaste frame */
.cast-modal__stage {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px;
  border: 1px solid var(--pt-border); background-size: cover; background-position: center;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cast-modal__badge {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(20,18,14,.72);
  padding: 3px 9px; border-radius: 7px;
}
.cast-modal__badge--anchor { background: rgba(20,18,14,.62); font-weight: 500; }
.cast-modal__busy {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--pt-text); background: var(--pt-surface-0); padding: 7px 14px; border-radius: 9px;
  border: 1px solid var(--pt-border);
}

/* Naam-wijzigen / materiaal / toon-anker modals BOVEN de regie-modal (z-index 4000) */
#pt-feedback-modal { z-index: 5200 !important; }

/* ── Preset-balk verteltour (Preset / Naam / Opslaan / Dupliceer) ── */
.rg-presetbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px;
  padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--pt-border);
}
.rg-presetbar .pt-beat-select { min-width: 150px; }

/* ── Consistente "scène/ruimte toevoegen"-rij (sfeer/leef/tour) ── */
.rg-addrow {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 11px 13px;
  border: 1px dashed var(--pt-border); border-radius: 10px; background: var(--pt-surface-1);
}

/* ── Lege speler-staat: gekozen variant heeft nog geen clips (#1) ── */
.clip-empty {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,1.1fr);
  gap: 18px; align-items: center;
  border: 1px dashed var(--pt-accent-mid); border-radius: 16px;
  padding: 18px; background: var(--pt-accent-soft);
}
.clip-empty__stage {
  position: relative; aspect-ratio: 16/9; border-radius: 12px;
  background: linear-gradient(135deg, #14181b, #0c0c0c);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.clip-empty__ico { color: rgba(255,255,255,.55); }
.clip-empty__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px;
}
.clip-empty__body h3 { margin: 0 0 6px; font-family: var(--pt-serif); font-size: 18px; font-weight: 600; color: var(--pt-text); }
.clip-empty__body p { margin: 0 0 13px; font-size: 12.5px; line-height: 1.55; color: var(--pt-text-secondary, var(--pt-text-muted)); }
@media (max-width: 720px) { .clip-empty { grid-template-columns: 1fr; } }

/* ── Stap-4 speler (mockup 04b): video links · hoofdstukken·script rechts ── */
.pl-player { border: 1px solid var(--pt-border); border-radius: 16px; background: var(--pt-surface-0); overflow: hidden; }
.pl-player__head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--pt-border); }
.pl-player__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--pt-surface-2); color: var(--pt-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.pl-player__head h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--pt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-player__sub { font-family: var(--pt-mono); font-size: 10.5px; color: var(--pt-text-muted); white-space: nowrap; }
.pl-grid { display: grid; grid-template-columns: 1fr minmax(300px, 360px); gap: 16px; padding: 16px 18px; }
.pl-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pl-stage { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0c0c0c; box-shadow: 0 16px 48px rgba(0,0,0,.35); }
.pl-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.pl-stage__empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; height: 100%; color: var(--pt-text-muted); font-size: 11px; }
.pl-pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #fff; background: rgba(12,14,16,.6); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 999px; pointer-events: none; }
.pl-pill .gdot { width: 7px; height: 7px; border-radius: 50%; background: #46c46f; }
.pl-room { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #fff; background: rgba(12,14,16,.55); padding: 5px 10px; border-radius: 7px; pointer-events: none; }
.pl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-tab { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pt-text-muted); background: var(--pt-surface-2); border: 1px solid var(--pt-border); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.pl-tab .n { font-family: var(--pt-mono); font-size: 9.5px; opacity: .7; }
.pl-tab.is-active { background: var(--pt-primary); border-color: var(--pt-primary); color: #fff; }
.pl-tab.is-active .n { opacity: .85; }
.pl-script { border: 1px solid var(--pt-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; max-height: 560px; }
.pl-script__head { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-text-muted); padding: 11px 13px; border-bottom: 1px solid var(--pt-border); background: var(--pt-surface-2); }
.pl-script__list { overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 9px; }
.pl-script__hint { font-size: 10.5px; color: var(--pt-text-muted); line-height: 1.45; margin: 0; padding: 2px 12px 11px; }
.pl-chap { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: start; padding: 9px; border: 1px solid var(--pt-border); border-radius: 10px; background: var(--pt-surface-0); cursor: pointer; }
.pl-chap.is-active { border-left: 3px solid var(--pt-primary); background: var(--pt-surface-1); }
.pl-chap__th { width: 54px; height: 40px; border-radius: 6px; background-size: cover; background-position: center; }
.pl-chap__main { min-width: 0; }
.pl-chap__t { font-size: 12px; font-weight: 600; color: var(--pt-text); display: flex; align-items: center; gap: 6px; }
.pl-chap__t .n { font-family: var(--pt-mono); font-size: 9.5px; color: var(--pt-text-muted); font-weight: 500; }
.pl-chap__t .chk { color: var(--pt-primary); display: inline-flex; }
.pl-chap__nr { font-size: 11px; color: var(--pt-text-muted); line-height: 1.45; margin: 3px 0 0; }
.pl-regen { width: 26px; height: 26px; border: 1px solid var(--pt-border); border-radius: 7px; background: var(--pt-surface-0); color: var(--pt-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pl-regen:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) { .pl-grid { grid-template-columns: 1fr; } .pl-script { max-height: none; } }
