/* DSDT Broadcast — admin UI
   Dark, modern console. Styles base.html structure + all components. */

:root {
  --bg: #0b0f1a;
  --bg-2: #0f1626;
  --panel: #131c2e;
  --panel-2: #18233a;
  --line: #243049;
  --line-soft: #1c2740;
  --text: #e6ecf7;
  --muted: #8b9bb7;
  --muted-2: #6b7a96;
  --primary: #3b82f6;
  --primary-2: #2563eb;
  --accent: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #16223c 0%, var(--bg) 55%);
  color: var(--text);
  font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ta-right { text-align: right; }
.hidden { display: none !important; }

/* ---------------- Layout ---------------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-mark {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active {
  background: linear-gradient(90deg, rgba(59,130,246,0.18), rgba(59,130,246,0.04));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--primary);
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: auto; }
.dot-on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-off { background: var(--muted-2); }

.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.ghost-link { color: var(--muted); font-size: 13px; }
.ghost-link:hover { color: var(--accent); }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 26, 0.7);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar h1 { font-size: 19px; margin: 0; font-weight: 650; }
.topbar .crumb { color: var(--muted); }
.topbar .crumb:hover { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.page { padding: 24px 28px 60px; max-width: 1280px; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad { padding: 18px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.card-head h2 { font-size: 15px; margin: 0; font-weight: 650; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 22px 0 10px; }
.hint, .notice { color: var(--muted); margin: 0 0 18px; }
.notice { color: var(--text); }
.empty { color: var(--muted); padding: 8px 0; }

/* ---------------- Stat cards ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat { padding: 18px; display: block; transition: transform 0.12s, border-color 0.12s; }
.stat:hover { transform: translateY(-2px); border-color: var(--primary); }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 34px; font-weight: 700; margin: 6px 0 8px; }
.stat-value.muted { font-size: 22px; color: var(--text); }
.stat-sub { color: var(--muted); font-size: 13px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { background: #1f2c47; border-color: #2f3e5e; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary-2); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel-2); }
.btn-danger { background: transparent; border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,68,68,0.12); border-color: var(--red); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.iconbtn {
  width: 28px; height: 26px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}
.iconbtn:hover:not(:disabled) { color: var(--text); border-color: #2f3e5e; }
.iconbtn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------------- Forms ---------------- */
.input {
  width: 100%;
  padding: 9px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.18); }
textarea.input { resize: vertical; }
.input-sm { padding: 6px 9px; font-size: 13px; }
.input-flush { background: transparent; border-color: transparent; padding-left: 0; font-weight: 650; }
.input-flush:focus { background: var(--bg-2); border-color: var(--primary); padding-left: 11px; }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; }
input.color { padding: 2px; height: 38px; cursor: pointer; }

label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
label .input, label select.input, label textarea.input { margin-top: 5px; }

.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form .input { width: auto; min-width: 180px; }

.form-row { display: flex; gap: 10px; }
.form-row > label { flex: 1; }
.form-row.colors > label { flex: 1; }
.form-row.checks { align-items: center; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 500; }
.check input { width: auto; }

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.badge-on { background: rgba(34,197,94,0.14); color: #6ee7a8; border-color: rgba(34,197,94,0.3); }
.badge-off { background: rgba(107,122,150,0.14); color: var(--muted); border-color: rgba(107,122,150,0.25); }
.badge-warn { background: rgba(245,158,11,0.14); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.badge-muted { background: var(--panel-2); color: var(--muted); border-color: var(--line); }

/* ---------------- Tables ---------------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.015); }
.cell-sub { color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------- Dashboard pairing chips ---------------- */
.pair-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pair-chip {
  background: var(--panel-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
}
.pair-code { font-size: 26px; font-weight: 800; letter-spacing: 0.18em; font-family: ui-monospace, monospace; }

/* ---------------- Screens ---------------- */
.screen-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.screen-card { padding: 16px; }
.screen-card.pending { border-color: rgba(245,158,11,0.35); }
.screen-card-top { display: flex; justify-content: space-between; margin-bottom: 10px; }
.pair-code-big {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  font-family: ui-monospace, monospace;
  color: #fff;
  margin: 6px 0 4px;
}
.screen-card-name { text-align: center; color: var(--muted); margin-bottom: 12px; }
.claim-form { display: flex; flex-direction: column; gap: 8px; }
.screen-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.screens-table .assign-form { margin: 0; }

/* ---------------- Playlists ---------------- */
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.playlist-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.playlist-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rename-form { flex: 1; min-width: 0; margin: 0; }
.playlist-card-actions { display: flex; gap: 8px; }

/* ---------------- Slide editor ---------------- */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr); gap: 20px; align-items: start; }
.editor-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }

