:root {
  --bg: #07070b;
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, .62);
  --text-3: rgba(235, 235, 245, .38);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .12);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .28);
  --violet: #7c5cff;
  --pink: #ff3d9a;
  --cyan: #22d3ee;
  --amber: #ffb547;
  --green: #34d399;
  --accent: linear-gradient(135deg, #8b6cff 0%, #ff4fa3 100%);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .45; }
.b1 { background: var(--violet); top: -20vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: var(--pink); top: 10vmax; right: -25vmax; opacity: .32; animation: drift2 30s ease-in-out infinite alternate; }
.b3 { background: var(--cyan); bottom: -30vmax; left: -10vmax; opacity: .28; animation: drift1 34s ease-in-out infinite alternate-reverse; }
.b4 { background: var(--amber); bottom: -25vmax; right: -15vmax; opacity: .2; animation: drift2 28s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vmax, 8vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vmax, -6vmax) scale(.92); } }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- device frame ---------- */
.device { position: relative; z-index: 1; height: 100%; }
.app { position: relative; height: 100%; overflow: hidden; }
.frame-note { display: none; }

@media (min-width: 600px) {
  body { display: grid; place-items: center; overflow: auto; }
  .device {
    width: 393px; height: min(852px, calc(100vh - 80px));
    border-radius: 54px; padding: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04));
    box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.15);
  }
  .app { border-radius: 44px; background: rgba(7, 7, 11, .55); }
  .frame-note { display: block; position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--text-3); font-size: 12px; margin: 0; z-index: 1; }
}

/* ---------- top bar ---------- */
.topbar {
  position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 10px); left: 12px; right: 12px;
  height: 52px; border-radius: 26px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }
.mark { height: 26px; width: auto; filter: drop-shadow(0 2px 8px rgba(139,108,255,.6)); }
.topbar h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand + h1 { text-align: right; font-size: 15px; font-weight: 500; color: var(--text-2); }
.brand[hidden] + h1 { text-align: left; color: var(--text); font-size: 17px; font-weight: 650; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-action:empty { display: none; }

/* ---------- screen ---------- */
.screen {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 76px) 16px calc(env(safe-area-inset-bottom) + 110px);
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.enter { animation: enter .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

.section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 22px 4px 10px; }
.hero { margin: 6px 4px 18px; }
.hero h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 6px; }
.hero p { margin: 0; color: var(--text-2); }
.gradient-text { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  display: flex; gap: 4px; padding: 6px; border-radius: 32px;
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 82px; padding: 7px 0 6px; border-radius: 26px; color: var(--text-2); font-size: 11px; font-weight: 600;
  transition: background .25s, color .25s;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar button.active { color: var(--text); background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }

/* ---------- buttons, chips, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 25px; font-weight: 650; font-size: 16px;
  transition: transform .15s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--accent); box-shadow: 0 8px 24px rgba(255, 61, 154, .35), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.secondary { background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hi); }
.btn.block { width: 100%; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 18px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px;
  font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .1); color: var(--text-2); white-space: nowrap;
}
.chip.role-hook { background: rgba(255, 61, 154, .2); color: #ff8cc6; }
.chip.role-body { background: rgba(124, 92, 255, .22); color: #b9a8ff; }
.chip.role-proof { background: rgba(34, 211, 238, .18); color: #7fe7f7; }
.chip.role-cta { background: rgba(255, 181, 71, .2); color: #ffd08a; }
.chip.ok { background: rgba(52, 211, 153, .18); color: #7ff0c4; }

.segmented { display: flex; padding: 4px; border-radius: 20px; gap: 2px; }
.segmented button { flex: 1; height: 32px; border-radius: 16px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.segmented button.active { background: rgba(255,255,255,.16); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }

.field {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 16px; border-radius: 24px;
}
.field svg.lead { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 2; flex: none; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; }
.field input::placeholder { color: var(--text-3); }

/* ---------- clip tiles (simulated footage) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #1a1a22;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.scene { position: absolute; inset: -8%; background-size: cover; animation: kenburns 9s ease-in-out infinite alternate; }
.scene .glyph { position: absolute; left: 50%; top: 46%; width: 42%; transform: translate(-50%, -50%); opacity: .55; }
.scene .glyph svg { width: 100%; height: auto; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(var(--kx, 2%), -2%); } }
.tile .meta {
  position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-direction: column; gap: 3px;
  font-size: 10.5px; font-weight: 650; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.tile .meta .row { display: flex; align-items: center; gap: 4px; }
.tile .meta svg { width: 11px; height: 11px; fill: currentColor; }
.tile .tag { align-self: flex-start; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile.analyzing .meta { opacity: 0; }
.tile.analyzing::after {
  content: "Analysiere …"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: linear-gradient(110deg, rgba(0,0,0,.45) 30%, rgba(255,255,255,.18) 50%, rgba(0,0,0,.45) 70%) 0 0 / 250% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.tile.selectable { cursor: pointer; transition: transform .15s; }
.tile.selectable:active { transform: scale(.96); }
.tile .check {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.2);
}
.tile.selected .check { background: var(--accent); border-color: #fff; }
.tile.selected .check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- cards ---------- */
.card { border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 10px; }
.stats { display: flex; justify-content: space-between; text-align: center; padding: 14px 8px; }
.stats div { flex: 1; }
.stats b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--text-2); }

