:root{color-scheme:dark;--bg:#111614;--panel:#191f1c;--panel-2:#1e2621;--edge:#2c3630;--soft-edge:#253029;--text:#e9eee9;--muted:#96a39a;--dim:#6a7c70;--accent:#c7e8b5;--accent-dark:#1e321c;--danger:#eaa4a4;--font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{color:inherit}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button,a{transition:background .18s,color .18s,border-color .18s,opacity .18s}button{border:0;background:none}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}svg use{pointer-events:none}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}button svg{vertical-align:middle}h1,h2,h3,p{margin:0}h2{font-size:18px;line-height:1.4;font-weight:570;letter-spacing:-.4px}h3{font-weight:550}strong{font-weight:560}[hidden]{display:none!important}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--soft-edge)}.brand{display:flex;align-items:center;font-size:25px;font-weight:620;letter-spacing:-1px;gap:9px}.brand-mark{height:36px;width:36px;color:var(--accent)}.brand-mark svg{width:100%;height:100%;stroke:none}.brand-divider{height:21px;background:var(--edge);width:1px;margin:0 12px}.brand-caption{font-size:10px;letter-spacing:2.2px;font-weight:500;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:20px}.save-status{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:7px}.save-status>span:first-child{width:5px;height:5px;border-radius:50%;background:#a3c990}.avatar{display:flex;align-items:center;justify-content:center;height:32px;width:32px;background:#303c31;color:#cce2be;font-size:13px;border:1px solid #3b4c3c;border-radius:50%;font-family:Georgia,serif}.icon-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--muted);flex-shrink:0}.icon-button:hover{background:#ffffff0a;color:var(--text)}.icon-button svg{width:18px;height:18px}main{max-width:1600px;margin:auto;padding:32px 40px 16px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:29px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--accent);font-weight:550;display:block}.tiny-star{margin-right:6px;font-size:13px}h1{font-size:33px;letter-spacing:-1.1px;font-weight:520;line-height:1.3;margin:9px 0 6px}h1 em{font-family:Georgia,"Times New Roman",serif;font-weight:normal;font-size:1.08em;color:#d4dfcd}.page-heading p{font-size:12px;color:var(--muted)}.heading-actions{display:flex;align-items:center;gap:10px}.button{min-height:42px;display:inline-flex;gap:9px;align-items:center;justify-content:center;border-radius:8px;padding:10px 15px;font-size:12px;font-weight:550;white-space:nowrap;line-height:1.35}.button svg{width:17px;height:17px}.button.primary{background:var(--accent);color:#1d2d1b;border:1px solid var(--accent)}.button.primary:hover{background:#dcf4ce;border-color:#dcf4ce}.button.secondary{background:#1b231e;border:1px solid #334037;color:#c9d4cc}.button.secondary:hover{background:#263229;border-color:#4b604f}.button .trailing{margin-left:8px;width:16px}.full{width:100%}.workspace{display:grid;grid-template-columns:336px minmax(0,1fr);min-height:690px;height:calc(100vh - 284px);max-height:900px;gap:20px}.editor{background:var(--panel);border:1px solid var(--edge);border-radius:12px;display:flex;flex-direction:column;min-height:0;overflow:hidden}.editor-tabs{display:flex;border-bottom:1px solid var(--edge);padding:0 15px;height:55px;flex-shrink:0;gap:6px}.editor-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;font-size:11px;color:var(--muted);position:relative;padding:0 3px;white-space:nowrap}.editor-tabs button:after{content:"";position:absolute;bottom:-1px;width:100%;height:2px;background:transparent;left:0}.editor-tabs button.active{color:var(--accent)}.editor-tabs button.active:after{background:var(--accent)}.editor-tabs button:hover{color:var(--text)}.editor-tabs svg{width:15px;height:15px}.editor-tabs button #peopleCount{display:inline-flex;align-items:center;justify-content:center;font-size:9px;background:#34402f;color:var(--accent);border-radius:4px;min-width:17px;padding:1px 3px;margin-left:0}.editor-scroll{overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#3a483e transparent}.tab-panel{padding:21px 20px 14px}.panel-intro{margin-bottom:20px}.panel-intro p{color:var(--muted);font-size:11px;margin-top:4px;line-height:1.6}.protagonist-card{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:#292b20;border:1px solid #414432;padding:12px 13px;border-radius:9px;margin-bottom:25px}.person-orb{position:relative;display:block;width:10px;height:10px;border-radius:50%;flex-shrink:0;background:var(--person-color,#ffd27b);box-shadow:0 0 14px color-mix(in srgb,var(--person-color,#ffd27b),transparent 30%)}.person-orb:after{content:"";width:4px;height:4px;display:block;border-radius:50%;background:#fff8;position:absolute;top:3px;left:3px}.protagonist-card>div{flex:1;display:flex;flex-direction:column}.protagonist-card strong{font-size:12px;font-weight:550;color:#f0dbab}.protagonist-card div span{font-size:10px;color:#a9a28b;margin-top:2px}.protagonist-card svg{width:14px;height:14px;color:#a29b82}.small-label{font-size:8px;letter-spacing:1px;color:#c6b17f;background:#45402b;padding:3px 5px;border-radius:4px}.section-label{font-size:9px;letter-spacing:1.2px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:520}.section-label>span:last-child{letter-spacing:0;font-size:9px;color:var(--dim)}.people-list{display:flex;flex-direction:column;gap:7px}.person-card{width:100%;border-radius:8px;display:flex;align-items:center;gap:12px;text-align:left;padding:11px 12px;background:#202822;border:1px solid #2b382e;min-height:60px}.person-card:hover{background:#28322b;border-color:#475748;transform:translateX(1px)}.person-card .person-orb{width:8px;height:8px}.person-card .person-orb:after{width:3px;height:3px;top:2.5px;left:2.5px}.person-info{flex:1;min-width:0;display:flex;flex-direction:column}.person-info strong{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:160px}.person-info small{color:#7f9585;font-size:10px;margin-top:2px;font-variant-numeric:tabular-nums}.person-card .fate-pill{display:inline-flex;align-items:center;gap:4px;font-size:8px;border-radius:4px;padding:3px 5px;white-space:nowrap}.fate-pill.star{color:#bcaadf;background:#373047}.fate-pill.present{color:#9cbea6;background:#2a3c2e}.fate-pill.apart{color:#c5b18c;background:#3b3529}.fate-pill svg{height:9px;width:9px}.person-card>.card-chevron{width:12px;height:12px;color:#738276}.add-person{width:100%;margin:11px 0 2px;border:1px dashed #465243;border-radius:8px;color:#c6ddb9;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;height:39px}.add-person svg{width:15px;height:15px}.add-person:hover{background:#c7e8b509;border-color:#839d74}.note{display:flex;align-items:flex-start;gap:8px;background:#c6dfb704;border:1px solid #2b362c;border-radius:7px;padding:10px;font-size:10px;color:#93a18f;margin-top:15px}.note>svg{width:13px;height:13px;margin-top:2px;color:#8fa17e}.note p{line-height:1.6}.note strong{color:#b7c3af}.import-row{display:flex;justify-content:space-between;align-items:center;margin-top:11px;gap:8px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;color:#bdd5b0;padding:6px 0;line-height:1.5}.text-button svg{width:13px;height:13px}.text-button:hover{color:#e5f6d9}.text-button.muted{color:var(--muted)}.text-button.danger{color:var(--danger)}.editor-footer{display:flex;align-items:center;gap:6px;height:35px;border-top:1px solid var(--edge);font-size:9px;padding:0 20px;color:var(--dim);flex-shrink:0}.editor-footer .status-dot{background:#acb39b;width:4px;height:4px}.kbd-hint{margin-left:auto;font-size:14px;color:#677b61}.preview-area{display:flex;flex-direction:column;background:#171d1a;border:1px solid var(--edge);border-radius:12px;min-height:0;overflow:hidden}.preview-toolbar{height:55px;display:flex;justify-content:space-between;align-items:center;padding:0 21px;border-bottom:1px solid var(--edge);flex-shrink:0}.preview-heading{display:flex;align-items:center;gap:8px}.preview-heading strong{font-size:11px;font-weight:530}.status-dot{height:5px;width:5px;border-radius:50%;background:#aacd96;display:block;flex-shrink:0}.live-label{font-size:7px;letter-spacing:1px;color:#a4b99b;background:#283327;border:1px solid #354332;padding:2px 5px;line-height:1.2;border-radius:3px;margin-left:4px}.preview-meta{font-size:9px;color:#84978a;display:flex;align-items:center;gap:11px;font-variant-numeric:tabular-nums}.preview-meta .icon-button{margin-left:0;width:26px;height:26px}.toolbar-separator{color:#3b4a40}.canvas-stage{position:relative;min-height:300px;display:flex;flex:1;align-items:center;justify-content:center;overflow:hidden;padding:25px 24px 39px;background:radial-gradient(ellipse at 48% 57%,#2b342638,transparent 70%),#151a17}.canvas-stage:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#4f655533 .7px,transparent .7px);background-size:22px 22px;opacity:.22;pointer-events:none}.stage-decoration{position:absolute;width:330px;height:330px;border:1px solid #36462e1a;border-radius:50%;pointer-events:none}.decor-one{left:50%;top:50%;transform:translate(-50%,-50%);width:600px;height:600px}.decor-two{left:50%;top:50%;transform:translate(-50%,-50%);width:800px;height:800px}.canvas-wrap{position:relative;box-shadow:0 9px 50px #0005,0 0 0 1px #53604438;border-radius:7px;overflow:hidden;background:#080d15;flex-shrink:0;max-width:100%;max-height:100%}#previewCanvas{display:block;width:100%;height:100%;object-fit:contain}.canvas-play{position:absolute;bottom:18px;right:15px;width:32px;height:32px;border:1px solid #e0ebf126;background:#1722334d;backdrop-filter:blur(6px);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#d8e7e4;opacity:.7;transition:opacity .2s,background .2s}.canvas-play:hover{opacity:1;background:#253848cc}.canvas-play svg{height:12px;width:12px;fill:currentColor}.stage-caption{position:absolute;bottom:12px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:7px;color:#607662;font-size:9px;letter-spacing:.5px}.mini-line{width:14px;height:1px;background:#7a9562}.transport{height:63px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--edge);padding:0 22px;flex-shrink:0;background:#1b221d}.restart-button{width:24px;height:30px}.restart-button svg{width:15px;height:15px}.play-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--accent);color:#263221;flex-shrink:0}.play-button:hover{background:#e1f6d5}.play-button svg{width:14px;height:14px;fill:currentColor;stroke-width:1.6}.play-button.playing svg{fill:none;stroke-width:3}.timecode{font-size:10px;color:#c7d2ca;font-variant-numeric:tabular-nums;min-width:30px}.time-total{color:#7e9485}.scrubber{width:100%;min-width:30px;flex:1;--seek:0%;background:linear-gradient(to right,#bad6a5 var(--seek),#39473c var(--seek));height:3px;border-radius:5px;appearance:none;outline:none;cursor:pointer}.scrubber::-webkit-slider-thumb{appearance:none;width:9px;height:9px;background:#c6e4b0;border-radius:50%;box-shadow:0 0 7px #c6e4b033}.scrubber::-moz-range-thumb{width:9px;height:9px;border:0;background:#c6e4b0;border-radius:50%}.transport-divider{height:16px;width:1px;background:#3a463b;margin:0 0 0 4px}.age-label{font-size:10px;color:#9eae9c;white-space:nowrap;min-width:40px;text-align:right;font-variant-numeric:tabular-nums}.legend{height:40px;display:flex;align-items:center;justify-content:center;gap:25px;font-size:9px;color:#809687;border-top:1px solid #28352b;flex-shrink:0}.legend>span{display:flex;align-items:center;gap:6px}.legend svg{width:10px;height:10px;color:#a7b49a}.legend-trail{display:block;width:16px;height:7px;border-top:1px solid #7ba98a;transform:rotate(-18deg);border-radius:50%}.legend-split{display:block;width:14px;height:7px;border-top:1px solid #b5a47d;transform:rotate(-40deg);border-radius:50%}.page-footer{display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#667c6c;font-size:9px;gap:20px}.page-footer>span{display:flex;align-items:center;gap:5px}.page-footer svg{height:11px;width:11px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:500;color:#c5d0c6;margin-bottom:20px;position:relative}.field input:not([type=range]),.field textarea,.field select{width:100%;border:1px solid #3a463c;border-radius:7px;padding:10px 11px;outline:none;background:#121b16;color:var(--text);font-size:12px;min-width:0;transition:border-color .15s;box-shadow:0 1px 2px #0001}.field textarea{resize:vertical;min-height:88px;line-height:1.65}.field input:focus,.field textarea:focus,.field select:focus{border-color:#9dbb8c;outline:1px solid #9dbb8c44;outline-offset:0}.field input::placeholder,.field textarea::placeholder{color:#627366}.field-hint{font-size:10px;line-height:1.55;color:#7e9484;font-weight:400}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.input-unit{position:absolute;right:11px;top:35px;color:#7d9484;font-size:10px;pointer-events:none}.input-unit+input{padding-right:30px}.switch-row{display:flex;align-items:center;gap:10px;padding:11px 0;cursor:pointer}.switch-row>span:first-child{flex:1;display:flex;flex-direction:column}.switch-row strong{font-size:11px;font-weight:500}.switch-row small{font-size:9px;color:#819687;margin-top:3px}.switch-row input{position:absolute;opacity:0;width:1px;height:1px}.switch{width:29px;height:17px;background:#3a443c;border-radius:20px;position:relative;border:1px solid #465448;flex-shrink:0;transition:background .15s}.switch:after{content:"";position:absolute;width:11px;height:11px;left:2px;top:2px;background:#9baa9e;border-radius:50%;transition:transform .15s}.switch-row input:checked+.switch{background:#60794f;border-color:#7e996e}.switch-row input:checked+.switch:after{background:#def1cf;transform:translateX(12px)}.switch-row input:focus-visible+.switch{outline:2px solid var(--accent);outline-offset:3px}.divider{height:1px;background:var(--edge);margin:22px 0}.project-tools{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.theme-card{border:1px solid #334037;border-radius:7px;background:#151d17;padding:6px;text-align:left;display:flex;flex-direction:column;overflow:hidden}.theme-card.active{border-color:#abc991;box-shadow:0 0 0 1px #abc99133}.theme-card strong{font-size:10px;margin-top:7px;font-weight:500;padding-left:2px}.theme-card small{font-size:7px;color:#849780;margin:2px 0 3px 2px;white-space:nowrap}.theme-sky{display:block;width:100%;height:52px;border-radius:4px;position:relative;overflow:hidden}.midnight .theme-sky{background:radial-gradient(ellipse at 60% 60%,#21294e,#080e1a)}.aurora .theme-sky{background:radial-gradient(ellipse at 20% 10%,#376d61,#112c36 55%,#0b1424)}.ember .theme-sky{background:radial-gradient(ellipse at 60% 20%,#74483b,#2e2230 65%,#11141e)}.theme-sky:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 25% 30%,#ffffffaa 1px,transparent 1px),radial-gradient(circle at 75% 20%,#ffffff88 .5px,transparent .7px),radial-gradient(circle at 70% 65%,#ffffff88 .6px,transparent .7px),radial-gradient(circle at 15% 70%,#ffffff77 .6px,transparent .7px)}.theme-sky i{display:block;position:absolute;bottom:-5px;height:31px;width:8px;border-left:1px solid #dbbf7a;border-radius:50%;left:45%;transform:rotate(9deg)}.theme-sky i:before{content:"";height:2px;width:2px;position:absolute;top:0;left:-1px;background:#ffe9a0;border-radius:50%;box-shadow:0 0 5px #ffd96a}.theme-sky i:nth-child(2){left:28%;height:22px;border-color:#9da7de;transform:rotate(-12deg)}.theme-sky i:nth-child(3){left:68%;height:26px;border-color:#83bdb5;transform:rotate(10deg)}.aspect-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.aspect-options button{display:flex;align-items:center;flex-direction:column;border:1px solid #344036;border-radius:7px;background:#151d17;padding:13px 5px 9px;gap:4px}.aspect-options button.active{border-color:#abc991;background:#273221}.aspect-options strong{font-size:10px;font-weight:500;margin-top:4px}.aspect-options small{font-size:8px;color:#8a9b86}.aspect-icon{height:22px;width:13px;border:1px solid #afbea6;border-radius:2px;display:block}.aspect-icon.square{width:22px}.aspect-icon.landscape{height:15px;width:25px;margin-top:3px;margin-bottom:4px}.range-field>span:first-child{display:flex;align-items:center;justify-content:space-between}.range-field strong{color:var(--accent);font-size:10px}.range-field input{width:100%;accent-color:#c2dfa8;height:17px;margin:0;cursor:pointer}.range-captions{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#748b7b}.segmented{display:flex;border:1px solid #344137;border-radius:7px;padding:3px;background:#131b16;gap:4px}.segmented button{flex:1;padding:8px;border-radius:4px;font-size:11px;color:#819784}.segmented button.active{background:#34442d;color:#d8eaca}.segmented small{font-size:9px;margin-left:4px;opacity:.7}.optional{font-size:9px;color:#6f8877;font-weight:400;margin-left:4px}.audio-upload{display:flex;align-items:center;gap:10px;text-align:left;border:1px dashed #45523e;border-radius:8px;padding:13px 10px;background:#19221b;max-width:100%}.audio-upload>svg{width:18px;height:18px;color:#a9bf98}.audio-upload>svg:last-child{width:13px;height:13px;margin-left:auto}.audio-upload>div{display:flex;flex-direction:column;min-width:0}.audio-upload strong{font-size:11px;color:#c7d9bc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:202px}.audio-upload small{font-size:8px;color:#768c79;margin-top:3px;font-weight:400}.audio-controls{display:flex;justify-content:space-between}.dialog{padding:0;border:1px solid #40503f;border-radius:15px;background:#1b231d;color:var(--text);box-shadow:0 24px 100px #0008;width:470px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4b5a4c transparent}.dialog::backdrop{background:#050b08bd;backdrop-filter:blur(5px)}.dialog-header{padding:25px 25px 18px;display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #303c31}.dialog-header h2{font-size:23px;letter-spacing:-.6px;font-weight:500;margin-top:5px}.dialog-header .eyebrow{font-size:8px;letter-spacing:1.4px;color:#a2bc94}.dialog-header .icon-button{margin-top:0}.dialog-body{padding:22px 25px}.dialog-body .field:last-child{margin-bottom:0}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 25px;border-top:1px solid #303c31;background:#182019}.dialog-footer-right{display:flex;gap:8px;margin-left:auto}.dialog .button{font-size:11px;min-height:39px;padding:9px 13px}.fate-options{display:flex;flex-direction:column;gap:6px}.fate-option{display:flex;gap:10px;align-items:center;border:1px solid #334535;border-radius:7px;padding:10px;cursor:pointer;background:#151e17;position:relative}.fate-option:has(input:checked){background:#293526;border-color:#7d966b}.fate-option input{width:13px!important;height:13px;accent-color:#c3dfa9;margin:0;order:3;margin-left:auto;box-shadow:none!important;flex-shrink:0}.fate-option>span:nth-last-child(1){display:flex;flex-direction:column}.fate-option strong{font-size:11px;font-weight:500}.fate-option small{color:#8da186;font-size:9px;margin-top:2px;font-weight:400}.fate-icon{width:26px;height:26px;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1}.fate-icon.path{color:#93c9ad}.fate-icon.split{color:#dabf8f;font-size:21px}.fate-icon.memory{color:#c1afe2;font-size:23px}.person-dialog .field-grid .field{font-size:10px}.person-dialog .field-hint{font-size:9px}.color-options{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.color-option{height:25px;width:25px;border-radius:50%;background:var(--swatch);border:3px solid #1b231d;outline:1px solid transparent;box-shadow:0 0 0 1px transparent}.color-option.active{outline:1px solid var(--swatch);box-shadow:0 0 12px color-mix(in srgb,var(--swatch),transparent 70%)}.custom-color{position:relative;height:26px;width:26px;border-radius:50%;overflow:hidden;background:conic-gradient(#ed9393,#eed893,#93dbb4,#95bbeb,#c79aea,#ed9393);display:flex;align-items:center;justify-content:center;cursor:pointer}.custom-color input{position:absolute;opacity:0;width:100%;height:100%;cursor:pointer}.custom-color span{display:flex;height:20px;width:20px;align-items:center;justify-content:center;background:#203025d9;border-radius:50%;font-size:17px;line-height:1;pointer-events:none}.form-error{font-size:11px;color:#f2b5ad;background:#79463b25;border:1px solid #87584a55;padding:10px 12px;border-radius:7px;margin-top:15px}.export-summary{display:flex;align-items:center;gap:14px;margin-bottom:25px}.export-thumb{width:51px;height:67px;border-radius:5px;background:radial-gradient(ellipse at 50% 90%,#3d3e30,#0c1420);display:flex;align-items:center;justify-content:center;border:1px solid #39473e}.export-thumb svg{color:#ebd1a0;width:24px;height:24px;filter:drop-shadow(0 0 6px #f4c47377)}.export-summary>div:last-child{display:flex;flex-direction:column;min-width:0;gap:4px}.export-summary strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.export-summary span{font-size:10px;color:#92a38f}.export-includes{display:flex;align-items:center;gap:20px;color:#99b38d;font-size:10px}.export-includes span{display:flex;gap:5px;align-items:center}.export-includes svg{height:12px;width:12px}.export-local{font-size:10px;display:flex;gap:5px;align-items:center;color:#849d80}.export-local svg{height:13px;width:13px}.export-progress p{color:#879d84;font-size:10px;margin-top:12px}.progress-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:10px;gap:10px}.progress-label>span{color:#c2dea9;font-variant-numeric:tabular-nums}.progress-track{height:5px;background:#3c4c3b;border-radius:4px;overflow:hidden}.progress-track>div{height:100%;width:0;background:var(--accent);transition:width .15s}.export-result{text-align:center}.success-icon{height:40px;width:40px;background:#c7e8b51a;border:1px solid #b3d29c66;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#c7e8b5;margin:0 auto 10px}.export-result h3{font-size:20px;letter-spacing:-.5px}.export-result>p{font-size:11px;color:#9fb098;margin:6px 0 14px}.export-result video{display:block;max-height:280px;max-width:100%;border-radius:7px;margin:0 auto 18px;background:#090f13}.help-step{display:flex;gap:17px;margin-bottom:23px}.help-step>span{font-family:Georgia,serif;font-size:29px;color:#9eb88a;font-style:italic;line-height:1.2}.help-step h3{font-size:13px;margin-bottom:5px}.help-step p{font-size:11px;line-height:1.75;color:#9bab96}.help-dialog .dialog-footer{justify-content:flex-end}.help-dialog .note{margin-top:7px}.confirm-dialog .dialog-header h2{font-size:20px;margin:0}.confirm-dialog .dialog-body p{color:#a9b6a2;font-size:12px;line-height:1.8}.confirm-dialog .dialog-footer{justify-content:flex-end}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:13px 18px;background:#d1eac2;color:#22351b;font-size:12px;border-radius:10px;max-width:min(90vw,520px);box-shadow:0 10px 40px #0005;z-index:50}.toast svg{width:16px;height:16px}.toast.error{background:#edc3b7;color:#4d281e}.empty-state{padding:24px 15px;text-align:center;color:#91a58c;font-size:12px;border:1px dashed #394c38;border-radius:8px}.empty-state svg{display:block;width:26px;height:26px;margin:0 auto 9px;color:#c2dda9}.noscript{position:fixed;inset:0;z-index:100;background:#101813;display:grid;place-items:center;padding:30px;font-size:18px}.canvas-wrap.is-playing .canvas-play{opacity:0}.canvas-wrap.is-playing:hover .canvas-play{opacity:.8}.export-dialog.busy .dialog-header .icon-button{opacity:.4}.field.is-disabled{opacity:.45}.field.is-disabled input{cursor:not-allowed}.person-dialog .field input:disabled{color:#85937e}.audio-upload.loading{pointer-events:none;opacity:.5}body.exporting #exportBtn{opacity:.55;pointer-events:none}
@media(min-width:1450px){.workspace{grid-template-columns:365px minmax(0,1fr)}.tab-panel{padding:25px}.editor-tabs{padding:0 23px}.people-list{gap:8px}.person-card{min-height:63px}.panel-intro p{font-size:12px}.person-info strong{max-width:190px}.preview-toolbar{padding:0 26px}.page-heading h1{font-size:37px}.workspace{min-height:720px}}@media(max-width:1100px){main{padding:26px 24px 16px}.topbar{padding:0 24px;height:66px}.page-heading{gap:15px;margin-bottom:23px}.page-heading h1{font-size:28px}.page-heading p{font-size:11px}.heading-actions .button{font-size:11px;padding:10px 11px}.heading-actions .button .trailing{display:none}.workspace{grid-template-columns:310px minmax(0,1fr);gap:15px;min-height:660px;height:calc(100vh - 250px)}.tab-panel{padding:20px 17px 13px}.preview-toolbar{padding:0 15px}.transport{padding:0 15px;gap:9px}.legend{gap:15px;font-size:8px}.preview-meta{gap:7px}.page-footer{font-size:8px}}@media(max-width:850px){main{padding:24px 18px 16px}.topbar{padding:0 20px}.brand{font-size:24px}.top-actions{gap:12px}.avatar{display:none}.save-status{font-size:9px}.page-heading{display:block}.page-heading h1{font-size:32px}.page-heading p{font-size:12px}.heading-actions{margin-top:19px;justify-content:space-between}.heading-actions .button{font-size:12px;padding:11px 15px;min-height:43px}.heading-actions .button.primary{min-width:164px}.heading-actions .button .trailing{display:block}.workspace{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0;gap:18px}.preview-area{order:-1;min-height:500px;height:calc(75vh - 30px);max-height:790px;flex-shrink:0}.canvas-stage{min-height:200px;padding-top:20px;padding-bottom:35px}.editor{min-height:530px;max-height:none}.editor-scroll{overflow:visible}.tab-panel{padding:22px}.editor-tabs{padding:0 20px;gap:20px}.editor-tabs button{font-size:12px}.editor-tabs button svg{width:16px;height:16px}.person-info strong{max-width:65vw}.person-card{padding:13px 15px;min-height:65px}.person-info strong{font-size:13px}.person-info small{font-size:11px}.person-card .fate-pill{font-size:9px}.panel-intro p{font-size:12px}.section-label{font-size:10px}.add-person{height:44px;font-size:12px}.note{font-size:11px}.import-row .text-button{font-size:11px}.protagonist-card strong{font-size:13px}.protagonist-card div span{font-size:11px}.field{font-size:12px}.field input:not([type=range]),.field textarea,.field select{font-size:16px;padding:11px 12px}.field-hint{font-size:11px}.field .range-captions{font-size:10px}.theme-sky{height:70px}.theme-card strong{font-size:12px}.theme-card small{font-size:10px}.aspect-options button{padding:15px 6px 11px;gap:6px}.aspect-options small{font-size:10px}.aspect-options strong{font-size:12px}.segmented button{font-size:13px;padding:10px}.segmented small{font-size:11px}.audio-upload strong{font-size:12px;max-width:60vw}.audio-upload small{font-size:10px}.audio-upload{padding:17px 14px}.switch-row strong{font-size:12px}.switch-row small{font-size:10px}.switch{width:34px;height:20px}.switch:after{height:14px;width:14px}.switch-row input:checked+.switch:after{transform:translateX(14px)}.page-footer{flex-direction:column;gap:6px;text-align:center;font-size:9px;margin-top:22px;margin-bottom:10px}.editor-footer{height:38px;font-size:10px}.text-button{font-size:11px}.button.full{font-size:12px}.dialog-body .field{font-size:12px}.dialog .field-grid .field{font-size:11px}.dialog .field-hint{font-size:10px}.dialog .field input:not([type=range]),.dialog .field textarea,.dialog .field select{font-size:16px}.fate-option strong{font-size:12px}.fate-option small{font-size:10px}.fate-option{padding:12px}.help-step p{font-size:12px}.help-step h3{font-size:14px}.fate-option input{height:15px;width:15px!important}.dialog .button{font-size:12px;min-height:43px}.input-unit{top:39px}}@media(max-width:430px){.topbar{height:64px;padding:0 17px}.brand{gap:6px;font-size:23px}.brand-caption{font-size:8px;letter-spacing:1.5px}.brand-divider{margin:0 6px;height:18px}.brand-mark{height:31px;width:31px}.save-status{font-size:0;gap:0}.save-status>span:first-child{height:6px;width:6px}.top-actions{gap:12px}main{padding:22px 13px 15px}.eyebrow{font-size:8px;letter-spacing:1.4px}.page-heading h1{font-size:28px}.page-heading p{font-size:11px}.page-heading{padding:0 4px}.heading-actions{gap:8px;margin-top:18px}.heading-actions .button{font-size:11px;padding:11px 12px;min-height:43px}.heading-actions .button .trailing{display:none}.heading-actions .button.primary{min-width:150px}.preview-area{min-height:480px;height:70vh;max-height:650px}.preview-toolbar{height:47px;padding:0 13px}.preview-heading{gap:6px}.preview-heading strong{font-size:10px}.live-label{font-size:6px;margin-left:0}.preview-meta{font-size:8px;gap:7px}.preview-meta .icon-button{width:21px}.transport{height:56px;padding:0 12px;gap:8px}.timecode{font-size:9px;min-width:27px}.transport-divider{margin-left:0}.age-label{font-size:9px;min-width:35px}.legend{height:39px;font-size:7.5px;gap:12px}.legend>span{gap:4px}.legend svg{width:9px;height:9px}.legend-trail,.legend-split{width:12px}.tab-panel{padding:20px 17px}.editor-tabs{padding:0 16px;gap:10px}.dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:12px}.dialog-header{padding:22px 19px 17px}.dialog-header h2{font-size:22px}.dialog-body{padding:21px 19px}.dialog-footer{padding:16px 19px;gap:8px}.dialog .button{font-size:11px;padding:10px 12px}.dialog-footer-right{gap:6px}.dialog-footer .text-button{font-size:10px}.dialog-body .field-grid{gap:10px}.person-dialog .field-grid .field{font-size:10px}.color-options{gap:11px}.export-includes{gap:13px;font-size:9px}.help-step{gap:14px}.confirm-dialog .dialog-header h2{font-size:19px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}.person-card:hover{transform:none}}

