/* Demo Studio. App shell adapted from Shadcnblocks sidebar1.
   Source and use terms: docs/UI.md. Shared shadcn-style design tokens. */
:root{color-scheme:light;--background:#fff;--foreground:#18181b;--muted:#f4f4f5;--muted-foreground:#71717a;--border:#e4e4e7;--primary:#18181b;--primary-foreground:#fff;--ring:#a1a1aa;--radius:8px;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--foreground);background:var(--background);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--ring);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.035em;font-weight:650;line-height:1.25}h2{font-size:15px;font-weight:600;letter-spacing:-.015em}h3{font-size:14px;font-weight:600}small{font-size:12px}button svg,a svg,.icon{width:18px;height:18px;flex-shrink:0;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.muted,.hint,.help{color:var(--muted-foreground);font-size:13px}.text-sm{font-size:12px;line-height:1.6}.eyebrow{font-size:12px;font-weight:500;color:var(--muted-foreground)}
.primary,.secondary,.danger-outline,.icon-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:8px 13px;border:1px solid var(--border);border-radius:6px;font-size:13px;font-weight:500;line-height:1.3;background:var(--background);color:var(--foreground);box-shadow:0 1px 2px #00000005}.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}.primary:hover{background:#333337}.secondary:hover,.icon-button:hover{background:var(--muted)}.danger-outline{color:#b42318}.danger-outline:hover{background:#fef2f2}.icon-button{width:32px;height:32px;min-height:32px;padding:6px;background:transparent;border-color:transparent;box-shadow:none}.full{width:100%}
input,textarea,select{width:100%;min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--background);padding:9px 11px;color:var(--foreground);font-size:13px;box-shadow:0 1px 2px #00000003}input::placeholder,textarea::placeholder{color:#92929b}input:focus,textarea:focus,select:focus{outline:2px solid #d4d4d8;outline-offset:1px}input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;accent-color:var(--primary);box-shadow:none}textarea{resize:vertical;line-height:1.6}form label{display:block;font-weight:500;font-size:12px;margin:16px 0 7px}.check{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:400;line-height:1.6}.check span{min-width:0}code{font:12px ui-monospace,SFMono-Regular,monospace;background:var(--muted);border-radius:4px;padding:2px 4px;overflow-wrap:anywhere}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;letter-spacing:-.025em}.brand-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:8px;background:var(--primary);color:white}.brand-icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.brand-copy{display:flex;flex-direction:column;line-height:1.4}.brand-copy small{color:var(--muted-foreground);font-weight:400;font-size:11px;letter-spacing:0}
.layout{display:flex;min-height:100vh}.sidebar{width:232px;flex:0 0 232px;background:#fafafa;border-right:1px solid var(--border);padding:20px 12px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.sidebar .brand{padding:0 8px;margin-bottom:32px}.side-heading{display:flex;justify-content:space-between;align-items:center;padding:0 8px 8px;color:var(--muted-foreground);font-size:11px;font-weight:500}.projects{display:flex;flex-direction:column;gap:4px;overflow:auto}.project-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;border-radius:6px;padding:9px 8px;color:#52525b;font-size:13px}.project-item:hover{background:#f0f0f1}.project-item.selected{background:#ededf0;color:var(--foreground);font-weight:550}.project-badge{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border:1px solid var(--border);background:white;border-radius:5px;font-size:11px}.project-item .label{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding:16px 8px 0}.privacy{font-size:12px;color:#52525b;line-height:1.7}.privacy small{font-size:11px;color:var(--muted-foreground)}.status-dot{display:inline-block;width:6px;height:6px;background:#22a06b;border-radius:50%;margin-right:6px}.logout{border:0;background:none;padding:8px 0;margin-top:12px;font-size:12px;color:var(--muted-foreground)}.logout:hover{color:var(--foreground)}.main{flex:1;min-width:0}.topbar{height:64px;padding:0 32px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted-foreground);min-width:0}.breadcrumb strong{font-weight:500;color:var(--foreground);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chevron{color:#c4c4cb}.topbar-note{font-size:12px;color:var(--muted-foreground)}
.welcome{display:flex;flex-direction:column;align-items:center;text-align:center;margin:80px auto;padding:48px 32px;max-width:620px;border:1px dashed #d4d4d8;border-radius:12px}.welcome .empty-icon{width:48px;height:48px;background:var(--muted);border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;margin-bottom:22px}.welcome h1{font-size:24px;margin:12px 0}.welcome p{font-size:14px;line-height:1.7;color:var(--muted-foreground);max-width:430px;margin-bottom:24px}.welcome .eyebrow{order:-1;margin-bottom:20px}
#project-view{padding:32px;max-width:1680px;margin:auto}.project-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.project-hero>div:first-child{min-width:0}.project-hero h1{margin:8px 0}.project-hero .eyebrow{font-size:11px}.project-hero #project-id{display:none}.project-hero .sep{display:none}.project-actions{display:flex;gap:8px;flex-shrink:0;padding-top:26px}.sub-link{font-size:12px;color:var(--muted-foreground);overflow-wrap:anywhere}.sub-link:hover{text-decoration:underline}.project-brief{font-size:13px;line-height:1.6;color:var(--muted-foreground);margin-top:8px;max-width:640px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:8px;margin:28px 0 24px;overflow:hidden}.stat{display:flex;align-items:center;gap:12px;padding:16px 20px;border-right:1px solid var(--border)}.stat:last-child{border:0}.stat span{font-size:23px;font-weight:600;letter-spacing:-.04em}.stat small{font-size:12px;color:var(--muted-foreground)}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start}.review-column,.details-column{min-width:0}.details-panel{border:1px solid var(--border);border-radius:8px;padding:20px;background:var(--background)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.section-title.tight{margin-top:28px}.video-shell{background:#18181b;aspect-ratio:16/9;border-radius:8px;overflow:hidden;display:grid;place-items:center;border:1px solid #27272a}.video-shell video{width:100%;height:100%;object-fit:contain}.empty-player{color:#fafafa;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:24px}.empty-player strong{font-size:14px;font-weight:500}.empty-player span{color:#a1a1aa;font-size:12px}.clapper{display:grid;place-items:center;width:44px;height:44px;border:1px solid #52525b;border-radius:50%;margin-bottom:8px;font-size:22px;color:#d4d4d8}.pill,.status{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:5px;padding:3px 8px;font-size:11px;font-weight:500;background:#fafafa;color:#52525b;line-height:1.5;white-space:nowrap}.pill.approved,.pill.published,.status[data-state=approved],.status[data-state=published]{color:#166534;border-color:#bbf7d0;background:#f0fdf4}.pill.changes_requested,.status[data-state=changes_requested]{color:#9a3412;border-color:#fed7aa;background:#fff7ed}.pill.in_review,.status[data-state=in_review]{color:#1d4ed8;border-color:#dbeafe;background:#eff6ff}.version-info{padding:18px 0 4px}.version-info h3{font-size:16px}.version-info p{font-size:12px;color:var(--muted-foreground);margin-top:6px}.video-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.review-column>p{margin-top:12px}.version-list,.plan-list{display:flex;flex-direction:column;gap:6px}.version-row,.plan-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:6px;padding:13px 14px;min-width:0;background:#fff}.version-row{width:100%;text-align:left}.version-row:hover,.plan-row:hover{background:#fafafa}.version-row.selected{border-color:#a1a1aa;background:#fafafa;box-shadow:inset 3px 0 0 #27272a}.version-row .name,.plan-row .name{font-weight:500;font-size:13px;overflow-wrap:anywhere}.version-row small,.plan-row small{display:block;font-size:11px;color:var(--muted-foreground);margin-top:4px}.plan-row .secondary{font-size:12px;white-space:nowrap}.empty-proof{font-size:12px;color:var(--muted-foreground);line-height:1.6;padding:12px 0}.proof{margin:12px 0}.proof-item{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #f0f0f1;font-size:12px}.proof-item:last-child{border:0}.proof-item strong{display:block;font-weight:500}.proof-item small{color:var(--muted-foreground);font-size:11px}.proof-icon{color:#16a34a}.evidence-details{border-top:1px solid var(--border);margin-top:24px;padding-top:16px}.evidence-details summary{cursor:pointer;font-weight:500;font-size:13px}.evidence-details>p{margin-top:12px}.comments{max-height:300px;overflow:auto}.comment{padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}.comment .byline{font-size:11px;color:var(--muted-foreground)}.comment p{margin-top:6px;line-height:1.6;overflow-wrap:anywhere}.timestamp{border:0;border-radius:4px;background:#f1f5f9;color:#334155;font:11px ui-monospace,SFMono-Regular,monospace;padding:3px 5px;cursor:pointer}.timestamp:hover{background:#e2e8f0}#feedback .secondary{margin-top:12px}#audience-filters{display:flex;gap:3px;padding:4px;background:var(--muted);border-radius:7px;margin:0 0 12px;width:fit-content;max-width:100%}#audience-filters button{background:transparent;border:0;box-shadow:none;padding:6px 9px;min-height:30px;color:var(--muted-foreground);font-size:11px}#audience-filters button[aria-pressed=true]{background:white;color:var(--foreground);box-shadow:0 1px 3px #00000015}#share-list:empty{display:none}#share-list p{font-size:11px;margin:8px 0}#share-list button{min-height:28px;padding:4px 8px;font-size:11px}#blocking-feedback p{font-size:12px;line-height:1.6;margin:12px 0}#job-status:empty{display:none}#job-status{margin-bottom:20px;border:1px solid var(--border);background:var(--muted);border-radius:6px;padding:12px 16px}#job-status p+p{margin-top:8px}
.toast{position:fixed;bottom:24px;right:24px;max-width:min(540px,calc(100vw - 32px));border:1px solid var(--border);border-radius:8px;background:var(--foreground);color:white;padding:14px 18px;box-shadow:0 8px 30px #0002;z-index:50;font-size:13px}.toast[hidden]{display:none}dialog{border:1px solid var(--border);border-radius:12px;padding:0;width:min(600px,calc(100vw - 32px));max-height:90dvh;box-shadow:0 20px 80px #0003;color:var(--foreground)}dialog::backdrop{background:#09090b80}dialog form{padding:24px}dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}dialog h2{font-size:20px;margin-top:5px}dialog p{font-size:13px;line-height:1.6}dialog header .icon-button{font-size:22px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.help{font-size:12px;line-height:1.6;margin-top:8px}.code-edit{font:12px/1.6 ui-monospace,SFMono-Regular,monospace;min-height:260px;white-space:pre}.form-error,#error{color:#b42318;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.form-error:empty{display:none}.form-error{padding-top:12px}
@media(min-width:1600px){.content-grid{grid-template-columns:minmax(0,1fr) 360px}}@media(max-width:1200px){.sidebar{width:200px;flex-basis:200px}#project-view{padding:24px}.topbar{padding:0 24px}.content-grid{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.details-panel{padding:16px}.stat{padding:14px;gap:8px}.project-hero{flex-direction:column;gap:16px}.project-actions{padding:0}}@media(max-width:1000px){.content-grid{grid-template-columns:1fr}.details-column{order:0}.stats{margin:24px 0}.welcome{margin:40px 24px}.stat{flex-direction:column;align-items:flex-start;gap:2px}}@media(max-width:680px){.sidebar{width:56px;flex-basis:56px;padding:16px 6px}.sidebar .brand{padding:0 6px;margin-bottom:24px}.brand-copy,.side-heading>span,.project-item .label,.sidebar-bottom .privacy{display:none}.side-heading{justify-content:center;padding:0 0 12px}.project-item{justify-content:center;padding:7px 0}.sidebar-bottom{padding:12px 0 0;text-align:center}.logout{font-size:10px;white-space:normal}.topbar{height:56px;padding:0 16px}.breadcrumb{gap:7px;font-size:11px}.breadcrumb>span:first-child,.breadcrumb .chevron{display:none}.topbar .secondary{font-size:10px;padding:7px;min-height:32px}#project-view{padding:24px 14px}.project-hero h1{font-size:23px;overflow-wrap:anywhere}.project-actions{flex-wrap:wrap}.project-actions button{font-size:11px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--border)}.stat{flex-direction:row;align-items:center;gap:10px;padding:12px}.stat small{font-size:10px}.stat span{font-size:20px}.section-title{flex-wrap:wrap}.version-row{align-items:flex-start;flex-direction:column;gap:8px}.welcome{padding:32px 20px;margin:30px 14px}.welcome h1{font-size:22px}.welcome p{font-size:13px}#audience-filters{flex-wrap:wrap}.video-actions button{font-size:11px;padding:7px 9px}.toast{bottom:16px;right:16px}.details-panel{padding:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.coverage-panel:not(:has(#coverage:empty)){margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:8px}.coverage-panel p{margin-top:8px}.coverage-panel button:disabled{opacity:.5}

body.hosted [data-record],body.hosted #inspect,body.hosted #health{display:none!important}
