: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}.settings-panel{display:grid;grid-gap:10px;gap:10px;min-width:min(100%,560px);padding:12px;border-radius:20px;border:2px solid var(--panel-border);background:rgba(255,249,238,.96)}.settings-panel__header{display:flex;align-items:center;justify-content:space-between}.settings-panel__title{font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.settings-panel__body{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.icon-button{display:inline-grid;place-items:center;min-width:36px;min-height:36px;padding:.4rem;border-radius:12px}.stage-icon{width:16px;height:16px}.settings-action{flex:0 0 auto}.settings-url-input{min-width:min(100%,220px);flex:1 1 220px}.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-modal-shell{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px}.settings-modal-backdrop{position:absolute;inset:0;background:rgba(15,13,10,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.settings-modal-card{position:relative;width:min(760px,calc(100vw - 32px));max-height:min(86vh,920px);overflow:hidden;display:flex;flex-direction:column;border-radius:32px;border:2px solid rgba(28,28,28,.92);background:radial-gradient(circle at top right,rgba(255,204,102,.22),transparent 22%),linear-gradient(180deg,rgba(255,251,244,.98),rgba(251,242,227,.96));box-shadow:0 32px 80px rgba(28,28,28,.24)}.settings-modal-card--loading{align-items:center;justify-content:center;gap:14px;min-height:240px}.settings-modal-spinner{width:34px;height:34px;border-radius:999px;border:3px solid rgba(25,25,25,.15);border-top-color:#1c1c1c;animation:settings-spin .8s linear infinite}.settings-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px 28px 18px;border-bottom:2px solid rgba(28,28,28,.08)}.settings-modal-header h2{margin:8px 0 6px;font-size:clamp(1.8rem,3vw,2.4rem);letter-spacing:-.06em}.settings-modal-eyebrow{margin:0;color:#8d5b0c;font-size:.74rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.settings-modal-subtitle{margin:0;color:var(--muted);line-height:1.6}.settings-modal-body{display:grid;grid-gap:18px;gap:18px;padding:22px 28px 28px;overflow:auto}.settings-section{display:grid;grid-gap:16px;gap:16px;padding:20px;border-radius:24px;border:2px solid rgba(28,28,28,.08);background:rgba(255,255,255,.6)}.settings-section--grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-section__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.settings-section__eyebrow{margin:0 0 8px;color:#8d5b0c;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.settings-inline-badge{display:inline-flex;align-items:center;min-height:34px;padding:.3rem .72rem;border-radius:999px;border:2px solid rgba(28,28,28,.1);background:rgba(255,248,231,.92);color:#6f5222;font-size:.78rem;font-weight:700;white-space:nowrap}.settings-inline-badge.is-success{background:rgba(228,252,239,.94);color:#0e7b46}.settings-card-row h3,.settings-section h3{margin:0 0 6px;font-size:1rem}.settings-card-row p,.settings-section p{margin:0;color:var(--muted);line-height:1.55}.settings-segmented{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border-radius:18px;border:2px solid rgba(28,28,28,.12);background:rgba(255,248,234,.95)}.settings-segmented__button{min-height:44px;border-radius:14px;background:transparent;color:var(--muted);font-weight:700}.settings-segmented__button.is-active{background:linear-gradient(180deg,#ffd35d,#ffbf47);color:#111;box-shadow:0 6px 14px rgba(255,191,71,.35)}.settings-card-row{display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-height:168px;padding:18px;border-radius:20px;border:2px solid rgba(28,28,28,.08);background:rgba(255,255,255,.72)}.settings-card-row--danger{background:linear-gradient(180deg,rgba(255,246,242,.94),rgba(255,240,235,.82))}.settings-danger-stack{grid-gap:12px;gap:12px}.settings-danger-hint{color:#8f4b40;font-size:.84rem;line-height:1.5}.settings-action-button,.settings-danger-button,.settings-ghost-danger,.settings-icon-button,.settings-primary-wide,.settings-secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:.82rem 1rem;border-radius:16px;border:2px solid var(--panel-border);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,opacity .16s ease}.settings-action-button:hover,.settings-danger-button:hover,.settings-ghost-danger:hover,.settings-icon-button:hover,.settings-primary-wide:hover,.settings-secondary-button:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(28,28,28,.12)}.settings-action-button{justify-content:space-between;background:rgba(255,251,242,.95)}.settings-action-button.is-active{background:linear-gradient(180deg,#d0f0a0,#b3e080);color:#1a3b10}.settings-secondary-button{background:rgba(255,255,255,.94)}.settings-danger-button,.settings-ghost-danger{color:#8f1f17;background:rgba(255,235,230,.92)}.settings-primary-wide{width:100%;background:linear-gradient(180deg,#ffd35d,#ffbb38);color:#111;font-weight:700}.settings-field{display:grid;grid-gap:8px;gap:8px}.settings-field span{font-size:.86rem;font-weight:700;color:#6c5b3f}.settings-modal-input{width:100%;min-height:50px;padding:.9rem 1rem;border-radius:18px;border:2px solid rgba(28,28,28,.14);background:rgba(255,255,255,.92);color:var(--text)}.settings-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.settings-account-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:20px;border:2px solid rgba(28,28,28,.08);background:rgba(255,255,255,.72)}.settings-account-profile{display:flex;align-items:center;gap:14px}.settings-account-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:999px;border:2px solid var(--panel-border);background:#ffe3aa;font-weight:800}.settings-account-name{margin:0 0 4px;font-weight:700}.settings-account-email{margin:0;color:var(--muted)}.settings-status-dot{width:12px;height:12px;border-radius:999px;background:#c9c2b6;box-shadow:0 0 0 4px rgba(201,194,182,.18)}.settings-danger-stack{display:grid;grid-gap:10px;gap:10px}.settings-danger-hint{margin:0;color:#9a4d3d;font-size:.82rem;line-height:1.55}.settings-step-list{margin:0;padding-left:1.1rem;display:grid;grid-gap:8px;gap:8px;color:var(--muted);line-height:1.6}.settings-step-list li::marker{color:#b87418;font-weight:800}.settings-icon-svg{width:18px;height:18px;fill:currentColor}.settings-login-form{display:flex;flex-direction:column;gap:20px;padding:20px;border-radius:24px;border:2px solid rgba(28,28,28,.08);background:rgba(255,255,255,.6)}.settings-login-header{display:flex;flex-direction:column;gap:8px}.settings-login-title{margin:0;font-size:1.1rem;font-weight:700;color:var(--text)}.settings-login-desc{margin:0;color:var(--muted);font-size:.9rem;line-height:1.5}.settings-login-content{display:flex;flex-direction:column;gap:16px}.settings-login-hint{margin:0;color:var(--muted);font-size:.84rem;line-height:1.5;text-align:center}.settings-login-actions{display:flex;justify-content:space-between;gap:12px}.settings-ghost-secondary{flex:1 1;min-height:46px;padding:.82rem 1rem;border-radius:16px;border:2px solid rgba(28,28,28,.08);background:transparent;color:#6c5b3f;cursor:pointer;transition:transform .16s ease,background .16s ease,color .16s ease}.settings-ghost-secondary:hover{background:rgba(255,255,255,.6);color:var(--text)}@keyframes settings-spin{to{transform:rotate(1turn)}}.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%}.settings-panel{min-width:100%}.settings-panel__body{align-items:stretch}.settings-action{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%}}