:root{--bg:#f8f2e8;--bg-soft:#f1e1be;--panel:rgba(255,249,238,0.88);--panel-border:#1c1c1c;--text:#191919;--muted:#635d57;--accent:#ffbf47;--accent-strong:#ff875d;--accent-soft:#ffd66b;--paper:#fffaf1;--paper-ink:#181818;--shadow:0 24px 0 rgba(28,28,28,0.08)}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:radial-gradient(circle at top left,rgba(255,197,93,.4),transparent 24%),radial-gradient(circle at 85% 14%,rgba(255,137,93,.18),transparent 18%),linear-gradient(180deg,#fbf6ec,#f6eedf);color:var(--text);font-family:Avenir Next,Trebuchet MS,Segoe UI,sans-serif}button,input,select{font:inherit}button,select{border:0}.studio-shell{position:relative;min-height:100vh;padding:22px}.studio-shell--single{display:grid}.studio-backdrop{position:absolute;inset:0;background-image:linear-gradient(rgba(25,25,25,.05) 1px,transparent 0),linear-gradient(90deg,rgba(25,25,25,.05) 1px,transparent 0);background-size:28px 28px;opacity:.55;pointer-events:none}.panel,.studio-topbar{position:relative;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:var(--panel);border:2px solid var(--panel-border);box-shadow:var(--shadow)}.studio-topbar{z-index:1;display:flex;justify-content:space-between;gap:28px;align-items:flex-start;padding:20px 22px;border-radius:34px}.panel-head h2,.studio-topbar h1{margin:4px 0 0;font-weight:600;letter-spacing:-.06em}.studio-topbar h1{max-width:10ch;font-size:clamp(2.8rem,6vw,4.8rem);line-height:.92}.eyebrow{margin:0;color:#8d5b0c;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase}.brand-mark{display:inline-flex;align-items:center;gap:10px;margin-bottom:16px;padding:.5rem .85rem;background:#fff3cc;font-size:.92rem;font-weight:700}.brand-mark,.brand-mark__dot{border-radius:999px;border:2px solid var(--panel-border)}.brand-mark__dot{width:12px;height:12px;background:linear-gradient(135deg,#ff9e54,#ffce54)}.topbar-copy{display:grid;grid-gap:8px;gap:8px}.topbar-copy__lede{max-width:46ch;margin:6px 0 0;color:var(--muted);font-size:1.02rem;line-height:1.6}.topbar-feature-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.topbar-feature-list span{padding:.54rem .8rem;border-radius:999px;border:2px solid var(--panel-border);background:#fff;font-size:.88rem;font-weight:600}.export-row,.panel-meta,.secondary-actions,.topbar-actions{display:flex;gap:10px;align-items:center}.topbar-actions{flex:0 1 520px;flex-wrap:wrap;justify-content:flex-end;padding:10px;border-radius:28px;border:2px solid var(--panel-border);background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,245,226,.95))}.danger-button,.ghost-button,.primary-button,select{border-radius:18px;padding:.7rem 1rem;transition:transform .16s ease,opacity .16s ease,background .16s ease,box-shadow .16s ease}.danger-button,.ghost-button,.primary-button{cursor:pointer}.url-input{min-width:220px;padding:.7rem 1rem;border-radius:18px;border:2px solid var(--panel-border);background:rgba(255,255,255,.82);color:var(--text)}.url-input::placeholder{color:rgba(25,25,25,.4)}.danger-button:hover,.ghost-button:hover,.primary-button:hover{transform:translateY(-2px);box-shadow:0 8px 0 rgba(28,28,28,.12)}.danger-button:disabled,.ghost-button:disabled,.primary-button:disabled{cursor:not-allowed;transform:none;opacity:.48}.primary-button{background:linear-gradient(180deg,#ffd35d,#ffbb38);color:#111;border:2px solid var(--panel-border)}.ghost-button,select{background:rgba(255,255,255,.82);color:var(--text);border:2px solid var(--panel-border)}.mode-switch{display:inline-flex;padding:4px;border-radius:18px;background:#fff;border:2px solid var(--panel-border)}.mode-switch__button{border-radius:999px;padding:.48rem .78rem;background:transparent;color:var(--muted)}.mode-switch__button.is-active{background:#ffeec0;color:var(--text)}.danger-button{background:linear-gradient(180deg,#ff9a74,#ff805d);color:#121212;border:2px solid var(--panel-border)}.studio-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.92fr) minmax(260px,.34fr);grid-gap:16px;gap:16px;margin-top:18px;align-items:start}.panel-editor--solo{min-height:calc(100vh - 44px)}.panel{border-radius:34px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 20px 14px}.panel-head h2{font-size:1.3rem}.panel-editor{min-height:calc(100vh - 92px)}.editor-wrap{display:grid;place-items:center;min-height:calc(100vh - 142px);padding:12px;background:radial-gradient(circle at top left,rgba(255,196,93,.28),transparent 18%),linear-gradient(180deg,#fff8e5,#f5e8cf)}.editor-wrap--solo{min-height:calc(100vh - 48px);padding:16px}.storyboard-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100vh - 162px);overflow:hidden;border-radius:24px;border:2px solid var(--panel-border);background:#fffaf1}.storyboard-stage--solo{max-height:none;height:calc(100vh - 80px)}.editor-screen-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:#fffaf1;opacity:0;transition:opacity .18s ease,transform .22s ease;pointer-events:none}.editor-screen-video.is-visible{opacity:1}.editor-screen-video.is-zoomed{transform:scale(1.8)}.storyboard-stage .excalidraw{--color-primary:#1b1b1b;--color-primary-darker:#111111;--default-bg-color:transparent;--sidebar-shadow:none}.storyboard-stage .excalidraw,.storyboard-stage .excalidraw .App{background:transparent}.whiteboard-zoom-layer{position:absolute;inset:0;z-index:2;transition:transform .22s ease}.whiteboard-zoom-layer.is-active{transform:scale(1.5)}.panel-preview{display:flex;flex-direction:column}.stage-overlay{position:absolute;left:18px;right:18px;z-index:12;display:flex;align-items:flex-start;gap:12px;justify-content:space-between;pointer-events:none}.stage-overlay--top{top:18px}.stage-overlay--bottom{bottom:18px;align-items:flex-end}.stage-chip-group,.stage-secondary-actions,.stage-status-bar,.stage-toolbar{display:flex;gap:8px;flex-wrap:wrap;pointer-events:auto}.stage-chip{display:inline-flex;align-items:center;min-height:42px;padding:.62rem .86rem;border-radius:16px;border:2px solid var(--panel-border);background:rgba(255,250,241,.92);font-size:.9rem;font-weight:600}.stage-chip--brand{background:#ffe48f}.stage-secondary-actions,.stage-status-bar,.stage-toolbar{padding:8px;border-radius:18px;border:2px solid var(--panel-border);background:rgba(255,249,238,.88);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.stage-toolbar{justify-content:flex-end;max-width:min(100%,960px);align-items:center}.icon-button{display:inline-grid;place-items:center;min-height:36px;padding:.4rem;border-radius:12px}.icon-button,.settings-button{min-width:36px}.settings-text-button{min-width:auto;min-height:36px;padding:.36rem .72rem;font-size:.78rem;font-weight:700}.stage-icon{width:16px;height:16px}.stage-status-bar>div{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:.42rem .62rem;border-radius:12px;border:2px solid var(--panel-border);background:rgba(255,255,255,.75);font-size:.78rem}.stage-status-bar--compact{padding:4px}.stage-status-bar--compact>div{min-height:28px;padding:.28rem .54rem;border-radius:10px;font-size:.68rem;font-weight:700}.stage-status-message{max-width:min(40vw,520px);color:var(--muted)}.stage-secondary-actions{justify-content:flex-end}.settings-menu{position:relative}.settings-button{min-width:96px}.settings-popover{position:absolute;top:calc(100% + 10px);right:0;display:grid;grid-gap:10px;gap:10px;width:min(340px,calc(100vw - 64px));padding:12px;border-radius:22px;border:2px solid var(--panel-border);background:rgba(255,249,238,.96);box-shadow:0 14px 30px rgba(28,28,28,.14)}.settings-action,.settings-url-input{width:100%}.recording-summary{margin:0 18px;padding:16px 18px;border-radius:24px;background:#fff6dc;border:2px solid var(--panel-border);color:var(--muted)}.recording-summary p{margin:0;line-height:1.7}.camera-overlay{position:absolute;z-index:3;border-radius:999px;overflow:hidden;border:4px solid #fff9ef;box-shadow:0 16px 32px rgba(68,50,20,.18),0 0 0 2px var(--panel-border);cursor:-webkit-grab;cursor:grab;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.camera-overlay:active{cursor:-webkit-grabbing;cursor:grabbing}.camera-overlay video{width:100%;height:100%;object-fit:cover;display:block;background:#101822}.camera-overlay__badge{position:absolute;left:50%;bottom:10%;transform:translateX(-50%);border-radius:999px;padding:.3rem .62rem;background:rgba(7,11,17,.62);color:#fff7ef;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;pointer-events:none}.camera-overlay--editor{z-index:5}.storyboard-cursor{z-index:6;width:32px;height:32px;border-radius:999px;border:4px solid rgba(255,166,58,.98);background:rgba(255,166,58,.2)}.storyboard-cursor,.storyboard-trail{position:absolute;pointer-events:none}.storyboard-trail{z-index:5;border-radius:999px;background:rgba(255,166,58,.3)}.storyboard-click-pulse{position:absolute;z-index:6;width:88px;height:88px;border-radius:999px;border:6px solid rgba(255,166,58,.72);pointer-events:none;animation:click-pulse .28s ease-out}.storyboard-zoom-indicator{position:absolute;z-index:6;width:48px;height:48px;border-radius:999px;border:3px solid rgba(255,166,58,.92);background:rgba(255,166,58,.14);box-shadow:0 0 0 10px rgba(255,166,58,.12);pointer-events:none}@keyframes click-pulse{0%{opacity:.92;transform:scale(.7)}to{opacity:0;transform:scale(1.08)}}.stage-empty-state{position:absolute;inset:0;display:grid;place-content:center;grid-gap:10px;gap:10px;text-align:center;padding:24px;color:#2a251d;background:linear-gradient(180deg,rgba(255,252,243,.72),rgba(255,242,212,.9))}.mode-note,.stage-empty-state__badge{color:var(--accent);font-size:.76rem;letter-spacing:.14em;text-transform:uppercase}.stage-empty-state h3{margin:0;font-size:2rem}.stage-empty-state p{margin:0;color:var(--muted)}.recording-canvas{display:none}.preview-empty{position:absolute;inset:0;display:grid;place-content:center;grid-gap:10px;gap:10px;padding:32px;text-align:center;background:linear-gradient(180deg,rgba(10,16,22,.25),rgba(10,16,22,.5))}.preview-empty h2{margin:0;font-size:clamp(1.7rem,2.8vw,2.8rem);letter-spacing:-.05em}.export-note,.preview-empty p{margin:0;color:var(--muted);line-height:1.55}.preview-empty__badge{justify-self:center;border-radius:999px;padding:.45rem .8rem;background:rgba(255,255,255,.08);color:var(--accent);font-size:.76rem;letter-spacing:.14em;text-transform:uppercase}.hidden-video{display:none}.preview-footer,.status-strip{padding:14px 18px 0}.status-strip{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted)}.status-strip>div{display:flex;align-items:center;gap:10px;padding:.7rem .85rem;border-radius:18px;border:2px solid var(--panel-border);background:rgba(255,255,255,.72)}.status-dot{width:10px;height:10px;border-radius:999px;background:rgba(25,25,25,.22)}.status-dot.live{background:#78ff9a}.status-dot.recording{background:#ff6b57}.toggle{display:inline-flex;gap:10px;align-items:center;color:var(--muted)}.toggle input{accent-color:var(--accent)}.export-row{margin:10px 0}.preview-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:24px;flex-wrap:wrap}.status-message-inline{flex:1 1 220px;min-width:0;color:#d6e0e8}.panel-preview .panel-head h2{font-size:1.2rem}.mini-callout{margin:14px 18px 0;padding:16px 18px;border-radius:24px;border:2px solid var(--panel-border);background:linear-gradient(180deg,#fff7df,#ffe9b7)}.mini-callout strong{display:block;font-size:1rem}.mini-callout p{margin:8px 0 0;color:var(--muted);line-height:1.6}.presenter-shell{min-height:100vh;display:grid;place-items:center;padding:32px}.presenter-card{width:min(760px,100%);padding:36px;border-radius:32px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:rgba(255,249,238,.92);border:2px solid var(--panel-border);box-shadow:var(--shadow)}.presenter-card h1{margin:8px 0 0;font-size:clamp(2rem,4vw,3.8rem);letter-spacing:-.06em}.presenter-copy{margin:18px 0 0;max-width:56ch;color:var(--muted);line-height:1.7}.presenter-target{margin-top:22px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.72);border:2px solid var(--panel-border)}.presenter-target__label{display:inline-block;margin-bottom:6px;color:var(--accent);font-size:.76rem;letter-spacing:.14em;text-transform:uppercase}.presenter-target p{margin:8px 0 0;color:var(--muted);word-break:break-all}.presenter-actions{display:flex;gap:10px;margin-top:22px}.url-input--presenter{flex:1 1 auto;min-width:0}.presenter-steps{margin-top:24px;padding-top:18px;border-top:2px solid rgba(25,25,25,.12);color:var(--muted)}.presenter-steps p{margin:0;line-height:1.8}@media (max-width:1180px){.studio-grid{grid-template-columns:1fr}.editor-wrap{min-height:auto;padding:16px}.storyboard-stage{max-height:none}.storyboard-stage--solo{height:calc(100vh - 84px)}.presenter-actions{flex-direction:column}}@media (max-width:760px){.studio-shell{padding:16px}.panel-head,.preview-footer,.status-strip,.studio-topbar{padding-left:16px;padding-right:16px}.studio-topbar{flex-direction:column;align-items:stretch}.stage-overlay{left:12px;right:12px;gap:10px;flex-direction:column}.stage-overlay--bottom{align-items:stretch}.stage-secondary-actions,.stage-status-bar,.stage-toolbar{width:100%}.stage-status-message{max-width:none}.export-row,.panel-meta,.preview-footer,.topbar-actions{flex-wrap:wrap}.recording-summary{margin:0 16px}.url-input{width:100%}}