.slide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.slide-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); overflow: hidden; }
.slide-item.disabled { opacity: 0.55; }
.slide-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.slide-order { display: flex; flex-direction: column; gap: 3px; }
.slide-meta { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.slide-type {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--accent);
  border: 1px solid var(--line);
}
.type-text { color: #93c5fd; }
.type-image { color: #6ee7b7; }
.type-video { color: #f0abfc; }
.type-web { color: #fcd34d; }
.type-html { color: #fda4af; }
.type-widget { color: #a5b4fc; }
.slide-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-dur { color: var(--muted); font-size: 12px; }
.slide-actions { display: flex; gap: 6px; }
.slide-edit { padding: 0 12px 14px; border-top: 1px solid var(--line-soft); }
.slide-form { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.slide-form-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Add-slide panel */
.add-slide .type-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.type-tab {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.type-tab:hover { color: var(--text); }
.type-tab.active { background: var(--primary); border-color: var(--primary-2); color: #fff; }

.media-picker {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.media-thumb {
  flex: 0 0 auto;
  width: 56px; height: 40px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  padding: 0;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb.video-thumb { width: auto; padding: 0 10px; color: var(--muted); font-size: 11px; }
.media-thumb.picked { border-color: var(--primary); }

/* Live preview */
.preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.preview-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
  border: 0;
}

/* ---------------- Media library ---------------- */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.asset-card { overflow: hidden; }
.asset-preview { position: relative; aspect-ratio: 16 / 10; background: #000; }
.asset-preview img, .asset-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-kind {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 2px 7px; border-radius: 999px;
}
.asset-info { padding: 10px 12px; }
.asset-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta { color: var(--muted); font-size: 11px; margin: 2px 0 8px; }
.asset-actions { display: flex; gap: 6px; }

/* ---------------- AI Studio ---------------- */
.chat-card { display: flex; flex-direction: column; gap: 14px; }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 56vh;
  min-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.msg { max-width: 80%; }
.msg-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; }
.msg-body {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-user { align-self: flex-end; text-align: right; }
.msg-user .msg-body { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-assistant .msg-body { border-bottom-left-radius: 4px; }
.msg-actions { max-width: 100%; align-self: stretch; }
.action-list { margin: 0; padding-left: 18px; color: var(--muted); }
.action-list li { margin: 2px 0; }
.chat-empty { text-align: center; margin: auto; }

.suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.chip:hover { color: var(--text); border-color: var(--primary); }

.chat-form { display: flex; align-items: center; gap: 10px; }
.chat-form .input { flex: 1; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.htmx-indicator { opacity: 0; }
.htmx-indicator.htmx-request, .htmx-request .htmx-indicator { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
}
@media (max-width: 720px) {
  .sidebar { position: static; width: 100%; flex-basis: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .nav { flex-direction: row; flex-wrap: wrap; }
  .brand { border: none; padding: 6px; }
  .sidebar-foot { display: none; }
  .layout { flex-direction: column; }
  .page { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 92%; }
}

/* ---------------- Settings page ---------------- */
.settings-wrap { max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; }
.settings-intro { margin: 4px 0 16px; line-height: 1.5; font-size: 14px; }
.settings-field { display: block; margin-bottom: 16px; }
.settings-field .field-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.settings-field .field-note { font-size: 12.5px; margin-bottom: 6px; }
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.inline-banner { padding: 12px 14px; font-size: 14px; font-weight: 500; border-left: 3px solid var(--line); }
.inline-banner.ok { border-left-color: var(--green); color: #9ff0c0; background: rgba(34,197,94,0.08); }
.inline-banner.err { border-left-color: var(--red); color: #ffb4b4; background: rgba(239,68,68,0.08); }

/* ---------------- Scene builder ---------------- */
/* Scene type tab + slide-list badge get a distinct premium accent. */
.type-tab-scene {
  background: linear-gradient(90deg, rgba(167,139,250,0.18), rgba(56,189,248,0.12));
  border-color: rgba(167,139,250,0.4);
  color: #cabffd;
}
.type-tab-scene:hover { color: #fff; }
.type-tab.type-tab-scene.active {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  border-color: #7c3aed;
  color: #fff;
}
.type-scene { color: #c4b5fd; }

.scene-builder { display: flex; flex-direction: column; gap: 16px; }

/* Section blocks */
.scene-section {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scene-section-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

/* Starter templates */
.scene-starters {
  border: 1px dashed rgba(167,139,250,0.4);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(37,99,235,0.04));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.scene-starter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cabffd;
  text-transform: uppercase;
}
.scene-starter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.scene-starter {
  background: var(--panel-2);
  border-color: rgba(167,139,250,0.35);
}
.scene-starter:hover { border-color: #a78bfa; color: #fff; }

/* Layout picker grid */
.scene-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 7px;
}
.scene-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.scene-layout:hover { border-color: #2f3e5e; color: var(--text); }
.scene-layout.active {
  border-color: #7c3aed;
  background: rgba(124,58,237,0.12);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.5) inset;
}
.scene-layout-name { font-size: 10.5px; font-weight: 600; line-height: 1; }

/* Tiny schematic previews inside each layout button */
.scene-layout-mini {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1b2540, #0f1626);
  border: 1px solid var(--line);
  overflow: hidden;
}
.scene-layout-mini::before,
.scene-layout-mini::after {
  content: "";
  position: absolute;
  background: rgba(196,181,253,0.85);
  border-radius: 1px;
}
/* hero: left-aligned title stack */
.scene-mini-hero::before { left: 6px; bottom: 8px; width: 26px; height: 5px; }
.scene-mini-hero::after { left: 6px; bottom: 16px; width: 14px; height: 3px; opacity: 0.7; }
/* title: centered card */
.scene-mini-title::before { left: 50%; top: 50%; transform: translate(-50%,-50%); width: 30px; height: 6px; }
.scene-mini-title::after { left: 50%; top: 50%; transform: translate(-50%, 6px); width: 18px; height: 3px; opacity: 0.6; }
/* split-left: image block left */
.scene-mini-split-left::before { left: 0; top: 0; width: 22px; height: 100%; background: rgba(56,189,248,0.5); border-radius: 0; }
.scene-mini-split-left::after { right: 6px; top: 50%; transform: translateY(-50%); width: 18px; height: 4px; }
/* split-right: image block right */
.scene-mini-split-right::before { right: 0; top: 0; width: 22px; height: 100%; background: rgba(56,189,248,0.5); border-radius: 0; }
.scene-mini-split-right::after { left: 6px; top: 50%; transform: translateY(-50%); width: 18px; height: 4px; }
/* quote: centered wide bar */
.scene-mini-quote::before { left: 8px; top: 11px; width: 36px; height: 4px; }
.scene-mini-quote::after { left: 8px; top: 18px; width: 22px; height: 4px; opacity: 0.7; }
/* stat: big block centered */
.scene-mini-stat::before { left: 50%; top: 9px; transform: translateX(-50%); width: 22px; height: 11px; border-radius: 2px; }
.scene-mini-stat::after { left: 50%; top: 22px; transform: translateX(-50%); width: 16px; height: 3px; opacity: 0.7; }
/* list: stacked rows */
.scene-mini-list::before { left: 7px; top: 7px; width: 30px; height: 3px; }
.scene-mini-list::after { left: 7px; top: 14px; width: 30px; height: 3px; box-shadow: 0 6px 0 rgba(196,181,253,0.6), 0 12px 0 rgba(196,181,253,0.45); opacity: 0.8; }
/* banner: full accent band */
.scene-mini-banner::before { left: 0; top: 9px; width: 100%; height: 12px; background: rgba(124,58,237,0.7); border-radius: 0; }
.scene-mini-banner::after { display: none; }
/* lower-third: bottom bar */
.scene-mini-lower-third::before { left: 0; bottom: 0; width: 100%; height: 9px; background: rgba(124,58,237,0.7); border-radius: 0; }
.scene-mini-lower-third::after { left: 5px; bottom: 2px; width: 20px; height: 3px; }
/* fullphoto: full photo with corner text */
.scene-mini-fullphoto { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.scene-mini-fullphoto::before { left: 5px; bottom: 6px; width: 24px; height: 4px; background: #fff; }
.scene-mini-fullphoto::after { display: none; }

/* Color rows: keep color swatches compact and even */
.scene-color-row > label { flex: 1; }
.scene-color-row input.color { width: 100%; }

.scene-accentbar-check { align-self: flex-end; margin-bottom: 8px; white-space: nowrap; }

.scene-form .media-picker { margin-top: 4px; }
.scene-bg-youtube { width: 100%; }

/* ---------------- AI slide pane ---------------- */
/* Distinct premium accent for the ✨ AI type tab (echoes the scene tab). */
.type-tab-ai {
  background: linear-gradient(90deg, rgba(56,189,248,0.16), rgba(167,139,250,0.14));
  border-color: rgba(56,189,248,0.4);
  color: #bfe6fd;
}
.type-tab-ai:hover { color: #fff; }
.type-tab.type-tab-ai.active {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-color: #2563eb;
  color: #fff;
}

.ai-form .ai-blurb { margin: 0; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-chips .chip { text-align: left; line-height: 1.3; }
.ai-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-spinner { display: inline-flex; align-items: center; gap: 8px; }
.ai-disabled { margin: 4px 0; }