.template-card { display: block; width: 100%; text-align: left; transition: transform .15s; }
.template-card:active { transform: scale(.98); }
.template-card h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.template-card p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.timeline { display: flex; gap: 3px; height: 8px; }
.timeline span { border-radius: 4px; }
.timeline .hook { background: var(--pink); }
.timeline .body { background: var(--violet); }
.timeline .proof { background: var(--cyan); }
.timeline .cta { background: var(--amber); }
.template-card .foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-3); }

.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { height: 34px; padding: 0 16px; border-radius: 17px; font-size: 14px; font-weight: 600; color: var(--text-2); flex: none; }
.filters button.active { color: var(--text); background: rgba(255,255,255,.16); }

/* ---------- editor ---------- */
.topic-row { display: flex; gap: 8px; align-items: center; }
.topic-row .field { flex: 1; }
.magic {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); box-shadow: 0 6px 20px rgba(139, 108, 255, .45), inset 0 1px 0 rgba(255,255,255,.45);
}
.magic svg { width: 22px; height: 22px; fill: #fff; }
.magic.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.preview-wrap { display: flex; justify-content: center; margin: 16px 0 6px; }
.preview {
  position: relative; width: 236px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12), 0 0 80px rgba(139,108,255,.25);
  cursor: pointer;
}
.preview .scene { animation-duration: 5s; }
.preview .progress { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 3px; }
.preview .progress span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.preview .progress i { display: block; height: 100%; width: 0; background: #fff; }
.preview .ui-hint { position: absolute; z-index: 3; right: 8px; bottom: 60px; display: flex; flex-direction: column; gap: 12px; opacity: .55; }
.preview .ui-hint span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.35); }
.caption-layer { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.caption {
  max-width: calc(100% - 2 * var(--side)); text-align: center; font-weight: 800; line-height: 1.12; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7); animation: pop .22s cubic-bezier(.2, 1.4, .4, 1);
}
.caption.boxed { background: rgba(0,0,0,.65); text-shadow: none; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.paused-badge { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); }
.paused-badge svg { width: 54px; height: 54px; fill: rgba(255,255,255,.9); }
.safe-note { text-align: center; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }

