.nav-row{display:flex;align-items:center;min-width:0;border-radius:10px}.nav-row .nav-item{min-width:0;margin-bottom:5px;white-space:normal}.nav-row .nav-item svg{flex:none}.menu-edit{text-align:left;margin:10px 12px 0;min-height:40px;color:var(--teal-dark)}.menu-handle{flex:none;width:32px;height:44px;padding:6px;border-radius:7px;color:var(--teal-dark);cursor:grab;touch-action:none}.menu-handle svg{width:20px;height:24px;fill:currentColor}.menu-handle:hover,.nav-row.moving{background:var(--soft)}.menu-handle:active{cursor:grabbing}.menu-help{margin:10px 12px;color:var(--ink)}.nav-row.moving{outline:1px dashed var(--teal)}
.studio{--studio-secondary:#506760}.studio button:focus-visible,.menu-handle:focus-visible{outline:2px solid var(--teal);outline-offset:3px}.studio-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:28px}.studio-heading h1{margin-top:0}.studio-heading p{color:var(--studio-secondary);font-size:14px;margin:12px 0 0}.studio-badge{color:var(--teal-dark);background:var(--soft);font-size:12px;margin-top:8px}.studio-workspace{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.65fr);gap:28px}.studio-script{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:19px;align-self:start}.studio-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.studio-section-title h2{margin:0}.studio-section-title>span{color:var(--studio-secondary)}.studio label{font-size:13px;color:var(--ink)}.studio textarea{font:inherit;font-size:14px;line-height:1.65;border:1px solid var(--line);padding:13px;border-radius:9px;resize:vertical;min-height:220px;background:white;color:var(--ink);width:100%;outline-offset:4px}.studio textarea:focus{border-color:var(--teal)}.studio input,.studio select{font-size:13px;width:100%;min-height:44px}.studio input::placeholder{color:var(--studio-secondary);opacity:1}.studio-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.studio-check{flex-direction:row;align-items:center;font-weight:400}.studio-check input{width:17px;min-height:17px;margin:0}.studio #studioFeedback{margin:0;color:var(--studio-secondary)}.studio-composition{min-width:0;padding-top:6px}.studio-preview-row{display:flex;align-items:center;gap:25px;margin:23px 0}.studio-frame{position:relative;aspect-ratio:9/16;width:155px;flex:none;background:var(--ink);border-radius:12px;overflow:hidden;color:white;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px}.studio-frame.landscape{width:240px}.studio-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.studio-frame>p{position:absolute;bottom:36px;left:10px;right:10px;font-size:12px;line-height:1.45;background:#163532db;padding:8px;margin:0;border-radius:5px;max-height:80px;overflow:auto}.studio-frame>p:empty{display:none}.studio-frame-note{position:absolute;bottom:0;left:0;right:0;background:var(--ink);padding:8px;font-size:10px}.studio-preview-copy{min-width:0}.studio-preview-copy h3{margin:16px 0 9px;font-size:16px}.studio-preview-copy>p{font-size:14px;line-height:1.6;margin:0 0 12px}.studio-preview-copy .small{font-size:12px;color:var(--studio-secondary);overflow-wrap:anywhere}.studio-preview-copy .pill{color:var(--studio-secondary)}.studio-scenes{border-top:1px solid var(--line)}.studio-scene{padding:12px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.7fr);gap:15px;border-bottom:1px solid var(--line)}.studio-scene.active{background:var(--soft)}.studio-scene-focus{text-align:left;display:flex;flex-direction:column;gap:5px;line-height:1.5;font-size:13px;padding:5px 8px}.studio-scene-time{font-size:11px;color:var(--teal-dark);font-variant-numeric:tabular-nums}.studio-scene-source{font-size:11px!important;gap:4px;justify-content:center;padding-right:8px}.studio-scene-source select{font-size:11px;max-width:100%;text-overflow:ellipsis;padding:8px;min-height:38px}.studio-timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}.studio-timeline-heading h3{margin:0}.studio-timeline-heading span{color:var(--studio-secondary)}.studio-timeline{display:flex;gap:4px;overflow-x:auto;padding:3px}.studio-timeline-scene{flex:1;min-width:76px;min-height:54px;background:var(--soft);border:1px solid var(--line);border-radius:7px;text-align:left;padding:8px 10px;font-size:12px;color:var(--teal-dark)}.studio-timeline-scene:nth-child(even){background:var(--warm);color:var(--ink)}.studio-timeline-scene small{display:block;margin-top:4px;font-variant-numeric:tabular-nums}.studio-render-row{display:flex;align-items:center;gap:18px;margin-top:16px}.studio-render-row p{color:var(--studio-secondary);margin:0}.studio button:disabled{cursor:not-allowed}.studio-render-row .secondary{font-size:12px}.studio-sources{border-top:1px solid var(--line);margin-top:35px;padding-top:28px}.studio-sources .studio-section-title p{color:var(--studio-secondary);margin:8px 0 0}.studio-source-filters{display:grid;grid-template-columns:minmax(150px,1.6fr) 1fr 1fr .8fr auto;gap:12px;align-items:end;margin-top:23px}.studio-source-filters label{font-size:12px}.studio-selection-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-top:18px}.studio-selection{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.studio-selected-chip{background:var(--soft);border:1px solid var(--line);color:var(--teal-dark);padding:9px 12px;border-radius:7px;font-size:12px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-height:40px}.studio #studioMediaStatus{color:var(--studio-secondary)}.studio-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.studio-media{position:relative;text-align:left;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white;padding:0;min-width:0}.studio-media.selected{outline:2px solid var(--teal);outline-offset:1px}.studio-media>img,.studio-no-thumb{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--soft)}.studio-no-thumb{display:grid;place-items:center;color:var(--studio-secondary)}.studio-media-info{padding:12px 12px 30px}.studio-media-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600}.studio-media-info>span{display:block;font-size:11px;color:var(--studio-secondary);margin-top:6px}.studio-media-check{display:block;position:absolute;bottom:9px;left:12px;font-size:11px;color:var(--teal-dark)}.studio-connections{display:flex;flex-wrap:wrap;gap:20px 32px;padding:24px 0 0;border-top:1px solid var(--line);margin-top:32px}.studio-connections>div{flex:1;min-width:160px;display:flex;flex-direction:column;gap:6px;font-size:12px}.studio-connections strong{font-weight:600}.studio-connections span{color:var(--studio-secondary);line-height:1.5}
@media(max-width:1150px){.studio-workspace{grid-template-columns:minmax(250px,.9fr) minmax(0,1.2fr);gap:20px}.studio-script{padding:20px}.studio-preview-row{gap:15px}.studio-frame{width:120px}.studio-frame.landscape{width:180px}.studio-source-filters{grid-template-columns:1fr 1fr 1fr}.studio-source-filters>label:first-child{grid-column:span 2}.studio-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-render-row{flex-wrap:wrap}}
@media(max-width:900px){.studio-workspace{grid-template-columns:1fr}.studio-script textarea{min-height:160px}.studio-scene{grid-template-columns:minmax(0,1fr) minmax(140px,.7fr)}}
@media(max-width:760px){.sidebar nav{gap:4px}.nav-row{flex:none}.nav-row .nav-item{margin:0;white-space:nowrap;min-height:44px}.nav-row .nav-item svg{width:16px;height:16px}.menu-edit{margin:0;padding:5px;min-height:36px;font-size:11px}.menu-help{margin:0;font-size:12px}.menu-handle{width:28px}.studio-heading{gap:12px;margin-bottom:22px}.studio-heading h1{font-size:28px}.studio-heading p{font-size:13px}.studio-script{padding:18px}.studio-preview-row{align-items:flex-start}.studio-frame{width:125px}.studio-frame.landscape{width:145px}.studio-preview-copy>p{font-size:13px}.studio-preview-copy .pill{font-size:10px}.studio-preview-copy h3{font-size:14px}.studio-scene{grid-template-columns:1fr;gap:5px}.studio-scene-source{padding:0 8px}.studio-scenes{margin-top:22px}.studio-sources .studio-section-title{align-items:flex-start;flex-direction:column}.studio-source-filters{grid-template-columns:1fr 1fr;gap:13px}.studio-source-filters>label:first-child{grid-column:span 2}.studio-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.studio-render-row .secondary{width:100%}.studio-selected-chip{font-size:11px}.studio-timeline-heading{align-items:flex-start}.studio-timeline-heading h3{max-width:150px}.studio-connections{gap:20px}.studio-connections>div{min-width:130px}.studio-frame>p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.studio *{scroll-behavior:auto}}

.studio-frame>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:none}.studio-options select{font-size:12px}
