/* Studio – design system */
:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-2: #F1F1EE;
  --surface-3: #E9E9E5;
  --border: #E6E6E1;
  --border-strong: #D3D3CC;
  --text: #121212;
  --text-2: #55554F;
  --text-3: #8C8C85;
  --accent: #121212;
  --accent-text: #FFFFFF;
  --focus: #3B5BFD;
  --up: #12805C;
  --up-bg: #E3F4EC;
  --down: #C2410C;
  --down-bg: #FCEBE1;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --info: #3B5BFD;
  --info-bg: #E8ECFF;
  --st-new: #3B5BFD;
  --st-review: #B45309;
  --st-approved: #12805C;
  --st-rejected: #C2410C;
  --st-posted: #D23C86;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --shadow-1: 0 1px 2px rgba(18, 18, 18, .05);
  --shadow-2: 0 2px 8px rgba(18, 18, 18, .06), 0 1px 2px rgba(18, 18, 18, .04);
  --shadow-3: 0 24px 60px -12px rgba(18, 18, 18, .25), 0 2px 6px rgba(18, 18, 18, .06);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sidebar: 232px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --logo-dot: #FFFFFF;
  /* iclipnow CI: the three dots of the i */
  --iro-v: #7C5CFF; --iro-p: #FF5FA8; --iro-o: #FFB25B;
  --iro-grad: linear-gradient(90deg, var(--iro-v), var(--iro-p) 52%, var(--iro-o));
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0E0E0F;
  --surface: #161617;
  --surface-2: #1E1E20;
  --surface-3: #27272A;
  --border: #26262A;
  --border-strong: #36363B;
  --text: #F2F2F0;
  --text-2: #B4B4AE;
  --text-3: #7C7C77;
  --accent: #F2F2F0;
  --accent-text: #111111;
  --up: #34D399;
  --up-bg: #0F2A21;
  --down: #FB923C;
  --down-bg: #2E1A0E;
  --warn: #FBBF24;
  --warn-bg: #2A220C;
  --info: #8EA2FF;
  --info-bg: #161C38;
  --st-new: #8EA2FF;
  --st-review: #FBBF24;
  --st-approved: #34D399;
  --st-rejected: #FB923C;
  --st-posted: #FF8CC0;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-3: 0 24px 60px -12px rgba(0, 0, 0, .7);
  --logo-dot: #111111;
  --iro-v: #9B82FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--info-bg); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacer { flex: 1; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 18px 12px; border-right: 1px solid var(--border); background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand .ic { color: var(--text); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-s);
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--border); }
.nav .badge { margin-left: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 18px 10px 6px; font-weight: 600; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.me-card:hover { background: var(--surface-2); }
.main { min-width: 0; }
.page { padding: 28px 36px 64px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; letter-spacing: -.025em; margin: 0; font-weight: 650; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.mobile-bar { display: none; }

/* ---------- Avatar ---------- */
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 11px; font-weight: 650; color: #fff; letter-spacing: .02em;
}
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.avatar.bot { background: var(--text) !important; color: var(--bg); }
.avatar.bot .ic { width: 62%; height: 62%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  box-shadow: var(--shadow-1); user-select: none;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--down); }
.btn.danger:hover { background: var(--down-bg); border-color: var(--down); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }
.btn.block { width: 100%; }
.btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-group { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.btn-group button { border: 0; background: none; height: 34px; padding: 0 12px; cursor: pointer; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.btn-group button + button { border-left: 1px solid var(--border); }
.btn-group button.on { background: var(--surface-2); color: var(--text); }
.btn-group.sm button { height: 28px; padding: 0 9px; font-size: 12.5px; }

/* Rating buttons */
.rate { display: inline-flex; gap: 6px; }
.rate button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--text-2);
  transition: all .15s var(--ease);
}
.rate button:hover { color: var(--text); border-color: var(--text-3); }
.rate button.up.on { background: var(--up-bg); color: var(--up); border-color: var(--up); }
.rate button.down.on { background: var(--down-bg); color: var(--down); border-color: var(--down); }
.rate button .n { font-variant-numeric: tabular-nums; font-size: 13px; }
.rate.lg button { height: 48px; padding: 0 22px; font-size: 15px; }
.rate.lg button .ic { width: 22px; height: 22px; }
.rate button.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12); } }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--border-strong);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.input.sm, .select.sm { height: 32px; font-size: 13px; padding: 0 10px; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C8C85' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon > .input { padding-left: 38px; }
.input-icon kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-3); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--text); }
input[type=range] { accent-color: var(--text); width: 100%; }
input[type=color] { width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-s); background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 5px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer;
  font-weight: 550; font-size: 13px; white-space: nowrap; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .x { opacity: .6; margin-right: -4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.mono { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge.solid { background: var(--text); color: var(--bg); }
.badge.up { background: var(--up-bg); color: var(--up); }
.badge.down { background: var(--down-bg); color: var(--down); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--text-3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--text-3)) 18%, transparent); }
.status.new { --c: var(--st-new); } .status.review { --c: var(--st-review); } .status.approved { --c: var(--st-approved); }
.status.rejected { --c: var(--st-rejected); } .status.posted { --c: var(--st-posted); }
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--text-2); }
.cat::before { content: ''; width: 8px; height: 8px; border-radius: 2.5px; background: var(--c); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px; }
.card h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.section-title { font-size: 13px; font-weight: 650; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; }
.stat:hover { border-color: var(--border-strong); }
.stat .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.stat .v { font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .l { font-size: 12.5px; color: var(--text-2); }

/* ---------- Toolbar / Filters ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 240px; max-width: 560px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-pop { position: relative; }
.pop {
  position: fixed; z-index: 95; min-width: 220px; max-width: calc(100vw - 16px); max-height: 360px; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 6px;
  animation: popIn .14s var(--ease);
}
.pop-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(10, 10, 10, .4); animation: fadeIn .15s; }
.pop.sheet {
  left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; min-width: 0 !important; max-height: 78dvh;
  border-radius: 18px 18px 0 0; border-width: 1px 0 0; padding: 22px 10px calc(env(safe-area-inset-bottom) + 12px);
  animation: sheetUp .26s cubic-bezier(.22, .8, .25, 1);
}
.pop.sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--border-strong); }
.pop.sheet .pop-item { min-height: 48px; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.pop.sheet .pop-head { padding: 6px 12px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.pop-item:disabled { opacity: .4; pointer-events: none; }
.m-only { display: none !important; }
.ed-sep { width: 1px; height: 24px; background: var(--border); }
.ed-panel-body { display: contents; }
.ed-export { gap: 8px; }
@keyframes sheetIn { from { transform: translateY(40px); opacity: .4; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); font-size: 13.5px; }
.pop-item:hover { background: var(--surface-2); }
.pop-item .ck { margin-left: auto; color: var(--text); opacity: 0; }
.pop-item.on .ck { opacity: 1; }
.pop-item .cnt { margin-left: auto; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.pop-item.on .cnt { margin-left: 8px; }
.pop-item.danger { color: var(--down); }
.pop-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.pop-head { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 10px 4px; }
.pop .input { margin: 4px 0; }

/* ---------- Day groups & grid ---------- */
.day { margin-bottom: 30px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.day-head h2 { font-size: 15px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
.day-head span { color: var(--text-3); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.grid.dense .pc-body { display: none; }

.pc { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; cursor: pointer; }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.pc.selected { outline: 2px solid var(--text); outline-offset: 2px; }
.pc-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.pc-media.r-1-1 img, .pc-media.r-1-91-1 img, .pc-media.r-9-16 img { object-fit: contain; background: var(--surface-3); }
.pc-track { display: flex; height: 100%; }
.pc-track img { width: 100%; height: 100%; object-fit: cover; flex: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pc-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.pc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .3); transition: all .2s; }
.pc-dots i.on { background: #fff; width: 14px; border-radius: 3px; }
.pc-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #111; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.pc-nav.l { left: 8px; } .pc-nav.r { right: 8px; }
.pc:hover .pc-nav { opacity: 1; }
.pc-nav:disabled { opacity: 0 !important; }
.pc-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 6px; align-items: flex-start; pointer-events: none; }
.pc-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(17, 17, 17, .72); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.pc-pill .ic { width: 13px; height: 13px; }
.pc-sel { pointer-events: auto; margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(17, 17, 17, .25); display: grid; place-items: center; color: transparent; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pc:hover .pc-sel, .selecting .pc-sel { opacity: 1; }
.pc.selected .pc-sel { background: #fff; color: #111; opacity: 1; }
.pc-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.pc-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 12px; min-width: 0; }
.pc-foot { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pc-foot .k { display: inline-flex; align-items: center; gap: 4px; }
.pc-foot .k.up { color: var(--up); } .pc-foot .k.down { color: var(--down); }
.pc-foot .ic { width: 14px; height: 14px; }
.pc-quick { display: flex; flex: none; gap: 6px; opacity: 0; transform: translateY(4px); transition: all .18s var(--ease); }
.pc:hover .pc-quick { opacity: 1; transform: none; }
.pc-quick button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); transition: transform .12s; }
.pc-quick button:hover { transform: scale(1.08); }
.pc-quick button.up.on { background: #12805C; color: #fff; }
.pc-quick button.down.on { background: #C2410C; color: #fff; }

/* List view */
.list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.li { display: grid; grid-template-columns: 56px minmax(0, 2fr) 1fr 110px 120px 110px; gap: 16px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--surface-2); }
.li-thumb { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--surface-2); position: relative; }
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-thumb .stack-n { position: absolute; right: 3px; top: 3px; }

/* Selection bar */
.selbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-3); animation: slideUp .2s var(--ease); }
.selbar .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 25%, transparent); box-shadow: none; }
.selbar .btn:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
@keyframes slideUp { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 72px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty h3 { margin: 14px 0 0; font-size: 17px; letter-spacing: -.01em; }
.empty p { margin: 0 0 12px; color: var(--text-2); max-width: 420px; }

/* ---------- Skeleton ---------- */
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Modal / Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 10, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-3); animation: modalIn .2s var(--ease); }
.modal.wide { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.modal-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.modal-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 22px 20px; }

/* Post viewer (full screen) */
.viewer { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) 420px; animation: fadeIn .15s; }
.viewer-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-2); }
.viewer-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 64px; }
.vt-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.vt-title b { font-size: 14px; font-weight: 650; }
.vt-title span { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-3); flex: none; }
.seg button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.vt-nav { flex: none; }
.viewer-canvas { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.viewer-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 18px 16px; }
.viewer-foot:empty { display: none; }
.viewer-strip { display: flex; gap: 8px; justify-content: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.viewer-strip::-webkit-scrollbar { display: none; }
.strip-item { position: relative; flex: none; height: 64px; max-width: 72px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 0; outline: 2px solid transparent; outline-offset: 2px; opacity: .55; transition: opacity .2s, outline-color .2s; background: var(--surface); padding: 0; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.strip-item.on { outline-color: var(--text); opacity: 1; }
.strip-item:hover { opacity: 1; }
.strip-item .mk { position: absolute; bottom: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.strip-item .mk.up { background: #12805C; } .strip-item .mk.down { background: #C2410C; }
.strip-item .mk .ic { width: 11px; height: 11px; }
.vs-mrate { display: none; }
.vs-hint { font-size: 11.5px; text-align: center; }
.viewer-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-2); color: var(--text); transition: opacity .2s, transform .15s; }
.viewer-arrow:hover { transform: translateY(-50%) scale(1.05); }
.viewer-arrow.l { left: 16px; } .viewer-arrow.r { right: 16px; }
.viewer-arrow:disabled { opacity: 0; pointer-events: none; }

/* slide mode – swipe track */
.vs { position: absolute; inset: 0; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; }
.vs:active { cursor: grabbing; }
.vs-track { display: flex; height: 100%; }
.vs-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: opacity .35s; opacity: .35; }
.vs-slide.cur { opacity: 1; }
.vs-frame { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-3); background: var(--surface); cursor: crosshair; }
.vs-frame img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.vs-pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); pointer-events: auto; cursor: pointer; display: grid; place-items: center; }
.pin svg { width: 26px; height: 26px; }
.pin b { position: absolute; top: 4px; font-size: 10.5px; font-weight: 700; color: #111; }
.pin.draft { animation: pop .3s; pointer-events: none; }
.pin.kind-recommendation { color: #FBBF24; } .pin.kind-todo { color: #8EA2FF; } .pin.resolved { opacity: .45; }

/* all slides */
.vs-all { position: absolute; inset: 0; overflow: auto; padding: 8px 24px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-content: flex-start; }
.vs-all-item { position: relative; width: min(240px, calc(50% - 8px)); padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow-2); outline: 2px solid transparent; outline-offset: 3px; transition: transform .2s var(--ease), outline-color .2s; }
.vs-all-item:hover { transform: translateY(-2px); }
.vs-all-item.on { outline-color: var(--text); }
.vs-all-item img { width: 100%; display: block; object-fit: cover; }
.vs-all-item .pc-pill { position: absolute; top: 8px; left: 8px; }
.vs-all-r { position: absolute; bottom: 8px; right: 8px; display: inline-flex; gap: 8px; height: 24px; padding: 0 8px; border-radius: 6px; background: rgba(17, 17, 17, .72); backdrop-filter: blur(6px); font-size: 12px; font-weight: 650; align-items: center; }
.vs-all-r span { display: inline-flex; gap: 3px; align-items: center; }

/* Instagram feed mock – always IG light look */
.viewer-canvas[data-m='feed'] { overflow: auto; align-items: flex-start; padding: 8px 16px 24px; }
.ig-phone { width: min(400px, 100%); margin: auto; background: #fff; color: #0f0f0f; border-radius: 14px; box-shadow: var(--shadow-3); overflow: hidden; font-size: 13.5px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 600; }
.ig-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #111; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d62976; flex: none; }
.ig-media { position: relative; overflow: hidden; background: #efefef; user-select: none; cursor: grab; }
.ig-media:active { cursor: grabbing; }
.ig-track { display: flex; height: 100%; }
.ig-cell { flex: 0 0 100%; height: 100%; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ig-count { position: absolute; top: 12px; right: 12px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(18, 18, 18, .7); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.ig-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: opacity .2s; }
.ig-arrow .ic { width: 16px; height: 16px; }
.ig-arrow.l { left: 10px; } .ig-arrow.r { right: 10px; }
.ig-arrow:disabled { opacity: 0; pointer-events: none; }
.ig-acts { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; position: relative; }
.ig-acts > .ic:last-child { margin-left: auto; }
.ig-dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; transition: background .2s, transform .2s; }
.ig-dots i.on { background: #0095f6; transform: scale(1.1); }
.ig-likes { padding: 0 12px; font-weight: 600; }
.ig-cap { padding: 4px 12px 0; white-space: pre-wrap; word-break: break-word; }
.ig-tags { color: #00376b; }
.ig-time { padding: 6px 12px 14px; color: #737373; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }

/* Instagram story */
.ig-story-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.ig-story-wrap .viewer-arrow { position: absolute; }
.ig-story-wrap .viewer-arrow.l { left: -62px; } .ig-story-wrap .viewer-arrow.r { right: -62px; }
.ig-story { position: relative; border-radius: 14px; overflow: hidden; background: #000; color: #fff; box-shadow: var(--shadow-3); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; cursor: pointer; }
.ig-sframes, .ig-sf { position: absolute; inset: 0; }
.ig-sf { opacity: 0; transition: opacity .18s; display: flex; align-items: center; justify-content: center; }
.ig-sf.on { opacity: 1; }
.ig-sf img { pointer-events: none; -webkit-user-drag: none; }
.ig-sf .bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.2); }
.ig-sf .fg { position: relative; width: 100%; object-fit: contain; }
.ig-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 18%, transparent 80%, rgba(0, 0, 0, .4)); transition: opacity .2s; }
.ig-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 3px; transition: opacity .2s; }
.ig-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.ig-bars b { display: block; height: 100%; width: 0; background: #fff; }
.ig-shead { position: absolute; top: 22px; left: 12px; right: 6px; display: flex; align-items: center; gap: 8px; font-size: 13px; transition: opacity .2s; }
.ig-shead .ig-av { width: 30px; height: 30px; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .7); }
.ig-shead .o { opacity: .7; font-size: 12.5px; }
.ig-shead button { width: 40px; height: 40px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.ig-shead button:hover { background: rgba(255, 255, 255, .12); }
.ig-reply { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 14px; transition: opacity .2s; pointer-events: none; }
.ig-reply span { flex: 1; height: 42px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 21px; display: flex; align-items: center; padding: 0 16px; font-size: 13.5px; opacity: .9; }
.ig-story.held .ig-bars, .ig-story.held .ig-shead, .ig-story.held .ig-reply, .ig-story.held .ig-shade { opacity: 0; }

.viewer-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); background: var(--surface); }
.side-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.side-head h2 { margin: 6px 0 2px; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; }
.tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.tabs button { border: 0; background: none; padding: 11px 8px; margin: 0 2px; cursor: pointer; color: var(--text-3); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--text); border-color: var(--text); }
.tabs button .badge { height: 18px; }
.side-body { flex: 1; overflow: auto; padding: 18px 20px; }
.side-foot { border-top: 1px solid var(--border); padding: 12px 14px; }
.rate-panel { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 18px; }
.rate-panel .label { font-size: 12px; }

/* Notes */
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { display: flex; gap: 10px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.note.kind-recommendation { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: color-mix(in srgb, var(--warn-bg) 50%, var(--surface)); }
.note.kind-todo { border-color: color-mix(in srgb, var(--info) 40%, var(--border)); background: color-mix(in srgb, var(--info-bg) 50%, var(--surface)); }
.note.resolved { opacity: .6; }
.note.resolved .note-body { text-decoration: line-through; text-decoration-color: var(--text-3); }
.note-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-bottom: 3px; flex-wrap: wrap; }
.note-head b { color: var(--text); font-weight: 600; font-size: 12.5px; }
.note-body { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.note-actions { display: flex; gap: 2px; margin-top: 6px; }
.note-actions button { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; font-weight: 550; }
.note-actions button:hover { background: var(--surface-2); color: var(--text); }
.composer { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 15%, transparent); }
.composer textarea { width: 100%; border: 0; outline: none; background: none; resize: none; padding: 10px 12px 4px; min-height: 44px; max-height: 180px; }
.composer-bar { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; }
.kind-sw { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 2px; }
.kind-sw button { border: 0; background: none; height: 26px; padding: 0 8px; border-radius: 6px; cursor: pointer; color: var(--text-3); display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; }
.kind-sw button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.kind-sw button .ic { width: 14px; height: 14px; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }
.block { margin-bottom: 20px; }
.block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 8px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.prose { white-space: pre-wrap; font-size: 13.5px; }
.code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; position: relative; }
.copyable { display: flex; gap: 6px; align-items: stretch; }
.copyable .code { flex: 1; margin: 0; }

/* Timeline */
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.tl-item:last-child { border: 0; }
.tl-text { flex: 1; min-width: 0; font-size: 13.5px; }
.tl-text b { font-weight: 600; }
.tl-text a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.tl-time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.tl-thumb { width: 36px; height: 45px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex: none; }
.tl-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.tl-ico.up { background: var(--up-bg); color: var(--up); } .tl-ico.down { background: var(--down-bg); color: var(--down); }
.tl-ico.warn { background: var(--warn-bg); color: var(--warn); } .tl-ico.info { background: var(--info-bg); color: var(--info); }
.tl-ico .ic { width: 15px; height: 15px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: var(--text); color: var(--bg); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .brand { color: var(--bg); padding: 0; }
.auth-art .brand .ic { color: var(--bg); --logo-dot: var(--text); }
.auth-art h2 { font-size: 34px; letter-spacing: -.035em; line-height: 1.12; margin: 0; max-width: 460px; font-weight: 650; }
.auth-art p { color: color-mix(in srgb, var(--bg) 60%, transparent); max-width: 420px; }
.auth-cards { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; }
.auth-cards .c { position: absolute; width: 190px; aspect-ratio: 4/5; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); background: color-mix(in srgb, var(--bg) 6%, transparent); backdrop-filter: blur(2px); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.auth-box h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.auth-box > p { margin: -8px 0 6px; color: var(--text-2); }
.form-err { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s); background: var(--down-bg); color: var(--down); font-size: 13px; font-weight: 500; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-3); font-size: 12px; margin-top: 6px; }
.auth-lang { position: absolute; top: 18px; right: 18px; }

/* ---------- Upload ---------- */
.drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-l); padding: 36px 20px; text-align: center; background: var(--surface); transition: all .15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--text); background: var(--surface-2); }
.drop .ico { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface-2); }
.up-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.up-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4/5; cursor: grab; border: 1px solid var(--border); }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .n { position: absolute; left: 6px; top: 6px; }
.up-item .rm { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(17, 17, 17, .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.up-item.dragging { opacity: .4; }

/* ---------- Review ---------- */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.review-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.review-meta { width: 100%; max-width: 560px; font-size: 12.5px; }
.review-img { position: relative; width: min(560px, 100%, calc((100dvh - 330px) * var(--ar, .8))); max-width: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-3); background: var(--surface-2); user-select: none; cursor: grab; }
.review-img:active { cursor: grabbing; }
.review-track { display: flex; height: 100%; }
.review-cell { flex: 0 0 100%; height: 100%; }
.review-cell img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }
.review-hint { font-size: 12px; }
@media (hover: none) { .review-hint { display: none; } .review-img .ig-arrow { display: none; } }
.progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; width: 100%; max-width: 560px; }
.progress i { display: block; height: 100%; background: var(--text); transition: width .3s var(--ease); }

/* ---------- Admin ---------- */
.subnav { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav::-webkit-scrollbar { display: none; }
.subnav button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--text-3); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; flex: none; }
.subnav button.on { color: var(--text); border-color: var(--text); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.role-opts { display: grid; gap: 8px; }
.role-opt { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; align-items: flex-start; }
.role-opt:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.role-opt input { margin-top: 3px; accent-color: var(--text); }
.role-opt b { display: block; font-size: 13.5px; }
.role-opt span { font-size: 12.5px; color: var(--text-2); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-3); font-weight: 550; font-size: 13.5px; animation: toastIn .25s var(--ease); max-width: 420px; }
.toast.err { background: var(--down); color: #fff; }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Editor ---------- */
.ed { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: 56px 1fr; grid-template-columns: 64px 300px minmax(0, 1fr) 280px; background: var(--bg); }
.ed-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ed-name { border: 1px solid transparent; background: none; height: 34px; padding: 0 10px; border-radius: 8px; font-weight: 600; min-width: 120px; max-width: 320px; outline: none; }
.ed-name:hover { border-color: var(--border); } .ed-name:focus { border-color: var(--border-strong); background: var(--surface-2); }
.ed-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-right: 1px solid var(--border); background: var(--surface); }
.ed-rail button { border: 0; background: none; border-radius: 10px; padding: 9px 2px 7px; display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
.ed-rail button:hover { color: var(--text); background: var(--surface-2); }
.ed-rail button.on { color: var(--text); background: var(--surface-2); }
.ed-rail .ic { width: 21px; height: 21px; }
.ed-panel { overflow: auto; border-right: 1px solid var(--border); background: var(--surface); padding: 16px; }
.ed-panel h3 { font-size: 14px; margin: 0 0 12px; }
.ed-stage { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ed-canvas-wrap { flex: 1; overflow: auto; display: flex; padding: 40px; position: relative; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 18px 18px; }
.ed-canvas-box { position: relative; box-shadow: var(--shadow-3); flex: none; margin: auto; }
.ed-canvas-box .canvas-container { border-radius: 2px; }
.ed-cuts { position: absolute; inset: 0; pointer-events: none; display: flex; }
.ed-cuts i { flex: 1; border-right: 1.5px dashed rgba(59, 91, 253, .7); position: relative; }
.ed-cuts i:last-child { border-right: 0; }
.ed-cuts i > span { position: absolute; top: -24px; left: 0; font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; pointer-events: auto; }
.ed-cuts i.cur > span { color: var(--text); }
.ed-safe { position: absolute; inset: 0; pointer-events: none; display: flex; }
.ed-safe i { flex: 1; margin: 4.5% 4.5%; border: 1px dashed rgba(234, 88, 12, .6); }
.ed-bottom { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.ed-pages { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding: 2px; }
.ed-page { position: relative; flex: none; height: 64px; border-radius: 7px; border: 2px solid var(--border); background: var(--surface-2); cursor: pointer; overflow: hidden; padding: 0; }
.ed-page.on { border-color: var(--text); }
.ed-page img { height: 100%; width: auto; }
.ed-page span { position: absolute; left: 4px; bottom: 3px; font-size: 10px; font-weight: 700; background: rgba(17, 17, 17, .7); color: #fff; padding: 0 5px; border-radius: 4px; }
.ed-page.add { width: 52px; display: grid; place-items: center; border-style: dashed; color: var(--text-3); }
.ed-props { overflow: auto; background: var(--surface); border-left: 1px solid var(--border); padding: 16px; }
.ed-props h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 18px 0 8px; font-weight: 650; }
.ed-props h4:first-child { margin-top: 0; }
.prop-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.prop-row > label { font-size: 12.5px; color: var(--text-2); width: 84px; flex: none; }
.prop-row .input, .prop-row .select { height: 32px; font-size: 13px; }
.num { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; height: 32px; overflow: hidden; background: var(--surface); }
.num input { width: 52px; border: 0; background: none; text-align: center; outline: none; font-size: 13px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.num button { border: 0; background: none; width: 26px; height: 100%; cursor: pointer; color: var(--text-3); display: grid; place-items: center; }
.num button:hover { background: var(--surface-2); color: var(--text); }
.icon-row { display: flex; gap: 4px; flex-wrap: wrap; }
.icon-row .btn { width: 34px; height: 32px; padding: 0; }
.tpl-btn { display: block; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px 14px; cursor: pointer; margin-bottom: 8px; transition: border-color .15s, background .15s; }
.tpl-btn:hover { border-color: var(--text-3); background: var(--surface-2); }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-grid button { padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 4/5; position: relative; }
.media-grid button img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.media-grid button:hover img { transform: scale(1.04); }
.media-grid button .lbl { position: absolute; left: 4px; bottom: 4px; }
.shape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shape-grid button { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.shape-grid button:hover { border-color: var(--text-3); color: var(--text); background: var(--surface-2); }
.shape-grid .ic { width: 26px; height: 26px; }
.color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.color-grid button { aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--border); cursor: pointer; padding: 0; }
.color-grid button.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.layer-list { display: flex; flex-direction: column; gap: 4px; }
.layer { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; font-size: 13px; }
.layer:hover { background: var(--surface-2); }
.layer.on { border-color: var(--border-strong); background: var(--surface-2); }
.layer .lt { width: 30px; height: 30px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; color: var(--text-2); flex: none; }
.layer .lt img { width: 100%; height: 100%; object-fit: cover; }
.layer .lb { flex: 1; min-width: 0; }
.layer .la { display: flex; gap: 2px; opacity: 0; }
.layer:hover .la, .layer.on .la { opacity: 1; }
.layer .la button { border: 0; background: none; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; color: var(--text-3); display: grid; place-items: center; }
.layer .la button:hover { background: var(--surface-3); color: var(--text); }
.ed-start { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow: auto; }
.fmt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fmt { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 18px; cursor: pointer; text-align: left; transition: all .15s; display: flex; flex-direction: column; gap: 14px; }
.fmt:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.fmt .shape { height: 90px; display: flex; align-items: center; justify-content: center; }
.fmt .shape i { display: block; border: 1.5px solid var(--text); border-radius: 6px; background: var(--surface-2); }
.tip { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); align-items: flex-start; }
.tip .ic { flex: none; margin-top: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .ed { grid-template-columns: 64px 260px minmax(0, 1fr) 250px; }
  .viewer { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-layout { grid-template-columns: 1fr; }
  .li { grid-template-columns: 56px minmax(0, 1fr) 110px 100px; }
  .li .hide-md { display: none; }
  .fmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; z-index: 90; width: 260px; box-shadow: var(--shadow-3); background: var(--surface); }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; background: var(--bg); }
  .page { padding: 18px 16px 80px; }
  /* viewer: full-screen stage + bottom sheet */
  .viewer { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--surface-2); }
  .viewer-stage { height: calc(100dvh - 64px); min-height: 460px; }
  .viewer-top { min-height: 0; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px; }
  .viewer-top .spacer { flex: 1; }
  .vt-title b { font-size: 13.5px; }
  .vt-title span { font-size: 11.5px; }
  .seg button { height: 32px; padding: 0 9px; }
  .seg button span { display: none; }
  .vt-nav .btn { width: 30px; }
  .viewer-arrow { display: none; }
  .viewer-foot { flex-direction: row; justify-content: center; gap: 12px; padding: 6px 12px 10px; }
  .viewer-strip { justify-content: flex-start; flex: 0 1 auto; min-width: 0; }
  .strip-item { height: 48px; max-width: 56px; border-radius: 6px; }
  .vs-mrate { display: inline-flex; flex: none; }
  .vs-mrate button { height: 44px; padding: 0 14px; border-radius: 22px; }
  .vs-hint { display: none; }
  .viewer-canvas[data-m='story'] { padding: 0 8px 4px; }
  .viewer-canvas[data-m='feed'] { padding: 4px 10px 16px; }
  .vs-all { padding: 4px 12px 16px; gap: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .vs-all-item { width: auto; }
  .viewer-side { border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px -12px rgba(0, 0, 0, .25); position: relative; min-height: 64px; padding-bottom: env(safe-area-inset-bottom); }
  .viewer-side::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 0; }
  .viewer-side .side-head { padding: 10px 16px 12px; }
  .viewer-side .side-body { overflow: visible; padding: 16px; }
  .viewer-side .side-foot { position: sticky; bottom: 0; background: var(--surface); z-index: 2; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
  .badge.mono { white-space: normal; word-break: break-all; height: auto; min-height: 20px; padding: 2px 8px; border-radius: 8px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-quick { opacity: 1; transform: none; }
  /* ---- mobile editor: top bar · canvas · pages · tab bar; panels as bottom sheets */
  .m-only { display: flex !important; }
  .d-only { display: none !important; }
  .ed { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
  .ed-top { flex: none; height: auto; min-height: 52px; gap: 2px; padding: calc(env(safe-area-inset-top) + 4px) 6px 4px; }
  .ed-name { flex: 1; min-width: 0; max-width: none; padding: 0 6px; font-size: 14px; text-overflow: ellipsis; }
  .ed-top [data-dirty] { display: none; }
  .ed-top .spacer { display: none; }
  .ed-export { width: 38px; height: 38px; padding: 0; justify-content: center; margin-left: 4px; }
  .ed-export span { display: none; }
  .ed-stage { flex: 1; min-height: 0; order: 1; }
  .ed-canvas-wrap { padding: 12px 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; background-size: 16px 16px; }
  .ed-canvas-wrap::-webkit-scrollbar { display: none; }
  .ed-canvas-box { margin: auto 0 !important; }
  .ed-canvas-wrap::after { content: ''; flex: none; width: var(--side, 16px); }
  .ed-cuts i { border-right-color: transparent; }
  .ed-cuts i > span { display: none; }
  .ed-bottom { padding: 8px 10px; gap: 6px; border-top: 1px solid var(--border); }
  .ed-page { height: 52px; }
  .ed-page.add { width: 44px; }
  .ed-rail { order: 3; flex: none; flex-direction: row; justify-content: space-around; gap: 0; padding: 4px 4px calc(env(safe-area-inset-bottom) + 4px); border: 0; border-top: 1px solid var(--border); position: relative; z-index: 58; }
  .ed-rail button { flex: 1; padding: 7px 0 5px; font-size: 10.5px; border-radius: 10px; min-height: 52px; justify-content: center; }
  .ed-rail button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .ed-panel, .ed-props {
    order: 2; flex: none; display: none; max-height: 46dvh; overflow: auto; overscroll-behavior: contain;
    border: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; margin-top: -14px; position: relative; z-index: 5;
    background: var(--surface); box-shadow: 0 -10px 30px -14px rgba(0, 0, 0, .28); padding: 0 16px 16px;
    animation: sheetIn .28s cubic-bezier(.22, .8, .25, 1);
  }
  .ed.panel-open .ed-panel { display: block; }
  .ed.has-sel:not(.panel-open):not(.editing) .ed-props { display: block; max-height: 40dvh; }
  .ed.panel-open .ed-bottom, .ed.has-sel .ed-bottom { display: none; }
  .ed.panel-open .ed-canvas-wrap, .ed.has-sel .ed-canvas-wrap { padding-bottom: 24px; }
  .ed-sheet-head { position: sticky; top: 0; z-index: 2; background: var(--surface); align-items: center; gap: 6px; margin: 0 -16px 12px; padding: 14px 12px 10px 16px; border-bottom: 1px solid var(--border); }
  .ed-sheet-head::before { content: ''; position: absolute; top: 5px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--border-strong); }
  .ed-sheet-head b { font-size: 15px; }
  .ed-sheet-head .spacer { flex: 1; }
  .ed-panel h3 { display: none; }
  .ed-props h4:nth-child(2) { margin-top: 0; }
  .tpl-btn { padding: 14px; }
  .prop-row > label { width: 96px; }
  .prop-row .select, .prop-row input[type=range] { flex: 1; min-width: 0; }
  .icon-row .btn { width: 42px; height: 40px; }
  .color-grid { gap: 8px; }
  .num { height: 38px; } .num button { width: 36px; }
  input[type=range] { height: 28px; }
  .table .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .toolbar .search { min-width: 100%; max-width: none; order: -1; }
  .input-icon kbd { display: none; }
  .stats { gap: 8px; }
  .stat { padding: 10px 12px; gap: 10px; }
  .stat .ico { width: 30px; height: 30px; }
  .stat .v { font-size: 17px; }
  .stat .l { font-size: 12px; line-height: 1.3; }
  .page-head h1 { font-size: 21px; }
  .modal-body > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* =====================================================================
   v3 · Rollen, API-Schlüssel, Grok-Aufträge, Vergleich, Kampagnen, Benachrichtigungen
   ===================================================================== */
:root {
  --gk-1: var(--text); --gk-2: var(--text); --gk-3: var(--iro-p);
  --gk-grad: var(--iro-grad);
  --gk-soft: color-mix(in srgb, var(--iro-o) 7%, var(--surface-2));
  --st-scheduled: #3B5BFD; --st-ready: #E08A2E; --st-published: #12805C; --st-failed: #C2410C; --st-draft: #8C8C85;
}
[data-theme='dark'] {
  --gk-1: var(--text); --gk-2: var(--text); --gk-3: var(--iro-p);
  --gk-soft: color-mix(in srgb, var(--iro-o) 8%, var(--surface-2));
  --st-scheduled: #8EA2FF; --st-ready: #C58BFF; --st-published: #34D399; --st-failed: #FB923C; --st-draft: #7C7C77;
}
.st-draft { --s: var(--st-draft); } .st-scheduled { --s: var(--st-scheduled); } .st-ready, .st-publishing { --s: var(--st-ready); }
.st-published { --s: var(--st-published); } .st-failed { --s: var(--st-failed); }

/* ---------- small primitives ---------- */
.hint { font-size: 12px; color: var(--text-3); }
.tip.warn { background: var(--warn-bg); color: var(--warn); }
.tip.bad { background: var(--down-bg); color: var(--down); }
.tip.ok { background: var(--up-bg); color: var(--up); }
.tip.ok a, .tip.bad a { color: inherit; text-decoration: underline; font-weight: 600; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; cursor: pointer; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s var(--ease); }
.switch input:checked + i { background: var(--text); box-shadow: none; }
.switch input:checked + i::after { transform: translateX(16px); background: var(--bg); }
.switch input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + i { opacity: .45; }
.chip-btn { border: 1px solid var(--border-strong); background: var(--surface); height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: all .15s; }
.chip-btn:hover { color: var(--text); border-color: var(--text-3); }
.chip-btn:active { transform: scale(.96); }
.input.pulse { animation: pulseRing .6s var(--ease); }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--focus) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.empty-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); }
.empty-mini .ic { color: var(--text-3); margin-bottom: 4px; }
.empty-mini span { font-size: 13px; color: var(--text-3); max-width: 360px; margin-bottom: 8px; }

/* ---------- notification bell ---------- */
.brand-row { padding-right: 2px; }
.brand-row .brand { padding-bottom: 0; }
.sidebar .brand-row { margin-bottom: 18px; }
.bell { position: relative; }
.bell-n { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--down); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; }
.bell.ring .ic { animation: bellRing .9s var(--ease); transform-origin: 50% 10%; }
.bell.ring .bell-n { animation: pop .4s var(--ease) .2s; }
@keyframes bellRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.pop.ntf-pop { width: 380px; padding: 0; max-height: 520px; }
.ntf-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ntf-head b { font-size: 14.5px; }
.ntf-list { padding: 6px; }
.ntf-item { display: flex; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; text-align: left; border-radius: 10px; cursor: pointer; position: relative; color: var(--text); }
.ntf-item:hover { background: var(--surface-2); }
.ntf-item.unread::after { content: ''; position: absolute; right: 10px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--info); }
.ntf-item.unread .ntf-txt b { font-weight: 700; }
.ntf-ic { position: relative; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); flex: none; overflow: visible; display: grid; place-items: center; }
.ntf-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ntf-ic i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); box-shadow: 0 0 0 2px var(--surface); }
.ntf-ic img + i { }
.ntf-ic:not(:has(img)) i { position: static; width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.k-ok .ntf-ic i { background: var(--up); color: #fff; }
.k-bad .ntf-ic i { background: var(--down); color: #fff; }
.k-gk .ntf-ic i { background: var(--accent); color: var(--accent-text); }
.ntf-txt { display: flex; flex-direction: column; min-width: 0; padding-right: 14px; }
.ntf-txt b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ntf-txt span { font-size: 12.5px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ntf-txt small { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.ntf-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; color: var(--text-3); font-size: 13px; }
.toast.ntf-toast { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 10px 10px 10px 12px; gap: 12px; width: 380px; max-width: calc(100vw - 24px); animation: ntfIn .45s cubic-bezier(.2,1.2,.3,1); }
.toast.ntf-toast .ntf-txt span { -webkit-line-clamp: 1; }
.toast.ntf-toast .btn { flex: none; margin-left: auto; }
.toast.ntf-toast.k-ok { box-shadow: var(--shadow-3), inset 3px 0 0 var(--up); }
.toast.ntf-toast.k-gk { box-shadow: var(--shadow-3), inset 3px 0 0 var(--gk-2); }
.toast.ntf-toast.k-bad { box-shadow: var(--shadow-3), inset 3px 0 0 var(--down); }
@keyframes ntfIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast.fly-toast a { color: inherit; text-decoration: underline; font-weight: 700; margin-left: 6px; white-space: nowrap; }

/* ---------- admin: roles matrix ---------- */
.perm-card { overflow: hidden; }
.perm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.perm-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.perm-table th { padding: 14px 10px 12px; text-align: center; border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 0; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; position: sticky; left: 0; background: inherit; z-index: 1; }
.perm-table th:first-child { background: var(--surface-2); }
.perm-table tbody tr { background: var(--surface); }
.perm-table td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
.perm-table tbody tr:last-child td { border-bottom: 0; background: var(--surface-2); }
.perm-table tbody tr:hover { background: var(--surface-2); }
.perm-table td:first-child { padding-left: 18px; min-width: 220px; max-width: 320px; }
.perm-table td:first-child b { display: block; font-size: 13.5px; }
.perm-table td:first-child span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.4; margin-top: 1px; }
.perm-fixed { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--up-bg); color: var(--up); }
.perm-no { color: var(--text-3); }
.role-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.role-legend > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.45; }

/* ---------- admin: API keys / webhook ---------- */
.key-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.key-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.key-row + .key-row { border-top: 1px solid var(--border); }
.key-row:hover { background: var(--surface-2); }
.key-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.key-dot.on { background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 20%, transparent); }
.key-reveal { display: flex; flex-direction: column; gap: 10px; }
.key-reveal pre { margin: 0; font-size: 13px; padding: 14px; user-select: all; background: var(--surface-2); }

/* ============================ GROK ============================ */
.gk-tabbtn { position: relative; }
.gk-tabbtn.on { border-image: var(--gk-grad) 1; }
.gk-live { width: 8px; height: 8px; border-radius: 50%; background: var(--gk-2); box-shadow: 0 0 0 0 var(--gk-2); animation: gkPulse 1.4s infinite; display: inline-block; }
@keyframes gkPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gk-2) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* composer in grok mode */
.composer.is-grok { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gk-grad) border-box; border: 1.5px solid transparent; box-shadow: 0 8px 24px -14px color-mix(in srgb, var(--gk-2) 70%, transparent); }
.composer.is-grok:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gk-2) 16%, transparent), 0 8px 24px -14px var(--gk-2); }
.composer { position: relative; }
.gk-chip { display: inline-flex; align-items: center; gap: 5px; margin: 9px 0 0 10px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 11.5px; font-weight: 700; animation: pop .35s var(--ease); }
.gk-mention { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-3); padding: 5px; animation: popIn .14s var(--ease); }
.gk-mention button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--gk-soft); cursor: pointer; text-align: left; }
.gk-mention button > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: var(--accent); color: var(--accent-text); }
.gk-mention span { display: flex; flex-direction: column; }
.gk-mention small { color: var(--text-3); font-size: 11.5px; }
.kind-sw .gk-kind.on { background: var(--accent); color: var(--accent-text); }
.kind-sw .gk-kind:not(.on) .ic { color: var(--gk-2); }
.btn.gk-send { background: var(--accent); color: var(--accent-text); border: 0; height: 32px; padding: 0 13px; font-size: 13px; background-size: 160% 100%; transition: background-position .4s, transform .1s; box-shadow: 0 6px 16px -8px var(--gk-2); }
.btn.gk-send:hover { background-position: 100% 0; background-color: transparent; }
.composer-opts { padding: 0 8px 8px; flex-wrap: wrap; gap: 6px; }
.gk-count button.on { background: var(--gk-soft); color: var(--gk-1); }

/* intro */
.gk-intro { text-align: center; padding: 18px 6px 8px; display: flex; flex-direction: column; align-items: center; }
.gk-intro h3 { margin: 14px 0 4px; font-size: 16px; letter-spacing: -.01em; }
.gk-intro p { margin: 0 0 16px; color: var(--text-2); font-size: 13px; max-width: 320px; }
.gk-orb { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--accent-text); background: var(--accent); background-size: 200% 200%; animation: gkFlow 6s ease infinite; box-shadow: 0 14px 30px -12px var(--gk-2); }
@keyframes gkFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.gk-sugg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gk-sugg button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 550; color: var(--text-2); cursor: pointer; transition: all .15s; }
.gk-sugg button:hover { border-color: var(--gk-2); color: var(--text); background: var(--gk-soft); }
.gk-sugg.compact { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px 14px; padding: 2px; }
.gk-sugg.compact::-webkit-scrollbar { display: none; }
.gk-sugg.compact button { flex: none; }

/* tasks */
.gk-list { display: flex; flex-direction: column; gap: 12px; }
.gk-task { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: var(--surface); animation: modalIn .3s var(--ease); position: relative; overflow: hidden; }
.gk-task.st-queued, .gk-task.st-working { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gk-grad) border-box; border: 1.5px solid transparent; }
.gk-task.st-working::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--gk-2) 8%, transparent) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 2.2s linear infinite; pointer-events: none; }
.gk-task.st-canceled { opacity: .6; }
.gk-task header { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.gk-task header .faint { font-size: 11.5px; }
.gk-pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; background: var(--surface-2); color: var(--text-2); }
.gk-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.gk-pill.st-queued, .gk-pill.st-working { background: var(--gk-soft); color: var(--gk-1); }
.gk-pill.st-done { background: var(--up-bg); color: var(--up); }
.gk-pill.st-failed { background: var(--down-bg); color: var(--down); }
@keyframes blink { 50% { opacity: .3; } }
.gk-instr { margin: 8px 0 10px; font-size: 13px; }
.gk-instr .faint { display: block; font-size: 11.5px; margin-bottom: 2px; }
.gk-instr q { display: block; quotes: none; color: var(--text); padding: 8px 10px; border-radius: 10px; background: var(--surface-2); line-height: 1.45; }
.gk-progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.gk-progress i { display: block; height: 100%; border-radius: inherit; background: var(--gk-grad); background-size: 200% 100%; animation: gkFlow 2s linear infinite; transition: width .8s var(--ease); }
.gk-pnote { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; font-size: 12.5px; color: var(--text-2); }
.gk-dots { display: inline-flex; gap: 3px; }
.gk-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gk-2); animation: dot 1.2s infinite ease-in-out; }
.gk-dots i:nth-child(2) { animation-delay: .15s; } .gk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.gk-ghosts, .gk-vars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gk-ghost { border-radius: 10px; position: relative; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.gk-ghost::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--gk-1) 30%, transparent), color-mix(in srgb, var(--gk-3) 30%, transparent), transparent 60%); animation: spin 2.6s linear infinite; filter: blur(14px); }
.gk-ghost::after { content: ''; position: absolute; inset: 2px; border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); backdrop-filter: blur(6px); }
.gk-spark { position: relative; z-index: 1; color: var(--gk-2); animation: sparkle 1.8s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sparkle { 0%,100% { transform: scale(.85) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(18deg); opacity: 1; } }
.gk-err { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: var(--down-bg); color: var(--down); font-size: 12.5px; margin-bottom: 8px; }
.gk-answer { padding: 10px; border-radius: 10px; background: var(--gk-soft); font-size: 13px; white-space: pre-wrap; }
.gk-var { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: transform .2s var(--ease), box-shadow .2s; }
.gk-var img { width: 100%; height: 100%; object-fit: cover; }
.gk-var:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.4); }
.gk-var.discarded { opacity: .4; filter: grayscale(.8); }
.gk-var.applied { box-shadow: 0 0 0 2px var(--up); }
.gk-var.fresh { animation: varIn .9s cubic-bezier(.2,1.1,.3,1) both; }
.gk-var.fresh::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 1.2s .35s ease-out both; pointer-events: none; }
@keyframes varIn { 0% { opacity: 0; transform: scale(.7) rotate(-3deg); filter: blur(8px) saturate(2); } 60% { opacity: 1; filter: blur(0); } 100% { transform: none; } }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.gk-var .gk-n { position: absolute; top: 5px; right: 5px; }
.gk-tag { position: absolute; left: 5px; top: 5px; display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 6px; border-radius: 6px; background: var(--accent); color: var(--accent-text); font-size: 10.5px; font-weight: 700; }
.gk-tag.ok { background: var(--up); }
.gk-tag.big { position: static; height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; gap: 6px; }
.gk-score { position: absolute; left: 5px; bottom: 5px; display: flex; gap: 3px; }
.gk-score b { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px; border-radius: 5px; font-size: 10.5px; background: rgba(17,17,17,.72); color: #fff; }
.gk-score b.u .ic { color: #6EE7B7; } .gk-score b.d .ic { color: #FDBA74; }
.gk-open { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; background: rgba(10,10,10,.45); color: #fff; font-size: 12px; font-weight: 650; opacity: 0; transition: opacity .2s; }
.gk-var:hover .gk-open, .gk-var:focus-visible .gk-open { opacity: 1; }
@media (hover: none) { .gk-open { display: none; } }

/* busy veil over the image while grok works */
.vs-frame.gk-busy::before { content: ''; position: absolute; inset: -2px; z-index: 2; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--gk-a, 0deg), var(--gk-1), var(--gk-2), var(--gk-3), var(--gk-1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: gkSpinA 2.4s linear infinite; pointer-events: none; }
@property --gk-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes gkSpinA { to { --gk-a: 360deg; } }
.gk-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 25%, color-mix(in srgb, var(--gk-2) 22%, transparent) 45%, color-mix(in srgb, var(--gk-3) 18%, transparent) 55%, transparent 75%); background-size: 260% 100%; animation: veil 2.6s ease-in-out infinite; display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.gk-veil span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(17,17,17,.72); color: #fff; font-size: 12px; font-weight: 650; backdrop-filter: blur(8px); animation: floaty 2.4s ease-in-out infinite; }
@keyframes veil { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes floaty { 50% { transform: translateY(-3px); } }

/* ============================ COMPARE OVERLAY ============================ */
.cmp { position: fixed; inset: 0; z-index: 85; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px) saturate(1.2); display: flex; flex-direction: column; opacity: 0; transition: opacity .22s; }
.cmp.in { opacity: 1; }
.cmp.in .cmp-stage { animation: cmpIn .45s cubic-bezier(.2,1,.3,1); }
@keyframes cmpIn { from { transform: scale(.94); opacity: 0; } }
.cmp-top { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; }
.cmp-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cmp-title b { font-size: 14.5px; }
.cmp-title > span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: pan-y; }
.cmp-track { display: flex; height: 100%; will-change: transform; }
.cmp-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 8px 72px; min-width: 0; }
.cmp-ph { width: 40%; height: 60%; border-radius: 12px; background: var(--surface-2); }
.cmp-pair { display: flex; gap: 20px; height: 100%; width: 100%; align-items: center; justify-content: center; }
.cmp-frame { position: relative; margin: 0; aspect-ratio: var(--r); max-height: 100%; max-width: calc(50% - 10px); height: 100%; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-3); }
.cmp-frame img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.cmp-frame.is-new { box-shadow: 0 0 0 2px transparent, var(--shadow-3); animation: newGlow 1.2s ease-out; }
.cmp-frame.is-new::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--gk-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes newGlow { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gk-2) 70%, transparent), var(--shadow-3); } to { box-shadow: 0 0 0 26px transparent, var(--shadow-3); } }
.cmp-lbl { position: absolute; left: 10px; top: 10px; z-index: 2; height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(17,17,17,.7); color: #fff; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(8px); }
.cmp-lbl.gk { background: var(--accent); color: var(--accent-text); }
.cmp-lbl.r { left: auto; right: 10px; background: var(--accent); color: var(--accent-text); }
.cmp-ba { max-width: 100%; cursor: ew-resize; touch-action: none; }
.cmp-ba .ba-a { position: absolute; inset: 0; }
.cmp-ba .ba-b { position: absolute; inset: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.4); z-index: 3; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-3); }
.cmp-sub { display: flex; gap: 6px; justify-content: center; padding: 6px 12px 0; overflow-x: auto; }
.cmp-sub button { width: 46px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55; background: var(--surface-2); flex: none; transition: all .15s; }
.cmp-sub button img { width: 100%; height: 100%; object-fit: cover; }
.cmp-sub button.on { opacity: 1; border-color: var(--text); }
.cmp-foot { padding: 12px 16px calc(env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; gap: 10px; max-width: 980px; width: 100%; margin: 0 auto; }
.cmp-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); padding: 9px 12px; border-radius: 10px; background: var(--gk-soft); }
.cmp-note .ic { color: var(--gk-1); margin-top: 2px; }
.cmp-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-apply { min-width: 150px; justify-content: center; }
.cmp-apply.busy { pointer-events: none; opacity: .8; }
.cmp-apply.busy .ic { animation: spin .8s linear infinite; }
.cmp-frame.applied { animation: applied .6s var(--ease); }
@keyframes applied { 40% { transform: scale(1.03); } }
.cmp-burst { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.cmp-burst span { width: 64px; height: 64px; border-radius: 50%; background: var(--up); color: #fff; display: grid; place-items: center; animation: burstCk .6s cubic-bezier(.2,1.4,.3,1) both; box-shadow: 0 10px 30px -6px var(--up); }
.cmp-burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--gk-grad); animation: burstDot .7s ease-out both; }
.cmp-burst i:nth-child(3n) { background: var(--up); } .cmp-burst i:nth-child(3n+1) { background: var(--gk-3); }
@keyframes burstCk { from { transform: scale(0); } }
@keyframes burstDot { 0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.3); opacity: 0; } }

/* ============================ CAMPAIGNS ============================ */
.cmp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--text)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--text)) 18%, transparent); vertical-align: middle; }
.cmp-dot.lg { width: 14px; height: 14px; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cmp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; box-shadow: var(--shadow-1); }
.cmp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), 0 18px 30px -20px color-mix(in srgb, var(--c) 60%, transparent); border-color: var(--border-strong); }
.cmp-covers { height: 150px; position: relative; background: color-mix(in srgb, var(--c) 10%, var(--surface-2)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cmp-covers img { position: absolute; width: 92px; height: 115px; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); border: 2px solid var(--surface); left: calc(50% - 46px + (var(--i) - 1.5) * 44px); transform: rotate(calc((var(--i) - 1.5) * 5deg)) translateY(calc(var(--i) * 2px)); transition: transform .3s var(--ease); }
.cmp-card:hover .cmp-covers img { transform: rotate(calc((var(--i) - 1.5) * 8deg)) translateY(-4px) translateX(calc((var(--i) - 1.5) * 6px)); }
.cmp-ph-cover { color: color-mix(in srgb, var(--c) 70%, var(--text-3)); }
.cmp-card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.cmp-card-b b { font-size: 15px; }
.cmp-dates { font-size: 12.5px; }
.cmp-bar { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin: 4px 0 2px; }
.cmp-bar i { display: block; height: 100%; background: var(--c); border-radius: inherit; transition: width .6s var(--ease); }
.cmp-counts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cmp-counts span { display: inline-flex; align-items: center; gap: 4px; }
.cmp-counts .hl { color: var(--st-ready); font-weight: 650; } .cmp-counts .ok { color: var(--up); } .cmp-counts .bad { color: var(--down); font-weight: 650; }
.cmp-next { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: 7px; padding: 4px 8px; align-self: flex-start; margin-top: 2px; }
.cmp-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; transition: all .15s; }
.cmp-pick:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); transform: translateX(2px); }

/* calendar */
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cal-head h3 { margin: 0 6px; font-size: 15.5px; text-transform: capitalize; letter-spacing: -.01em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px 10px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); border-bottom: 1px solid var(--border); }
.cal-day { min-height: 108px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--surface-2); }
.cal-day.out .cal-n { color: var(--text-3); }
.cal-n { font-size: 12px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.cal-day.today .cal-n { background: var(--text); color: var(--bg); }
.cal-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-it { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; height: 26px; padding: 0 6px 0 2px; border: 0; border-radius: 6px; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--s) 12%, var(--surface)); box-shadow: inset 2px 0 0 var(--c); transition: transform .12s; }
.cal-it:hover { transform: translateX(2px); }
.cal-it img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; flex: none; }
.cal-it span { flex: 1; text-align: left; font-variant-numeric: tabular-nums; }
.cal-it .ic { color: var(--s); flex: none; }
.cal-it.st-published { opacity: .75; }
.cal-more { font-size: 11px; color: var(--text-3); padding-left: 4px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--s); }

/* board */
.board-page { max-width: none; }
.board-head { align-items: center; }
.board-head h1 { font-size: 22px; }
.board-actions { flex-wrap: wrap; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.col { background: var(--surface-2); border-radius: var(--radius-l); padding: 10px; display: flex; flex-direction: column; min-height: 320px; transition: background .2s, box-shadow .2s, transform .2s; scroll-snap-align: start; --k: var(--st-draft); }
.col-scheduled { --k: var(--st-scheduled); } .col-ready { --k: var(--st-ready); } .col-published { --k: var(--st-published); }
.col header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; font-size: 13.5px; }
.col-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--surface)); }
.col-n { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--text-3); background: var(--surface); border-radius: 999px; min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.col-hint { margin: 2px 4px 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.col-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.col-drop { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 90px; border: 2px dashed color-mix(in srgb, var(--k) 45%, var(--border-strong)); border-radius: 12px; color: var(--k); font-size: 12.5px; font-weight: 600; text-align: center; padding: 10px; transition: all .2s; }
.col-list:not(:has(.icard)) .col-drop { display: flex; opacity: .55; }
body.dragging .col-drop { display: flex; opacity: .7; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; }
.col.over { background: color-mix(in srgb, var(--k) 12%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--k); transform: translateY(-2px); }
.col.over .col-drop { opacity: 1; background: color-mix(in srgb, var(--k) 10%, transparent); transform: scale(1.02); border-style: solid; }
.icard { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--border); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.icard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); z-index: 2; }
.icard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border-strong); }
.ic-media { position: relative; width: 100%; aspect-ratio: var(--r); max-height: 220px; background: var(--surface-2); overflow: hidden; }
.ic-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ic-kind { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(17,17,17,.68); color: #fff; backdrop-filter: blur(6px); }
.ic-count { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(17,17,17,.68); color: #fff; font-size: 11px; font-weight: 650; backdrop-filter: blur(6px); }
.ic-grip { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #111; opacity: 0; transition: opacity .2s; cursor: grab; }
.icard:hover .ic-grip { opacity: 1; }
@media (hover: none) { .ic-grip { opacity: .9; } }
.ic-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.ic-t { display: flex; gap: 5px; font-size: 13px; min-width: 0; }
.ic-when { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ic-when.none { color: var(--text-3); font-weight: 500; }
.ic-pill { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; }
.ic-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ic-pill.hl { background: color-mix(in srgb, var(--st-ready) 14%, var(--surface)); color: var(--st-ready); }
.ic-pill.hl i { animation: gkPulse 1.4s infinite; }
.ic-pill.busy { background: var(--gk-soft); color: var(--gk-1); }
.ic-pill.busy i { animation: blink .8s infinite; }
.ic-pill.bad { background: var(--down-bg); color: var(--down); }
.ic-cap { font-size: 12px; color: var(--text-3); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic-go { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 9px; background: var(--text); color: var(--bg); font-weight: 650; font-size: 12.5px; cursor: pointer; transition: transform .12s, box-shadow .2s; }
.ic-go:hover { box-shadow: 0 8px 18px -8px var(--st-ready); background: var(--accent); color: var(--accent-text); }
.ic-go:hover .ic { animation: rocket .6s ease-in-out infinite alternate; }
@keyframes rocket { to { transform: translate(2px, -2px); } }
.ic-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--up); }
.ic-link:hover { text-decoration: underline; }
.icard.st-published .ic-media img { filter: saturate(.85); }
.icard.st-failed { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--down); }
.ic-origin { opacity: .3; transform: scale(.96); filter: grayscale(.5); }
.ic-ghost { position: fixed; z-index: 200; pointer-events: none; margin: 0; box-shadow: 0 30px 60px -15px rgba(0,0,0,.45), 0 0 0 2px var(--c); transition: none; transform-origin: 50% 30%; will-change: transform; }
.icard.landed { animation: landed .8s cubic-bezier(.2,1.3,.3,1); }
@keyframes landed { 0% { transform: scale(.85); box-shadow: 0 0 0 0 var(--c); } 50% { transform: scale(1.03); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 30%, transparent); } 100% { transform: none; } }

/* ready flow */
.ready-sum { display: flex; gap: 16px; align-items: flex-start; }
.ready-thumb { position: relative; width: 110px; flex: none; aspect-ratio: var(--r); border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-2); }
.ready-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ready-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; font-size: 13px; }
.ready-list > div { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; word-break: break-word; }
.ready-list > div > span:first-child { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); margin-top: -3px; }
.ready-list .hl > span:first-child { background: color-mix(in srgb, var(--st-ready) 14%, var(--surface)); color: var(--st-ready); }
.ready-list .warn { color: var(--warn); }
.ready-list .warn > span:first-child { background: var(--warn-bg); color: var(--warn); }
.btn.launch { background: var(--accent); border: 0; color: var(--accent-text); overflow: hidden; position: relative; }
.btn.launch:hover { opacity: 1; filter: brightness(1.05); }
.btn.launch.fly .ic { animation: launch .65s cubic-bezier(.6,0,.4,1) forwards; }
.btn.launch.fly::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: sheen .6s ease-out; background-size: 200% 100%; }
@keyframes launch { 30% { transform: translate(-3px, 3px); } 100% { transform: translate(60px, -60px) scale(.6); opacity: 0; } }

/* item editor */
.ie { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ie-prev { position: sticky; top: 0; }
.ie-phone { border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 7px #111, 0 22px 50px -18px rgba(0,0,0,.55); overflow: hidden; margin: 8px; color: #111; background: #fff; font-size: 12.5px; }
[data-theme='dark'] .ie-phone { background: #000; color: #f5f5f5; box-shadow: 0 0 0 7px #2a2a2c, 0 22px 50px -18px rgba(0,0,0,.8); }
.ie-phone.story, .ie-phone.reel { aspect-ratio: 9 / 16; background: #000; color: #fff; }
.iep-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px; }
.iep-head .ig-av { width: 26px; height: 26px; }
.iep-head small { display: block; font-size: 10.5px; opacity: .7; margin-left: auto; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iep-media { position: relative; overflow: hidden; background: #111; touch-action: pan-y; }
.iep-track { display: flex; height: 100%; will-change: transform; }
.iep-track > div { flex: 0 0 100%; height: 100%; }
.iep-track img, .iep-track video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; display: block; }
.iep-n { position: absolute; top: 8px; right: 8px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.iep-acts { display: flex; gap: 12px; padding: 9px 10px 4px; }
.iep-cap, .iep-cmt { padding: 2px 10px 6px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow: auto; }
.iep-cmt { opacity: .75; padding-bottom: 12px; }
.iep-story { position: relative; height: 100%; }
.iep-story .iep-media { position: absolute; inset: 0; }
.iep-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 3px; }
.iep-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); transition: background .3s; }
.iep-bars i.on { background: #fff; }
.iep-sticker { position: absolute; z-index: 2; left: 50%; top: 58%; transform: translateX(-50%) rotate(-3deg); background: #fff; color: #111; font-weight: 800; padding: 7px 12px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.3); max-width: 80%; text-align: center; animation: pop .4s var(--ease); }
.iep-link { position: absolute; z-index: 2; left: 50%; bottom: 52px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #3B5BFD; font-weight: 700; padding: 6px 11px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.iep-tags { position: absolute; z-index: 2; left: 12px; bottom: 16px; right: 12px; color: #fff; font-weight: 700; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ie-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kind-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kind-pick label { cursor: pointer; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border-radius: 12px; border: 1.5px solid var(--border); font-size: 12.5px; color: var(--text-2); transition: all .15s; }
.kind-pick label:hover span { border-color: var(--text-3); }
.kind-pick input:checked + span { border-color: var(--text); color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--focus); }
.kind-pick input:disabled + span { opacity: .6; cursor: default; }
.when-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* post picker */
.pick-filters { align-self: flex-start; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 52vh; overflow: auto; padding: 2px; margin: 0 -2px; }
.pick { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: var(--r); max-height: 220px; box-shadow: inset 0 0 0 1px var(--border); transition: transform .15s var(--ease); }
.pick img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .25s var(--ease); }
.pick:active { transform: scale(.97); }
.pick-ck { position: absolute; left: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: transparent; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.25); transition: all .2s var(--ease); z-index: 2; }
.pick.on { box-shadow: 0 0 0 3px var(--text); }
.pick.on img { transform: scale(.94); border-radius: 6px; }
.pick.on .pick-ck { background: var(--text); color: var(--bg); box-shadow: none; animation: pop .3s var(--ease); }
.pick .ic-count { top: 7px; right: 7px; }
.pick-in { position: absolute; left: 7px; bottom: 34px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--info); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.pick-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 11.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* fly into nav */
.fly-card { position: fixed; z-index: 300; pointer-events: none; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); }
.fly-card img { width: 100%; height: 100%; object-fit: cover; }
.nav a.nav-pop { animation: navPop .6s cubic-bezier(.2,1.5,.3,1); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border-strong); }
@keyframes navPop { 40% { transform: scale(1.08); } }
#menu-btn.nav-pop { animation: navPop .6s cubic-bezier(.2,1.5,.3,1); }

/* ---------- responsive for new features ---------- */
@media (max-width: 1080px) {
  .ie { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
  .board { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 16px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .board::-webkit-scrollbar { display: none; }
  .col { flex: 0 0 82%; min-height: 60dvh; }
  body.dragging .board { scroll-snap-type: none; }
  .board-head { gap: 10px; }
  .board-head h1 { font-size: 19px; }
  .board-actions { width: 100%; }
  .board-actions .btn.primary span { display: inline; }
  .cmp-slide { padding: 4px 10px; }
  .cmp-pair { flex-direction: column; gap: 10px; }
  .cmp-frame { max-width: 100%; height: auto; max-height: calc(50% - 5px); width: auto; flex: 1 1 0; }
  .cmp-ba { max-height: 100%; height: auto; width: 100%; flex: none; }
  .cmp .viewer-arrow { display: none; }
  .cmp-top .seg span { display: none; }
  .cmp-actions .btn span { display: none; }
  .cmp-actions .cmp-apply { flex: 1; min-width: 0; }
  .cmp-actions .rate button { height: 44px; padding: 0 14px; border-radius: 22px; }
  .gk-ghosts, .gk-vars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ie { grid-template-columns: 1fr; }
  .ie-prev { position: static; max-width: 260px; margin: 0 auto; width: 100%; }
  .cal-day { min-height: 74px; padding: 4px 3px; }
  .cal-it { height: 22px; padding: 0 3px 0 2px; justify-content: center; }
  .cal-it span, .cal-it .ic { display: none; }
  .cal-it img { width: 100%; height: 18px; }
  .cal-wd { padding: 6px 4px; text-align: center; font-size: 10px; }
  .cal-n { margin: 0 auto; }
  .pop.ntf-pop { width: auto; }
  .toasts { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); align-items: stretch; }
  .toast { max-width: none; }
  .toast.ntf-toast { width: auto; }
}
@media (max-width: 600px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .ready-sum { flex-direction: column; align-items: center; }
  .ready-thumb { width: 130px; }
  .ready-list { width: 100%; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 58dvh; }
  .pick-t { display: none; }
  .pick-in { bottom: 6px; left: 6px; }
  .key-row { flex-wrap: wrap; }
  .key-row .btn { margin-left: auto; }
  .perm-table td:first-child { min-width: 170px; }
  .when-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .when-chips .chip-btn { flex: none; }
  .overlay:has(.modal.wide) { padding: 0; align-items: end; }
  .modal.wide .modal-foot { position: sticky; bottom: 0; background: var(--surface); padding-top: 12px; padding-bottom: calc(env(safe-area-inset-bottom) + 14px); border-top: 1px solid var(--border); flex-wrap: wrap; }
  .modal.wide { max-width: none; border-radius: 20px 20px 0 0; max-height: 94dvh; animation: sheetIn .3s cubic-bezier(.22,.8,.25,1); }
}
@media (prefers-reduced-motion: reduce) {
  .gk-ghost::before, .gk-veil, .vs-frame.gk-busy::before, .gk-orb, .gk-progress i, .gk-task.st-working::before { animation: none !important; }
}
/* side actions + composer fit */
.side-acts { flex-wrap: wrap; }
.side-acts .btn { flex: 0 1 auto; min-width: 0; }
.composer-bar { flex-wrap: nowrap; min-width: 0; }
.composer-bar .kind-sw { min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; }
.composer-bar .kind-sw::-webkit-scrollbar { display: none; }
.kind-sw button { white-space: nowrap; flex: none; }
.composer.is-grok .kind-sw button:not(.on) span { display: none; }
.composer.is-grok .kind-sw button.on span { display: inline; }
.btn.gk-send { flex: none; white-space: nowrap; }
@media (max-width: 1280px) { .kind-sw button:not(.on) span { display: none; } }
@media (max-width: 900px) {
  .cmp-actions { flex-wrap: nowrap; gap: 6px; }
  .cmp-actions .spacer { display: none; }
  .cmp-actions .rate { flex: none; }
  .cmp-actions .rate button { padding: 0 11px; }
  .cmp-actions .btn { flex: none; padding: 0 10px; }
  .cmp-actions .cmp-apply { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
  .cmp-actions .gk-tag.big { margin-left: auto; }
}
@media (max-width: 600px) {
  .modal-foot { flex-wrap: wrap; }
  .modal-foot > .btn.primary { flex: 1 1 auto; justify-content: center; }
  .key-row .avatar { display: none; }
}
.input-reveal { position: relative; display: flex; }
.input-reveal .input { padding-right: 42px; font-family: var(--mono); font-size: 13px; }
.input-reveal [data-wh-eye] { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.input-reveal [data-wh-eye].on { color: var(--text); background: var(--surface-2); }
.wh-saved { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--up); margin-top: 2px; }
.wh-saved code { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
/* live updates */
.pc.live-in, .li.live-in { animation: liveIn .7s cubic-bezier(.2,1.1,.3,1) both; animation-delay: var(--d, 0ms); }
.pc.live-in::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 2px var(--info); animation: liveRing 2.4s ease-out forwards; animation-delay: var(--d, 0ms); }
.pc { position: relative; }
@keyframes liveIn { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); } }
@keyframes liveRing { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.live-hint { position: fixed; z-index: 70; top: 16px; left: 50%; transform: translate(-50%, -80px); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 650; font-size: 13px; box-shadow: var(--shadow-3); cursor: pointer; transition: transform .45s cubic-bezier(.2,1.3,.3,1), opacity .3s; opacity: 0; }
.live-hint.in { transform: translate(-50%, 0); opacity: 1; }
.live-hint.out { transform: translate(-50%, -80px); opacity: 0; }
@media (min-width: 901px) { .live-hint { left: calc(50% + var(--sidebar) / 2); } }
@media (max-width: 900px) { .live-hint { top: calc(env(safe-area-inset-top) + 64px); } }

/* ============================ delete / trash / selection ============================ */
.pc-menu { pointer-events: auto; width: 26px; height: 24px; border-radius: 7px; border: 0; background: rgba(17,17,17,.55); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; backdrop-filter: blur(6px); }
.pc:hover .pc-menu, .pc:focus-within .pc-menu { opacity: 1; }
.pc-menu + .pc-sel { margin-left: 4px; }
.pc-top .pc-menu { margin-left: auto; }
@media (hover: none) { .pc-menu { opacity: .95; } .grid.selecting .pc-menu { display: none; } }
.grid.selecting .pc-menu { opacity: 0; pointer-events: none; }
.grid.selecting .pc { cursor: pointer; }
.grid.selecting .pc:not(.selected) .pc-media img { filter: saturate(.85) brightness(.92); }
.pc.selected { box-shadow: 0 0 0 2.5px var(--text), var(--shadow-2); transform: scale(.985); }
.pc { transition: transform .18s var(--ease), box-shadow .18s; }
.pc.selected .pc-sel { animation: pop .28s var(--ease); }
/* list view selection */
.li-thumb { position: relative; }
.li-sel { position: absolute; left: 4px; top: 4px; z-index: 2; opacity: 0; }
.li:hover .li-sel, .list.selecting .li-sel, .li.selected .li-sel { opacity: 1; }
.li.selected { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--text); }
.li.selected .li-sel { background: #fff; color: #111; }
#sel-mode.on { background: var(--text); color: var(--bg); border-color: var(--text); }
/* selbar delete */
.selbar .sel-del { color: #fff; background: var(--down) !important; border-color: var(--down) !important; }
.selbar .sel-del:hover { filter: brightness(1.08); }
.selbar { flex-wrap: nowrap; max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
.selbar::-webkit-scrollbar { display: none; }
.selbar b { white-space: nowrap; }
.selbar .btn { flex: none; }
/* delete animation */
.pc.del-out, .li.del-out { animation: delOut .38s var(--ease) forwards; animation-delay: var(--d, 0ms); pointer-events: none; }
@keyframes delOut { to { opacity: 0; transform: scale(.82) translateY(10px); filter: blur(3px) grayscale(1); } }
/* confirm dialog */
.del-preview { display: flex; justify-content: center; align-items: center; height: 120px; position: relative; margin: 2px 0 4px; }
.del-preview img { width: 76px; height: 100px; object-fit: cover; border-radius: 9px; border: 2px solid var(--surface); box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); margin: 0 -18px; transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 6deg)) translateY(calc(var(--i) * 1px)); animation: delPrev .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes delPrev { from { opacity: 0; transform: translateY(16px) scale(.9); } }
.del-more { position: absolute; right: calc(50% - 110px); bottom: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.del-title { margin: 0; text-align: center; font-weight: 650; }
.btn.danger-solid { background: var(--down); border-color: var(--down); color: #fff; }
.btn.danger-solid:hover { opacity: 1; filter: brightness(1.08); }
/* undo toast */
.toast.undo-toast { position: relative; overflow: hidden; padding-right: 8px; }
.undo-btn { margin-left: 6px; border: 0; background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); font-weight: 700; height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.undo-btn:hover { background: color-mix(in srgb, var(--bg) 28%, transparent); }
.undo-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: color-mix(in srgb, var(--bg) 55%, transparent); transform-origin: left; animation: undoBar linear forwards; }
@keyframes undoBar { to { transform: scaleX(0); } }
/* trash dialog */
.trash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-height: 56vh; overflow: auto; padding: 3px; margin: -3px; }
.trash-it { display: flex; flex-direction: column; gap: 6px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--text); }
.trash-img { position: relative; display: block; aspect-ratio: var(--r); max-height: 220px; border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .15s, transform .15s; }
.trash-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55); transition: filter .2s; }
.trash-it:hover .trash-img img, .trash-it.on .trash-img img { filter: none; }
.trash-it.on .trash-img { box-shadow: 0 0 0 3px var(--text); transform: scale(.97); }
.trash-it.on .pick-ck { background: var(--text); color: var(--bg); box-shadow: none; }
.trash-img .ic-count { top: 7px; right: 7px; }
.trash-t { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trash-m { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.trash-m .warn { color: var(--down); font-weight: 600; }
.trash-foot .btn.danger:not(:disabled) { border-color: var(--down); }
@media (max-width: 600px) {
  .trash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 60dvh; }
  .trash-m { display: none; }
  #sel-mode span { display: none; }
  #sel-mode { width: 36px; padding: 0; justify-content: center; }
  .selbar { left: 8px; right: 8px; transform: none; bottom: calc(env(safe-area-inset-bottom) + 10px); padding: 6px 6px 6px 12px; gap: 6px; animation: none; }
  .selbar .btn span { display: none; }
  .selbar .btn { width: 36px; padding: 0; justify-content: center; }
  .selbar .sel-del { width: auto; padding: 0 12px; }
  .selbar .sel-del span { display: inline; }
}
@media (max-width: 600px) {
  .selbar .sel-all span { display: none; }
  .trash-foot { gap: 6px !important; }
  .trash-foot .btn { flex: 1 1 auto; justify-content: center; }
  .trash-foot [data-n], .trash-foot .spacer { display: none; }
}
@media (max-width: 600px) {
  .selbar b { order: 0; font-size: 13px; }
  .selbar .sel-del { order: 1; }
  .selbar [data-a=clear] { order: 2; }
  .selbar > *:not(b):not(.sel-del):not([data-a=clear]) { order: 3; }
}

/* ============================ tags ============================ */
.tag-chip { --tc: var(--text-3); display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--tc) 80%, var(--text)); background: color-mix(in srgb, var(--tc) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc) 25%, transparent); white-space: nowrap; cursor: pointer; transition: background .15s; }
.tag-chip:hover { background: color-mix(in srgb, var(--tc) 20%, var(--surface)); }
.tag-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.tag-chip.sm { height: 20px; padding: 0 7px; font-size: 11px; }
.tag-chip.more { color: var(--text-3); cursor: default; }
.tag-chip button { border: 0; background: none; padding: 0; margin-right: -3px; color: inherit; opacity: .6; cursor: pointer; display: grid; place-items: center; }
.tag-chip button:hover { opacity: 1; }
.tag-list { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.pc-tags { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; margin-top: 6px; mask-image: linear-gradient(90deg, #000 85%, transparent); }
/* editor */
.tag-ed { display: flex; flex-direction: column; gap: 12px; }
.tg-row, .tg-free { --tc: var(--text-3); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; background: var(--surface); }
.tg-row { border-left: 3px solid var(--tc); }
.tg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.tg-head .faint { font-size: 12px; font-variant-numeric: tabular-nums; }
.tg-all { border: 0; background: none; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.tg-all:hover { background: var(--surface-2); color: var(--text); }
.tg-vals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tg-v { --tc: var(--text-3); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer; transition: all .15s var(--ease); user-select: none; }
.tg-row .tg-v, .tg-admin .tg-v { --tc: inherit; }
.tg-v:hover { border-color: var(--tc, var(--text-3)); color: var(--text); }
.tg-v:active { transform: scale(.95); }
.tg-v.on { background: var(--tc); border-color: var(--tc); color: #fff; box-shadow: 0 4px 12px -6px var(--tc); }
.tg-row .tg-v.on, .tg-admin .tg-v.on { background: var(--tc); border-color: var(--tc); }
.tg-row { --tc: inherit; }
.tg-v.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tg-v.static { cursor: default; padding-right: 6px; }
.tg-v.static::before { display: none; }
.tg-v.static button { border: 0; background: rgba(255,255,255,.22); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tg-v.rm.on { background: var(--down-bg); border-color: var(--down); color: var(--down); text-decoration: line-through; box-shadow: none; }
.tg-v.rm.on::before { background: var(--down); }
.tg-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); cursor: text; }
.tg-box:focus-within { border-color: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 15%, transparent); }
.tg-input { flex: 1; min-width: 140px; border: 0; outline: 0; background: none; height: 28px; padding: 0 6px; font-size: 13.5px; color: var(--text); }
.tg-admin .tg-input { border: 1px dashed var(--border-strong); border-radius: 999px; height: 32px; padding: 0 12px; flex: 0 1 200px; min-width: 160px; }
.tg-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tg-sugg:empty { display: none; }
.tg-sugg button { border: 1px dashed var(--border-strong); background: none; color: var(--text-2); height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.tg-sugg button:hover { border-style: solid; color: var(--text); background: var(--surface-2); }
.tg-existing { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-admin { border-left: 4px solid var(--tc); }
.tg-templates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tg-templates .chip { --tc: var(--text-3); }
.tg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); display: inline-block; }
@media (max-width: 600px) {
  .tg-v { height: 34px; padding: 0 11px; }
  .tg-row, .tg-free { padding: 10px; }
}

/* ===================================================================== v4 – text sets (mit / ohne Text) */
/* sharper previews: no extra resampling blur in the grid */
.pc-track img, .vs-frame img, .ig-cell img, .strip-item img, .vs-all-item img, .li-thumb img { image-rendering: auto; backface-visibility: hidden; transform: translateZ(0); }
.pc-cell { position: relative; flex: none; width: 100%; height: 100%; }
.pc-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pc-media.r-1-1 .pc-cell img, .pc-media.r-1-91-1 .pc-cell img, .pc-media.r-9-16 .pc-cell img { object-fit: contain; background: var(--surface-3); }
/* crossfade pair: .v-t (with text) above .v-b (without) */
.pc-cell .v-b, .tt-pair .v-b { opacity: 0; transition: opacity .38s cubic-bezier(.4,0,.2,1) var(--tt-d, 0ms); }
.pc-cell .v-t, .tt-pair .v-t { transition: opacity .38s cubic-bezier(.4,0,.2,1) var(--tt-d, 0ms), filter .38s; }
.pc.show-base .pc-cell .v-b { opacity: 1; }
.pc.show-base .pc-cell:has(.v-b) .v-t { opacity: 0; }
.tt-pair { position: relative; display: block; }
.tt-pair > img { display: block; }
.tt-pair > .v-b { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer.show-base .tt-pair:has(.v-b) > .v-t { opacity: 0; }
.viewer.show-base .tt-pair > .v-b { opacity: 1; }
.ig-cell.tt-pair, .strip-item .tt-pair { height: 100%; }
.strip-item .tt-pair img { width: 100%; height: 100%; object-fit: cover; }
.vs-all-item .tt-pair img { width: 100%; height: 100%; object-fit: cover; }
.vs-frame.tt-pair > .v-b { object-fit: contain; }
.ig-sf .fg.tt-pair { width: 100%; }
.ig-sf .fg.tt-pair img { width: 100%; object-fit: contain; }
.ig-sf .fg.tt-pair .v-b { height: 100%; }

/* card pill toggle (Mit / Ohne) */
.pc-tt { pointer-events: auto; cursor: pointer; border: 0; gap: 4px; position: relative; overflow: hidden; padding-right: 8px; }
.pc-tt .tt-a, .pc-tt .tt-b { display: inline-flex; align-items: center; gap: 4px; transition: transform .3s var(--ease), opacity .3s; }
.pc-tt .tt-b { position: absolute; inset: 0; justify-content: center; transform: translateY(110%); opacity: 0; }
.pc.show-base .pc-tt .tt-a { transform: translateY(-110%); opacity: 0; }
.pc.show-base .pc-tt .tt-b { transform: none; opacity: 1; }
.pc.show-base .pc-tt { background: rgba(231,220,198,.92); color: #0A0A0A; }
.pc-tt:hover { background: rgba(17,17,17,.75); }
.li-thumb .set-n { position: absolute; left: 3px; bottom: 3px; padding: 2px 4px; }

/* segmented switch with sliding thumb */
.tt-seg { position: relative; isolation: isolate; }
.tt-seg button { position: relative; z-index: 1; background: none !important; box-shadow: none !important; }
.tt-seg button.on { color: var(--text); }
.tt-seg .seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-1); transition: transform .32s cubic-bezier(.3,1.3,.5,1); }
.tt-seg[data-m=base] .seg-thumb { transform: translateX(calc(100% + 2px)); }
.tt-seg button { flex: 1; justify-content: center; }
.viewer .vt-tt { margin-right: 6px; }
@media (max-width: 899px) { .tt-seg button span { display: none; } .tt-seg button { padding: 0 10px; } }

/* set CTA */
.set-cta { border-style: dashed; }

/* manage set dialog */
.set-bulk { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px dashed var(--border-strong); border-radius: 12px; cursor: pointer; margin-bottom: 14px; transition: background .15s, border-color .15s; }
.set-bulk:hover, .set-bulk.over { background: var(--surface-2); border-color: var(--text-2); }
.set-list { display: grid; gap: 10px; max-height: min(60vh, 640px); overflow: auto; padding: 2px; }
.set-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 10px; }
.set-row .set-n { font: 600 12px/1 var(--mono, ui-monospace, monospace); color: var(--text-3); text-align: center; }
.set-arrow { color: var(--text-3); display: grid; place-items: center; }
.set-fig { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); max-height: 220px; width: 100%; }
.set-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-fig figcaption { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: rgba(10,10,10,.65); color: #fff; display: inline-flex; gap: 4px; align-items: center; backdrop-filter: blur(6px); }
.set-drop { cursor: pointer; border: 1.5px dashed var(--border-strong); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.set-drop.has { border-style: solid; border-color: transparent; }
.set-drop.new { box-shadow: 0 0 0 2px #E7DCC6; }
.set-drop:hover, .set-drop.over { border-color: var(--text-2); background: var(--surface-3); }
.set-empty { display: grid; justify-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; text-align: center; padding: 10px; }
.set-rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(10,10,10,.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 600px) { .set-row { grid-template-columns: 18px 1fr 1fr; } .set-arrow { display: none; } .set-fig { max-height: 260px; } }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pair dialog */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.pair-col { display: grid; gap: 10px; min-width: 0; }
.pair-lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.pair-stack { position: relative; width: 70%; margin: 6px auto 10px; }
.pair-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-2); transform: translate(calc(var(--i) * 10px), calc(var(--i) * -8px)) rotate(calc(var(--i) * 3deg)); z-index: calc(3 - var(--i)); transition: transform .3s var(--ease); }
.pair-meta { font-size: 13px; }
.pair-swap { border-radius: 50%; width: 42px; height: 42px; }
.pair-swap:hover .ic { transform: rotate(180deg); transition: transform .35s var(--ease); }
@media (max-width: 600px) { .pair { grid-template-columns: 1fr; } .pair-swap { justify-self: center; transform: rotate(90deg); } .pair-stack { width: 46%; } }

/* upload: pairing assistant */
.up-pair { display: grid; gap: 8px; }
.up-pair-row { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 8px; align-items: center; }
.up-pair-row .set-fig { max-height: 150px; }
.up-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.up-mode button { text-align: left; padding: 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; display: grid; gap: 4px; }
.up-mode button b { display: inline-flex; gap: 6px; align-items: center; }
.up-mode button.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.up-mode button span { font-size: 12px; color: var(--text-2); }
@media (max-width: 600px) { .up-mode { grid-template-columns: 1fr; } }

/* ===================================================================== v4 – editor brand / plates / views */
.ed-view { margin-right: 4px; }
.ed-view button { height: 30px; padding: 0 10px; }
.ed.view-clean .ed-canvas-box { box-shadow: 0 0 0 2px #E7DCC6, var(--shadow-3); }
.ed.view-orig .ed-canvas-box { box-shadow: 0 0 0 2px var(--info, #3B5BFD), var(--shadow-3); }
.ed-stage { position: relative; }
.ed-viewbadge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none; padding: 5px 12px; border-radius: 999px; font: 600 12px/1.2 var(--font); background: #0A0A0A; color: #E7DCC6; opacity: 0; transition: opacity .2s; }
.ed.view-clean .ed-viewbadge, .ed.view-orig .ed-viewbadge { opacity: .92; }
.ed.view-clean .ed-viewbadge::after { content: 'Ohne Text – so sieht das Grundbild aus'; }
.ed.view-orig .ed-viewbadge::after { content: 'Original aus der Bibliothek (nur ansehen)'; }
html[lang=en] .ed.view-clean .ed-viewbadge::after { content: 'Without text – the clean image'; }
html[lang=en] .ed.view-orig .ed-viewbadge::after { content: 'Original from the library (view only)'; }
.hl-bar { position: absolute; z-index: 5; left: 50%; bottom: 84px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 9px 16px; background: #0A0A0A; color: #E7DCC6; font: 600 13px/1 var(--font); display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--shadow-3); cursor: pointer; animation: popIn .18s var(--ease); }
@keyframes popIn { from { transform: translate(-50%, 6px); opacity: 0 } }

.brand-box { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: linear-gradient(180deg, rgba(231,220,198,.10), transparent 70%); margin-bottom: 14px; }
.brand-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.brand-head .badge { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.brand-tpl { display: grid; gap: 3px; background: #0A0A0A; color: #fff; border-color: #222; }
.brand-tpl:hover { background: #161616; border-color: #444; }
.brand-tpl small { color: rgba(231,220,198,.7); font-size: 11px; }
.lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lay-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 6px; cursor: pointer; display: grid; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--text-2); text-align: left; transition: border-color .15s, transform .15s; }
.lay-btn:hover { border-color: var(--text-3); transform: translateY(-1px); }
.lay-prev { position: relative; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden; background: linear-gradient(160deg, #3b3a36, #121212 70%); display: block; }
.lay-prev b { position: absolute; left: 10%; color: #fff; font: 700 13px/1 Manrope, sans-serif; z-index: 1; }
.lay-prev b em { font-family: Lora, serif; font-style: italic; font-weight: 400; color: #E7DCC6; }
.lay-prev s { position: absolute; left: 10%; width: 28%; height: 3px; border-radius: 2px; background: #E7DCC6; z-index: 1; }
.lay-prev .pl { position: absolute; left: 6%; right: 6%; border-radius: 6px; }
.lay-bottom_glass b { bottom: 18%; } .lay-bottom_glass s { bottom: 30%; } .lay-bottom_glass .pl { bottom: 10%; height: 28%; background: rgba(10,10,10,.45); backdrop-filter: blur(4px); }
.lay-center_big b { top: 44%; left: 0; right: 0; text-align: center; font-size: 16px; } .lay-center_big .pl { display: none; }
.lay-top_label b { top: 20%; } .lay-top_label s { top: 12%; } .lay-top_label .pl { top: 6%; height: 26%; background: rgba(255,255,255,.12); }
.lay-card_champagne b { top: 46%; left: 0; right: 0; text-align: center; color: #0A0A0A; } .lay-card_champagne b em { color: #0A0A0A; } .lay-card_champagne s { top: 38%; left: 36%; background: #0A0A0A; } .lay-card_champagne .pl { top: 32%; height: 30%; background: #E7DCC6; }
.more-styles { margin-top: 6px; } .more-styles summary, .more-colors summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 6px 0; }
.more-colors { margin-top: 6px; }

.prop-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-top: 12px; background: var(--surface-2); }
.prop-card-h { display: flex; gap: 7px; align-items: center; font-size: 12.5px; margin-bottom: 8px; }
.prop-card-h .faint { margin-left: auto; font-size: 11px; }
.hl-words { display: flex; flex-wrap: wrap; gap: 5px; }
.hl-words button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; color: var(--text); transition: all .15s; }
.hl-words button:hover { border-color: var(--text-3); }
.hl-words button.on { background: #0A0A0A; color: #E7DCC6; border-color: #0A0A0A; font-family: Lora, serif; font-style: italic; }
.hl-words .hl-none { color: var(--text-2); display: inline-flex; gap: 4px; align-items: center; }
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.plate-grid button { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 5px; cursor: pointer; display: grid; gap: 4px; font-size: 11px; color: var(--text-2); }
.plate-grid button.on { border-color: var(--text); color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.pv { display: block; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #8a7f6d, #2a2723 60%, #5c5448); position: relative; overflow: hidden; }
.pv::after { content: ''; position: absolute; inset: 7px 9px; border-radius: 4px; }
.pv-milk_dark::after { background: rgba(10,10,10,.45); backdrop-filter: blur(3px); }
.pv-milk_light::after { background: rgba(255,255,255,.28); backdrop-filter: blur(3px); }
.pv-frost::after { background: rgba(255,255,255,.1); backdrop-filter: blur(5px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pv-champagne::after { background: #E7DCC6; }
.pv-night::after { background: rgba(10,10,10,.85); }
.pv-none::after { border: 1.5px dashed rgba(255,255,255,.5); }
.brand-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.brand-colors .bc { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font-size: 12px; }
.brand-colors .bc i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127,127,127,.4); }
.brand-colors .bc.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.save-opt { align-items: flex-start !important; padding-top: 9px !important; padding-bottom: 9px !important; gap: 10px !important; }
.save-opt small { display: block; font-size: 11.5px; color: var(--text-2); font-weight: 400; margin-top: 2px; white-space: normal; line-height: 1.35; }
.save-opt kbd { font-size: 10.5px; }
@media (max-width: 899px) { .ed-view button span { display: none; } .ed-view button { padding: 0 9px; } .hl-bar { bottom: 120px; } }

/* admin brand */
.brand-swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bsw { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 8px; }
.bsw .input { width: 120px; }
.brand-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.brand-font { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.bf-prev { font-size: 22px; padding: 10px 12px; border-radius: 8px; background: #0A0A0A; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-row { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.pop:has(.save-opt) { max-width: 380px; }
@media (max-width: 899px) {
  .pc-tt { padding: 0 6px; min-width: 26px; justify-content: center; }
  .pc-tt .tt-a, .pc-tt .tt-b { font-size: 0; gap: 0; }
  .pc-tt .tt-a .ic, .pc-tt .tt-b .ic { width: 14px; height: 14px; }
}

/* ================================================================ v5 · picker, empty slots, pinned images, tidy props */
/* toast with action (undo) */
.toast .toast-act { margin-left: 6px; border: 0; background: color-mix(in srgb, var(--bg) 18%, transparent); color: inherit; font: inherit; font-weight: 700; height: 26px; padding: 0 10px; border-radius: 7px; cursor: pointer; }
.toast .toast-act:hover { background: color-mix(in srgb, var(--bg) 30%, transparent); }

/* ---- properties panel: calmer type, no ugly wrapping */
.ed-props { font-size: 13px; }
.ed-props h4 { font-size: 10.5px; letter-spacing: .09em; margin: 20px 0 10px; color: var(--text-3); }
.ed-props .btn.sm { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ed-props .btn.block { justify-content: center; }
.ed-props .btn-group button { white-space: nowrap; }
.prop-row > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.prop-row input[type=range] { flex: 1; min-width: 0; }
.prop-note { font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.prop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.prop-btns .btn { justify-content: center; gap: 6px; min-width: 0; padding: 0 8px; }
.prop-btns .btn span { overflow: hidden; text-overflow: ellipsis; }
.prop-btns .btn:only-child { grid-column: 1 / -1; }
.prop-seg { flex: 1; min-width: 0; display: flex; }
.prop-seg button { height: 28px !important; padding: 0 8px !important; font-size: 12.5px !important; gap: 5px !important; min-width: 0; }
.prop-seg button em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .tt-seg.prop-seg button em { display: inline; } .ipick-foot .tt-seg button span { display: inline; } }

/* pin card */
.pin-card { margin-bottom: 10px; }
.pin-toggle { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 11px; padding: 10px 12px; cursor: pointer; color: var(--text); transition: border-color .15s, background .15s; }
.pin-toggle:hover { background: var(--surface-2); }
.pin-toggle .ic { flex: none; margin-top: 1px; }
.pin-toggle span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pin-toggle b { font-size: 13px; font-weight: 650; }
.pin-toggle small { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.pin-card.on .pin-toggle { border-color: color-mix(in srgb, var(--up) 45%, var(--border)); background: color-mix(in srgb, var(--up) 7%, var(--surface)); }
.pin-card.on .pin-toggle .ic { color: var(--up); }

/* slide background card (nothing selected) */
.bg-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 11px; padding: 8px; background: var(--surface-2); }
.bg-card img { width: 46px; height: 58px; object-fit: cover; border-radius: 7px; flex: none; }
.bg-card-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bg-card-b b { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.bg-card-b .btn { padding: 0 8px; }

/* layers: pinned */
.layer .la button.on { color: var(--up); }
.layer .la:has(button.on) { opacity: 1; }

/* library panel in editor */
.media-grid button img { image-rendering: auto; }
.media-grid button .lbl2 { position: absolute; right: 4px; top: 4px; height: 20px; padding: 0 5px; }

/* ---- empty slot on the canvas */
.ed-cuts i.empty { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.018) 14px 28px); }
.slot-cta { pointer-events: auto; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; text-align: center; color: #E7DCC6; cursor: pointer; }
.slot-cta > b { font-size: clamp(12px, 1.6vw, 15px); font-weight: 650; color: #F3EEE3; max-width: 260px; line-height: 1.35; }
.slot-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(231,220,198,.08); border: 1px dashed rgba(231,220,198,.35); color: #E7DCC6; transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.slot-cta:hover .slot-icon { transform: scale(1.08) rotate(-3deg); }
.slot-acts { display: flex; flex-direction: column; gap: 7px; width: min(220px, 86%); }
.slot-acts button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 11px; border: 1px solid rgba(231,220,198,.22); background: rgba(255,255,255,.06); color: #F3EEE3; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); transition: background .15s, transform .15s, border-color .15s; }
.slot-acts button:hover { background: rgba(255,255,255,.12); border-color: rgba(231,220,198,.4); }
.slot-acts button:active { transform: scale(.97); }
.slot-acts button.gk { border: 0; background: var(--accent); background-size: 200% 200%; animation: gkFlow 6s ease infinite; color: var(--accent-text); box-shadow: 0 10px 26px -12px var(--gk-2); }
.slot-job { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.slot-job b { font-size: 14px; color: #fff; }
.slot-job small, .slot-ready small { font-size: 11.5px; opacity: .7; max-width: 220px; }
.slot-job .gk-orb { width: 48px; height: 48px; }
.slot-ready { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; color: var(--accent-text); background: var(--accent); padding: 12px 18px; border-radius: 14px; cursor: pointer; font: inherit; box-shadow: 0 14px 30px -12px var(--gk-2); animation: slotPop .5s cubic-bezier(.2,1.4,.4,1); }
.slot-ready b { font-size: 13.5px; }
@keyframes slotPop { from { transform: scale(.85); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---- page strip: delete + empty */
.ed-page-w { position: relative; flex: none; }
.ed-page-x { position: absolute; top: -5px; right: -5px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--surface); background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; padding: 0; opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s, background .15s; }
.ed-page-w:hover .ed-page-x, .ed-page-w:has(.ed-page.on) .ed-page-x { opacity: 1; transform: none; }
.ed-page-x:hover { background: var(--down); color: #fff; }
@media (hover: none) { .ed-page-x { opacity: 1; transform: none; width: 22px; height: 22px; } }
.ed-page.empty { background: #0A0A0A; border-style: dashed; border-color: rgba(231,220,198,.3); display: grid; place-items: center; color: #E7DCC6; }
.ed-page.empty.on { border-style: solid; border-color: #E7DCC6; }
.ed-page .ep-ic { display: grid; place-items: center; opacity: .75; }
.ed-page img { image-rendering: auto; }

/* ---- image picker modal */
.ipick-modal { max-width: 940px !important; height: min(820px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden !important; }
.ipick-modal .modal-body { flex: 1; min-height: 0; overflow: hidden; padding-bottom: 0; }
.ipick { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.slot-cta, .slot-cta * { font-style: normal; }
.ipick-tile { flex: none; }
.ipick > [data-pbody] { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.ipick-tabs { align-self: flex-start; }
.ipick-tabs button { position: relative; }
.ipick-tabs .ipick-gk.on { background: var(--accent); color: var(--accent-text); }
.ipick-tabs .ipick-gk:not(.on) .ic { color: var(--gk-2); }
.ipick-tabs .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gk-3); box-shadow: 0 0 0 2px var(--surface-3); }
.ipick-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ipick-filters .grow { flex: 1 1 220px; }
.ipick-filters .select { width: auto; max-width: 190px; }
.ipick-toggles { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chk-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; user-select: none; transition: all .15s; }
.chk-chip input { display: none; }
.chk-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.ipick-scroll { flex: 1; min-height: 0; overflow: auto; margin: 0 -22px; padding: 2px 22px 16px; overscroll-behavior: contain; }
.ipick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ipick-tile { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .15s; }
.ipick-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.ipick-tile:hover img { transform: scale(1.035); }
.ipick-tile:active { transform: scale(.98); }
.ipick-tile .lbl { position: absolute; left: 6px; bottom: 6px; }
.ipick-tile .pc-pill.clean, .gk-ref .pc-pill.clean { position: absolute; right: 6px; top: 6px; height: 20px; padding: 0 5px; }
.ipick-check { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s cubic-bezier(.3,1.5,.5,1); }
.ipick-tile.on { outline-color: var(--text); }
.ipick-tile.on .ipick-check, .gk-ref.on .ipick-check { opacity: 1; transform: none; }
.ipick-tile.on img { filter: brightness(.88); }
.ipick-more { display: grid; place-items: center; padding: 18px 0; }
.ipick-more.hidden, .hidden { display: none !important; }
.ipick-foot { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; }
.ipick-modal .modal-foot { padding-top: 12px; border-top: 1px solid var(--border); }
.ipick-sel { width: 36px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.ipick-sel-t { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; max-width: 260px; }
.ipick-foot .tt-seg button { height: 30px; font-size: 12.5px; padding: 0 10px; }
.ipick-drop { flex: 1; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--border-strong); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.ipick-drop:hover, .ipick-drop.over { border-color: var(--text); background: var(--surface-2); }
.ipick-drop.busy { opacity: .6; pointer-events: none; }
.ipick-drop .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); }
/* grok tab */
.gk-form { display: flex; flex-direction: column; gap: 6px; }
.gk-form .textarea { font-size: 14.5px; }
.gk-ideas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.gk-ideas .chip { height: 28px; font-size: 12.5px; }
.gk-refs { display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px 6px; }
.gk-ref { position: relative; flex: none; width: 74px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; opacity: .45; transition: opacity .15s, outline-color .15s; }
.gk-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gk-ref.on { opacity: 1; outline-color: var(--gk-2); }
.gk-ref .ipick-check { background: var(--gk-2); color: #fff; width: 18px; height: 18px; left: 4px; top: 4px; }
.gk-row { align-items: center; gap: 10px; margin-top: 10px; }
.gk-go { border: 0; color: var(--accent-text); background: var(--accent); background-size: 200% 200%; animation: gkFlow 6s ease infinite; height: 40px; padding: 0 18px; font-weight: 700; box-shadow: 0 12px 26px -14px var(--gk-2); }
.gk-go:hover { filter: brightness(1.06); }
.ipick-jobs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.gk-job { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--gk-soft); display: flex; flex-direction: column; gap: 10px; }
.gk-job.run { border-color: color-mix(in srgb, var(--gk-2) 40%, var(--border)); }
.gk-job-h { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.gk-job-h b { flex: 1; min-width: 0; font-weight: 600; }
.gk-job-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gk-v { position: relative; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.gk-v img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.gk-v:hover img { transform: scale(1.04); }
.gk-v span { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: rgba(10,10,10,.72); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.gk-v.used span { background: var(--up); }
@media (max-width: 899px) {
  .ipick-modal { height: calc(100vh - 20px); max-width: 100% !important; }
  .ipick-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ipick-filters .select { flex: 1 1 40%; max-width: none; }
  .ipick-sel-t { display: none; }
  .ipick-tabs { align-self: stretch; }
  .ipick-tabs button { flex: 1; justify-content: center; padding: 0 6px; }
  .slot-acts button { height: 34px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .slot-acts button.gk, .gk-go { animation: none; } }

/* admin brand: grok setup + free font input */
.brand-grok { border: 1px solid color-mix(in srgb, var(--gk-2) 35%, var(--border)); background: var(--gk-soft); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.brand-grok-h { display: flex; gap: 12px; align-items: flex-start; }
.brand-grok-h .gk-orb { width: 40px; height: 40px; border-radius: 13px; flex: none; }
.brand-grok-h b { font-size: 14.5px; }
.brand-grok-h p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.brand-grok .row { gap: 8px; }
.brand-grok .input { flex: 1; }
.brand-grok-st { font-size: 12.5px; display: flex; gap: 8px; align-items: center; color: var(--text-2); }

.prop-ver { margin-bottom: 10px; }
.prop-ver .prop-seg { width: 100%; }
.prop-btns { grid-template-columns: 1fr; }
.ed-props .prop-row > label { width: 92px; font-size: 12px; }
.ipick-jobs { margin-top: 16px; }
.ipick-foot .gk-go { height: 36px; }

/* ================================================================ v6 · polish */
/* canvas slide labels are <i> elements – never italic */
.ed-cuts i { font-style: normal; }
.ed-cuts i > span { font-style: normal; letter-spacing: .02em; }

/* animated Grok bot while painting */
.slot-cta.busy { cursor: default; }
.slot-job { gap: 12px; }
.gk-bot { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.gk-face { position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; color: var(--accent-text); background: var(--accent); background-size: 200% 200%; animation: gkFlow 4s ease infinite, gkBob 2.4s ease-in-out infinite; box-shadow: 0 16px 34px -12px var(--gk-2), inset 0 1px 0 rgba(255,255,255,.35); }
.gk-face .ic { animation: gkBlink 3.6s infinite; }
.gk-ring { position: absolute; inset: 6px; border-radius: 26px; border: 1.5px solid color-mix(in srgb, var(--gk-2) 60%, transparent); animation: gkPulse 2.4s ease-out infinite; }
.gk-ring.r2 { animation-delay: 1.2s; }
.gk-spark { position: absolute; z-index: 3; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px var(--gk-3); animation: gkOrbit 3s linear infinite; }
.gk-spark.s2 { animation-delay: -1s; width: 5px; height: 5px; background: var(--gk-3); }
.gk-spark.s3 { animation-delay: -2s; width: 4px; height: 4px; }
.gk-steps { position: relative; height: 20px; overflow: hidden; display: block; min-width: 220px; }
.gk-steps span { position: absolute; inset: 0; text-align: center; opacity: 0; transform: translateY(100%); animation: gkStep 12s infinite; white-space: nowrap; }
.gk-steps span:nth-child(2) { animation-delay: -9s; } .gk-steps span:nth-child(3) { animation-delay: -6s; } .gk-steps span:nth-child(4) { animation-delay: -3s; }
.slot-job small { font-style: italic; max-width: 240px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gk-bar { display: block; width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 2px; }
.gk-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--gk-grad); animation: gkBar 1.6s ease-in-out infinite; }
@keyframes gkBob { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-5px) rotate(-3deg) } }
@keyframes gkBlink { 0%,92%,100% { transform: scaleY(1) } 95% { transform: scaleY(.15) } }
@keyframes gkPulse { from { transform: scale(.85); opacity: .9 } to { transform: scale(1.45); opacity: 0 } }
@keyframes gkOrbit { from { transform: rotate(0) translateX(44px) rotate(0) } to { transform: rotate(360deg) translateX(44px) rotate(-360deg) } }
@keyframes gkStep { 0% { opacity: 0; transform: translateY(100%) } 2%,23% { opacity: 1; transform: none } 25%,100% { opacity: 0; transform: translateY(-100%) } }
@keyframes gkBar { 0% { transform: translateX(-100%) } 100% { transform: translateX(260%) } }
@media (prefers-reduced-motion: reduce) { .gk-face, .gk-face .ic, .gk-ring, .gk-spark, .gk-bar i { animation: none; } .gk-steps span { animation: none; } .gk-steps span:last-child { opacity: 1; transform: none; } }

/* props: background card never overflows */
.ed-props { overflow-x: hidden; }
.bg-card { align-items: flex-start; }
.bg-card-b { flex: 1; }
.bg-card-b .row { flex-wrap: wrap; }
.bg-card-b .btn { flex: 1 1 auto; justify-content: center; }

/* suggestion chips: wrap instead of hidden horizontal scroll */
.gk-sugg.compact { flex-wrap: wrap; overflow: visible; }

/* library card: clear text / no-text switch */
.pc-ttsw { position: relative; flex: 0 1 auto; min-width: 0; display: inline-flex; padding: 2px; border: 0; border-radius: 999px; background: rgba(10,10,10,.62); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px); cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); }
.pc-ttsw span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; transition: color .25s; white-space: nowrap; }
.pc-ttsw em { font-style: normal; }
.pc-ttsw .tt-th { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 2px; width: var(--w1, 50%); border-radius: 999px; background: #fff; transition: transform .32s cubic-bezier(.3,1.3,.5,1), width .32s, background .25s; }
.pc-ttsw .tt-on { color: #0A0A0A; }
.pc.show-base .pc-ttsw .tt-on { color: rgba(255,255,255,.7); }
.pc.show-base .pc-ttsw .tt-off { color: #0A0A0A; }
.pc.show-base .pc-ttsw .tt-th { background: #E7DCC6; }
.pc-ttsw:hover span { color: #fff; }
.pc-ttsw:hover .tt-on, .pc.show-base .pc-ttsw:hover .tt-off { color: #0A0A0A; }
.pc-ttsw:active { transform: scale(.96); }
@media (max-width: 899px) { .pc-ttsw em { display: none; } .pc-ttsw span { padding: 0 7px; } }

/* editor: studio nav button instead of vanishing navigation */
.ed-home { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.ed-home:hover { background: var(--surface-3); border-color: var(--border-strong); }
.ed-home .ed-home-c { color: var(--text-3); }
.ed-back { margin-left: -4px; }
@media (max-width: 900px) { .ed-home { height: 34px; padding: 0 6px; } .ed-home .ed-home-c { display: none; } }
.pc-ttsw { display: inline-grid; grid-template-columns: 1fr 1fr; }
.pc-ttsw span { justify-content: center; }
.pc-ttsw .tt-th { width: calc(50% - 2px); }
.pc.show-base .pc-ttsw .tt-th { transform: translateX(100%); }

/* ================================================================ v7 · example images + style library */
/* empty slot on a LIGHT slide: dark ink */
.ed-cuts i.empty.light { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.025) 14px 28px); }
.ed-cuts i.light .slot-cta { color: #3a3630; }
.ed-cuts i.light .slot-cta > b { color: #1a1814; }
.ed-cuts i.light .slot-icon { background: rgba(10,10,10,.05); border-color: rgba(10,10,10,.25); color: #3a3630; }
.ed-cuts i.light .slot-acts button:not(.gk) { background: #fff; color: #1a1814; border-color: rgba(10,10,10,.16); box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); backdrop-filter: none; }
.ed-cuts i.light .slot-acts button:not(.gk):hover { background: #f4f1ea; border-color: rgba(10,10,10,.3); }
.ed-cuts i.light .slot-job b { color: #1a1814; }
.ed-cuts i.light .slot-job small { color: #3a3630; opacity: .8; }
.ed-cuts i.light .gk-bar { background: rgba(0,0,0,.08); }

/* attach button + tray */
.ref-add { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px dashed var(--border-strong); background: none; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; flex: none; }
.ref-add:hover { color: var(--text); border-color: var(--text-3); background: var(--surface-2); }
.ref-add.on { border-style: solid; color: var(--text); background: var(--surface-2); }
.composer .ref-add span { display: none; }
@media (min-width: 1200px) { .composer .ref-add span { display: inline; } }
.ref-tray { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 10px 0; }
.ref-chip { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); animation: popIn .2s var(--ease); }
.ref-chip img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.ref-chip.busy img { opacity: .45; filter: blur(1px); }
.ref-chip .spin { position: absolute; left: 50%; top: 50%; margin: -7px; color: var(--text); }
.ref-chip button { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(10,10,10,.75); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ref-hint { font-size: 11.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.composer.ref-over, .gk-wishbox.ref-over { outline: 2px dashed var(--gk-2); outline-offset: 2px; background: var(--gk-soft); }
.ref-tip { font-size: 11.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; margin-top: -4px; }
/* thumbs in notes / tasks */
.ref-thumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ref-thumb { width: 54px; height: 54px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ref-thumb:hover img { transform: scale(1.06); }
.ref-lbl { font-size: 11px; color: var(--text-3); display: inline-flex; gap: 4px; align-items: center; }
.gk-instr .ref-thumbs { margin-top: 8px; }
/* picker wish box */
.gk-wishbox { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.gk-wishbox:focus-within { border-color: var(--gk-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gk-2) 16%, transparent); }
.gk-wishbox .textarea { border: 0; box-shadow: none !important; background: none; resize: vertical; }
.gk-wishbar { display: flex; gap: 10px; align-items: center; padding: 0 10px 10px; font-size: 12px; }
.gk-wishbar .ref-add span { display: inline; }

/* "Merken" chip on Grok images */
.gk-learn { position: absolute; z-index: 3; right: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(10,10,10,.68); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transform: translateY(-3px); transition: all .18s var(--ease); }
.gk-learn em { font-style: normal; }
.gk-var:hover .gk-learn, .gk-v:hover .gk-learn, .gk-learn.on, .gk-learn:focus-visible { opacity: 1; transform: none; }
.gk-learn:hover { background: var(--gk-grad); }
.gk-learn.on { background: var(--gk-grad); box-shadow: 0 4px 14px -6px var(--gk-2); }
@media (hover: none) { .gk-learn { opacity: 1; transform: none; } }
.gk-v .gk-learn { left: auto; right: 6px; bottom: auto; top: 6px; width: auto; height: 22px; }
.cmp-learn.on { background: var(--accent); color: var(--accent-text); border-color: transparent; }

/* learn dialog */
.learn { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; align-items: start; min-width: 0; }
.learn-b { min-width: 0; }
.learn-img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 4/5; background: var(--surface-2); box-shadow: var(--shadow-2); }
.learn-likes { display: flex; flex-wrap: wrap; gap: 6px; }
.learn-likes .chip.on { background: var(--accent); border-color: transparent; color: var(--accent-text); }
.learn-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.learn-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); font: inherit; transition: border-color .15s, background .15s; }
.learn-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.learn-opt b { font-size: 13px; }
.learn-opt small { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-opt.on { border-color: var(--gk-2); background: var(--gk-soft); }
.learn-opt.on .ic { color: var(--gk-2); }
@media (max-width: 640px) { .learn { grid-template-columns: 1fr; } .learn-img { max-height: 240px; aspect-ratio: auto; } .learn-scope { grid-template-columns: 1fr; } }

/* admin style library */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.style-it { position: relative; margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.style-it img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.style-it figcaption { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.style-it .style-likes { color: var(--text-2); }
.style-it em { color: var(--text-3); font-size: 11.5px; }
.style-it [data-sdel] { position: absolute; top: 6px; right: 6px; background: rgba(10,10,10,.6); color: #fff; }

.modal:has(.learn) { max-width: 680px; }
.modal:has(.learn) .modal-foot { align-items: center; }
/* review composer: narrow card – show icons only, keep everything visible */
.review-side .composer-bar, aside.card .composer-bar { flex-wrap: wrap; }
aside.card .composer .kind-sw button span { display: none; }
aside.card .composer .kind-sw button.on span { display: inline; }
aside.card .composer .ref-add span { display: inline; }
aside.card .ref-tip { margin: 0; padding: 0 10px 8px; }
/* editor media panel: two clear jobs */
.media-step { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.media-step > b { font-size: 13.5px; }
.media-step > p { margin: -4px 0 2px; font-size: 12.5px; line-height: 1.45; }
.media-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.media-acts .gk-go { grid-column: 1 / -1; height: 36px; }
.media-acts .btn { justify-content: center; }
.media-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-acts .btn { min-width: 0; padding: 0 8px; overflow: hidden; }
.media-step .bg-card { padding: 6px; }
.media-step .bg-card img { width: 38px; height: 48px; }

/* card bottom bar: Mit/Ohne-Text switch left, like/dislike right – one flex row, never overlapping */
.pc-media { container-type: inline-size; container-name: pcm; }
.pc-bar { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; pointer-events: none; }
.pc-bar > * { pointer-events: auto; }
.pc-bar .pc-quick { margin-left: auto; }
.pc-media:has(.pc-dots) .pc-bar { bottom: 20px; }
.pc-dots { bottom: 7px; }
@container pcm (max-width: 290px) { .pc-ttsw em { display: none; } .pc-ttsw span { padding: 0 7px; } }
@container pcm (max-width: 150px) { .pc-quick button { width: 28px; height: 28px; } .pc-quick { gap: 4px; } }

/* campaign overview card: whole card is a link, ⋯ menu on top */
.cmp-card { position: relative; }
.cmp-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cmp-link:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.cmp-more { position: absolute; z-index: 2; top: 8px; right: 8px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border); opacity: .0; transition: opacity .15s, background .15s; }
.cmp-card:hover .cmp-more, .cmp-more:focus-visible, .cmp-more[data-pop-anchor] { opacity: 1; }
.cmp-more:hover { background: var(--surface-2); }
@media (hover: none), (max-width: 899px) { .cmp-more { opacity: 1; } }
.cmp-arch-badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.cmp-card.archived { opacity: .72; }
.cmp-card.archived .cmp-covers { filter: grayscale(.7); }
.cmp-arch { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.cmp-arch > .btn { align-self: flex-start; color: var(--text-2); }
.cmp-del ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cmp-del li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); }
.cmp-del li svg { flex: none; margin-top: 2px; color: var(--up); }
.cmp-del li.bad svg { color: var(--down); }

/* image picker footer on phones: row 1 = hint or selection, row 2 = Mit/Ohne Text + Verwenden */
@media (max-width: 599px) {
  .ipick-foot { flex-wrap: wrap; row-gap: 10px; column-gap: 10px; }
  .ipick-foot > .spacer { display: none; }
  .ipick-foot > .faint:first-child { flex: 1 0 100%; font-size: 12.5px !important; }
  .ipick-foot .ipick-sel, .ipick-foot .ipick-sel-t { display: none; }
  .ipick-foot .tt-seg { flex: 1 1 0; min-width: 0; }
  .ipick-foot .tt-seg button { flex: 1; padding: 0 6px; white-space: nowrap; }
  .ipick-foot [data-use] { flex: none; }
}

/* ================================================================ realtime collaboration (editor) */
.ed-status { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.co-bar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.co-bar:empty { display: none; }
.co-peers { display: flex; align-items: center; }
.co-peer { border: 0; padding: 0; background: none; cursor: pointer; margin-left: -6px; border-radius: 50%; transition: transform .15s var(--ease); }
.co-peer:first-child { margin-left: 0; }
.co-peer:hover { transform: translateY(-2px); z-index: 2; }
.co-peer.following .co-av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.co-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 750; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--surface); animation: coPop .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes coPop { from { transform: scale(.4); opacity: 0 } to { transform: none; opacity: 1 } }
.co-more { margin-left: 4px; font-size: 12px; color: var(--text-3); font-weight: 650; }
.co-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.co-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.co-state.live i { background: #30A46C; box-shadow: 0 0 0 0 rgba(48,164,108,.55); animation: coPulse 2.2s infinite; }
.co-state.wait i { background: #FFB224; }
.co-state.off i { background: #E5484D; }
.co-state.off { color: #E5484D; }
@keyframes coPulse { 0% { box-shadow: 0 0 0 0 rgba(48,164,108,.5) } 70% { box-shadow: 0 0 0 7px rgba(48,164,108,0) } 100% { box-shadow: 0 0 0 0 rgba(48,164,108,0) } }
@media (max-width: 1180px) { .co-state span { display: none; } .ed-status { max-width: 160px; } }
@media (max-width: 899px) { .co-av { width: 26px; height: 26px; font-size: 10.5px; } .co-peers .co-peer:nth-child(n+4) { display: none; } .ed-status { display: none; } }

.co-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.co-sel { position: absolute; border: 2px solid var(--c); border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 22px -6px var(--c); transition: left .09s linear, top .09s linear, width .09s linear, height .09s linear; }
.co-sel.typing { border-style: dashed; animation: coType 1.2s ease-in-out infinite; }
@keyframes coType { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 30px -2px var(--c) } }
.co-tag { position: absolute; left: -2px; top: -22px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px 5px 5px 0; white-space: nowrap; line-height: 16px; }
.co-tag em { font-style: normal; font-weight: 500; opacity: .9; }
.co-cursor { position: absolute; left: 0; top: 0; transition: transform .08s linear, opacity .4s; will-change: transform; }
.co-cursor svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.co-cursor span { position: absolute; left: 14px; top: 15px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 0 6px 6px 6px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.co-cursor.idle { opacity: .25; }
@media (hover: none) { .co-cursor { display: none; } }
.co-dots { position: absolute; top: 3px; right: 3px; display: flex; gap: 2px; }
.co-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--surface); }
.ed-page { position: relative; }
.co-follow { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--surface); border: 2px solid var(--c); box-shadow: var(--shadow-2); font-size: 13px; font-weight: 600; }
.co-follow .co-av { width: 24px; height: 24px; font-size: 10px; box-shadow: none; }
.co-follow button { border: 0; background: var(--surface-2); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; color: var(--text-2); font-size: 15px; line-height: 1; }

/* library / viewer: somebody is editing this set */
.pc-live { position: absolute; z-index: 3; top: 44px; left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(10,10,10,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 11.5px; font-weight: 650; max-width: calc(100% - 16px); }
.pc-live .co-av { width: 20px; height: 20px; font-size: 9px; box-shadow: 0 0 0 1.5px rgba(10,10,10,.7); animation: none; }
.pc-live .co-av + .co-av { margin-left: -9px; }
.pc-live span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #30A46C; margin-left: 5px; animation: coPulse 2.2s infinite; flex: none; order: -1; }
.v-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; background: color-mix(in srgb, #30A46C 12%, var(--surface-2)); font-size: 13px; }
.v-live .co-av { width: 22px; height: 22px; font-size: 9.5px; animation: none; }
.v-live .co-av + .co-av { margin-left: -9px; }

/* ================================================================ review threads (comments · @mentions · approvals · suggestions) */
.ed-side { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--border); }
.ed-side .ed-props { flex: 1; min-height: 0; border-left: 0; }
.ed-side-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--border); flex: none; }
.ed-side-tabs.hidden { display: none; }
.ed-side-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; background: none; color: var(--text-3); font-size: 12.5px; font-weight: 650; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.ed-side-tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.ed-side-tabs i { font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; font-size: 11px; display: none; place-items: center; background: var(--surface-3); color: var(--text-2); }
.ed-side-tabs i.on { display: inline-grid; }
.ed-side-tabs i.mine { background: #F76B15; color: #fff; }
.ed-threads { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ed-threads.hidden, .ed-props.hidden { display: none !important; }

.th-panel { font-size: 13px; overflow: auto; overscroll-behavior: contain; }
.th-head { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.th-sum { min-height: 22px; display: flex; align-items: center; font-size: 12.5px; }
.th-filter { width: 100%; }
.th-filter button { flex: 1; font-size: 12px; }
.th-filter i { font-style: normal; opacity: .6; margin-left: 2px; }
.th-filter i.hl { opacity: 1; background: #F76B15; color: #fff; border-radius: 8px; padding: 0 5px; }
.th-new { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.th-anchor { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); min-width: 0; }
.th-anchor span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-mode { width: 100%; }
.th-mode button { flex: 1; font-size: 12px; gap: 4px; }
.th-new-bar { display: flex; align-items: center; gap: 6px; }
.th-kbd { font-size: 11px; }
.gk-mini { color: #8E4EC6; }
.mbox { position: relative; }
.mbox textarea, .th-sug-in { width: 100%; resize: vertical; min-height: 54px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); padding: 8px 10px; font: inherit; font-size: 13px; line-height: 1.45; outline: none; }
.mbox textarea:focus, .th-sug-in:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.th-sug-in { border-color: color-mix(in srgb, #30A46C 50%, var(--border)); background: color-mix(in srgb, #30A46C 6%, var(--surface)); }
.mbox-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-3); padding: 4px; max-height: 240px; overflow: auto; }
.mbox-list.hidden { display: none; }
.mbox-opt { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer; text-align: left; color: var(--text); }
.mbox-opt.on, .mbox-opt:hover { background: var(--surface-2); }
.mbox-opt span { display: flex; flex-direction: column; line-height: 1.2; }
.mbox-opt small { color: var(--text-3); font-size: 11px; }
.th-av { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c, #3E63DD); color: #fff; font-size: 10px; font-weight: 750; }
.th-av.xs { width: 18px; height: 18px; font-size: 8px; }
.th-av.bot { background: linear-gradient(135deg, #8E4EC6, #3E63DD); }
.th-at { color: #3E63DD; font-weight: 650; }
[data-theme=dark] .th-at, .dark .th-at { color: #8DA4EF; }

.th-list { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.th-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 10px; color: var(--text-3); text-align: center; font-size: 12.5px; }
.th-card { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px 11px; cursor: pointer; color: var(--text); transition: border-color .15s, background .15s, transform .15s var(--ease); border-left: 3px solid var(--sc, var(--border)); }
.th-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.th-card-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; min-width: 0; }
.th-card-top .th-av { width: 22px; height: 22px; font-size: 9px; }
.th-slide { font-size: 11px; color: var(--text-3); font-weight: 600; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
.th-quote { font-size: 12px; color: var(--text-2); font-style: italic; border-left: 2px solid var(--border-strong); padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-snip { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-card-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.th-card-foot span { display: inline-flex; align-items: center; gap: 3px; }
.th-wait .th-av + .th-av { margin-left: -6px; }
.th-st { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.st-waiting { --sc: #FFB224; } .th-st.st-waiting { background: color-mix(in srgb, #FFB224 18%, transparent); color: #AD5700; }
.st-changes { --sc: #E5484D; } .th-st.st-changes { background: color-mix(in srgb, #E5484D 15%, transparent); color: #CD2B31; }
.st-approved { --sc: #30A46C; } .th-st.st-approved { background: color-mix(in srgb, #30A46C 15%, transparent); color: #18794E; }
.st-suggestion { --sc: #8E4EC6; } .th-st.st-suggestion { background: color-mix(in srgb, #8E4EC6 15%, transparent); color: #793AAF; }
.st-resolved { --sc: var(--border); } .th-card.st-resolved { opacity: .7; }
.st-open { --sc: #3E63DD; }

.th-dhead { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.th-anchorq { display: flex; gap: 8px; align-items: flex-start; margin: 10px 12px 0; padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; text-align: left; cursor: pointer; font-style: italic; }
.th-anchorq svg { flex: none; margin-top: 2px; }
.th-warn { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #FFB224 14%, var(--surface)); color: #AD5700; font-size: 12px; }
.th-warn span { flex: 1; }
.th-reqs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.th-req { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--surface-2); font-size: 11.5px; border: 1px solid var(--border); }
.th-req.st-approved { border-color: color-mix(in srgb, #30A46C 50%, transparent); color: #18794E; }
.th-req.st-changes { border-color: color-mix(in srgb, #E5484D 50%, transparent); color: #CD2B31; }
.th-req.st-pending { color: #AD5700; }
.th-msgs { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.th-msg { display: flex; gap: 9px; }
.th-mh { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; }
.th-mh .faint { font-size: 11px; }
.th-x { margin-left: auto; border: 0; background: none; color: var(--text-3); cursor: pointer; opacity: 0; padding: 2px; border-radius: 4px; }
.th-msg:hover .th-x { opacity: 1; }
.th-mb { margin-top: 3px; line-height: 1.5; font-size: 13px; word-break: break-word; }
.th-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); }
.th-tag.ok { background: color-mix(in srgb, #30A46C 15%, transparent); color: #18794E; }
.th-tag.bad { background: color-mix(in srgb, #E5484D 15%, transparent); color: #CD2B31; }
.th-tag.sug { background: color-mix(in srgb, #8E4EC6 15%, transparent); color: #793AAF; }
.th-msg.bot .th-mb { color: var(--text-2); }
.th-sug { margin-top: 6px; border: 1px solid color-mix(in srgb, #8E4EC6 35%, var(--border)); border-radius: 10px; overflow: hidden; }
.th-sug-diff { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.4; }
.th-sug-diff s { color: var(--text-3); text-decoration-color: #E5484D; }
.th-sug-diff ins { text-decoration: none; background: color-mix(in srgb, #30A46C 16%, transparent); color: var(--text); padding: 1px 4px; border-radius: 4px; font-weight: 600; }
.th-sug-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: var(--surface-2); border-top: 1px solid var(--border); }
.th-sug-acts .btn, .th-new-bar .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; flex: none; }
.th-new-bar { flex-wrap: wrap; row-gap: 6px; }
.th-msg > .grow { min-width: 0; flex: 1; }
.th-sug { max-width: 100%; }
.ed-side { min-width: 0; overflow: hidden; }
.th-sug-acts [data-prev].on { background: var(--surface-3); }
.th-sug-res { padding: 6px 10px; font-size: 11.5px; color: var(--text-3); background: var(--surface-2); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 5px; }
.th-sug.st-rejected .th-sug-diff ins { background: none; text-decoration: line-through; color: var(--text-3); font-weight: 400; }
.th-sys { font-size: 11.5px; color: var(--text-3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }
.th-decide { display: flex; align-items: center; gap: 6px; margin: 0 12px 10px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, #FFB224 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, #FFB224 35%, transparent); }
.th-decide span { flex: 1; font-size: 12.5px; font-weight: 650; }
.btn.ok { background: #30A46C; border-color: #30A46C; color: #fff; }
.btn.ok:hover { background: #2B9A66; }
.th-reply { padding: 10px 12px 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; background: var(--surface); }

/* markers on the canvas */
.th-marks { position: absolute; inset: 0; pointer-events: none; }
.th-mark { pointer-events: auto; position: absolute; transform: translate(-40%, -60%); display: inline-flex; align-items: center; gap: 3px; height: 24px; min-width: 24px; padding: 0 6px; border-radius: 12px 12px 12px 3px; border: 2px solid #fff; background: var(--sc, #3E63DD); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); cursor: pointer; font-size: 11px; font-weight: 750; transition: transform .15s var(--ease); }
.th-mark:hover, .th-mark.on { transform: translate(-40%, -60%) scale(1.15); }
.th-mark.st-waiting { --sc: #F59E0B; } .th-mark.st-changes { --sc: #E5484D; } .th-mark.st-approved { --sc: #30A46C; } .th-mark.st-suggestion { --sc: #8E4EC6; }
.th-focus { position: absolute; border: 2px dashed #3E63DD; border-radius: 6px; box-shadow: 0 0 0 4000px rgba(0,0,0,.12); pointer-events: none; animation: thFocus .35s var(--ease); }
@keyframes thFocus { from { opacity: 0; transform: scale(1.04) } }

/* summary pills (library cards, board, viewer) */
.rv-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.rv-pill.wait { background: color-mix(in srgb, #FFB224 18%, transparent); color: #AD5700; }
.rv-pill.bad { background: color-mix(in srgb, #E5484D 15%, transparent); color: #CD2B31; }
.rv-pill.ok { background: color-mix(in srgb, #30A46C 15%, transparent); color: #18794E; }
.pc-rv { position: absolute; z-index: 3; right: 8px; top: 44px; }
.pc-rv .rv-pill { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(10,10,10,.72); color: #fff; }
.pc-rv .rv-pill.wait svg { color: #FFB224; } .pc-rv .rv-pill.bad svg { color: #FF6369; } .pc-rv .rv-pill.ok svg { color: #3DD68C; }
.ic-rv { margin-top: 6px; }

@media (max-width: 899px) {
  .ed-side { order: 2; border: 0; display: contents; }
  .ed-side-tabs { position: fixed; z-index: 57; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 64px); padding: 0; border: 0; background: none; }
  .ed-side-tabs button[data-stab=props] { display: none; }
  .ed-side-tabs button[data-stab=threads] { width: 44px; height: 44px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--border); flex: none; }
  .ed-side-tabs button[data-stab=threads] span { display: none; }
  .ed-side-tabs button[data-stab=threads] i { position: absolute; top: -4px; right: -4px; }
  .ed-side-tabs button[data-stab=threads].on { background: var(--text); color: var(--bg); }
  .ed.side-threads .ed-threads { display: flex !important; order: 2; flex: none; max-height: 62dvh; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; margin-top: -14px; position: relative; z-index: 5; background: var(--surface); box-shadow: 0 -10px 30px -14px rgba(0,0,0,.28); animation: sheetIn .28s cubic-bezier(.22,.8,.25,1); }
  .ed.side-threads .ed-props { display: none !important; }
  .ed.side-threads .ed-bottom { display: none; }
  .ed.side-threads .ed-side-tabs { bottom: calc(62dvh + 10px); }
}

/* viewer: comments tab */
.viewer-side .side-threads { padding: 0; display: flex; flex-direction: column; }
.viewer-side .side-threads .th-panel { flex: 1; min-height: 0; }
.viewer-side .th-head { top: 0; }
.viewer-side .tabs button [data-vth-n]:empty { display: none; }
@media (max-width: 899px) { .viewer-side .side-threads .th-panel { overflow: visible; } }
.ready-rv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); }
.ready-rv span:not(.rv-pill) { flex: 1; min-width: 120px; font-weight: 600; }
.ready-rv.warn { background: color-mix(in srgb, #FFB224 10%, var(--surface)); border-color: color-mix(in srgb, #FFB224 35%, transparent); }
.ready-rv.bad { background: color-mix(in srgb, #E5484D 8%, var(--surface)); border-color: color-mix(in srgb, #E5484D 35%, transparent); color: #CD2B31; }
.ready-rv.ok { background: color-mix(in srgb, #30A46C 8%, var(--surface)); border-color: color-mix(in srgb, #30A46C 30%, transparent); }
.ic-rv .rv-pill { font-size: 11px; }
.ntf-rv { margin: 6px 8px 2px; border: 1px solid color-mix(in srgb, #FFB224 40%, var(--border)); background: color-mix(in srgb, #FFB224 8%, var(--surface)); border-radius: 12px; padding: 6px; }
.ntf-rv-h { display: flex; align-items: center; gap: 6px; padding: 2px 6px 6px; font-size: 12.5px; color: #AD5700; }
.ntf-rv-i { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 12.5px; }
.ntf-rv-i:hover { background: var(--surface-2); }
.ntf-rv-i .grow { min-width: 0; display: flex; flex-direction: column; }
.ntf-rv-i small { color: var(--text-3); font-size: 11px; }
.viewer-side .tabs { padding: 0 8px; gap: 0; overflow-x: auto; scrollbar-width: none; }
.viewer-side .tabs::-webkit-scrollbar { display: none; }
.viewer-side .tabs button { padding: 11px 7px; margin: 0 1px; font-size: 13.5px; white-space: nowrap; flex: none; gap: 5px; }

@media (min-width: 900px) and (max-width: 1499px) { .viewer-side .tabs .v-tab-lbl { display: none; } }
@media (max-width: 899px) { .ed.side-threads .th-dhead, .ed.side-threads .th-head { padding-right: 62px; } }

/* ================================================================ feedback inbox */
.ib-list { display: flex; flex-direction: column; gap: 10px; }
.ib-card { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s, opacity .26s, transform .26s var(--ease); }
.ib-card.sel { border-color: var(--border-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 6%, transparent); }
.ib-card.busy { opacity: .6; pointer-events: none; }
.ib-card.out-ok { opacity: 0; transform: translateX(40px); }
.ib-card.out-bad { opacity: 0; transform: translateX(-40px); }
.ib-media { position: relative; flex: none; width: 118px; aspect-ratio: var(--r, .8); border-radius: 10px; overflow: hidden; background: var(--surface-3); align-self: flex-start; }
.ib-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ib-media .th-slide { position: absolute; left: 6px; bottom: 6px; background: rgba(10,10,10,.72); color: #fff; }
.ib-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ib-top { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.ib-text { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; border-left: 3px solid #FFB224; padding: 2px 0 2px 10px; word-break: break-word; }
.ib-text.slide { font-size: 13.5px; font-weight: 500; color: var(--text-2); border-left-color: var(--border-strong); display: flex; align-items: center; gap: 6px; }
.ib-ask { font-size: 13px; color: var(--text-2); line-height: 1.45; background: var(--surface-2); border-radius: 10px; padding: 7px 10px; }
.ib-meta { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.ib-meta:empty { display: none; }
.ib-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.ib-reqs { display: flex; flex-wrap: wrap; gap: 4px; }
.ib-chg { border-top: 1px dashed var(--border); padding-top: 8px; }
.ib-keys { font-size: 12px; text-align: center; margin-top: 18px; }
@media (max-width: 640px) {
  .ib-card { padding: 10px; gap: 10px; }
  .ib-media { width: 76px; }
  .ib-text { font-size: 14.5px; }
  .ib-acts .btn { flex: 1; justify-content: center; }
  .ib-acts .spacer { display: none; }
}
.ib-ago { font-size: 12px; white-space: nowrap; }
.ib-top b { white-space: nowrap; }
.ib-meta .truncate { min-width: 0; }
@media (max-width: 640px) { .ib-asks { display: none; } .ib-acts [data-open] { flex: 0 0 auto; } }

/* beginner-friendly composer */
.th-explain { font-size: 12px; line-height: 1.45; color: var(--text-2); }
.th-tip { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.th-tip svg { flex: none; margin-top: 1px; }
.th-lbl { font-size: 11.5px; font-weight: 650; color: var(--text-2); margin-bottom: -4px; }
.th-who { display: flex; flex-direction: column; gap: 8px; }
.th-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.th-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.th-chip:hover { border-color: var(--border-strong); }
.th-chip.on { background: color-mix(in srgb, #3E63DD 16%, var(--surface)); border-color: #3E63DD; }
.th-mode.three button { padding-left: 4px; padding-right: 4px; }
.th-mode button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-review { margin-top: 8px; width: 100%; justify-content: center; }
.th-mode, .th-filter { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
.th-mode button, .th-filter button { min-width: 0; padding: 5px 4px; white-space: normal; line-height: 1.2; text-align: center; justify-content: center; flex-wrap: wrap; row-gap: 2px; font-size: 11.5px; height: auto; min-height: 30px; }
.th-mode button span { white-space: normal; overflow: visible; }
.seg.th-mode button span { display: inline !important; }
.cmp-sum { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.cmp-sum .hl { color: #8E4EC6; } .cmp-sum .bad { color: #E5484D; }
/* note kinds: always show the label (icons alone are unclear) */
.kind-sw button span, aside.card .composer .kind-sw button span { display: inline !important; }
.composer-bar .kind-sw { flex-wrap: wrap; }
/* library: on phones show the main filters first, the rest behind "Mehr Filter" */
.f-toggle { display: none; }
@media (max-width: 899px) {
  #lib-filters .f-more { display: none; }
  #lib-filters.show-all .f-more { display: block; }
  .f-toggle { display: inline-flex; }
}
/* password: show/hide eye + forgot hint */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; padding-right: 42px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--text-3); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover, .pw-eye.on { color: var(--text); background: var(--surface-2); }
.forgot { font-size: 13px; color: var(--text-2); text-align: center; }
.forgot summary { cursor: pointer; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot p { margin: 8px 0 0; line-height: 1.5; text-align: left; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
/* comments panel: never wider than its column */
.ed-side, .ed-threads, .th-panel { min-width: 0; max-width: 100%; }
.th-panel { overflow-x: hidden; }
.th-dhead { gap: 4px; padding: 8px; flex-wrap: nowrap; min-width: 0; }
.th-dhead .th-st, .th-dhead .th-slide { white-space: nowrap; flex: none; }
.th-dhead .th-resolve { flex: none; padding: 0 8px; white-space: nowrap; }
.th-anchorq, .th-msgs, .th-reply, .th-warn, .th-reqs, .th-decide { min-width: 0; max-width: 100%; box-sizing: border-box; }
.th-anchorq span { min-width: 0; overflow-wrap: anywhere; }
.th-mb, .th-quote, .th-snip { overflow-wrap: anywhere; }
.ed-side-tabs { min-width: 0; overflow: hidden; }
.ed-side-tabs button { min-width: 0; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-side-tabs button span { overflow: hidden; text-overflow: ellipsis; }
.th-reply .th-new-bar .btn, .th-new .th-new-bar .btn { flex: 0 1 auto; min-width: 0; }
/* narrow side column (laptops): compact tabs + stacked warning */
@media (min-width: 900px) and (max-width: 1280px) {
  .ed-side-tabs button { font-size: 12px; gap: 4px; }
  .ed-side-tabs button .ic { display: none; }
}
.th-warn { flex-wrap: wrap; }
.th-warn span { flex: 1 1 140px; min-width: 0; }
.th-warn .btn { flex: 1 0 auto; justify-content: center; }

/* version lock (Freigabe zum Posten) */
.tip.lock { background: var(--up-bg); color: var(--up); }
.ic-pill.warn { background: var(--warn-bg); color: var(--warn); }

/* installable app + push */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 0 0 1px var(--border); transform: translateY(140%); transition: transform .3s var(--ease); }
.pwa-banner.in { transform: none; }
.pwa-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.pwa-banner b { display: block; font-size: 14px; }
.pwa-banner span { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.pwa-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.pwa-row.ok { background: var(--up-bg); }
.pwa-row b { display: block; font-size: 14px; }
.pwa-row span { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.pwa-row .grow { min-width: 180px; }
.pwa-cats { display: grid; gap: 4px; }
.pwa-cat { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pwa-cat:last-child { border-bottom: 0; }
.pwa-cat b { display: block; font-size: 13.5px; font-weight: 600; }
.pwa-cat span.grow > span { display: block; font-size: 12px; color: var(--text-3); }
.pwa-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.pwa-devs summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.pwa-dev { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pwa-dev em { color: var(--up); font-style: normal; font-weight: 600; }
.pwa-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.pwa-key { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 5px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); vertical-align: middle; font-weight: 700; }
/* app mode: respect notch / home indicator */
@media (display-mode: standalone) {
  .mobile-bar { padding-top: env(safe-area-inset-top); }
  .sidebar { padding-top: max(14px, env(safe-area-inset-top)); }
  #view { padding-bottom: env(safe-area-inset-bottom); }
}
.ntf-push { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-decoration: none; }
.ntf-push b { display: block; font-size: 13px; }
.ntf-push small { display: block; font-size: 12px; color: var(--text-3); }

/* ============ beginner feedback box (review + viewer) ============ */
.composer.fbc { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-radius: 16px; }
.fbc-head { display: flex; align-items: baseline; gap: 8px; }
.fbc-head b { font-size: 16px; letter-spacing: -.01em; }
.fbc-head span { font-size: 12.5px; color: var(--text-3); margin-left: auto; }
.fbc-step { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: -4px; }
.fbc-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fbc-kind { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 58px; padding: 9px 11px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.fbc-kind:hover { border-color: var(--text-3); }
.fbc-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.fbc-kt { min-width: 0; display: flex; flex-direction: column; }
.fbc-kt b { font-size: 14px; font-weight: 650; line-height: 1.2; }
.fbc-kt small { font-size: 12px; color: var(--text-3); line-height: 1.3; margin-top: 2px; }
.fbc-kind.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; background: var(--surface-2); }
.fbc-kind.on .fbc-ic { background: var(--text); color: var(--bg); }
.fbc-kind.k-recommendation.on .fbc-ic { background: var(--warn); color: #fff; }
.fbc-kind.k-todo.on .fbc-ic { background: var(--info, #3E63DD); color: #fff; }
.fbc-kind.k-grok .fbc-ic { color: var(--gk-2); background: var(--gk-soft); }
.fbc-kind.k-grok.on { border-color: var(--gk-2); box-shadow: 0 0 0 1px var(--gk-2) inset; background: var(--gk-soft); }
.fbc-kind.k-grok.on .fbc-ic { background: var(--accent); color: var(--accent-text); }
.composer.fbc textarea.fbc-text { font-size: 16px; line-height: 1.5; min-height: 96px; max-height: 260px; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--bg); resize: none; }
.composer.fbc textarea.fbc-text:focus { border-color: var(--text-3); }
.composer.fbc.is-grok textarea.fbc-text:focus { border-color: var(--gk-2); }
.composer.fbc:focus-within { box-shadow: none; }
.fbc-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.fbc-opt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.fbc-seg button { height: 30px; font-size: 13px; padding: 0 12px; }
.fbc-seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.fbc-gkonly { display: none; }
.composer.fbc.is-grok .fbc-gkonly { display: inline-flex; }
.fbc-foot { display: flex; gap: 8px; align-items: stretch; }
.fbc-attach { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--border-strong); background: none; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; flex: none; }
.fbc-attach:hover, .fbc-attach.on { border-style: solid; color: var(--text); background: var(--surface-2); }
.fbc-send.btn { flex: 1; height: 46px; font-size: 15px; border-radius: 12px; justify-content: center; gap: 8px; }
.fbc-send.btn.gk-send { height: 46px; font-size: 15px; }
.fbc-tip { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--text-3); line-height: 1.4; }
.fbc-tip .ic { margin-top: 2px; }
.fbc .ref-tray { padding: 0; }
.fbc .gk-chip { display: none; }
.fbc-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--up-bg); color: var(--up); font-size: 14px; font-weight: 600; animation: pop .3s var(--ease); transition: opacity .4s; }
.fbc-ok.out { opacity: 0; }
.fbc .gk-mention { position: static; }
/* narrow side panels: kinds stay readable */
aside.card .composer.fbc .kind-sw, .viewer-side .composer.fbc .kind-sw { display: none; }
@media (max-width: 380px) { .fbc-kt small { display: none; } .fbc-kind { min-height: 48px; } }
/* viewer side: the box sits in the footer – keep it compact but large enough */
.viewer-side .side-foot:has(.fbc) { padding: 12px; max-height: 62vh; overflow: auto; }
.viewer-side .composer.fbc { border: 0; padding: 4px 2px; background: none; }
.viewer-side .composer.fbc.is-grok { border: 0; box-shadow: none; background: none; }
/* review page: bigger rating buttons for touch */
@media (hover: none) { .rate.lg button { height: 54px; font-size: 16px; flex: 1; justify-content: center; } .rate.lg { width: 100%; display: flex; gap: 10px; } }

/* iOS: inputs below 16px make Safari zoom in (and never zoom back) */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea, .input, .select, .textarea, .input.sm, .select.sm, [contenteditable] { font-size: 16px !important; }
}
/* fbc: narrow phones → icon on top, never clip labels */
@media (max-width: 520px) {
  .fbc-kind { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 10px; }
  .fbc-ic { width: 28px; height: 28px; border-radius: 8px; }
  .fbc-kt b { font-size: 14.5px; }
}
.fbc-kt b, .fbc-kt small { overflow-wrap: break-word; hyphens: auto; }
/* desktop viewer side: compact one-row type picker so notes stay visible */
@media (min-width: 900px) {
  .viewer-side .fbc-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .viewer-side .fbc-kind { flex-direction: column; align-items: center; text-align: center; gap: 4px; min-height: 0; padding: 8px 4px; }
  .viewer-side .fbc-kt small { display: none; }
  .viewer-side .fbc-kt b { font-size: 12.5px; }
  .viewer-side .fbc-ic { width: 28px; height: 28px; }
  .viewer-side .fbc-tip { display: none; }
  .viewer-side .composer.fbc textarea.fbc-text { min-height: 72px; }
  .viewer-side .fbc-step { display: none; }
  .viewer-side .side-foot:has(.fbc) { max-height: 55vh; }
}
/* keyboard open (touch): extra room + footer not sticky so the text box can slide above the keyboard */
@media (hover: none) {
  body.kb-open #view { padding-bottom: 55vh; }
  body.kb-open .viewer-side { padding-bottom: 55vh; }
  body.kb-open .viewer-side .side-foot { position: static; max-height: none; overflow: visible; }
  body.kb-open .pwa-banner { display: none; }
}

/* ================= Video-Studio ================= */
.vst-tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vst-tpl { position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 18px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 150px; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; color: var(--text); }
.vst-tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.vst-tpl b { font-size: 15px; }
.vst-tpl .faint { font-size: 12.5px; line-height: 1.4; }
.vst-tpl-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #0A0A0A; color: #E7DCC6; margin-bottom: 6px; }
.vst-tpl-fmt { margin-top: auto; font-size: 11.5px; font-family: var(--mono); color: var(--text-3); }
.vst-tpl:disabled { opacity: .5; }
.vst-mini { position: absolute; inset: 0; display: flex; align-items: center; padding: 14%; font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
@media (max-width: 900px) { .vst-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vst { display: flex; flex-direction: column; min-height: 100%; }
.vst-top { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.vst-title { max-width: 360px; font-weight: 600; border-color: transparent; background: transparent; }
.vst-title:hover, .vst-title:focus { border-color: var(--border-strong); background: var(--surface); }
.vst-save { font-size: 12.5px; }
.vst-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; flex: 1; min-height: 0; }
.vst-stage { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: var(--surface-2); min-width: 0; }
.vst-player-wrap { width: 100%; max-width: min(460px, calc((100vh - 260px) * 0.8)); border-radius: 14px; overflow: hidden; background: #0A0A0A; box-shadow: var(--shadow-3); }
.vst-player-wrap[data-fmt="9:16"] { max-width: min(380px, calc((100vh - 260px) * 0.5625)); }
.vst-player-wrap[data-fmt="1:1"] { max-width: min(500px, calc(100vh - 260px)); }
.vst-timeline { width: 100%; max-width: 640px; }
.vst-strip { position: relative; display: flex; gap: 3px; height: 38px; }
.vst-chunk { min-width: 28px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; padding: 0 4px; overflow: hidden; }
.vst-chunk.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.vst-head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--focus); border-radius: 2px; pointer-events: none; transition: left .1s linear; }
.vst-player-wrap { position: relative; }
.vst-ov { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.vst-ov[hidden] { display: none; }
.vst-ov-safe { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 6px, transparent 6px 12px); opacity: 0; transition: opacity .15s; }
.vst-ov-safe.t { top: 0; height: var(--st); border-bottom: 1px dashed rgba(255,255,255,.35); }
.vst-ov-safe.b { bottom: 0; height: var(--sb); border-top: 1px dashed rgba(255,255,255,.35); }
.vst-ov-line { position: absolute; left: 8.5%; right: 8.5%; top: var(--y); height: 0; border-top: 1.5px dashed rgba(255,255,255,.75); opacity: 0; transition: opacity .15s; }
.vst-ov.drag .vst-ov-safe, .vst-ov.drag .vst-ov-line, .vst-player-wrap:hover .vst-ov-line { opacity: 1; }
.vst-ov-h { pointer-events: auto; position: absolute; right: 6px; top: var(--y); transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px 5px 7px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: #111; font: 600 11px/1 var(--font, sans-serif); box-shadow: 0 2px 10px rgba(0,0,0,.35); cursor: ns-resize; touch-action: none; user-select: none; }
.vst-ov.drag .vst-ov-h { background: var(--focus, #4C8DFF); color: #fff; }
.vst-ov-h:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.plat-guard-b { border: 0; cursor: pointer; margin-top: 4px; }
.plat-guard { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.plat-guard-i { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.plat-guard-t { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.vst-tlrow { display: flex; gap: 6px; align-items: stretch; }
.vst-tlrow .vst-strip { flex: 1; min-width: 0; }
.vst-tl-add { flex: 0 0 38px !important; min-width: 38px; border-style: dashed; color: var(--text-2); background: transparent; }
.vst-tl-add:hover { background: var(--surface); color: var(--text); border-color: var(--text-2); }
.vst-tp { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.vst-tp-row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.vst-tp-row input[type=range] { width: 100%; }
.vst-tp-row b { font-size: 12px; min-width: 40px; text-align: right; }
.vst-tp-hint { font-size: 12px; margin: 0; }
.vst-tp .ghost-chip { opacity: .6; cursor: default; }
.vst-tl-meta { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.vst-render { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }
.vst-make-sub { font-size: 12.5px; text-align: center; margin: 0; }
.vst-job { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.vst-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.vst-bar i { display: block; height: 100%; background: var(--gk-grad); transition: width .4s; }
.vst-done { text-decoration: none; }
.vst-side { border-left: 1px solid var(--border); background: var(--surface); padding: 16px; overflow: auto; max-height: calc(100vh - 62px); position: sticky; top: 62px; }
.vst-tabs { width: 100%; margin-bottom: 14px; }
.vst-tabs button { flex: 1; justify-content: center; }
.vst-scenes { display: flex; flex-direction: column; gap: 8px; }
.vst-sc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.vst-sc.open { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.vst-sc-h { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; }
.vst-sc-h .grow { min-width: 0; display: flex; flex-direction: column; }
.vst-sc-h b { font-size: 14px; }
.vst-peek { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vst-sc-n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.vst-sc.open .vst-sc-n { background: var(--text); color: var(--bg); }
.vst-sc-b { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.vst-f .textarea { min-height: 64px; resize: vertical; font-size: 16px; }
.vst-sc-b .input { font-size: 16px; }
.vst-hl-btn { height: 26px; font-size: 12px; }
.vst-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vst-row3 { display: grid; grid-template-columns: 70px 1fr 70px; gap: 8px; }
.vst-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.vst-rowi { display: flex; gap: 6px; align-items: center; }
.vst-rowi .input { flex: 1; min-width: 0; }
.vst-num { font-family: var(--mono); font-size: 12px; color: var(--text-3); width: 22px; }
.vst-drop { display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); min-height: 120px; cursor: pointer; overflow: hidden; background: var(--surface-2); }
.vst-drop > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; font-size: 13px; }
.vst-drop img, .vst-drop video { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.vst-drop.busy { opacity: .6; pointer-events: none; }
.vst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; gap: 6px; align-items: center; list-style: none; }
.vst-more[open] summary { margin-bottom: 10px; }
.vst-more .field { margin-bottom: 10px; }
.vst-sc-act { display: flex; gap: 4px; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; }
.danger-text { color: var(--down) !important; }
.vst-add { margin-top: 12px; height: 46px; border-style: dashed; }
.vst-hint { font-size: 12.5px; display: flex; gap: 6px; margin-top: 12px; }
.vst-addpop { display: flex; flex-direction: column; min-width: 260px; }
.vst-addpop .pop-item { align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.vst-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 18px 0 8px; }
.vst-style .field { margin-bottom: 10px; }
.vst-brandbar { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.vst-sample { margin-top: 10px; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.vst-sample .lbl { font-size: 10.5px; letter-spacing: .18em; }
.vst-fmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vst-fmtb { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--text); }
.vst-fmtb .faint { font-size: 11px; }
.vst-fmtb i { display: block; border: 1.5px solid currentColor; border-radius: 4px; height: 30px; }
.vst-fmtb i.r-4-5 { width: 24px; } .vst-fmtb i.r-9-16 { width: 17px; } .vst-fmtb i.r-1-1 { width: 30px; }
.vst-fmtb.on, .vst-look.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.vst-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vst-look { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.vst-look .faint { font-size: 11.5px; }
.vst-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.vst-swb { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--c); cursor: pointer; position: relative; display: grid; place-items: center; }
.vst-swb.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.vst-swb.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); color: #fff; overflow: hidden; }
.vst-swb.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.vst-style .check { display: flex; margin-bottom: 8px; font-size: 13.5px; }
.vst-grok .textarea { font-size: 16px; }
.vst-gt { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); margin-top: 6px; flex: none; }
.status-dot.st-done { background: var(--up); } .status-dot.st-working { background: var(--gk-2); } .status-dot.st-failed { background: var(--down); }
@media (max-width: 960px) {
  .vst-body { grid-template-columns: 1fr; }
  .vst-side { border-left: 0; border-top: 1px solid var(--border); max-height: none; position: static; }
  .vst-stage { padding: 14px; }
  .vst-player-wrap { max-width: min(340px, 82vw); }
  .vst-player-wrap[data-fmt="9:16"] { max-width: min(260px, 66vw); }
  .vst-top { padding: 10px 12px; }
}
/* video in cards / viewer */
.pc-media video.pc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(10,10,10,.55); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; pointer-events: none; }
.slide-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.pc-media video.pc-video { pointer-events: none; z-index: 1; }
.vst-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--text); color: var(--bg); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-3); cursor: pointer; }
body.kb-open .vst-fab { display: none; }
.vst-fab[hidden] { display: none; }

/* ===== Video-Studio v2 ===== */
.vst-hero { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin-bottom:18px; }
.vst-hero-card { display:flex; flex-direction:column; gap:6px; text-align:left; padding:18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); color:var(--text); cursor:pointer; transition:transform .15s var(--ease), box-shadow .15s var(--ease); }
.vst-hero-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-2); }
.vst-hero-card.ai { background:var(--gk-soft); border-color:var(--gk-2); }
.vst-hero-card b { font-size:16px; } .vst-hero-card small { color:var(--text-2); }
@media (max-width:640px){ .vst-tabs button span { display:none; } }
.vst-trim { position:relative; height:56px; border-radius:8px; background:var(--surface-2) center/cover; overflow:hidden; touch-action:none; user-select:none; margin:10px 0 6px; }
.vst-dim { position:absolute; top:0; bottom:0; background:rgba(0,0,0,.55); pointer-events:none; }
.vst-dim.l { left:0; } .vst-dim.r { right:0; }
.vst-sel { position:absolute; top:0; bottom:0; border:2px solid var(--gk-2); border-radius:6px; pointer-events:none; }
.vst-hdl { position:absolute; top:0; bottom:0; width:16px; margin-left:-8px; background:var(--gk-2); border-radius:4px; cursor:ew-resize; touch-action:none; }
.vst-hdl::after { content:''; position:absolute; left:6px; top:35%; bottom:35%; width:4px; border-left:1px solid #fff; border-right:1px solid #fff; }
.vst-trim-meta { display:flex; justify-content:space-between; font-size:12px; color:var(--text-3); }
.vst-clip { display:flex; flex-direction:column; gap:10px; }
.vst-clip-act { display:flex; flex-wrap:wrap; gap:8px; }
.vst-track { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); margin-bottom:10px; flex-wrap:wrap; }
.vst-lines { display:flex; flex-direction:column; gap:6px; max-height:46vh; overflow:auto; }
.vst-line { display:flex; gap:6px; align-items:flex-start; flex-wrap:wrap; padding:6px; border-radius:8px; background:var(--surface-2); }
.vst-lt { font-size:11px; color:var(--text-3); min-width:42px; cursor:pointer; padding-top:6px; }
.vst-word { width:auto; min-width:2ch; max-width:16ch; padding:3px 6px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; field-sizing:content; }
.vst-hook { display:block; width:100%; text-align:left; padding:10px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); cursor:pointer; margin-bottom:6px; }
.vst-hook:hover { border-color:var(--gk-2); }
.vst-big-check { display:flex; align-items:center; gap:10px; font-weight:600; padding:8px 0; }
.mu-tabs { display:flex; gap:6px; margin-bottom:12px; }
.mu-list { display:flex; flex-direction:column; gap:6px; max-height:50vh; overflow:auto; }
.mu-row { display:flex; flex-direction:column; gap:6px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.mu-track { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.mu-track:hover { border-color:var(--gk-2); }
.mu-track b { display:block; }
#mu-list { display:flex; flex-direction:column; gap:6px; max-height:46vh; overflow:auto; }
.mu-play { width:34px; height:34px; border-radius:50%; border:1px solid var(--border); background:var(--surface-2); color:var(--text); display:grid; place-items:center; cursor:pointer; flex:none; }
.mu-play.on { background:var(--gk-2); color:#fff; }
.mu-st { font-size:12px; } .mu-st.ok { color:var(--up); } .mu-st.bad { color:var(--down); }
.mu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px; max-height:50vh; overflow:auto; }
.mu-clip { position:relative; border:1px solid var(--border); border-radius:8px; overflow:hidden; background:var(--surface-2); cursor:pointer; padding:0; text-align:left; color:var(--text); }
.mu-clip:hover { border-color:var(--gk-2); }
.mu-clip img, .mu-ph { display:grid; place-items:center; width:100%; aspect-ratio:9/16; object-fit:cover; background:var(--surface-3); color:var(--text-3); }
.mu-clip .pc-pill { position:absolute; top:6px; right:6px; }
.mu-clip:disabled { opacity:.6; cursor:wait; }
.mu-name { font-size:12px; padding:4px 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vo-box { display:flex; flex-direction:column; align-items:center; gap:14px; padding:12px 0; }
.vo-time { font-size:28px; font-variant-numeric:tabular-nums; font-weight:700; }
.vo-level { width:100%; height:8px; border-radius:4px; background:var(--surface-2); overflow:hidden; }
.vo-level i { display:block; height:100%; width:0; background:var(--gk-grad); transition:width .08s linear; }
.vo-rec { width:72px; height:72px; border-radius:50%; border:4px solid var(--border-strong); background:#e5484d; cursor:pointer; }
.vo-rec.on { border-radius:18px; animation:vo-pulse 1.2s infinite; }
@keyframes vo-pulse { 50% { box-shadow:0 0 0 10px rgba(229,72,77,.2); } }
.spin { display:inline-block; width:16px; height:16px; border:2px solid var(--border-strong); border-top-color:var(--gk-2); border-radius:50%; animation:spin .8s linear infinite; vertical-align:middle; }
@keyframes spin { to { transform:rotate(360deg); } }
.vst-tabs { overflow:hidden; }
.vst-tabs button { min-width:0; padding-left:4px; padding-right:4px; gap:5px; font-size:13px; white-space:nowrap; }
.vst-tabs button span { overflow:hidden; text-overflow:ellipsis; }
.vst-tabs button:not(.on) span { display:none; }
.vst-tabs button.on { flex:2.2; }
.vst-side { overflow-x:hidden; min-width:0; }
.vst-hero-card > div { display:flex; flex-direction:column; gap:4px; }
.vst-hero-card > div b { line-height:1.25; }
.vst-hero-card > div .faint { font-size:13.5px; line-height:1.45; color:var(--text-2); }
.vst-hero-card .vst-tpl-ic { margin-bottom:8px; }
@media (max-width:640px){ .vst-hero { gap:10px; } .vst-hero-card { padding:14px 16px; flex-direction:row; align-items:center; gap:14px; } .vst-hero-card .vst-tpl-ic { margin:0; flex:none; } }

/* ===== Video-Studio: transitions ===== */
.vst-tr { display:flex; align-items:center; gap:8px; width:100%; margin:-2px 0; padding:2px 0; background:none; border:0; cursor:pointer; color:var(--text-2); }
.vst-tr-line { flex:1; height:1px; background:var(--border); }
.vst-tr-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px 4px 8px; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:12px; line-height:1; transition:border-color .15s var(--ease), box-shadow .15s var(--ease); }
.vst-tr-chip b { font-weight:600; color:var(--text); }
.vst-tr-chip em { font-style:normal; font-size:10.5px; padding:2px 5px; border-radius:6px; background:var(--surface-2); color:var(--text-3); text-transform:uppercase; letter-spacing:.04em; }
.vst-tr:hover .vst-tr-chip { border-color:var(--gk-2); box-shadow:var(--shadow-2); }
.vst-trpop { width:min(340px, calc(100vw - 32px)); }
.vst-trgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.vst-trb { display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 4px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); cursor:pointer; font-size:12px; text-align:center; }
.vst-trb b { font-weight:600; line-height:1.15; }
.vst-trb .faint { font-size:10.5px; line-height:1.1; }
.vst-trb:hover { border-color:var(--border-strong); }
.vst-trb.on { border-color:var(--gk-2); box-shadow:0 0 0 1px var(--gk-2) inset; }
/* mini animated demo: two "shots" (A champagne, B dark grey) */
.vst-trdemo { position:relative; width:52px; height:34px; border-radius:6px; overflow:hidden; background:#111; }
.vst-trdemo i { position:absolute; inset:0; }
.vst-trdemo i:first-child { background:linear-gradient(135deg,#E7DCC6,#b9a78a); }
.vst-trdemo i:last-child { background:linear-gradient(135deg,#5b6170,#2a2d35); }
@keyframes trA { 0%,35% { opacity:1; transform:none; filter:none } 65%,100% { opacity:0 } }
@keyframes trB { 0%,35% { opacity:0 } 65%,100% { opacity:1; transform:none; filter:none } }
.tr-fade i:first-child { animation:trA 2.4s infinite alternate ease-in-out }
.tr-fade i:last-child, .tr-auto i:last-child { animation:trB 2.4s infinite alternate ease-in-out }
.tr-auto i:first-child { animation:trA 2.4s infinite alternate ease-in-out }
@keyframes trCutB { 0%,49% { opacity:0 } 50%,100% { opacity:1 } }
.tr-cut i:last-child { animation:trCutB 2.4s infinite alternate steps(1) }
@keyframes trDipA { 0%,25% { opacity:1 } 50%,100% { opacity:0 } }
@keyframes trDipB { 0%,50% { opacity:0 } 75%,100% { opacity:1 } }
.tr-dip i:first-child { animation:trDipA 2.4s infinite alternate } .tr-dip i:last-child { animation:trDipB 2.4s infinite alternate }
@keyframes trBlurA { 0%,30% { filter:blur(0); opacity:1 } 70%,100% { filter:blur(6px); opacity:0 } }
@keyframes trBlurB { 0%,30% { filter:blur(6px); opacity:0 } 70%,100% { filter:blur(0); opacity:1 } }
.tr-blur i:first-child { animation:trBlurA 2.4s infinite alternate } .tr-blur i:last-child { animation:trBlurB 2.4s infinite alternate }
@keyframes trZoomA { 0%,30% { transform:scale(1); opacity:1 } 60%,100% { transform:scale(1.6); opacity:0 } }
@keyframes trZoomB { 0%,45% { transform:scale(.8); opacity:0 } 75%,100% { transform:scale(1); opacity:1 } }
.tr-zoom i:first-child { animation:trZoomA 2.4s infinite alternate cubic-bezier(.7,0,.3,1) } .tr-zoom i:last-child { animation:trZoomB 2.4s infinite alternate cubic-bezier(.7,0,.3,1) }
@keyframes trSlideA { 0%,30% { transform:translateX(0) } 70%,100% { transform:translateX(-30%) } }
@keyframes trSlideB { 0%,30% { transform:translateX(100%) } 70%,100% { transform:translateX(0) } }
.tr-slide i:first-child { animation:trSlideA 2.4s infinite alternate cubic-bezier(.7,0,.3,1) } .tr-slide i:last-child { animation:trSlideB 2.4s infinite alternate cubic-bezier(.7,0,.3,1) }
@keyframes trWhipA { 0%,40% { transform:translateX(0); filter:blur(0) } 60%,100% { transform:translateX(-100%); filter:blur(4px) } }
@keyframes trWhipB { 0%,40% { transform:translateX(100%); filter:blur(4px) } 60%,100% { transform:translateX(0); filter:blur(0) } }
.tr-whip i:first-child { animation:trWhipA 2.4s infinite alternate cubic-bezier(.8,0,.2,1) } .tr-whip i:last-child { animation:trWhipB 2.4s infinite alternate cubic-bezier(.8,0,.2,1) }
@keyframes trWipeB { 0%,30% { clip-path:inset(0 0 0 100%) } 70%,100% { clip-path:inset(0 0 0 0) } }
.tr-wipe i:last-child { animation:trWipeB 2.4s infinite alternate cubic-bezier(.7,0,.3,1) }
@keyframes trFlashB { 0%,40% { opacity:0 } 50%,100% { opacity:1 } }
@keyframes trFlashW { 0%,38% { opacity:0 } 48% { opacity:1 } 70%,100% { opacity:0 } }
.tr-flash i:first-child { animation:none }
.tr-flash i:last-child { animation:trFlashB 2.4s infinite alternate }
.tr-flash::after { content:''; position:absolute; inset:0; background:#fff; opacity:0; animation:trFlashW 2.4s infinite alternate }
@media (prefers-reduced-motion: reduce) { .vst-trdemo i { animation:none !important } }
/* markers on the timeline strip */
.vst-trmarks { position:relative; height:0; }
.vst-trm { position:absolute; top:-30px; transform:translateX(-50%); width:22px; height:22px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); cursor:pointer; box-shadow:var(--shadow-2); z-index:3; padding:0; }
.vst-trm svg { width:12px; height:12px; }
.vst-trm.cut { width:16px; height:16px; top:-27px; opacity:.8; }
.vst-trm:hover { border-color:var(--gk-2); opacity:1; }

/* ===== Onboarding funnel (/start) ===== */
.ob { max-width: 760px; margin: 0 auto; padding: 22px 20px 120px; }
.ob-top { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.ob-brandline { display:flex; align-items:center; gap:8px; flex:1; min-width:0; flex-wrap:wrap; }
.ob-brandline b { font-size:15px; }
.ob-brandline .faint { font-size:13px; }
.ob-progress { display:flex; align-items:center; gap:4px; margin-bottom:22px; overflow-x:auto; scrollbar-width:none; }
.ob-progress::-webkit-scrollbar { display:none; }
.ob-dot { display:flex; align-items:center; gap:6px; background:none; border:0; padding:4px 2px; cursor:pointer; color:var(--text-3); font-size:12.5px; font-weight:600; white-space:nowrap; flex:none; }
.ob-dot i { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:11.5px; border:1.5px solid var(--border-strong); background:var(--surface); transition:all .2s var(--ease); }
.ob-dot.on { color:var(--text); }
.ob-dot.on i { border-color:transparent; background:var(--accent); color: var(--accent-text); box-shadow:0 0 0 4px var(--gk-soft); }
.ob-dot.done i { background:var(--text); border-color:var(--text); color:var(--bg); }
.ob-line { flex:1; min-width:10px; height:1.5px; background:var(--border); }
.ob-card { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:30px; box-shadow:var(--shadow-2); animation:obIn .35s var(--ease); }
@keyframes obIn { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:none } }
.ob-head { margin-bottom:22px; }
.ob-kicker { display:inline-block; font:600 11px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--gk-1); margin-bottom:10px; }
.ob-head h1 { font-size:28px; line-height:1.15; letter-spacing:-.03em; margin:0 0 8px; font-weight:700; }
.ob-head p { margin:0; color:var(--text-2); font-size:15px; line-height:1.5; max-width:560px; }
.ob-h5 { font-size:13px; font-weight:650; margin:18px 0 10px; color:var(--text); }
.ob-hint { font-size:12.5px; margin:8px 2px 0; }
.ob-urlrow { display:flex; align-items:center; gap:8px; background:var(--surface-2); border:1px solid var(--border); border-radius:14px; padding:6px 6px 6px 14px; transition:border-color .15s, box-shadow .15s; }
.ob-urlrow:focus-within { border-color:var(--gk-2); box-shadow:0 0 0 4px var(--gk-soft); }
.ob-urlrow .input { border:0; background:transparent; box-shadow:none; flex:1; min-width:0; padding-left:0; font-size:16px; }
.ob-urlrow .input:focus { box-shadow:none; }
.ob-urlrow.sm { padding:2px 6px 2px 12px; border-radius:10px; }
.ob-urlpre { color:var(--text-3); display:flex; font-weight:600; }
.ob-scan-anim { display:flex; align-items:center; gap:6px; padding:28px 0 8px; justify-content:center; color:var(--text-2); font-size:13.5px; }
.ob-scan-anim i { width:8px; height:8px; border-radius:50%; background:var(--gk-2); animation:obDot 1s infinite ease-in-out; }
.ob-scan-anim i:nth-child(2) { animation-delay:.15s } .ob-scan-anim i:nth-child(3) { animation-delay:.3s; margin-right:8px }
@keyframes obDot { 0%,80%,100% { transform:scale(.5); opacity:.4 } 40% { transform:scale(1); opacity:1 } }
.ob-kit { display:grid; grid-template-columns: 1.05fr 1fr; gap:18px; margin-top:20px; animation:obIn .4s var(--ease); }
.ob-kit-prev { aspect-ratio:4/5; border-radius:16px; padding:26px; display:flex; flex-direction:column; justify-content:flex-end; gap:10px; box-shadow:var(--shadow-3); overflow:hidden; position:relative; }
.ob-kit-prev::before { content:''; position:absolute; inset:0; background:radial-gradient(90% 60% at 80% 10%, rgba(255,255,255,.10), transparent 60%); pointer-events:none; }
.ob-kit-lbl { font-size:11px; letter-spacing:.16em; }
.ob-kit-h { font-size:30px; line-height:1.05; font-weight:700; letter-spacing:-.02em; }
.ob-kit-h em { font-style:italic; font-weight:400; }
.ob-kit-b { font-size:13px; opacity:.8; line-height:1.4; }
.ob-kit-info { display:flex; flex-direction:column; gap:14px; justify-content:center; }
.ob-kit-row { display:flex; flex-direction:column; gap:5px; font-size:13.5px; }
.ob-kit-row > b { font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-3); font-weight:650; }
.ob-sw { display:flex; flex-wrap:wrap; gap:8px; }
.ob-sw span { display:inline-flex; align-items:center; gap:6px; font:500 11.5px var(--mono); color:var(--text-2); }
.ob-sw i { width:26px; height:26px; border-radius:8px; background:var(--c); box-shadow:inset 0 0 0 1px rgba(0,0,0,.12); }
.ob-chips { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:8px; }
.ob-chip { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; text-align:left; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); cursor:pointer; transition:all .15s var(--ease); }
.ob-chip svg { grid-row:span 2; color:var(--text-3); }
.ob-chip b { font-size:14px; font-weight:650; }
.ob-chip span { font-size:12px; color:var(--text-3); grid-column:2; }
.ob-chip:not(:has(svg)) b, .ob-chip:not(:has(svg)) span { grid-column:1 / span 2; }
.ob-chip:hover { border-color:var(--border-strong); }
.ob-chip.on { border-color:var(--gk-2); background:var(--gk-soft); box-shadow:0 0 0 1px var(--gk-2) inset; }
.ob-chip.on svg { color:var(--gk-1); }
.ob-fmts { display:flex; gap:8px; margin-bottom:18px; }
.ob-fmt { flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 8px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); cursor:pointer; font-size:13px; }
.ob-fmt i { display:block; height:32px; border:2px solid currentColor; border-radius:5px; opacity:.55; }
.ob-fmt i.r-feed { width:26px; } .ob-fmt i.r-reel, .ob-fmt i.r-story { width:19px; } .ob-fmt i.r-story { border-style:dashed; }
.ob-fmt.on { border-color:var(--gk-2); background:var(--gk-soft); box-shadow:0 0 0 1px var(--gk-2) inset; }
.ob-fmt.on i { opacity:1; color:var(--gk-1); }
.ob-drop { border:1.5px dashed var(--border-strong); border-radius:16px; padding:16px; transition:all .15s; }
.ob-drop.over { border-color:var(--gk-2); background:var(--gk-soft); }
.ob-drop > p { margin:10px 2px 0; font-size:12.5px; }
.ob-thumbs { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; }
.ob-th { position:relative; margin:0; aspect-ratio:4/5; border-radius:10px; overflow:hidden; background:var(--surface-3); }
.ob-th img { width:100%; height:100%; object-fit:cover; display:block; }
.ob-th-x { position:absolute; top:6px; right:6px; width:24px; height:24px; border-radius:50%; border:0; background:rgba(0,0,0,.6); color:#fff; display:grid; place-items:center; cursor:pointer; }
.ob-add { aspect-ratio:4/5; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); color:var(--text-2); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-size:12.5px; font-weight:600; }
.ob-add:hover { border-color:var(--gk-2); color:var(--text); }
#ob-analyze { margin-top:14px; }
.ob-stylecard { margin-top:16px; display:grid; grid-template-columns:repeat(2,1fr); gap:14px; padding:18px; border-radius:14px; background:var(--surface-2); animation:obIn .35s var(--ease); }
.ob-stylecard .ob-dd { grid-column:1 / -1; }
.ob-dd { display:grid; grid-template-columns:1fr 1fr; gap:10px; font-size:12.5px; }
.ob-dd > div { display:flex; flex-direction:column; gap:5px; }
.ob-dd .ok { color:var(--up); } .ob-dd .no { color:var(--down); }
.ob-caps { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.ob-cap { border:1px solid var(--border); border-radius:14px; padding:14px; display:flex; flex-direction:column; gap:8px; background:var(--surface); transition:all .15s; }
.ob-cap p { margin:0; font-size:13.5px; line-height:1.5; flex:1; }
.ob-cap-s { font:600 10.5px var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); }
.ob-cap-act { display:flex; gap:6px; }
.ob-cap.like { border-color:var(--up); box-shadow:0 0 0 1px var(--up) inset; }
.ob-cap.dislike { opacity:.5; }
.ob-opts { display:flex; flex-direction:column; gap:10px; }
.ob-opt { display:flex; align-items:center; gap:14px; text-align:left; padding:16px 18px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--text); cursor:pointer; position:relative; }
.ob-opt > div { display:flex; flex-direction:column; gap:3px; flex:1; }
.ob-opt b { font-size:15px; } .ob-opt span { font-size:13px; color:var(--text-2); }
.ob-opt em { font-style:normal; font-size:11px; font-weight:650; padding:3px 8px; border-radius:999px; background:var(--gk-soft); color:var(--gk-1); }
.ob-radio { width:20px; height:20px; border-radius:50%; border:2px solid var(--border-strong); flex:none; transition:all .15s; }
.ob-opt.on { border-color:var(--gk-2); box-shadow:0 0 0 1px var(--gk-2) inset; }
.ob-opt.on .ob-radio { border:6px solid var(--gk-1); }
.ob-sum { list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.ob-sum li { display:grid; grid-template-columns:22px 110px 1fr; gap:10px; align-items:center; padding:12px 16px; font-size:13.5px; border-top:1px solid var(--border); }
.ob-sum li:first-child { border-top:0; }
.ob-sum li span { color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ob-sum .ok { color:var(--up); }
.ob-what { display:flex; gap:12px; padding:16px; border-radius:14px; background:var(--gk-soft); color:var(--text); }
.ob-what > svg { color:var(--gk-1); flex:none; margin-top:2px; }
.ob-what div { display:flex; flex-direction:column; gap:4px; font-size:13.5px; } .ob-what span { color:var(--text-2); line-height:1.5; }
.ob-making { text-align:center; padding:30px 0 10px; }
.ob-making h2 { font-size:20px; margin:22px 0 14px; }
.ob-making ul { list-style:none; padding:0; margin:0 auto; display:inline-flex; flex-direction:column; gap:8px; text-align:left; }
.ob-making li { opacity:0; animation:obTick .5s var(--ease) forwards; font-size:14px; color:var(--text-2); display:flex; gap:8px; align-items:center; }
.ob-making li svg { color:var(--up); }
@keyframes obTick { to { opacity:1 } }
.ob-orbit { position:relative; width:84px; height:84px; margin:0 auto; display:grid; place-items:center; color:var(--gk-1); }
.ob-orbit i { position:absolute; inset:0; border-radius:50%; border:2px solid transparent; border-top-color:var(--gk-1); animation:spin 1.6s linear infinite; }
.ob-orbit i:nth-child(2) { inset:10px; border-top-color:var(--gk-2); animation-duration:2.2s; animation-direction:reverse; }
.ob-orbit i:nth-child(3) { inset:20px; border-top-color:var(--gk-3); animation-duration:1.2s; }
.ob-foot { position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; align-items:center; gap:8px; padding:12px max(20px, calc((100vw - 760px) / 2 + 20px)); padding-bottom:calc(12px + env(safe-area-inset-bottom)); background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-top:1px solid var(--border); }
@media (min-width: 901px) { .ob-foot { left:var(--sidebar); padding-left:max(20px, calc((100vw - var(--sidebar) - 760px) / 2 + 20px)); padding-right:max(20px, calc((100vw - var(--sidebar) - 760px) / 2 + 20px)); } }
.ob-banner { display:flex; align-items:center; gap:14px; padding:16px 18px; margin-bottom:18px; border-radius:16px; background:var(--gk-soft); border:1px solid color-mix(in srgb, var(--gk-2) 35%, transparent); }
.ob-banner > svg { color:var(--gk-1); flex:none; }
.ob-banner .grow { display:flex; flex-direction:column; gap:3px; } .ob-banner .grow span { font-size:13px; color:var(--text-2); }
.ob-empty { text-align:center; padding:60px 20px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.ob-empty > svg { color:var(--gk-1); }
@media (max-width: 720px) {
  .ob { padding:14px 14px 110px; }
  .ob-card { padding:20px 18px; border-radius:16px; }
  .ob-head h1 { font-size:23px; }
  .ob-head p { font-size:14px; }
  .ob-dot span { display:none; }
  .ob-dot.on span { display:inline; }
  .ob-brandline .faint { display:none; }
  .ob-kit { grid-template-columns:1fr; }
  .ob-kit-prev { aspect-ratio:auto; min-height:230px; }
  .ob-caps, .ob-stylecard, .ob-dd { grid-template-columns:1fr; }
  .ob-urlrow .btn.lg { padding:0 14px; }
  .ob-sum li { grid-template-columns:22px 1fr; }
  .ob-sum li span { grid-column:2; white-space:normal; }
  .ob-banner { flex-wrap:wrap; }
  .ob-foot #ob-skip { display:none; }
}

/* ===== Playbook page ===== */
.pb { max-width: 1040px; }
.pb-hero { display:flex; gap:14px; align-items:center; padding:18px 20px; border-radius:16px; background:var(--accent); color: var(--accent-text); margin-bottom:22px; box-shadow:var(--shadow-3); animation:obIn .4s var(--ease); }
.pb-hero div { display:flex; flex-direction:column; gap:2px; } .pb-hero span { opacity:.9; font-size:13.5px; }
.pb-connect { margin-bottom:22px; border-color:color-mix(in srgb, var(--gk-2) 40%, var(--border)); }
.pb-connect h3 { margin:0 0 4px; } .pb-connect p { margin:0; font-size:13.5px; }
.pb-ic { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:var(--accent); color: var(--accent-text); flex:none; }
.pb-status { font-size:12px; font-weight:600; padding:5px 10px; border-radius:999px; background:var(--surface-2); color:var(--text-3); display:inline-flex; gap:5px; align-items:center; white-space:nowrap; }
.pb-status.ok { background:color-mix(in srgb, var(--up) 14%, var(--surface)); color:var(--up); }
.pb-tabs { margin:16px 0 4px; max-width:100%; overflow-x:auto; }
.pb-tabs button.on { background:var(--surface); color:var(--text); box-shadow:var(--shadow-1, 0 1px 2px rgba(0,0,0,.08)); }
.pb-steps { margin:10px 0 0; padding:0; list-style:none; counter-reset:s; display:flex; flex-direction:column; gap:14px; }
.pb-steps li { counter-increment:s; display:flex; flex-direction:column; gap:8px; padding-left:40px; position:relative; font-size:13.5px; }
.pb-steps li::before { content:counter(s); position:absolute; left:0; top:-2px; width:26px; height:26px; border-radius:50%; background:var(--text); color:var(--bg); display:grid; place-items:center; font-size:12.5px; font-weight:700; }
.pb-steps li.pb-last::before { content:'✓'; background:var(--up); color:#fff; }
.pb-steps li p { margin:0; font-size:12.5px; }
.pb-field { display:flex; align-items:center; gap:8px; padding:6px 6px 6px 12px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); }
.pb-field > span { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-3); font-weight:650; flex:none; }
.pb-field code { flex:1; min-width:0; font:12.5px var(--mono); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
.pb-field code.wrap { white-space:normal; font-family:inherit; font-size:13px; line-height:1.45; }
.pb-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.pb-grid h3, .pb .card h3 { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:15px; }
.pb-grid p { margin:0 0 10px; font-size:14px; line-height:1.55; }
.pb-tags { display:flex; flex-wrap:wrap; gap:6px; }
.pb-list { margin:0; padding-left:18px; display:flex; flex-direction:column; gap:6px; font-size:13.5px; line-height:1.5; }
.pb-h2 { display:flex; align-items:center; gap:8px; font-size:17px; margin:30px 0 12px; }
.pb-agents { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.pb-agent { border:1px solid var(--border); border-radius:16px; padding:16px; background:var(--surface); display:flex; flex-direction:column; gap:10px; }
.pb-agent header { display:flex; gap:10px; align-items:center; }
.pb-agent header div { display:flex; flex-direction:column; } .pb-agent header .faint { font-size:12px; }
.pb-agent p { margin:0; font-size:13px; color:var(--text-2); line-height:1.5; }
.pb-agent ul { margin:0; padding-left:16px; font-size:12.5px; display:flex; flex-direction:column; gap:4px; }
.pb-handoff { font-size:12px; color:var(--text-3); display:flex; gap:6px; align-items:flex-start; border-top:1px solid var(--border); padding-top:8px; margin-top:auto; }
.pb-av { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:#fff; flex:none; background:#555; }
.pb-av.a-orchestrator { background:var(--accent); color:var(--accent-text); } .pb-av.a-content { background:#E0864A; } .pb-av.a-video { background:#3E7BE0; } .pb-av.a-review { background:#2E9E6E; } .pb-av.a-publisher { background:#222; }
.pb-routines { display:flex; flex-direction:column; gap:8px; }
.pb-rt { display:flex; gap:14px; padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.pb-when { flex:none; min-width:84px; font:650 12.5px var(--mono); padding:6px 10px; border-radius:8px; background:var(--surface-2); height:fit-content; text-align:center; }
.pb-rt ol { margin:6px 0 0; padding-left:18px; font-size:13px; color:var(--text-2); display:flex; flex-direction:column; gap:3px; }
.pb-pillar { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; font-size:13.5px; }
.pb-pillar .faint { font-size:12px; line-height:1.45; }
.pb-quote { margin:12px 0 0; padding:12px 14px; border-left:3px solid var(--gk-2); background:var(--surface-2); border-radius:0 10px 10px 0; font-size:13.5px; line-height:1.55; }
.pb-md { margin-top:22px; } .pb-md summary { cursor:pointer; font-size:13px; color:var(--text-2); display:flex; gap:6px; align-items:center; }
.pb-md pre { max-height:420px; overflow:auto; }
@media (max-width: 760px) {
  .pb-grid { grid-template-columns:1fr; }
  .pb-connect > .row { flex-wrap:wrap; }
  .pb-rt { flex-direction:column; gap:8px; }
  .pb-when { align-self:flex-start; }
  .pb-field { flex-wrap:wrap; } .pb-field code { flex-basis:100%; order:3; white-space:normal; word-break:break-all; }
}
.pb .page-head .grow { min-width: min(100%, 260px); }
@media (max-width: 720px) { .pb .page-head .grow { flex-basis: 100%; } .pb .page-head > .btn { flex: 1; justify-content: center; } }
.ob-card .field + .field { margin-top: 16px; }
/* OAuth consent + connected assistants */
.oa-logos { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.oa-app { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.oa-app.studio { background: var(--text); color: var(--bg); --logo-dot: var(--bg); }
.oa-dots { display: flex; gap: 5px; } .oa-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong, #ccc); animation: oaDot 1.2s infinite; } .oa-dots i:nth-child(2) { animation-delay: .2s } .oa-dots i:nth-child(3) { animation-delay: .4s }
@keyframes oaDot { 0%, 100% { opacity: .3 } 50% { opacity: 1 } }
.oa-host { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius-s); padding: 8px 10px; margin-top: -6px; }
.oa-can { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.oa-can li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .oa-can li svg { flex: none; margin-top: 2px; }
.oa-can .ok svg { color: var(--up, #1a7f4b); } .oa-can .no svg { color: var(--down); }
.oa-done { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--up-bg, #e6f6ee); color: var(--up, #1a7f4b); }
.pb-login { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; margin: 8px 0 2px; color: var(--text); } .pb-login svg { flex: none; margin-top: 2px; color: var(--iro-p); }
.pb-conns { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.pb-conns h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.pb-conns p { margin: 0; font-size: 13px; }
.pb-conns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pb-conns li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-s); }
.pb-conns li small { display: block; margin-top: 2px; font-size: 12px; }
.pb-cav { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.auth-box #oa-no { margin-top: -8px; }
/* iclipnow brand */
.brand-tile { display: inline-grid; place-items: center; border-radius: 26%; background: var(--text); color: var(--bg); --mark-v: #9B82FF; flex: none; }
.brand-tile .ic { color: var(--bg); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-weight: 650; font-size: 17px; letter-spacing: -.035em; }
.brand-name small { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-top: 2px; }
.mobile-bar .brand-name { font-size: 18px; }
.auth-art .brand-tile { background: var(--bg); color: var(--text); --mark-v: #7C5CFF; }
.auth-art .brand-tile .ic { color: var(--text); }
.auth-art .brand-name { font-size: 22px; color: var(--bg); }
.grad-text { background: linear-gradient(90deg, #9B82FF, #FF5FA8 55%, #FFB25B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oa-app.studio { background: var(--text); color: var(--bg); --mark-v: #9B82FF; }
.oa-app.studio .ic { color: var(--bg); }
.ed-home .ic { --mark-v: #7C5CFF; }

/* ---------- workspace switcher */
.ws-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; text-align: left; color: var(--text); }
.ws-btn:hover { background: var(--surface-2); }
.ws-btn b { display: block; font-size: 13px; font-weight: 600; }
.ws-btn small { display: block; font-size: 11.5px; line-height: 1.2; }
.ws-tile { flex: none; display: inline-grid; place-items: center; border-radius: 7px; font-weight: 700; font-size: 12.5px; color: #fff; background: hsl(var(--h, 260) 62% 52%); }
.pop-item .ws-tile { font-size: 11px; border-radius: 6px; }
.ws-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12.5px; color: var(--text-3); }

/* ---------- platform console */
.plat-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.plat-tools .search { flex: 1; min-width: 220px; max-width: 420px; }
.plat-table tr.is-off td { opacity: .6; }
.plat-table td { vertical-align: middle; }
.badge.plan-internal { background: var(--surface-2); }
.badge.plan-pro, .badge.plan-agency { background: color-mix(in srgb, var(--iro-o) 16%, var(--surface)); color: #9A5A12; border-color: color-mix(in srgb, var(--iro-o) 50%, transparent); }
.badge.plan-starter { background: #FF5FA81a; color: #c2387a; border-color: #FF5FA855; }
@media (max-width: 760px) { .plat .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- onboarding v2: rules + AI team */
.ob-2col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.ob-card textarea.textarea[rows="1"] { min-height: 42px; resize: vertical; }
.ob-chips.sm { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-chips.sm .ob-chip { min-width: 0; flex: 0 0 auto; padding: 6px 10px !important; }
.ob-chips.sm .ob-chip { padding: 8px 6px; text-align: center; justify-content: center; }
.ob-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ob-ag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); position: relative; }
.ob-ag.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.ob-ag.fixed { cursor: default; opacity: .9; }
.ob-ag input { margin-top: 3px; accent-color: var(--text); }
.ob-ag b { display: block; font-size: 13.5px; }
.ob-ag span { display: block; font-size: 12px; color: var(--text-2); }
.ob-ag em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 10.5px; color: var(--text-3); }
.ob-sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.ob-sched .field { margin: 0; }
.ob-wins { display: flex; flex-direction: column; gap: 8px; }
.ob-win { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.ob-win b { width: 70px; font-size: 13px; }
.ob-win .input.sm { width: auto; min-width: 0; }
.ob-win input[type=number] { width: 64px; }
.ob-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.ob-toggle input { margin-top: 3px; accent-color: var(--text); }
.ob-toggle b { display: block; font-size: 13.5px; }
.ob-toggle span { display: block; font-size: 12px; color: var(--text-2); }
.pb-missing { margin-bottom: 14px; border-color: #f5c46a; background: #fff8e8; }
[data-theme=dark] .pb-missing { background: #2b2412; border-color: #6b5521; }
.pb-ic.warn { color: #b7791f; }
.pb-setup { margin-bottom: 14px; }
.pb-setup.ok { border-color: #9ad5b0; }
.pb-setup.old { border-color: #f5c46a; }
.pb-warn { color: #b7791f; font-size: 13px; margin: 4px 0; }
.pb-setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; font-size: 13px; }
.pb-setup-grid b { display: block; font-size: 12px; color: var(--text-2); }
.pb-q { margin-top: 10px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.pb-q ul { margin: 4px 0 0 18px; padding: 0; }
.pb-cron { display: block; font-size: 11px; margin-top: 4px; color: var(--text-3); background: none; padding: 0; }
.pb-instr { margin: 10px 0 14px; }
.pb-instr pre { white-space: pre-wrap; font-size: 12px; max-height: 280px; overflow: auto; }
@media (max-width: 640px) { .ob-2col, .pb-setup-grid { grid-template-columns: 1fr; } }
.plat-how { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: -6px 0 16px; }
.plat-how .ic { flex: none; margin-top: 1px; }
/* team step (simplified) */
.ob-team-core { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 6px; }
.ob-team-core b { display: block; font-size: 14px; }
.ob-team-core span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.ob-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-pick { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.ob-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ob-pick-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.ob-pick b { display: block; font-size: 14px; }
.ob-pick span:not(.ob-pick-ic) { display: block; font-size: 12.5px; color: var(--text-2); }
.ob-pick.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.ob-pick.on .ob-pick-ic { background: var(--accent); color: var(--accent-text); }
.ob-day { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ob-day-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 14px; }
.ob-day-row:first-child { border-top: 0; }
.ob-day-row > span { flex: 1; }
.ob-day-row .ic { color: var(--text-3); flex: none; }
.ob-time { width: 120px; flex: none; }
.ob-num { width: 64px; flex: none; }
.ob-adv { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; padding: 4px 14px; }
.ob-adv > summary { cursor: pointer; padding: 10px 0; font-size: 13.5px; font-weight: 600; color: var(--text-2); display: flex; gap: 8px; align-items: center; list-style: none; }
.ob-adv > summary::-webkit-details-marker { display: none; }
.ob-adv[open] { padding-bottom: 12px; }
.ob-win { gap: 6px; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; }
.ob-win .ob-time { width: 108px; }
.ob-win b { width: auto; min-width: 74px; }
@media (max-width: 640px) { .ob-picks { grid-template-columns: 1fr; } .ob-day-row { flex-wrap: wrap; } .ob-day-row > span { flex-basis: calc(100% - 40px); } }

/* ------------------------------------------------------------ Themen */
.top-page { max-width: 1240px; }
.top-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 18px; font-size: 13px; }
.top-step { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.top-step b { width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); display: inline-grid; place-items: center; font-size: 11.5px; }
.top-sync { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.top-sync.ok { background: color-mix(in srgb, #22a06b 14%, transparent); color: #1f8a5c; }
.top-sync.wait { background: color-mix(in srgb, #e2a03f 16%, transparent); color: #b7791f; }
.top-inbox { padding: 16px 18px; margin-bottom: 20px; border-color: color-mix(in srgb, var(--focus) 40%, var(--border)); }
.top-inbox h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.top-wishes { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.top-wish { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); font-size: 13.5px; }
.top-wish.has-conflict { border-color: color-mix(in srgb, #e2a03f 60%, var(--border)); }
.top-wish.flash { animation: topflash 1.4s ease; }
@keyframes topflash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 50%, transparent); } 100% { box-shadow: none; } }
.top-av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2, var(--surface)); border: 1px solid var(--border); font-weight: 700; font-size: 12px; flex: none; }
.top-av.bot { background: var(--text); color: var(--bg); border: 0; }
.top-said { margin: 0; padding: 0 0 0 10px; border-left: 3px solid var(--border-strong); color: var(--text-2); font-style: italic; }
.top-understood { display: flex; gap: 6px; align-items: flex-start; color: var(--text); }
.top-diff { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.top-diff-r { display: grid; grid-template-columns: 90px 1fr 14px 1fr; gap: 8px; align-items: start; font-size: 13px; }
.top-diff-k { font-weight: 600; color: var(--text-2); font-size: 12px; padding-top: 1px; }
.top-diff-a { color: var(--text-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-2) 50%, transparent); }
.top-diff-b { font-weight: 500; }
.top-diff-r:has(.top-diff-b:only-of-type) { grid-template-columns: 90px 1fr; }
.top-wact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.top-conf-n { font-size: 12px; }
.top-wimgs, .top-wish-imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.top-wish-imgs:not(:empty) { margin-bottom: 8px; }
.top-wimg { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid #22a06b; }
.top-wimg.bad { border-color: #d64545; }
.top-wimg.busy { opacity: .5; }
.top-wimg img { width: 100%; height: 100%; object-fit: cover; }
.top-wimg i { position: absolute; left: 3px; bottom: 3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #22a06b; color: #fff; }
.top-wimg.bad i { background: #d64545; }
.top-wimg button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.top-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; color: inherit; font: inherit; padding: 0; }
.top-card:hover, .top-card:focus-visible { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); outline: none; }
.top-card.paused { opacity: .62; }
.top-card.general { border-style: dashed; }
.top-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 120px; background: var(--bg); }
.top-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.top-noimg { display: grid; place-items: center; color: var(--text-3, var(--text-2)); opacity: .6; }
.top-card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.top-about { font-size: 13px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.top-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.chip.sm { height: 22px; font-size: 11.5px; padding: 0 8px; gap: 4px; }
.chip.warn { background: color-mix(in srgb, #e2a03f 18%, transparent); }
.top-add, .top-ghost { align-items: center; justify-content: center; gap: 6px; min-height: 230px; border-style: dashed; background: transparent; padding: 20px; text-align: center; }
.top-ghost { border-color: color-mix(in srgb, var(--focus) 50%, var(--border)); }
.top-foot { font-size: 13px; margin-top: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--text); text-decoration: underline; cursor: pointer; font: inherit; }
.top-log { margin-top: 10px; font-size: 13px; }
.top-log summary { cursor: pointer; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.top-log ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.top-tabs { margin-bottom: 16px; }
.top-sheet { display: flex; flex-direction: column; gap: 4px; }
.top-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.top-struct { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 6px 0 10px; background: var(--surface); }
.top-struct-h { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-bottom: 8px; flex-wrap: wrap; }
.top-struct-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.top-struct-c { position: relative; }
.top-struct-n { position: absolute; top: 0; right: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.top-struct-c .field { margin: 0; }
.top-imgs { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 8px; }
.top-imgcol { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.top-imgcol.good { border-color: color-mix(in srgb, #22a06b 45%, var(--border)); }
.top-imgcol.bad { border-color: color-mix(in srgb, #d64545 40%, var(--border)); }
.top-imgcol-h { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.top-imgrow { display: flex; gap: 8px; flex-wrap: wrap; min-height: 74px; border-radius: 8px; transition: background .15s; }
.top-imgrow.over { background: color-mix(in srgb, var(--focus) 12%, transparent); }
.top-img { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; }
.top-img img { width: 100%; height: 100%; object-fit: cover; }
.top-img button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.top-img-add { width: 74px; height: 74px; border-radius: 8px; border: 1.5px dashed var(--border-strong); background: transparent; color: var(--text-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; cursor: pointer; }
.top-img-add:hover { color: var(--text); border-color: var(--text-2); }
.top-img-hint { font-size: 12px; margin: 6px 0 0; }
.top-imgcol { transition: background .15s, box-shadow .15s; }
.top-imgcol.over { background: color-mix(in srgb, var(--focus) 8%, transparent); box-shadow: 0 0 0 2px var(--focus) inset; }
.top-imgrow.busy { opacity: .55; pointer-events: none; }
.top-imgrow.busy::after { content: ""; width: 18px; height: 18px; align-self: center; border: 2px solid var(--border-strong); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; }
.top-appr { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; cursor: pointer; }
.top-appr > span { display: flex; flex-direction: column; gap: 2px; }
.top-appr .faint { font-size: 12.5px; }
.top-sheet-act { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.top-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px; text-align: center; }
.top-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top-hist li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; }
.top-hist li.cur { border-color: var(--border-strong); background: var(--surface); }
.top-hist-v { font: 600 12px var(--mono, monospace); padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.top-examples { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.top-wish-res { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.top-wish-res.warn { background: color-mix(in srgb, #e2a03f 14%, transparent); }
.top-dec { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.top-dec-r { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.top-dec-r span { margin-left: auto; font-size: 12px; }
.badge.warn { background: color-mix(in srgb, #e2a03f 20%, transparent); color: #b7791f; }
@media (max-width: 760px) {
  .top-row2, .top-struct-g, .top-imgs { grid-template-columns: 1fr; }
  .top-diff-r { grid-template-columns: 1fr; }
  .top-diff-r > svg { display: none; }
}

/* ------------------------------------------------------------ 5-point navigation */
.nav a[hidden] { display: none; }
.me-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px 8px; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; font-size: 13px; }
.me-row .btn-group button { min-width: 34px; }
.me-mini { padding: 0; width: 36px; }
.hub-bar { display: flex; align-items: center; gap: 4px; padding: 14px 36px 0; max-width: 1600px; margin: 0 auto; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.hub-bar::-webkit-scrollbar { display: none; }
.hub-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 13px; color: var(--text-3); padding: 0 14px 10px 0; margin-right: 6px; border-right: 1px solid var(--border); white-space: nowrap; }
.hub-bar a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 11px; font-weight: 600; font-size: 13.5px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.hub-bar a:hover { color: var(--text); }
.hub-bar a.on { color: var(--text); border-bottom-color: var(--text); }
.hub-bar .badge { height: 18px; min-width: 18px; font-size: 11px; }
.hub-done { text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hub-done h1 { margin: 6px 0 0; font-size: 24px; }
.hub-done p { max-width: 420px; margin: 0 0 12px; }
.hub-done-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #22a06b 16%, transparent); color: #1f8a5c; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hub-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); cursor: pointer; text-align: left; color: inherit; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hub-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.hub-tile b { font-size: 17px; margin-top: 8px; }
.hub-tile-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--text); color: var(--bg); }
.hub-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hub-rc { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); color: inherit; }
.hub-rc:hover { border-color: var(--border-strong); }
.hub-rc-th { position: relative; overflow: hidden; aspect-ratio: 4/5; display: grid; place-items: center; background: var(--bg); color: var(--text-3); }
.hub-rc-th.r-9-16 { aspect-ratio: 4/5; }
.hub-rc-th img { width: 100%; height: 100%; object-fit: cover; }
.hub-rc-b { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.hub-rc-b .faint { font-size: 11.5px; display: inline-flex; gap: 4px; align-items: center; }
.hub-more { gap: 8px; margin-top: 12px; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .hub-bar { padding: 10px 16px 0; }
  .hub-title { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center; }
  .tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--text-3); font-size: 10.5px; font-weight: 600; min-width: 0; }
  .tabbar a[hidden] { display: none; }
  .tabbar > * { flex: 1 1 0; min-width: 0; }
  .tabbar .tb-gap { display: block; }
  .tabbar .tb-create { flex: 1 1 0; }
  .tabbar a.active { color: var(--text); }
  .tabbar a small { font-size: 10.5px; white-space: nowrap; }
  .tabbar .tb-create span { width: 46px; height: 46px; border-radius: 16px; background: var(--text); color: var(--bg); display: grid; place-items: center; box-shadow: var(--shadow-2); margin-top: -8px; }
  .tb-n { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--down); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
  .tb-n.hidden { display: none; }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toasts, #toasts { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 600px) {
  .hub-tiles { gap: 10px; }
  .hub-tile { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; }
  .hub-tile b { margin: 0; font-size: 15.5px; }
  .hub-tile .faint { display: none; }
  .hub-tile-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; }
  .hub-recent { grid-template-columns: repeat(2, 1fr); }
}
.hub-tile-t { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 600px) { .hub-tile-t { gap: 0; } .hub-tile-t .faint { display: block; font-size: 12.5px; } }

/* ------------------------------------------------------------ review: previous / next set */
.review-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.set-arrow { flex: none; width: 52px; height: 72px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; box-shadow: var(--shadow-1); font-size: 11px; font-weight: 650; transition: transform .15s, background .15s; }
.set-arrow:hover:not(:disabled) { background: var(--surface-2); transform: scale(1.04); }
.set-arrow:disabled { opacity: .3; cursor: default; }
.review-actions { display: flex; align-items: center; gap: 10px; }
.set-btn { display: none; }
@media (max-width: 900px), (hover: none) {
  .set-arrow { display: none; }
  .review-actions { width: 100%; max-width: 560px; justify-content: space-between; }
  .review-actions .rate { flex: 1; justify-content: center; }
  .review-actions .rate button { flex: 1; justify-content: center; padding: 0 10px; }
  .set-btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
  .set-btn:disabled { opacity: .3; }
  /* keep image + buttons above the bottom tab bar */
  .review-img { width: min(560px, 100%, calc((100dvh - 430px - env(safe-area-inset-bottom)) * var(--ar, .8))); }
}
/* page headers: the text never gets squeezed next to the buttons */
.page-head > .grow { flex: 1 1 280px; min-width: 0; }
@media (max-width: 600px) {
  .page-head { align-items: stretch; }
  .page-head > .btn, .page-head > a.btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 900px) {
  .review-page .page-head { display: none; }
  .review-page { padding-top: 12px; }
}
@media (max-width: 900px), (hover: none) {
  .review-actions .rate button { white-space: nowrap; font-size: 14px; gap: 6px; }
}
@media (max-width: 480px) {
  .review-actions { gap: 8px; }
  .review-actions .rate { gap: 8px; }
  .review-actions .rate button { height: 52px; padding: 0 6px; }
  .review-actions .rate button .ic { width: 24px; height: 24px; }
  .review-actions .rate button .rl { display: none; }
}

/* onboarding stepper: equal columns, circle above label, line behind – always fits (8 steps) */
.ob-progress { display: grid !important; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 0 !important; overflow: visible !important; margin-bottom: 24px; }
.ob-progress .ob-dot { position: relative; flex-direction: column; gap: 7px; padding: 0; min-width: 0; font-size: 12px; }
.ob-progress .ob-dot span { display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.ob-progress .ob-dot i { position: relative; z-index: 1; flex: none; }
.ob-progress .ob-dot::before { content: ''; position: absolute; top: 12px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; border-radius: 2px; background: var(--border-strong); }
.ob-progress .ob-dot:first-child::before { display: none; }
.ob-progress .ob-dot.done::before, .ob-progress .ob-dot.on::before { background: var(--text); }
.ob-progress .ob-dot:hover span { color: var(--text); }
@media (max-width: 720px) {
  .ob-progress .ob-dot span { display: none !important; }
  .ob-progress .ob-dot.on span { display: none !important; }
  .ob-progress .ob-dot::before { left: calc(-50% + 14px); right: calc(50% + 14px); }
}

/* ===== Video-Studio v3: stage + inspector + multi-track timeline ===== */
.vst2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "stage side" "tl tl"; height: 100vh; height: 100dvh; min-height: 0; }
.vst2 .vst-top { grid-area: top; position: static; padding: 8px 14px; gap: 8px; }
.vst2 .vst-stage { grid-area: stage; padding: 16px; justify-content: center; min-height: 0; overflow: hidden; }
.vst2 .vst-side { grid-area: side; max-height: none; position: static; top: auto; overflow: auto; padding: 12px 14px 20px; min-height: 0; }
.vst2 .vst-timeline { grid-area: tl; max-width: none; width: auto; border-top: 1px solid var(--border); background: var(--surface); min-width: 0; }
.vst2 .vst-player-wrap { --pmaxh: calc(100dvh - var(--toph, 52px) - var(--tlh, 250px) - 32px); max-width: none; width: min(100%, calc(var(--pmaxh) * var(--arn, .8))); }
.vst2 .vst-render { width: auto; max-width: none; flex-direction: row; align-items: center; gap: 6px; }
.vst2 .vst-render .vst-job { flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; font-size: 13px; }
.vst2 .vst-render .vst-bar { width: 80px; }
.vst-fail { color: var(--down); display: inline-grid; place-items: center; }
.vst2 .vst-tabs button:not(.on) span { display: none; }
/* text layers drawn by the editor on top of the preview */
.vst-tx { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.vst-tx .txb { box-sizing: border-box; }
.vst-txl { position: absolute; pointer-events: auto; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.vst-txl.ghost { opacity: 0; }
.vst-txl.ghost:hover { opacity: 1; outline: 1.5px dashed rgba(255,255,255,.7); outline-offset: 4px; background: rgba(255,255,255,.04); }
.vst-txl.ghost.on, .vst-txl.on { opacity: 1; outline: 1.5px solid var(--focus); outline-offset: 5px; cursor: move; }
.vst-txl.on.ghost { opacity: 1; }
.vst-txh { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--focus); border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.4); touch-action: none; }
.vst-txh.nw { left: -12px; top: -12px; cursor: nwse-resize; } .vst-txh.ne { right: -12px; top: -12px; cursor: nesw-resize; }
.vst-txh.sw { left: -12px; bottom: -12px; cursor: nesw-resize; } .vst-txh.se { right: -12px; bottom: -12px; cursor: nwse-resize; }
.vst-txh.e, .vst-txh.w { width: 8px; height: 22px; border-radius: 4px; top: 50%; margin-top: -11px; cursor: ew-resize; }
.vst-txh.e { right: -10px; } .vst-txh.w { left: -10px; }
@media (pointer: coarse) { .vst-txh { width: 22px; height: 22px; } .vst-txh.nw { left: -16px; top: -16px; } .vst-txh.ne { right: -16px; top: -16px; } .vst-txh.sw { left: -16px; bottom: -16px; } .vst-txh.se { right: -16px; bottom: -16px; } .vst-txh.e, .vst-txh.w { width: 12px; height: 30px; margin-top: -15px; } }
.vst-txbar { position: absolute; z-index: 6; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(20,20,22,.92); box-shadow: 0 6px 20px rgba(0,0,0,.4); pointer-events: auto; }
.vst-txbar button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: #fff; font: 600 12px/1 var(--font); cursor: pointer; }
.vst-txbar button:hover { background: rgba(255,255,255,.12); }
.vst-tx-safe { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .15s; background: repeating-linear-gradient(135deg, rgba(255,80,80,.13) 0 6px, transparent 6px 12px); }
.vst-tx-safe.t { top: 0; border-bottom: 1px dashed rgba(255,120,120,.6); } .vst-tx-safe.b { bottom: 0; border-top: 1px dashed rgba(255,120,120,.6); }
.vst-tx.drag .vst-tx-safe { opacity: .55; } .vst-tx.drag.unsafe .vst-tx-safe { opacity: 1; }
.vst-guide { position: absolute; opacity: 0; background: #FF3EA5; pointer-events: none; }
.vst-guide.v { left: 50%; top: 0; bottom: 0; width: 1px; } .vst-guide.h { top: 50%; left: 0; right: 0; height: 1px; }
.vst-tx.gv .vst-guide.v, .vst-tx.gh .vst-guide.h { opacity: 1; }
/* timeline */
.vst-tlbar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--border); min-width: 0; }
.vst-tlbar .btn span { margin-left: 2px; }
.vst-playb { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; flex: none; }
.vst-time { font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; margin: 0 6px; white-space: nowrap; }
.vst-mute.off { color: var(--text-3); position: relative; }
.vst-mute.off::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: currentColor; transform: rotate(-40deg); }
.vst-tlsep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; flex: none; }
.vst-zoom { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.vst-zoom input { width: 90px; }
.vst-tls { overflow: auto; max-height: 34vh; overscroll-behavior: contain; position: relative; }
.vst-tlin { position: relative; padding-bottom: 6px; min-width: 100%; }
.vst-row { display: flex; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.vst-tlab { position: sticky; left: 0; z-index: 6; flex: 0 0 var(--lbl); width: var(--lbl); display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface); border-right: 1px solid var(--border); }
.vst-tlab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.vst-tlab-add { border: 0; background: var(--surface-2); color: var(--text); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; flex: none; }
.vst-lane { position: relative; flex: none; min-height: 34px; }
.vst-row.ruler .vst-lane { height: 24px; min-height: 0; cursor: pointer; background-image: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px var(--minor)); background-size: 100% 6px; background-repeat: repeat-x; background-position: 0 100%; touch-action: none; }
.vst-row.ruler .vst-tlab { background: var(--surface); }
.vst-tick { position: absolute; top: 3px; font: 500 10.5px/1 var(--mono); color: var(--text-3); padding-left: 3px; border-left: 1px solid var(--border-strong); height: 21px; white-space: nowrap; pointer-events: none; }
.vst-row.video .vst-lane { height: 54px; }
.vst-row.text .vst-lane { min-height: var(--lh); }
.vst-row.sound .vst-lane { height: 34px; }
.vst-row.subs .vst-lane { height: 22px; min-height: 0; }
.vst-blk { position: absolute; top: 3px; bottom: 3px; border-radius: 7px; overflow: hidden; cursor: pointer; display: flex; align-items: center; box-sizing: border-box; user-select: none; -webkit-user-select: none; }
.vst-blk-t { display: flex; align-items: center; gap: 5px; padding: 0 8px; min-width: 0; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; position: relative; z-index: 1; }
.vst-blk-t em { font-style: normal; font-weight: 500; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.vst-blk.vb { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.vst-blk.vb.gfx { background: linear-gradient(135deg, color-mix(in srgb, var(--text) 10%, var(--surface-2)), var(--surface-2)); }
.vst-blk.vb.clip { background: #1a1a1c var(--strip, none) left center / auto 100% repeat-x; color: #fff; border-color: #333; }
.vst-blk.vb.clip .vst-blk-t { text-shadow: 0 1px 3px rgba(0,0,0,.9); background: linear-gradient(90deg, rgba(0,0,0,.55), transparent); align-self: stretch; }
.vst-blk.vb.on { outline: 2px solid var(--focus); outline-offset: 0; z-index: 3; }
.vst-blk.drag { opacity: .85; z-index: 5; box-shadow: var(--shadow-3); cursor: grabbing; }
.vst-blk.tb { top: calc(var(--top) + 3px); bottom: auto; height: calc(var(--lh) - 6px); background: color-mix(in srgb, var(--dir) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--dir) 55%, transparent); color: var(--text); }
.vst-blk.tb.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); z-index: 3; }
.vst-blk.ab { background: color-mix(in srgb, #10B981 18%, var(--surface)); border: 1px solid color-mix(in srgb, #10B981 50%, transparent); color: var(--text); }
.vst-blk.ab.vo { background: color-mix(in srgb, #F59E0B 18%, var(--surface)); border-color: color-mix(in srgb, #F59E0B 50%, transparent); cursor: grab; }
.vst-blk.sb { top: 5px; bottom: 5px; border-radius: 4px; background: color-mix(in srgb, var(--focus) 35%, transparent); }
.vst-hd { position: absolute; top: 0; bottom: 0; width: 12px; z-index: 2; cursor: ew-resize; touch-action: none; background: var(--focus); display: block; }
.vst-blk.tb .vst-hd { background: #fff; opacity: .9; }
.vst-blk.tb.on .vst-hd { background: rgba(255,255,255,.95); }
.vst-hd::after { content: ''; position: absolute; left: 4px; top: 30%; bottom: 30%; width: 4px; border-left: 1.5px solid rgba(0,0,0,.45); border-right: 1.5px solid rgba(0,0,0,.45); }
.vst-hd.l { left: 0; border-radius: 6px 0 0 6px; } .vst-hd.r { right: 0; border-radius: 0 6px 6px 0; }
@media (pointer: coarse) { .vst-hd { width: 18px; } }
.vst-trm2 { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); display: grid; place-items: center; z-index: 4; cursor: pointer; padding: 0; box-shadow: var(--shadow-1); }
.vst-trm2.cut { opacity: .55; }
.vst-trm2:hover { opacity: 1; color: var(--text); border-color: var(--text-2); }
.vst-lane-add { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); height: 24px; padding: 0 10px; border: 1px dashed var(--border-strong); border-radius: 999px; background: transparent; color: var(--text-2); font: 600 11.5px/1 var(--font); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.vst-lane-add:hover { color: var(--text); border-color: var(--text-2); background: var(--surface-2); }
.vst-row.subs .vst-lane-add { height: 18px; }
.vst-ph { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #FF3EA5; z-index: 7; pointer-events: none; will-change: transform; }
.vst-ph::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid #FF3EA5; }
.vst-snapl { position: absolute; top: 24px; bottom: 0; width: 1px; background: #FFB020; z-index: 6; pointer-events: none; }
.vst-durtip { position: absolute; transform: translate(-50%, -100%); background: var(--text); color: var(--bg); font: 600 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; z-index: 9; pointer-events: none; white-space: nowrap; }
.vst-drop { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--focus); border-radius: 2px; z-index: 6; pointer-events: none; }
.vst-drop[hidden] { display: none; }
/* inspector */
.vst-insp { display: flex; flex-direction: column; gap: 10px; }
.vst-insp-h { display: flex; align-items: center; gap: 6px; padding: 2px 0 4px; }
.vst-insp-h .grow { min-width: 0; display: flex; flex-direction: column; margin-left: 4px; }
.vst-insp-h b { font-size: 14.5px; }
.vst-insp-h .faint { font-size: 12px; font-family: var(--mono); }
.vst-ih-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.vst-ih-ic.tx { background: var(--accent); color: var(--accent-text); }
.vst-sc-n.on { background: var(--text); color: var(--bg); }
.vst-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.vst-card > .label, .vst-card label.label { margin: 0; }
.vst-sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text); margin: -2px 0; }
.vst-sec > summary::-webkit-details-marker { display: none; }
.vst-sec > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); transition: transform .15s; }
.vst-sec[open] > summary { margin-bottom: 6px; }
.vst-sec[open] > summary::after { transform: rotate(-135deg); }
.vst-h0 { margin: 0; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vst-h0 .faint { font-weight: 500; font-size: 12px; }
.vst-txta { font-size: 16px; min-height: 64px; resize: vertical; }
.vst-mini-hint { font-size: 11.5px; margin: 0; line-height: 1.4; }
.vst-pres { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.vst-pre, .vst-bgb { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; color: var(--text); text-align: center; transition: border-color .12s, transform .12s; }
.vst-pre:hover, .vst-bgb:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.vst-pre.on, .vst-bgb.on { border-color: var(--focus); box-shadow: 0 0 0 1.5px var(--focus); }
.vst-pre-v { height: 54px; display: grid; place-items: center; background: radial-gradient(120% 90% at 70% 10%, color-mix(in srgb, var(--ac) 30%, transparent), transparent 60%), linear-gradient(160deg, #3a3a3e, var(--bg)); overflow: hidden; padding: 4px; }
.vst-pre-v .txb { max-width: 92%; white-space: nowrap; }
.vst-pre-v .txb > span { white-space: nowrap !important; }
.vst-pre-n, .vst-bgb > span:last-child { font-size: 11.5px; font-weight: 600; padding: 5px 4px; }
.vst-bgk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vst-bgk.five { grid-template-columns: repeat(5, 1fr); }
.vst-bgk .vst-pre-v { height: 40px; }
.vst-fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vst-fontb { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; min-width: 0; }
.vst-fontb b { font-size: 20px; line-height: 1.1; font-weight: 600; }
.vst-fontb span { font-size: 11px; font-weight: 600; }
.vst-fontb em { font-style: normal; font-size: 10px; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-fontb.on { border-color: var(--focus); box-shadow: 0 0 0 1.5px var(--focus); }
.vst-sl { display: grid; grid-template-columns: 84px 1fr 56px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.vst-sl input { width: 100%; }
.vst-sl b { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.vst-tgl { display: flex; gap: 6px; align-items: center; }
.vst-tg.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.vst-sw { gap: 6px; align-items: center; }
.vst-swb { width: 30px; height: 30px; }
.vst-swb.tok { width: 34px; height: 34px; }
.vst-swb.tok i { font: 700 10px/1 var(--mono); font-style: normal; color: #fff; mix-blend-mode: difference; }
.vst-swb.auto { background: var(--surface-2); color: var(--text-2); }
.vst-swsep { width: 1px; height: 22px; background: var(--border); margin: 0 2px; }
.vst-time2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vst-time2 label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.vst-time2 .input { font-size: 16px; }
.vst-actions { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.vst-ovw .vst-h { margin: 8px 0 2px; display: flex; gap: 6px; align-items: center; }
.vst-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vst-qb { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 3px; cursor: pointer; color: var(--text); transition: transform .12s, border-color .12s; }
.vst-qb:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.vst-qb b { font-size: 13.5px; margin-top: 4px; } .vst-qb span { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.vst-qb.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); } .vst-qb.primary span { color: color-mix(in srgb, var(--accent-text) 80%, transparent); }
.vst-olist { display: flex; flex-direction: column; gap: 4px; }
.vst-orow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; }
.vst-orow:hover { border-color: var(--border-strong); }
.vst-orow img, .vst-oic { width: 30px; height: 38px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface-3); }
.vst-oic.tx { background: color-mix(in srgb, var(--dir) 25%, var(--surface)); height: 30px; }
.vst-orow .grow { min-width: 0; display: flex; flex-direction: column; }
.vst-orow b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-orow em { font-style: normal; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-sc-b { gap: 12px; }
/* phone / tablet: picture on top, timeline, then the inspector (sticky player) */
@media (max-width: 960px) {
  .vst2 { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  .vst2 .vst-top { position: sticky; top: 0; z-index: 20; }
  .vst2 .vst-render #vst-make span { display: none; }
  .vst2 .vst-stage { order: 1; padding: 10px; position: sticky; top: var(--toph, 52px); z-index: 15; background: var(--surface-2); border-bottom: 1px solid var(--border); }
  .vst2 .vst-player-wrap { --pmaxh: 31dvh; }
  .vst2 .vst-timeline { order: 2; border-top: 0; position: sticky; top: calc(var(--toph, 52px) + var(--stageh, 40dvh)); z-index: 14; box-shadow: 0 6px 12px -8px rgba(0,0,0,.25); }
  .vst2 .vst-side { order: 3; border: 0; padding: 12px 12px calc(90px + env(safe-area-inset-bottom)); }
  .vst-tls { max-height: 21vh; }
  .vst-tlbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 6px 8px; }
  .vst-tlbar::-webkit-scrollbar { display: none; }
  .vst-tlbar .btn span, .vst-zoom input { display: none; }
  .vst-tlbar .vst-addtx span { display: inline; }
  .vst-tlab span { display: none; }
  .vst-tlab { justify-content: center; padding: 0; }
  .vst-tlab-add { display: none; }
}
@media (max-width: 960px) and (max-height: 760px) { .vst2 .vst-player-wrap { --pmaxh: 32dvh; } .vst-tls { max-height: 22vh; } }
.vst-blk.vb + .vst-blk.vb .vst-blk-t, .vst-blk.vb:not([data-vb="0"]) .vst-blk-t { padding-left: 14px; }
@media (max-width: 700px) {
  .vst-time .faint, [data-tl=redo], .vst-tlsep, .vst-zoom input { display: none; }
  .vst-tlbar .spacer { flex: 0 0 4px; }
  .vst-time { margin: 0 2px 0 6px; }
}
/* ===== Video-Studio: edit by text ===== */
.vst-ih-ic.cut { background: #FF3EA5; color: #fff; }
.vst-cut-intro b { font-size: 14.5px; }
.vst-cut-empty { align-items: center; text-align: center; padding: 26px 16px; gap: 10px; }
.vst-cut-empty p { margin: 0; font-size: 13px; line-height: 1.5; }
.vst-cut-h { display: flex; align-items: center; gap: 8px; }
.vst-cut-h b { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-cut-h .faint { font: 600 12px/1 var(--mono); }
.vst-cut-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-words { font-size: 16px; line-height: 2; color: var(--text); user-select: none; -webkit-user-select: none; padding: 4px 2px; max-height: none; }
.vst-w { cursor: pointer; border-radius: 5px; padding: 2px 1px; transition: background .08s; -webkit-tap-highlight-color: transparent; }
.vst-w:hover { background: var(--surface-2); }
.vst-w.fil { color: #FF7A45; font-weight: 600; }
.vst-w.soft { color: var(--text-3); }
.vst-w.cut { color: var(--text-3); text-decoration: line-through; text-decoration-color: #FF3EA5; text-decoration-thickness: 2px; opacity: .55; }
.vst-w.now { background: color-mix(in srgb, #FF3EA5 22%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, #FF3EA5 50%, transparent); }
.vst-w.sel { background: var(--focus); color: #fff; opacity: 1; }
.vst-w.sel.cut { background: color-mix(in srgb, var(--focus) 55%, transparent); }
.vst-pz { border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--text-3); font: 600 10.5px/1 var(--mono); border-radius: 999px; padding: 3px 7px; cursor: pointer; vertical-align: middle; }
.vst-pz:hover { color: var(--text); border-color: #FF3EA5; }
.vst-cutbar { position: sticky; bottom: 8px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-3); flex-wrap: wrap; }
.vst-cutbar[hidden] { display: none; }
.vst-cutbar-n { font-size: 12.5px; font-weight: 600; flex: 1; min-width: 80px; }
.vst-cutbar-n em { font-style: normal; font-weight: 500; opacity: .7; }
.vst-cutbar .btn.ghost { color: var(--bg); }
.vst-cutbar .btn.danger { background: #FF3EA5; border-color: #FF3EA5; color: #fff; }
.vst-cutbar .btn.primary { background: var(--bg); color: var(--text); border-color: var(--bg); }
.vst-bestpop { padding: 6px; max-width: 280px; }
.vst-bestpop p { font-size: 12.5px; margin: 4px 0 10px; line-height: 1.4; }
@media (max-width: 960px) { .vst-cutbar { bottom: calc(10px + env(safe-area-inset-bottom)); } .vst-words { font-size: 17px; line-height: 2.1; } }
/* ===== Video-Studio: AI analysis ===== */
.vst-an { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, #7B5CFF 9%, var(--surface)), color-mix(in srgb, #FF3EA5 7%, var(--surface))); border: 1px solid color-mix(in srgb, #7B5CFF 22%, var(--border)); }
.vst-an.loading { align-items: center; justify-content: center; min-height: 54px; }
.vst-an.busy { opacity: .75; pointer-events: none; }
.vst-an.empty { flex-direction: row; align-items: center; gap: 12px; }
.vst-an.empty .grow { flex: 1; min-width: 0; }
.vst-an.empty b, .vst-an-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #7B5CFF; }
.vst-an.empty p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; }
.vst-an-h { display: flex; align-items: center; justify-content: space-between; }
.vst-an-sum { margin: 0; font-size: 13.5px; line-height: 1.5; }
.vst-an-hook { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12.5px; }
.vst-an-hook > span { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: var(--text-3); }
.vst-an-hook .stars { color: #FFB020; letter-spacing: 1px; font-size: 13px; }
.vst-an-hook .stars.s1, .vst-an-hook .stars.s2 { color: #FF7A45; }
.vst-an-hook em { color: var(--text-2); flex-basis: 100%; }
.vst-an-rel { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.vst-an-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.vst-an-bar i { display: block; min-width: 0; }
.vst-an-bar i.k { background: #22C55E; } .vst-an-bar i.m { background: #FFB020; } .vst-an-bar i.c { background: #FF3EA5; }
.vst-an-sg { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-an-sg .label, .vst-an-tips .label, .vst-an-ocr .label { flex-basis: 100%; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.vst-sg { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: transform .08s, border-color .1s; }
.vst-sg:hover { border-color: #7B5CFF; }
.vst-sg:active { transform: scale(.97); }
.vst-sg em { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; background: color-mix(in srgb, #7B5CFF 14%, transparent); color: #7B5CFF; flex: none; }
.vst-sg b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vst-sg svg { flex: none; color: var(--text-3); }
.vst-an-more { display: none; flex-direction: column; gap: 10px; }
.vst-an.open .vst-an-more { display: flex; }
.vst-an-tg { align-self: flex-start; }
.vst-an-tips, .vst-an-ocr { display: flex; flex-direction: column; gap: 4px; }
.vst-an-tips p, .vst-an-ocr p { margin: 0; font-size: 12.5px; line-height: 1.45; display: flex; gap: 6px; }
.vst-an-tips svg { flex: none; margin-top: 2px; color: #FFB020; }
.vst-an-ocr b { font: 600 11.5px/1.6 var(--mono); color: var(--text-3); }
.vst-an-fs { display: flex; flex-wrap: wrap; gap: 5px; }
.vst-an-f { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; }
.vst-an-f em { font-style: normal; font-weight: 500; color: var(--text-3); }
.vst-an-f i { font-style: normal; color: #22C55E; font-size: 11px; }
.vst-vd { display: inline-flex; align-items: center; gap: 3px; margin: 0 4px 0 2px; padding: 1px 7px; border-radius: 99px; font-size: 11px; line-height: 1.6; font-weight: 600; vertical-align: 2px; max-width: 100%; white-space: normal; }
.vst-vd.cut { background: color-mix(in srgb, #FF3EA5 14%, transparent); color: #D61F80; }
.vst-vd.maybe { background: color-mix(in srgb, #FFB020 18%, transparent); color: #A36A00; }
.vst-w.v-cut:not(.cut) { background: color-mix(in srgb, #FF3EA5 9%, transparent); }
.vst-w.v-maybe:not(.cut) { background: color-mix(in srgb, #FFB020 10%, transparent); }
@media (max-width: 720px) { .vst-an.empty { flex-direction: column; align-items: stretch; } }
/* ===== Video-Studio: KI-Schnitt-Assistent ===== */
.vst-as { gap: 10px; border-color: color-mix(in srgb, #7B5CFF 30%, var(--border)); box-shadow: 0 6px 22px -14px color-mix(in srgb, #7B5CFF 60%, transparent); }
.vst-as-h { display: flex; gap: 10px; align-items: flex-start; }
.vst-as-h b { font-size: 14.5px; }
.vst-as-h p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; }
.vst-as-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7B5CFF, #FF3EA5); }
.vst-as-f { display: flex; gap: 6px; }
.vst-as-f .input { flex: 1; min-width: 0; font-size: 15px; height: 42px; }
.vst-as-f .btn.icon { width: 42px; height: 42px; flex: none; }
.vst-as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-as-chips .chip { font-size: 12.5px; }
.vst-as-busy { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.vst-as-q { margin: 0; display: flex; gap: 6px; font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.vst-as-q svg { flex: none; margin-top: 2px; color: #7B5CFF; }
.vst-as-say { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vst-as-say b { font-size: 14px; line-height: 1.4; flex: 1 1 200px; }
.vst-as-len { font: 600 12.5px/1 var(--mono); padding: 4px 8px; border-radius: 99px; background: color-mix(in srgb, #22C55E 15%, transparent); color: #15803D; white-space: nowrap; }
.vst-as-ops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.vst-as-ops li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.vst-as-ops svg { flex: none; margin-top: 2px; color: #7B5CFF; }
.vst-as-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-as-acts .btn.primary { flex: 1 1 auto; }
@media (max-width: 720px) { .vst-as-acts .btn { flex: 1 1 auto; } }
/* ===== music dialog: length + "why" ===== */
.mu-why { margin: -4px 0 0; font-size: 12.5px; line-height: 1.45; }
.mu-why svg { vertical-align: -2px; margin-right: 4px; }
.mu-why svg { color: #7B5CFF; }
.mu-lenf input[type=range] { width: 100%; }
.mu-lenv { font: 700 14px/1 var(--mono); letter-spacing: 0; white-space: nowrap; }
.mu-lenh { align-items: center; gap: 8px; font-size: 12px; }
.mu-lenh .faint { flex: 1; }
.mu-lenh .btn.ghost.on, .mu-lenh .btn.ghost.on:hover { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text-3); }
/* ===== Timeline: hover delete + selectable sound ===== */
.vst-blk-x { position: absolute; top: 50%; right: 6px; transform: translateY(-50%) scale(.85); width: 20px; height: 20px; border-radius: 99px; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; z-index: 4;
  background: rgba(20,20,22,.72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 1px 4px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s, background .12s; }
.vst-blk-x:hover { background: #E5484D; transform: translateY(-50%) scale(1); }
.vst-blk-x:focus-visible { opacity: 1; pointer-events: auto; outline: 2px solid var(--focus); }
@media (hover: hover) { .vst-blk:hover > .vst-blk-x { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); } }
/* touch: only on the selected block */
@media (hover: none) { .vst-blk.on > .vst-blk-x { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); width: 24px; height: 24px; } }
.vst-blk.drag > .vst-blk-x { display: none; }
/* leave room for the handle on selected blocks */
.vst-blk.on > .vst-blk-x { right: 14px; }
/* sound blocks: selectable like the others */
.vst-row.sound .vst-blk.ab { top: 4px; bottom: 4px; height: auto; cursor: grab; }
.vst-row.sound .vst-blk.ab.half.t { bottom: 50%; margin-bottom: 1px; }
.vst-row.sound .vst-blk.ab.half.b { top: 50%; margin-top: 1px; }
.vst-row.sound.two .vst-lane { height: 50px; }
.vst-blk.ab.on { background: #10B981; border-color: #10B981; color: #fff; z-index: 3; box-shadow: 0 0 0 2px color-mix(in srgb, #10B981 35%, transparent); }
.vst-blk.ab.vo.on { background: #F59E0B; border-color: #F59E0B; box-shadow: 0 0 0 2px color-mix(in srgb, #F59E0B 35%, transparent); }
.vst-blk.ab.drag { opacity: .85; cursor: grabbing; z-index: 5; }
.vst-blk.ab .vst-blk-t { position: relative; z-index: 1; }
.vst-wave { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); pointer-events: none; }
.vst-wave path { stroke: color-mix(in srgb, #10B981 70%, var(--text)); stroke-width: 1.2; opacity: .45; vector-effect: non-scaling-stroke; }
.vst-blk.ab.on .vst-wave path { stroke: #fff; opacity: .5; }

/* ===== Sound inspector ===== */
.vst-ih-ic.mu { background: #10B981; color: #fff; }
.vst-ih-ic.vo { background: #F59E0B; color: #fff; }
.vst-mix { gap: 12px; }
.vst-mix-h { display: flex; flex-direction: column; gap: 2px; }
.vst-mix-h b { font-size: 13.5px; }
.vst-mix-h .faint { font-size: 12px; }
.vst-ch { display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 6px; border-radius: 12px; transition: background .12s; }
.vst-ch.focus { background: var(--surface-2); }
.vst-ch-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: #64748B; }
.vst-ch-ic.mu { background: #10B981; } .vst-ch-ic.vo { background: #F59E0B; } .vst-ch-ic.or { background: #3B82F6; }
.vst-ch .grow { min-width: 0; }
.vst-ch-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.vst-ch-t em { font: 600 12px/1 var(--mono); font-style: normal; color: var(--text-2); }
.vst-ch input[type=range] { width: 100%; margin: 4px 0 0; }
.vst-mix-add { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
.vst-seg4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.vst-seg4 button { justify-content: center; }
.vst-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.vst-look { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s, transform .08s; }
.vst-look:hover { border-color: var(--border-strong); }
.vst-look:active { transform: scale(.98); }
.vst-look b { font-size: 13px; }
.vst-look span { font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.vst-look.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface-2); }
.vst-sum-v { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.vst-trk { display: flex; align-items: center; gap: 10px; }
.vst-trk .grow { min-width: 0; display: flex; flex-direction: column; }
.vst-trk b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-trk .faint { font-size: 12px; }
.vst-part { position: relative; height: 54px; border-radius: 10px; background: var(--surface-2); overflow: hidden; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.vst-part-w svg { position: absolute; inset: 4px 0; width: 100%; height: calc(100% - 8px); }
.vst-part-w path { stroke: var(--text-3); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.vst-part-win { position: absolute; top: 0; bottom: 0; border-radius: 9px; background: color-mix(in srgb, #10B981 22%, transparent); box-shadow: inset 0 0 0 2px #10B981; }
.vst-part-win i { position: absolute; left: 50%; top: 50%; width: 4px; height: 18px; margin: -9px 0 0 -2px; border-radius: 4px; background: #10B981; }
@media (max-width: 720px) { .vst-looks { grid-template-columns: repeat(2, 1fr); } }
/* ===== Video-Studio: bigger, resizable workspace ===== */
@media (min-width: 961px) {
  .vst2 { --sw: var(--sidew, clamp(400px, 31vw, 520px)); grid-template-columns: minmax(0, 1fr) var(--sw); position: relative; }
  .vst2 .vst-side { position: relative; padding: 12px 18px 24px; }
  .vst2 .vst-tls { max-height: none; height: var(--tlsh, 230px); }
  .vst2 .vst-timeline { position: relative; }
}
.vst-rsz { position: absolute; z-index: 25; touch-action: none; }
.vst-rsz::after { content: ''; position: absolute; border-radius: 99px; background: var(--border-strong); opacity: 0; transition: opacity .15s, background .15s; }
.vst-rsz:hover::after, .vst-rsz.on::after { opacity: 1; background: var(--focus); }
.vst-rsz.v { right: calc(var(--sw) - 5px); top: var(--toph, 52px); bottom: var(--tlh, 250px); width: 10px; cursor: col-resize; }
.vst-rsz.v::after { left: 4px; top: 50%; width: 3px; height: 44px; margin-top: -22px; }
.vst-rsz.h { left: 0; right: 0; top: -6px; height: 12px; cursor: row-resize; }
.vst-rsz.h::after { top: 4px; left: 50%; width: 52px; height: 4px; margin-left: -26px; opacity: .55; }
@media (max-width: 960px) { .vst-rsz { display: none; } }
body.vst-resizing, body.vst-resizing * { user-select: none !important; cursor: inherit; }
body.vst-resizing iframe { pointer-events: none; }

/* transport */
.vst-tp-grp { display: inline-flex; align-items: center; gap: 2px; }
.vst-loopb { position: relative; }
.vst-loopb.on { color: var(--focus); background: color-mix(in srgb, var(--focus) 14%, transparent); }
.vst-loopb i { position: absolute; right: 3px; bottom: 3px; font: 800 8.5px/1 var(--font); font-style: normal; background: var(--focus); color: #fff; border-radius: 4px; padding: 1px 3px; }
.vst-volb { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 12px/1 var(--font); cursor: pointer; white-space: nowrap; flex: none; }
.vst-volb:hover { border-color: var(--border-strong); }
.vst-volb.off { color: #fff; background: #E5484D; border-color: #E5484D; animation: vstPulse 2.4s ease-in-out 1; }
@keyframes vstPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } 50% { box-shadow: 0 0 0 6px rgba(229,72,77,.22); } }
.vst-zv { min-width: 40px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font: 600 11.5px/1 var(--mono); cursor: pointer; }
.vst-zv:hover { background: var(--surface-2); color: var(--text); }
.vst-zoom { gap: 0; }
.vst-vpop { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; width: 250px; padding: 4px 2px; }
.vst-vpop b { font: 600 12.5px/1 var(--mono); min-width: 44px; text-align: right; }
.vst-vpop p { grid-column: 1 / -1; margin: 0; font-size: 11.5px; line-height: 1.4; }
.vst-lpop { width: 270px; display: flex; flex-direction: column; gap: 2px; }
.vst-pop-t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 4px 10px 6px; }
.vst-lpop .pop-item.on { background: var(--surface-2); }
/* end-of-video replay */
.vst-end { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(0,0,0,.38); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fadeIn .2s; }
.vst-end[hidden] { display: none; }
.vst-end-b { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font: 700 14px/1 var(--font); cursor: pointer; }
.vst-end-b svg { width: 62px; height: 62px; padding: 18px; border-radius: 50%; background: rgba(255,255,255,.95); color: #111; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: transform .15s; box-sizing: border-box; }
.vst-end-b:hover svg { transform: scale(1.06); }

/* device picker */
.vst-devs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vst-dev { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 7px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 11.5px/1.1 var(--font); cursor: pointer; }
.vst-dev:hover { border-color: var(--border-strong); color: var(--text); }
.vst-dev.on { border-color: var(--focus); color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.vst-dev-v { width: 46px; height: 34px; display: grid; place-items: center; }
.vst-dev-v i { display: block; background: linear-gradient(135deg, #7c8cff, #ff7ab6); }
.vst-dev-v.none i { width: 40px; height: 28px; border-radius: 4px; }
.vst-dev-v.phone i { width: 16px; height: 32px; border-radius: 4px; box-shadow: 0 0 0 2.5px #18181b; }
.vst-dev-v.browser i { width: 42px; height: 26px; border-radius: 3px; box-shadow: 0 0 0 1.5px #d4d4d8; border-top: 5px solid #e4e4e7; }
.vst-dev-v.laptop i { width: 34px; height: 22px; border-radius: 2px; box-shadow: 0 0 0 2.5px #18181b, 0 5px 0 -1px #a1a1aa; }
/* templates in the add menu */
.vst-addtpl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 4px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.vst-tplb { display: flex; align-items: flex-start; gap: 8px; text-align: left; padding: 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--focus) 35%, var(--border)); background: color-mix(in srgb, var(--focus) 7%, var(--surface)); color: var(--text); cursor: pointer; }
.vst-tplb:hover { background: color-mix(in srgb, var(--focus) 13%, var(--surface)); }
.vst-tplb span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vst-tplb b { font-size: 13px; }
.vst-tplb .faint { font-size: 11.5px; line-height: 1.35; }

/* ===== cut tab: guided steps ===== */
.vst-cut-hero { display: flex; align-items: center; gap: 12px; padding: 4px 2px 2px; }
.vst-cut-hero b { display: block; font-size: 16px; }
.vst-cut-hero .faint { font-size: 12.5px; line-height: 1.4; }
.vst-cut-len { display: flex; flex-direction: column; align-items: flex-end; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.vst-cut-len em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.vst-cut-len b { font: 700 18px/1.1 var(--mono); }
.vst-step { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.vst-step.dis { opacity: .5; pointer-events: none; }
.vst-step.go { border-color: color-mix(in srgb, var(--focus) 45%, var(--border)); background: color-mix(in srgb, var(--focus) 6%, var(--surface)); }
.vst-step-h { display: flex; gap: 10px; align-items: flex-start; }
.vst-step-h b { display: block; font-size: 14.5px; }
.vst-step-h .faint { font-size: 12.5px; line-height: 1.45; display: block; margin-top: 2px; }
.vst-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font: 700 13px/1 var(--font); }
.vst-fixes { display: flex; flex-direction: column; gap: 6px; }
.vst-fix { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); }
.vst-fix .grow { min-width: 0; }
.vst-fix b { display: block; font-size: 13px; }
.vst-fix .faint { font-size: 12px; }
.vst-fix-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, #FF3EA5 16%, var(--surface)); color: #FF3EA5; }
.vst-fix.ok .vst-fix-ic { background: color-mix(in srgb, #30A46C 16%, var(--surface)); color: #30A46C; }
.vst-fix.ai .vst-fix-ic { background: color-mix(in srgb, var(--dir) 16%, var(--surface)); color: var(--dir); }
.vst-fix.ok b { color: var(--text-2); }
.vst-fix .btn { flex: none; }
.vst-lens { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.vst-lenb { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.vst-lenb:hover { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 6%, var(--surface)); }
.vst-lenb b { font: 700 15px/1 var(--mono); }
.vst-lenb span { font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.25; }
.vst-bestst { align-self: flex-start; }
.vst-cut-run { display: flex; flex-direction: column; gap: 8px; }
.vst-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-3); }
.vst-legend span { display: inline-flex; align-items: center; gap: 5px; }
.vst-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.vst-legend .lg-cut { background: linear-gradient(transparent 44%, currentColor 44% 56%, transparent 56%); color: var(--text-3); }
.vst-legend .lg-fil { background: color-mix(in srgb, #FF3EA5 30%, transparent); }
.vst-legend .lg-pz { background: var(--surface-2); border: 1px dashed var(--border-strong); }
.vst-cut-more > summary { font-size: 13.5px; }
.vst-cut-more .vst-as, .vst-cut-more .vst-an { margin-top: 10px; border: 0; padding: 0; background: none; }
.vst-cut-more .vst-as-h { display: none; }
.vst-an.empty { flex-wrap: wrap; }
.vst-an.empty .grow { min-width: 180px; }

/* ===== Video-Studio v4: icon rail + wide panel left, preview right, timeline only under the preview ===== */
.vst-rail { display: flex; gap: 4px; background: var(--surface); }
.vst-rail button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--text-2); font: 600 10.5px/1.15 var(--font); cursor: pointer; border-radius: 12px; padding: 8px 2px; text-align: center; transition: background .12s, color .12s; -webkit-tap-highlight-color: transparent; }
.vst-rail button:hover { background: var(--surface-2); color: var(--text); }
.vst-rail button.on { background: color-mix(in srgb, var(--dir) 14%, var(--surface)); color: var(--dir); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dir) 55%, transparent); }
.vst-rail button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vst-side-h { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 12px; }
.vst-side-h b { font-size: 17px; letter-spacing: -.01em; }
.vst-side-h .faint { font-size: 12.5px; line-height: 1.35; }
@media (min-width: 961px) {
  .vst2 { --railw: 78px; --sw: var(--sidew, clamp(380px, 30vw, 500px)); grid-template-columns: var(--railw) var(--sw) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top top" "rail side stage" "rail side tl"; }
  .vst2 .vst-rail { grid-area: rail; flex-direction: column; padding: 10px 7px; border-right: 1px solid var(--border); overflow-y: auto; min-height: 0; }
  .vst2 .vst-rail button { width: 100%; min-height: 58px; }
  .vst2 .vst-side { grid-area: side; border-left: 0; border-right: 1px solid var(--border); padding: 16px 18px 28px; }
  .vst2 .vst-stage { grid-area: stage; background: var(--surface-2); }
  .vst2 .vst-timeline { grid-area: tl; }
  .vst2 .vst-rsz.v { right: auto; left: calc(var(--railw) + var(--sw) - 5px); bottom: 0; }
}
@media (max-width: 960px) {
  .vst2 .vst-rail { order: 3; overflow-x: auto; scrollbar-width: none; padding: 6px 8px; border-bottom: 1px solid var(--border); gap: 2px; }
  .vst2 .vst-rail::-webkit-scrollbar { display: none; }
  .vst2 .vst-rail button { flex: 1 0 64px; padding: 7px 2px; }
  .vst2 .vst-side { order: 4; }
  .vst-side-h { padding-bottom: 8px; }
  .vst-side-h .faint { display: none; }
}
/* element track */
.vst-row.els .vst-lane { min-height: var(--lh); }
.vst-blk.eb { top: calc(var(--top) + 3px); bottom: auto; height: calc(var(--lh) - 6px); background: color-mix(in srgb, #0EA5E9 20%, var(--surface)); border: 1px solid color-mix(in srgb, #0EA5E9 55%, transparent); color: var(--text); cursor: grab; }
.vst-blk.eb.t-kpi { background: color-mix(in srgb, #F59E0B 20%, var(--surface)); border-color: color-mix(in srgb, #F59E0B 55%, transparent); }
.vst-blk.eb.t-lower { background: color-mix(in srgb, #14B8A6 20%, var(--surface)); border-color: color-mix(in srgb, #14B8A6 55%, transparent); }
.vst-blk.eb.t-cta { background: color-mix(in srgb, #EC4899 18%, var(--surface)); border-color: color-mix(in srgb, #EC4899 55%, transparent); }
.vst-blk.eb.on { background: #0EA5E9; color: #fff; border-color: #0EA5E9; z-index: 3; }
.vst-blk.eb.t-kpi.on { background: #F59E0B; border-color: #F59E0B; } .vst-blk.eb.t-lower.on { background: #14B8A6; border-color: #14B8A6; } .vst-blk.eb.t-cta.on { background: #EC4899; border-color: #EC4899; }
.vst-blk.eb .vst-hd { background: #fff; opacity: .9; }
/* element icons */
.vst-el-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: #0EA5E9; }
.vst-el-ic.t-kpi { background: #F59E0B; } .vst-el-ic.t-lower { background: #14B8A6; } .vst-el-ic.t-cta { background: #EC4899; }
.vst-ih-ic.ai { background: var(--accent); color: var(--accent-text); }
/* gallery */
.vst-els { gap: 12px; }
.vst-el-ai { gap: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--dir) 9%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--dir) 30%, var(--border)); }
.vst-el-ai-h { display: flex; gap: 10px; align-items: center; }
.vst-el-ai-h .grow { display: flex; flex-direction: column; min-width: 0; }
.vst-el-ai-h b { font-size: 14px; } .vst-el-ai-h .faint { font-size: 12px; line-height: 1.35; }
.vst-el-say { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.vst-sugs { display: flex; flex-direction: column; gap: 6px; }
.vst-sug { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.vst-sug.done { opacity: .6; }
.vst-sug .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vst-sug b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-sug .faint { font-size: 11.5px; }
.vst-sug q { font-size: 12px; color: var(--text-2); line-height: 1.4; quotes: '„' '“'; margin-top: 2px; }
.vst-sug em { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.vst-sug-a { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex: none; }
.vst-sug-ok { width: 28px; height: 28px; border-radius: 50%; background: #10B981; color: #fff; display: grid; place-items: center; }
.vst-el-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vst-el-type { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 8px 11px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; font: inherit; transition: border-color .12s, transform .1s; }
.vst-el-type:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.vst-el-type b { font-size: 13px; padding: 0 3px; } .vst-el-type > span:last-child { font-size: 11.5px; color: var(--text-3); line-height: 1.3; padding: 0 3px; }
.vst-el-prev { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: linear-gradient(160deg, #3a3532, #1d1a19); margin-bottom: 5px; display: block; }
.vst-el-prev i { position: absolute; display: block; }
.vst-el-prev .p-face { left: 22%; top: 18%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: #c9a48a; box-shadow: 0 30px 0 6px #5a4038; }
.vst-el-prev .p-phone { right: 14%; top: 14%; width: 22%; height: 76%; border-radius: 7px; background: #111; border: 2px solid #444; }
.vst-el-prev .p-phone i { inset: 3px; border-radius: 4px; background: linear-gradient(#f4f1ec 0 30%, #e0d7c9 30% 60%, #fff 60%); }
.vst-el-prev .p-bar { left: 12%; bottom: 20%; width: 3px; height: 32%; background: #E7DCC6; }
.vst-el-prev .p-n { left: calc(12% + 7px); bottom: 36%; width: 46%; height: 13%; background: #fff; border-radius: 2px; }
.vst-el-prev .p-r { left: calc(12% + 7px); bottom: 20%; width: 32%; height: 10%; background: #E7DCC6; border-radius: 2px; }
.vst-el-prev .p-bub { right: 14%; top: 20%; padding: 6px 10px; border-radius: 14px 14px 14px 3px; background: #E7DCC6; color: #111; font: 800 15px/1 var(--font); }
.vst-el-prev .p-bub b { font: inherit; }
.vst-el-prev .p-btn { left: 50%; bottom: 18%; transform: translateX(-50%); padding: 6px 16px; border-radius: 99px; background: #fff; color: #111; font: 800 13px/1 var(--font); font-style: normal; }
/* inspector */
.vst-el-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); min-width: 0; }
.vst-el-kpi { display: grid; grid-template-columns: 64px 1fr 72px; gap: 8px; }
.vst-el-media { display: flex; align-items: center; gap: 10px; }
.vst-el-media .grow { min-width: 0; display: flex; flex-direction: column; }
.vst-el-media b { font-size: 13px; } .vst-el-media .faint { font: 600 11.5px/1.2 var(--mono); }
.vst-devs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vst-devb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 11.5px/1 var(--font); cursor: pointer; }
.vst-devb.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface-2); }
.vst-el-pos { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; padding: 6px; border-radius: 10px; background: var(--surface-2); width: max-content; }
.vst-el-pos button { width: 34px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; padding: 0; }
.vst-el-pos button i { width: 8px; height: 8px; border-radius: 2px; background: var(--text-3); }
.vst-el-pos button:hover { border-color: var(--text); } .vst-el-pos button:hover i { background: var(--text); }
/* selection frames on the preview */
.vst-elo { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.vst-elo.front { z-index: 5; }
.vst-elb { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.vst-elb:hover { outline: 1.5px dashed rgba(255,255,255,.75); outline-offset: 3px; }
.vst-elb.on { outline: 1.5px solid #0EA5E9; outline-offset: 3px; cursor: move; }
.vst-elb.on .vst-txh { border-color: #0EA5E9; }
.vst-elb-t { position: absolute; left: -2px; top: -26px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 7px; border-radius: 6px; background: #0EA5E9; color: #fff; font: 700 10.5px/1 var(--font); white-space: nowrap; pointer-events: none; }
/* new transition demos */
.tr-brand, .tr-bars { overflow: hidden; }
@keyframes trBrandA { 0% { transform: translateX(-140%) skewX(-14deg) } 45%, 55% { transform: translateX(0) skewX(-14deg) } 100% { transform: translateX(140%) skewX(-14deg) } }
.tr-brand::before, .tr-brand::after { content: ''; position: absolute; z-index: 2; top: -10%; bottom: -10%; left: -20%; right: -20%; transform: translateX(-140%) skewX(-14deg); }
.tr-brand::before { background: var(--tr-b, #111); animation: trBrandA 2.4s infinite cubic-bezier(.7,0,.3,1); }
.tr-brand::after { background: var(--tr-a, #E7DCC6); animation: trBrandA 2.4s .25s infinite cubic-bezier(.7,0,.3,1); }
.tr-brand i:last-child, .tr-bars i:last-child { animation: trCutB 2.4s infinite alternate steps(1); }
@keyframes trBars { 0%, 15% { transform: scaleY(0) } 45%, 55% { transform: scaleY(1) } 85%, 100% { transform: scaleY(0) } }
.tr-bars::after { content: ''; position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(90deg, var(--tr-a, #E7DCC6) 0 20%, var(--tr-b, #111) 20% 40%); transform: scaleY(0); animation: trBars 2.4s infinite cubic-bezier(.7,0,.3,1); }

/* back to "Erstellen" above sub-page titles */
.page-crumb { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 8px -4px; padding: 4px 8px 4px 4px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.page-crumb:hover { background: var(--surface-2); color: var(--text); }

/* subtitles as editable sentence blocks */
.vst-sblocks { display: flex; flex-direction: column; gap: 6px; }
.vst-sblk { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 6px 8px 8px 10px; transition: border-color .12s, background .12s; }
.vst-sblk header { display: flex; align-items: center; gap: 2px; }
.vst-sbt { border: 0; background: none; padding: 2px 0; font: 600 11.5px/1 var(--mono); color: var(--text-3); cursor: pointer; }
.vst-sbt:hover { color: var(--text); }
.vst-sbtx { display: block; width: 100%; resize: none; overflow: hidden; border: 0; outline: 0; background: none; color: var(--text); font: 500 14.5px/1.45 var(--font); padding: 2px 0 0; min-height: 22px; }
.vst-sblk:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.vst-sblk.now { border-color: color-mix(in srgb, var(--dir) 60%, var(--border)); background: color-mix(in srgb, var(--dir) 7%, var(--surface)); }
.vst-sblk.now .vst-sbt { color: var(--dir); }
.vst-sblk.off .vst-sbtx { color: var(--text-3); }
.vst-sblk.off { background: var(--surface-2); border-style: dashed; }

/* video room: people + soft locks */
.vst-peers { display: none; align-items: center; margin-right: 4px; }
.vst-peers.on { display: inline-flex; }
.vst-peer { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c, #888); color: #fff; font: 700 11px/1 var(--font); border: 2px solid var(--surface); margin-left: -6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.vst-peer:first-child { margin-left: 0; }
.vst-peer.more { background: var(--surface-3); color: var(--text); }
.vst-save.off { color: #E5484D; }
.vst-blk.held { outline: 2px solid var(--hc); outline-offset: -1px; }
.vst-blk.held::after { content: attr(data-holder); position: absolute; right: 3px; top: -9px; z-index: 6; padding: 1px 5px; border-radius: 5px; background: var(--hc); color: #fff; font: 700 9.5px/1.3 var(--font); pointer-events: none; }

/* ===== Regie-Chat (director agent) ===== */
.vst-dir { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.vst-dir-feed { display: flex; flex-direction: column; gap: 8px; max-height: min(52vh, 560px); min-height: 160px; overflow-y: auto; padding: 2px 2px 6px; scroll-behavior: smooth; }
.vst-dir-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--dir); }
.vst-dir-empty b { color: var(--text); font-size: 15px; } .vst-dir-empty p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.vst-dm { border-radius: 14px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; max-width: 94%; }
.vst-dm p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.vst-dm header { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 12px; }
.vst-dm header time { margin-left: auto; font-size: 11px; }
.vst-dm.user { align-self: flex-end; background: color-mix(in srgb, var(--dir) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--dir) 30%, transparent); }
.vst-dm.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); }
.vst-dm.agent.bad { border-color: color-mix(in srgb, #E5484D 50%, var(--border)); }
.vst-dm.agent.live p { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.vst-dm.tool { align-self: flex-start; padding: 2px 10px; font-size: 12.5px; color: var(--text-2); max-width: 100%; }
.vst-dm.tool p { display: flex; gap: 6px; align-items: flex-start; } .vst-dm.tool p svg { flex: none; margin-top: 2px; color: var(--dir); }
.vst-dm.tool details { margin: 3px 0 0 19px; } .vst-dm.tool summary { cursor: pointer; font-size: 11.5px; color: var(--text-3); }
.vst-dm.tool ul { margin: 4px 0 2px; padding-left: 16px; font-size: 12px; color: var(--text-2); }
.vst-dm.sys { align-self: center; font-size: 11.5px; color: var(--text-3); padding: 2px 8px; }
.vst-dm-av { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }
.vst-dm-rc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--dir); margin-bottom: 2px; }
.vst-dm-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.vst-dm-chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.vst-dm footer { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.vst-dm footer .faint { font-size: 11px; margin-left: auto; }
.vst-dir-box { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); position: sticky; bottom: 0; }
.vst-dir-recipes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vst-dir-rc { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.vst-dir-rc b { font-size: 12.5px; } .vst-dir-rc span { font-size: 11px; color: var(--text-3); line-height: 1.25; }
.vst-dir-rc.on { border-color: var(--dir); background: color-mix(in srgb, var(--dir) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--dir); }
.vst-dir-in { display: flex; gap: 6px; align-items: flex-end; }
.vst-dir-in textarea { resize: none; min-height: 46px; max-height: 160px; font-size: 13.5px; }
.vst-dir-send { height: 46px; width: 46px; padding: 0; justify-content: center; flex: none; border-radius: 12px; }
.vst-dir-foot { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.vst-dir-foot .faint { font-size: 11.5px; } .vst-dir-foot .faint.warn { color: #E5484D; }
.vst-dir-foot .btn { margin-left: auto; }
.vst-dir-more summary { font-size: 13px; }
@media (max-width: 960px) { .vst-dir-feed { max-height: 50vh; } .vst-dir-box { bottom: calc(70px + env(safe-area-inset-bottom)); } }
.vst-bpop { width: 260px; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.vst-bpop p { margin: 0; font-size: 12px; line-height: 1.4; }
.vst-bpop-in { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.vst-bpop-in input { width: 110px; }

/* ======================================================================
   Studio v5 – Regie first, sub tabs per function field, calmer spacing
   ====================================================================== */
:root { --dir: var(--text); --dir-2: var(--text); }
/* rail: Regie on top, a little special */
.vst-rail button.is-dir svg { color: var(--dir); }
.vst-rail button.is-dir:not(.on) { background: color-mix(in srgb, var(--dir) 6%, transparent); }
@media (min-width: 961px) { .vst2 .vst-rail button.is-dir { margin-bottom: 6px; position: relative; } .vst2 .vst-rail button.is-dir::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -5px; height: 1px; background: var(--border); } }

/* sub tabs (segmented, sticky under the panel header) */
.vst-subtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); position: sticky; top: -12px; z-index: 5; margin: 0 0 14px; }
.vst-subtabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: 600 12.5px/1 var(--font); cursor: pointer; position: relative; transition: background .14s, color .14s, box-shadow .14s; -webkit-tap-highlight-color: transparent; }
.vst-subtabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-subtabs button:hover { color: var(--text); }
.vst-subtabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 0 0 1px var(--border); }
.vst-subtabs button svg { flex: none; opacity: .8; } .vst-subtabs button.on svg { opacity: 1; }
.vst-subtabs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dir); flex: none; }
.vst-subtabs.n4 button { padding: 0 4px; font-size: 12px; gap: 5px; }
@media (max-width: 420px) { .vst-subtabs.n4 button svg { display: none; } }
.vst-subbody { display: flex; flex-direction: column; gap: 18px; }

/* group = title + content, no boxes in boxes */
.vst-grp { display: flex; flex-direction: column; gap: 10px; }
.vst-grp-h { display: flex; flex-direction: column; gap: 2px; }
.vst-grp-h b { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.vst-grp-h span { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.vst-more { border-top: 1px solid var(--border); padding-top: 12px; }
.vst-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.vst-more > summary::-webkit-details-marker { display: none; }
.vst-more > summary::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); transition: transform .15s; }
.vst-more[open] > summary::after { transform: rotate(-135deg); }
.vst-more[open] > summary { margin-bottom: 14px; }
.vst-more[open] { display: flex; flex-direction: column; gap: 16px; }
.vst-toggle { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; padding: 4px 0; }
.vst-toggle input { width: 16px; height: 16px; accent-color: var(--dir); }
.vst-toggle.sm { font-size: 12.5px; color: var(--text-2); margin: -4px 0 2px; }
.vst-empty2 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 14px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-3); }
.vst-empty2 b { color: var(--text); font-size: 14px; } .vst-empty2 span { font-size: 12.5px; line-height: 1.45; }
.vst-row2 { display: flex; gap: 8px; flex-wrap: wrap; }

/* big 1-click entry (music library, voice) */
.vst-bigadd { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .14s, transform .1s, background .14s; }
.vst-bigadd > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.vst-bigadd div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vst-bigadd b { font-size: 14px; } .vst-bigadd em { font-style: normal; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.vst-bigadd > svg { color: var(--text-3); flex: none; }
.vst-bigadd:hover { border-color: var(--border-strong); background: var(--surface-2); }
.vst-bigadd:active { transform: scale(.99); }
.vst-bigadd.primary > span { background: #10B981; color: #fff; }

/* --------------- Stil */
.vst-style2 { display: flex; flex-direction: column; gap: 14px; }
.vst-style2 .vst-sample { margin: 0; padding: 16px 18px; font-size: 22px; border: 1px solid var(--border); }
.vst-brandbar2 { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface-2); }
.vst-brandbar2-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); flex: none; }
.vst-brandbar2 .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vst-brandbar2 b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vst-brandbar2 .grow span { font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.vst-brandbar2 .btn { flex: none; gap: 6px; }
.vst-style2 .vst-looks { grid-template-columns: 1fr 1fr; gap: 8px; }
.vst-style2 .vst-look { padding: 11px 12px; border-radius: 12px; gap: 3px; }
.vst-style2 .vst-look b { font-size: 13px; } .vst-style2 .vst-look .faint { font-size: 11.5px; line-height: 1.35; }
.vst-style2 .vst-fmt { gap: 8px; } .vst-style2 .vst-fmtb { padding: 14px 6px 12px; border-radius: 12px; gap: 6px; }
.vst-cols { display: flex; flex-direction: column; gap: 14px; }
.vst-colrow { display: flex; flex-direction: column; gap: 8px; }
.vst-colrow-l { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.vst-colrow-l i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 1px solid var(--border-strong); }
.vst-fonts { display: flex; flex-direction: column; gap: 14px; }
.vst-fontrow { display: flex; flex-direction: column; gap: 6px; }
.vst-fontrow-l { font-size: 13px; font-weight: 600; }
.vst-fontrow-c { display: grid; grid-template-columns: 1fr 84px; gap: 8px; }
.vst-fontrow-c .select { min-width: 0; }

/* --------------- Ton */
.vst-audio3 { gap: 0; }
.vst-audio3 > .vst-insp-h { margin-bottom: 12px; }
.vst-mix2 { display: flex; flex-direction: column; gap: 4px; }
.vst-mix2 .vst-ch { padding: 8px 6px; border-radius: 12px; background: var(--surface-2); }
.vst-mix2 .vst-ch + .vst-ch { margin-top: 4px; }
.vst-vfx-row { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-vfx-chip { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 12.5px/1 var(--font); cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.vst-vfx-chip:hover { color: var(--text); border-color: var(--border-strong); }
.vst-vfx-chip.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.vst-trk2 { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.vst-trk2 .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vst-trk2 b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vst-trk2 .grow span { font-size: 11.5px; color: var(--text-3); }
.vst-trk2.big { padding: 12px; }
.vst-trk2.big .vst-ch-ic { width: 36px; height: 36px; border-radius: 11px; }
.vst-audio3 .vst-sl { grid-template-columns: 96px 1fr 52px; }
.vst-audio3 .vst-looks { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.vst-del-row { align-self: flex-start; }

/* --------------- Regie */
.vst-dir { display: flex; flex-direction: column; min-height: 100%; gap: 0; }
.vst-dir-body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.vst-dir-feed { display: flex; flex-direction: column; gap: 10px; max-height: min(50vh, 520px); min-height: 0; overflow-y: auto; padding: 2px 2px 4px; scroll-behavior: smooth; }
.vst-dir-feed.empty { max-height: none; }
.vst-dir-hello { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--dir) 12%, var(--surface)), color-mix(in srgb, var(--dir-2) 6%, var(--surface))); border: 1px solid color-mix(in srgb, var(--dir) 22%, var(--border)); }
.vst-dir-hello-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); flex: none; }
.vst-dir-hello b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.vst-dir-hello p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
/* messages */
.vst-dm { border-radius: 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; max-width: 92%; }
.vst-dm p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.vst-dm header { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 12px; }
.vst-dm header time { margin-left: auto; font-size: 11px; color: var(--text-3); }
.vst-dm.user { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--border); border-bottom-right-radius: 5px; }
.vst-dm.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; max-width: 100%; width: 100%; }
.vst-dm.tool { display: flex; gap: 8px; align-items: flex-start; align-self: stretch; padding: 0 4px 0 6px; font-size: 12.5px; color: var(--text-2); max-width: 100%; background: none; border: 0; }
.vst-dm-tl { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; color: var(--dir); background: color-mix(in srgb, var(--dir) 12%, transparent); }
.vst-dm.tool .grow { min-width: 0; padding-top: 2px; }
.vst-dm.tool details { margin-top: 4px; }
.vst-dm.tool summary { cursor: pointer; font-size: 11.5px; color: var(--text-3); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.vst-dm.tool summary::-webkit-details-marker { display: none; }
.vst-dm.tool summary::after { content: ''; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.vst-dm.tool details[open] summary::after { transform: rotate(-135deg); }
.vst-dm.tool ul { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vst-dm.tool li { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--text-2); }
.vst-dm.tool li svg { flex: none; margin-top: 2px; color: var(--text-3); }
.vst-dm-av { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }
.vst-dm-rc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--dir); margin-bottom: 3px; }
.vst-dm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.vst-dm-chip { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.vst-dm footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.vst-dm footer > span { font-size: 11px; margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vst-dm-back { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--text-2); font: 600 12px/1 var(--font); padding: 4px 2px; cursor: pointer; }
.vst-dm-back:hover { color: var(--text); }
/* working: film strip under a playhead, a blade cuts on every beat */
.vst-dm.agent.live { padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--dir) 35%, var(--border)); }
.vst-cutfx { position: relative; height: 46px; overflow: hidden; background: color-mix(in srgb, var(--dir) 5%, var(--surface-2)); border-bottom: 1px solid var(--border); }
.vst-cutfx-strip { position: absolute; top: 9px; bottom: 9px; left: 0; width: 200%; animation: vst-strip 4.8s linear infinite;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, var(--surface) 46px 49px),
    linear-gradient(90deg, color-mix(in srgb, var(--dir) 55%, transparent), color-mix(in srgb, var(--dir-2) 45%, transparent) 25%, color-mix(in srgb, var(--dir) 30%, transparent) 50%, color-mix(in srgb, var(--dir) 55%, transparent) 50.01%, color-mix(in srgb, var(--dir-2) 45%, transparent) 75%, color-mix(in srgb, var(--dir) 30%, transparent));
  border-radius: 6px; -webkit-mask: repeating-linear-gradient(90deg, #000 0 46px, transparent 46px 49px); mask: repeating-linear-gradient(90deg, #000 0 46px, transparent 46px 49px); opacity: .85; }
.vst-cutfx::before, .vst-cutfx::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 18%, transparent) 0 4px, transparent 4px 9px); z-index: 1; }
.vst-cutfx::before { top: 3px; } .vst-cutfx::after { bottom: 3px; }
.vst-cutfx-head { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--text); z-index: 2; box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface-2) 60%, transparent); }
.vst-cutfx-head::before { content: ''; position: absolute; top: 0; left: 50%; width: 10px; height: 7px; transform: translateX(-50%); background: var(--text); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.vst-cutfx-blade { position: absolute; top: 6px; bottom: 6px; left: 50%; width: 46px; margin-left: -23px; z-index: 3; border-radius: 4px; border: 1.5px solid #fff; opacity: 0; animation: vst-blade 1.2s cubic-bezier(.2,.8,.2,1) infinite; mix-blend-mode: overlay; }
@keyframes vst-strip { to { transform: translateX(-50%); } }
@keyframes vst-blade { 0%, 55% { opacity: 0; transform: scaleX(.2); } 62% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.25); } }
@media (prefers-reduced-motion: reduce) { .vst-cutfx-strip, .vst-cutfx-blade { animation: none; } }
.vst-dm-live { padding: 11px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.vst-dm-live p { color: var(--text); font-size: 13px; }
.vst-phases { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.vst-phases li { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; }
.vst-phases li::before { content: ''; height: 3px; border-radius: 3px; background: var(--border); }
.vst-phases li.done { color: var(--text-2); } .vst-phases li.done::before { background: var(--dir); }
.vst-phases li.on { color: var(--text); }
.vst-phases li.on::before { background: linear-gradient(90deg, var(--dir) 0 40%, var(--border) 40%); background-size: 250% 100%; animation: vst-ph 1.4s ease-in-out infinite; }
@keyframes vst-ph { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.vst-dm-live-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vst-dm-live-f .faint { font-size: 11px; }
.vst-dir-stop { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 11.5px/1 var(--font); cursor: pointer; }
.vst-dir-stop:hover { color: #E5484D; border-color: color-mix(in srgb, #E5484D 45%, var(--border)); }
/* guide: next steps */
.vst-dir-guide:empty { display: none; }
.vst-dir-guide header { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin: 0 2px 8px; }
.vst-dir-guide header b { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.vst-dir-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-dir-step { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 6px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 12.5px/1 var(--font); cursor: pointer; transition: border-color .12s, background .12s, transform .08s; }
.vst-dir-step .grow { display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.vst-dir-step em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.vst-dir-step > svg:last-child { color: var(--text-3); display: none; }
.vst-dir-step-ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); flex: none; color: var(--text-2); }
.vst-dir-step:hover { border-color: var(--border-strong); background: var(--surface-2); }
.vst-dir-step:active { transform: scale(.98); }
.vst-dir-step.primary .vst-dir-step-ic { background: var(--accent); color: var(--accent-text); }
.vst-dir-steps.big { flex-direction: column; flex-wrap: nowrap; }
.vst-dir-steps.big .vst-dir-step { height: auto; padding: 10px 12px 10px 10px; gap: 11px; width: 100%; border-radius: 13px; }
.vst-dir-steps.big .vst-dir-step-ic { width: 34px; height: 34px; border-radius: 10px; }
.vst-dir-steps.big .vst-dir-step b { font-size: 13.5px; }
.vst-dir-steps.big .vst-dir-step > svg:last-child { display: block; margin-left: auto; }
.vst-dir-steps.big .vst-dir-step.primary { border-color: color-mix(in srgb, var(--dir) 40%, var(--border)); background: color-mix(in srgb, var(--dir) 7%, var(--surface)); }
/* composer */
.vst-dir-compose { margin-top: auto; position: sticky; bottom: -20px; padding: 12px 0 4px; background: var(--surface); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; z-index: 4; }
.vst-dir-rcs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; padding: 1px; }
.vst-dir-rcs::-webkit-scrollbar { display: none; }
.vst-dir-rcs-l { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); flex: none; margin-right: 2px; }
.vst-dir-rc { flex: none; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 12px/1 var(--font); cursor: pointer; white-space: nowrap; transition: all .12s; }
.vst-dir-rc:hover { color: var(--text); border-color: var(--border-strong); }
.vst-dir-rc.on { color: var(--accent-text); background: var(--accent); border-color: transparent; }
.vst-dir-field { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface-2); transition: border-color .14s, box-shadow .14s; }
.vst-dir-field:focus-within { border-color: color-mix(in srgb, var(--dir) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dir) 16%, transparent); }
.vst-dir-field textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; color: var(--text); font: 400 14px/1.45 var(--font); padding: 7px 0; min-height: 22px; max-height: 150px; }
.vst-dir-field textarea::placeholder { color: var(--text-3); }
.vst-dir-send { width: 36px; height: 36px; flex: none; border-radius: 11px; border: 0; display: grid; place-items: center; background: var(--border); color: var(--text-3); cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.vst-dir-send.ready { background: var(--accent); color: var(--accent-text); }
.vst-dir-send:active { transform: scale(.94); }
.vst-dir-send:disabled { opacity: .6; cursor: default; }
.vst-dir-foot { display: flex; align-items: center; gap: 8px; min-height: 20px; padding: 0 4px; }
.vst-dir-foot > span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; } .vst-dir-foot > span.warn { color: #E5484D; }
.vst-dir-gear { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.vst-dir-gear:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 960px) { .vst-dir-feed { max-height: 46vh; } .vst-dir-compose { bottom: calc(64px + env(safe-area-inset-bottom)); } }

/* --------------- Elemente: groups + new previews */
.vst-el-grp { display: flex; flex-direction: column; gap: 8px; }
.vst-el-grp + .vst-el-grp { margin-top: 6px; }
.vst-el-grp-h { font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 0 2px; }
.vst-el-prev .p-qt { left: 12%; right: 12%; top: 22%; bottom: 22%; border-radius: 8px; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); color: #E7DCC6; padding: 6px 8px; display: flex !important; flex-direction: column; gap: 4px; }
.vst-el-prev .p-qt svg { position: static; } .vst-el-prev .p-qt i { position: static; height: 5px; border-radius: 3px; background: #fff; width: 88%; } .vst-el-prev .p-qt i + i { width: 58%; opacity: .7; }
.vst-el-prev .p-ls { left: 16%; right: 22%; top: 18%; bottom: 18%; display: flex !important; flex-direction: column; justify-content: space-around; }
.vst-el-prev .p-ls i { position: relative; height: 6px; border-radius: 3px; background: #fff; margin-left: 14px; }
.vst-el-prev .p-ls i::before { content: ''; position: absolute; left: -14px; top: -2px; width: 9px; height: 9px; border-radius: 3px; background: #E7DCC6; }
.vst-el-prev .p-ls i:nth-child(2) { width: 70%; } .vst-el-prev .p-ls i:nth-child(3) { width: 52%; }
.vst-el-prev .p-wd { left: 50%; top: 50%; transform: translate(-50%, -50%); font: 900 22px/1 var(--font); font-style: normal; color: #fff; letter-spacing: -.02em; }
.vst-el-prev .p-wd i { position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; border-radius: 2px; background: #E7DCC6; }
.vst-el-prev .p-bd { left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex !important; flex-direction: column; align-items: center; gap: 5px; }
.vst-el-prev .p-bd i { position: static; width: 34px; height: 2px; background: #E7DCC6; }
.vst-el-prev .p-bd b { font: 800 16px/1 var(--font); color: #fff; letter-spacing: .04em; }
.vst-el-prev .p-pg { left: 14%; right: 14%; top: 38%; display: flex !important; align-items: center; gap: 8px; }
.vst-el-prev .p-pg > i { position: relative; flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); }
.vst-el-prev .p-pg > i > i { position: absolute; left: 0; top: 0; bottom: 0; width: 80%; border-radius: 4px; background: #E7DCC6; }
.vst-el-prev .p-pg b { font: 800 12px/1 var(--font); color: #fff; }
.vst-el-prev .p-cp { left: 12%; right: 12%; top: 30%; bottom: 30%; display: flex !important; align-items: center; gap: 6px; color: #E7DCC6; }
.vst-el-prev .p-cp > i { position: static; flex: 1; align-self: stretch; border-radius: 6px; background: rgba(255,255,255,.12); }
.vst-el-prev .p-cp > i:last-child { background: #E7DCC6; }
.vst-el-prev .p-cp svg, .vst-el-prev .p-btn svg { position: static; }
.vst-el-prev .p-btn { display: inline-flex !important; align-items: center; justify-content: center; }
.vst-el-ic.t-quote { background: var(--dir); } .vst-el-ic.t-list { background: #22C55E; } .vst-el-ic.t-word { background: #F43F5E; } .vst-el-ic.t-brand { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); } .vst-el-ic.t-progress { background: #3E7BE0; } .vst-el-ic.t-compare { background: #F97316; }
.vst-el-items { display: flex; flex-direction: column; gap: 6px; }
.vst-el-item { display: flex; align-items: center; gap: 6px; }
.vst-el-item .input { flex: 1; min-width: 0; }
.vst-el-chk { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.vst-el-cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.vst-el-cmp > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vst-el-cmp-arr { padding-bottom: 8px; color: var(--text-3); }

.vst-blk.eb.t-quote { background: color-mix(in srgb, var(--dir) 20%, var(--surface)); border-color: color-mix(in srgb, var(--dir) 55%, transparent); } .vst-blk.eb.t-quote.on { background: var(--dir); border-color: var(--dir); }
.vst-blk.eb.t-list { background: color-mix(in srgb, #22C55E 20%, var(--surface)); border-color: color-mix(in srgb, #22C55E 55%, transparent); } .vst-blk.eb.t-list.on { background: #22C55E; border-color: #22C55E; }
.vst-blk.eb.t-word { background: color-mix(in srgb, #F43F5E 20%, var(--surface)); border-color: color-mix(in srgb, #F43F5E 55%, transparent); } .vst-blk.eb.t-word.on { background: #F43F5E; border-color: #F43F5E; }
.vst-blk.eb.t-brand { background: color-mix(in srgb, var(--text) 12%, var(--surface)); border-color: color-mix(in srgb, var(--text) 35%, transparent); } .vst-blk.eb.t-brand.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.vst-blk.eb.t-progress { background: color-mix(in srgb, #3E7BE0 20%, var(--surface)); border-color: color-mix(in srgb, #3E7BE0 55%, transparent); } .vst-blk.eb.t-progress.on { background: #3E7BE0; border-color: #3E7BE0; }
.vst-blk.eb.t-compare { background: color-mix(in srgb, #F97316 20%, var(--surface)); border-color: color-mix(in srgb, #F97316 55%, transparent); } .vst-blk.eb.t-compare.on { background: #F97316; border-color: #F97316; }

/* ---------- format bar right of the picture + live Instagram view */
.vst2 .vst-stage { position: relative; }
.vst-fmtbar { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 6; }
.vst-fmtbar-g { display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.vst-fmtbar-l { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); text-align: center; padding: 3px 0 2px; }
.vst-fmtbar-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 50px; height: 50px; border: 0; border-radius: 10px; background: none; color: var(--text-3); font: 600 10.5px/1 var(--font); cursor: pointer; transition: background .12s, color .12s; }
.vst-fmtbar-b:hover { background: var(--surface-2); color: var(--text); }
.vst-fmtbar-b.on { background: var(--text); color: var(--surface); }
.vst-fmtbar-b i { display: block; border: 1.5px solid currentColor; border-radius: 3px; height: 17px; }
.vst-fmtbar-b i.r-4-5 { width: 14px; } .vst-fmtbar-b i.r-9-16 { width: 10px; } .vst-fmtbar-b i.r-1-1 { width: 17px; }
@media (max-width: 960px) {
  .vst-fmtbar { position: static; transform: none; flex-direction: row; justify-content: center; margin-top: 8px; gap: 6px; }
  .vst-fmtbar-g { flex-direction: row; padding: 3px; }
  .vst-fmtbar-l { display: none; }
  .vst-fmtbar-b { width: auto; height: 30px; flex-direction: row; padding: 0 10px; gap: 6px; }
  .vst2 .vst-stage { flex-direction: column; }
}
/* Instagram UI preview */
.vst-ig { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: #fff; font: 600 12px/1.25 -apple-system, 'Inter', sans-serif; container-type: inline-size; }
.vst-ig svg { width: 7cqw; height: 7cqw; min-width: 16px; min-height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.vst-ig .sp { flex: 1; }
.vst-ig .ig-av { width: 7.5cqw; height: 7.5cqw; min-width: 18px; min-height: 18px; border-radius: 50%; background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); box-shadow: 0 0 0 1.5px #fff; flex: none; }
.vst-ig .ig-who { display: flex; align-items: center; gap: 2cqw; font-size: max(10px, 3.4cqw); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vst-ig .ig-who em { font-style: normal; opacity: .75; font-weight: 500; }
.vst-ig.story { background: linear-gradient(rgba(0,0,0,.35), transparent 16%, transparent 84%, rgba(0,0,0,.35)); }
.vst-ig .ig-top { position: absolute; left: 3cqw; right: 3cqw; top: 2.5cqw; display: flex; flex-direction: column; gap: 2.5cqw; }
.vst-ig .ig-top > b { font-size: max(12px, 4.6cqw); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vst-ig .ig-bars { display: flex; gap: 1cqw; } .vst-ig .ig-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); } .vst-ig .ig-bars i.on { background: #fff; }
.vst-ig .ig-bot { position: absolute; left: 3cqw; right: 3cqw; bottom: 3.5cqw; display: flex; align-items: center; gap: 3.5cqw; }
.vst-ig .ig-msg { flex: 1; border: 1.5px solid rgba(255,255,255,.7); border-radius: 99px; padding: 2.2cqw 4cqw; font-weight: 500; font-size: max(10px, 3.4cqw); }
.vst-ig.reel { background: linear-gradient(transparent 62%, rgba(0,0,0,.5)); }
.vst-ig .ig-side { position: absolute; right: 3cqw; bottom: 9cqw; display: flex; flex-direction: column; gap: 5cqw; align-items: center; }
.vst-ig .ig-side span { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.vst-ig .ig-side em { font-style: normal; font-size: max(9px, 3cqw); }
.vst-ig .ig-cap { position: absolute; left: 3.5cqw; right: 18cqw; bottom: 4cqw; display: flex; flex-direction: column; gap: 2cqw; }
.vst-ig .ig-cap p { margin: 0; font-weight: 500; font-size: max(10px, 3.3cqw); text-shadow: 0 1px 3px rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vst-ig .ig-fol { border: 1.3px solid rgba(255,255,255,.8); border-radius: 6px; padding: .8cqw 2.2cqw; font-size: max(9px, 3cqw); }
.vst-ig .ig-mus { display: flex; align-items: center; gap: 1.5cqw; font-size: max(9px, 3cqw); font-weight: 500; } .vst-ig .ig-mus svg { width: 4cqw; height: 4cqw; min-width: 11px; min-height: 11px; }
.vst-ig.feed .ig-feedtop { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 2cqw; padding: 2.5cqw 3cqw; background: linear-gradient(rgba(0,0,0,.4), transparent); font-size: max(10px, 3.2cqw); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vst-ig.feed .ig-feedbot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; padding: 3cqw; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.vst-ig.feed .ig-feedbot > span:first-child { display: flex; gap: 4cqw; }
@media (min-width: 961px) { .vst2 .vst-stage { padding-right: 84px; padding-left: 24px; } }
/* previews of the newest elements */
.vst-el-prev .p-rg { left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(#E7DCC6 0 92%, rgba(255,255,255,.14) 92%); display: grid !important; place-items: center; }
.vst-el-prev .p-rg::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: #262220; }
.vst-el-prev .p-rg b { position: relative; z-index: 1; font: 800 13px/1 var(--font); color: #fff; }
.vst-el-prev .p-sp { left: 14%; right: 14%; top: 50%; transform: translateY(-50%); display: flex !important; justify-content: space-between; }
.vst-el-prev .p-sp::before { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: #E7DCC6; opacity: .6; }
.vst-el-prev .p-sp i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #E7DCC6; color: #111; font: 800 11px/22px var(--font); font-style: normal; text-align: center; }
.vst-el-prev .p-bg { left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-8deg); border-radius: 50%; background: #E7DCC6; color: #111; font: 900 13px/1 var(--font); font-style: normal; display: grid !important; place-items: center; box-shadow: 0 0 0 4px rgba(231,220,198,.25); }
.vst-el-prev .p-rt { left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex !important; align-items: center; gap: 3px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.12); }
.vst-el-prev .p-rt b { font: 800 14px/1 var(--font); color: #fff; margin-right: 4px; }
.vst-el-prev .p-rt i { position: static; width: 10px; height: 10px; background: #E7DCC6; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.vst-el-prev .p-hd { left: 50%; bottom: 20%; transform: translateX(-50%); display: flex !important; align-items: center; gap: 6px; padding: 4px 4px 4px 5px; border-radius: 99px; background: rgba(255,255,255,.14); white-space: nowrap; }
.vst-el-prev .p-hd > i { position: static; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.vst-el-prev .p-hd b { font: 700 11px/1 var(--font); color: #fff; } .vst-el-prev .p-hd em { font: 800 10px/1 var(--font); font-style: normal; background: #E7DCC6; color: #111; padding: 4px 7px; border-radius: 99px; }
.vst-el-prev .p-pt { left: 22%; top: 50%; transform: translateY(-50%); display: flex !important; align-items: center; gap: 6px; }
.vst-el-prev .p-pt svg { position: static; width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: #E7DCC6; color: #111; box-sizing: border-box; }
.vst-el-prev .p-pt b { font: 700 11px/1 var(--font); color: #fff; background: rgba(255,255,255,.14); padding: 5px 7px; border-radius: 6px; }
.vst-el-prev .p-ch { left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex !important; flex-direction: column; align-items: center; gap: 4px; }
.vst-el-prev .p-ch em { font: 700 9px/1 var(--mono, monospace); font-style: normal; letter-spacing: .2em; color: #E7DCC6; } .vst-el-prev .p-ch b { font: 900 18px/1 var(--font); color: #fff; letter-spacing: -.02em; }
.vst-el-ic.t-ring { background: #0EA5E9; } .vst-el-ic.t-steps { background: #14B8A6; } .vst-el-ic.t-badge { background: #EAB308; } .vst-el-ic.t-rating { background: #F59E0B; } .vst-el-ic.t-handle { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); } .vst-el-ic.t-pointer { background: #EF4444; } .vst-el-ic.t-chapter { background: #334155; }
.vst-blk.eb.t-ring, .vst-blk.eb.t-steps, .vst-blk.eb.t-badge, .vst-blk.eb.t-rating, .vst-blk.eb.t-handle, .vst-blk.eb.t-pointer, .vst-blk.eb.t-chapter { background: color-mix(in srgb, #64748B 18%, var(--surface)); border-color: color-mix(in srgb, #64748B 50%, transparent); }
.vst-el-chk.n { font: 800 11px/1 var(--font); }
/* resize grip: subtle neutral pill, accent only while dragging */
.vst-rsz:hover::after { background: var(--text-3); opacity: .55; }
.vst-rsz.on::after { background: var(--dir); opacity: 1; }
/* next steps in one swipeable row (never cut by the composer) */
.vst-dir-steps:not(.big) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vst-dir-steps:not(.big)::-webkit-scrollbar { display: none; }
.vst-dir-steps:not(.big) .vst-dir-step { flex: none; }
.vst-dir-guide { position: relative; z-index: 1; }
.vst-bdrop.on.black { background: #0A0A0A; color: #fff; box-shadow: 0 0 0 1px var(--border-strong); }
.vst-bdrop.on.white { background: #fff; color: #111; box-shadow: 0 0 0 1px var(--border-strong); }
@media (max-width: 960px) { .vst-tlab-add.vst-bdrop { display: grid; width: 20px; height: 20px; } .vst-row.video .vst-tlab svg:first-child { display: none; } }
.vst-ig .ig-bars i { position: relative; overflow: hidden; }
.vst-ig .ig-bars i b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.vst-ig .ig-bars i b { transition: transform .26s linear; }
.vst-ig .ig-safe { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px); border-color: rgba(255,255,255,.35); border-style: dashed; border-width: 0; }
.vst-ig .ig-safe.t { top: 0; height: 14%; border-bottom-width: 1px; } .vst-ig .ig-safe.b { bottom: 0; height: 20%; border-top-width: 1px; }
.vst-story-t { padding: 7px 4px; align-items: center; text-align: center; gap: 3px !important; }
.vst-story-t b { font: 700 12.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.vst-story-t span { font-size: 9.5px; line-height: 1.2; color: var(--text-3); max-width: 52px; }
.vst-story-t.ok b { color: #16A34A; } .vst-story-t.long b { color: #D97706; } .vst-story-t.split b { color: #DC2626; }
@media (max-width: 960px) { .vst-story-t { flex-direction: row !important; padding: 0 10px; } .vst-story-t span { max-width: none; } }
/* Regie v6: next steps as a tidy grid, style as a labelled picker */
.vst-dir-steps:not(.big) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; flex-wrap: initial; }
.vst-dir-steps:not(.big) .vst-dir-step { width: 100%; min-width: 0; height: 38px; }
.vst-dir-steps:not(.big) .vst-dir-step b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.vst-dir-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vst-dir-pick { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 12.5px/1 var(--font); cursor: pointer; flex: none; max-width: 70%; }
.vst-dir-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-dir-pick:hover { border-color: var(--border-strong); }
.vst-dir-pick.on { background: color-mix(in srgb, var(--dir) 12%, var(--surface)); border-color: color-mix(in srgb, var(--dir) 50%, var(--border)); color: var(--text); }
.vst-dir-pick > svg:first-child { color: var(--dir); }
.vst-dir-pick-x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); margin-right: -4px; }
.vst-dir-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-rcpop { display: flex; flex-direction: column; gap: 2px; padding: 4px; width: min(340px, 86vw); }
.vst-rcpop-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.vst-rcpop-i:hover { background: var(--surface-2); }
.vst-rcpop-i.on { background: color-mix(in srgb, var(--dir) 10%, var(--surface)); }
.vst-rcpop-i .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vst-rcpop-i b { font-size: 13px; } .vst-rcpop-i em { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.vst-rcpop-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--dir); flex: none; }
.vst-rcpop-i > svg:last-child { color: var(--dir); flex: none; }
/* ===== Stil v2: Vorschau-Karten (zeigen, was ein Knopf bewirkt) ===== */
.vst-looks.vst-pvc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vst-looks.vst-pvc.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vst-looks.vst-pvc .vst-look { padding: 6px 6px 9px; gap: 3px; min-width: 0; }
.vst-looks.vst-pvc .vst-look b, .vst-looks.vst-pvc .vst-look > span.faint { padding: 0 4px; }
.vst-looks.vst-pvc .vst-look b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vst-looks.vst-pvc.sm .vst-look b { font-size: 12px; }
.vst-mp { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg, #3a312c); margin-bottom: 5px; }
.vst-looks.vst-pvc.sm .vst-mp { aspect-ratio: 4 / 3; }
.vst-mp::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 35%, rgba(255,255,255,.28) 0 14%, transparent 15%), radial-gradient(ellipse at 30% 95%, rgba(255,255,255,.18) 0 30%, transparent 31%); }
.vst-mp-pl { position: absolute; left: 14%; right: 14%; bottom: 16%; height: 38%; border-radius: 6px; display: flex; flex-direction: column; justify-content: center; padding: 0 9px; gap: 4px; opacity: 0; transform: translateY(8px); }
.vst-mp-pl b { font-size: 13px; line-height: 1; font-weight: 700; padding: 0 !important; }
.vst-mp-pl em { display: block; width: 38%; height: 3px; border-radius: 3px; transform-origin: left; transform: scaleX(0); }
.vst-look:hover .vst-mp-pl, .vst-look.on .vst-mp-pl { animation: mpIn var(--d, 1.1s) var(--e, ease-out) infinite; }
.vst-look:hover .vst-mp-pl em, .vst-look.on .vst-mp-pl em { animation: mpLine var(--d, 1.1s) var(--e, ease-out) infinite; }
.vst-mp-pl { animation: mpIn var(--d, 1.1s) var(--e, ease-out) 1 forwards; }
.vst-mp-pl em { animation: mpLine var(--d, 1.1s) var(--e, ease-out) 1 forwards; }
@keyframes mpIn { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 45%, 82% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes mpLine { 0%, 30% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
.vst-look:hover .vst-mp-pl, .vst-look.on .vst-mp-pl { animation-duration: calc(var(--d, 1.1s) * 2.2); }
.vst-mp[class*=cut-] { background: #222; }
.vst-mp[class*=cut-]::before { display: none; }
.vst-mp i { position: absolute; inset: 0; }
.vst-mp i.s1 { background: linear-gradient(135deg, #6b5a4e, #3a302a); }
.vst-mp i.s2 { background: linear-gradient(135deg, var(--a, #c9a96e), color-mix(in srgb, var(--a, #c9a96e) 40%, #000)); }
.vst-mp.cut-smooth i.s2 { animation: cutFade 2.4s ease-in-out infinite; }
.vst-mp.cut-dynamic i.s2 { animation: cutSlide 2.4s cubic-bezier(.7,0,.2,1) infinite; }
.vst-mp.cut-cut i.s2 { animation: cutHard 2.4s steps(1) infinite; }
.vst-mp.cut-dynamic i.s1 { animation: cutZoom 2.4s cubic-bezier(.7,0,.2,1) infinite; }
@keyframes cutFade { 0%, 30% { opacity: 0; } 55%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cutSlide { 0%, 30% { transform: translateX(100%); } 50%, 80% { transform: none; } 100% { transform: translateX(-100%); } }
@keyframes cutZoom { 0%, 30% { transform: none; filter: none; } 48% { transform: scale(1.15); filter: blur(2px); } 100% { transform: none; } }
@keyframes cutHard { 0% { opacity: 0; } 40% { opacity: 1; } 80% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vst-mp *, .vst-mp-pl, .vst-mp-pl em { animation: none !important; opacity: 1; transform: none; } }
@media (max-width: 420px) { .vst-looks.vst-pvc.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vst-toggle { align-items: flex-start; }
.vst-toggle input { margin-top: 2px; flex: none; }
.vst-toggle > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vst-toggle > span b { font-size: 13.5px; font-weight: 600; }
.vst-toggle > span em { font-style: normal; font-size: 12px; color: var(--text-3); line-height: 1.35; }
.vst-looks.vst-pvc.three .vst-look b { white-space: normal; line-height: 1.2; }
/* ===== v7: Regie-Verweis, Pfeil, Element-Farben ===== */
.vst-toregie { gap: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--dir, var(--dir)) 9%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--dir, var(--dir)) 28%, var(--border)); }
.vst-toregie-h { display: flex; gap: 10px; align-items: center; }
.vst-toregie-h .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vst-toregie-h b { font-size: 13.5px; }
.vst-toregie-h .faint { font-size: 12px; line-height: 1.4; }
.vst-toregie-h .btn { flex: none; }
.vst-toregie .vst-as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-toregie .chip { gap: 5px; }
.vst-el-ic.t-arrow { background: #F43F5E; }
.vst-blk.eb.t-arrow { background: color-mix(in srgb, #F43F5E 16%, var(--surface)); border-color: color-mix(in srgb, #F43F5E 40%, var(--border)); }
.vst-el-prev .p-ar { left: 50%; top: 50%; width: 56%; transform: translate(-50%, -50%); color: #E7DCC6; display: block !important; }
.vst-el-prev .p-ar svg { width: 100%; height: auto; display: block; }
.vst-arshapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vst-arb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.vst-arb:hover { border-color: var(--border-strong); }
.vst-arb.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface-2); }
.vst-arb .vst-arsv { width: 64px; height: 32px; color: var(--text); }
.vst-arb span { font-size: 11.5px; color: var(--text-2); }
.vst-ardirs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.vst-ard { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; }
.vst-ard i { display: grid; place-items: center; }
.vst-ard.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.vst-ard.flip { border-style: dashed; }
.vst-elcol summary { display: flex; align-items: center; gap: 8px; }
.vst-elcol-dots { margin-left: auto; display: flex; }
.vst-elcol-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border); margin-left: -3px; }
.vst-elcol[open] > *:not(summary) { margin-top: 10px; }
.vst-ellooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.vst-ellook { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 7px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font: inherit; cursor: pointer; color: var(--text); }
.vst-ellook.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.vst-ellook em { font-style: normal; font-size: 11px; color: var(--text-2); }
.vst-ellook-v { position: relative; width: 100%; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #5b4a40, #2a2421); display: flex; align-items: center; justify-content: center; gap: 5px; overflow: hidden; }
.vst-ellook-v i { width: 14px; height: 14px; border-radius: 50%; background: var(--a); }
.vst-ellook-v b { font: 800 11px/1 var(--font); color: var(--t); background: var(--p); padding: 4px 6px; border-radius: 6px; }
.vst-elcol-row { display: flex; flex-direction: column; gap: 6px; }
.vst-elcol-row > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
/* Regie: stills of the visual check */
.vst-dm-look { margin: 10px 0 2px; display: flex; flex-direction: column; gap: 6px; }
.vst-dm-look figcaption { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.vst-dm-look figcaption > span:first-of-type { flex: 1; min-width: 0; }
.vst-dm-lk { display: inline-flex; padding: 2px; border-radius: 99px; background: var(--surface-2); }
.vst-dm-lk button { border: 0; background: none; font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; color: var(--text-2); cursor: pointer; }
.vst-dm-lk button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.vst-dm-look img { width: 100%; height: auto; border-radius: 10px; display: block; background: #111; }
.vst-dm-lkt { display: flex; gap: 4px; flex-wrap: wrap; }
.vst-dm-lkt button { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; font: 600 11px/1 var(--mono, monospace); padding: 4px 8px; color: var(--text-2); cursor: pointer; }
.vst-dm-lkt button:hover { border-color: var(--border-strong); color: var(--text); }
.vst-phases { flex-wrap: wrap; }

/* v11: Bild 2 (screen recordings) + new data elements */
.vst-row.pip2 .vst-lane { min-height: var(--lh); background: color-mix(in srgb, #3E7BE0 5%, transparent); }
.vst-blk.eb.t-pip { background: color-mix(in srgb, #3E7BE0 22%, var(--surface)); border-color: color-mix(in srgb, #3E7BE0 60%, transparent); } .vst-blk.eb.t-pip.on { background: #3E7BE0; border-color: #3E7BE0; }
.vst-blk.eb.t-counter, .vst-blk.eb.t-facts, .vst-blk.eb.t-bars { background: color-mix(in srgb, #F59E0B 20%, var(--surface)); border-color: color-mix(in srgb, #F59E0B 55%, transparent); }
.vst-blk.eb.t-counter.on, .vst-blk.eb.t-facts.on, .vst-blk.eb.t-bars.on { background: #F59E0B; border-color: #F59E0B; }
.vst-el-ic.t-counter, .vst-el-ic.t-facts, .vst-el-ic.t-bars { background: #F59E0B; } .vst-el-ic.t-pip { background: #3E7BE0; }
.vst-el-prev .p-cnt { left: 14%; right: 14%; top: 22%; bottom: 22%; border-radius: 10px; background: rgba(10,10,10,.82); border: 1px solid rgba(255,255,255,.14); padding: 7px 9px; display: flex; flex-direction: column; justify-content: center; }
.vst-el-prev .p-cnt em { font: 600 7px/1 var(--font); letter-spacing: .14em; color: #E7DCC6; font-style: normal; } .vst-el-prev .p-cnt b { font: 800 19px/1.1 var(--font); color: #fff; letter-spacing: -.04em; }
.vst-el-prev .p-fx { left: 16%; right: 16%; top: 16%; bottom: 16%; border-radius: 10px; background: rgba(10,10,10,.82); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; justify-content: space-around; padding: 4px 10px; }
.vst-el-prev .p-fx b { font: 800 11px/1 var(--font); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 2px; }
.vst-el-prev .p-br { left: 14%; right: 14%; top: 28%; bottom: 28%; border-radius: 10px; background: rgba(10,10,10,.82); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.vst-el-prev .p-br i { position: static; height: 8px; border-radius: 3px; background: rgba(255,255,255,.35); } .vst-el-prev .p-br i:first-child { background: #E7DCC6; }
.vst-el-row { gap: 4px; }

.top-sheet-act .btn.pulse { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #111) 22%, transparent); }
/* v13 boards, camera, sound */
.vst-bl-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;margin-bottom:12px}
.vst-bl-t{display:flex;flex-direction:column;gap:3px;text-align:left;padding:7px;border:1px solid var(--line,#e5e5e5);border-radius:12px;background:var(--card,#fff);cursor:pointer}
.vst-bl-t:hover{border-color:var(--accent,#111)}.vst-bl-t b{font-size:12.5px}.vst-bl-t>span:last-child{font-size:11px;color:var(--muted,#777)}
.vst-bl-pv{position:relative;display:block;height:58px;border-radius:8px;background:#EEEBE4;overflow:hidden;color:#151816}
.vst-bl-pv i{position:absolute;background:#18201C;border-radius:5px}
.bl-flow .h{left:42%;top:8px;width:16%;height:14px;border-radius:50%}.bl-flow .w{left:22%;top:22px;width:56%;height:10px;background:none;border:1.5px solid #151816;border-bottom:0;border-radius:6px 6px 0 0}
.bl-flow .n{top:34px;width:14%;height:12px;border-radius:50%}.bl-flow .a{left:15%}.bl-flow .b{left:43%}.bl-flow .c{left:71%}
.bl-wall{display:grid!important;grid-template-columns:repeat(3,1fr);gap:3px;padding:5px}.bl-wall i{position:static;height:22px;background:linear-gradient(135deg,#c9b9a0,#7d8b7f)}.bl-wall em{position:absolute;right:6px;bottom:5px;background:var(--accent,#e85d3a);color:#fff;font:700 9px/1 sans-serif;padding:3px 5px;border-radius:9px;font-style:normal}
.bl-pills{display:flex!important;flex-wrap:wrap;gap:4px;padding:10px;align-content:center}.bl-pills i{position:static;width:38%;height:13px;border-radius:9px}
.bl-dashboard{padding:6px}.bl-dashboard i{top:6px;width:42%;height:16px}.bl-dashboard i:nth-child(2){left:52%}.bl-dashboard i:first-child{left:6%}.bl-dashboard svg{position:absolute;left:6%;right:6%;bottom:6px;width:88%;height:24px;color:var(--accent,#e85d3a)}
.bl-kinetic{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 5px;padding:6px;font:800 13px/1 sans-serif}.bl-kinetic em{font:italic 400 10px serif}.bl-kinetic .hl{color:var(--accent,#e85d3a);font-family:serif;font-style:italic}
.bl-comments i{left:8%;width:78%;height:11px;border-radius:7px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}.bl-comments i:nth-child(1){top:7px}.bl-comments i:nth-child(2){top:23px;left:14%}.bl-comments i:nth-child(3){top:39px}
.bl-orbit .c{left:42%;top:19px;width:16%;height:20px;border-radius:50%;background:var(--accent,#e85d3a)}.bl-orbit .s{width:10%;height:12px;border-radius:50%}.bl-orbit .a{left:45%;top:3px}.bl-orbit .b{left:20%;top:23px}.bl-orbit .c+.s+.s+.c,.bl-orbit .s.c{left:70%;top:23px;background:#18201C;width:10%;height:12px}.bl-orbit .d{left:45%;top:43px}
.vst-bl-chips,.vst-bl-looks{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.vst-bl-look{display:flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--line,#ddd);border-radius:10px;background:none;cursor:pointer;font-size:12.5px}.vst-bl-look.on{border-color:var(--accent,#111);box-shadow:0 0 0 1px var(--accent,#111)}
.vst-bl-look i{width:18px;height:18px;border-radius:5px;border:1px solid rgba(0,0,0,.15)}.lk-paper i{background:#EEEBE4}.lk-dark i{background:#0E100F}.lk-brand i{background:var(--accent,#e85d3a)}
.vst-bi-pick{border:0;background:none;padding:0;cursor:pointer}.vst-bi-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#f3f1ec;border:1px solid var(--line,#e5e5e5)}.vst-bi-ic img{width:18px;height:18px}.vst-bi-ic.empty{color:var(--muted,#888)}
.vst-ip{width:min(320px,86vw);display:flex;flex-direction:column;gap:8px;padding:4px}.vst-ip-g{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;max-height:220px;overflow:auto}
.vst-ip-i{display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--line,#eee);border-radius:8px;background:#fff;cursor:pointer}.vst-ip-i:hover{border-color:var(--accent,#111)}.vst-ip-i img{width:20px;height:20px}
.vst-bwall{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.vst-bwall-i{position:relative;aspect-ratio:4/5;border-radius:8px;overflow:hidden;background:#eee}.vst-bwall-i img{width:100%;height:100%;object-fit:cover}
.vst-bwall-i button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.vst-bwall-add{aspect-ratio:4/5;border:1.5px dashed var(--line,#ccc);border-radius:8px;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11.5px;cursor:pointer}
.vst-cam{display:flex;flex-direction:column;gap:9px}.vst-cam-h,.vst-cam-sfx{display:flex;align-items:center;gap:9px}.vst-cam-h b,.vst-cam-sfx b{display:block;font-size:13px}.vst-cam-h .faint,.vst-cam-sfx .faint{font-size:11.5px}
.vst-zm{position:absolute;bottom:2px;height:4px;border-radius:2px;background:var(--accent,#e85d3a);opacity:.85;pointer-events:none}
.vst-blk.eb.t-board{background:linear-gradient(90deg,#EEEBE4,#e2ddd2);color:#151816}
/* v14 more board previews */
.bl-steps,.bl-notifications{display:flex!important;flex-direction:column;gap:4px;padding:6px 10px}.bl-steps i,.bl-notifications i{position:static;height:12px;border-radius:5px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.18)}
.bl-steps i{border-left:9px solid var(--accent,#3e9b74)}
.bl-timeline .ln{left:8%;right:8%;top:22px;height:3px;background:var(--accent,#3e9b74)}.bl-timeline .d{top:17px;width:12px;height:12px;border-radius:50%;background:#EEEBE4;border:3px solid var(--accent,#3e9b74);box-sizing:border-box}
.bl-timeline .d:nth-child(2){left:16%}.bl-timeline .d:nth-child(3){left:46%}.bl-timeline .d:nth-child(4){left:76%}
.bl-versus .a{left:12%;top:10px;width:34%;height:38px;background:#fff;transform:rotate(-4deg)}.bl-versus .b{left:52%;top:10px;width:34%;height:38px;box-shadow:0 0 0 2px var(--accent,#3e9b74)}
.bl-versus b{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:20px;height:20px;border-radius:50%;background:#151816;color:#EEEBE4;font:800 8px/20px sans-serif;text-align:center}
.bl-checklist{display:flex!important;flex-direction:column;gap:3px;padding:6px 12px}.bl-checklist span{display:flex;align-items:center;height:13px;border-radius:4px;background:#fff;padding-left:2px}.bl-checklist span svg{width:10px;height:10px;color:#fff;background:var(--accent,#3e9b74);border-radius:3px}
.bl-ranking{display:grid!important;grid-template-columns:12px 1fr;align-items:center;gap:3px 5px;padding:6px 10px}.bl-ranking em{font:italic 700 11px/1 serif}.bl-ranking i{position:static;height:7px}.bl-ranking i:first-of-type{background:var(--accent,#3e9b74)}
.bl-chart{display:flex!important;align-items:flex-end;justify-content:center;gap:5px;padding:6px 10px 8px}.bl-chart i{position:static;width:14%;border-radius:3px 3px 1px 1px}.bl-chart i.hi{background:var(--accent,#3e9b74)}
.bl-donut i{left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:conic-gradient(var(--accent,#3e9b74) 0 62%,#151816 0 86%,#9fc9b6 0)!important;-webkit-mask:radial-gradient(circle,transparent 9px,#000 10px);mask:radial-gradient(circle,transparent 9px,#000 10px)}
.bl-chat{display:flex!important;flex-direction:column;justify-content:center;gap:4px;padding:6px 18px}.bl-chat i{position:static;height:10px;border-radius:6px;width:55%}.bl-chat .th{background:#fff}.bl-chat .me{align-self:flex-end;background:var(--accent,#3e9b74)}
.bl-search{display:flex!important;flex-direction:column;gap:4px;padding:6px 10px}.bl-search i{position:static;height:10px;border-radius:5px;background:#fff}.bl-search .bar{height:15px;border-radius:9px;display:flex;align-items:center;padding-left:4px;box-shadow:0 1px 3px rgba(0,0,0,.18)}.bl-search .bar svg{width:9px;height:9px}
.bl-features{display:grid!important;grid-template-columns:1fr 1fr;gap:4px;padding:6px 12px}.bl-features i{position:static;height:20px;background:#fff;border-top:5px solid var(--accent,#3e9b74)}
.bl-funnel{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px}.bl-funnel i{position:static;height:11px;border-radius:2px;background:var(--accent,#3e9b74)}
.bl-calendar{display:grid!important;grid-template-columns:repeat(7,1fr);gap:2px;padding:9px 8px}.bl-calendar i{position:static;height:16px;border-radius:3px;background:#fff}.bl-calendar i:nth-child(1),.bl-calendar i:nth-child(3),.bl-calendar i:nth-child(5),.bl-calendar i:nth-child(10),.bl-calendar i:nth-child(12){background:#18201C}
.bl-cycle b{position:absolute;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;border:3px dashed #151816;display:grid;place-items:center;color:var(--accent,#3e9b74);box-sizing:border-box}
.bl-bignumber{display:grid!important;place-items:center}.bl-bignumber b{font:900 24px/1 sans-serif;letter-spacing:-.04em}
.bl-quote em{position:absolute;left:8px;top:-2px;font:700 34px/1 serif;color:var(--accent,#3e9b74)}.bl-quote i{left:20%;width:66%;height:7px;background:#151816}.bl-quote i:nth-of-type(1){top:24px}.bl-quote i:nth-of-type(2){top:36px;width:44%}
/* astro boards + planet element (gallery previews / inspector) */
.vst-bl-pv.bl-planet,.vst-bl-pv.bl-planets,.vst-bl-pv.bl-zodiac,.vst-bl-pv.bl-moon,.vst-bl-pv.bl-wheel,.vst-bl-pv.bl-ascendant,.vst-bl-pv.bl-bigthree{background:radial-gradient(120% 90% at 50% 20%,#1B2350,#070A1A);display:flex;align-items:center;justify-content:center;gap:4px;position:relative;overflow:hidden}
.vst-bl-pv.bl-planet img,.vst-bl-pv.bl-moon img{width:46px;height:46px}
.vst-bl-pv.bl-planets img{width:26px;height:26px}
.vst-bl-pv.bl-zodiac b{color:#E9C77B;font-size:30px;line-height:1}
.vst-bl-pv.bl-wheel .wh{position:absolute;width:50px;height:50px;border:1.5px solid #E9C77B;border-radius:50%}
.vst-bl-pv.bl-wheel img{width:20px;height:20px}
.vst-bl-pv.bl-ascendant .hz{position:absolute;left:10%;right:10%;top:62%;height:1.5px;background:#E9C77B;box-shadow:0 0 6px #E9C77B}
.vst-bl-pv.bl-ascendant .sn{position:absolute;left:50%;top:62%;width:44px;height:22px;margin-left:-22px;margin-top:-22px;border-radius:44px 44px 0 0;background:radial-gradient(circle at 50% 100%,rgba(233,199,123,.6),transparent 70%)}
.vst-bl-pv.bl-ascendant b{position:relative;color:#E9C77B;font-size:22px;line-height:1;margin-top:-14px}
.vst-bl-pv.bl-ascendant em{position:absolute;left:0;right:0;top:68%;text-align:center;font:600 8px/1 monospace;letter-spacing:.2em;color:#E9C77B;font-style:normal}
.vst-bl-pv.bl-bigthree img{width:20px;height:20px}.vst-bl-pv.bl-bigthree b{font:700 10px/1 sans-serif;color:#E9C77B;border:1px solid #E9C77B;border-radius:50%;width:20px;height:20px;display:grid;place-items:center}
.vst-el-prev.pv-sign{background:radial-gradient(circle,#1B2350,#070A1A);display:grid;place-items:center}
.vst-el-prev .p-sg{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1.5px solid #E9C77B;box-shadow:0 0 12px rgba(233,199,123,.35)}.vst-el-prev .p-sg b{color:#E9C77B;font-size:20px;line-height:1}.vst-el-prev .p-sg em{font:600 7px/1 monospace;letter-spacing:.15em;color:#E9C77B;font-style:normal}
.vst-el-prev.pv-planet{background:radial-gradient(circle,#1B2350,#070A1A);display:grid;place-items:center}
.vst-el-prev .p-pl{width:52px;height:52px}
.vst-bl-look.lk-cosmic i{background:radial-gradient(circle at 50% 30%,#2A3470,#070A1A);box-shadow:inset 0 0 0 2px #E9C77B}
.vst-pl-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px;margin-bottom:10px}
.vst-pl{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:10px;border:1px solid var(--line,#ddd);background:#0B1030;color:#F3EEDF;font-size:11px;cursor:pointer}
.vst-pl img{width:40px;height:40px}.vst-pl.on{outline:2px solid #E9C77B}

/* food boards + food tag (gallery previews / inspector) */
.vst-bl-pv.bl-ingredients,.vst-bl-pv.bl-recipe,.vst-bl-pv.bl-nutrition,.vst-bl-pv.bl-review,.vst-bl-pv.bl-cooktime,.vst-bl-pv.bl-menu{background:#F1ECE3;display:flex;align-items:center;justify-content:center;gap:4px;position:relative;overflow:hidden;color:#B5552F}
.vst-bl-pv.bl-ingredients .cd,.vst-bl-pv.bl-menu .mn{width:58%;height:70%;background:#FFFDF9;border-radius:6px;box-shadow:0 4px 10px rgba(60,40,18,.14);display:flex;flex-direction:column;justify-content:center;gap:5px;padding:0 7px;box-sizing:border-box}
.vst-bl-pv.bl-ingredients .cd i,.vst-bl-pv.bl-menu .mn i{display:block;height:3px;border-radius:2px;background:linear-gradient(90deg,#221C16 0 40%,transparent 40% 72%,#B5552F 72%)}
.vst-bl-pv.bl-menu .mn{outline:1px solid rgba(181,85,47,.5);outline-offset:-4px}.vst-bl-pv.bl-menu .mn i{background:linear-gradient(90deg,#221C16 0 50%,transparent 50% 78%,#B5552F 78%)}
.vst-bl-pv.bl-recipe b{width:18px;height:18px;border-radius:50%;border:1.5px solid #B5552F;display:grid;place-items:center;font:italic 10px/1 Georgia,serif;background:#FFFDF9}
.vst-bl-pv.bl-nutrition .rg{width:30px;height:30px;border-radius:50%;background:conic-gradient(#B5552F 0 68%,rgba(34,28,22,.1) 0);-webkit-mask:radial-gradient(circle,transparent 9px,#000 10px);mask:radial-gradient(circle,transparent 9px,#000 10px)}
.vst-bl-pv.bl-nutrition .br{display:flex;flex-direction:column;gap:4px;width:30%}.vst-bl-pv.bl-nutrition .br i{display:block;height:3px;border-radius:2px;background:#B5552F}.vst-bl-pv.bl-nutrition .br i:nth-child(2){width:80%;background:#221C16}.vst-bl-pv.bl-nutrition .br i:nth-child(3){width:45%}
.vst-bl-pv.bl-review{flex-direction:column;gap:1px}.vst-bl-pv.bl-review b{font:800 18px/1 sans-serif;color:#221C16}.vst-bl-pv.bl-review .st{font-size:8px;letter-spacing:1px;color:#B5552F;font-style:normal}
.vst-bl-pv.bl-cooktime .tm{width:38px;height:38px;border-radius:50%;background:#FFFDF9;box-shadow:0 3px 8px rgba(60,40,18,.16),inset 0 0 0 4px #FFFDF9,inset 0 0 0 8px rgba(34,28,22,.06);position:relative}
.vst-bl-pv.bl-cooktime .tm::after{content:'';position:absolute;inset:4px;border-radius:50%;background:conic-gradient(#B5552F 0 42%,transparent 0);-webkit-mask:radial-gradient(circle,transparent 11px,#000 12px);mask:radial-gradient(circle,transparent 11px,#000 12px)}
.vst-bl-look.lk-kitchen i{background:#F1ECE3;box-shadow:inset 0 0 0 2px #B5552F}
.vst-el-prev.pv-foodtag{background:#F1ECE3;display:grid;place-items:center}
.vst-el-prev .p-ft{display:flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:99px;background:#FFFDF9;box-shadow:0 3px 8px rgba(60,40,18,.16)}.vst-el-prev .p-ft>i{width:20px;height:20px;border-radius:50%;background:#B5552F;color:#fff;display:grid;place-items:center}.vst-el-prev .p-ft b{font:700 11px/1 sans-serif;color:#221C16}
.vst-ft-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:5px;margin-bottom:10px}
.vst-ft{display:grid;place-items:center;height:38px;border-radius:9px;border:1px solid var(--line,#ddd);background:var(--surface,#fff);cursor:pointer}.vst-ft img{width:20px;height:20px}.vst-ft.on{outline:2px solid var(--accent,#3e9b74);background:var(--accent-soft,#eef6f1)}
.vst-fd-row{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:12px;border:1px solid var(--line,#e5e5e5);background:var(--surface,#fff)}
.vst-fd-l1,.vst-fd-l2{display:flex;align-items:flex-end;gap:6px}.vst-fd-l1 .vst-bi-pick{flex:none;align-self:flex-end;height:30px;margin-bottom:1px}.vst-bi-ic.auto{opacity:.55}
.vst-fd-f{display:flex;flex-direction:column;gap:3px;min-width:0}.vst-fd-f span{font-size:11px;color:var(--muted,#888)}.vst-fd-f .input{width:100%}
/* v17 coaching & learning – gallery previews + inspector */
.vst-bl-pv.bl-myth,.vst-bl-pv.bl-mistake,.vst-bl-pv.bl-quiz,.vst-bl-pv.bl-term,.vst-bl-pv.bl-habit,.vst-bl-pv.bl-scale,.vst-bl-pv.bl-save{background:#F2F0EC;display:flex;align-items:center;justify-content:center;gap:5px;position:relative;overflow:hidden;color:#151816}
.vst-bl-pv.bl-myth{flex-direction:column;gap:4px}.vst-bl-pv.bl-myth>i{width:66%;height:17px;border-radius:5px;display:flex;align-items:center;justify-content:flex-end;padding:0 4px;position:relative}
.vst-bl-pv.bl-myth .my{background:#E2DFD9;color:#9A958C}.vst-bl-pv.bl-myth .my s{position:absolute;left:6px;right:22px;top:50%;height:2px;background:#9A958C}.vst-bl-pv.bl-myth .ft{background:#151816;color:#E7DCC6}
.vst-bl-pv.bl-mistake{flex-direction:column;gap:4px}.vst-bl-pv.bl-mistake>i{width:66%;height:17px;border-radius:5px;background:#fff;display:flex;align-items:center;padding:0 4px;box-shadow:0 2px 5px rgba(0,0,0,.08)}.vst-bl-pv.bl-mistake .bd{color:#C2453A}.vst-bl-pv.bl-mistake .gd{color:#2F8A57}
.vst-bl-pv.bl-quiz{flex-direction:column;gap:3px}.vst-bl-pv.bl-quiz b{font:800 15px/1 sans-serif}.vst-bl-pv.bl-quiz>i{width:60%;height:8px;border-radius:4px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.vst-bl-pv.bl-quiz>i.ok{background:#151816}
.vst-bl-pv.bl-term{flex-direction:column;align-items:flex-start;padding:0 14px;gap:4px}.vst-bl-pv.bl-term b{font:700 14px/1 Georgia,serif;display:flex;align-items:center;gap:2px}.vst-bl-pv.bl-term b i{width:1.5px;height:13px;background:currentColor}.vst-bl-pv.bl-term em{display:block;width:78%;height:4px;border-radius:2px;background:#CFCAC1}.vst-bl-pv.bl-term em+em{width:54%}
.vst-bl-pv.bl-habit{gap:3px}.vst-bl-pv.bl-habit i{width:9px;height:9px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #BDB7AC}.vst-bl-pv.bl-habit i.on{background:#151816;box-shadow:none}
.vst-bl-pv.bl-scale .tr{position:absolute;left:14%;right:14%;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:linear-gradient(90deg,#9FC9A8,#E8C468,#D86A50)}.vst-bl-pv.bl-scale .mk{position:absolute;left:62%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #151816}
.vst-bl-pv.bl-save{flex-direction:column;gap:4px}.vst-bl-pv.bl-save .bm{position:absolute;top:0;right:14px;color:#B08D57}.vst-bl-pv.bl-save em{display:block;width:62%;height:5px;border-radius:2px;background:#151816}.vst-bl-pv.bl-save em+em{width:44%;background:#CFCAC1}
.vst-el-prev.pv-comment{background:#F2F0EC;display:grid;place-items:center}
.vst-el-prev .p-cm{display:flex;align-items:center;gap:5px;padding:4px 4px 4px 8px;border-radius:99px;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12);color:#8A857C}.vst-el-prev .p-cm b{font:800 10px/1 sans-serif;letter-spacing:.06em;color:#151816}.vst-el-prev .p-cm>i{width:17px;height:17px;border-radius:50%;background:#151816;color:#fff;display:grid;place-items:center}
.vst-co-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:4px 0 2px}
.vst-co-day{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 0 5px;border-radius:10px;border:1px solid var(--line,#e5e5e5);background:var(--surface,#fff);color:transparent;cursor:pointer;font:inherit}.vst-co-day span{font-size:11px;color:var(--muted,#888)}
.vst-co-day.on{background:var(--ink,#151816);border-color:var(--ink,#151816);color:#fff}.vst-co-day.on span{color:rgba(255,255,255,.75)}
.vst-co-ok{flex:none;align-self:flex-end;width:30px;height:30px;margin-bottom:1px;border-radius:50%;border:1.5px solid var(--line,#ddd);background:var(--surface,#fff);color:transparent;display:grid;place-items:center;cursor:pointer}
.vst-co-ok.on{background:#2F8A57;border-color:#2F8A57;color:#fff}
/* coach previews: undo the generic absolute <i> of the old previews */
.vst-bl-pv.bl-myth>i,.vst-bl-pv.bl-mistake>i,.vst-bl-pv.bl-quiz>i,.vst-bl-pv.bl-habit>i,.vst-bl-pv.bl-save>i.bm,.vst-bl-pv.bl-term b>i{position:relative;inset:auto}
.vst-bl-pv.bl-save>i.bm{position:absolute;top:0;right:14px;background:none}
.vst-bl-pv.bl-myth .my s{background:#9A958C}
.vst-bl-pv.bl-scale>i{border-radius:0}.vst-bl-pv.bl-scale .tr{border-radius:3px}.vst-bl-pv.bl-scale .mk{border-radius:50%}
.vst-bl-pv.bl-mistake>i,.vst-bl-pv.bl-quiz>i:not(.ok){background:#fff}.vst-bl-pv.bl-myth .my{background:#E2DFD9}.vst-bl-pv.bl-myth .ft{background:#151816}
.vst-bl-pv.bl-habit>i:not(.on){background:transparent}.vst-bl-pv.bl-term b>i{background:currentColor;border-radius:0}
.vst-el-prev .p-cm,.vst-el-prev .p-cm i{position:relative}
/* gallery tabs + category chips */
.vst-gal-tabs{margin:2px 0 12px;position:sticky;top:0;z-index:3}
.vst-gal-tabs .vst-gal-n{font-style:normal;font-size:11px;font-weight:700;background:var(--surface-3);border-radius:99px;padding:1px 6px;margin-left:2px}
.vst-gal-sub{margin:-4px 0 8px}
.vst-gal-cats{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0 10px;margin-bottom:2px;-webkit-overflow-scrolling:touch}
.vst-gal-cats::-webkit-scrollbar{display:none}
.vst-gal-cat{flex:none;border:1px solid var(--border,#e5e5e5);background:var(--surface,#fff);color:var(--text-2,#555);height:32px;padding:0 13px;border-radius:99px;font:600 13px/1 inherit;cursor:pointer;white-space:nowrap}
.vst-gal-cat:hover{color:var(--text)}
.vst-gal-cat.on{background:var(--text,#151816);border-color:var(--text,#151816);color:var(--surface,#fff)}
.hub-rc-tx{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12%;text-align:center}
.hub-rc-tx b{font:700 13px/1.2 Inter,sans-serif;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.ic.ic-grok{stroke:none}
/* gallery tabs: always labelled (icon above text), 2×2 on narrow panels */
.vst-els .vst-gal-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;height:auto}
.vst-els .vst-gal-tabs button{height:auto;min-height:48px;flex-direction:column;gap:3px;padding:6px 2px;font-size:12px;line-height:1.15}
.vst-els .vst-gal-tabs button span,.vst2 .vst-els .vst-gal-tabs button:not(.on) span,.vst-els .vst-gal-tabs button:not(.on) span{display:block !important;white-space:normal;text-align:center}
/* v18 finance previews */
.vst-bl-pv.bl-compound,.vst-bl-pv.bl-growth,.vst-bl-pv.bl-portfolio,.vst-bl-pv.bl-budget,.vst-bl-pv.bl-inflation,.vst-bl-pv.bl-goal,.vst-bl-pv.bl-risk{background:#EFF1EC;display:flex;align-items:flex-end;justify-content:center;gap:4px;padding:10px 14px;box-sizing:border-box;position:relative;overflow:hidden;color:#151816}
.vst-bl-pv.bl-compound>i,.vst-bl-pv.bl-risk>i{position:relative;inset:auto;width:14px;border-radius:3px 3px 1px 1px;background:linear-gradient(#C9A96E 0 45%,#151816 45%)}
.vst-bl-pv.bl-risk>i{width:18px;background:#2F9E6A;opacity:.35}.vst-bl-pv.bl-risk>i:nth-child(2){opacity:.55}.vst-bl-pv.bl-risk>i:nth-child(3){opacity:.75}.vst-bl-pv.bl-risk>i:nth-child(4){opacity:1}
.vst-bl-pv.bl-growth{align-items:center}.vst-bl-pv.bl-growth svg{width:70%;height:60%}.vst-bl-pv.bl-growth em{position:absolute;top:6px;right:8px;font:700 9px/1 sans-serif;font-style:normal;background:#2F9E6A;color:#fff;padding:2px 5px;border-radius:9px}
.vst-bl-pv.bl-portfolio{display:grid;grid-template-columns:3fr 2fr;grid-template-rows:1fr 1fr;gap:3px;padding:8px 18px}
.vst-bl-pv.bl-portfolio>i{position:relative;inset:auto;border-radius:3px}.vst-bl-pv.bl-portfolio .t1{grid-row:1/3;background:#C9A96E}.vst-bl-pv.bl-portfolio .t2{background:#151816}.vst-bl-pv.bl-portfolio .t3{background:#8F8A80;display:none}.vst-bl-pv.bl-portfolio .t4{background:#D9D2C3}
.vst-bl-pv.bl-budget{align-items:center}.vst-bl-pv.bl-budget .bb{position:relative;inset:auto;display:flex;gap:2px;width:80%;height:14px;background:none}.vst-bl-pv.bl-budget .bb>i{position:relative;inset:auto;border-radius:3px;background:#C9A96E}.vst-bl-pv.bl-budget .bb>i:nth-child(2){background:#151816}.vst-bl-pv.bl-budget .bb>i:nth-child(3){background:#2F9E6A}
.vst-bl-pv.bl-inflation{flex-direction:column;align-items:center;justify-content:center;gap:5px}.vst-bl-pv.bl-inflation .ib{position:relative;inset:auto;width:70%;height:9px;border-radius:5px;background:repeating-linear-gradient(-45deg,#D2493A55 0 3px,transparent 3px 6px)}.vst-bl-pv.bl-inflation .ib>i{position:absolute;left:0;top:0;bottom:0;width:72%;border-radius:5px;background:#151816}
.vst-bl-pv.bl-inflation b{font:800 10px/1 sans-serif;background:#D2493A;color:#fff;padding:2px 6px;border-radius:9px}
.vst-bl-pv.bl-goal{align-items:center}.vst-bl-pv.bl-goal .gr{position:relative;inset:auto;width:36px;height:36px;border-radius:50%;background:conic-gradient(#C9A96E 0 64%,#d8d4cb 0);-webkit-mask:radial-gradient(circle,transparent 11px,#000 12px);mask:radial-gradient(circle,transparent 11px,#000 12px)}
.vst-el-prev.pv-ticker{background:linear-gradient(160deg,#25302b,#121614);display:grid;place-items:center}
.vst-el-prev .p-tk{position:relative;display:flex;align-items:center;gap:6px;padding:5px 9px;border-radius:9px;background:rgba(255,255,255,.12);backdrop-filter:blur(4px)}.vst-el-prev .p-tk b{font:800 12px/1 sans-serif;color:#fff}.vst-el-prev .p-tk em{position:relative;font:700 9px/1 sans-serif;font-style:normal;background:#2F9E6A;color:#fff;padding:2px 5px;border-radius:8px}
.vst-bl-pv.bl-portfolio{height:58px}.vst-bl-pv.bl-portfolio>i{height:auto;min-height:0;align-self:stretch}
/* v18.1 – categories wrap (no hidden horizontal scroll) */
.vst-gal-cats{flex-wrap:wrap;overflow:visible;gap:6px;padding:2px 0 12px}
.vst-gal-cat{height:30px;padding:0 12px;font-size:12.5px}
/* current layout card + layout picker */
.vst-bl-cur{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px 8px 8px;margin:4px 0 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);cursor:pointer;text-align:left;font:inherit;color:var(--text)}
.vst-bl-cur:hover{border-color:var(--border-strong);background:var(--surface-2)}
.vst-bl-cur .vst-bl-pv{flex:none;width:92px;height:56px;margin:0}
.vst-bl-cur .grow{display:flex;flex-direction:column;gap:3px;min-width:0}.vst-bl-cur b{font-size:14px}.vst-bl-cur em{font-style:normal;font-size:12px;color:var(--text-3)}
.vst-bl-cur-go{flex:none;display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 11px;border-radius:99px;background:var(--text);color:var(--surface);font-size:12.5px;font-weight:600}
.vst-lp{display:flex;width:min(640px,92vw);max-height:min(520px,70vh)}
.vst-lp-nav{flex:none;width:168px;display:flex;flex-direction:column;gap:2px;padding:8px;border-right:1px solid var(--border);overflow-y:auto}
.vst-lp-nav button{border:0;background:none;text-align:left;padding:9px 11px;border-radius:9px;font:600 13px/1.2 var(--font);color:var(--text-2);cursor:pointer}
.vst-lp-nav button:hover{background:var(--surface-2);color:var(--text)}.vst-lp-nav button.on{background:var(--text);color:var(--surface)}
.vst-lp-grid{flex:1;overflow-y:auto;padding:10px;align-content:start}
.vst-lp-grid .vst-bl-t.on{outline:2px solid var(--text);outline-offset:-2px}
.pop.sheet .vst-lp{flex-direction:column;width:100%;max-height:75vh}.pop.sheet .vst-lp-nav{width:auto;flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--border)}
/* v18.1 Regie start card */
.vst-ds{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:18px;border:1px solid color-mix(in srgb,var(--dir) 22%,var(--border));background:linear-gradient(160deg,color-mix(in srgb,var(--dir) 9%,var(--surface)),color-mix(in srgb,var(--dir-2) 4%,var(--surface)) 60%)}
.vst-ds-h{display:flex;gap:12px;align-items:flex-start}.vst-ds-h b{display:block;font-size:15px;margin-bottom:3px}.vst-ds-h p{margin:0;font-size:12.5px;line-height:1.5;color:var(--text-2)}
.vst-ds-step{display:flex;align-items:center;gap:9px;margin-top:4px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-2)}.vst-ds-step b{font-weight:700}
.vst-ds-step>i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font:700 11px/1 var(--font);font-style:normal;background:var(--accent);color: var(--accent-text)}
.vst-ds-step.off{opacity:.45}.vst-ds-step.off>i{background:var(--surface-3);color:var(--text-2)}.vst-ds-step.done>i{background:#2F9E6A}
.vst-ds-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vst-ds-a{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:transform .15s,border-color .15s}
.vst-ds-a:hover{border-color:var(--border-strong);transform:translateY(-1px)}.vst-ds-a span{display:flex;flex-direction:column;gap:3px}.vst-ds-a b{font-size:13.5px}.vst-ds-a em{font-style:normal;font-size:11.5px;color:var(--text-3)}
.vst-ds-a.primary{background:var(--accent);border-color:transparent;color: var(--accent-text)}.vst-ds-a.primary em{color:color-mix(in srgb,var(--accent-text) 72%,transparent)}
.vst-ds-recent:empty{display:none}.vst-ds-rh{display:block;font-size:11.5px;color:var(--text-3);margin-bottom:6px}
.vst-ds-rg{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.vst-ds-c{position:relative;aspect-ratio:9/12;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:var(--surface-2);display:grid;place-items:center;color:var(--text-3);cursor:pointer;padding:0}
.vst-ds-c img{width:100%;height:100%;object-fit:cover}.vst-ds-c span{position:absolute;right:4px;bottom:4px;font:700 10px/1 var(--font);color:#fff;background:rgba(0,0,0,.55);padding:2px 5px;border-radius:6px}.vst-ds-c span:empty{display:none}
.vst-ds-c:hover{outline:2px solid var(--dir);outline-offset:-2px}
.vst-ds-rc{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.vst-ds-r{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:11px;border-radius:13px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.vst-ds-r:hover{border-color:var(--dir);background:color-mix(in srgb,var(--dir) 6%,var(--surface))}.vst-ds-r b{font-size:13px}.vst-ds-r em{font-style:normal;font-size:11px;line-height:1.35;color:var(--text-3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vst-ds-or{margin:2px 0 0;font-size:12px;color:var(--text-3);text-align:center}
@media (max-width:420px){.vst-ds-acts,.vst-ds-rc{grid-template-columns:1fr}}
/* v18.2 add-scene menu: 3 big tiles + compact grid */
.vst-addpop2{width:min(440px,92vw);padding:6px;gap:8px}
.vst-add-big{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.vst-add-b{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 11px;border-radius:13px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:transform .15s,border-color .15s}
.vst-add-b:hover{border-color:var(--border-strong);transform:translateY(-1px)}
.vst-add-b b{font-size:13px;line-height:1.2}.vst-add-b span{font-size:11px;line-height:1.35;color:var(--text-3)}
.vst-add-b.primary{background:var(--accent);border-color:transparent;color: var(--accent-text)}.vst-add-b.primary span{color:color-mix(in srgb,var(--accent-text) 75%,transparent)}
.vst-add-h{margin:4px 4px 0;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3)}
.vst-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.vst-add-s{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:10px;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;min-width:0}
.vst-add-s:hover{background:var(--surface-2)}
.vst-add-s>svg{flex:none;width:30px;height:30px;padding:7px;box-sizing:border-box;border-radius:9px;background:var(--surface-2);color:var(--text-2)}
.vst-add-s span{display:flex;flex-direction:column;gap:2px;min-width:0}.vst-add-s b{font-size:12.5px}.vst-add-s em{font-style:normal;font-size:11px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop.sheet .vst-addpop2{width:100%}
@media (max-width:380px){.vst-add-big{grid-template-columns:1fr}.vst-add-grid{grid-template-columns:1fr}}

/* ======================================================================
   v19 – Regie: full-height panel, run cards, iclipnow "on set" animation, CI
   ====================================================================== */
@media (min-width: 961px) {
  .vst2 .vst-side:has(.vst-dir2) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 12px; }
  .vst2 .vst-side:has(.vst-dir2) #vst-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .vst-dir2 { flex: 1; min-height: 0; height: 100%; }
  .vst-dir2 .vst-dir-body { flex: 1; min-height: 0; }
  .vst-dir2 .vst-dir-feed { flex: 1; max-height: none !important; min-height: 0; }
  .vst-dir2 #dir-legacy { overflow: auto; min-height: 0; flex: 1; }
}
.vst-dir2 .vst-dir-feed { gap: 14px; padding: 2px 4px 10px 2px; overscroll-behavior: contain; scroll-behavior: auto; }
.vst-dir2 .vst-dir-feed.empty { justify-content: flex-start; }
.vst-dir-dock { flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.vst-dir2 .vst-dir-compose { position: static; margin: 0; padding: 0; border: 0; }
.vst-dir2 .vst-dir-guide header { margin-bottom: 6px; }
@media (max-width: 960px) { .vst-dir-dock { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 4; padding-bottom: 6px; } .vst-dir2 .vst-dir-feed { max-height: none; } }

/* one run = one card */
.vst-run { display: flex; flex-direction: column; gap: 10px; }
.vst-run-w { display: flex; gap: 9px; align-items: flex-start; padding: 0 2px; }
.vst-run-w .grow { min-width: 0; padding-top: 2px; }
.vst-run-w p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.vst-run-w time, .vst-run-fold time { flex: none; font-size: 11px; color: var(--text-3); padding-top: 3px; }
.vst-run-me { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font: 700 11px/1 var(--font); }
.vst-run-a { border: 1px solid var(--border); border-radius: 16px; padding: 14px 14px 12px; background: var(--surface); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.vst-run-a::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--iro-grad); opacity: .85; }
.vst-run.bad .vst-run-a::before { background: var(--down); }
.vst-run-ah { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; }
.vst-run-ah .vst-dm-av { width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: var(--accent-text); --mark-v: var(--iro-v); }
.vst-run-x { margin-left: auto; border: 0; background: none; color: var(--text-3); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.vst-run-x:hover { background: var(--surface-2); color: var(--text); }
.vst-run-txt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.vst-dm-sys { margin: 0; text-align: center; font-size: 11.5px; color: var(--text-3); }
.vst-run .vst-dm-chips { margin-top: 12px; }
.vst-dm-steps { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.vst-dm-steps summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); color: var(--text-2); }
.vst-dm-steps summary::-webkit-details-marker { display: none; }
.vst-dm-steps ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vst-dm-steps li { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.vst-dm-steps li svg { flex: none; margin-top: 2px; color: var(--text-3); }
.vst-dm-steps li.note { color: var(--text); }
.vst-run .vst-dm-look { margin-top: 12px; }
.vst-run-fold { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .12s, border-color .12s; }
.vst-run-fold:hover { background: var(--surface); border-color: var(--border-strong); }
.vst-run-fold .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vst-run-fold b, .vst-run-fold em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-run-fold b { font-size: 12.5px; } .vst-run-fold em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.vst-run-fold > svg:last-child { color: var(--text-3); flex: none; }
.vst-run-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--up-bg); color: var(--up); }
.vst-run-ic.bad { background: var(--down-bg); color: var(--down); }

/* the agent at work – iclipnow on set */
.iro-live { padding: 0 !important; overflow: hidden; border-radius: 18px !important; border: 1px solid var(--border) !important; max-width: 100% !important; width: 100%; }
.iro-set { position: relative; height: 128px; background: #0B0B0C; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.iro-gate { position: absolute; inset: 22px -40px; display: flex; gap: 10px; animation: iroGate 3.2s linear infinite; opacity: .55; }
.iro-gate i { flex: none; width: 74px; border-radius: 6px; background: linear-gradient(160deg, #1d1d20, #121214); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.iro-set::before, .iro-set::after { content: ''; position: absolute; left: 0; right: 0; height: 9px; z-index: 1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 6px, transparent 6px 14px); animation: iroHoles 3.2s linear infinite; }
.iro-set::before { top: 6px; } .iro-set::after { bottom: 6px; }
.iro-beam { position: absolute; z-index: 1; width: 260px; height: 260px; left: 50%; top: -70px; margin-left: -130px; background: radial-gradient(closest-side, rgba(255,178,91,.20), rgba(255,95,168,.10) 45%, transparent 70%); filter: blur(4px); animation: iroBreath 2.4s ease-in-out infinite; }
.iro-mark { position: relative; z-index: 2; overflow: visible; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.iro-mark .st { fill: #F4F4F2; }
.iro-mark .d { transform-box: fill-box; transform-origin: center; animation: iroDot 1.8s cubic-bezier(.5,0,.2,1) infinite; }
.iro-mark .d1 { fill: #9B82FF; } .iro-mark .d2 { fill: #FF5FA8; animation-delay: .18s; } .iro-mark .d3 { fill: #FFB25B; animation-delay: .36s; }
.iro-rec { position: absolute; z-index: 3; left: 14px; top: 20px; display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--mono); letter-spacing: .16em; color: rgba(255,255,255,.7); }
.iro-rec i { width: 7px; height: 7px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 8px #FF4D4D; animation: iroRec 1.2s steps(2, jump-none) infinite; }
.iro-tc { position: absolute; z-index: 3; right: 14px; top: 20px; font: 600 10.5px/1 var(--mono); color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.iro-live-b { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.iro-say { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); min-height: 20px; }
.iro-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.iro-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; color: var(--text-3); min-width: 0; }
.iro-steps li::before { content: ''; height: 3px; border-radius: 3px; background: var(--border); }
.iro-steps li.done::before { background: var(--text); }
.iro-steps li.on::before { background: linear-gradient(90deg, var(--iro-v), var(--iro-p), var(--iro-o), var(--border) 70%); background-size: 300% 100%; animation: iroFlow 1.6s linear infinite; }
.iro-steps li > span { display: none; }
.iro-steps li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iro-steps li.on b, .iro-steps li.done b { color: var(--text); }
.iro-live-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
@keyframes iroGate { to { transform: translateX(-84px); } }
@keyframes iroHoles { to { background-position: -14px 0; } }
@keyframes iroBreath { 50% { opacity: .55; transform: scale(.94); } }
@keyframes iroDot { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-4px) scale(1.12); } 70% { transform: translateY(0) scale(.96); } }
@keyframes iroRec { 50% { opacity: .2; } }
@keyframes iroFlow { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .iro-gate, .iro-set::before, .iro-set::after, .iro-beam, .iro-mark .d, .iro-steps li.on::before { animation: none; } }
/* rail: Regie busy dot */
.vst-rail button[data-tab=ai] { position: relative; }
.vst-rail button[data-tab=ai].busy::after { content: ''; position: absolute; top: 8px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--iro-p); box-shadow: 0 0 0 0 var(--iro-p); animation: gkPulse 1.4s infinite; }
.vst-rail button.on, .vst-rail button.is-dir.on { background: var(--surface-2) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1.5px var(--text) !important; }
.vst-rail button.is-dir svg { color: inherit; }

/* preview: our own loader instead of the vendor one */
.iro-load { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(60% 50% at 50% 45%, rgba(255,178,91,.08), transparent 70%); }
.vst-player-wrap:has(hyperframes-player[assets-loading]) .iro-load { opacity: 1; transition-delay: .35s; }
.iro-load .st { fill: rgba(255,255,255,.9); }
.iro-load .d { transform-box: fill-box; transform-origin: center; animation: iroDot 1.4s cubic-bezier(.5,0,.2,1) infinite; }
.iro-load .d1 { fill: #9B82FF; } .iro-load .d2 { fill: #FF5FA8; animation-delay: .15s; } .iro-load .d3 { fill: #FFB25B; animation-delay: .3s; }
/* transition length slider: grab it without side effects */
.vst-trpop input[type=range] { width: 100%; accent-color: var(--text); touch-action: none; }
.vst-hero-card.ai { background: var(--surface); border-color: var(--border); position: relative; overflow: hidden; }
.vst-hero-card.ai::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--iro-grad); }
.vst-rsz.on::after { background: var(--text) !important; }

/* ======================================================================
   v20 – galleries never overflow, clip editor in steps, "Farbe & Licht"
   ====================================================================== */
/* gallery tiles: text always inside (wraps, hyphenates, min-width 0) */
.vst-bl-gal { grid-template-columns: repeat(auto-fill, minmax(min(124px, 100%), 1fr)); }
.vst-bl-t, .vst-el-type { min-width: 0; overflow: hidden; padding: 8px 8px 10px; }
.vst-bl-t b, .vst-el-type b { display: block; min-width: 0; max-width: 100%; font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.vst-bl-t > span:last-child, .vst-el-type > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; line-height: 1.3; }
.vst-bl-pv, .vst-el-prev { max-width: 100%; }
.vst-gal-cat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vst-subtabs button span { min-width: 0; }
.vst-subtabs.n4 button { padding: 0 3px; font-size: 11.5px; gap: 4px; }
.vst-subtabs.n4 button svg { width: 13px; height: 13px; }
@media (max-width: 1200px) { .vst-subtabs.n4 button svg { display: none; } }

/* clip editor: numbered steps */
.vst-clip2 { display: flex; flex-direction: column; gap: 14px; }
.vst-cs { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.vst-cs-h { display: flex; gap: 10px; align-items: flex-start; }
.vst-cs-n { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font: 700 11px/1 var(--font); margin-top: 1px; }
.vst-cs-h b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.vst-cs-h b svg { color: var(--text-3); }
.vst-cs-h .grow > span { display: block; font-size: 12px; line-height: 1.4; color: var(--text-3); margin-top: 2px; }
.vst-cs-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.vst-cs-link:hover { border-color: var(--border-strong); background: var(--surface); }
.vst-cs-link > svg:first-child { flex: none; width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 9px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.vst-cs-link > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vst-cs-link b { font-size: 13px; } .vst-cs-link em { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.vst-cs-link > svg:last-child { flex: none; color: var(--text-3); }
.vst-cs-link[data-grtab] { position: relative; overflow: hidden; }
.vst-cs-link[data-grtab] > svg:first-child { background: linear-gradient(135deg, #FFE3B8, #FFC2DD 55%, #DCD2FF); color: #3A2A10; box-shadow: none; }
.vst-cs-swap { align-self: center; }
.vst-cs .vst-devs { margin: 0; }

/* Farbe & Licht */
.vst-gr { display: flex; flex-direction: column; gap: 12px; }
.vst-gr-h b { display: block; font-size: 14px; }
.vst-gr-h span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.vst-gr-h.row { display: flex; align-items: flex-start; gap: 8px; }
.vst-gr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vst-gr-t { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.vst-gr-pv { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 11px; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .14s, transform .14s; }
.vst-gr-pv img, .vst-gr-pv i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vst-gr-pv i { background: linear-gradient(135deg, #C9B39A, #6E8C9A 60%, #2D3A44); }
.vst-gr-pv em { position: absolute; inset: 0; pointer-events: none; }
.vst-gr-t:hover .vst-gr-pv { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(0,0,0,.35), inset 0 0 0 1px var(--border-strong); }
.vst-gr-t.on .vst-gr-pv { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.vst-gr-ck { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--surface); }
.vst-gr-n { font-size: 12px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.vst-gr-t.on .vst-gr-n { color: var(--text); }
.vst-gr-sl { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--border); }
.vst-gr-sl:first-of-type { border-top: 0; }
.vst-gr-l { display: flex; align-items: center; gap: 10px; }
.vst-gr-l > svg { flex: none; width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 9px; background: var(--surface-2); color: var(--text-2); }
.vst-gr-l > span { display: flex; flex-direction: column; min-width: 0; }
.vst-gr-l b { font-size: 13px; } .vst-gr-l em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.vst-gr-r { display: flex; align-items: center; gap: 10px; padding-left: 40px; }
.vst-gr-r output { flex: none; width: 38px; text-align: right; font: 600 12px/1 var(--mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.vst-gr-r input[type=range] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; touch-action: none; }
.vst-gr-r input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--text) 0 var(--p), var(--surface-3) var(--p)); }
.vst-gr-sl.mid .vst-gr-r input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--surface-3) 0 calc(50% - 1px), var(--text-3) calc(50% - 1px) calc(50% + 1px), var(--surface-3) calc(50% + 1px)); }
.vst-gr-r input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.vst-gr-r input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
.vst-gr-r input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); }
/* track colour per slider: you see what it does */
.vst-gr-sl:has([data-gr=w]) input::-webkit-slider-runnable-track { background: linear-gradient(90deg, #8DB7FF, var(--surface-3) 50%, #FFC07A) !important; }
.vst-gr-sl:has([data-gr=s]) input::-webkit-slider-runnable-track { background: linear-gradient(90deg, #BDBDBD, var(--surface-3) 50%, #FF5FA8) !important; }
.vst-gr-sl:has([data-gr=b]) input::-webkit-slider-runnable-track { background: linear-gradient(90deg, #2B2B2B, var(--surface-3) 50%, #FFF1C9) !important; }
.vst-gr-foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.vst-gr-foot .btn { flex: 1; justify-content: center; }
.vst-gr-foot [data-grcmp] { user-select: none; -webkit-user-select: none; touch-action: none; }
.vst-gr-foot [data-grcmp].on { background: var(--text); color: var(--surface); }
@media (max-width: 420px) { .vst-gr-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } .vst-gr-r { padding-left: 0; } }

/* v24 Hinzufügen-Knöpfe in der Timeline: immer am selben Platz (linker Rand der sichtbaren Spur), springen nicht mit dem Abspielkopf */
.vst-lane-add { position: sticky; left: calc(var(--lbl, 118px) + 8px); top: auto; transform: none; margin-top: 5px; display: inline-flex; align-items: center; gap: 6px; z-index: 3; }
.vst-row.subs .vst-lane-add { margin-top: 2px; }
.vst-row.sound .vst-lane-add { margin-top: 5px; }

/* ===== v24 · Logo: Karte, Formen, Assistent ===== */
.vst-logo0 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--border-strong); background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.vst-logo0 .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vst-logo0 b { font-size: 13.5px; } .vst-logo0 .faint { font-size: 12px; line-height: 1.35; }
.vst-logo0-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }
.vst-logos { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.vst-logos-h { display: flex; align-items: center; gap: 8px; } .vst-logos-h b { font-size: 13.5px; } .vst-logos-h .faint { font-size: 12px; flex: 1; }
.vst-logo-forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.vst-lf { display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); min-width: 0; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-lf:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.vst-lf b { font-size: 12px; padding: 0 2px; } .vst-lf > span:last-child { font-size: 10.5px; color: var(--text-3); line-height: 1.25; padding: 0 2px; }
.vst-lf-pv { position: relative; display: block; height: 56px; border-radius: 8px; overflow: hidden; margin-bottom: 4px; background: radial-gradient(120% 120% at 30% 20%, #5b4f47, #1e1a18 70%); }
.vst-lf-in { position: absolute; display: grid; place-items: center; }
.vst-lf-in img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.lf-corner .vst-lf-in { right: 7px; top: 6px; width: 30%; height: 30%; }
.lf-sticker .vst-lf-in { right: 12%; top: 18%; width: 40%; height: 54%; padding: 4px; border-radius: 9px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); rotate: -6deg; }
.lf-sticker .vst-lf-in img { filter: none; }
.lf-glass .vst-lf-in { left: 50%; top: 50%; translate: -50% -50%; width: 60%; height: 56%; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.lf-stamp .vst-lf-in { left: 50%; top: 50%; translate: -50% -50%; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #E7DCC6; }
.lf-stamp .vst-lf-in img { filter: none; }
.lf-stamp i.ring { position: absolute; inset: 3px; border-radius: 50%; border: 1.5px dashed rgba(17,17,17,.55); }
.lf-reveal .vst-lf-in, .lf-outro .vst-lf-in { left: 50%; top: 50%; translate: -50% -50%; width: 62%; height: 64%; }
.lf-reveal i.ln { position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: #E7DCC6; transform-origin: left; }
.lf-outro .vst-lf-pv { background: #0d0c0b; }
.lf-outro i.sh { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); translate: -120% 0; mix-blend-mode: overlay; }
@keyframes lfCorner { 0% { opacity: 0; translate: 10px 0 } 30%, 100% { opacity: 1; translate: 0 0 } }
@keyframes lfSticker { 0% { scale: 0; rotate: -30deg } 35% { scale: 1.12; rotate: 4deg } 50% { scale: 1; rotate: -6deg } 70% { rotate: -2deg } 85%, 100% { rotate: -6deg; scale: 1 } }
@keyframes lfGlass { 0% { opacity: 0; translate: -50% -20%; filter: blur(4px) } 40%, 100% { opacity: 1; translate: -50% -50%; filter: blur(0) } }
@keyframes lfSpin { to { rotate: 360deg } }
@keyframes lfStamp { 0% { scale: 1.6; opacity: 0 } 25% { scale: .92; opacity: 1 } 35%, 100% { scale: 1 } }
@keyframes lfLine { 0% { transform: scaleX(0) } 30%, 100% { transform: scaleX(1) } }
@keyframes lfWipe { 0%, 20% { clip-path: inset(0 100% 0 0) } 60%, 100% { clip-path: inset(0 0 0 0) } }
@keyframes lfBlur { 0% { opacity: 0; filter: blur(8px); scale: 1.15 } 45%, 100% { opacity: 1; filter: blur(0); scale: 1 } }
@keyframes lfShine { 0%, 45% { translate: -120% 0 } 85%, 100% { translate: 120% 0 } }
.lf-corner:hover .vst-lf-in { animation: lfCorner 1.6s ease-out infinite; }
.lf-sticker:hover .vst-lf-in { animation: lfSticker 1.8s cubic-bezier(.3,1.4,.5,1) infinite; }
.lf-glass:hover .vst-lf-in { animation: lfGlass 1.8s cubic-bezier(.2,.8,.2,1) infinite; }
.lf-stamp:hover .vst-lf-in { animation: lfStamp 2s ease-out infinite; } .lf-stamp:hover i.ring { animation: lfSpin 4s linear infinite; }
.lf-reveal:hover .vst-lf-in img { animation: lfWipe 1.9s cubic-bezier(.7,0,.2,1) infinite; } .lf-reveal:hover i.ln { animation: lfLine 1.9s cubic-bezier(.7,0,.2,1) infinite; }
.lf-outro:hover .vst-lf-in { animation: lfBlur 2.2s ease-out infinite; } .lf-outro:hover i.sh { animation: lfShine 2.2s ease-in-out infinite; }
/* gallery tile for the type */
.vst-el-prev .p-lg { left: 50%; top: 50%; translate: -50% -50%; display: flex !important; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.vst-el-prev .p-lg > i { position: static; width: 16px; height: 16px; border-radius: 50%; background: #E7DCC6; }
.vst-el-prev .p-lg b { font: 900 12px/1 var(--font); letter-spacing: .12em; color: #fff; }
/* wizard */
.lgw { display: flex; flex-direction: column; gap: 12px; min-width: min(560px, 82vw); }
.lgw-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 18px; border: 2px dashed var(--border-strong); border-radius: 16px; background: var(--surface-2); cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.lgw-drop:hover, .lgw-drop.over { border-color: var(--text); background: var(--surface); transform: scale(1.01); }
.lgw-drop b { font-size: 15px; } .lgw-drop .faint { font-size: 12.5px; }
.lgw-drop-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); margin-bottom: 4px; }
.lgw-cur { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); }
.lgw-cur img { height: 32px; max-width: 140px; object-fit: contain; flex: 0 1 auto; } .lgw-cur .btn { margin-left: auto; }
.lgw-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.lgw-tips li { display: flex; gap: 6px; align-items: center; } .lgw-tips svg { color: #10B981; }
.lgw-work { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 12px; text-align: center; }
.lgw-ok { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; background: color-mix(in srgb, #10B981 12%, var(--surface)); font-size: 13px; }
.lgw-ok svg { color: #10B981; flex: none; }
.lgw-prev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lgw-p { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.lgw-p img { width: 100%; height: 92px; object-fit: contain; padding: 14px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--border); }
.lgw-p figcaption { font-size: 11.5px; color: var(--text-2); text-align: center; font-weight: 600; }
.lgw-p.chk img { background: repeating-conic-gradient(#e7e5e1 0 25%, #fff 0 50%) 0 0/14px 14px; }
.lgw-p.lt img { background: #F6F4F0; }
.lgw-p.lgw-dk img { background: #121212; border-color: #121212; }
.lgw-p.lgw-vid img { background: radial-gradient(120% 120% at 30% 20%, #7a6a5e, #241f1c 70%); object-position: 92% 10%; padding: 10px; object-fit: contain; }
.lgw-p.lgw-vid img { padding: 10px 10px 50px 50px; }
img.inv { filter: brightness(0) invert(1); }
.lgw-fine { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.lgw-fine summary { cursor: pointer; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lgw-fine[open] summary { margin-bottom: 8px; }
.lgw-sl { display: grid; grid-template-columns: auto 1fr 64px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 6px; }
.lgw-sl em { font-style: normal; color: var(--text-3); font-size: 12px; }
@media (max-width: 640px) { .lgw-prev { grid-template-columns: 1fr 1fr; } .vst-logo-forms { grid-template-columns: 1fr 1fr; } }

/* ===== v24 · Hover-Vorschau: jede Element-/Board-Kachel spielt beim Drüberfahren ihren Auftritt ab ===== */
/* uses independent translate/scale/rotate props so the static transform of each piece stays intact */
@keyframes pvPop { 0% { opacity: 0; scale: .6 } 22% { opacity: 1; scale: 1.06 } 32%, 100% { opacity: 1; scale: 1 } }
@keyframes pvRise { 0% { opacity: 0; translate: 0 10px } 26%, 100% { opacity: 1; translate: 0 0 } }
@keyframes pvSlide { 0% { opacity: 0; translate: -14px 0 } 26%, 100% { opacity: 1; translate: 0 0 } }
@keyframes pvGrowX { 0% { clip-path: inset(0 100% 0 0) } 40%, 100% { clip-path: inset(0 0 0 0) } }
@keyframes pvSpin360 { 0% { rotate: -90deg; opacity: 0 } 35%, 100% { rotate: 0deg; opacity: 1 } }
@keyframes pvPulse { 0%, 100% { scale: 1 } 50% { scale: 1.07 } }
@keyframes pvDraw { 0% { stroke-dasharray: 400; stroke-dashoffset: 400 } 45%, 100% { stroke-dasharray: 400; stroke-dashoffset: 0 } }
@keyframes pvWiggle { 0%, 100% { translate: 0 0 } 25% { translate: -4px 0 } 75% { translate: 4px 0 } }
.vst-el-type, .vst-bl-t { transition: border-color .15s, transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; }
.vst-el-type:hover, .vst-bl-t:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.vst-el-prev, .vst-bl-pv { transition: filter .2s; }
.vst-el-type:hover .vst-el-prev, .vst-bl-t:hover .vst-bl-pv { filter: saturate(1.1) brightness(1.04); }
/* default for every element: the pieces pop in one after another */
.vst-el-type:hover .vst-el-prev > * { animation: pvPop 2.2s cubic-bezier(.2,.9,.3,1.2) infinite both; }
.vst-el-type:hover .vst-el-prev > *:nth-child(2) { animation-delay: .12s; }
.vst-el-type:hover .vst-el-prev > *:nth-child(3) { animation-delay: .24s; }
.vst-el-type:hover .vst-el-prev > * > i { animation: pvRise 2.2s ease-out infinite both; }
.vst-el-type:hover .vst-el-prev > * > i:nth-child(2) { animation-delay: .14s; } .vst-el-type:hover .vst-el-prev > * > i:nth-child(3) { animation-delay: .28s; } .vst-el-type:hover .vst-el-prev > * > i:nth-child(4) { animation-delay: .42s; } .vst-el-type:hover .vst-el-prev > * > i:nth-child(5) { animation-delay: .56s; }
/* type-specific flavours */
.vst-el-type:hover .pv-lower > * { animation-name: pvSlide; }
.vst-el-type:hover .pv-progress .p-pg > i > i, .vst-el-type:hover .pv-bars .p-br i { animation: pvGrowX 2.2s cubic-bezier(.6,0,.2,1) infinite both; translate: none; }
.vst-el-type:hover .pv-ring .p-rg { animation: pvSpin360 2.2s cubic-bezier(.2,.8,.2,1) infinite both; }
.vst-el-type:hover .pv-arrow svg path { animation: pvDraw 2.2s ease-out infinite both; }
.vst-el-type:hover .pv-arrow .p-ar { animation: none; }
.vst-el-type:hover .pv-cta .p-btn, .vst-el-type:hover .pv-badge .p-bg { animation: pvPop 2.2s cubic-bezier(.2,.9,.3,1.2) infinite both, pvPulse 1.1s .8s ease-in-out infinite; }
.vst-el-type:hover .pv-pointer .p-pt { animation: pvPop 2.2s infinite both, pvWiggle .8s .7s ease-in-out infinite; }
.vst-el-type:hover .pv-pip .p-face { animation: none; }
.vst-el-type:hover .pv-pip .p-phone { animation-name: pvRise; }
.vst-el-type:hover .pv-planet .p-pl { animation: pvSpin360 2.6s ease-out infinite both; }
/* boards: their inner pieces build up from bottom, staggered */
.vst-bl-t:hover .vst-bl-pv > * { animation: pvRise 2.4s cubic-bezier(.2,.8,.2,1) infinite both; }
.vst-bl-t:hover .vst-bl-pv > *:nth-child(2) { animation-delay: .1s; } .vst-bl-t:hover .vst-bl-pv > *:nth-child(3) { animation-delay: .2s; } .vst-bl-t:hover .vst-bl-pv > *:nth-child(4) { animation-delay: .3s; } .vst-bl-t:hover .vst-bl-pv > *:nth-child(5) { animation-delay: .4s; } .vst-bl-t:hover .vst-bl-pv > *:nth-child(n+6) { animation-delay: .5s; }
.vst-bl-t:hover .vst-bl-pv > * > i { animation: pvGrowX 2.4s .25s cubic-bezier(.6,0,.2,1) infinite both; }
@media (prefers-reduced-motion: reduce) { .vst-el-type:hover *, .vst-bl-t:hover *, .vst-lf:hover * { animation: none !important; } }
.brand-logo-card { display: flex; align-items: center; gap: 14px; }
.brand-logo-card .grow { min-width: 0; }
.brand-logo-prev { display: flex; gap: 6px; flex: none; }
.brand-logo-prev .lgw-p img { width: 86px; height: 56px; padding: 8px; }
.lgw { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.lgw-prev { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lgw-ok, .lgw-fine { box-sizing: border-box; max-width: 100%; }

/* ===== v24 · Regie-Gedächtnis: Bewertung + Ansicht ===== */
.vst-rate { margin: 10px 0 2px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.vst-rate.up { background: color-mix(in srgb, #10B981 9%, var(--surface)); }
.vst-rate.down { background: color-mix(in srgb, #F59E0B 10%, var(--surface)); }
.vst-rate-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.vst-rate-h span { flex: 1; min-width: 0; }
.vst-rate-b { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .12s, color .12s; }
.vst-rate-b:hover { transform: translateY(-1px); color: var(--text); border-color: var(--border-strong); }
.vst-rate-b.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.vst-rate-rs { display: flex; flex-wrap: wrap; gap: 5px; }
.vst-rate-r { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font: 600 12px/1 var(--font); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.vst-rate-r:hover { border-color: var(--border-strong); }
.vst-rate-r.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.vst-rate-note { display: flex; gap: 6px; } .vst-rate-note .input { flex: 1; min-width: 0; }
.vst-rate-more { align-self: flex-start; border: 0; background: none; padding: 0; font: 600 12px/1.3 var(--font); color: var(--text-2); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.vst-dir-mem { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 4px 10px; font: 600 11.5px/1 var(--font); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.vst-dir-mem:hover { color: var(--text); border-color: var(--border-strong); }
.vst-mem { display: flex; flex-direction: column; gap: 14px; width: min(620px, 86vw); max-width: 100%; }
.vst-mem-add { display: flex; gap: 8px; } .vst-mem-add .input { flex: 1; min-width: 0; }
.vst-mem-g h5 { margin: 0 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.vst-mem-i { display: flex; align-items: center; gap: 4px; padding: 8px 6px 8px 12px; border: 1px solid var(--border); border-radius: 11px; margin-bottom: 5px; font-size: 13.5px; }
.vst-mem-i.is-pin { border-color: var(--text); }
.vst-mem-i .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vst-mem-i em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.vst-mem-i .btn.on { color: var(--text); background: var(--surface-2); }
.vst-mem-st { display: flex; flex-direction: column; gap: 6px; }
.vst-mem-st > div { display: grid; grid-template-columns: 140px 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.vst-mem-st i { height: 6px; border-radius: 3px; background: var(--surface-3, #e5e2dc); overflow: hidden; display: block; }
.vst-mem-st b { display: block; height: 100%; background: #10B981; border-radius: 3px; }
.vst-mem-st em { font-style: normal; color: var(--text-3); text-align: right; }
.vst-mem-empty, .vst-mem-foot { font-size: 12.5px; margin: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ===== v25 · Logo-Assistent: Vorschläge nebeneinander + KI ===== */
.lgw-ok.warn { background: color-mix(in srgb, #F59E0B 13%, var(--surface)); } .lgw-ok.warn svg { color: #D97706; }
.lgw-cands { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lgw-cands.two { grid-template-columns: 1fr 1fr; }
.lgw-cand { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.lgw-cand:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.lgw-cand.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent); }
.lgw-cand.busy { cursor: default; }
.lgw-cand-h { display: flex; align-items: center; gap: 8px; } .lgw-cand-h b { font-size: 13px; flex: 1; }
.lgw-chk { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 99px; background: var(--text); color: var(--surface); font: 700 10.5px/1 var(--font); }
.lgw-chk.off { background: var(--surface-2); color: var(--text-3); }
.lgw-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lgw-two .lgw-trio, .lgw-cands.two .lgw-trio { grid-template-columns: 1fr; }
.lgw-cands.two .lgw-bg.lt { display: none; }
.lgw-bg { display: grid; place-items: center; height: 86px; border-radius: 10px; padding: 12px; box-sizing: border-box; overflow: hidden; }
.lgw-bg img, .lgw-bg canvas { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lgw-bg.chk { background: repeating-conic-gradient(#e7e5e1 0 25%, #fff 0 50%) 0 0/14px 14px; }
.lgw-bg.lt { background: #F6F4F0; }
.lgw-bg.vid { background: radial-gradient(120% 120% at 30% 20%, #7a6a5e, #241f1c 70%); }
.lgw-aiwork { height: 186px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: linear-gradient(120deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: lgwShimmer 1.6s linear infinite; text-align: center; }
.lgw-aiwork b { font-size: 13px; } .lgw-aiwork em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
@keyframes lgwShimmer { to { background-position: -200% 0 } }
.lgw-aiorb { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: conic-gradient(from 0deg, #7C3AED, #EC4899, #F59E0B, #10B981, #3B82F6, #7C3AED); box-shadow: 0 4px 14px rgba(124, 58, 237, .35); }
.lgw-aiwork .lgw-aiorb { animation: lfSpin 2.4s linear infinite; }
.lgw-ai { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, #7C3AED 9%, var(--surface)), color-mix(in srgb, #EC4899 7%, var(--surface))); border: 1px solid color-mix(in srgb, #7C3AED 25%, var(--border)); }
.lgw-ai .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .lgw-ai b { font-size: 13.5px; } .lgw-ai span:not(.lgw-aiorb) { font-size: 12px; color: var(--text-2); line-height: 1.35; }
.lgw-hint { margin: 0; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.lgw-tag { padding: 2px 7px; border-radius: 99px; background: var(--surface-2); font: 700 10.5px/1.4 var(--font); }
@media (max-width: 640px) { .lgw-cands.two { grid-template-columns: 1fr; } .lgw-ai { flex-wrap: wrap; } }

/* ===== v25 · Kamera & Farbe – für Dummys: jede Option zeigt sich selbst ===== */
.vst-cam2, .vst-snd2, .vst-col2 { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vst-cam2-h { display: flex; align-items: flex-start; gap: 10px; }
.vst-cam2-h .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vst-cam2-h b { font-size: 14px; } .vst-cam2-h .faint { font-size: 12px; line-height: 1.4; }
.vst-cam2-h .switch { margin-top: 2px; }
.vst-cam2-auto { margin: 0; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; line-height: 1.35; }
.vst-cam2-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 0; color: var(--text); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* zoom style cards */
.vst-zs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vst-zs-c { display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 10px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); min-width: 0; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-zs-c:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.vst-zs-c.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.vst-zs-c b { font-size: 13px; padding: 4px 3px 0; }
.vst-zs-fx { font-size: 11.5px; color: var(--text); padding: 0 3px; line-height: 1.3; font-weight: 600; }
.vst-zs-when { font-size: 11px; color: var(--text-3); padding: 0 3px; line-height: 1.3; }
.vst-zs-v { position: relative; display: block; aspect-ratio: 4/5; max-height: 132px; width: 100%; border-radius: 10px; overflow: hidden; background: #1d1a19; }
.vst-zs-pic { position: absolute; inset: 0; background: var(--bg) center 30%/cover no-repeat; transform-origin: 50% 36%; will-change: transform; }
.vst-zs-frame { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -40px 40px -20px rgba(0,0,0,.45); pointer-events: none; }
.vst-zs-word { position: absolute; left: 50%; bottom: 12%; translate: -50% 0; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font: 800 11px/1 var(--font); font-style: normal; letter-spacing: .02em; opacity: .0; white-space: nowrap; }
.vst-zs-on { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
/* the selected card always shows its motion softly, hover shows it for any card */
@keyframes zsSubtle { 0% { transform: scale(1) } 100% { transform: scale(1.1) } }
@keyframes zsNormal { 0%, 30% { transform: scale(1) } 36%, 62% { transform: scale(1.2) } 70%, 100% { transform: scale(1) } }
@keyframes zsNormalW { 0%, 30% { opacity: 0 } 36%, 62% { opacity: 1 } 70%, 100% { opacity: 0 } }
@keyframes zsPunchy { 0%, 10% { transform: scale(1) } 14%, 30% { transform: scale(1.3) rotate(-.6deg) } 34%, 50% { transform: scale(1.05) } 54%, 72% { transform: scale(1.36) rotate(.6deg) } 76%, 100% { transform: scale(1) } }
@keyframes zsPunchyW { 0%, 10% { opacity: 0; scale: .7 } 14%, 30% { opacity: 1; scale: 1.1 } 34%, 50% { opacity: 0 } 54%, 72% { opacity: 1; scale: 1.15 } 76%, 100% { opacity: 0 } }
.vst-zs-c:hover .zs-subtle .vst-zs-pic, .vst-zs-c.on .zs-subtle .vst-zs-pic { animation: zsSubtle 3.2s cubic-bezier(.4,0,.2,1) infinite alternate; }
.vst-zs-c:hover .zs-normal .vst-zs-pic, .vst-zs-c.on .zs-normal .vst-zs-pic { animation: zsNormal 2.6s cubic-bezier(.2,.9,.3,1) infinite; }
.vst-zs-c:hover .zs-normal .vst-zs-word, .vst-zs-c.on .zs-normal .vst-zs-word { animation: zsNormalW 2.6s ease infinite; }
.vst-zs-c:hover .zs-punchy .vst-zs-pic, .vst-zs-c.on .zs-punchy .vst-zs-pic { animation: zsPunchy 2.2s cubic-bezier(.1,.9,.2,1) infinite; }
.vst-zs-c:hover .zs-punchy .vst-zs-word, .vst-zs-c.on .zs-punchy .vst-zs-word { animation: zsPunchyW 2.2s ease infinite; }
.vst-zs-c:not(:hover):not(.on) .vst-zs-pic { transition: transform .4s; }
.zs-off .vst-zs-pic { filter: saturate(.9); }
/* sound cards */
.vst-ss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vst-ss-c { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); min-width: 0; transition: border-color .15s, transform .15s; }
.vst-ss-c:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.vst-ss-c.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.vst-ss-c b { font-size: 13px; padding-top: 4px; display: flex; align-items: center; gap: 4px; }
.vst-ss-on { width: 16px; height: 16px; border-radius: 50%; background: var(--text); color: var(--surface); display: inline-grid; place-items: center; }
.vst-ss-play { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: transform .12s; }
.vst-ss-play:hover { transform: scale(1.08); }
.vst-ss-wave { display: flex; align-items: center; gap: 2px; height: 34px; padding-right: 36px; }
.vst-ss-wave i { flex: 1; max-width: 4px; border-radius: 2px; background: var(--text-3); opacity: .45; height: calc(18% + 60% * var(--h, .4)); }
.ss-soft i { --h: calc(.2 + .35 * (1 - (var(--i) - 9) * (var(--i) - 9) / 81)); border-radius: 3px; }
.ss-crisp i:nth-child(3n+1) { --h: .95; } .ss-crisp i:nth-child(3n+2) { --h: .35; } .ss-crisp i:nth-child(3n) { --h: .6; }
@keyframes ssBar { 0%, 100% { transform: scaleY(.5); opacity: .45 } 50% { transform: scaleY(1.25); opacity: 1 } }
.vst-ss-c:hover .vst-ss-wave i, .vst-ss-wave.play i { animation: ssBar .9s ease-in-out infinite; animation-delay: calc(var(--i) * -55ms); background: var(--text); }
.ss-soft.play i, .vst-ss-c:hover .ss-soft i { animation-duration: 1.6s; }
/* colours */
.vst-col2-live { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: var(--bg) center 30%/cover no-repeat, #2a2421; display: flex; align-items: center; justify-content: center; }
.vst-col2-live::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.vst-col2-tag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.5); color: #fff; font: 700 10.5px/1.3 var(--font); backdrop-filter: blur(6px); }
.vst-cmk { position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 8px 10px; align-items: center; }
.vst-cmk-kpi { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--p); box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: background .25s; }
.vst-cmk-kpi b { font: 900 24px/1 var(--font); color: var(--a); transition: color .25s; } .vst-cmk-kpi em { font: 600 10px/1.3 var(--font); font-style: normal; color: var(--t); }
.vst-cmk-list { display: grid; grid-template-columns: 12px auto; gap: 4px 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--p); box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: background .25s; }
.vst-cmk-list i { width: 12px; height: 12px; border-radius: 4px; background: var(--a); position: relative; transition: background .25s; }
.vst-cmk-list i::after { content: ''; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid var(--p); border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.vst-cmk-list em { font: 700 10.5px/1 var(--font); font-style: normal; color: var(--t); transition: color .25s; }
.vst-cmk-btn { justify-self: start; padding: 7px 12px; border-radius: 99px; background: var(--a); color: var(--o); font: 800 11px/1 var(--font); box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: background .25s; }
@keyframes cmkHl { 0%, 100% { outline-color: rgba(255,255,255,0) } 50% { outline-color: #fff } }
.vst-cmk .hl { outline: 2px solid #fff; outline-offset: 3px; animation: cmkHl 1s ease-in-out infinite; }
.vst-col2-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.vst-col2-lk { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); min-width: 0; transition: border-color .15s, transform .15s; }
.vst-col2-lk:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.vst-col2-lk.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.vst-col2-sw { flex: none; display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 9px 9px 9px 3px; background: var(--p); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.vst-col2-sw i { width: 8px; height: 8px; border-radius: 50%; background: var(--a); } .vst-col2-sw b { font: 900 11px/1 var(--font); color: var(--a); }
.vst-col2-n { display: flex; flex-direction: column; min-width: 0; } .vst-col2-n b { font-size: 12px; } .vst-col2-n em { font-style: normal; font-size: 10.5px; color: var(--text-3); line-height: 1.25; }
.vst-col2-chk { position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: var(--surface); display: grid; place-items: center; }
.vst-col2-fine { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.vst-col2-fine summary { cursor: pointer; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vst-col2-fine[open] summary { margin-bottom: 8px; }
.vst-col2-row { display: flex; flex-direction: column; gap: 5px; padding: 6px; border-radius: 10px; transition: background .15s; }
.vst-col2-row:hover { background: var(--surface-2); }
.vst-col2-rl { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } .vst-col2-rl b { font-size: 12.5px; } .vst-col2-rl em { font-style: normal; font-size: 11px; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .vst-zs-c *, .vst-ss-c *, .vst-cmk .hl { animation: none !important; } }
.vst-col2-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vst-col2-n em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vst-cmk .hl { outline-width: 1.5px; outline-offset: 2px; border-radius: 6px; }
.vst-cmk-list i.hl, .vst-cmk-kpi b.hl, .vst-cmk-kpi em.hl, .vst-cmk-list em.hl { outline-offset: 1px; }
.vst-cam2-auto svg { flex: none; }

/* ===== v26 · Stil – große Live-Vorschau + Karten, die sich selbst zeigen ===== */
.vst-style3 { display: flex; flex-direction: column; gap: 14px; }
.vst-st3-live { position: relative; border-radius: 14px; overflow: hidden; height: 190px; box-shadow: 0 8px 26px rgba(0,0,0,.14); }
.vst-st3-live .vst-sp { height: 100%; border-radius: 0; margin: 0; }
.vst-st3-tag { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font: 700 11px/1.3 var(--font); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vst-st3-sec { padding: 14px; gap: 12px; }
.vst-st3-h { display: flex; flex-direction: column; gap: 3px; }
.vst-st3-h b { font-size: 14px; } .vst-st3-h span { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.vst-st3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vst-st3-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vst-st3-c { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 10px; border: 1.5px solid var(--border); border-radius: 13px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); min-width: 0; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-st3-c:hover, .vst-st3-c:focus-visible { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); outline: none; }
.vst-st3-c.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.vst-st3-c b { font-size: 12.5px; padding: 5px 3px 0; }
.vst-st3-fx { font-size: 11.2px; color: var(--text-2); padding: 0 3px; line-height: 1.3; }
.vst-st3-wh { font-size: 10.8px; color: var(--text-3); padding: 0 3px; line-height: 1.3; }
.vst-st3-on { position: absolute; right: 10px; top: 10px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.vst-st3-pro { padding: 12px 14px; }
.vst-st3-pro > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; font-size: 13px; flex-wrap: wrap; }
.vst-st3-pro > summary::-webkit-details-marker { display: none; }
.vst-st3-pro > summary .faint { font-size: 12px; margin-left: auto; }
.vst-st3-pro[open] > summary { margin-bottom: 12px; }
.vst-st3-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.vst-st3-block:last-child { margin-bottom: 0; }
.vst-st3-bl { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.vst-st3-tg { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.vst-st3-tg.mini { padding: 8px 10px; }
.vst-st3-tg .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .vst-st3-tg b { font-size: 12.5px; } .vst-st3-tg em { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.vst-st3-tgv { flex: none; width: 54px; height: 54px; border-radius: 10px; position: relative; overflow: hidden; }
.grain-demo { background: var(--bg) center/cover, #3a312c; }
.grain-demo::after { content: ''; position: absolute; inset: -50%; opacity: .5; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); animation: grainMove .5s steps(4) infinite; }
@keyframes grainMove { 0% { transform: translate(0, 0) } 25% { transform: translate(-6%, 4%) } 50% { transform: translate(5%, -5%) } 75% { transform: translate(-3%, -6%) } }
.safe-demo { background: linear-gradient(160deg, #3a3532, #1d1a19); }
.safe-demo::before { content: ''; position: absolute; right: 5px; top: 18px; width: 5px; height: 26px; background: repeating-linear-gradient(#fff 0 4px, transparent 4px 8px); opacity: .7; }
.safe-demo::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); }
.safe-demo i { position: absolute; inset: 9px 14px 14px 8px; border: 1.5px dashed #10B981; border-radius: 4px; }
.vst-st3-crow, .vst-st3-frow { display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.vst-st3-cl, .vst-st3-fl { display: flex; align-items: center; gap: 10px; }
.vst-st3-cl > i { width: 28px; height: 28px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.vst-st3-fl > b { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; flex: none; }
.vst-st3-cl > span, .vst-st3-fl > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vst-st3-cl > span b, .vst-st3-fl > span b { font-size: 12.5px; } .vst-st3-cl em, .vst-st3-fl > span em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
/* the moving sample */
.vst-sp { position: relative; display: block; width: 100%; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: var(--bg) center 30%/cover no-repeat, #2a2421; }
.vst-sp::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.4)); }
.vst-sp.grain::after { content: ''; position: absolute; inset: -50%; opacity: .32; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); animation: grainMove .5s steps(4) infinite; }
.vst-sp-pl { position: absolute; left: 9%; right: 9%; bottom: 12%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 7px 9px; border-radius: 7px; }
.vst-sp-pl.none { text-shadow: 0 1px 8px rgba(0,0,0,.6); padding-left: 0; }
.vst-sp-lb { font-style: normal; font-size: 7px; letter-spacing: .18em; font-weight: 600; }
.vst-sp-pl b { font-size: 13px; line-height: 1.05; white-space: nowrap; }
.vst-sp-pl b em { font-weight: 400; }
.vst-sp-ln { display: block; width: 34%; height: 2px; border-radius: 2px; transform-origin: left; }
.vst-sp.big .vst-sp-pl { left: 8%; right: auto; bottom: 14%; padding: 14px 18px; gap: 6px; border-radius: 12px; max-width: 84%; }
.vst-sp.big .vst-sp-pl.none { padding-left: 0; }
.vst-sp.big .vst-sp-lb { font-size: 11px; } .vst-sp.big .vst-sp-pl b { font-size: 30px; } .vst-sp.big .vst-sp-ln { height: 3px; width: 46%; }
@keyframes spIn { 0% { opacity: 0; translate: 0 var(--dist) } 22%, 82% { opacity: 1; translate: 0 0 } 100% { opacity: 0; translate: 0 calc(var(--dist) * -.4) } }
@keyframes spInSnap { 0% { opacity: 0; translate: 0 var(--dist); scale: .9 } 14% { opacity: 1; translate: 0 -3px; scale: 1.03 } 22%, 82% { opacity: 1; translate: 0 0; scale: 1 } 100% { opacity: 0; scale: .96 } }
@keyframes spLine { 0%, 18% { transform: scaleX(0) } 40%, 100% { transform: scaleX(1) } }
@keyframes spLb { 0%, 8% { opacity: 0; letter-spacing: .5em } 30%, 100% { opacity: 1 } }
.vst-sp .vst-sp-pl { animation: spIn calc(var(--d) * 1.6) var(--e) infinite; }
.vst-sp.mo-snappy .vst-sp-pl { animation-name: spInSnap; }
.vst-sp .vst-sp-ln { animation: spLine calc(var(--d) * 1.6) var(--e) infinite; }
.vst-sp .vst-sp-lb { animation: spLb calc(var(--d) * 1.6) ease-out infinite; }
/* small cards: still until hovered/selected (calm UI), big preview always plays */
.vst-st3-c:not(:hover):not(:focus-visible):not(.on) .vst-sp *, .vst-st3-c:not(:hover):not(:focus-visible):not(.on) .vst-sp::after { animation-play-state: paused; }
.vst-st3-c:not(:hover):not(:focus-visible):not(.on) .vst-sp .vst-sp-pl { animation: none; opacity: 1; }
.vst-st3-c:not(:hover):not(:focus-visible):not(.on) .vst-sp .vst-sp-ln, .vst-st3-c:not(:hover):not(:focus-visible):not(.on) .vst-sp .vst-sp-lb { animation: none; }
/* transition demo */
.vst-cp { position: relative; display: block; width: 100%; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: #111; }
.vst-cp i { position: absolute; inset: 0; display: grid; place-items: center; }
.vst-cp i.s1 { background: var(--bg) center 30%/cover no-repeat, #3a302a; }
.vst-cp i.s2 { background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 35%, #000)); }
.vst-cp i.s2 b { font-size: 26px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
@keyframes cpFade { 0%, 30% { opacity: 0 } 55%, 80% { opacity: 1 } 100% { opacity: 0 } }
@keyframes cpWhip { 0%, 28% { transform: translateX(105%); filter: blur(0) } 38% { filter: blur(6px) } 46%, 80% { transform: translateX(0); filter: blur(0) } 90% { transform: translateX(-105%); filter: blur(5px) } 100% { transform: translateX(-105%) } }
@keyframes cpZoom { 0%, 28% { transform: scale(1) } 44% { transform: scale(1.5); filter: blur(3px) } 46%, 100% { transform: scale(1); filter: none } }
@keyframes cpHard { 0%, 49.9% { opacity: 0 } 50%, 89.9% { opacity: 1 } 90%, 100% { opacity: 0 } }
.vst-st3-c:hover .cut-smooth i.s2, .vst-st3-c.on .cut-smooth i.s2 { animation: cpFade 2.6s ease-in-out infinite; }
.vst-st3-c:hover .cut-dynamic i.s2, .vst-st3-c.on .cut-dynamic i.s2 { animation: cpWhip 2.4s cubic-bezier(.7,0,.2,1) infinite; }
.vst-st3-c:hover .cut-dynamic i.s1, .vst-st3-c.on .cut-dynamic i.s1 { animation: cpZoom 2.4s cubic-bezier(.7,0,.2,1) infinite; }
.vst-st3-c:hover .cut-cut i.s2, .vst-st3-c.on .cut-cut i.s2 { animation: cpHard 2s steps(1) infinite; }
.vst-cp i.s2 { opacity: 0; } .cut-dynamic i.s2 { opacity: 1; transform: translateX(105%); }
@media (max-width: 720px) { .vst-st3-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vst-st3-live { height: 160px; } }
@media (prefers-reduced-motion: reduce) { .vst-style3 *, .vst-style3 *::after { animation: none !important; } .vst-sp-pl, .vst-cp i.s2 { opacity: 1 !important; } }

/* ===== v26 · Bearbeiten: gleichmäßige Abstände + Animationskarten ===== */
.vst-insp[data-insp] .vst-pane:not([hidden]) { display: flex; flex-direction: column; gap: 12px; }
.vst-insp[data-insp] { gap: 12px; }
.vst-insp[data-insp] > .vst-card, .vst-insp[data-insp] .vst-pane > .vst-card { padding: 14px; gap: 10px; margin: 0; }
.vst-insp[data-insp] .vst-sec > summary { margin: 0; }
.vst-insp[data-insp] .vst-sec[open] > summary { margin-bottom: 4px; }
.vst-insp[data-insp] .vst-subtabs { margin-bottom: 2px; }
.vst-insp[data-insp] .vst-actions { padding: 12px 14px; }
.vst-insp .vst-chips { gap: 6px; row-gap: 6px; }
.vst-insp .vst-sl { margin: 2px 0; }
.vst-insp .label + .vst-chips, .vst-insp .label + .vst-sw { margin-top: 2px; }
.vst-insp .vst-chips + .label { margin-top: 6px; }
.vst-time2 { gap: 10px; }
.vst-st3-h b { display: inline-flex; align-items: center; gap: 6px; }
/* animation cards */
.vst-txa { gap: 12px; }
.vst-txa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.vst-txa-grid.four { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.vst-txa-c { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 5px 5px 9px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); min-width: 0; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-txa-c:hover, .vst-txa-c:focus-visible { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); outline: none; }
.vst-txa-c.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.vst-txa-c > b { font-size: 12px; padding: 5px 4px 0; } .vst-txa-c > em { font-style: normal; font-size: 10.8px; color: var(--text-3); padding: 0 4px; line-height: 1.25; }
.vst-txa-c .vst-st3-on { right: 9px; top: 9px; width: 18px; height: 18px; }
.vst-txa-v { position: relative; display: grid; place-items: center; height: 62px; border-radius: 8px; overflow: hidden; background: var(--bg) center 30%/cover no-repeat, #2a2421; }
.vst-txa-v::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.vst-txa-v > b { position: relative; color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.vst-txa-v > b > span { display: inline-block; }
.vst-txa-v i { font-style: normal; display: inline-block; }
/* keyframes: in */
@keyframes txFade { 0%, 8% { opacity: 0 } 40%, 85% { opacity: 1 } 100% { opacity: 1 } }
@keyframes txRise { 0%, 8% { opacity: 0; translate: 0 16px } 40%, 100% { opacity: 1; translate: 0 0 } }
@keyframes txPop { 0%, 8% { opacity: 0; scale: .4 } 28% { opacity: 1; scale: 1.15 } 40%, 100% { scale: 1; opacity: 1 } }
@keyframes txSlide { 0%, 8% { opacity: 0; translate: -46px 0 } 40%, 100% { opacity: 1; translate: 0 0 } }
@keyframes txBlur { 0%, 8% { opacity: 0; filter: blur(10px); scale: 1.1 } 50%, 100% { opacity: 1; filter: blur(0); scale: 1 } }
@keyframes txWord { 0%, 10% { opacity: 0; translate: 0 8px } 22%, 100% { opacity: 1; translate: 0 0 } }
@keyframes txType { 0%, 4% { opacity: 0 } 5%, 100% { opacity: 1 } }
@keyframes txNone { 0%, 30% { opacity: 0 } 31%, 100% { opacity: 1 } }
/* out */
@keyframes txOFade { 0%, 45% { opacity: 1 } 80%, 100% { opacity: 0 } }
@keyframes txOSink { 0%, 45% { opacity: 1; translate: 0 0 } 80%, 100% { opacity: 0; translate: 0 18px } }
@keyframes txOPop { 0%, 45% { opacity: 1; scale: 1 } 55% { scale: 1.1 } 75%, 100% { opacity: 0; scale: .3 } }
@keyframes txONone { 0%, 60% { opacity: 1 } 61%, 100% { opacity: 0 } }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-none > b > span { animation: txNone 2.2s steps(1) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-fade > b > span { animation: txFade 2.4s ease infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-rise > b > span { animation: txRise 2.4s cubic-bezier(.2,.8,.2,1) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-pop > b > span { animation: txPop 2.2s cubic-bezier(.3,1.5,.5,1) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-slide > b > span { animation: txSlide 2.4s cubic-bezier(.2,.8,.2,1) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-blur > b > span { animation: txBlur 2.6s ease-out infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-words i { animation: txWord 2.6s ease-out infinite both; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-words i:nth-child(2) { animation-delay: .25s; } .vst-txa-c:is(:hover, :focus-visible, .on) .in-words i:nth-child(3) { animation-delay: .5s; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-type i { animation: txType 2.8s steps(1) infinite both; animation-delay: calc(var(--k) * .09s); }
.vst-txa-c:is(:hover, :focus-visible, .on) .out-none > b > span { animation: txONone 2.2s steps(1) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .out-fade > b > span { animation: txOFade 2.4s ease infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .out-sink > b > span { animation: txOSink 2.4s cubic-bezier(.6,0,.8,.4) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .out-pop > b > span { animation: txOPop 2.2s cubic-bezier(.5,0,.7,.4) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .in-type > b > span::after { content: '|'; margin-left: 1px; color: var(--ac); animation: txOFade .8s steps(1) infinite; }
/* speed */
.vst-txa-speed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vst-txa-sp { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); text-align: left; transition: border-color .15s; }
.vst-txa-sp:hover { border-color: var(--border-strong); }
.vst-txa-sp.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.vst-txa-sp b { font-size: 12.5px; margin-top: 6px; } .vst-txa-sp em { font-style: normal; font-size: 11px; color: var(--text-3); }
.vst-txa-dot { position: relative; display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.vst-txa-dot i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
@keyframes txaDot { 0% { left: 0 } 50% { left: calc(100% - 8px) } 100% { left: 0 } }
.vst-txa-sp:hover .vst-txa-dot i, .vst-txa-sp.on .vst-txa-dot i { animation: txaDot calc(2.2s / var(--sp)) cubic-bezier(.45,0,.55,1) infinite; }
@media (prefers-reduced-motion: reduce) { .vst-txa *, .vst-txa *::after { animation: none !important; } }
.vst-st3-grid.three .vst-sp-pl { left: 7%; right: 7%; padding: 5px 7px; }
.vst-st3-grid.three .vst-sp-pl b { font-size: 10.5px; }
.vst-st3-grid.three .vst-sp-lb { font-size: 6px; }
.vst-st3-pro > summary .faint { margin-left: 0; flex-basis: 100%; padding-left: 21px; }
.vst-txa-grid, .vst-txa-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vst-txa-v { height: 46px; }
.vst-txa-v > b { font-size: 11.5px; }
.vst-txa-c > b { font-size: 11.5px; } .vst-txa-c > em { font-size: 10.3px; }
@media (max-width: 1280px) { .vst-txa-grid, .vst-txa-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* text inspector polish */
.vst-txa-grid, .vst-txa-grid.four { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.vst-txa-c > b, .vst-txa-c > em { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.vst-insp[data-insp] .label { display: block; margin: 4px 0 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.vst-insp[data-insp] .vst-sw + .label { margin-top: 10px; }
.vst-insp[data-insp] .vst-bgk { margin-bottom: 4px; }
.vst-insp[data-insp] .vst-sl { gap: 10px; }
/* text looks: hover plays the text in (like in the video) */
@keyframes preIn { 0%, 6% { opacity: 0; translate: 0 10px; filter: blur(3px) } 34%, 100% { opacity: 1; translate: 0 0; filter: blur(0) } }
.vst-pre:hover .vst-pre-v .txb, .vst-bgb:hover .vst-pre-v .txb { animation: preIn 1.8s cubic-bezier(.2,.8,.2,1) infinite; }
.vst-pre, .vst-bgb { transition: transform .15s, box-shadow .15s, border-color .15s; }
.vst-pre:hover, .vst-bgb:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) { .vst-pre:hover .txb, .vst-bgb:hover .txb { animation: none; } }

/* v26 – text inspector: live preview + explained font / colour / background */
.vst-txlive { position: relative; margin: 0; height: 150px; border-radius: 14px; overflow: hidden; background: var(--sbg) center/cover, #2a2421; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.vst-txlive::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 35%, transparent 65%, rgba(0,0,0,.3)); pointer-events: none; }
.vst-txlive-s { position: relative; z-index: 2; max-width: 92%; display: grid; place-items: center; }
.vst-txlive-s .txb { max-width: 100%; }
.vst-txlive-s.kick .txb { animation: txLiveIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes txLiveIn { from { opacity: .2; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.vst-txlive.peek .vst-st3-tag { background: var(--focus); }
.vst-txlive-play { position: absolute; right: 10px; bottom: 10px; z-index: 3; border: 0; border-radius: 99px; padding: 5px 11px; background: rgba(255,255,255,.92); color: #111; font: 700 11.5px/1 var(--font); display: inline-flex; gap: 5px; align-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.vst-txlive-play:hover { background: #fff; }
.vst-insp[data-insp="text"] > .vst-txlive { margin-bottom: 2px; }
.vst-insp[data-insp="text"] { display: flex; flex-direction: column; gap: 12px; }
.vst-insp[data-insp="text"] .vst-subtabs { margin: 0; }
.vst-txf { display: flex; flex-direction: column; gap: 12px; }
.vst-txf-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.vst-txf-c { position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 12px 11px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; min-width: 0; font: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-txf-c > b { font-size: 21px; line-height: 1.15; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.vst-txf-c > span { font-size: 12.5px; font-weight: 700; }
.vst-txf-c > span i { font-style: normal; font-weight: 500; color: var(--text-3); font-size: 11px; margin-left: 3px; }
.vst-txf-c > em { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.vst-txf-c:hover, .vst-txsz-c:hover, .vst-txal button:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.07); }
.vst-txf-c.on, .vst-txsz-c.on, .vst-txal button.on { border-color: var(--focus); box-shadow: 0 0 0 1.5px var(--focus); }
.vst-txf-c .vst-st3-on { right: 9px; top: 9px; width: 18px; height: 18px; background: var(--focus); color: #fff; }
.vst-txsz { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.vst-txsz-c { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 86px; padding: 8px 4px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-txsz-c b { line-height: 1; font-weight: 700; margin-bottom: auto; margin-top: auto; }
.vst-txsz-c span { font-size: 12px; font-weight: 700; }
.vst-txsz-c em { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.vst-txal { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.vst-txal.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.vst-txal button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); font: 600 12.5px/1 var(--font); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-txal button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vst-txal.two button span { font-size: 11.5px; }
.vst-slh-list { display: flex; flex-direction: column; gap: 14px; }
.vst-slh { display: flex; flex-direction: column; gap: 3px; }
.vst-slh p { margin: 0 0 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.vst-insp[data-insp] .vst-slh .vst-sl { grid-template-columns: 96px 1fr 58px; margin: 0; }
.vst-txf > details.vst-more { border-top: 1px solid var(--border); padding-top: 12px; }
.vst-txf > details.vst-more > .vst-slh-list, .vst-txf > details.vst-more > .row { margin-top: 2px; }
details.vst-txf > summary .faint { font-weight: 500; font-size: 12px; margin-left: 4px; }
details.vst-txf[open] > summary { margin-bottom: 4px; }
.vst-txcol { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2, rgba(0,0,0,.025)); }
.vst-txcol > div:first-child { display: flex; flex-direction: column; gap: 1px; }
.vst-txcol > div:first-child b { font-size: 12.5px; }
.vst-txcol > div:first-child em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.vst-txbg { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.vst-txbg-c { position: relative; text-align: left; border-width: 1.5px; border-radius: 12px; }
.vst-txbg-c .vst-pre-v { height: 58px; }
.vst-txbg-t { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px 9px; }
.vst-txbg-t b { font-size: 12.5px; }
.vst-txbg-t em { font-style: normal; font-size: 11px; color: var(--text-3); line-height: 1.3; font-weight: 400; }
.vst-bgb > .vst-txbg-t { font-size: inherit; padding: 7px 9px 9px; }
.vst-txbg-c .vst-st3-on { right: 7px; top: 7px; width: 18px; height: 18px; background: var(--focus); color: #fff; }
@media (prefers-reduced-motion: reduce) { .vst-txlive-s.kick .txb { animation: none; } }
.vst-insp[data-insp="text"] > .vst-txlive { position: sticky; top: 0; z-index: 6; box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); }
/* scene camera demo cards */
.vst-camv { position: absolute; inset: -14%; background: center/cover no-repeat; will-change: transform; }
.vst-camf { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.vst-txa-v:has(.vst-camv)::before { display: none; }
@keyframes camIn { from { transform: scale(1); } to { transform: scale(1.28); } }
@keyframes camOut { from { transform: scale(1.28); } to { transform: scale(1); } }
@keyframes camPan { from { transform: translateX(-9%); } to { transform: translateX(9%); } }
.vst-txa-c:is(:hover, :focus-visible, .on) .cam-in { animation: camIn 2.6s cubic-bezier(.3,.1,.3,1) infinite alternate; }
.vst-txa-c:is(:hover, :focus-visible, .on) .cam-out { animation: camOut 2.6s cubic-bezier(.3,.1,.3,1) infinite alternate; }
.vst-txa-c:is(:hover, :focus-visible, .on) .cam-pan { animation: camPan 3s ease-in-out infinite alternate; }
.vst-txa-v.in-rise > b > span, .vst-txa-v.in-fade > b > span, .vst-txa-v.in-pop > b > span { display: inline-block; }
.vst-txa-c:is(:hover, :focus-visible, .on) .vst-txa-v.in-rise > b > span { animation: txRise 2.4s cubic-bezier(.2,.8,.2,1) infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .vst-txa-v.in-fade > b > span { animation: txFade 2.4s ease infinite; }
.vst-txa-c:is(:hover, :focus-visible, .on) .vst-txa-v.in-pop > b > span { animation: txPop 2.2s cubic-bezier(.3,1.5,.5,1) infinite; }
.vst-insp[data-insp="scene"] .vst-pane:not([hidden]) { display: flex; flex-direction: column; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .vst-camv { animation: none !important; } }
/* iclipnow loader (i + three dots) – used wherever the AI works */
.iro-ld { overflow: visible; display: block; }
.iro-ld .st { fill: var(--text); transform-box: fill-box; transform-origin: 50% 100%; animation: iroStem 1.5s cubic-bezier(.5,0,.3,1) infinite; }
.iro-ld .d { transform-box: fill-box; transform-origin: center; animation: iroHop 1.5s cubic-bezier(.45,0,.25,1) infinite; }
.iro-ld .d1 { fill: #9B82FF; } .iro-ld .d2 { fill: #FF5FA8; animation-delay: .14s; } .iro-ld .d3 { fill: #FFB25B; animation-delay: .28s; }
@keyframes iroHop { 0%, 55%, 100% { transform: translateY(0) scale(1); } 20% { transform: translateY(-7px) scale(1.12); } 38% { transform: translateY(1px) scale(.94, 1.06); } }
@keyframes iroStem { 0%, 100% { transform: scaleY(1); } 12% { transform: scaleY(.9); } 26% { transform: scaleY(1.04); } }
.iro-ld.on-dark .st { fill: #F4F4F2; }
@media (prefers-reduced-motion: reduce) { .iro-ld .d, .iro-ld .st { animation: none; } }
.lgw-aiwork .iro-ld { margin-bottom: 4px; filter: drop-shadow(0 6px 14px rgba(155,130,255,.25)); }
.lgw-aiwork .lgw-aisteps { font-size: 11.5px; color: var(--text-2); min-height: 1.3em; transition: opacity .3s; }
.lgw-cands.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lgw-cands.three .lgw-trio { grid-template-columns: 1fr; }
.lgw-cands.three .lgw-bg.lt { display: none; }
.lgw-work .iro-ld { margin: 0 auto 6px; }
/* transition picker v2: real shots, explanation, scope */
.vst-trpop2 { width: min(430px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 12px; }
.vst-trp-h { display: flex; flex-direction: column; gap: 2px; } .vst-trp-h b { font-size: 14px; } .vst-trp-h span { font-size: 12px; color: var(--text-3); }
.vst-trscope { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 11px; background: var(--surface-2); }
.vst-trscope button { border: 0; background: transparent; border-radius: 8px; padding: 8px 6px; font: 600 12px/1 var(--font); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.vst-trscope button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.vst-trpop2 .vst-trgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: min(430px, 56vh); overflow: auto; padding: 2px; }
.vst-trpop2 .vst-trb { position: relative; align-items: stretch; text-align: left; padding: 5px 5px 8px; gap: 2px; border-width: 1.5px; border-radius: 12px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vst-trpop2 .vst-trb:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.vst-trpop2 .vst-trb.on { border-color: var(--focus); box-shadow: 0 0 0 1.5px var(--focus); }
.vst-trpop2 .vst-trb b { font-size: 12px; padding: 4px 3px 0; }
.vst-trpop2 .vst-trb em { font-style: normal; font-size: 10.5px; line-height: 1.3; color: var(--text-3); padding: 0 3px; }
.vst-trpop2 .vst-trb .vst-st3-on { right: 9px; top: 9px; width: 18px; height: 18px; background: var(--focus); color: #fff; }
.vst-trpop2 .vst-trdemo { width: 100%; height: 58px; border-radius: 8px; }
.vst-trpop2 .vst-trdemo i:first-child { background: var(--shot-a, linear-gradient(135deg,#E7DCC6,#b9a78a)) center/cover; }
.vst-trpop2 .vst-trdemo i:last-child { background: var(--shot-b, linear-gradient(135deg,#5b6170,#2a2d35)) center/cover; }
/* same footage on both sides → B shows another part of the shot, darker, so the change is visible */
.vst-trpop2.same .vst-trdemo i:last-child { background-position: 85% 30%; filter: brightness(.62) saturate(1.25); }
.vst-trpop2.same .vst-trdemo i:first-child { background-position: 15% 60%; }
/* animations only play on hover / selected → calm popover, clear "what does it do" */
.vst-trpop2 .vst-trb:not(:hover):not(.on) .vst-trdemo i, .vst-trpop2 .vst-trb:not(:hover):not(.on) .vst-trdemo::after, .vst-trpop2 .vst-trb:not(:hover):not(.on) .vst-trdemo::before { animation-play-state: paused; }
.vst-trp-f { display: flex; justify-content: flex-end; }
.vst-varp-h { margin: 2px 4px 8px; font-size: 12px; line-height: 1.4; color: var(--text-3); max-width: 300px; }
.lgw-bg img, .lgw-bg canvas { max-height: 62px; width: auto; height: auto; }
.lgw-hint { display: block; line-height: 1.45; }
.lgw-hint .ic { vertical-align: -2px; margin-right: 4px; }
/* v28 platforms: TikTok / Shorts live views, platform-specific safe zones */
.vst-ig .ig-safe.t { height: var(--sz-t, 14%); } .vst-ig .ig-safe.b { height: var(--sz-b, 20%); }
.vst-ig .ig-safe.r { right: 0; left: auto; top: 42%; bottom: var(--sz-b, 20%); width: var(--sz-r, 0); border-left-width: 1px; }
.vst-ig .ig-safe { opacity: 0; transition: opacity .2s; }
.vst-player-wrap:hover .vst-ig .ig-safe, .vst-ig.show-safe .ig-safe { opacity: 1; }
.vst-fmtbar-b .pf-ic { width: 15px; height: 15px; }
.vst-fmtbar-b.pf { height: 46px; }
.vst-fmtbar-more { position: relative; }
.vst-fmtbar-more > summary { list-style: none; display: grid; place-items: center; width: 50px; height: 28px; border-radius: 10px; color: var(--text-3); cursor: pointer; }
.vst-fmtbar-more > summary::-webkit-details-marker { display: none; }
.vst-fmtbar-more > summary:hover { background: var(--surface-2); color: var(--text); }
.vst-fmtbar-more > div { display: flex; flex-direction: column; gap: 2px; }
/* TikTok */
.vst-ig.tiktok { background: linear-gradient(rgba(0,0,0,.25), transparent 12%, transparent 66%, rgba(0,0,0,.5)); }
.vst-ig .tt-top { position: absolute; left: 0; right: 0; top: 4cqw; display: flex; align-items: center; justify-content: center; gap: 4cqw; font-size: max(10px, 3.6cqw); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vst-ig .tt-top span { opacity: .7; font-weight: 600; } .vst-ig .tt-top b { font-weight: 800; position: relative; }
.vst-ig .tt-top b::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: -1.4cqw; height: 2px; border-radius: 2px; background: #fff; }
.vst-ig .tt-top svg { position: absolute; right: 4cqw; width: 5.5cqw; height: 5.5cqw; }
.vst-ig .ig-side.tt { right: 2.5cqw; bottom: 16cqw; gap: 4.4cqw; }
.vst-ig .ig-side.tt svg { width: 8cqw; height: 8cqw; }
.vst-ig .ig-side.tt span:not(.tt-av) svg { fill: rgba(255,255,255,.95); stroke: none; }
.vst-ig .tt-av { position: relative; margin-bottom: 2cqw; }
.vst-ig .tt-av .ig-av { width: 11cqw; height: 11cqw; box-shadow: 0 0 0 1.5px #fff; }
.vst-ig .tt-av i { position: absolute; left: 50%; bottom: -2.2cqw; transform: translateX(-50%); width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #FE2C55; color: #fff; font: 800 3.6cqw/4.6cqw sans-serif; text-align: center; font-style: normal; }
.vst-ig .pv-disc { width: 9cqw; height: 9cqw; border-radius: 50%; background: radial-gradient(circle, #fff 0 12%, #222 13% 40%, #555 41% 46%, #111 47%); box-shadow: 0 0 0 2cqw rgba(30,30,30,.7); animation: pvSpin 4s linear infinite; }
@keyframes pvSpin { to { transform: rotate(360deg); } }
.vst-ig .ig-cap.tt { right: 20cqw; bottom: 9cqw; gap: 1.6cqw; }
.vst-ig .ig-cap.tt > b { font-size: max(11px, 3.8cqw); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vst-ig .tt-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 7cqw; background: #000; }
.vst-ig .tt-nav i { position: absolute; left: 50%; top: 1.4cqw; transform: translateX(-50%); width: 10cqw; height: 4.4cqw; border-radius: 1.4cqw; background: #fff; box-shadow: -1cqw 0 0 #25F4EE, 1cqw 0 0 #FE2C55; }
/* YouTube Shorts */
.vst-ig.shorts { background: linear-gradient(rgba(0,0,0,.2), transparent 10%, transparent 64%, rgba(0,0,0,.55)); }
.vst-ig .yt-top { position: absolute; left: 3cqw; right: 3cqw; top: 3cqw; display: flex; gap: 4cqw; align-items: center; }
.vst-ig .ig-side.yt { right: 2.5cqw; bottom: 12cqw; gap: 3.8cqw; }
.vst-ig .ig-side.yt svg { width: 7.5cqw; height: 7.5cqw; padding: 2.2cqw; border-radius: 50%; background: rgba(255,255,255,.14); box-sizing: content-box; }
.vst-ig .ig-side.yt em { font-size: max(8px, 2.6cqw); }
.vst-ig .yt-snd .ig-av { width: 8cqw; height: 8cqw; border-radius: 1.6cqw; box-shadow: 0 0 0 1.2px #fff; }
.vst-ig .ig-cap.yt { right: 21cqw; bottom: 6cqw; }
.vst-ig .yt-sub { background: #fff; color: #0f0f0f; border-radius: 99px; padding: 1cqw 3cqw; font-size: max(9px, 3cqw); font-weight: 700; text-shadow: none; }
.vst-ig .yt-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.3); }
.vst-ig .yt-prog i { display: block; height: 100%; background: #FF0033; transform: scaleX(0); transform-origin: 0 50%; transition: transform .26s linear; }
@media (prefers-reduced-motion: reduce) { .vst-ig .pv-disc { animation: none; } }
.vst-ig .ig-cap.yt .ig-who { flex-wrap: nowrap; min-width: 0; }
.vst-ig .ig-cap.yt .ig-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-ig .yt-sub { white-space: nowrap; flex: none; }
.vst-ig .ig-side.yt em { white-space: nowrap; }
.vst-fmtbar-b.ig span { font-size: 9.5px; text-align: center; line-height: 1.1; }

/* ---------- v28 Gesicht + Bildschirm (Kamera-Layouts) */
.vst-camlay { display: grid; gap: 10px; }
.vst-cl-src { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vst-cl-s { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line, #e6e0da); background: var(--card, #fff); color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.vst-cl-s b { font-size: 13px; }
.vst-cl-s span { font-size: 11.5px; opacity: .65; line-height: 1.3; }
.vst-cl-s.on { border-color: var(--accent, #c8643b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #c8643b) 16%, transparent); }
.vst-cl-focus { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; }
.vst-cl-shot { position: relative; display: block; width: 100%; max-height: 210px; border-radius: 10px; overflow: hidden; background: #2a2421 center/cover no-repeat; cursor: crosshair; }
.vst-cl-win { position: absolute; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0,0,0,.45); pointer-events: none; transition: all .2s; }
.vst-cl-file { display: flex; gap: 10px; align-items: center; }
.vst-cl-file .grow { min-width: 0; display: grid; }
.vst-cl-file .faint { font-size: 12px; }
.vst-cl-fth { width: 44px; height: 56px; border-radius: 8px; overflow: hidden; background: #2a2421; display: grid; place-items: center; color: #fff; flex: none; }
.vst-cl-fth img { width: 100%; height: 100%; object-fit: cover; }
.vst-cl-nudge { display: flex; gap: 6px; flex-wrap: wrap; }
.vst-cl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vst-cl { display: grid; gap: 2px; text-align: left; padding: 6px 6px 8px; border-radius: 12px; border: 1.5px solid transparent; background: var(--soft, #f6f2ee); color: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.vst-cl:hover { transform: translateY(-1px); }
.vst-cl.on { border-color: var(--accent, #c8643b); background: color-mix(in srgb, var(--accent, #c8643b) 8%, var(--card, #fff)); }
.vst-cl b { font-size: 12.5px; padding: 0 2px; }
.vst-cl > span:last-child { font-size: 11px; opacity: .62; line-height: 1.3; padding: 0 2px; }
.vst-cl-pv { position: relative; display: block; aspect-ratio: 9/14; max-height: 170px; width: 100%; border-radius: 9px; overflow: hidden; background: #1f1b19; }
.vst-cl-pv .cl-main { position: absolute; inset: 0; background: var(--scr, linear-gradient(160deg, #3b4a63, #1d2433)) center/cover no-repeat; filter: saturate(.85); }
.vst-cl-pv .cl-main::after { content: ''; position: absolute; inset: 14% 10% auto; height: 34%; border-radius: 6px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 4px, transparent 4px 10px); opacity: .0; }
.vst-cl-pv .cl-scr, .vst-cl-pv .cl-face { position: absolute; transform: translate(-50%, -50%); background: #6b5a50 center/cover no-repeat; }
.vst-cl-pv .cl-scr { background-size: cover; }
.vst-cl-pv .cl-scr.d-card { border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.45); border: 1.5px solid rgba(255,255,255,.85); }
.vst-cl-pv .cl-face { background-color: #8a7768; background-repeat: no-repeat; }
.vst-cl-pv .cl-face.d-circle, .vst-cl-pv .cl-face.d-bubble { border-radius: 50%; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.vst-cl-pv .cl-face.d-bubble { border-color: var(--accent, #c8643b); box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.45); }
.vst-cl-pv .cl-face.d-round, .vst-cl-pv .cl-face.d-portrait { border-radius: 10px; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.vst-cl-pv .cl-face.d-full { border-radius: 0; }
.vst-cl-pv .cl-face, .vst-cl-pv .cl-scr.d-card { animation: clPop .5s cubic-bezier(.3,1.6,.5,1) both; }
.vst-cl:hover .cl-face:not(.d-full) { animation: clBreath 1.6s ease-in-out infinite; }
.vst-cl-pv .cl-name { position: absolute; transform: translate(-50%, 0); font-style: normal; font-size: 9px; font-weight: 700; color: #fff; background: var(--accent, #c8643b); padding: 2px 7px; border-radius: 99px; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
@keyframes clPop { from { transform: translate(-50%, -50%) scale(.5); opacity: 0 } to { transform: translate(-50%, -50%) scale(1); opacity: 1 } }
@keyframes clBreath { 0%, 100% { transform: translate(-50%, -50%) scale(1) } 50% { transform: translate(-50%, -50%) scale(1.06) } }
.vst-cl-more { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line, #eee6df); }
.vst-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.vst-cl-limit { display: flex; gap: 6px; align-items: flex-start; }
.vst-cam-note { display: flex; gap: 6px; align-items: center; font-size: 12px; margin: 4px 0 0; opacity: .8; flex-wrap: wrap; }
.vst-els .vst-gal-tabs{grid-template-columns:repeat(5,1fr)}
.vst-els .vst-gal-tabs button{font-size:11.5px}

/* ---------- v29 Themen-Elemente (Galerie + Inspektor) */
.vst-gal-cat.soc { font-weight: 600; }
.vst-gal-cat .vst-new { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--accent, #c8643b); color: #fff; border-radius: 99px; padding: 1px 6px; margin-left: 3px; vertical-align: 1px; }
.vst-soc-pv { background: radial-gradient(120% 90% at 30% 10%, #8f7a6c 0%, #3a302b 55%, #1d1a19 100%) !important; aspect-ratio: 4/3 !important; }
.vst-soc-pv::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.08'/></svg>"); pointer-events: none; }
.vst-soc-pv img { position: absolute; left: 50%; top: 50%; max-width: 86%; max-height: 84%; transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.9,.3,1.2); filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.vst-soc-pv img.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vst-soc-n { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 99px; z-index: 1; }
.vst-soc-card:hover .vst-soc-pv { box-shadow: inset 0 0 0 2px var(--accent, #c8643b); }
.vst-soc-insp { display: grid; gap: 10px; }
.vst-soc-looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vst-soc-lk { display: grid; gap: 2px; text-align: left; padding: 6px 6px 8px; border-radius: 12px; border: 1.5px solid transparent; background: var(--soft, #f6f2ee); color: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.vst-soc-lk:hover { transform: translateY(-1px); }
.vst-soc-lk.on { border-color: var(--accent, #c8643b); background: color-mix(in srgb, var(--accent, #c8643b) 8%, var(--card, #fff)); }
.vst-soc-lk > span { position: relative; display: block; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #8f7a6c 0%, #3a302b 60%, #1d1a19 100%); }
.vst-soc-lk img { position: absolute; left: 50%; top: 50%; max-width: 88%; max-height: 86%; transform: translate(-50%, -50%); }
.vst-soc-lk b { font-size: 12.5px; padding: 0 2px; }
.vst-soc-lk em { font-style: normal; font-size: 11px; opacity: .62; line-height: 1.25; padding: 0 2px; }
.vst-soc-emo { display: flex; flex-wrap: wrap; gap: 4px; }
.vst-soc-emo button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line, #e6e0da); background: var(--card, #fff); font-size: 17px; cursor: pointer; }
.vst-soc-emo button:hover { background: var(--soft, #f6f2ee); }
.vst-soc-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.vst-soc-icons button { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid transparent; background: var(--soft, #f3efea); cursor: pointer; display: grid; place-items: center; }
.vst-soc-icons button.on { border-color: var(--accent, #c8643b); }
.vst-soc-icons i { width: 24px; height: 24px; border-radius: 6px; display: block; }
.vst-soc-icons .ni-msg { background: #34C759; } .vst-soc-icons .ni-insta { background: linear-gradient(45deg,#F58529,#DD2A7B 55%,#8134AF); } .vst-soc-icons .ni-mail { background: #0A84FF; } .vst-soc-icons .ni-bell { background: var(--accent, #c8643b); }
.vst-soc-icons .ni-cart { background: #FF9500; } .vst-soc-icons .ni-money { background: #30B15B; } .vst-soc-icons .ni-heart { background: #FF2D55; } .vst-soc-icons .ni-cal { background: #fff; box-shadow: inset 0 5px 0 #E5484D, 0 0 0 1px #ddd; }
.vst-soc-col input[type=color], .vst-soc-pal input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line, #e6e0da); border-radius: 8px; background: none; cursor: pointer; }
.vst-soc-pal { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vst-soc-chat { display: grid; gap: 6px; }
.vst-soc-msg { display: flex; gap: 6px; align-items: center; }
.vst-soc-msg.me { padding-left: 18px; }
.vst-soc-msg .input { flex: 1; min-width: 0; }
.vst-soc-msg.me .input { background: color-mix(in srgb, #0A84FF 8%, var(--card, #fff)); }
.vst-soc-who { flex: none; width: 40px; height: 30px; border-radius: 99px; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; background: #E9E9EB; color: #111; }
.vst-soc-msg.me .vst-soc-who { background: #0A84FF; color: #fff; }
.vst-soc-av { display: flex; gap: 10px; align-items: center; }
.vst-soc-av img, .vst-soc-av i { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--accent, #c8643b); color: #fff; }
.vst-soc-pre .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ======================================================================
   v30 – CI accents (light + dark), compact Regie, focus, "Sag es der Regie"
   ====================================================================== */
:root { --ci-hl: color-mix(in srgb, var(--iro-p) 10%, var(--surface)); --ci-line: color-mix(in srgb, var(--iro-p) 45%, var(--border)); }
[data-theme='dark'] { --ci-hl: color-mix(in srgb, var(--iro-p) 14%, var(--surface)); --ci-line: color-mix(in srgb, var(--iro-p) 55%, var(--border)); }
.vst-side-h[hidden] { display: none; }
/* compact switch Regie | Texte & Ideen */
.vst-dirtabs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 2px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); margin: 0 0 10px; flex: none; }
.vst-dirtabs button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border: 0; border-radius: 99px; background: none; color: var(--text-2); font: 600 12px/1 var(--font); cursor: pointer; position: relative; }
.vst-dirtabs button:hover { color: var(--text); }
.vst-dirtabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(0,0,0,.15); }
.vst-dirtabs button.on svg { color: var(--iro-v); } .vst-dirtabs button.gk.on svg { color: var(--iro-p); }
/* primary actions: brand gradient edge, subtle */
.vst-dir-send.ready { background: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--iro-p), 0 6px 16px -8px var(--iro-p); }
.vst-dir-step.primary { border-color: var(--ci-line); background: var(--ci-hl); }
.vst-dir-step.primary .vst-dir-step-ic { background: var(--iro-grad); color: #fff; }
.vst-dir-field:focus-within { border-color: var(--ci-line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--iro-p) 16%, transparent); }
.vst-rail button.on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--ci-line); }
.vst-rail button.on svg { color: var(--iro-p); }
#vst-make { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px color-mix(in srgb, var(--iro-o) 70%, transparent); }
.vst-addtx.primary, .vst-qb.primary { box-shadow: inset 0 -2px 0 var(--iro-p); }
/* "Zurück zu vorher" – a real button now */
.vst-dm-back { height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--ci-line); background: var(--ci-hl); color: var(--text); font: 600 12px/1 var(--font); gap: 6px; }
.vst-dm-back svg { color: var(--iro-p); }
.vst-dm-back:hover { background: color-mix(in srgb, var(--iro-p) 20%, var(--surface)); color: var(--text); }
/* focus chip */
.vst-fchip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 12px; border: 1px solid var(--ci-line); background: var(--ci-hl); }
.vst-fchip-ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--iro-grad); color: #fff; flex: none; }
.vst-fchip .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vst-fchip em { font-style: normal; font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.vst-fchip b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vst-fchip button { width: 24px; height: 24px; border: 0; background: none; color: var(--text-3); border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.vst-fchip button:hover { background: var(--surface-2); color: var(--text); }
.vst-fsugs, .vst-ask-sug { display: flex; flex-wrap: wrap; gap: 5px; }
.vst-fsugs button, .vst-ask-sug button { height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 11.5px/1 var(--font); cursor: pointer; }
.vst-fsugs button:hover, .vst-ask-sug button:hover { border-color: var(--ci-line); color: var(--text); background: var(--ci-hl); }
.vst-dm-fo { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--iro-p); margin: 0 6px 3px 0; }
/* "Sag es der Regie" in every inspector */
.vst-ask { display: flex; flex-direction: column; gap: 7px; padding: 10px; margin: 0 0 12px; border-radius: 14px; border: 1px solid var(--ci-line); background: linear-gradient(135deg, var(--ci-hl), var(--surface)); position: relative; overflow: hidden; }
.vst-ask::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--iro-grad); }
.vst-ask header { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.vst-ask header em { font-style: normal; font-size: 11px; color: var(--text-3); margin-left: auto; }
.vst-ask-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }
.vst-ask-f { display: flex; gap: 6px; }
.vst-ask-f .input { flex: 1; min-width: 0; }
.vst-ask-go { width: 30px; height: 30px; flex: none; border: 0; border-radius: 9px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px color-mix(in srgb, var(--iro-p) 60%, transparent); }
.vst-ask-st:empty { display: none; }
.vst-ask-st p { margin: 0; display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.vst-ask-st p.done svg { color: var(--up); flex: none; margin-top: 2px; } .vst-ask-st p.bad svg { color: var(--down); flex: none; margin-top: 2px; }
.vst-ask-st p.busy { color: var(--text-2); align-items: center; }
.vst-ask-back { margin-top: 6px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--ci-line); background: var(--surface); color: var(--text); font: 600 11.5px/1 var(--font); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.vst-ask-back svg { color: var(--iro-p); }
/* Stil: link to all single transitions */
.vst-st3-more { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--ci-line); background: var(--ci-hl); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.vst-st3-more .grow { display: flex; flex-direction: column; gap: 2px; }
.vst-st3-more b { font-size: 13px; } .vst-st3-more em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.vst-st3-more > svg:first-child { color: var(--iro-p); }
.vst-trpop2 .vst-trb.on { border-color: var(--iro-p); box-shadow: 0 0 0 1.5px var(--iro-p); }
/* v30.1 – timeline never grows past the film; spacing of the run footer */
.vst-tlin { width: max-content; overflow: hidden; }
.vst-lane { overflow: hidden; }
.vst-run-a footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.vst-run-a footer > span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-left: auto; }
.vst-run .vst-rate { margin: 12px 0 0; }
.vst-dir-foot { gap: 6px; flex-wrap: wrap; row-gap: 6px; }
.vst-dir-foot #dir-budget { margin-left: auto; }
.vst-dir-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* v30.1 – Fassung: story lengths, banner; live previews */
.vst-varpop { width: min(380px, 90vw); }
.vst-varp-h b { color: var(--text); font-weight: 700; }
.vst-var-story { padding: 8px; border-radius: 12px; background: var(--surface-2); margin: 0 0 4px; display: flex; flex-direction: column; gap: 8px; }
.vst-var-sh { display: flex; align-items: center; gap: 10px; } .vst-var-sh .grow { display: flex; flex-direction: column; gap: 2px; } .vst-var-sh b { font-size: 13.5px; } .vst-var-sh em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.vst-var-lens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.vst-var-len { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 7px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.vst-var-len b { font-size: 14px; } .vst-var-len span { font-size: 10.5px; font-weight: 700; color: var(--iro-p); } .vst-var-len em { font-style: normal; font-size: 10px; line-height: 1.25; color: var(--text-3); }
.vst-var-len:hover { border-color: var(--ci-line); background: var(--ci-hl); }
.vst-var-len.off { opacity: .4; cursor: not-allowed; }
.vst-varban { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--ci-line); background: var(--ci-hl); position: relative; overflow: hidden; }
.vst-varban::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--iro-grad); }
.vst-varban-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--iro-grad); color: #fff; flex: none; }
.vst-varban .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .vst-varban b { font-size: 13.5px; } .vst-varban span { font-size: 12px; line-height: 1.45; color: var(--text-2); }
.vst-varban-a { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/1 var(--font); color: var(--text); text-decoration: none; padding: 6px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); }
.rpv { position: fixed; z-index: 1200; width: 250px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); animation: rpvIn .22s var(--ease) both; }
.rpv[hidden] { display: none; }
@keyframes rpvIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.rpv-stage { position: relative; background: #000; }
.rpv-pl { aspect-ratio: var(--ar, 9/16); max-height: 380px; margin: 0 auto; }
.rpv-pl hyperframes-player { max-height: 380px; }
.rpv-live { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; font: 600 10px/1 var(--font); }
.rpv-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--iro-p); box-shadow: 0 0 6px var(--iro-p); animation: iroRec 1.2s steps(2, jump-none) infinite; }
.rpv-txt { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; }
.rpv-txt b { font-size: 14px; } .rpv-txt b em { font-style: normal; color: var(--iro-p); font-size: 12px; margin-left: 4px; }
.rpv-txt p { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.rpv-txt ul { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.rpv-txt li { display: flex; gap: 6px; align-items: center; font-size: 12px; } .rpv-txt li svg { color: var(--iro-p); flex: none; }
.rpv-pf { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rpv-bars { position: absolute; left: 7px; right: 7px; top: 7px; display: flex; gap: 3px; }
.rpv-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; }
.rpv-bars b { display: block; height: 100%; background: #fff; transform-origin: 0 50%; animation: rpvBar var(--d) linear infinite; }
@keyframes rpvBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rpv-who { position: absolute; left: 8px; top: 15px; display: flex; align-items: center; gap: 5px; color: #fff; font: 700 10px/1 var(--font); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rpv-who span { width: 18px; height: 18px; border-radius: 50%; background: var(--iro-grad); box-shadow: 0 0 0 1.5px #fff; }
.rpv-who em { font-style: normal; font-weight: 500; opacity: .75; }
.rpv-side { position: absolute; right: 7px; bottom: 60px; display: flex; flex-direction: column; gap: 11px; }
.rpv-side i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.rpv-cap { position: absolute; left: 8px; right: 34px; bottom: 30px; color: #fff; font: 700 10px/1.3 var(--font); text-shadow: 0 1px 3px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 4px; }
.rpv-cap span { height: 6px; width: 70%; border-radius: 3px; background: rgba(255,255,255,.55); }
/* v30.2 – focus in the Regie chat: one slim line attached to the input */
.vst-dir-compose .vst-fchip { padding: 4px 4px 4px 6px; border-radius: 10px; gap: 7px; margin-bottom: -2px; }
.vst-dir-compose .vst-fchip-ic { width: 20px; height: 20px; border-radius: 6px; }
.vst-dir-compose .vst-fchip .grow { flex-direction: row; align-items: baseline; gap: 6px; }
.vst-dir-compose .vst-fchip em { font-size: 10px; flex: none; }
.vst-dir-compose .vst-fchip b { font-size: 12px; font-weight: 600; }
.vst-dir-compose .vst-fsugs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.vst-dir-compose .vst-fsugs::-webkit-scrollbar { display: none; }
.vst-dir-compose .vst-fsugs button { flex: none; height: 24px; font-size: 11px; }

/* ===== v31 Schnitt: one view – length · clean-up · moments ===== */
.vst-cut2 { display: flex; flex-direction: column; gap: 12px; }
.vst-cut2 > section { margin: 0; }
.vst-cut2 .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vst-cut2 .grow > b, .vst-c2-sh > b { font-size: 14px; font-weight: 650; color: var(--text); }
.vst-cut2 .grow > span, .vst-c2-sh > span { font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.vst-c2-first, .vst-c2-clean { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.vst-c2-first { border-color: var(--ci-line); background: var(--ci-hl); }
.vst-c2-first-ic, .vst-c2-clean-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--iro-p); }
.vst-c2-first .btn, .vst-c2-clean .btn { flex: none; }
.vst-c2-len { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--ci-line); border-radius: var(--radius-l, 14px); background: var(--ci-hl); }
.vst-c2-len-h { display: flex; gap: 12px; align-items: flex-start; }
.vst-c2-now { flex: none; display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.vst-c2-now em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.vst-c2-now b { font-family: var(--mono); font-size: 16px; color: var(--text); }
.vst-c2-lens { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 8px; }
.vst-c2-lenb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; font: inherit; }
.vst-c2-lenb b { font-size: 15px; font-weight: 700; }
.vst-c2-lenb span { font-size: 11px; color: var(--text-3); }
.vst-c2-lenb:hover { border-color: var(--iro-p); transform: translateY(-1px); box-shadow: 0 4px 14px color-mix(in srgb, var(--iro-p) 18%, transparent); }
.vst-c2-lenb.on { border-color: transparent; background: var(--iro-grad, var(--iro-p)); color: #fff; }
.vst-c2-lenb.on span { color: rgba(255,255,255,.85); }
.vst-c2-tip { margin: 0; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.vst-c2-tip:empty { display: none; }
.vst-c2-clip { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.vst-c2-story { display: flex; flex-direction: column; gap: 10px; }
.vst-c2-sh { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.vst-c2-sh em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--text-3); margin-left: 6px; }
.vst-c2-ms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vst-c2-m { --rc: var(--text-3); border: 1px solid var(--border); border-left: 3px solid var(--rc); border-radius: 12px; background: var(--surface); transition: opacity .18s, border-color .18s, background .18s; }
.vst-c2-m.r-hook { --rc: var(--iro-p); } .vst-c2-m.r-payoff { --rc: var(--iro-o); } .vst-c2-m.r-setup { --rc: var(--iro-v); }
.vst-c2-m.r-reaction { --rc: #e8618c; } .vst-c2-m.r-info { --rc: var(--info, #4a8fe0); } .vst-c2-m.r-cta { --rc: var(--up, #2fa36b); }
.vst-c2-m.r-bridge, .vst-c2-m.r-filler { --rc: var(--text-3); }
.vst-c2-m.off { opacity: .55; background: var(--surface-2); }
.vst-c2-m.off .vst-c2-mt b { text-decoration: line-through; text-decoration-color: var(--text-3); }
.vst-c2-m.part { border-style: solid dashed solid solid; }
.vst-c2-m.will-keep { opacity: 1; border-color: var(--iro-p); background: var(--ci-hl); }
.vst-c2-m.will-drop { opacity: .35; }
.vst-c2-mh { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; }
.vst-c2-tg { flex: none; width: 34px; height: 20px; border-radius: 99px; border: 0; padding: 0; background: var(--border-strong, var(--border)); position: relative; cursor: pointer; transition: background .18s; }
.vst-c2-tg i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.vst-c2-m.on .vst-c2-tg { background: var(--iro-grad, var(--iro-p)); }
.vst-c2-m.on .vst-c2-tg i { transform: translateX(14px); }
.vst-c2-mb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.vst-c2-mt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vst-c2-mt b { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.vst-c2-warn { font-size: 11px; color: var(--warn); background: var(--warn-bg); padding: 1px 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 3px; }
.vst-c2-mm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11.5px; color: var(--text-3); }
.vst-c2-mm em { font-style: normal; flex-basis: 100%; color: var(--text-2); line-height: 1.4; }
.vst-c2-role { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--rc); }
.vst-c2-sc { width: 42px; height: 5px; border-radius: 9px; background: var(--surface-3, var(--border)); overflow: hidden; }
.vst-c2-sc i { display: block; height: 100%; width: var(--v); background: var(--rc); border-radius: inherit; }
.vst-c2-play { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.vst-c2-play:hover { border-color: var(--iro-p); color: var(--iro-p); }
.vst-c2-words { border-top: 1px dashed var(--border); padding: 8px 12px 10px; }
.vst-c2-words .vst-words { font-size: 15px; line-height: 1.9; }
.vst-c2-wh { margin: 6px 0 0; font-size: 11.5px; color: var(--text-3); }
.vst-c2-wh b { color: var(--text-2); font-weight: 600; }
.vst-c2-tip { display: block; line-height: 1.45; }
.vst-c2-tip > svg, .vst-c2-tip > .spin { vertical-align: -2px; margin-right: 5px; }
.vst-c2-lenb.all { border-style: dashed; background: transparent; }
.vst-c2-lenb.all b { font-family: var(--mono); font-size: 14px; }
/* v31.3 ask box: hide everywhere */
.vst-ask-x { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); display: grid; place-items: center; cursor: pointer; margin-left: 2px; }
.vst-ask-x:hover { background: var(--surface-2); color: var(--text); }
.vst-ask header em + .vst-ask-x { margin-left: 4px; }
.vst-ask-mini { margin: 0 0 10px; }
.vst-ask-mini button { height: 26px; padding: 0 10px; border-radius: 99px; border: 1px dashed var(--ci-line); background: transparent; color: var(--text-2); font: 600 11.5px/1 var(--font); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.vst-ask-mini button:hover { background: var(--ci-hl); color: var(--text); }
.vst-ask-mini svg { color: var(--iro-p); }
/* v31.3 clip edge cuts a word in half */
.vst-wcut { position: absolute; top: 3px; z-index: 3; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: var(--down, #e5484d); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 2px var(--surface); animation: vstWcut 1.6s ease-in-out infinite; }
.vst-wcut.l { left: 3px; } .vst-wcut.r { right: 3px; }
.vst-blk.on .vst-wcut.l { left: 15px; } .vst-blk.on .vst-wcut.r { right: 15px; }
@keyframes vstWcut { 50% { transform: scale(1.12); } }
/* v31.3 channel picker */
.vst-soc-nets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.vst-net { position: relative; aspect-ratio: 1; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .15s, color .15s; }
.vst-net svg { width: 46%; height: 46%; }
.vst-net:hover { transform: translateY(-1px); color: var(--text); }
.vst-net.on { border-color: transparent; color: #fff; }
.vst-net.on.n-insta { background: linear-gradient(45deg,#FEDA75,#FA7E1E 25%,#D62976 55%,#962FBF 80%,#4F5BD5); }
.vst-net.on.n-tiktok, .vst-net.on.n-x, .vst-net.on.n-threads { background: #000; }
.vst-net.on.n-youtube { background: #FF0033; } .vst-net.on.n-facebook { background: #0866FF; } .vst-net.on.n-linkedin { background: #0A66C2; }
.vst-net.on.n-pinterest { background: #E60023; } .vst-net.on.n-snapchat { background: #FFFC00; color: #000; } .vst-net.on.n-twitch { background: #9146FF; }
.vst-net.on.n-whatsapp { background: #25D366; } .vst-net.on.n-spotify { background: #1DB954; }
.vst-net b { position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--iro-p); color: #fff; font: 700 10px/17px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.vst-net-save { align-self: flex-start; margin-top: 2px; }
.vst-wcut.soft { background: var(--warn, #e5a00d); animation: none; }
/* v31.5 platform safe zones mini phone */
.vst-safe-ph { position: relative; background: linear-gradient(160deg, #3a3532, #1d1a19); overflow: hidden; }
.vst-safe-ph i { position: absolute; display: block; }
.vst-safe-ph .zt { left: 0; right: 0; top: 0; height: var(--t); background: repeating-linear-gradient(-45deg, rgba(255,80,110,.55) 0 3px, rgba(255,80,110,.2) 3px 6px); }
.vst-safe-ph .zb { left: 0; right: 0; bottom: 0; height: var(--b); background: repeating-linear-gradient(-45deg, rgba(255,80,110,.55) 0 3px, rgba(255,80,110,.2) 3px 6px); }
.vst-safe-ph .zr { right: 0; top: var(--t); bottom: var(--b); width: var(--r); background: repeating-linear-gradient(-45deg, rgba(255,80,110,.45) 0 3px, rgba(255,80,110,.15) 3px 6px); }
.vst-safe-ph .ok { left: 3px; top: calc(var(--t) + 2px); bottom: calc(var(--b) + 2px); right: calc(var(--r) + 3px); border: 1.5px dashed rgba(120,255,170,.9); border-radius: 3px; }
.vst-st3-tgv.vst-safe-ph { width: 34px; height: 60px; margin: 0 10px; border-radius: 7px; box-shadow: 0 0 0 2px #111, 0 0 0 3px rgba(255,255,255,.15); }
.vst-st3-tgv.vst-safe-ph.p-feed { width: 48px; height: 60px; margin: 0 3px; }
/* ===== v31.5 subtitle looks: live preview + animated cards ===== */
.vst-sublive { position: relative; height: 170px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.16); }
.vst-sublooks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vst-sublk { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 9px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.vst-sublk:hover { border-color: var(--iro-p); transform: translateY(-1px); }
.vst-sublk.on { border-color: var(--iro-p); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iro-p) 30%, transparent); }
.vst-sublk b { font-size: 13px; padding: 4px 4px 0; } .vst-sublk em { font-style: normal; font-size: 11px; line-height: 1.35; color: var(--text-3); padding: 0 4px; }
.vst-sublk .vst-st3-on { top: 10px; right: 10px; }
.vst-subsz { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11.5px; color: var(--text-3); } .vst-subsz input { flex: 1; }
.vst-sdemo { --dur: 2.4s; position: relative; display: grid; place-items: end center; height: 84px; padding: 0 8px 14px; border-radius: 9px; overflow: hidden; background: linear-gradient(160deg, rgba(0,0,0,.15), rgba(0,0,0,.55)), var(--bgi, linear-gradient(160deg, #5b6b7a, #26303a)) center/cover; }
.vst-sdemo.big { height: 100%; border-radius: 0; padding-bottom: 34px; }
.vst-sdemo .sd-line { font: 800 15px/1.25 var(--f), sans-serif; color: var(--c); text-align: center; white-space: nowrap; }
.vst-sdemo.big .sd-line { font-size: 30px; }
.vst-sdemo.up .sd-line { text-transform: uppercase; }
.vst-sdemo i { font-style: normal; display: inline-block; transform-origin: 50% 70%; animation-duration: var(--dur); animation-iteration-count: infinite; animation-delay: calc(var(--i) * var(--dur) / var(--n) / 1.4); }
.vst-sdemo.pl-dark .sd-line { background: rgba(0,0,0,.62); padding: 3px 9px; border-radius: 7px; }
.vst-sdemo.big.pl-dark .sd-line { padding: 6px 16px; border-radius: 12px; }
.vst-sdemo.pl-light .sd-line { background: rgba(255,255,255,.92); color: #111; padding: 3px 9px; border-radius: 7px; }
.vst-sdemo.big.pl-light .sd-line { padding: 6px 16px; border-radius: 12px; }
.vst-sdemo.pl-accent .sd-line { background: var(--hl); padding: 3px 9px; border-radius: 7px; }
.vst-sdemo.big.pl-accent .sd-line { padding: 6px 16px; border-radius: 12px; }
.vst-sdemo.pl-none .sd-line { -webkit-text-stroke: 2.5px #000; paint-order: stroke fill; text-shadow: 0 3px 10px rgba(0,0,0,.5); }
.vst-sdemo.big.pl-none .sd-line { -webkit-text-stroke: 4px #000; }
.vst-sdemo.fx-color i { animation-name: sdColor; }
@keyframes sdColor { 0%, 30%, 100% { color: inherit; transform: scale(1); } 4%, 24% { color: var(--hl); transform: scale(1.08); } }
.vst-sdemo.fx-pop i { animation-name: sdPop; }
@keyframes sdPop { 0% { opacity: 0; transform: scale(.4) translateY(8px); } 6% { opacity: 1; transform: scale(1.18); color: var(--hl); } 14% { transform: scale(1); color: inherit; } 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
.vst-sdemo.fx-box i { animation-name: sdBox; padding: 0 .14em; border-radius: .18em; }
@keyframes sdBox { 0%, 26%, 100% { background: transparent; color: inherit; } 3%, 22% { background: var(--hl); color: #fff; transform: scale(1.05); } }
.vst-sdemo.fx-neon .sd-line { -webkit-text-stroke: 0 !important; text-shadow: 0 0 4px var(--hl), 0 0 12px var(--hl), 0 0 26px var(--hl) !important; }
.vst-sdemo.fx-neon i { animation-name: sdNeon; }
@keyframes sdNeon { 0%, 30%, 100% { color: inherit; } 4%, 24% { color: #fff; transform: scale(1.05); } }
.vst-sdemo.fx-type i { animation-name: sdType; }
@keyframes sdType { 0% { opacity: 0; } 3%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vst-sdemo i { animation: none !important; } }
.vst-sdemo .sd-line { white-space: normal; max-width: 100%; font-size: 14px; line-height: 1.35; }
.vst-sdemo.big .sd-line { font-size: 28px; }
/* v31.5 pip crop view in the element inspector */
.vst-pip-crop { margin-bottom: 4px; }
.vst-cl-win.d-circle, .vst-cl-win.d-round, .vst-cl-win.d-bubble { border-radius: 50%; }
.vst-cl-shot.noimg { background: repeating-linear-gradient(45deg, var(--surface-2) 0 8px, var(--surface-3, var(--border)) 8px 16px); }
.vst-pip-fine summary { cursor: pointer; font-size: 12px; color: var(--text-3); padding: 4px 0; }
.vst-pip-fine[open] summary { margin-bottom: 4px; }
.vst-cl-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
.vst-cl-grid-sm .vst-cl > span:not(.vst-cl-pv) { display: none; }
.vst-cl-grid-sm .vst-cl b { font-size: 11px; }
/* ===== v31.5 favourites + global search ===== */
.vst-fav { position: absolute; top: 8px; left: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.42); color: rgba(255,255,255,.85); cursor: pointer; opacity: 0; transition: opacity .15s, transform .15s, background .15s; backdrop-filter: blur(6px); }
.vst-fav svg { width: 13px; height: 13px; }
.vst-bl-t, .vst-el-type { position: relative; }
.vst-bl-t:hover .vst-fav, .vst-el-type:hover .vst-fav, .vst-fav:focus-visible, .vst-fav.on { opacity: 1; }
.vst-fav:hover { transform: scale(1.1); }
.vst-fav.on { background: #FFC83D; color: #3a2a00; }
.vst-fav.on svg { fill: currentColor; }
.vst-fav.hdr, .vst-fav.inline { position: static; opacity: 1; background: transparent; color: var(--text-3); width: 30px; height: 30px; backdrop-filter: none; }
.vst-fav.hdr:hover, .vst-fav.inline:hover { background: var(--surface-2); color: var(--text); }
.vst-fav.hdr.on, .vst-fav.inline.on { background: transparent; color: #E5A800; }
.vst-gal-cat.fav { border-color: #FFC83D; }
.vst-gal-cat.fav svg { color: #E5A800; vertical-align: -1px; }
.vst-gal-cat.fav.on svg { color: #FFC83D; }
.vst-search-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); font: 500 13px/1 var(--font); cursor: pointer; min-width: 190px; margin-right: 8px; }
.vst-search-btn:hover { border-color: var(--ci-line); color: var(--text); }
.vst-search-btn span { flex: 1; text-align: left; }
.vst-search-btn kbd { font: 600 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); color: var(--text-3); }
@media (max-width: 900px) { .vst-search-btn { min-width: 0; } .vst-search-btn span, .vst-search-btn kbd { display: none; } }
.vst-srch { display: flex; flex-direction: column; gap: 10px; }
.vst-srch-in { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--ci-line); border-radius: 12px; background: var(--surface); color: var(--text-3); }
.vst-srch-in .input { border: 0; background: transparent; box-shadow: none; height: 46px; font-size: 15px; padding: 0; }
.vst-srch-in:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--iro-p) 16%, transparent); }
.vst-srch-r { display: flex; flex-direction: column; gap: 2px; max-height: 56vh; overflow: auto; }
.vst-srch-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.vst-srch-row:hover, .vst-srch-row.on { background: var(--ci-hl); }
.vst-srch-row b { display: block; font-size: 13.5px; } .vst-srch-row em { display: block; font-style: normal; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vst-srch-row .grow { min-width: 0; }
.vst-srch-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--iro-p); }
.vst-srch-g { flex: none; font-size: 11px; color: var(--text-3); padding: 3px 8px; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.vst-srch-h { margin: 2px 4px 4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.vst-srch-h svg { color: #E5A800; }
.vst-srch-none { margin: 14px 6px; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.vst-found { animation: vstFound 1.8s ease-out; }
@keyframes vstFound { 0%, 30% { box-shadow: 0 0 0 3px var(--iro-p), 0 0 0 9px color-mix(in srgb, var(--iro-p) 25%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.vst-favask-l { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vst-favask-l li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; }
.vst-favask-l li svg { color: #E5A800; }
.vst-favask { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vst-favask-b { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.vst-favask-b:hover, .vst-favask-b:focus-visible { border-color: var(--iro-p); background: var(--ci-hl); }
.vst-favask-b b { font-size: 14px; } .vst-favask-b span { font-size: 12px; color: var(--text-3); }
.vst-favask-b svg { color: var(--iro-p); }
.vst-favask-b[data-fa=prefer] svg { color: #E5A800; }
/* v31.5 pip crop layout */
.vst-pip-crop { grid-template-columns: 130px 1fr; }
.vst-pip-crop .vst-chips .chip { padding: 4px 10px; font-size: 12px; }
.vst-pip-zoom { grid-column: 1 / -1; }
/* v31.7 Schnitt: ruhig, in CI-Neutral – keine Regenbogen-Rollen mehr */
.vst-c2-len { border-color: var(--border); background: var(--surface); }
.vst-c2-lenb.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); box-shadow: none; }
.vst-c2-lenb.on span { color: color-mix(in srgb, var(--accent-text) 70%, transparent); }
.vst-c2-lenb:hover { border-color: var(--text-3); box-shadow: none; }
.vst-c2-m, .vst-c2-m.r-hook, .vst-c2-m.r-payoff, .vst-c2-m.r-setup, .vst-c2-m.r-reaction, .vst-c2-m.r-info, .vst-c2-m.r-cta, .vst-c2-m.r-bridge, .vst-c2-m.r-filler { --rc: var(--text-2); border-left: 1px solid var(--border); }
.vst-c2-m.on { border-color: var(--border-strong, var(--text-3)); }
.vst-c2-m.on .vst-c2-tg { background: var(--accent); }
.vst-c2-m.on .vst-c2-tg i { background: var(--accent-text); }
.vst-c2-sc i { background: var(--text-2); }
.vst-c2-m.off .vst-c2-sc i { background: var(--text-3); }
.vst-c2-role { color: var(--text-2); font-weight: 600; }
.vst-c2-m.r-hook .vst-c2-role, .vst-c2-m.r-payoff .vst-c2-role { color: var(--text); }
.vst-c2-m.will-keep { border-color: var(--text-2); background: var(--surface-2); }
.vst-c2-play:hover { border-color: var(--text-2); color: var(--text); }
.vst-c2-first { border-color: var(--border); background: var(--surface); }
.vst-c2-first-ic, .vst-c2-clean-ic { color: var(--text); }
.vst-c2-m.part { border-style: solid; }
.vst-c2-len2 b { color: var(--text); font-weight: 700; }
.vst-c2-full { flex: none; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px dashed var(--border-strong, var(--text-3)); background: transparent; color: var(--text-2); font: 600 11.5px/1 var(--font); cursor: pointer; }
.vst-c2-full:hover { border-style: solid; color: var(--text); background: var(--surface-2); }
.vst-c2-smooth { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--border-strong, var(--border)); border-radius: var(--radius); background: var(--surface); }
.vst-c2-smooth .btn { flex: none; }

/* v32: Bild-Check der Regie vor dem Export */
.vck-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; }
.vck-chip.run { cursor: default; }
.vck-chip.run em { font-style: normal; color: var(--text-3, #888); }
.vck-chip.ok { padding: 0 10px; color: var(--up, #15803D); }
.vck-chip.bad { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, var(--border)); background: var(--down-bg); }
.vck { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.vck-f { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; cursor: pointer; text-align: left; color: var(--text); }
.vck-f:hover { border-color: var(--text); }
.vck-f.bad { border-color: var(--down); }
.vck-img { position: relative; display: block; aspect-ratio: 9 / 16; background: #111; }
.vck-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vck-img em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; }
.vck-txt { display: flex; flex-direction: column; gap: 2px; padding: 0 10px 10px; }
.vck-txt b { font-size: 13px; }
.vck-f.bad .vck-txt b { color: var(--down); }
.vck-txt small { font-size: 11px; color: var(--text-3, #888); line-height: 1.3; }
.vck-f.pair .vck-img { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.vck-f.pair .vck-img img { height: 100%; }
.vck-k { position: absolute; right: 6px; top: 6px; font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.88); color: #111; letter-spacing: .02em; }
.vck-fix { color: var(--text-2, #555) !important; margin-top: 2px; }
/* mobile editor: visible save */
.ed-msave { height: 36px; padding: 0 12px; gap: 6px; margin-left: 4px; border-radius: 999px; }
@media (max-width: 380px) { .ed-msave span { display: none; } .ed-msave { width: 36px; padding: 0; justify-content: center; } }

/* ===== v32.4 Video-Studio phone: fixed app layout – only the panel scrolls, nothing shifts ===== */
@media (max-width: 960px) {
  .vst2 { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .vst2 .vst-top, .vst2 .vst-stage, .vst2 .vst-timeline, .vst2 .vst-rail { position: relative; top: auto; flex: none; }
  .vst2 .vst-stage { padding: 8px 10px 6px; }
  .vst2 .vst-player-wrap { --pmaxh: 27dvh; }
  .vst2 .vst-timeline { box-shadow: none; border-bottom: 1px solid var(--border); }
  .vst2 .vst-tls { max-height: 17dvh; }
  .vst2 .vst-side { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .vst2 .vst-tls { overscroll-behavior: contain; }
  .vst2 .vst-dir-dock { bottom: 0; }
  .vst2 .vst-rail { position: relative; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .vst2 .vst-rail.end { mask-image: none; -webkit-mask-image: none; }
  .vst2 .vst-rail button { min-height: 50px; }
  /* timeline collapsed: just the transport bar */
  .vst2.tl-min .vst-tls { display: none; }
  .vst-tlmin { display: inline-flex !important; }
  /* keyboard open → give the panel the room */
  .vst2.kb .vst-player-wrap { --pmaxh: 16dvh; }
  .vst2.kb .vst-fmtbar, .vst2.kb .vst-tls { display: none; }
  .vst2 .vst-tlbar .btn.sm, .vst2 .vst-playb { min-width: 36px; min-height: 36px; }
}
@media (max-width: 960px) and (max-height: 700px) { .vst2 .vst-player-wrap { --pmaxh: 22dvh; } .vst2 .vst-tls { max-height: 14dvh; } }
@media (min-width: 961px) { .vst-tlmin { display: none !important; } }
.vst-tlmin svg { transition: transform .18s; }
.vst2.tl-min .vst-tlmin svg { transform: rotate(180deg); }
@media (max-width: 960px) {
  /* platform bar: one compact scrollable row, never wider than the screen */
  .vst2 .vst-fmtbar { margin-top: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; padding: 0 2px; }
  .vst2 .vst-fmtbar::-webkit-scrollbar { display: none; }
  .vst2 .vst-fmtbar-g { flex: none; }
  .vst2 .vst-fmtbar-b { height: 28px; padding: 0 9px; font-size: 11.5px; }
  .vst2 .vst-stage { align-items: center; }
  .vst2 .vst-tlbar { padding: 4px 6px; }
  .vst2 .vst-tlmin { order: -1; }
}

/* ===== v32.4 Marke on the phone: clean stacked cards, nothing squeezed ===== */
@media (max-width: 640px) {
  .brand-logo-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "prev prev" "txt btn"; gap: 12px; align-items: center; }
  .brand-logo-card > .brand-logo-prev, .brand-logo-card > .vst-logo0-ic { grid-area: prev; }
  .brand-logo-card > .grow { grid-area: txt; }
  .brand-logo-card > [data-logo] { grid-area: btn; align-self: start; }
  .brand-logo-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .brand-logo-prev .lgw-p img { width: 100%; height: 84px; padding: 12px; }
  .brand-name-row { flex-wrap: wrap; }
  .brand-name-row .input { max-width: none !important; flex: 1 1 100%; }
  .brand-name-row .spacer { display: none; }
  .brand-name-row .switch-row { font-size: 13px; line-height: 1.3; }
  .brand-swatches { flex-direction: column; align-items: stretch; gap: 8px; }
  .bsw { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 32px; gap: 8px; }
  .bsw .input { width: auto; min-width: 0; }
  .bsw .mono { font-size: 11.5px; }
  .brand-swatches > [data-cadd] { align-self: flex-start; }
  .brand-fonts { grid-template-columns: 1fr; }
  .brand-save-row { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 5; background: var(--surface); margin: 0 calc(-1 * var(--cpad, 20px)) calc(-1 * var(--cpad, 20px)); padding: 10px var(--cpad, 20px); border-top: 1px solid var(--border); border-radius: 0 0 16px 16px; }
  .brand-save-row .btn.primary { flex: none; }
  .brand-save-row [data-reset] { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: left; line-height: 1.25; height: auto; padding: 6px 8px; }
  .brand-grok .row { flex-direction: column; align-items: stretch; }
  .brand-grok .row .btn { justify-content: center; }
  .brand-style-h { flex-direction: column; align-items: stretch; gap: 10px; }
  .brand-style-h .btn { align-self: flex-start; }
  .style-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .top-grid { grid-template-columns: 1fr; }
  .top-thumbs { height: 140px; }
}

/* ===== v32.4 post viewer on the phone: big thumbs, tidy actions, compact feedback box ===== */
.vs-mrate .lbl { display: none; }
@media (max-width: 899px) {
  .viewer-foot { padding: 8px 12px 12px; }
  .vs-mrate { gap: 10px; }
  .vs-mrate button { height: 48px; min-width: 104px; padding: 0 16px; border-radius: 24px; gap: 8px; font-weight: 700; font-size: 14px; background: var(--surface); box-shadow: 0 2px 10px -4px rgba(0,0,0,.18); -webkit-tap-highlight-color: transparent; justify-content: center; }
  .vs-mrate button .lbl { display: inline; }
  .vs-mrate button .n { font-size: 12.5px; opacity: .7; min-width: 1ch; }
  .vs-mrate button:active { transform: scale(.95); }
  .vs-mrate button.up.on { background: var(--up); color: #fff; border-color: var(--up); }
  .vs-mrate button.down.on { background: var(--down); color: #fff; border-color: var(--down); }
  .vs-mrate button.on .n { opacity: .9; }
  .viewer-strip + .vs-mrate button { min-width: 0; padding: 0 14px; }
  .viewer-strip + .vs-mrate button .lbl { display: none; }
  /* the sheet: actions as an even grid, primary on its own row */
  .viewer-side .side-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .viewer-side .side-acts > * { min-width: 0; }
  .viewer-side .side-acts > .btn, .viewer-side .side-acts > .filter-pop > .btn { width: 100%; height: 42px; justify-content: center; font-size: 13.5px; }
  .viewer-side .side-acts > .btn.primary { grid-column: 1 / -1; height: 46px; font-size: 14.5px; }
  .viewer-side .side-acts > .btn span, .viewer-side .side-acts .filter-pop .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .viewer-side .side-acts[data-n="2"] > .btn.primary, .viewer-side .side-acts[data-n="4"] > .btn.primary { grid-column: 1 / -1; }
  .viewer-side .side-head .btn.icon.sm[data-more] { width: 40px; height: 40px; }
  .viewer-side .side-head [data-status] { height: 32px !important; }
  /* tabs: scrollable, touch sized */
  .viewer-side .tabs { overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 0 8px; }
  .viewer-side .tabs::-webkit-scrollbar { display: none; }
  .viewer-side .tabs button { flex: none; min-height: 46px; padding: 0 12px; }
  /* rating card inside the sheet: same big buttons */
  .rate-panel { flex-wrap: wrap; }
  .rate-panel .rate { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rate-panel .rate button { height: 46px; justify-content: center; border-radius: 23px; font-size: 14px; }
  /* feedback box: kinds in one row of chips, text first */
  .viewer-side .fbc-step { display: none; }
  .viewer-side .fbc-kinds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px 2px; }
  .viewer-side .fbc-kinds::-webkit-scrollbar { display: none; }
  .viewer-side .fbc-kind { flex: none; flex-direction: row !important; align-items: center !important; min-height: 40px !important; padding: 0 12px 0 6px !important; border-radius: 20px; gap: 6px !important; }
  .viewer-side .fbc-kind .fbc-ic { width: 28px; height: 28px; border-radius: 14px; }
  .viewer-side .fbc-kt small { display: none; }
  .viewer-side .fbc-kt b { font-size: 13.5px !important; white-space: nowrap; }
  .viewer-side .fbc-head { margin-bottom: 2px; }
  .viewer-side .composer.fbc textarea.fbc-text { min-height: 64px; }
  .viewer-side .fbc-opts { gap: 6px; }
  .viewer-side .fbc-tip { display: none; }
  .viewer-side .fbc-foot { gap: 8px; }
  .viewer-side .fbc-foot .fbc-send { flex: 1; height: 46px; justify-content: center; }
  .viewer-side .fbc-attach { height: 46px; }
  .viewer-side .side-foot:has(.fbc) { max-height: none; padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid var(--border); }
  /* notes: larger hit areas for reply / resolve */
  .viewer-side .notes .btn.sm, .viewer-side .note .btn.sm { min-height: 34px; }
}

/* ===== v32.5 image editor: elements panel + brand logo ===== */
.ed-el-logo { margin-bottom: 6px; }
.ed-el-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-el-lg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--text); font: 600 12px/1 var(--font); transition: border-color .12s, transform .12s; }
.ed-el-lg:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ed-el-lg img { width: 100%; height: 46px; object-fit: contain; border-radius: 8px; padding: 6px; box-sizing: border-box; background: var(--surface-2); }
.ed-el-lg.chk img { background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.ed-el-lg.dk img { background: #0A0A0A; }
.ed-el-nologo { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.ed-el-nologo > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ed-el-nologo .faint { font-size: 12px; line-height: 1.35; }
.ed-el-note { font-size: 12px; line-height: 1.45; margin: 8px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.ed-el-g { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 16px 0 8px; }
.ed-el-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ed-el { display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; color: var(--text); transition: border-color .12s, transform .12s; -webkit-tap-highlight-color: transparent; }
.ed-el:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ed-el:active { transform: scale(.97); }
.ed-el b { font-size: 13px; margin-top: 4px; }
.ed-el small { font-size: 11.5px; color: var(--text-3); }
.ed-el-prev { position: relative; height: 62px; border-radius: 8px; background: linear-gradient(135deg, #2a2f3a, #10131a); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; }
.ed-el-prev i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); }
.ed-el-prev .l1 { width: 56%; } .ed-el-prev .l2 { width: 38%; opacity: .6; }
.ed-el-prev em { font-style: normal; font: 800 20px/1 var(--font); color: #E7DCC6; }
.ed-el-prev em.st { font-size: 14px; letter-spacing: 2px; }
.ed-el-prev em.q { font: italic 400 30px/0.6 Lora, Georgia, serif; }
.ed-el-prev em.ar { font-size: 30px; }
.p-lower { align-items: flex-start !important; justify-content: flex-end !important; padding: 0 0 10px 10px; }
.p-lower .bar { position: absolute; left: 8px; bottom: 7px; width: 62%; height: 26px; border-radius: 6px; background: rgba(10,10,10,.55); }
.p-lower .l1, .p-lower .l2 { position: relative; }
.p-kpi { background: linear-gradient(135deg, #3a3f4a, #1a1d24); }
.p-kpi em { padding: 6px 10px; border-radius: 10px; background: #E7DCC6; color: #0A0A0A; }
.p-list { display: grid !important; grid-template-columns: auto 1fr; align-items: center; justify-items: start; padding: 6px 14px; gap: 3px 8px !important; }
.p-list .n { width: auto; height: auto; background: none; font: 700 10px/1 var(--mono); color: #E7DCC6; }
.p-list .l1 { width: 70%; height: 4px; }
.btnp { padding: 7px 12px; border-radius: 99px; background: #E7DCC6; color: #0A0A0A; font: 700 11px/1 var(--font); }
.bdg { padding: 5px 10px; border-radius: 99px; background: #E7DCC6; color: #0A0A0A; font: 700 10px/1 var(--mono); letter-spacing: .14em; }
.hdl { padding: 6px 11px; border-radius: 99px; background: rgba(10,10,10,.6); font: 700 11px/1 var(--font); }

/* ===== v32.5 image editor on the phone: calm selection bar instead of a jumping sheet ===== */
.ed-qbar { display: none; }
@media (max-width: 899px) {
  .ed-rail button { min-width: 0; }
  .ed-rail button span { font-size: 10px; }
  .ed-qbar { display: flex !important; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 8px 8px 6px; position: sticky; top: 0; z-index: 3; background: var(--surface); }
  .ed-qbar::-webkit-scrollbar { display: none; }
  .ed-qbar button { flex: 1 0 auto; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 600 10.5px/1.1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ed-qbar button:active { background: var(--surface-2); transform: scale(.95); }
  .ed-qbar button.on { background: var(--surface-2); color: var(--text); }
  .ed-qbar button.danger { color: var(--down, #DC2626); }
  .ed-qbar button.ok { color: var(--accent-text, #fff); background: var(--text); margin-left: 4px; }
  /* compact by default: only the quick bar; "Mehr"/"Text" open the full properties */
  .ed.has-sel:not(.panel-open):not(.editing) .ed-props { max-height: none; padding-bottom: calc(env(safe-area-inset-bottom) + 6px); margin-top: 0; animation: none; }
  .ed.has-sel:not(.props-full) .ed-props > :not(.ed-qbar) { display: none !important; }
  .ed.has-sel.props-full .ed-props { max-height: 52dvh !important; overflow-y: auto; }
  .ed.has-sel.props-full .ed-props .ed-sheet-head { display: none !important; }
  /* the selection bar replaces the tab bar → the canvas does not jump */
  .ed.has-sel:not(.panel-open) .ed-rail { display: none; }
  /* bigger, friendlier handles + no page scroll while dragging */
  .ed-canvas-box, .ed-canvas-box canvas { touch-action: none; }
  .ed-canvas-wrap { touch-action: pan-x pan-y; }
  .ed.panel-open .ed-panel { max-height: 50dvh; }
}
@media (max-width: 899px) {
  .ed.has-sel:not(.props-full):not(.panel-open) .ed-props { flex: none !important; height: auto !important; min-height: 0 !important; padding: 0 16px calc(env(safe-area-inset-bottom) + 4px); overflow: hidden; }
  .ed.has-sel:not(.props-full):not(.panel-open) .ed-side { flex: none; }
}
@media (max-width: 899px) {
  .ed-qbar { gap: 0; padding: 8px 6px 6px; }
  .ed-qbar button { flex: 1 1 0; min-width: 0; padding: 6px 2px; font-size: 10px; }
  .ed-qbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ed-qbar button.ok { flex: 1.2 1 0; margin-left: 2px; }
}

/* ===== v33.2 brand: iclip wordmark (rounded letters, the i carries the three CI dots) ===== */
.brand-name:has(.brand-wm) { flex-direction: row; align-items: center; gap: 8px; }
.brand-wm { display: inline-block; flex: none; color: var(--text); line-height: 0; }
.brand-wm svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-name small { align-self: flex-end; margin: 0 0 2px; }
.auth-art .brand-wm { color: var(--bg); }
.auth-wm { margin-bottom: 4px; }
.auth-wm .brand-name { justify-content: flex-start; }
.mobile-bar .brand, .sidebar .brand { gap: 0; }
[data-theme='dark'] .brand-wm { --mark-v: #9B82FF; }

/* ===== v34 social-media export ===== */
.exp { display: flex; flex-direction: column; gap: 6px; }
.exp-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 10px 2px 2px; }
.exp-h:first-child { margin-top: 0; }
.exp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.exp-row.bad { border-color: color-mix(in srgb, var(--down) 40%, var(--border)); }
.exp-ic { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.exp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.exp-txt b { font-size: 14px; }
.exp-txt small { font-size: 12px; color: var(--text-3); }
.exp-w { font-size: 12px; color: var(--text-3); display: flex; gap: 5px; align-items: flex-start; line-height: 1.35; }
.exp-w svg { flex: 0 0 auto; margin-top: 1px; }
.exp-w.bad { color: var(--down); }
.exp-act { flex: 0 0 auto; }
.exp-busy { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); min-width: 90px; justify-content: flex-end; }
.exp-foot { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 640px) {
  .exp-row { flex-wrap: wrap; }
  .exp-act { flex: 1 0 100%; display: flex; justify-content: flex-end; }
  .exp-act .btn { width: 100%; justify-content: center; }
  .exp-foot { display: none; }
}
.pf { border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; border: 1px solid var(--border); }
.pf.bad { background: color-mix(in srgb, var(--down) 8%, transparent); border-color: color-mix(in srgb, var(--down) 35%, transparent); }
.pf.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.pf b { display: flex; align-items: center; gap: 6px; }
.pf ul { margin: 6px 0 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.pf li.error { color: var(--down); }
.vst-exp { margin-left: -4px; }