/* Language controls and room for longer translated labels. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.language-control{display:flex;align-items:center;gap:7px;color:var(--muted);flex-shrink:0}
.language-control>svg{width:16px;height:16px}
.language-control select{max-width:125px;color:var(--text);background:#1a241c;border:1px solid #344337;border-radius:7px;padding:7px 8px;font-size:11px;cursor:pointer}
.language-control select:hover{border-color:#71866a}
.save-status #saveStatusText{width:auto;height:auto;border-radius:0;background:none}
.legend{height:auto;min-height:40px;flex-wrap:wrap;row-gap:7px;padding:9px 10px}
.fate-pill{white-space:normal;text-align:center;max-width:39%;line-height:1.35}
.theme-card small{white-space:normal;line-height:1.4;min-height:2.8em}
.range-captions{gap:12px}
.range-captions>span:last-child{text-align:right}
.export-includes{flex-wrap:wrap;row-gap:7px}
@media(max-width:700px){.save-status{display:none}.top-actions{gap:10px}}
@media(max-width:430px){.brand-divider,.brand-caption{display:none}.top-actions{gap:8px}.language-control{gap:5px}.language-control select{max-width:112px;padding:7px 6px}.heading-actions .button{flex:1;min-width:0;white-space:normal}.heading-actions .button.primary{min-width:0}.legend{gap:7px 12px}.dialog-footer-right{flex-wrap:wrap;justify-content:flex-end}.dialog-footer .button{white-space:normal}.age-label{min-width:45px}}

/* SoulThreads wordmark: keep the full name readable alongside language tools. */
.brand{flex-shrink:0}
.brand-name{display:inline-flex;align-items:baseline;font-weight:620;letter-spacing:-.9px;white-space:nowrap}
.brand-name>span{font-weight:440;color:var(--accent)}
.top-actions{flex-shrink:0}
@media(max-width:600px){.brand-divider,.brand-caption{display:none}.topbar{gap:12px}.brand-name{font-size:23px}.brand-mark{width:31px;height:31px}}
@media(max-width:430px){.brand-name{font-size:21px;letter-spacing:-.7px}.brand-mark{width:28px;height:28px}.brand{gap:6px}}
@media(max-width:350px){.topbar{padding-left:12px;padding-right:12px;gap:8px}.brand-name{font-size:20px}.brand-mark{width:25px;height:25px}.brand{gap:5px}.top-actions{gap:6px}.language-control>svg{display:none}.language-control select{max-width:95px}.top-actions .icon-button{width:28px}}
