/* Sori Studio: neutral light workspace. White canvas, gray navigation, restrained accents. */
:root{color-scheme:light;--bg:#fff;--ink:#202124;--muted:#62666d;--line:#e1e3e7;--green:#292c32;--panel:#fff;--panel-raised:#f6f7f8;--accent:#315bd6}
body{background:#fff;font-size:14px;line-height:1.6;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
button:disabled{opacity:.45}.shell{grid-template-columns:220px minmax(0,1fr)}
.sidebar{background:#f7f8f9;padding:25px 16px 18px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#cbd0d8 transparent}
.brand{font-size:23px;gap:10px;padding:0 6px}.mark{width:34px;height:36px;font-size:32px;background:#25282e;border-radius:9px}.brand-small{font-size:8px;letter-spacing:.14em;color:#6b7078}
.nav-label{margin:32px 11px 10px;color:#7a7e86;font-size:11px;letter-spacing:0}.nav{gap:11px;padding:11px 12px;color:#636871;font-size:13px;border-radius:7px;font-weight:500;margin:3px 0}.nav-icon{width:18px;height:18px;flex-shrink:0}.nav:hover{background:#eceef1;color:#202124}.nav.active{background:#e8eaed;color:#202124;box-shadow:none;font-weight:650}.nav.active::after{display:none}
.side-bottom{padding:28px 10px 0}.side-bottom p{color:#737981;font-size:11px;line-height:1.8;margin-top:8px}.local-chip{color:#464c56;font-size:11px;letter-spacing:0}.dot{background:#697e73}.side-version{font-size:9px;letter-spacing:.1em;color:#858b93;margin-top:18px}
main{max-width:1640px;padding:0 36px;min-width:0;background:#fff}header{height:62px;border-bottom:1px solid #eceef1}.breadcrumb{color:#747981;font-size:12px}.breadcrumb span{color:#b0b4ba}.breadcrumb b{color:#343940;font-weight:500}.badge{background:white;color:#606772;border:1px solid #dfe3e7;font-size:11px;padding:4px 10px}.badge.connected{background:#fff;border-color:#dce5df;color:#3e6850}.badge.connected::before{content:'';display:inline-block;width:6px;height:6px;background:#498760;border-radius:50%;margin-right:6px}
.heading{padding:28px 0 22px;align-items:center}.heading h1{font-size:27px;font-weight:700;letter-spacing:-.8px}.subtitle{color:#6e737c;font-size:13px;margin-top:6px}.eyebrow,.section-kicker{display:none}
.primary,.heading .primary{background:#292c32;color:white;border:1px solid #292c32;border-radius:7px;box-shadow:none;font-size:12px;font-weight:600;padding:9px 15px}.primary:hover:not(:disabled){background:#444850;border-color:#444850}.quiet{color:#414751;border-color:#dfe2e7;background:#fff;font-size:12px;border-radius:7px;padding:8px 13px}.quiet:hover:not(:disabled){background:#f4f5f7;border-color:#c8cdd5}.card{background:white;border-color:var(--line);border-radius:9px}
.connection{background:#fafbfc;border-color:#e2e5e9;border-radius:8px;padding:14px 17px;margin-bottom:22px}.connection h2{font-size:13px;color:#32363d}.connection p{font-size:12px}.connect-icon{background:#edf0f3;color:#647080}.connection .primary{background:#292c32;border-color:#292c32;color:#fff}.connection details{font-size:11px;color:#6d737d}.connection.connected{background:white;border:0;border-bottom:1px solid #eef0f3;border-radius:0;padding:0 0 12px;margin-bottom:14px;gap:12px}.connection.connected .message{font-size:11px;color:#707782}.connection.connected .quiet{font-size:11px;color:#6d7480}.connection.connected .connect-copy{min-width:0}
input:not([type=range]):not([type=checkbox]),select,textarea{background:#fff;color:#272c34;border-color:#d9dde3;border-radius:6px;font-size:13px}input::placeholder,textarea::placeholder{color:#969ba4}input[type=range]{accent-color:#566473;height:5px}input[type=checkbox]{width:15px;height:15px;accent-color:#434d5b;flex-shrink:0}select{min-height:38px}
/* Library: compact tabs, visible portraits, filters anchored to the left. */
.sidebar-filters{margin-top:25px;padding-top:21px;border-top:1px solid #e0e3e7}.filter-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.filter-heading h2{font-size:12px;letter-spacing:0}.filter-reset{border:0;padding:3px;background:none;font-size:11px;color:#727984}.sidebar-filters>label{display:block;font-size:11px;color:#6c737d;margin-bottom:7px}.sidebar-filters select{width:100%;font-size:12px;background:white}.sidebar-filters fieldset{padding:0;border:0;min-width:0;margin:22px 0 0}.sidebar-filters legend{font-size:12px;font-weight:600;color:#363c46;margin-bottom:8px}.sidebar-filters legend span{display:block;color:#858b94;font-size:10px;font-weight:400;margin-top:3px}.category-filters{display:grid;gap:1px}.category-check{display:flex;align-items:center;gap:8px;padding:6px 3px;font-size:12px;color:#656d78;cursor:pointer;border-radius:4px}.category-check:hover{background:#eceef1;color:#242930}.category-check:has(input:checked){color:#292f39;font-weight:600}.category-check span{flex:1;min-width:0}.category-check small{font-size:10px;font-weight:400;color:#828a95}
.library-toolbar{gap:16px}.collection-tabs{gap:20px;border-bottom:1px solid #e3e6ea}.collection{color:#7b818b;font-size:13px;padding:7px 0 14px}.collection.active{color:#272c34}.collection.active::after{background:#373e4b;height:2px}.collection span{color:#828a95;font-size:10px;margin-left:6px}.filters{padding:0}.search-field{max-width:440px;background:#fff;border-color:#d9dfe6;min-height:40px;border-radius:7px}.search-field span{color:#747e8b}.search-field input:not([type=range]){font-size:13px}.library-notice{font-size:11px;color:#777e88;margin:4px 0 18px}
.voice-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px}.voice-tile{border:1px solid #e1e4e9;background:#fff;border-radius:10px;padding:19px;box-shadow:none;gap:15px}.voice-tile:hover{background:#fff;border-color:#b2bbc7;box-shadow:0 3px 12px #26324106}.voice-tile.is-playing{border-color:#6582be;background:#fff}.tile-top{gap:14px}.tile-avatar{width:62px;height:62px;border-radius:11px;background:#edf0f3;color:#627081}.tone-1,.tone-2,.tone-3,.tone-4{background:#edf0f3;color:#626e7c}.voice-name{font-size:15px;color:#20262e;font-weight:650}.voice-name:hover{color:#315bd6}.tile-meta{font-size:11px;line-height:1.6;color:#7a828e;margin-top:4px}.tags{gap:6px}.tag,.state-chip{font-size:10px;color:#6d7581;background:#f3f4f6;border-radius:4px}.state-chip.ready{background:#f0f5f1;color:#4e7058}.tile-actions{border-top-color:#eef0f3;padding-top:12px}.tile-actions button{background:white;border:1px solid #dfe3e8;border-radius:6px;font-size:11px;color:#444e5b;padding:7px 9px}.tile-actions .edit-profile,.tile-actions .use-voice{border:0;background:none;color:#6a7481}.tile-actions .use-voice{color:#315bd6}.preview-toggle.is-playing,#detailPreview.is-playing,#preview.is-playing{background:#f0f3f8;color:#315bd6;border-color:#b8c7e3}.inline-preview progress,.inline-preview progress::-webkit-progress-bar{background:#e7eaf0}.inline-preview progress::-webkit-progress-value{background:#677eab}.inline-preview span{color:#60748f}.pagination{color:#777f8b}
.empty-state{background:#fafbfc;border:1px dashed #d4dbe4;border-radius:9px;padding:50px 25px;margin:12px 0}.empty-icon{color:#818d9d;font-size:30px}.empty-state h3{font-size:18px;color:#343d4a;margin:12px 0 7px}.empty-state p{color:#798390;font-size:13px;line-height:1.9}.empty-state .primary{margin-top:22px}
/* Projects: document previews, no decorative hero or fake audio waveforms. */
.project-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:27px 0 22px}.project-list-heading h2{font-size:15px;font-weight:600;color:#4b525d;letter-spacing:0}.project-list-heading h2 span{font-size:11px;color:#8c95a2;padding-left:7px}.project-list-actions{display:flex;align-items:center;gap:8px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:20px}.project-card{padding:0;display:flex;flex-direction:column;overflow:hidden;text-align:left;min-width:0;border:1px solid #dfe3e9;border-radius:10px;background:#fff;color:#292f39;transition:border-color .15s,box-shadow .15s}.project-card:hover{border-color:#aeb9c9;box-shadow:0 4px 16px #2633450a}.project-cover{height:76px;background:#f6f7f9;border-bottom:1px solid #eceff3;display:flex;align-items:center;gap:12px;padding:20px}.project-symbol{display:grid;place-items:center;width:34px;height:39px;border:1px solid #d7dde6;border-radius:6px;background:#fff;color:#7a899e;font-size:23px}.project-kind{font-size:11px;color:#7f8997;letter-spacing:0}.project-card-info{padding:20px 20px 18px}.project-card-info strong{font-size:16px;font-weight:650;display:block;color:#2a3039}.project-card-info>p{font-size:11px;color:#7d8693;margin-top:6px}.project-card-info .project-card-excerpt{font-size:12px;color:#6c7786;line-height:1.85;margin-top:17px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px}.project-card-foot{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #edf0f3;padding:12px 20px;font-size:10px;color:#8a94a2;margin-top:auto}.project-storage-note{font-size:11px;color:#8b95a3;margin:25px 0}
/* Editor: compact document header, white paragraphs and a separate inspector. */
main:has(#projectWorkbench:not([hidden])) .heading{display:none}main:has(#projectWorkbench:not([hidden])) .connection{margin-top:14px;margin-bottom:19px}
.project-topbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid #e6e9ee}.project-topbar #projectTitle{flex:1;min-width:170px;font-size:18px;font-weight:650;padding:5px 8px;color:#262d37;border-color:transparent;background:transparent}.project-topbar #projectTitle:focus{border-color:#b6c4db}.project-topbar #projectSaveState{font-size:10px;color:#7f8d9c;white-space:nowrap}.project-topbar>.quiet{font-size:11px;padding:7px 10px}
.project-workspace{display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:28px;align-items:start}.script-column{min-width:0}.script-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 19px}.script-toolbar h2{font-size:14px;font-weight:600;letter-spacing:0}.script-toolbar h2 span{display:inline-block;margin-left:12px;font-size:11px;color:#929ba8;font-weight:400}.script-toolbar>.quiet{font-size:11px;padding:6px 11px}.scene-list{display:grid;gap:16px}.scene-card{border:1px solid #e0e5eb;background:#fff;border-radius:8px;overflow:hidden;min-width:0}.scene-card.selected{border-color:#91a8d4;box-shadow:inset 3px 0 #587bbe}.scene-top{display:flex;align-items:center;gap:10px;padding:11px 15px;border-bottom:1px solid #eff1f4;background:#fafbfc}.scene-card.selected .scene-top{background:#f7f9fc}.scene-number{background:none;border:0;color:#939ead;font-size:11px;padding:2px 0;font-variant-numeric:tabular-nums;min-width:22px}.scene-speaker{background:#fff;border:1px solid #dfe4eb;border-radius:5px;color:#4b5a70;font-size:11px;padding:4px 9px;min-width:0;text-align:left}.scene-speaker::after{content:'⌄';padding-left:8px;color:#939ead}.scene-state{font-size:10px;color:#8a96a6;white-space:nowrap}.scene-state.ready{color:#56856a}.scene-tools{margin-left:auto;display:flex;gap:3px;flex-shrink:0}.icon-button{border:0;background:none;color:#8794a6;font-size:16px;padding:1px 5px;line-height:1.3}.icon-button:hover{color:#2f4d7b;background:#edf1f6;border-radius:4px}.scene-text{display:block;width:100%;border:0!important;border-radius:0!important;background:transparent!important;color:#303b4c!important;font-size:15px!important;line-height:1.95;padding:19px 21px!important;min-height:136px;resize:vertical}.scene-text:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #e6edf8}.scene-bottom{display:flex;align-items:center;gap:10px;padding:10px 15px;border-top:1px solid #f0f2f5;flex-wrap:wrap}.scene-settings-summary{border:0;background:none;padding:1px 0;color:#8390a1;font-size:10px;line-height:1.7}.scene-length{font-size:10px;color:#9aa4b1;margin-left:auto}.scene-play{border:0;background:none;font-size:10px;color:#566f98;padding:0}.add-scene{display:block;width:100%;border:1px dashed #d3dbe6;border-radius:7px;background:#fafbfc;color:#7d8ca1;font-size:12px;padding:13px;margin:16px 0}.add-scene:hover{background:#f2f5f9;color:#485f80;border-color:#abbdd7}.undo-row{display:flex;gap:12px;align-items:center;font-size:12px;margin:8px 0;color:#5f7088}
.project-inspector{position:sticky;top:18px;padding:18px;background:#fafbfc;border-color:#e2e6ec;border-radius:9px}.project-inspector .section-top{padding-bottom:13px;border-bottom:1px solid #e4e8ee;margin-bottom:14px}.project-inspector h2{font-size:13px;letter-spacing:0}.mini-label{color:#8995a6;font-size:10px}.project-inspector fieldset{border:0;padding:0;margin:0;min-width:0}.project-inspector fieldset>label{display:block;color:#7a889c;font-size:11px;margin:12px 0 6px}.project-inspector select{width:100%;background:#fff;border-color:#dce3ec;font-size:12px;min-height:36px;padding-top:6px;padding-bottom:6px}.inspector-voice{display:flex;gap:10px;align-items:center;margin:13px 0 11px}.inspector-voice .tile-avatar{width:35px;height:35px;border-radius:6px;font-size:13px}.inspector-voice strong{font-size:11px;line-height:1.7;display:block;color:#49596d}.inspector-voice .hint{font-size:10px;line-height:1.6;color:#8c98a9}.project-inspector .full{font-size:11px;padding:6px}.project-inspector .control{margin:16px 0 9px}.project-inspector .control label{font-size:12px;color:#58687f;font-weight:400;margin:0 0 8px}.project-inspector .control output{font-size:11px;color:#536780;font-variant-numeric:tabular-nums;padding:0 5px;background:#eef1f5;border-radius:3px}.inspector-actions{display:flex;gap:6px;margin-top:18px}.inspector-actions .quiet{font-size:10px;padding:7px 8px;flex:1}.control-help{border-top:1px solid #e3e8ef;margin-top:15px;padding-top:12px;font-size:10px;color:#8a97a9}.control-help summary{cursor:pointer}.control-note{font-size:10px;color:#7e8ca1;line-height:1.85;margin-top:8px}
.project-transport{position:sticky;bottom:10px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fffffff5;border:1px solid #d7dfe9;border-radius:9px;padding:15px 18px;margin-top:24px;box-shadow:0 4px 24px #1a335312;backdrop-filter:blur(10px)}.project-transport>div:first-child{flex:1;min-width:0}.project-transport strong{font-size:12px;color:#4b5d76}.project-transport .message{font-size:10px;line-height:1.6;color:#8794a8;margin-top:3px}.transport-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px}.transport-actions button{font-size:11px;padding:8px 11px}.project-audio{max-width:800px;margin-top:17px}#scriptDialog textarea{width:100%;margin-top:7px}#scriptDialog .primary{width:100%}
/* Remaining screens share the same neutral palette. */
.section-top h2{color:#363f4c}.editor textarea{color:#37465b;background:#fff}.editor-footer{color:#8794a8}.control output{color:#667f9f}.hint,.memory-footnote{color:#7b8a9e}.message{color:#76849a}.error{color:#b24646!important}.download{color:#315bd6}.voice-card p{color:#8b97a8}.upload-box{background:#fafbfc;border-color:#cbd5e3}.upload-box strong{color:#667a96}.upload-box span{color:#8b9aae}.clone-guide li,.clone-guide p,.info-note{color:#7d8da4}.clone-guide h2{color:#46566e}.check{color:#74849b!important}code{background:#f1f4f8;color:#4c6487}pre{background:#f6f8fa;color:#485b77;border:1px solid #e1e7ef}dialog{background:#fff;border:1px solid #d7e0eb;border-radius:12px;box-shadow:0 24px 80px #1e335533}dialog::backdrop{background:#22304960;backdrop-filter:blur(2px)}.detail-tabs button{color:#8a98ab}.detail-tabs button[aria-selected=true]{color:#375b92;border-color:#5b7eb1}#infoPanel>p,.detail-facts dd,.memory-record p{color:#697d98}.detail-facts dt,#voiceMemory{color:#8e9db1}.detail-facts a{color:#4a6c9c}.memory-record{background:#fafbfc;border-color:#e0e7ef}footer{font-size:10px;color:#9aa4b1;padding:25px 0}
/* Keep secondary labels readable; tightly group labels with their sliders. */
.project-inspector input[type=range]{display:block;margin:9px 0 0}.project-inspector .control{margin:15px 0 10px}.project-inspector .control label{margin-bottom:0}
.project-kind,.project-card-info>p,.project-card-foot,.project-storage-note,.project-topbar #projectSaveState,.script-toolbar h2 span,.scene-settings-summary,.scene-length,.scene-state,.inspector-voice .hint,.project-inspector fieldset>label,.control-help,.control-note,.project-transport .message,.mini-label,.library-notice,.tile-meta,.side-bottom p,.side-version,.category-check small{color:#697482}
.scene-state.ready{color:#417356}.project-topbar #projectSaveState{font-size:11px}.scene-settings-summary{font-size:11px}.project-card-foot{font-size:11px}.project-storage-note{font-size:12px}.project-inspector .section-top{margin-bottom:10px}.inspector-voice{margin:10px 0}.project-inspector fieldset>label{margin-top:10px}
main:has(#projectWorkbench:not([hidden]))>footer{display:none}
@media(min-width:1600px){main{padding:0 48px}.project-workspace{grid-template-columns:minmax(0,1fr) 290px;gap:36px}.scene-text{min-height:160px}}
@media(max-width:1100px){.shell{grid-template-columns:195px minmax(0,1fr)}main{padding:0 25px}.sidebar{padding:24px 12px}.project-workspace{grid-template-columns:minmax(0,1fr) 238px;gap:19px}.project-inspector{padding:15px}.project-topbar #projectSaveState{order:5;width:100%}.project-transport{align-items:flex-start;flex-direction:column;gap:12px}.transport-actions{justify-content:flex-start;width:100%}.script-toolbar h2 span{display:block;margin-left:0;margin-top:3px}.scene-speaker{font-size:10px}.scene-top{gap:7px;padding:10px}.scene-text{padding:17px!important}.script-toolbar{gap:9px;flex-wrap:wrap}}
@media(max-width:900px){.project-workspace{grid-template-columns:minmax(0,1fr)}.project-inspector{position:static}.project-inspector fieldset{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.project-inspector fieldset>label,.project-inspector fieldset>select,.inspector-voice,.project-inspector .full,.inspector-actions,.control-help{grid-column:1/-1}.project-inspector .control{min-width:0}.project-inspector{padding:20px}.project-list-heading{margin-top:20px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;padding:16px 18px;overflow:visible;background:#f7f8f9;border-color:#e0e5ec}.sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:16px;gap:4px}.nav{font-size:10px;padding:9px 2px;gap:6px;margin:0}.nav-icon{width:18px;height:18px}.nav-label,.side-bottom{display:none}.brand{font-size:22px;padding:0}.mark{width:30px;height:33px;font-size:29px}.sidebar-filters{margin-top:18px;padding-top:15px}.filter-heading{margin-bottom:12px}.sidebar-filters>label{display:inline;margin-right:8px}.sidebar-filters select{width:auto;max-width:170px;min-height:34px}.sidebar-filters fieldset{margin-top:16px}.sidebar-filters legend span{display:inline;margin-left:8px}.category-filters{display:flex;flex-wrap:wrap;gap:5px;max-height:140px;overflow-y:auto}.category-check{border:1px solid #dce2e9;border-radius:5px;padding:5px 8px;font-size:11px;background:white}.category-check:has(input:checked){border-color:#8fa1bd;background:#fff}.category-check small{margin-left:4px}main{padding:0 18px}header{height:49px}.breadcrumb{font-size:10px}.badge{font-size:10px}.heading{padding:22px 0 17px}.heading h1{font-size:25px}.subtitle{font-size:11px}.connection.connected .message{font-size:10px}.connection.connected{padding:0 0 10px;margin-bottom:14px}.project-list-heading{gap:10px;flex-wrap:wrap;margin:20px 0 17px}.project-list-heading h2{font-size:13px}.project-list-actions{gap:7px}.project-list-actions button{font-size:11px;padding:8px 11px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.project-cover{padding:15px;height:66px;gap:9px}.project-kind{font-size:10px}.project-card-info{padding:16px}.project-card-info strong{font-size:14px}.project-card-info .project-card-excerpt{font-size:11px}.project-card-foot{padding:11px 15px;font-size:9px;flex-wrap:wrap}.project-topbar{gap:7px;padding-bottom:16px;margin-bottom:18px}.project-topbar #projectTitle{font-size:15px;min-width:150px}.project-topbar>.quiet{font-size:10px;padding:6px 9px}.project-transport{bottom:6px;padding:13px}.transport-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.transport-actions button{font-size:11px;padding:8px 6px}.voice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.voice-tile{padding:15px}.tile-avatar{width:52px;height:52px}.voice-name{font-size:14px}.tile-actions{flex-wrap:wrap}.collection-tabs{gap:22px}.collection{font-size:12px;padding:8px 0 12px}.search-field{max-width:none}.library-notice{font-size:10px}.project-storage-note{font-size:10px}}
@media(max-width:520px){.project-grid,.voice-grid{grid-template-columns:1fr}.project-card-info{padding:18px}.project-card-info strong{font-size:15px}.project-card-excerpt{min-height:0!important}.project-cover{height:64px}.project-inspector fieldset{gap:0 13px}.project-inspector .control label{font-size:11px}.scene-settings-summary{font-size:9px}.scene-length{font-size:9px}.scene-speaker{max-width:140px}.scene-state{font-size:9px}.scene-tools{gap:0}.icon-button{padding:0 4px}.scene-text{font-size:14px!important}.scene-bottom{padding:10px 12px}.project-topbar #projectTitle{flex-basis:150px;min-width:0}.project-transport .message{font-size:10px}.scene-top{gap:6px}}
