/* Manual project entry: a single clear surface instead of nested frames. */
body.dashboard-page #create[data-mode=manual] > .manual-project-studio:not([hidden]){
  width:min(600px,calc(100% - 24px));padding:38px 30px 30px;
  border:1px solid #454545!important;border-radius:20px;background:#1d1d1d!important;
}

body.dashboard-page #create[data-mode=manual] .manual-project-form.panel{
  width:100%;max-width:none;margin:0;padding:0;border:0!important;border-radius:0;
  background:transparent!important;box-shadow:none!important;gap:16px;
}
body.dashboard-page #create[data-mode=manual] .manual-project-intro{padding-inline:44px 0}
body.dashboard-page #create[data-mode=manual] .manual-project-intro span{color:#83c7e8;font-size:11px;font-weight:700}
body.dashboard-page #create[data-mode=manual] .manual-project-intro h2{margin:4px 0 7px;color:#f4f4f4;font-size:19px}
body.dashboard-page #create[data-mode=manual] .manual-project-intro p{color:#b6bec3;line-height:1.8}
body.dashboard-page #create[data-mode=manual] .manual-project-form label{color:#e4e9ec;font-size:12px;font-weight:700}
body.dashboard-page #create[data-mode=manual] .manual-project-form input{width:100%;min-height:46px;border-color:#505960;background:#141a1e;color:#f5f7f8}
body.dashboard-page #create[data-mode=manual] .manual-project-form button[type=submit]{width:100%;min-height:46px;border:1px solid #6892a0;border-radius:9px;background:#29434c;color:#effaff;font-weight:700}
body.dashboard-page #create[data-mode=manual] .manual-project-form button[type=submit]:hover{background:#36545e}
body.dashboard-page #create[data-mode=manual] .creation-modal-close{margin:0 0 -35px auto;background:transparent;border:1px solid #505960;border-radius:9px;box-shadow:none}

/* Image/video tools are secondary to the audio library but always discoverable. */
body.manual-editor-page .manual-media{flex:none;display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--canvas)}
body.manual-editor-page .manual-media-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
body.manual-editor-page .manual-media-head small{color:var(--accent);font-size:10px}
body.manual-editor-page .manual-media-head h2{margin:2px 0 0;font-size:13px}
body.manual-editor-page .manual-media-head img{width:52px;height:52px;border-radius:7px;object-fit:cover;cursor:pointer}
body.manual-editor-page .manual-media p{margin:0;color:var(--muted);font-size:10px;line-height:1.7}
body.manual-editor-page .manual-media-actions{display:flex;flex-wrap:wrap;gap:5px}
body.manual-editor-page .manual-media-actions button{min-height:33px;border:1px solid var(--line);border-radius:7px;padding:5px 9px;color:var(--text);font-size:10px}
body.manual-editor-page .manual-media-actions button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
body.manual-editor-page .manual-media-actions button:disabled{opacity:.48}
body.manual-editor-page .manual-media [hidden]{display:none!important}
body.manual-editor-page .manual-library{overflow:auto}
body.manual-editor-page .clip-library{flex:1 1 110px}
body.manual-editor-page .cover-project-dialog{background:var(--surface);border-color:var(--line);color:var(--text)}
body.manual-editor-page .cover-project-dialog :is(.cover-model-option,.cover-style-card){background:var(--surface-2);border-color:var(--line);color:var(--text)}
body.manual-editor-page .cover-project-dialog textarea{background:var(--canvas);border-color:var(--line);color:var(--text)}