.segments { padding: 6px 14px; }
.segment { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.segment + .segment { border-top: 1px solid rgba(255,255,255,.08); }
.segment .tile { width: 46px; flex: none; border-radius: 10px; cursor: pointer; }
.segment .swap { position: absolute; z-index: 2; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.segment .swap svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.5; }
.segment .body { flex: 1; min-width: 0; }
.segment .head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; color: var(--text-3); }
.segment input {
  width: 100%; background: none; border: 0; outline: none; font-size: 15px; font-weight: 600; padding: 2px 0;
  border-bottom: 1px dashed transparent;
}
.segment input:focus { border-bottom-color: rgba(255,255,255,.25); }
.segment input::placeholder { color: var(--text-3); font-weight: 500; }
.segment.playing .tile { box-shadow: 0 0 0 2px #fff; }

/* ---------- plan ---------- */
.week { display: flex; flex-direction: column; gap: 10px; }
.day { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); }
.day .date { width: 44px; text-align: center; flex: none; }
.day .date b { display: block; font-size: 20px; letter-spacing: -.02em; }
.day .date span { font-size: 11px; color: var(--text-3); text-transform: uppercase; font-weight: 600; }
.day .tile { width: 52px; flex: none; border-radius: 10px; }
.day .info { flex: 1; min-width: 0; }
.day .info h4 { margin: 0 0 3px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day .info p { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.approve { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.3); }
.approve svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.approve.on { background: var(--green); border-color: transparent; box-shadow: 0 4px 14px rgba(52,211,153,.45); }
.approve.on svg { opacity: 1; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.setting + .setting { border-top: 1px solid rgba(255,255,255,.08); }
.setting small { display: block; color: var(--text-3); font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 18px; line-height: 1; }
.stepper b { width: 26px; text-align: center; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.variants { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.variants .tile { width: 64px; flex: none; }
.variants .tile .hookline { position: absolute; z-index: 2; left: 4px; right: 4px; top: 30%; text-align: center; font-size: 8.5px; font-weight: 800; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,.8); }

/* ---------- sheet ---------- */
.sheet-backdrop { position: absolute; z-index: 20; inset: 0; background: rgba(0,0,0,.45); animation: fade .25s; }
.sheet {
  position: absolute; z-index: 21; left: 8px; right: 8px; bottom: 8px; max-height: 86%;
  border-radius: 34px; padding: 10px 16px calc(env(safe-area-inset-bottom) + 18px); overflow-y: auto;
  background: rgba(30, 30, 40, .72); animation: rise .35s cubic-bezier(.2, .9, .2, 1);
}
.sheet .grabber { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
.sheet .sub { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.sheet .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sheet .actions.sticky { position: sticky; bottom: -18px; margin: 0 -16px -18px; padding: 24px 16px 18px; background: linear-gradient(rgba(30, 30, 40, 0), rgba(30, 30, 40, .96) 45%); }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.ring { position: relative; width: 132px; height: 132px; margin: 18px auto 10px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: rgba(255,255,255,.1); }
.ring .bar { stroke: url(#ring-grad); transition: stroke-dashoffset .1s linear; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; letter-spacing: -.02em; }
.done-check { width: 72px; height: 72px; margin: 18px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--green); box-shadow: 0 10px 30px rgba(52,211,153,.45); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.done-check svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.center { text-align: center; }
.soon { display: flex; gap: 8px; justify-content: center; margin-top: 4px; flex-wrap: wrap; }

.picker-search { margin-bottom: 12px; }
.picker-hint { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); margin: -4px 4px 12px; }
.picker-hint svg { width: 14px; height: 14px; fill: #b9a8ff; flex: none; }

/* ---------- toast ---------- */
.toast {
  position: absolute; z-index: 30; left: 50%; top: calc(env(safe-area-inset-top) + 74px); transform: translateX(-50%);
  padding: 10px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; white-space: nowrap; animation: drop .3s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes drop { from { transform: translate(-50%, -16px); opacity: 0; } }

.empty { text-align: center; color: var(--text-2); padding: 40px 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================================
   v2: events, briefing, voice-over, hand-off, blurred Mac projects
   ========================================================================= */

.opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-3); margin-left: 6px; }
.mini-note { font-size: 12px; color: var(--text-3); margin: 8px 4px 0; line-height: 1.4; }
.mini-note.center { text-align: center; }
.chip.warn { background: rgba(255, 159, 10, .2); color: #ffc46b; }
.link { color: #b9a8ff; font-weight: 600; font-size: 14px; }
.field + .section-title { margin-top: 20px; }

/* view switch (desktop only) */
.view-switch { display: none; position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%); width: 220px; }
@media (min-width: 900px) { .view-switch { display: flex; } }
body[data-view="phone"] .mac-stage { display: none; }
body[data-view="mac"] .device { display: none; }

/* events */
.events { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 6px; scrollbar-width: none; }
.events::-webkit-scrollbar { display: none; }
.event { flex: none; width: 150px; padding: 8px; border-radius: 20px; text-align: left; display: flex; flex-direction: column; gap: 2px; transition: transform .15s; }
.event:active { transform: scale(.97); }
.event.active { box-shadow: 0 0 0 2px #fff, 0 10px 30px rgba(0,0,0,.35); }
.event .mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 92px; border-radius: 14px; overflow: hidden; margin-bottom: 6px; }
.event .mosaic .scene { position: relative; inset: auto; animation: none; }
.event .mosaic .scene:first-child { grid-row: span 2; }
.event .mosaic .glyph { width: 46%; }
.event b { font-size: 14px; padding: 0 4px; }
.event span { font-size: 11.5px; color: var(--text-2); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event em { font-style: normal; font-size: 11px; color: var(--text-3); padding: 0 4px 2px; }
.filter-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 20px; margin: 14px 0 10px; }
.filter-banner b { display: block; font-size: 16px; }
.filter-banner span { font-size: 12.5px; color: var(--text-2); }

/* placeholder & blurred tiles */
.scene.placeholder { background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 10px, rgba(255,255,255,.02) 10px 20px); animation: none; }
.tile.blurred .scene { filter: blur(9px) saturate(1.4); transform: scale(1.3); animation: none; }
.tile.blurred .glyph { display: none; }
.tile.offline .scene { filter: grayscale(.85) brightness(.6); }
.badge-offline { position: absolute; z-index: 2; top: 6px; left: 6px; padding: 2px 7px; border-radius: 8px; font-size: 10px; font-weight: 700; background: rgba(255, 159, 10, .9); color: #1a1000; }
.hook-slot { display: grid; place-items: center; align-content: center; gap: 4px; border: 1.5px dashed rgba(255, 140, 198, .7); background: rgba(255, 61, 154, .12); color: #ff8cc6; font-size: 10px; font-weight: 700; }
.hook-slot svg { width: 40%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* briefing entry card */
.briefing-card { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; margin-bottom: 4px;
  background: linear-gradient(135deg, rgba(139,108,255,.28), rgba(255,79,163,.18)); }
.briefing-card h3 { margin: 0 0 4px; font-size: 17px; }
.briefing-card p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.briefing-orb, .ai-orb { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent);
  box-shadow: 0 8px 26px rgba(139,108,255,.5), inset 0 1px 0 rgba(255,255,255,.45); }
.briefing-orb svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* briefing form */
.brief .section-title:first-child { margin-top: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.pills.scroll::-webkit-scrollbar { display: none; }
.pill { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; font-size: 14px; font-weight: 600; color: var(--text-2);
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); display: inline-flex; align-items: center; gap: 6px; }
.pill span { font-size: 12px; color: var(--text-3); }
.pill.active { color: #fff; background: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); border-color: rgba(255,255,255,.3); }
.brief-box { border-radius: 22px; padding: 14px 14px 10px; transition: box-shadow .3s; }
.brief-box.listening { box-shadow: 0 0 0 2px rgba(255,79,163,.7), 0 0 40px rgba(255,79,163,.35); }
.brief-box textarea { width: 100%; background: none; border: 0; outline: none; resize: none; font: inherit; font-size: 16px; line-height: 1.45; color: var(--text); }
.brief-box textarea::placeholder { color: var(--text-3); }
.brief-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brief-tools .hint { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.mic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 6px 18px rgba(255,79,163,.4); }
.mic svg, .field-mic svg, .btn .ic svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.mic.on { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255,79,163,.18), 0 6px 18px rgba(255,79,163,.4); } }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: #ff8cc6; border-radius: 2px; animation: eq .7s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.vo { border-radius: 22px; padding: 12px 14px; }
.vo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.vo-row .btn svg { width: 16px; height: 16px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 12px #ff453a; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.rec-time { font-variant-numeric: tabular-nums; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 28px; min-width: 60px; }
.wave i { flex: 1; max-width: 4px; border-radius: 2px; background: linear-gradient(#ff8cc6, #8b6cff); height: 30%; animation: eq .9s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: .2s; } .wave i:nth-child(3n+1) { animation-delay: .45s; } .wave i:nth-child(4n) { animation-duration: .7s; }
.wave.static i { animation: none; }
.wave.static i:nth-child(odd) { height: 70%; } .wave.static i:nth-child(3n) { height: 40%; } .wave.static i:nth-child(5n) { height: 95%; }
.shimmer-text { color: var(--text-2); background: linear-gradient(90deg, var(--text-3) 30%, #fff 50%, var(--text-3) 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; font-weight: 600; }
.vo-lines { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.vo-lines li::marker { color: var(--text-3); }
.segmented.locked { opacity: .45; }
.vo-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; margin-bottom: 8px; font-size: 12.5px; color: var(--text-2); }
.vo-strip .wave { height: 22px; }
.info-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; margin-top: 12px; }
.info-card p { margin: 0; font-size: 13px; color: var(--text-2); }
.field-mic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; }
.field-mic svg { stroke: var(--text); }

/* AI working overlay */
.ai-steps { position: absolute; z-index: 40; inset: 0; display: grid; place-items: center; background: rgba(5,5,10,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .25s; }
.ai-card { width: min(320px, 86%); border-radius: 28px; padding: 22px; text-align: center; background: rgba(30,30,42,.7); }
.ai-card .ai-orb { margin: 0 auto 12px; animation: spin 2.4s linear infinite; background: conic-gradient(#8b6cff, #ff4fa3, #22d3ee, #ffb547, #8b6cff); }
.ai-card h3 { margin: 0 0 12px; font-size: 18px; }
.ai-card ol { list-style: none; margin: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-3); }
.ai-card li { display: flex; gap: 8px; align-items: center; transition: color .2s; }
.ai-card li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.ai-card li.now { color: #fff; }
.ai-card li.now::before { border-color: #ff8cc6; border-top-color: transparent; animation: spin .8s linear infinite; }
.ai-card li.done { color: var(--text-2); }
.ai-card li.done::before { background: var(--green); border-color: var(--green); }

/* hand-off */
.handoff { border-radius: 26px; padding: 16px; margin-bottom: 6px; background: linear-gradient(140deg, rgba(255,61,154,.22), rgba(124,92,255,.18)); }
.handoff-head { display: flex; justify-content: space-between; align-items: center; }
.handoff h3 { margin: 10px 0 4px; font-size: 18px; letter-spacing: -.01em; }
.handoff p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-2); }
.handoff-strip { display: flex; gap: 5px; margin-bottom: 14px; }
.handoff-strip .tile { flex: 1; border-radius: 10px; }
.btn svg.icon-in-btn, .btn > svg { flex: none; }

.mac-projects { display: flex; flex-direction: column; gap: 10px; }
.mac-project { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; text-align: left; width: 100%; }
.mac-project .mini-strip { display: flex; gap: 3px; width: 112px; flex: none; }
.mac-project .mini-strip .tile { flex: 1; border-radius: 7px; }
.mac-project .info { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.mac-project b { font-size: 15px; }
.mac-project .info > span:not(.chip) { font-size: 12.5px; color: var(--text-2); }
.blur-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 10px; }
.blur-board .tile { border-radius: 8px; }

/* camera */
.camera { position: absolute; z-index: 45; inset: 0; background: #000; animation: fade .25s; overflow: hidden; }
.camera .viewfinder { position: absolute; inset: 0; }
.camera .viewfinder .scene { animation-duration: 3s; }
.cam-safe { position: absolute; left: 8.3%; right: 8.3%; top: 13.5%; bottom: 22%; border: 1.5px dashed rgba(255,255,255,.35); border-radius: 14px; }
.cam-ghost { position: absolute; left: 10%; right: 10%; top: 44%; text-align: center; font-weight: 800; font-size: 26px; line-height: 1.1;
  color: rgba(255,255,255,.55); padding: 8px; border-radius: 10px; background: rgba(0,0,0,.25); }
.cam-top { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 12px; right: 12px; height: 52px; border-radius: 26px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px 0 8px; font-size: 14px; font-weight: 600; }
.cam-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 800; text-shadow: 0 6px 30px rgba(0,0,0,.6); animation: pop .3s; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 26px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; }
.cam-next { width: 64px; display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--text-2); text-align: center; }
.cam-next .tile { border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.shutter i { width: 62px; height: 62px; border-radius: 50%; background: #ff453a; transition: all .25s; }
.camera.recording { box-shadow: inset 0 0 0 5px #ff453a; }
.camera.recording .shutter i { width: 30px; height: 30px; border-radius: 8px; }
.camera.recording .cam-ghost { opacity: 0; }
.camera.done .cam-bottom { justify-content: center; }
.camera.done .cam-bottom .btn { flex: 1; }

/* =========================================================================
   v3: music folders, license flags, beat sync
   ========================================================================= */
.lib-switch { margin-bottom: 14px; }
.lic { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.lic-ok { background: rgba(52, 211, 153, .18); color: #7ff0c4; }
.lic-warn { background: rgba(255, 159, 10, .2); color: #ffc46b; }
.lic-bad { background: rgba(255, 69, 58, .2); color: #ff8a80; }
p.lic-note { margin: 8px 0 4px; padding: 9px 12px; border-radius: 12px; font-size: 13px; height: auto; white-space: normal; display: block; }
.lic-summary { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.lic-record { display: flex; flex-direction: column; gap: 3px; text-align: left; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 12.5px; color: var(--text-2); }
.lic-record b { color: var(--text); font-size: 13px; }

.track { display: flex; gap: 12px; align-items: center; padding: 9px 4px; border-radius: 14px; cursor: default; }
.track[role="button"] { cursor: pointer; }
.track[role="button"]:hover { background: rgba(255,255,255,.05); }
.tracks .track + .track, .music-card .track + .track { border-top: 1px solid rgba(255,255,255,.07); }
.track.active { background: rgba(255,255,255,.08); padding-left: 8px; padding-right: 8px; }
.track-art { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #8b6cff, #22d3ee); }
.track-art.e-driving { background: linear-gradient(135deg, #ff4fa3, #ffb547); }
.track-art.e-medium { background: linear-gradient(135deg, #8b6cff, #ff4fa3); }
.track-art svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.track-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.track-info b { font-size: 14.5px; }
.track-info > span:not(.lic) { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.music-card { padding: 10px 12px 12px; }
.mwave { display: flex; align-items: center; gap: 2px; height: 34px; margin: 10px 2px 4px; }
.mwave i { flex: 1; border-radius: 2px; background: rgba(255,255,255,.28); }
.mwave i.b { background: linear-gradient(#ff8cc6, #8b6cff); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.07); }
.switch-row small { display: block; color: var(--text-3); font-size: 12px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.18); position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch.on { background: var(--green); }
.switch.on i { transform: translateX(20px); }
.mini-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 12px 4px 2px; }
.folder-card { display: flex; align-items: center; gap: 12px; }
.folder-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(34, 211, 238, .18); flex: none; }
.folder-ic svg { width: 24px; height: 24px; fill: none; stroke: #7fe7f7; stroke-width: 1.8; }
.folder-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.folder-info span { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-info small { font-size: 11.5px; color: var(--text-3); }
.folder-pick { display: flex; flex-direction: column; gap: 8px; }
.folder-pick button { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); text-align: left; font-size: 14px; }
.folder-pick button.active { box-shadow: inset 0 0 0 1.5px #fff; }
.folder-pick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.subs { display: flex; flex-direction: column; gap: 4px; }
.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.sub-row b { display: block; font-size: 15px; }
.sub-row span { font-size: 12px; color: var(--text-3); }
.segmented.mini { padding: 3px; border-radius: 16px; flex: none; }
.segmented.mini button { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 13px; }
.modal-icon.bad { background: rgba(255, 69, 58, .2); }
.sheet .modal-icon { margin: 4px auto 12px; display: grid; place-items: center; font-size: 26px; font-weight: 800; }

.pv-music { position: absolute; z-index: 3; left: 10px; bottom: 12px; display: flex; align-items: center; gap: 6px; max-width: 70%; padding: 4px 9px 4px 6px; border-radius: 12px;
  background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 10.5px; font-weight: 650; white-space: nowrap; overflow: hidden; }
.pv-music span { overflow: hidden; text-overflow: ellipsis; }
.beat-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff8cc6; flex: none; opacity: .5; }
.beat-dot.hit { animation: beat .25s ease-out; }
@keyframes beat { from { transform: scale(1.9); opacity: 1; box-shadow: 0 0 10px #ff4fa3; } }
