:root{color-scheme:dark;--bg:#0b0c0e;--side:#0e1012;--card:#141619;--raised:#1b1e22;--line:#272b30;--line2:#343940;--text:#e8e9e7;--muted:#898e94;--sub:#60666e;--accent:#e4e9dc;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #9dac9c;outline-offset:2px}.shell{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;padding:29px 18px 18px;background:var(--side);border-right:1px solid #22262a;display:flex;flex-direction:column}.identity{display:flex;align-items:center;gap:12px;padding:0 11px 47px}.identity strong{display:block;letter-spacing:2.6px;font-size:18px;font-weight:720}.identity small{display:block;letter-spacing:1.5px;color:var(--sub);font-size:8px;margin-top:2px}.mark{border:1px solid #626c62;color:#d6e6d3;border-radius:11px;width:35px;height:35px;display:grid;place-items:center;font-size:20px}.sidebar-section,.micro-label{color:var(--sub);font-size:10px;letter-spacing:1.8px;font-weight:700}.sidebar-section{padding:0 12px;margin-bottom:12px}.nav{display:grid;gap:5px}.navbtn{background:none;color:#8f959b;border:0;width:100%;display:flex;align-items:center;gap:15px;padding:13px 14px;text-align:left;border-radius:9px}.navbtn span{font-size:21px;font-weight:400;line-height:1}.navbtn.active{color:#eef1ec;background:#23272b}.navbtn:hover{background:#1c2023;color:#f0f2ef}.sidebar-spacer{flex:1}.sidebar-footer{display:grid;gap:12px}.autosave{font-size:11px;color:#737e79;padding:0 12px}.save-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:#a9cfac;margin-right:8px}.topbar{min-height:107px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px clamp(22px,4vw,65px);border-bottom:1px solid #202427}.micro-label .slash{padding:0 9px;color:#45494e}.project-title{background:none;border:0;color:var(--text);font-size:21px;font-weight:650;letter-spacing:-.7px;display:block;width:min(560px,60vw);padding:3px 0;text-overflow:ellipsis}.project-meta{color:var(--sub);font-size:11px}.header-actions,.actionrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.control{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;border:1px solid var(--line2);background:#1b1e21;color:var(--text);font-weight:540;padding:10px 13px;min-height:39px;white-space:nowrap}.control:hover{background:#282c30;border-color:#565d64}.control.primary{background:#e6e9e2;border-color:#e6e9e2;color:#171a17;font-weight:650}.control.primary:hover{background:white}.control.subtle{background:transparent}.control.tiny{padding:6px 9px;min-height:30px;font-size:12px}.control.icononly{min-width:34px;padding:7px 10px}.control.warn{color:#f5aaa5}.page{padding:44px clamp(22px,4vw,65px) 100px;max-width:1710px;margin:auto}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading h1{font-size:clamp(24px,2.5vw,36px);line-height:1.2;font-weight:600;letter-spacing:-1.15px;margin:10px 0}.page-heading p{color:var(--muted);margin:0}.view-switch{display:flex;background:#15181b;padding:4px;border:1px solid var(--line);border-radius:10px;flex-shrink:0}.view-switch button{border:0;background:none;color:#858b90;padding:9px 13px;border-radius:7px}.view-switch button.active{color:#e9ede8;background:#2a2e32}.shot-layout{display:grid;grid-template-columns:minmax(330px,.95fr) minmax(390px,1.05fr);gap:20px;align-items:start}.list-tools{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;gap:10px}.muted{color:var(--muted)}.count{font-size:11px;letter-spacing:1.3px;color:var(--muted);font-weight:700}.shot-list{display:grid;gap:9px}.shot-row{display:grid;grid-template-columns:22px 94px minmax(0,1fr) 23px;align-items:center;gap:13px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 10px 10px 9px;text-align:left;cursor:pointer;min-height:94px;transition:background .15s,border-color .15s}.shot-row:hover{border-color:#454a50}.shot-row.selected{border-color:#a5aea2;background:#1c2021}.shot-row.dragging{opacity:.35}.handle{color:#697078;font-size:18px;text-align:center;cursor:grab;user-select:none}.shot-thumb{aspect-ratio:16/10;background:#22262a;border-radius:7px;display:grid;place-items:center;color:#646d75;font-size:24px;overflow:hidden}.shot-thumb img{width:100%;height:100%;object-fit:cover}.shot-row-title{font-size:13px;font-weight:620;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shot-row-description{font-size:11px;color:#879097;margin:5px 0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shot-row-meta{font-size:10px;color:#69727a;display:flex;gap:9px}.shot-row-arrow{color:#565c62}.list-footnote{margin-top:14px;color:#666e76;font-size:11px}.editor{border:1px solid #30353a;background:#15171a;border-radius:15px;overflow:hidden;position:sticky;top:20px}.editor-top{padding:19px 23px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.editor-title{font-size:17px;letter-spacing:-.4px;font-weight:620;margin:4px 0 0}.editor-content{padding:22px 23px 24px;display:grid;gap:20px}.field{display:grid;gap:8px;min-width:0}.field label{font-size:10px;font-weight:720;color:#949da2;letter-spacing:1.4px;text-transform:uppercase}.field input,.field textarea,.field select{width:100%;border:1px solid #363b41;border-radius:9px;background:#101215;color:var(--text);padding:11px 12px;outline:0;font-size:13px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#a4afa5}.field textarea{resize:vertical;min-height:93px;line-height:1.6}.field textarea.narration{min-height:116px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-note{font-size:11px;color:var(--sub);margin:-3px 0 0}.visual-preview{width:100%;aspect-ratio:16/8.7;background:#111417;border:1px dashed #40474c;border-radius:10px;display:grid;place-items:center;overflow:hidden}.visual-preview img{width:100%;height:100%;object-fit:contain}.visual-empty{text-align:center;color:#5f686e}.visual-empty span{font-size:31px;display:block;margin-bottom:4px}.visual-actions{display:flex;gap:8px;flex-wrap:wrap}.editor-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding:14px 23px}.smallhint{font-size:11px;color:var(--sub)}.empty{padding:90px 20px;border:1px dashed var(--line2);border-radius:14px;text-align:center;color:var(--muted)}.empty h3{color:var(--text);font-weight:600}.timeline-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.timeline-hint{color:var(--sub);font-size:12px}.timeline-wrap{position:relative;border:1px solid var(--line);border-radius:16px;background:var(--card);padding:23px 0 27px;overflow:hidden}.timeline-scroll{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-color:#464c50 transparent;padding:0 27px 24px;overscroll-behavior-x:contain}.timeline-card{flex:0 0 clamp(232px,25vw,330px);cursor:pointer;border:1px solid #383e42;border-radius:12px;background:#1c2023;overflow:hidden;scroll-snap-align:start;transition:.15s}.timeline-card:hover{border-color:#838d85}.timeline-card.selected{border-color:#ccd6c8}.timeline-frame{width:100%;aspect-ratio:16/9;background:#24292c;display:grid;place-items:center;color:#657078;font-size:28px;overflow:hidden}.timeline-frame img{height:100%;width:100%;object-fit:contain}.timeline-body{padding:16px}.timeline-number{display:flex;align-items:center;justify-content:space-between;color:#aab5ad;font-size:10px;letter-spacing:1px}.timeline-number span:last-child{color:#7a8288}.timeline-body h3{font-weight:620;font-size:15px;margin:10px 0 7px}.timeline-body p{color:#a1a8ac;font-size:12px;line-height:1.6;margin:0;min-height:57px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.timeline-body .narration-peek{margin-top:13px;border-top:1px solid #353b40;padding-top:11px;color:#7f888f;font-style:italic;min-height:52px;-webkit-line-clamp:2}.timeline-bottom{margin-top:18px;border-top:1px solid #2a3033;padding-top:16px;display:flex;align-items:center;justify-content:space-between;color:#8b959a;font-size:11px}.timeline-actions{padding:17px 25px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;justify-content:space-between}.timeline-total{color:var(--muted);font-size:12px}.timeline-total strong{color:var(--text)}.settings-layout{max-width:760px;display:grid;gap:15px}.settings-card{padding:24px;background:var(--card);border:1px solid var(--line);border-radius:13px}.settings-card h3{margin:0 0 8px;font-size:16px;font-weight:620}.settings-card p{color:var(--muted);font-size:12px;line-height:1.65}.settings-card .field{margin-top:15px}.settings-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.settings-card code{color:#b9c8bb}.modal-layer{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.74);display:grid;place-items:center;padding:18px}.modal{background:#171a1d;border:1px solid #42494b;border-radius:17px;padding:23px;width:min(100%,740px);max-height:92dvh;overflow:auto;box-shadow:0 24px 90px #000a}.modal h2{font-size:19px;font-weight:620;margin:0 0 5px}.modal p{color:#9da6aa;font-size:12px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.sketch-canvas{width:100%;aspect-ratio:16/9;touch-action:none;border-radius:10px;background:#f5f4ed;display:block;cursor:crosshair;margin-top:15px}.draw-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.swatch{width:29px;height:29px;border:2px solid #444;border-radius:50%}.swatch.active{outline:2px solid #e9efe3;outline-offset:3px}.draw-controls input{width:100px;accent-color:#bbc8bc}.toast{position:fixed;z-index:100;bottom:23px;right:25px;background:#333a37;color:#e9f3e7;border:1px solid #525e54;padding:12px 16px;border-radius:9px;box-shadow:0 12px 35px #0008;font-size:12px}.mobile-nav{display:none}@media(min-width:1440px){.shot-layout{grid-template-columns:minmax(420px,1fr) minmax(460px,1fr)}}@media(max-width:1030px){.shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:23px 10px}.identity{padding:0 0 40px;justify-content:center}.identity>div:last-child,.sidebar-section,.navbtn:not(.settingslink){font-size:0}.navbtn{justify-content:center;gap:0;padding:12px}.navbtn span{font-size:23px}.settingslink{font-size:0}.autosave{font-size:0;text-align:center}.shot-layout{grid-template-columns:minmax(0,1fr)}.editor{position:static}}@media(max-width:680px){.shell{display:block}.sidebar{display:none}.topbar{min-height:93px;padding:19px 20px;align-items:center}.project-title{width:min(56vw,380px);font-size:17px}.project-meta{font-size:10px}.micro-label{font-size:9px}.header-actions .desktop-only{display:none}.header-actions .control{padding:9px 10px}.header-actions .control span{display:none}.page{padding:30px 18px 105px}.page-heading{align-items:start;gap:15px;display:block;margin-bottom:24px}.page-heading h1{font-size:27px;letter-spacing:-.8px}.page-heading p{font-size:12px}.view-switch{margin-top:20px;width:max-content}.shot-layout{display:block}.shot-row{grid-template-columns:16px 82px minmax(0,1fr) 12px;gap:10px;min-height:85px}.shot-list{gap:8px}.editor{position:fixed;inset:0;z-index:25;overflow:auto;border:none;border-radius:0;background:#101214;padding-bottom:env(safe-area-inset-bottom)}.editor-top{position:sticky;top:0;z-index:1;background:#171a1d}.editor-content{padding:20px}.editor-bottom{padding:14px 20px}.editor[data-mobile-open="false"]{display:none}.timeline-card{flex-basis:min(78vw,310px)}.timeline-scroll{gap:12px;padding:0 17px 20px}.timeline-actions{padding:15px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;background:#14171af2;border-top:1px solid #33383c;padding:8px 15px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;backdrop-filter:blur(15px)}.mobile-nav button{border:0;background:none;color:#778086;font-size:21px;display:grid;justify-items:center;gap:0;min-width:70px}.mobile-nav button.active{color:#e7ede5}.mobile-nav small{font-size:10px}.settings-card{padding:20px}.modal{padding:18px}.form-row{gap:10px}}@media print{.sidebar,.topbar,.page-heading,.mobile-nav,.editor,.settings-layout,.timeline-actions,.list-tools,.shot-layout{display:none!important}body{background:white;color:black}.print-sheet{display:block!important}.print-item{break-inside:avoid;page-break-inside:avoid;border-bottom:1px solid #bbb;display:grid;grid-template-columns:42% 1fr;gap:16px;padding:13px 0}.print-item img{width:100%;aspect-ratio:16/9;object-fit:contain;border:1px solid #ccc}.print-title{font-size:22px;margin-bottom:12px}}.print-sheet{display:none}

/* v5: minimalist multi-project library */
.home-breadcrumb{color:#aeb8b2;background:transparent;border:0;padding:0 0 7px;text-align:left;font-size:12px}.home-breadcrumb:hover,.back-library:hover{color:white}.back-library{margin:0 0 22px;color:#aeb8b2}.home-view .project-title,.home-view .project-meta,.home-view .topbar .micro-label,.home-view .page-heading .view-switch{display:none}.home-view .topbar{min-height:62px;border-bottom-color:transparent}.home-view .page{padding-top:22px}.home-view .top-left::after{content:'FRAME / STUDIO';color:#a2aba9;letter-spacing:2px;font-size:10px;font-weight:700}.home-view .mobile-nav button[data-view]{display:none}.home-view #mobileProjects{color:#e7ede5}.home-view .sidebar .navbtn[data-view]{opacity:.55}.home-view .sidebar .settingslink{opacity:.55}
.library-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 24px}.library-head p{color:#858e92;font-size:12px;margin:8px 0 0}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:19px;align-items:stretch}.project-card,.project-new-tile{border:1px solid #2b3034;background:#14171a;border-radius:15px;overflow:hidden;text-align:left;transition:border-color .2s,transform .2s}.project-card{cursor:pointer}.project-card:hover{border-color:#8a958c;transform:translateY(-2px)}.project-cover{aspect-ratio:16/9;background:linear-gradient(145deg,#1e2327,#111314);position:relative;overflow:hidden}.project-cover img{width:100%;height:100%;object-fit:cover}.project-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:radial-gradient(ellipse at 50% 40%,#242a2c,#111315 67%)}.project-placeholder span{font-size:53px;line-height:1;color:#bdc9c3;font-weight:200}.project-placeholder small{font-size:9px;letter-spacing:2.3px;color:#66716e}.project-open{position:absolute;bottom:12px;right:13px;padding:5px 9px;border-radius:6px;background:#0e1111b9;color:#e6efe7;font-size:10px}.project-card-body{padding:19px}.project-card-body h3{font-size:17px;letter-spacing:-.4px;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card-body p{font-size:11px;color:#a3acae;margin:0}.separator{padding:0 5px;color:#52595e}.project-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:22px;gap:9px}.project-foot>span{font-size:10px;color:#777f84}.project-more{display:flex;flex-wrap:wrap;gap:5px}.project-more .control{font-size:10px;padding:5px 7px}.project-new-tile{min-height:335px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border-style:dashed;color:#d6ded7;cursor:pointer}.project-new-tile:hover{background:#1c2022;border-color:#bbc6bb}.project-new-tile>span{border:1px solid #464f4c;border-radius:50%;font-size:30px;width:60px;height:60px;display:grid;place-items:center;margin-bottom:15px}.project-new-tile strong{font-size:14px}.project-new-tile small,.library-tip,.library-empty{font-size:11px;color:#7b8587}.library-tip{margin:25px 0}.home-view .topbar #addShot[hidden],.home-view .topbar #exportQuick[hidden],.home-view .topbar #homeButton[hidden]{display:none}
@media(max-width:680px){.home-view .topbar{min-height:60px;padding:14px 20px}.home-view .page{padding:15px 18px 110px}.home-view .page-heading{margin-bottom:20px}.library-head{margin:0 0 18px}.library-head .control{font-size:12px;white-space:nowrap}.project-grid{grid-template-columns:1fr;gap:13px}.project-card-body{padding:16px}.project-cover{aspect-ratio:16/7.4}.project-new-tile{min-height:170px}.project-foot{margin-top:13px}.project-more .control{font-size:10px}.mobile-nav button{min-width:58px}.home-view .page-heading h1{font-size:31px}}

.editor-projects{display:none}@media(max-width:680px){.editor-projects{display:inline-flex}.editor-top{padding:15px 12px}.editor-top .actionrow{gap:5px}.editor-top .actionrow .control{padding:7px}}
/* FRAME v6 — one-screen workspace: scrolling is confined to the content collection. */
html,body{height:100%;overscroll-behavior:none}
body{overflow:hidden}
.shell{height:100dvh;min-height:0;overflow:hidden}
.main{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.topbar{flex:0 0 auto;min-height:82px;padding-top:12px;padding-bottom:12px}
.page{flex:1;min-height:0;width:100%;max-width:none;padding:18px clamp(18px,3vw,42px) 18px;display:flex;flex-direction:column;overflow:hidden}
.page-heading{flex:0 0 auto;margin-bottom:13px;align-items:center}
.page-heading h1{font-size:clamp(21px,2vw,28px);margin:5px 0}
.page-heading p{font-size:11px}
#workspace{flex:1;min-height:0;overflow:hidden}
.shot-layout{height:100%;min-height:0;align-items:stretch;grid-template-columns:minmax(300px,.90fr) minmax(420px,1.10fr)}
.shot-layout>section:first-child{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.list-tools{flex:0 0 auto}
.shot-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:1px 4px 4px 0;scrollbar-width:thin}
.shot-row{min-height:78px;grid-template-columns:18px 78px minmax(0,1fr) 18px;padding:7px;gap:10px}
.list-footnote{font-size:10px;margin:9px 0 0}
.editor{position:relative;top:auto;height:100%;min-height:0;display:flex;flex-direction:column}
.editor-top{flex:0 0 auto;padding:10px 16px}
.editor-title{font-size:15px;margin-top:2px}
.editor-content{padding:12px 16px;gap:10px;min-height:0;flex:1;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto minmax(0,1fr) auto;align-content:stretch}
.editor-content>.field:first-child{grid-column:1/-1}
.editor-content>.field:nth-child(2){grid-column:1;grid-row:2}
.editor-content>.form-row{grid-column:1/-1;grid-row:3}
.editor-content>.field:nth-child(4){grid-column:2;grid-row:2}
.editor-content>.field:nth-child(5){grid-column:1/-1;grid-row:4;min-height:0;display:flex;flex-direction:column}
.editor-content>details{grid-column:1/-1;grid-row:5}
.field{gap:4px;min-height:0}
.field label{font-size:9px}
.field input,.field select{padding:8px 10px;min-height:34px}
.field textarea,.field textarea.narration{min-height:0;height:100%;resize:none;padding:9px 10px;line-height:1.45}
.field-caption{display:flex;justify-content:space-between;align-items:center;min-height:22px}
.expand-text{border:1px solid #40474c;border-radius:6px;background:#24292b;color:#d3ddd4;font-size:18px;line-height:1;width:28px;height:24px;display:grid;place-items:center}
.expand-text:hover{background:#333b3e}
.visual-preview{flex:1;min-height:0;aspect-ratio:auto}
.visual-actions{flex:0 0 auto;gap:5px}
.visual-actions .control{min-height:26px;font-size:10px;padding:4px 8px}
.editor-bottom{flex:0 0 auto;padding:9px 16px;gap:8px}
.editor-utilities{display:flex;gap:6px}
.save-timeline{min-height:35px;font-size:12px}
.editor-content details{font-size:11px}
.editor-content details[open]{position:absolute;inset:48px 0 57px;background:#171a1d;padding:15px;z-index:4;overflow:auto}
/* Canvas & timeline stay inside the viewport. */
#workspace:has(.timeline-wrap){display:flex;flex-direction:column;gap:9px}
.timeline-header{flex:0 0 auto;margin-bottom:0}
.timeline-wrap{flex:1;min-height:0;padding:12px 0;display:flex;flex-direction:column}
.timeline-scroll{flex:1;min-height:0;align-items:stretch;padding:0 15px 10px}
.timeline-card{flex:0 0 clamp(220px,26vw,335px);display:flex;flex-direction:column;min-height:0}
.timeline-frame{flex:0 0 auto}
.timeline-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:11px}
.timeline-body h3{margin:7px 0 5px}
.timeline-body p{min-height:0;line-height:1.4}
.timeline-body .narration-peek{min-height:0;margin-top:8px;padding-top:8px}
.timeline-bottom{margin-top:auto;padding-top:8px}
.timeline-actions{flex:0 0 auto;padding:10px 16px 0}
#workspace:has(.settings-layout),#workspace.projects-workspace{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.modal-layer.fulltext-layer{z-index:80;padding:0;background:#0c0e10}
.fulltext-layer .modal{height:100dvh;width:100vw;max-height:none;max-width:none;border:0;border-radius:0;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));display:flex;flex-direction:column;overflow:hidden;gap:14px;background:#101315}
.fulltext-head,.fulltext-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.fulltext-head h2{margin:5px 0 0}.fulltext-foot span{font-size:11px;color:#7d8986}
.expanded-input{flex:1;min-height:0;width:100%;border:1px solid #323a3d;border-radius:12px;background:#181c1e;color:#f0f1ed;padding:19px;resize:none;font-size:17px;line-height:1.75;outline:0}
@media(max-width:1030px) and (min-width:681px){.shot-layout{grid-template-columns:minmax(230px,.8fr) minmax(350px,1.2fr)}.editor-content{padding:9px 11px;gap:8px}.editor-top{padding:8px 11px}}
@media(max-width:680px){
 .shell{height:100dvh}.topbar{min-height:66px;padding:8px 15px}.page{padding:11px 13px calc(76px + env(safe-area-inset-bottom));height:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.page-heading h1{font-size:20px;margin:3px 0}.page-heading p{display:none}.view-switch{margin-top:0}.view-switch button{padding:7px;font-size:12px}.view-switch button span{display:none}
 .shot-layout{display:block;height:100%;min-height:0}.shot-layout>section:first-child{height:100%}.shot-list{flex:1;min-height:0}.shot-row{grid-template-columns:14px 73px minmax(0,1fr) 12px;min-height:75px}.list-footnote{flex:0 0 auto;margin:5px 0}
 .editor{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;height:100dvh;padding:0;overflow:hidden;border:0;border-radius:0;background:#101315}
 .editor-top{padding:10px 14px;position:relative;top:auto;z-index:auto}.editor-top .actionrow{gap:4px}.editor-top .actionrow .control{font-size:11px;padding:5px 7px;min-height:29px}.editor-projects{display:none}
 .editor-content{padding:10px 13px;gap:8px;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto minmax(0,1.15fr) auto}
 .editor-content>.field:nth-child(2){grid-column:1;grid-row:2}.editor-content>.field:nth-child(4){grid-column:2;grid-row:2}
 .editor-content>.field:nth-child(5){grid-column:1/-1;grid-row:4}.editor-content>.form-row{grid-column:1/-1;grid-row:3}
 .field label{font-size:9px;letter-spacing:.7px}.field input,.field select{font-size:12px;padding:6px 8px;min-height:31px}.field textarea,.field textarea.narration{font-size:12px;line-height:1.4;padding:8px}
 .visual-actions{gap:6px}.visual-actions .control{font-size:10px;min-height:26px;padding:4px 7px}
 .editor-bottom{padding:9px 13px calc(9px + env(safe-area-inset-bottom));display:flex;flex-direction:row;justify-content:space-between}.editor-utilities .control{font-size:10px;padding:5px 7px;min-height:30px}.save-timeline{font-size:11px;padding:7px 10px;min-height:34px}
 .timeline-header{margin:0}.timeline-wrap{padding:11px 0;min-height:0}.timeline-scroll{padding:0 12px 8px;overflow-x:auto;overflow-y:hidden}.timeline-card{flex-basis:min(78vw,310px)}.timeline-body{padding:11px}.timeline-actions{padding:8px 10px 0}
 .project-grid{grid-template-columns:1fr;gap:10px}.project-cover{aspect-ratio:16/5.3}.project-card-body{padding:12px}.project-foot{margin-top:8px}.project-new-tile{min-height:125px}.library-head{margin:0 0 12px}.library-head p{display:none}
 .mobile-nav{padding:6px 10px calc(6px + env(safe-area-inset-bottom))}
 .fulltext-layer .modal{padding:calc(12px + env(safe-area-inset-top)) 13px calc(12px + env(safe-area-inset-bottom))}.expanded-input{font-size:16px;padding:14px}.fulltext-head h2{font-size:18px}
}
@media(max-height:690px){.topbar{min-height:55px}.page{padding-top:7px}.page-heading{margin-bottom:7px}.page-heading h1{font-size:19px}.editor-content{gap:5px;padding-top:5px;padding-bottom:5px}.editor-top{padding-top:7px;padding-bottom:7px}.visual-actions .control{padding:3px 6px}.editor-bottom{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}}
@media print{html,body,.shell,.main,.page,#workspace{height:auto!important;overflow:visible!important}.print-sheet{display:block!important}}

/* FRAME v7 — compact grouping / production status */
.scene-group-heading{display:flex;align-items:center;gap:6px;min-width:0;padding:4px 0}
.scene-group-heading>button:first-child{display:flex;align-items:center;gap:8px;background:transparent;color:#e0e5e1;border:0;padding:5px 7px;text-align:left;min-width:0;font-size:11px;cursor:pointer}
.scene-group-heading strong{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-count{color:#82908b;font-size:10px;white-space:nowrap}
.group-chevron{color:#a2c0b4}.group-add{margin-left:auto!important}.shot-list>.scene-group-heading{margin:8px 4px 1px;border-bottom:1px solid #303739}
.status-pill{border-radius:12px;padding:2px 6px;background:#30373a;color:#bac4c1;font-size:10px}.status-filmed{background:#243c37;color:#a8d8c9}.status-complete{background:#24452e;color:#b9e6bc}
.grouping-row{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.timeline-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.timeline-quickadd{font-size:11px;min-height:32px;padding:5px 10px}
.timeline-scroll{align-items:stretch}.timeline-group{flex:0 0 auto;display:flex;flex-direction:column;min-width:0;max-height:100%}.timeline-group-bar{min-height:35px}.timeline-group-cards{flex:1;display:flex;gap:13px;min-height:0}.timeline-group-cards>.timeline-card{height:100%;position:relative}.timeline-collapsed{height:100%;min-width:130px;padding:20px 14px;display:flex;align-items:center;justify-content:center;color:#88938e;font-size:11px;border:1px dashed #3b4545;border-radius:12px}
.timeline-grip{position:absolute;top:8px;right:8px;z-index:3;background:#141819e8;color:#c8d5ce;border:1px solid #44514d;border-radius:8px;width:30px;height:30px;font-size:19px;cursor:grab;touch-action:none}.timeline-grip:active{cursor:grabbing}.timeline-card.is-dragging{opacity:.55}.timeline-card.drop-target{outline:2px solid #9ed7ba;outline-offset:2px}.timeline-help{font-size:10px;color:#818d88;margin:5px 0 0}
@media(min-width:681px){.editor-content{grid-template-rows:auto auto minmax(0,1fr) auto minmax(0,1fr) auto}.editor-content>.grouping-row{grid-row:2}.editor-content>.field:nth-child(3){grid-column:1;grid-row:3}.editor-content>.field:nth-child(5){grid-column:2;grid-row:3}.editor-content>.form-row:not(.grouping-row){grid-row:4}.editor-content>.field:nth-child(6){grid-column:1/-1;grid-row:5}.editor-content>details{grid-row:6}}
@media(max-width:680px){.editor-top .shot-prev,.editor-top .shot-next{min-width:27px!important;font-size:18px!important}.editor-content{grid-template-rows:auto auto minmax(0,1fr) auto minmax(0,1.15fr) auto!important}.editor-content>.grouping-row{grid-column:1/-1;grid-row:2}.editor-content>.field:nth-child(3){grid-column:1;grid-row:3}.editor-content>.field:nth-child(5){grid-column:2;grid-row:3}.editor-content>.form-row:not(.grouping-row){grid-column:1/-1;grid-row:4}.editor-content>.field:nth-child(6){grid-column:1/-1;grid-row:5}.editor-content>details{grid-row:6}.grouping-row .field input,.grouping-row .field select{min-height:27px;padding:3px 6px}.grouping-row .field label{font-size:9px}.timeline-group-cards>.timeline-card{flex-basis:min(78vw,310px)}.timeline-help{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-height:660px){.editor-content{gap:4px}.grouping-row .field label{display:none}.grouping-row .field input,.grouping-row .field select{min-height:25px}.editor-top{padding-top:4px;padding-bottom:4px}}
/* FRAME v8: compact, one-screen progress filters */
.status-filter{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none;min-width:0;flex:0 0 auto;padding:1px 0 9px;margin-top:7px;overscroll-behavior-x:contain}
.status-filter::-webkit-scrollbar{display:none}
.filter-chip{white-space:nowrap;display:inline-flex;align-items:center;gap:7px;border:1px solid #30363a;background:#181c1e;color:#929b9e;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:600;line-height:1.1;cursor:pointer;min-height:32px}
.filter-chip span{color:#778180;font-size:10px;font-variant-numeric:tabular-nums}
.filter-chip.active{background:#303933;border-color:#9baea0;color:#edf6ec}
.filter-chip.active span{color:#c4d6c6}
.filter-chip:focus-visible{outline:2px solid #bed5bb;outline-offset:2px}
.filter-empty{flex:0 0 auto;align-self:center;text-align:center;margin:auto;min-width:220px;max-width:100%;padding:20px;color:#bac3c0;font-size:12px}
.filter-empty strong{display:block;font-size:13px;color:#edf1ed;margin-bottom:6px}
.filter-empty p{margin:0 0 12px;color:#858d8a}
#shotList .filter-empty{padding:26px 10px}
.timeline-scroll>.filter-empty{margin:15px auto 20px}
@media(max-width:680px){.status-filter{gap:5px;margin-top:4px;padding-bottom:7px}.filter-chip{padding:7px 9px;font-size:10px;min-height:32px}.filter-chip span{font-size:10px}.timeline-scroll>.filter-empty{min-width:65vw}}

/* FRAME v9 — compact production tools */
.history-actions{flex:0 0 auto;display:flex;gap:7px;justify-content:flex-end;margin-bottom:5px}.history-actions button:disabled{opacity:.35;cursor:default}
.frame-search{flex:0 0 auto;margin:5px 0}.frame-search input{width:100%;border:1px solid #2b3035;background:#161a1d;border-radius:8px;color:#d7dfda;padding:7px 11px;font-size:11px;outline:none}.frame-search input:focus{border-color:#64776e}
.timing-hint{font-size:10px;font-variant-numeric:tabular-nums;color:#9dbbab;margin-left:auto;white-space:nowrap}.field-caption:has(.timing-hint){gap:6px}.field-caption:has(.timing-hint) label{margin-right:auto}.field-caption .expand-text{flex:0 0 auto}
.reference-strip{display:flex;max-width:100%;overflow-x:auto;gap:6px;padding-top:4px}.reference-item{position:relative;flex:0 0 58px}.reference-item>button:first-child{padding:0;background:none;border:1px solid #373f41;border-radius:6px;overflow:hidden;width:58px;height:36px}.reference-item img{width:100%;height:100%;object-fit:cover}.reference-remove{position:absolute;top:-4px;right:-3px;border-radius:50%;border:0;background:#414a4b;color:white;font-size:12px;width:17px;height:17px}.reference-item small{display:block;font-size:8px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:#98a09b}
.frame-extra{font-size:11px}.frame-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.scene-group-heading .group-color-dot{width:7px;height:7px;border-radius:100%;display:inline-block;margin:0 4px}.group-color-dot.slate{background:#87908d}.group-color-dot.blue{background:#789bc3}.group-color-dot.amber{background:#d6a76d}.group-color-dot.rose{background:#ce8e9a}.group-color-dot.green{background:#83af92}.group-color-dot.violet{background:#aa98cb}
.timeline-toolbar{display:flex;align-items:center;gap:8px}.zoom-label{font-size:10px;color:#969f99;display:flex;align-items:center;gap:4px}.zoom-label select{font-size:11px;color:#d9e1d9;background:#1b2122;border:1px solid #3a4245;padding:6px;border-radius:7px}.timeline-scroll.timeline-compact .timeline-card{flex-basis:175px}.timeline-scroll.timeline-medium .timeline-card{flex-basis:clamp(220px,26vw,335px)}.timeline-scroll.timeline-large .timeline-card{flex-basis:clamp(310px,38vw,480px)}.timeline-transition{font-size:10px;color:#a2bea9;margin-top:5px}.timeline-frame{aspect-ratio:var(--frame-aspect,16 / 9);max-height:50%;object-fit:contain}.timeline-frame img{width:100%;height:100%;object-fit:contain}.visual-preview{aspect-ratio:var(--frame-aspect,16 / 9)}
.anim-layer{z-index:85;background:#080a0bef}.anim-layer .modal{max-width:980px;width:min(95vw,980px);max-height:95dvh;background:#0f1315;padding:16px}.animatic{display:flex;flex-direction:column;gap:12px;max-height:90dvh}.anim-top,.anim-controls{display:flex;align-items:center;gap:10px}.anim-top button{margin-left:auto}.anim-top span{color:#929d98;font-size:11px}.anim-visual{min-height:0;display:flex;align-items:center;justify-content:center;background:#080a0a;border-radius:10px;overflow:hidden;flex:1}.anim-visual img{max-height:56dvh;max-width:100%;object-fit:contain}.anim-placeholder{min-height:30dvh;display:grid;place-items:center;text-align:center;color:#dce3df;padding:28px}.anim-script{text-align:center;color:#e1e7e2;font-size:15px;line-height:1.5;max-height:22vh;overflow:auto}.anim-controls{justify-content:center}.anim-controls span{color:#a3b5a6;font-size:12px}
.print-timeline{display:none}@media print{body.printing-timeline .print-timeline{display:block!important;color:#111;font-family:Arial,sans-serif}body.printing-timeline .shell,body.printing-timeline .print-sheet{display:none!important}body.printing-timeline .timeline-print-page{break-after:page;page-break-after:always}body.printing-timeline .timeline-print-page:last-child{break-after:auto}.timeline-print-page h2{font-size:17pt}.timeline-print-page h2 small{float:right;font-size:9pt;color:#555}.timeline-print-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.timeline-print-grid article{border:1px solid #bbb;padding:8px;break-inside:avoid;min-height:220px}.timeline-print-visual{height:105px;display:grid;place-items:center;background:#eee}.timeline-print-visual img{width:100%;height:100%;object-fit:contain}.timeline-print-grid article h3{font-size:10pt;margin:8px 0}.timeline-print-grid article p{font-size:8pt;line-height:1.3;overflow-wrap:anywhere;margin:7px 0}@page{size:landscape;margin:12mm}}
@media(max-width:680px){.history-actions{margin-bottom:2px}.history-actions button{font-size:10px}.timeline-toolbar{gap:5px}.timeline-toolbar .control{font-size:10px;padding:6px}.zoom-label{font-size:0}.zoom-label select{font-size:10px;max-width:70px}.frame-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.timing-hint{font-size:9px}.anim-layer .modal{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.anim-visual img{max-height:57dvh}}

/* FRAME v10: accessible scrolling + vertical editor */
html,body{overscroll-behavior-y:auto}
.main,.page,#workspace,.shot-layout,.editor{min-height:0}
.page{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
#workspace{overflow-y:auto;overflow-x:hidden;min-height:0;-webkit-overflow-scrolling:touch}
#workspace:has(.shot-layout){overflow:hidden}
.shot-layout{min-height:0}
.shot-layout>section:first-child{min-height:0}
.shot-list{overflow-y:auto!important;overflow-x:hidden;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.editor{overflow:hidden;min-height:0;display:flex;flex-direction:column}
.editor-content,.editor-content:has(.field){display:flex!important;flex:1!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;gap:14px!important;grid-template-columns:none!important;grid-template-rows:none!important;align-content:initial!important;padding:15px 17px 26px!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.editor-content>.field,.editor-content>.form-row,.editor-content>details{grid-column:auto!important;grid-row:auto!important;flex:0 0 auto!important;width:100%!important;min-height:0!important;display:block}
.editor-content .field{display:flex!important;flex-direction:column!important;gap:6px}
.editor-content .form-row,.editor-content .grouping-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.editor-content textarea,.editor-content textarea.narration{height:110px!important;min-height:100px!important;max-height:260px!important;resize:vertical!important;flex:0 0 auto!important}
.editor-content .visual-preview{aspect-ratio:16/9!important;max-height:245px!important;min-height:130px!important;height:auto!important;flex:0 0 auto!important;overflow:hidden}
.editor-content .visual-preview img{width:100%;height:100%;object-fit:contain}
.editor-content .visual-actions{display:flex;flex-wrap:wrap;gap:7px}
.editor-content details[open]{position:static!important;inset:auto!important;overflow:visible!important;background:transparent!important;padding:0!important;z-index:auto!important}
.editor-content .frame-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.editor-bottom{position:relative;z-index:2;flex:0 0 auto;background:#15191b;border-top:1px solid #2a3032;padding:10px 14px max(10px,env(safe-area-inset-bottom))!important}
.save-timeline{white-space:normal;text-align:center;line-height:1.3}
.shot-row .shot-grip{cursor:grab;touch-action:none;background:transparent;border:0;color:#aab6ae;font-size:21px;padding:0 1px;align-self:stretch}
.shot-row .shot-grip:active{cursor:grabbing}
.shot-row.drop-target{border-color:#aac5b3!important;background:#26322e!important;box-shadow:inset 0 0 0 2px #87a897}
.project-more{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.project-foot{align-items:flex-start;gap:6px}
/* Immersive storyboard video player */
.video-player-layer{position:fixed;inset:0;z-index:110;background:#07090bf7;padding:0!important;display:flex;align-items:stretch;justify-content:center}
.video-player-layer .modal{height:100dvh!important;max-height:100dvh!important;width:min(100%,1300px)!important;max-width:none!important;margin:0!important;padding:0!important;border:none!important;border-radius:0!important;background:#0e1113!important;overflow:hidden!important}
.vplayer{height:100%;min-height:0;display:flex;flex-direction:column}
.vp-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;border-bottom:1px solid #283034}
.vp-header strong{font-size:15px}.vp-head-actions{display:flex;align-items:center;gap:12px}.vp-head-actions span{font-size:12px;color:#b7c1b8}
.vp-scroll{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.75fr);gap:18px;padding:20px;overflow-y:auto;overscroll-behavior:contain}
.vp-picture{min-height:200px;height:100%;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#080a0c;overflow:hidden}
.vp-picture img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.vp-no-image{display:flex;flex-direction:column;gap:12px;align-items:center;color:#65736b;font-size:60px}.vp-no-image small{font-size:12px}
.vp-info{align-self:start;display:flex;flex-direction:column;gap:12px;min-width:0;overflow-wrap:anywhere}
.vp-label{font-size:11px;letter-spacing:.15em;color:#a6baa9}.vp-info h2{font-size:clamp(19px,2.1vw,30px);margin:0}.vp-data{font-size:12px;color:#b8c8bc;padding-bottom:12px;border-bottom:1px solid #30383a}
.vp-info section{padding:8px 0}.vp-info section label{color:#82948d;font-size:10px;letter-spacing:.12em}.vp-info section p{white-space:pre-wrap;font-size:14px;line-height:1.65;color:#edf1ed;margin:10px 0}
.vp-controls{flex:0 0 auto;display:flex;flex-direction:column;gap:10px;padding:14px 22px max(15px,env(safe-area-inset-bottom));border-top:1px solid #283034;background:#111517}
#vpProgress{width:100%;accent-color:#b3c9b8}.vp-control-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.vp-control-row span{margin-left:auto;color:#bac9bb;font-variant-numeric:tabular-nums;font-size:12px}
@media(max-width:950px){.vp-scroll{display:flex;flex-direction:column;gap:14px}.vp-picture{height:40dvh;min-height:155px;flex:0 0 auto}.vp-info{width:100%}}
@media(max-width:680px){
 .shell{height:100dvh!important}.main{height:100%;min-height:0;overflow:hidden!important}
 .page{padding:10px 12px calc(77px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;min-height:0}
 #workspace{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
 .shot-layout{height:100%;min-height:0}.shot-layout>section:first-child{height:100%;min-height:0;overflow:hidden}
 .editor{position:fixed!important;inset:0!important;height:100dvh!important;z-index:50!important;overflow:hidden!important}
 .editor-top{padding:calc(12px + env(safe-area-inset-top)) 12px 10px!important}
 .editor-content{padding:12px 14px 35px!important;gap:14px!important}
 .editor-content .visual-preview{height:160px!important;min-height:120px!important;max-height:180px!important}
 .editor-content textarea,.editor-content textarea.narration{height:100px!important;min-height:90px!important}
 .editor-content .field label{font-size:10px}.editor-content .field input,.editor-content .field select{min-height:40px;font-size:14px}
 .editor-bottom{padding:9px 12px calc(10px + env(safe-area-inset-bottom))!important}
 .editor-utilities .control{min-height:34px!important}
 .video-player-layer .modal{width:100%!important;height:100dvh!important}.vp-header{padding:calc(12px + env(safe-area-inset-top)) 14px 12px}
 .vp-scroll{padding:12px 14px 20px;gap:12px;overflow-y:auto!important}.vp-picture{height:34dvh;min-height:130px}
 .vp-info section p{font-size:13px}.vp-controls{padding:10px 12px calc(12px + env(safe-area-inset-bottom))}
 .vp-control-row .control{font-size:11px;padding:8px 10px}.vp-control-row span{width:100%;text-align:center;margin:0}
 .project-more .control{font-size:10px;padding:5px}
}
@media(max-width:680px){
 .editor-bottom{display:flex!important;flex-direction:column-reverse!important;align-items:stretch!important;gap:7px!important}
 .editor-bottom .save-timeline{display:block;width:100%;min-height:43px;font-size:12px!important;padding:10px 12px!important}
 .editor-bottom .editor-utilities{display:flex;justify-content:center;gap:8px}
 .editor-bottom .editor-utilities button{flex:1;max-width:180px;min-height:28px!important}
 .vp-header>div:first-child{min-width:0;flex:1}.vp-header strong{display:block;max-width:100%;line-height:1.35;font-size:14px}
 .vp-head-actions{flex:0 0 auto;gap:7px}.vp-head-actions span{white-space:nowrap}
}