/* The manual studio uses the same choose / sample-play pattern as podcast creation. */
body.manual-editor-page .manual-voice-field{min-width:0}
body.manual-editor-page .dialog-grid :is(.manual-character-field,.manual-voice-field){grid-column:1/-1}
body.manual-editor-page .manual-voice-field .manual-native-voice{display:none}
body.manual-editor-page .manual-voice-picker{min-width:0;color:var(--text)}
body.manual-editor-page .manual-voice-caption{display:block;margin-bottom:6px;color:var(--muted);font-size:11px}
body.manual-editor-page .manual-voice-trigger{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--canvas);color:var(--text);text-align:right}
body.manual-editor-page .manual-voice-trigger>span:first-child{display:grid;min-width:0;gap:2px}
body.manual-editor-page .manual-voice-trigger strong,body.manual-editor-page .manual-voice-trigger small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.manual-editor-page .manual-voice-trigger strong{font-size:11px}
body.manual-editor-page .manual-voice-trigger small{color:var(--muted);font-size:9px}
body.manual-editor-page .manual-voice-trigger:hover,body.manual-editor-page .manual-voice-trigger[aria-expanded=true]{border-color:var(--accent)}
body.manual-editor-page .manual-voice-panel{display:grid;gap:8px;margin-top:7px;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--canvas)}
body.manual-editor-page .manual-voice-panel[hidden]{display:none}
body.manual-editor-page .manual-voice-search{gap:4px;font-size:10px}
body.manual-editor-page .manual-voice-search input{min-height:36px;padding:6px 9px}
body.manual-editor-page .manual-voice-filters{display:flex;flex-wrap:wrap;gap:4px}
body.manual-editor-page .manual-voice-filters button{padding:5px 8px;border:1px solid var(--line);border-radius:20px;background:transparent;color:var(--muted);font-size:9px}
body.manual-editor-page .manual-voice-filters button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}
body.manual-editor-page .manual-voice-list{display:grid;max-height:min(260px,36dvh);overflow:auto;overscroll-behavior:contain}
body.manual-editor-page .manual-voice-option{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;min-height:49px;border-bottom:1px solid var(--line)}
body.manual-editor-page .manual-voice-option[hidden]{display:none}
body.manual-editor-page .manual-voice-option:last-child{border-bottom:0}
body.manual-editor-page .manual-voice-option.selected{background:var(--accent-soft)}
body.manual-editor-page .manual-voice-option [data-choose]{display:grid;gap:2px;min-width:0;padding:7px 8px;border:0;background:transparent;color:var(--text);text-align:right}
body.manual-editor-page .manual-voice-option [data-choose] :is(strong,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.manual-editor-page .manual-voice-option [data-choose] strong{font-size:11px}
body.manual-editor-page .manual-voice-option [data-choose] small{color:var(--muted);font-size:9px}
body.manual-editor-page .manual-voice-option [data-play]{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--accent);font-size:12px}
body.manual-editor-page .manual-voice-option [data-play]:hover:not(:disabled),body.manual-editor-page .manual-voice-option [data-play].playing{background:var(--accent-soft);color:var(--text)}
body.manual-editor-page .manual-voice-note{margin:0;color:var(--muted);font-size:9px;line-height:1.6}
@media(max-width:760px){
  body.dashboard-page #create[data-mode=manual] > .manual-project-studio:not([hidden]){width:100%;padding:40px 18px 24px;border:0!important;border-radius:0}
  body.dashboard-page #create[data-mode=manual] .manual-project-intro{padding-inline:40px 0}
  body.manual-editor-page .manual-library{max-height:none;min-height:0}
  body.manual-editor-page .clip-library{flex:none;max-height:240px;overflow:auto}
}
html[data-podly-theme=light] body.dashboard-page #create[data-mode=manual] > .manual-project-studio:not([hidden]){background:#fff!important;border-color:#d4dde2!important}
html[data-podly-theme=light] body.dashboard-page #create[data-mode=manual] .manual-project-intro h2,
html[data-podly-theme=light] body.dashboard-page #create[data-mode=manual] .manual-project-form label{color:#24313a}
html[data-podly-theme=light] body.dashboard-page #create[data-mode=manual] .manual-project-form input{background:#f6f8fa;color:#24313a;border-color:#d4dde2}

/* Keep the library scannable: title, one metadata line, then quiet actions. */
body.manual-editor-page .manual-library{gap:9px;padding:13px;background:var(--surface)}
body.manual-editor-page .manual-section-head{padding:1px 2px 8px;border-bottom:1px solid var(--line)}
body.manual-editor-page .manual-section-head h2{font-size:14px}
body.manual-editor-page .manual-new-clip{min-height:40px;border-radius:8px;font-size:11px}
body.manual-editor-page .manual-library-actions{display:flex;gap:6px}
body.manual-editor-page .manual-library-actions .text-button{flex:1;min-width:0;min-height:32px;padding:5px;border:1px solid var(--line);border-radius:7px;background:transparent;font-size:10px}
body.manual-editor-page .manual-library-actions .text-button:hover{background:var(--surface-2);color:var(--text)}
body.manual-editor-page .clip-library{gap:6px;padding:1px 2px 2px;scrollbar-gutter:stable}
body.manual-editor-page .clip-library .library-card{gap:5px;padding:10px;border:1px solid var(--line);border-radius:8px;background:transparent;box-shadow:none;transition:background .15s}
body.manual-editor-page .clip-library .library-card:hover{background:var(--surface-2)}
body.manual-editor-page .library-card header{gap:8px;align-items:center}
body.manual-editor-page .library-card-identity{display:flex;align-items:center;gap:7px;min-width:0;flex:1}
body.manual-editor-page .library-card-kind{display:grid;place-items:center;flex:none;width:17px;height:17px;color:var(--muted)}
body.manual-editor-page .library-card-kind svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.manual-editor-page .library-card-title{min-width:0;max-width:100%;padding:2px 0;border:0;border-radius:3px;background:transparent;color:var(--text);font-family:inherit;font-size:11px;font-weight:600;line-height:1.5;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text}
body.manual-editor-page .library-card-title:hover{text-decoration:underline;text-decoration-color:var(--muted);text-underline-offset:3px}
body.manual-editor-page .library-card-title:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body.manual-editor-page .library-card-title-input{min-width:0;max-width:100%;width:100%;padding:2px 5px;border:1px solid var(--accent);border-radius:5px;background:var(--canvas);color:var(--text);font-size:11px}
body.manual-editor-page .library-card .state{flex:none;padding:0;border:0;background:transparent;color:var(--muted);font-size:9px;white-space:nowrap}
body.manual-editor-page .library-card .state::before{content:'';display:inline-block;width:5px;height:5px;margin-inline-end:5px;border-radius:50%;background:currentColor;vertical-align:middle}
body.manual-editor-page .library-card[data-status=completed] .state{color:var(--success)}
body.manual-editor-page .library-card[data-status=failed] .state{color:var(--danger)}
body.manual-editor-page .library-card .library-card-meta{color:var(--muted);font-size:9px;line-height:1.5}
body.manual-editor-page .library-card .clip-voice-settings{padding:0;background:transparent;color:var(--muted);font-size:9px;line-height:1.5;overflow-wrap:anywhere}
body.manual-editor-page .library-card-actions{display:flex;justify-content:flex-start;align-items:center;flex-wrap:nowrap;gap:3px;margin-top:2px;padding:0;border:0}
body.manual-editor-page .library-card-actions .library-action{display:grid;place-items:center;flex:none;width:33px;height:33px;min-width:33px;min-height:33px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted)}
body.manual-editor-page .library-card-actions .library-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.manual-editor-page .library-card-actions .library-action:hover:not(:disabled){background:var(--surface-2);color:var(--text)}
body.manual-editor-page .library-card-actions [data-action=add]{color:var(--accent)}
body.manual-editor-page .library-card-actions [data-action=delete]{margin-inline-start:auto;color:var(--muted)}
body.manual-editor-page .library-card-actions [data-action=delete]:hover:not(:disabled){background:var(--surface-2);color:var(--danger)}
body.manual-editor-page .manual-media{border-radius:8px;background:transparent}
body.manual-editor-page .manual-toolbar :is(.transport,.edit-tools,.zoom-tools){gap:4px}
body.manual-editor-page .manual-toolbar :is(.icon-button,.text-button){min-width:32px;min-height:32px;padding:4px 6px}
body.manual-editor-page .manual-toolbar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.manual-editor-page .manual-toolbar :is(#seekBack,#seekForward) svg{fill:currentColor;stroke:none}

/* Keep detailed editing available without taking over the timeline. */
body.manual-editor-page .manual-edit-panel{display:block;flex:none;max-height:none;overflow:visible;padding:0;border:0;background:transparent}
body.manual-editor-page .manual-edit-panel summary{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 7px;border-radius:6px;color:var(--muted);font-size:10px;cursor:pointer;list-style:none}
body.manual-editor-page .manual-edit-panel summary::-webkit-details-marker{display:none}
body.manual-editor-page .manual-edit-panel summary::after{content:'⌄';font-size:14px;line-height:1}
body.manual-editor-page .manual-edit-panel[open] summary::after{transform:rotate(180deg)}
body.manual-editor-page .manual-edit-panel summary:hover,body.manual-editor-page .manual-edit-panel summary:focus-visible{background:var(--surface-2);color:var(--text)}
body.manual-editor-page .manual-edit-panel:not([open]) .manual-edit-content{display:none}
body.manual-editor-page .manual-edit-content{display:grid;gap:7px;max-height:180px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--canvas)}

/* Editing stays visible; advanced operations remain one tap away. */
body.manual-editor-page .manual-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;flex-wrap:nowrap}
body.manual-editor-page .transport{justify-self:start}
body.manual-editor-page .edit-tools{justify-self:center}
body.manual-editor-page .zoom-tools{justify-self:end}
body.manual-editor-page .manual-toolbar .icon-button{border:0;background:transparent;color:var(--muted)}
body.manual-editor-page .manual-toolbar .icon-button:hover:not(:disabled),body.manual-editor-page .manual-toolbar .icon-button[aria-pressed=true]{background:transparent;color:var(--accent)}
body.manual-editor-page .manual-toolbar .icon-button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
body.manual-editor-page .timeline-clip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body.manual-editor-page .manual-toolbar .icon-button:disabled{opacity:.35}
body.manual-editor-page .manual-toolbar #playMix{color:var(--accent)}
body.manual-editor-page .manual-toolbar #zoomValue{min-width:37px}
body.manual-editor-page .manual-quick-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:8px;flex:none}
body.manual-editor-page .manual-quick-tools section{min-width:0;display:grid;align-content:start;gap:7px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--canvas)}
body.manual-editor-page .workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text);font-size:11px}
body.manual-editor-page .workbench-heading :is(small,output){color:var(--muted);font-size:10px;font-weight:400}
body.manual-editor-page .range-workbench>small{color:var(--muted);font-size:9px;line-height:1.4}
body.manual-editor-page .range-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
body.manual-editor-page .range-controls label{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:10px}
body.manual-editor-page .range-controls input[type=number]{width:58px;min-height:30px;padding:4px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--text);direction:ltr}
body.manual-editor-page .range-controls button{min-height:30px;padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--text);font-size:10px}
body.manual-editor-page .range-controls button:hover{border-color:var(--accent)}
body.manual-editor-page .range-controls #repairRange{border-color:var(--accent);color:var(--accent);font-weight:700}
body.manual-editor-page .range-controls #repairRange:disabled{border-color:var(--line);color:var(--muted);opacity:.6;cursor:not-allowed}
body.manual-editor-page .repair-guide{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--accent);border-radius:8px;background:var(--accent-soft)}
body.manual-editor-page .repair-guide[hidden]{display:none}
body.manual-editor-page .repair-guide>div{display:grid;gap:3px;min-width:0}
body.manual-editor-page .repair-guide strong{font-size:11px;color:var(--text)}
body.manual-editor-page .repair-guide small{font-size:10px;color:var(--muted);line-height:1.5}
body.manual-editor-page .repair-guide button,body.manual-editor-page .inspector-actions .repair-inspector-action{min-height:34px;padding:6px 11px;border:1px solid var(--accent);border-radius:6px;background:transparent;color:var(--accent);font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
body.manual-editor-page .repair-guide button:hover,body.manual-editor-page .inspector-actions .repair-inspector-action:hover:not(:disabled){background:var(--accent);color:var(--canvas)}
body.manual-editor-page .mixer-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.manual-editor-page .mixer-controls label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px;color:var(--muted);font-size:10px}
body.manual-editor-page .mixer-controls output{color:var(--text);font-size:10px;direction:ltr}
body.manual-editor-page .mixer-controls input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--accent)}
body.manual-editor-page .manual-edit-panel summary{min-height:25px;padding:2px 7px}
body.manual-editor-page .manual-edit-content{max-height:205px}
body.manual-editor-page :is(.range-actions,.mix-options){display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.manual-editor-page .mix-options{padding-top:7px;border-top:1px solid var(--line)}
body.manual-editor-page .mix-options label{display:inline-flex;align-items:center;gap:4px;color:var(--muted)}
body.manual-editor-page .manual-inspector{max-height:160px}
body.manual-editor-page .inspector-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:7px}
body.manual-editor-page .inspector-actions button{min-height:30px;padding:5px 9px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--text);font-size:10px}
body.manual-editor-page .inspector-actions button:hover:not(:disabled){border-color:var(--accent)}
body.manual-editor-page .library-card-actions [data-action=preview][aria-pressed=true]{color:var(--accent)}
body.manual-editor-page .manual-timeline.range-mode :is(.manual-lane,.timeline-clip){cursor:crosshair;touch-action:none}
body.manual-editor-page .manual-range{pointer-events:none;display:flex;align-items:start;justify-content:center}
body.manual-editor-page .manual-range[hidden]{display:none}
body.manual-editor-page .manual-range button{position:absolute;top:0;bottom:0;width:22px;padding:0;border:0;background:transparent;pointer-events:auto;touch-action:none;cursor:ew-resize}
body.manual-editor-page .manual-range button::before{content:'';position:absolute;top:30%;bottom:30%;left:10px;width:3px;border-radius:3px;background:var(--accent)}
body.manual-editor-page .manual-range [data-range-edge=start]{left:-11px}
body.manual-editor-page .manual-range [data-range-edge=end]{right:-11px}
body.manual-editor-page .manual-range span{position:sticky;top:0;max-width:100%;padding:2px 5px;border-radius:0 0 5px 5px;background:var(--accent-soft);color:var(--text);font:9px ui-monospace,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.manual-editor-page .manual-context-menu{position:fixed;z-index:1000;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;width:min(330px,calc(100vw - 16px));max-height:min(460px,75dvh);overflow:auto;padding:6px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:0 12px 35px #0008}
body.manual-editor-page .manual-context-menu[hidden]{display:none}
body.manual-editor-page .manual-context-menu button{min-height:35px;padding:7px 9px;border:0;border-radius:5px;background:transparent;color:var(--text);font-family:inherit;font-size:10px;text-align:right}
body.manual-editor-page .manual-context-menu button:hover:not(:disabled),body.manual-editor-page .manual-context-menu button:focus-visible{background:var(--surface-2);outline:none}
body.manual-editor-page .manual-context-menu button:disabled{opacity:.35}
body.manual-editor-page .manual-context-menu .context-heading{grid-column:1/-1;display:block;padding:8px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.manual-editor-page .manual-context-menu{grid-template-columns:1fr;width:min(260px,calc(100vw - 16px));max-height:min(350px,65dvh)}
body.manual-editor-page .timeline-clip .edge{width:16px;border-left:0;touch-action:none}
body.manual-editor-page .timeline-clip .edge::after{content:'';position:absolute;top:32%;bottom:32%;width:3px;border-radius:4px;background:#d8e6ec}
body.manual-editor-page .timeline-clip .edge.left::after{left:3px}
body.manual-editor-page .timeline-clip .edge.right::after{right:3px}
body.manual-editor-page .timeline-clip .edge:hover::after{background:var(--accent)}
body.manual-editor-page .library-organizer{display:flex;gap:6px;padding:4px 0}
body.manual-editor-page .library-organizer :is(input,select){min-width:0;min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--canvas);color:var(--text);font:inherit;font-size:11px;padding:5px 8px}
body.manual-editor-page .library-organizer input{flex:1}
body.manual-editor-page .library-organizer select{max-width:45%;cursor:pointer}
body.manual-editor-page .library-card-folder{color:var(--accent)}
body.manual-editor-page .library-organizer #manageFolders{flex:none;border:1px solid var(--line);background:var(--canvas);color:var(--text);min-width:36px;min-height:36px}
body.manual-editor-page .library-organizer #manageFolders svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.manual-editor-page .folder-manager-content{display:grid;gap:14px;padding:18px;max-height:calc(100dvh - 32px);overflow:auto}
body.manual-editor-page .folder-manager-content header{display:flex;align-items:start;justify-content:space-between}
body.manual-editor-page .folder-manager-content h2{margin:2px 0;font-size:17px}
body.manual-editor-page .folder-manager-content .dialog-hint{margin:0;line-height:1.8}
body.manual-editor-page #createFolderForm{display:flex;align-items:end;gap:8px;padding:0;overflow:visible}
body.manual-editor-page #createFolderForm label{flex:1;min-width:0}
body.manual-editor-page #createFolderForm input{min-height:38px}
body.manual-editor-page #createFolderForm button{min-height:38px;white-space:nowrap}
body.manual-editor-page .folder-manager-list{display:grid;gap:6px;max-height:min(48dvh,360px);overflow:auto}
body.manual-editor-page .folder-manager-row{display:flex;align-items:center;gap:7px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--canvas)}
body.manual-editor-page .folder-manager-row .folder-open{flex:1;min-width:0;text-align:right;color:var(--text);background:none;border:0;padding:4px;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.manual-editor-page .folder-manager-row small{color:var(--muted);font-size:10px;white-space:nowrap}
body.manual-editor-page .folder-manager-row .icon-button{border:1px solid var(--line);flex:none}
body.manual-editor-page .folder-manager-row .folder-rename-input{flex:1;min-width:0;padding:6px 8px}
body.manual-editor-page .folder-manager-row .folder-delete-confirm{color:var(--danger);font-size:11px}
body.manual-editor-page .folder-manager-list .empty-note{padding:12px;text-align:center}
@media(max-width:560px){body.manual-editor-page .library-organizer{flex-wrap:wrap}body.manual-editor-page .library-organizer input{flex-basis:100%}body.manual-editor-page .library-organizer select{flex:1;max-width:none}body.manual-editor-page .folder-manager-row .icon-button{min-width:38px;min-height:38px}}
body.manual-editor-page .character-chips button{touch-action:manipulation}
body.manual-editor-page .manual-toolbar #selectTool[aria-pressed=true]{color:var(--accent)}
@media(max-width:1050px){body.manual-editor-page .manual-toolbar{display:flex;justify-content:space-between;gap:4px}body.manual-editor-page .manual-quick-tools{grid-template-columns:1fr}}
@media(max-width:760px){body.manual-editor-page .manual-toolbar{flex-wrap:wrap;justify-content:center}body.manual-editor-page .transport{justify-content:center;width:100%}body.manual-editor-page .edit-tools{justify-content:center;flex:1;min-width:0;overflow-x:auto}body.manual-editor-page .zoom-tools{flex:none}body.manual-editor-page .manual-quick-tools section{padding:8px}body.manual-editor-page .mixer-controls{gap:7px}body.manual-editor-page .range-workbench>small{display:block}body.manual-editor-page .repair-guide{align-items:stretch;flex-direction:column}body.manual-editor-page .repair-guide button{min-height:44px;white-space:normal}body.manual-editor-page .manual-inspector{max-height:200px}body.manual-editor-page .manual-context-menu{bottom:8px!important;top:auto!important;left:8px!important;right:8px;width:auto;max-height:65dvh}}
@media(max-width:430px){body.manual-editor-page .edit-tools{width:100%;flex:none}body.manual-editor-page .zoom-tools{width:100%;justify-content:center}body.manual-editor-page .mixer-controls{grid-template-columns:1fr}body.manual-editor-page .mixer-controls label{grid-template-columns:90px 1fr auto}body.manual-editor-page .mixer-controls input[type=range]{grid-column:2;grid-row:1}body.manual-editor-page .mixer-controls output{grid-column:3;grid-row:1}}
body.manual-editor-page .manual-timeline.razor-mode :is(.manual-lane,.timeline-clip){cursor:crosshair;touch-action:none}
@media(max-width:760px){body.manual-editor-page .manual-toolbar .icon-button{min-width:40px;min-height:40px}body.manual-editor-page .range-controls button,body.manual-editor-page .inspector-actions button{min-height:40px}body.manual-editor-page .manual-context-menu button{min-height:44px}body.manual-editor-page .manual-range button{width:32px}body.manual-editor-page .manual-range [data-range-edge=start]{left:-16px}body.manual-editor-page .manual-range [data-range-edge=end]{right:-16px}}
@media(max-width:760px){body.manual-editor-page .manual-workspace{height:auto;min-height:0;overflow:visible}body.manual-editor-page .manual-timeline-scroll{flex:none;height:clamp(240px,40dvh,380px)}body.manual-editor-page .manual-inspector{max-height:none;overflow:visible}body.manual-editor-page .manual-edit-content{max-height:none}}
body.manual-editor-page .mobile-library-jump{display:none}
@media(max-width:760px){body.manual-editor-page .manual-workspace{order:0}body.manual-editor-page .manual-library{order:1}body.manual-editor-page .mobile-library-jump{display:inline-flex;align-items:center;min-height:40px;color:var(--accent);font-size:11px;text-decoration:none}body.manual-editor-page #libraryPanel,body.manual-editor-page #timelineScroll{scroll-margin-top:12px}body.manual-editor-page .manual-library .manual-section-head{gap:8px}}
body.manual-editor-page .manual-media{display:block;padding:0;border-radius:8px}
body.manual-editor-page .manual-media summary{padding:10px 12px;color:var(--text);font-size:11px;font-weight:600;cursor:pointer;list-style:none}
body.manual-editor-page .manual-media summary::-webkit-details-marker{display:none}
body.manual-editor-page .manual-media summary::after{content:'⌄';float:left;color:var(--muted)}
body.manual-editor-page .manual-media[open] summary::after{transform:rotate(180deg)}
body.manual-editor-page .manual-media summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body.manual-editor-page .manual-media:not([open]) .manual-media-content{display:none}
body.manual-editor-page .manual-media-content{display:grid;gap:9px;padding:0 12px 12px}
body.manual-editor-page .library-card-title{font-size:12px}
body.manual-editor-page .library-card .state,body.manual-editor-page .library-card .library-card-meta,body.manual-editor-page .library-card .clip-voice-settings{font-size:10px}
body.manual-editor-page .workbench-heading{font-size:12px}
body.manual-editor-page .workbench-heading :is(small,output),body.manual-editor-page .range-controls label,body.manual-editor-page .mixer-controls label,body.manual-editor-page .mixer-controls output{font-size:11px}
body.manual-editor-page .range-controls button{font-size:11px}

/* One monochrome icon system for every timeline toolbar action. */
body.manual-editor-page .manual-toolbar .icon-button,
body.manual-editor-page .manual-toolbar .icon-button:hover:not(:disabled),
body.manual-editor-page .manual-toolbar .icon-button[aria-pressed=true],
body.manual-editor-page .manual-toolbar #playMix,
body.manual-editor-page .manual-toolbar #selectTool[aria-pressed=true]{
  position:relative;display:grid;place-items:center;flex:none;
  width:36px;height:36px;min-width:36px;min-height:36px;padding:0;
  border:0;background:transparent;color:#f4f6f8;box-shadow:none;
}
body.manual-editor-page .manual-toolbar .icon-button svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.manual-editor-page .manual-toolbar :is(#seekBack,#seekForward) svg{fill:none;stroke:currentColor}
body.manual-editor-page .manual-toolbar .icon-button:hover:not(:disabled){opacity:.7}
body.manual-editor-page .manual-toolbar .icon-button[aria-pressed=true]::after{content:"";position:absolute;bottom:1px;width:10px;height:2px;border-radius:2px;background:currentColor}
body.manual-editor-page .manual-toolbar .icon-button:disabled{color:#f4f6f8;opacity:.3;cursor:not-allowed}
body.manual-editor-page .manual-toolbar #playMix [data-icon-state]{display:none}
body.manual-editor-page .manual-toolbar #playMix[data-play-state=play] [data-icon-state=play],
body.manual-editor-page .manual-toolbar #playMix[data-play-state=pause] [data-icon-state=pause],
body.manual-editor-page .manual-toolbar #playMix[data-play-state=loading] [data-icon-state=loading]{display:block}
body.manual-editor-page .manual-toolbar #playMix[data-play-state=loading] svg{animation:manual-transport-loading 1s linear infinite}
@keyframes manual-transport-loading{to{transform:rotate(360deg)}}
@media(max-width:760px){body.manual-editor-page .manual-toolbar :is(.icon-button,#playMix,#selectTool[aria-pressed=true]){width:40px;height:40px;min-width:40px;min-height:40px}}

/* Selection in the timeline also identifies the source in the library. */
body.manual-editor-page .clip-library .library-card.timeline-selected{border-color:#83c7e8!important;background:#21343c!important;box-shadow:inset 3px 0 #83c7e8,0 0 0 1px #83c7e844!important}
body.manual-editor-page .library-card.timeline-selected .library-card-title{color:#eefaff}
body.manual-editor-page .manual-ruler i.minor{top:22px;height:12px;padding:0;border-left-color:#83949d88;font-size:0}
body.manual-editor-page .manual-ruler i.major{color:#dce8ed;border-left-color:#aebcc5}
body.manual-editor-page .manual-playhead::after{content:attr(data-time);position:absolute;top:12px;left:7px;padding:3px 5px;border:1px solid #e8c77d;border-radius:4px;background:#24221c;color:#fff0c7;font:600 11px/1.2 ui-monospace,monospace;white-space:nowrap;box-shadow:0 2px 8px #0008}
body.manual-editor-page .transport #timecode{min-width:135px;color:#e8f2f5;font-size:12px;font-variant-numeric:tabular-nums}
html[data-podly-theme=light] body.manual-editor-page .clip-library .library-card.timeline-selected{background:#e3f4fa!important}
html[data-podly-theme=light] body.manual-editor-page .library-card.timeline-selected .library-card-title{color:#173947}

/* Keep the shared clip library cards inside the narrow editor sidebar. */
body.manual-editor-page #clipLibrary,
body.manual-editor-page #clipLibrary .library-card,
body.manual-editor-page #clipLibrary .library-card header,
body.manual-editor-page #clipLibrary .library-card-identity{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
body.manual-editor-page #clipLibrary{overflow-x:hidden;overflow-y:auto}
body.manual-editor-page #clipLibrary .library-card{overflow:hidden}
body.manual-editor-page #clipLibrary .library-card-identity{overflow:hidden}
body.manual-editor-page #clipLibrary .library-card-title{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.manual-editor-page #clipLibrary .library-card-actions{min-width:0;max-width:100%;flex-wrap:wrap;overflow:hidden}
body.manual-editor-page .manual-timeline-scroll.music-drop-target{outline:2px dashed #a98ae8;outline-offset:-4px;border-radius:10px}
body.manual-editor-page .music-library-dialog{width:min(620px,calc(100vw - 28px));max-height:min(720px,calc(100dvh - 28px));overflow:auto}
body.manual-editor-page .music-library-content{display:grid;gap:12px;margin-top:12px}
body.manual-editor-page .music-library-category{padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--canvas)}
body.manual-editor-page .music-library-category>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
body.manual-editor-page .music-library-category>header small,.music-library-track small{color:var(--muted);font-size:9px}
body.manual-editor-page .music-library-tracks{display:grid;gap:6px}
body.manual-editor-page .music-library-track{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
body.manual-editor-page .music-library-track>div:first-child{min-width:0;display:grid;gap:2px}
body.manual-editor-page .music-library-track strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
body.manual-editor-page .music-library-track>div:last-child{display:flex;gap:5px;flex:none}
body.manual-editor-page .music-library-track button{min-height:30px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--text);font-size:10px;cursor:pointer}
body.manual-editor-page .music-library-track button:last-child{border-color:var(--accent);color:var(--accent)}
body.manual-editor-page .music-library-track button:hover:not(:disabled){background:var(--accent-soft)}
@media(max-width:760px){body.manual-editor-page .music-library-dialog{width:calc(100vw - 16px)}body.manual-editor-page .music-library-track{align-items:stretch;flex-direction:column}body.manual-editor-page .music-library-track>div:last-child button{flex:1}}

/* Music library: compact, tabbed browsing that remains usable with many categories. */
body.manual-editor-page .music-library-dialog{
  width:min(720px,calc(100vw - 28px));
  max-height:min(760px,calc(100dvh - 28px));
  overflow:hidden;
  padding:0;
}
body.manual-editor-page .music-library-dialog-inner{
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:min(760px,calc(100dvh - 28px));
  padding:18px;
}
body.manual-editor-page .music-library-dialog-inner>header{flex:none;padding-bottom:12px;border-bottom:1px solid var(--line)}
body.manual-editor-page .music-library-dialog-inner>.dialog-hint{flex:none;padding:10px 0 2px}
body.manual-editor-page .music-library-content{display:flex;flex-direction:column;min-height:0;gap:12px;margin-top:10px}
body.manual-editor-page .music-library-tabs{
  display:flex;gap:6px;overflow-x:auto;flex:none;padding:2px 2px 9px;
  border-bottom:1px solid var(--line);scrollbar-width:thin;
}
body.manual-editor-page .music-library-tab{
  display:inline-flex;align-items:center;gap:6px;flex:none;min-height:36px;
  padding:7px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--canvas);color:var(--muted);font-size:11px;white-space:nowrap;
}
body.manual-editor-page .music-library-tab small{color:inherit;font-size:9px;opacity:.75}
body.manual-editor-page .music-library-tab:hover{border-color:var(--accent);color:var(--text)}
body.manual-editor-page .music-library-tab.is-active{border-color:var(--accent);background:var(--accent-soft);color:var(--text);box-shadow:inset 0 -2px var(--accent)}
body.manual-editor-page .music-library-panels{min-height:0;overflow:auto;padding:1px 2px 2px}
body.manual-editor-page .music-library-category{display:none;padding:0;border:0;background:transparent}
body.manual-editor-page .music-library-category.is-active{display:block}
body.manual-editor-page .music-library-category>header{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 9px;margin:0}
body.manual-editor-page .music-library-category>header strong{font-size:13px}
body.manual-editor-page .music-library-category>header small{color:var(--muted);font-size:10px}
body.manual-editor-page .music-library-tracks{display:grid;gap:7px}
body.manual-editor-page .music-library-track{min-height:58px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
body.manual-editor-page .music-library-track:hover{border-color:#5b7785;background:var(--surface-2)}
body.manual-editor-page .music-library-track strong{font-size:11px}
body.manual-editor-page .music-library-track button{min-height:32px;border-radius:7px}
@media(max-width:760px){
  body.manual-editor-page .music-library-dialog{width:calc(100vw - 16px);max-height:88dvh}
  body.manual-editor-page .music-library-dialog-inner{max-height:88dvh;padding:14px}
  body.manual-editor-page .music-library-track{align-items:stretch;flex-direction:column;gap:8px}
  body.manual-editor-page .music-library-track>div:last-child{width:100%}
  body.manual-editor-page .music-library-track>div:last-child button{flex:1}
}

/* Final music library overrides. */
body.manual-editor-page .music-library-dialog{width:min(860px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));min-height:min(560px,calc(100dvh - 32px));max-height:none;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 28px 100px #000b}
body.manual-editor-page .music-library-dialog-inner{height:100%;max-height:none;box-sizing:border-box;padding:24px 26px 20px;gap:0}
body.manual-editor-page .music-library-content{flex:1;min-height:0;gap:15px;margin:0;overflow:hidden}
body.manual-editor-page .music-library-tabs{gap:8px;padding:3px 2px 12px;border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
body.manual-editor-page .music-library-tab{min-height:40px;padding:8px 15px;border:1px solid var(--line);border-radius:10px;background:var(--canvas);color:var(--muted);font-size:11px;transition:.18s}
body.manual-editor-page .music-library-tab.is-active{border-color:var(--accent);background:var(--accent-soft);color:var(--text);box-shadow:inset 0 -2px var(--accent),0 4px 14px #0003}
body.manual-editor-page .music-library-panels{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 4px 8px 2px;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
body.manual-editor-page .music-library-category{display:none;padding:0;border:0;background:transparent}
body.manual-editor-page .music-library-category.is-active{display:block}
body.manual-editor-page .music-library-category>header{padding:8px 2px 13px;margin:0}
body.manual-editor-page .music-library-category>header strong{font-size:15px;color:var(--text)}
body.manual-editor-page .music-library-tracks{gap:8px}
body.manual-editor-page .music-library-track{min-height:68px;box-sizing:border-box;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);transition:border-color .18s,background .18s,transform .18s}
body.manual-editor-page .music-library-track:hover{border-color:var(--accent);background:var(--surface);transform:translateY(-1px)}
body.manual-editor-page .music-library-track-info{display:grid;gap:4px;min-width:0;cursor:pointer;outline:0}
body.manual-editor-page .music-library-track-info:focus-visible{border-radius:6px;box-shadow:0 0 0 2px var(--accent)}
body.manual-editor-page .music-library-track strong{font-size:12px;color:var(--text)}
body.manual-editor-page .music-library-track small{font-size:9px;color:var(--muted)}
body.manual-editor-page .music-library-track-actions{display:flex!important;align-items:center;gap:12px!important;flex:none}
body.manual-editor-page .music-library-track button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#9cb5bf;font-size:0;cursor:pointer;transition:.18s}
body.manual-editor-page .music-library-track button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.manual-editor-page .music-library-track button:last-child{color:var(--accent)}
body.manual-editor-page .music-library-track button:hover:not(:disabled){background:var(--accent-soft);color:var(--text);transform:scale(1.08)}
body.manual-editor-page .music-library-track button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}
body.manual-editor-page .music-library-track button.music-library-favorite{color:var(--muted)}
body.manual-editor-page .music-library-track button.music-library-favorite.is-favorite{color:var(--danger)}
body.manual-editor-page .music-library-track button.music-library-favorite.is-favorite svg{fill:currentColor}
@media(max-width:760px){body.manual-editor-page .music-library-dialog{width:calc(100vw - 18px);height:calc(100dvh - 18px);min-height:0}body.manual-editor-page .music-library-dialog-inner{padding:18px 15px 14px}body.manual-editor-page .music-library-track{align-items:center;flex-direction:row}body.manual-editor-page .music-library-track-actions{width:auto!important}}

/* Manual editor header actions: quiet, icon-first controls. */
body.manual-editor-page .manual-header{min-height:58px;padding:6px 14px;border-color:var(--line);background:var(--surface);box-shadow:none}
body.manual-editor-page .manual-heading{gap:10px}
body.manual-editor-page .manual-heading>a{display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:50%;color:#9db5bf;font-size:20px;transition:.18s}
body.manual-editor-page .manual-heading>a:hover{background:#ffffff0d;color:#effcff}
body.manual-editor-page .manual-header-actions{gap:7px}
body.manual-editor-page .manual-header-actions .manual-header-icon-action{display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#9db5bf;font-size:0;transition:.18s}
body.manual-editor-page .manual-header-actions .manual-header-icon-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.manual-editor-page .manual-header-actions .manual-header-icon-action:hover:not(:disabled){background:#ffffff10;color:#effcff;transform:translateY(-1px)}
body.manual-editor-page .manual-header-actions .manual-header-icon-action:focus-visible{outline:2px solid #82d8f3;outline-offset:2px}
body.manual-editor-page .manual-header-actions .manual-header-icon-action:disabled{opacity:.35;cursor:not-allowed}
body.manual-editor-page .manual-header-actions #finalizeMix{color:#82d8f3}
body.manual-editor-page .manual-header-actions #publishMix{color:#a6c9d2}
body.manual-editor-page .manual-header-actions #saveState{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8299a5;font-size:10px}
@media(max-width:760px){body.manual-editor-page .manual-header{padding:5px 8px}.manual-editor-page .manual-header-actions{gap:2px}.manual-editor-page .manual-header-actions .manual-header-icon-action{width:32px;height:32px;min-width:32px;min-height:32px}.manual-editor-page .manual-header-actions .manual-header-icon-action svg{width:16px;height:16px}}
