:root{--cream:#fffaf0;--paper:#fffdf8;--vanilla:#f8f1e3;--milk:#f0e6d5;--milk2:#e9d8bc;--cocoa:#563527;--dark:#3e281f;--espresso:#251610;--muted:#947e6b;--line:#e8dcca;--accent:#ab7454;--gold:#d8b981;--rose:#e8b9a0;--shadow:0 9px 30px rgba(83,54,35,.052);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--vanilla);color:var(--dark);font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,Arial,sans-serif;font-size:13px}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}input,textarea,select{outline:none}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.timeline:focus-visible{outline:3px solid #ca9e73;outline-offset:2px}button:disabled{opacity:.45;cursor:default}button:not(:disabled){transition:background-color .18s,color .18s,transform .16s,border-color .16s,box-shadow .18s}button:not(:disabled):active{transform:translateY(1px)}button:hover:not(:disabled){filter:brightness(.985)}.hidden{display:none!important}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse 80% 20% at 48% -10%,#fffefa 0%,transparent 90%),var(--vanilla)}
.topbar{height:82px;min-height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 27px 0 29px;gap:22px;background:#fffbf3;border-bottom:1px solid #eadbc5;box-shadow:0 4px 22px rgba(63,41,24,.035);z-index:2}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-icon{width:42px;height:42px;display:grid;place-items:center;background:linear-gradient(135deg,#634334,#3b231c);border-radius:13px;box-shadow:inset 0 2px 1px #fff1d629,0 4px 8px #2a170e28;transform:rotate(-5deg)}.brand-icon span{color:#f7d8a5;font-size:29px;font-family:Georgia,serif;transform:rotate(5deg)}.brand-name{font-family:Georgia,"Yu Mincho",serif;font-size:26px;letter-spacing:-1px;font-weight:700;color:#53382b;line-height:1}.brand-name span{color:#ae7955}.brand-name i{font-family:Georgia,serif;font-size:11px;font-weight:400;letter-spacing:.8px;color:#8e7160;margin-left:5px}.brand-sub{font-size:8.3px;letter-spacing:2.1px;color:#ab9180;margin-top:7px;font-weight:700}.top-actions{display:flex;align-items:center;gap:9px}.top-version{color:#af9d8b;font-size:9px;letter-spacing:1.6px;margin-right:11px;white-space:nowrap}.btn{height:37px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ded0bb;border-radius:9px;padding:0 15px;font-size:12px;font-weight:700;white-space:nowrap}.btn.ghost{background:#fffdf8;color:#6d5442}.btn.light{background:#f5e8d3;border-color:#e5d5bc;color:#68412d}.btn.primary{background:#6a4434;border-color:#6a4434;color:#fffaf1;box-shadow:0 3px 6px #50312118}.btn.primary:hover{background:#513022}.btn:hover{box-shadow:0 3px 10px #3a20150c}
.workbench{width:100%;display:grid;grid-template-columns:300px minmax(440px,1fr) 337px;gap:16px;padding:17px;max-width:1920px;margin:0 auto;align-items:start;flex:1}.sidebar,.center-stage{min-width:0;display:flex;flex-direction:column;gap:16px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.sidebar .panel{padding:19px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.section-heading h2{margin:5px 0 0;font-size:16px;letter-spacing:.1px;line-height:1.4;font-weight:750}.eyebrow{font-family:Arial,sans-serif;color:#b99577;letter-spacing:2px;font-size:9px;font-weight:800}.mini-mark{color:#bd916b;font-size:23px;align-self:flex-start}.upload-panel .dropzone{min-height:142px;border:1.5px dashed #d7b99a;background:linear-gradient(145deg,#fffdf8,#f8f0e1);border-radius:12px;display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;cursor:pointer;gap:4px;transition:.2s}.upload-panel .dropzone:hover,.dropzone.dragover{border-color:#8c6346;background:#f7ead9}.upload-icon{width:39px;height:39px;display:grid;place-items:center;background:#f2e0c9;border-radius:50%;color:#7c4d36;font-family:Georgia,serif;font-size:25px;margin-bottom:4px}.drop-title{font-size:12px;font-weight:800;max-width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drop-detail{color:#9d8876;font-size:10px;letter-spacing:.5px}.upload-link{font-size:10px;color:#93694a;font-weight:800;margin-top:5px}.inline-imports{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.import-btn{border:1px solid #e7d7c0;background:#fbf3e6;height:35px;border-radius:8px;padding:0 5px;color:#785d48;font-size:10px;font-weight:800;cursor:pointer}.import-btn:hover{background:#f4e5ce}.microcopy{color:#97816f;font-size:10.5px;line-height:1.85;margin:11px 0 8px}.file-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#9e8167;overflow:hidden}.file-status span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:7px;height:7px;border-radius:50%;background:#a8b98c;flex:none}
.phrases-panel{display:flex;flex-direction:column;min-height:410px;max-height:calc(100vh - 410px);padding-bottom:10px!important}.list-heading{margin-bottom:12px}.count-pill{display:inline-grid;place-items:center;min-width:24px;height:22px;border-radius:9px;padding:0 5px;margin-left:3px;background:#f4e4cf;color:#80563d;font:700 10px Arial;vertical-align:2px}.icon-btn{width:31px;height:31px;border-radius:10px;border:1px solid #dac4a9;background:#f4e6d1;font-size:22px;color:#76523c;line-height:1}.list-switch{display:grid;grid-template-columns:1fr 1.2fr;gap:3px;padding:4px;background:#f5eee3;border-radius:10px;margin-bottom:10px}.switch-tab{border:0;border-radius:7px;background:transparent;padding:9px 3px;font-size:10px;color:#96826c;font-weight:800;white-space:nowrap}.switch-tab.active{background:#fffaf1;color:#694331;box-shadow:0 2px 8px #4a291216}.list-body{min-height:180px;overflow:auto;flex:1;margin-right:-9px;padding-right:9px;scrollbar-color:#d9c6b0 transparent;scrollbar-width:thin}.cue-item{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:68px;padding:9px 7px;border:1px solid transparent;border-bottom:1px solid #f0e6d9;border-radius:9px;cursor:pointer;margin-bottom:4px;position:relative}.cue-item:hover{background:#fcf5e9}.cue-item.selected{border-color:#d1ae90;background:linear-gradient(120deg,#f9ebd9,#fff9ef);box-shadow:inset 3px 0 #9b6749}.cue-index{border-radius:9px;width:30px;height:30px;background:#f5ead9;color:#9b7456;display:grid;place-items:center;font:700 11px Georgia,serif}.cue-item.selected .cue-index{background:#795039;color:#fff8e8}.cue-line{min-width:0}.cue-name{line-height:1.55;font-size:11.3px;font-weight:700;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cue-time{font:10px Arial,sans-serif;color:#ae957f;margin-top:4px}.cue-time span{color:#c8b29d;padding:0 3px}.cue-actions{display:flex;flex-direction:column;gap:2px}.cue-more{height:22px;width:23px;background:transparent;border:0;border-radius:7px;color:#a9917c;font-size:15px}.cue-more:hover{background:#f1e3d2}.tap-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:9px;border:1px solid #ecd9c3;background:#fcf6ed;border-radius:9px;margin:0 0 7px;font-size:11.5px;line-height:1.5;color:#63462e;min-height:46px}.tap-item .tap-icon{font-size:14px;color:#ae7e55}.tap-item.used{opacity:.52;background:#e9e1d5;text-decoration:line-through}.tap-hint{color:#9b8570;font-size:10px;line-height:1.8;margin:3px 1px 12px}.list-footer{border-top:1px solid #ede1d1;padding-top:12px;display:flex;justify-content:space-between;gap:7px}.text-btn{border:0;background:transparent;padding:3px 0;color:#a88260;font-size:10px;font-weight:700;text-decoration:none}.text-btn:hover{text-decoration:underline;color:#74432b}.empty-list{padding:34px 18px;text-align:center;color:#ad9783;font-size:11px;line-height:1.9}
.preview-panel{padding:0}.preview-head{padding:20px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.preview-head h2{font-size:17px;margin:5px 0 0}.preview-head h2 small{font-size:10px;font-weight:500;color:#ad9985;margin-left:10px}.preview-options,.screen-toolbar{display:flex;align-items:center;gap:12px}.small-toggle{display:flex;align-items:center;gap:6px;font-size:10px;color:#8b725e;cursor:pointer;white-space:nowrap}.small-toggle input{width:14px;height:14px;accent-color:#8b5e42}.preview-action{border:1px solid #e6d9c7;border-radius:8px;background:#fff9ee;width:32px;height:32px;font-size:18px}.screen-toolbar{background:#fbf4e9;min-height:44px;border-top:1px solid #eee1cf;border-bottom:1px solid #eee1cf;padding:7px 20px}.toolbar-label{font-size:10px;color:#9e8a78;font-weight:800;white-space:nowrap}.screen-toolbar select{font-size:11px;font-weight:750;padding:7px 25px 7px 10px;border:1px solid #e2d4bf;background:#fffdf9;border-radius:7px;max-width:230px}.custom-size{display:flex;align-items:center;gap:4px}.custom-size input{width:66px;min-width:0;padding:5px;border:1px solid #e7d9c6;border-radius:7px;background:#fff}.stage-hint{font-size:10px;color:#b19b83;margin-left:auto;text-align:right}.preview-area{padding:22px 26px 23px;background:radial-gradient(circle at 50% 38%,#eee3d1,#e8ddcc 70%);background-image:radial-gradient(#d6cab9 .75px,transparent .75px),radial-gradient(circle at 50% 38%,#eee3d1,#e8ddcc 70%);background-size:12px 12px,auto;background-position:0 0,0 0}.stage-mat{max-width:1040px;margin:auto}.canvas-wrap{background:#473029;position:relative;max-height:58vh;box-shadow:0 14px 32px #42291832,0 0 0 7px #f9f2e8;overflow:hidden;cursor:crosshair;user-select:none;touch-action:none;border:1px solid #604435}.canvas-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:16/9}.canvas-grain{pointer-events:none;position:absolute;inset:0;background:linear-gradient(transparent 50%,rgba(0,0,0,.025) 50%);background-size:auto 4px;mix-blend-mode:soft-light}.stage-ruler{height:18px;display:flex;align-items:center;justify-content:space-between;font:10px Arial;color:#ac9783}.bottom-ruler{margin-top:3px}.preview-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;gap:12px;border-top:1px solid #ede2d3;font-size:10px;color:#a18b78}.preview-badge{font:700 9px Arial;letter-spacing:1.5px;color:#947358;white-space:nowrap}.live-dot{width:6px;height:6px;background:#92b48b;border-radius:50%;display:inline-block;margin-right:5px;box-shadow:0 0 0 3px #cbdac2}.pill-muted{font:800 9px Arial;border:1px solid #e8dccc;background:#fcf7ef;padding:6px 8px;color:#b4a18a;border-radius:5px;white-space:nowrap}
.transport-panel{padding:16px 21px 18px}.transport-header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.time-group{display:flex;align-items:baseline;gap:8px;font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}.time-now{font-size:22px;font-weight:800;color:#5c3f2e;letter-spacing:.3px}.time-separator{font-size:16px;color:#cebea8}.time-total{font-size:12px;color:#ad9985}.transport-buttons{display:flex;align-items:center;gap:7px}.tiny-btn{height:29px;min-width:31px;border:1px solid #ebdfce;border-radius:7px;background:#fffaf2;color:#8e7056;font-size:12px;font-weight:700}.play-btn{width:44px;height:42px;border-radius:12px;background:#6b4330;color:#fff8e9;border:1px solid #5e382a;font-size:19px;box-shadow:0 4px 8px #5b2c271b}.transport-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.timeline-label{display:flex;align-items:center;justify-content:space-between;margin:17px 0 6px;font:800 9px Arial;letter-spacing:1.1px;color:#b19a84}.timeline-label span:last-child{font-weight:500;letter-spacing:0}.timeline{height:75px;position:relative;border:1px solid #e9dccb;border-radius:10px;overflow:hidden;background:#fbf5ed;cursor:crosshair;touch-action:none}.timeline-grid{position:absolute;inset:0;background:repeating-linear-gradient(to right,transparent,transparent calc(10% - 1px),#e5d8c6 calc(10% - 1px),#e5d8c6 10%)}.timeline-cues{position:absolute;inset:0}.cue-bar{position:absolute;display:block;height:13px;top:21px;border:1px solid #caa078;border-radius:4px;background:#ead0b0;overflow:hidden;cursor:pointer;min-width:2px}.cue-bar:nth-child(3n+2){top:38px;background:#dbb78e}.cue-bar:nth-child(3n){top:55px;background:#cda782}.cue-bar.active{background:#87583d;border-color:#6d422d;box-shadow:0 0 0 1px #fff7ec}.playhead{height:100%;position:absolute;top:0;left:0;pointer-events:none;border-left:2px solid #a65842;z-index:4}.playhead:before{content:"";position:absolute;top:0;left:-5px;width:9px;height:11px;background:#a65842;border-radius:2px 2px 4px 4px}.playhead span{display:none}.transport-footer{display:flex;align-items:center;gap:14px;margin-top:10px;color:#a18b77;font-size:9px;flex-wrap:wrap}.transport-footer span{white-space:nowrap}.transport-footer i{width:10px;height:10px;border-radius:3px;display:inline-block;vertical-align:-1px;margin-right:4px}.legend-cream{background:#e3bc91}.legend-brown{background:#855239}.keyboard-hint{margin-left:auto;color:#b5a28c}.support-panel{display:flex;align-items:start;padding:19px 24px;gap:14px;background:linear-gradient(120deg,#fbf4e7,#fffaf1)}.support-ornament{font-size:28px;color:#b48c66}.support-panel strong{color:#785540;font-size:12px}.support-panel p{font-size:10.5px;line-height:1.9;color:#9c866f;margin:5px 0 0}
.settings-panel{padding:19px!important}.edit-current{padding:12px 13px;border-radius:10px;background:#f9f1e7;border:1px solid #ead9c6;margin-bottom:16px}.edit-current .eyebrow{font-size:9px}.edit-current #selectedNumber{float:right;font:800 10px Arial;color:#ad927b}#cueText{display:block;width:100%;padding:10px 10px;background:#fffdf7;border:1px solid #dfccb6;border-radius:8px;resize:vertical;min-height:62px;margin-top:7px;line-height:1.7;font-weight:650;font-size:12px}#cueSelectedHint{font-size:9px;color:#af9781;margin:8px 0 0;line-height:1.4}.setting-group{border-top:1px solid #ecdfce;padding-top:15px;margin-top:15px}.group-title{display:flex;align-items:center;gap:7px;font-size:12px;margin-bottom:14px;color:#6a4938}.group-title>span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#f3e5d5;color:#8a5d43;font-size:15px}.group-title small{margin-left:auto;font-size:9px;color:#b3a08c;font-weight:400}.form-field{display:flex;flex-direction:column;gap:7px;font-size:10px;color:#987f69;font-weight:700;min-width:0}.form-field input,.form-field select{width:100%;height:32px;padding:6px 9px;background:#fffdf8;border:1px solid #e5d6c4;border-radius:7px;font-size:11px;color:#684f3d}.form-field input:focus,.form-field select:focus{border-color:#a97f63}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}.small-row{display:flex;gap:7px;margin-top:9px}.mini-button{flex:1;min-width:0;background:#f9efe2;border:1px solid #e7d6bf;border-radius:7px;font-size:9px;padding:8px 4px;font-weight:700;color:#9b7658}.mini-button:hover{background:#f0dec6}.range-field{margin:13px 0}.range-field>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.range-field label{font-size:10px;color:#947a66;font-weight:700}.range-field output{font:800 10px Arial;color:#715341;background:#f7eee3;padding:4px 7px;border-radius:5px;min-width:47px;text-align:center}.range-field input,.fade-range{display:block;width:100%;accent-color:#8a5d40;cursor:pointer}input[type=range]{appearance:none;-webkit-appearance:none;height:5px;background:linear-gradient(to right,#b68560 0%,#d8c1a5 50%,#f2e8dc 100%);border-radius:9px;outline:none}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;border:3px solid #fff9f0;background:#85543b;border-radius:50%;box-shadow:0 0 0 1px #b58e70,0 2px 4px #472b1c2c}input[type=range]::-moz-range-thumb{width:11px;height:11px;border:2px solid #fff9f0;background:#85543b;border-radius:50%}.field-row{display:flex;gap:10px;margin-top:12px}.grow{flex:1}.short{flex:0 0 87px}.color-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#907662;font-weight:700;margin:12px 0}.color-control{display:flex;align-items:center;gap:6px}.color-swatch{width:27px;height:27px;border-radius:50%;border:3px solid #fffaf3;box-shadow:0 0 0 1px #d9c7b5,0 1px 3px #56402a33;flex:none}.color-hex{width:77px;height:28px;border-radius:7px;border:1px solid #e8d9c6;background:#fffdf9;padding:5px 7px;font:800 10px Arial;color:#755844;text-transform:uppercase}.check-setting{display:flex;align-items:center;gap:9px;color:#806754;font-size:10.8px;cursor:pointer;margin:10px 0;min-height:22px}.check-setting input{appearance:none;position:absolute;opacity:0;width:1px;height:1px}.custom-check{width:17px;height:17px;display:inline-grid;place-items:center;border:1px solid #d7c2ae;border-radius:5px;background:#fffaf0;flex:none;transition:.2s}.check-setting input:checked + .custom-check{background:#8a5e44;border-color:#8a5e44}.check-setting input:checked + .custom-check:after{content:'✓';color:#fff7ec;font-size:12px;font-weight:800}.check-setting input:focus-visible+.custom-check{outline:2px solid #b48b6b}.check-setting output{margin-left:auto;font:800 10px Arial;color:#987359}.dependent.is-disabled{opacity:.42;pointer-events:none}.fade-range{margin:4px 0 15px}.global-settings{padding-bottom:5px}.background-upload{display:block;padding:9px;text-align:center;border:1px dashed #d8bda0;border-radius:8px;background:#fbf5ed;color:#936f54;font-size:10px;cursor:pointer;margin:10px 0 6px}.site-footer{padding:14px 23px;border-top:1px solid #e8dccb;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#af9a86;font:700 9px Arial;letter-spacing:1.2px;background:#fff9ed}.site-footer span:nth-child(2){letter-spacing:.3px;font-family:"Yu Mincho",serif;font-size:11px;color:#a98461}
.popover{position:fixed;z-index:30;background:#fffaf2;border:1px solid #dac3a8;border-radius:15px;padding:13px;width:259px;box-shadow:0 18px 50px #38231e48}.popover-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:800;color:#6b4835;margin-bottom:7px}.popover-head button{border:0;background:transparent;font-size:20px;color:#8d725e}.popover canvas{display:block;width:230px;height:230px;cursor:crosshair;touch-action:none}.popover-bottom{display:flex;align-items:center;gap:8px;padding:5px 4px}.popover-bottom span{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #dac6ae}.popover-bottom code{font-size:12px;font-weight:800;color:#77543c}.popover-bottom input{margin-left:auto;width:28px;height:28px;border:0;padding:0;background:transparent;cursor:pointer}.popover p{text-align:center;color:#a89078;font-size:9px;margin:8px 0 1px}
dialog{border:1px solid #e2d1bb;border-radius:17px;padding:0;max-width:min(500px,92vw);width:100%;box-shadow:0 20px 70px #3c201855;background:#fffaf2;color:#4e3022}dialog::backdrop{background:#2c1912a1;backdrop-filter:blur(3px)}.modal-inner{padding:28px 30px 26px}.modal-eyebrow{color:#b58763;font:800 9px Arial;letter-spacing:2px}.modal-inner h2{font-size:21px;margin:8px 0 8px}.modal-inner p{line-height:1.75;color:#987e66;font-size:11px}.modal-inner .form-field{margin-top:18px}.modal-note{padding:12px;background:#f6ecdd;border-radius:9px}.export-file-list{display:flex;flex-direction:column;gap:6px;border:1px solid #e8d9c8;border-radius:10px;background:#fffdf8;padding:12px 14px;color:#84664f;font:11px monospace;overflow:auto}.export-file-list span:before{content:'◫';color:#a98768;margin-right:8px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:21px}.help-inner ol{padding-left:20px;color:#775b47;line-height:1.95;font-size:12px}.help-inner li{margin-bottom:10px}.help-inner code{background:#f5e8d6;padding:3px;border-radius:3px;font-size:11px}.help-inner button{margin-left:auto;display:flex}.toast{position:fixed;z-index:40;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;min-width:220px;text-align:center;border:1px solid #a77f63;background:#5b3b2b;color:#fff9ec;box-shadow:0 9px 30px #4e271c55;border-radius:10px;padding:11px 20px;font-size:12px;transition:.24s}.toast.visible{transform:translate(-50%,0);opacity:1}
@media (max-width:1390px){.workbench{grid-template-columns:267px minmax(390px,1fr) 306px;gap:12px;padding:12px}.topbar{padding:0 16px}.sidebar .panel{padding:14px!important}.preview-area{padding:19px 20px}.top-version{display:none}.transport-right{width:100%;justify-content:flex-end}.phrases-panel{max-height:calc(100vh - 375px)}}
@media (max-width:1110px){.workbench{grid-template-columns:255px minmax(0,1fr);gap:13px}.right-sidebar{grid-column:2;grid-row:2}.right-sidebar .settings-panel{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.right-sidebar .settings-panel>.section-heading,.right-sidebar .settings-panel>.edit-current{grid-column:1/-1}.topbar{flex-wrap:wrap;height:auto;min-height:82px;padding:12px 15px}.top-actions{flex-wrap:wrap}.phrases-panel{max-height:none}.preview-area{padding:15px}}
@media (max-width:735px){.workbench{grid-template-columns:1fr}.left-sidebar,.right-sidebar{grid-column:1}.center-stage{grid-column:1;grid-row:1}.left-sidebar{grid-row:2}.right-sidebar{grid-row:3}.right-sidebar .settings-panel{display:block}.topbar{gap:12px}.top-actions{gap:5px}.top-actions .btn{height:32px;padding:0 9px;font-size:10px}.brand-name{font-size:23px}.brand-sub{font-size:7px}.stage-hint{display:none}.preview-head h2 small{display:block;margin-left:0}.preview-area{padding:14px 12px}.preview-head{padding:16px}.screen-toolbar{padding:7px 12px}.preview-foot{padding:11px}.transport-panel{padding:14px}.transport-header{justify-content:center}.transport-right{justify-content:center}.keyboard-hint{display:none}.site-footer{justify-content:center}.site-footer span:first-child,.site-footer span:last-child{display:none}}

.apply-all-btn{display:block;width:100%;border:1px solid #ddc5a7;color:#785036;background:#f7e6cf;border-radius:8px;padding:9px 4px;font-size:10px;font-weight:800;margin-top:11px;letter-spacing:.1px}.apply-all-btn:hover{background:#edd6b6}

/* Custom font upload / resource list */
.custom-font-box{margin:10px 0 14px;padding:10px 11px;border-radius:11px;background:#fcf6ec;border:1px solid #e9d8c1}
.custom-font-box .font-upload{margin:0;padding:9px 7px;background:#fffdf9;line-height:1.5;font-size:9.5px}
.font-list{display:flex;flex-direction:column;gap:6px;margin-top:7px}.font-list:empty{display:none}
.font-resource{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 7px 7px 9px;border-radius:7px;border:1px solid #e6d6c2;background:#fffdf8}
.font-resource>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.font-resource strong{font-size:10px;color:#69503d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.font-resource small{font-size:9px;color:#a38670;line-height:1.3}
.font-resource.missing{border-color:#d3ab82;background:#fff8ec}.font-resource.missing small{color:#aa653d}
.font-resource button{height:23px;width:23px;flex:none;border:1px solid #e8d9c6;border-radius:6px;background:#f7ebde;color:#866047;font-size:15px}
.font-hint{font-size:9px;color:#9c816d;line-height:1.65;margin:7px 0 0}
.font-hint code{background:#efe1cd;border-radius:4px;padding:1px 3px;font-size:9px;color:#73503a}

/* v1.2 - font-only safety export */
.font-only-button{margin:10px 0 2px;width:100%;padding:9px 12px;font-size:12px;white-space:normal}

/* v2.0 - synchronized end credits editor */
[data-mode="lyrics"] .credits-only,[data-mode="lyrics"] .endroll-only,[data-mode="endroll"] .lyrics-only,[data-mode="endroll"] .credits-only,[data-mode="credits"] .lyrics-only,[data-mode="credits"] .endroll-only{display:none!important}
.workspace-switch{display:flex;align-items:center;gap:9px;padding:10px 23px;background:#faf2e6;border-bottom:1px solid #e5d6bd}
.workspace-tab{height:38px;background:#fffdf7;color:#8f745d;border:1px solid #e3d4c0;border-radius:10px;padding:0 18px;font-size:12px;font-weight:800;white-space:nowrap}
.workspace-tab.active{background:#644331;border-color:#644331;color:#fffaf0;box-shadow:0 3px 12px #5b3b2a23}
.workspace-caption{margin-left:auto;color:#b29b84;letter-spacing:.2px;font-size:10px}
.credits-library .dropzone{min-height:126px;border:1.5px dashed #d7b99a;background:linear-gradient(140deg,#fffdf7,#f6e9d6);border-radius:12px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;cursor:pointer;text-align:center}
.credits-library .dropzone:hover,.credits-library .dropzone.dragover{border-color:#8c6346;background:#f6e7d3}
.media-library-list{display:flex;flex-direction:column;gap:7px;margin-top:14px;max-height:290px;overflow-y:auto}
.media-resource{display:flex;gap:9px;align-items:center;border:1px solid #e7d9c9;border-radius:9px;background:#fffcf7;padding:7px;text-align:left;min-width:0}
.media-resource.active{background:#f4e7d5;border-color:#ae8566}
.media-thumb{width:52px;height:43px;flex:none;border-radius:6px;background:#4e3225;display:grid;place-items:center;color:#fff3e0;font-size:23px;overflow:hidden}
.media-thumb img,.media-thumb video{width:100%;height:100%;object-fit:cover}
.media-meta{min-width:0;flex:1}.media-meta strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-meta small{display:block;font-size:9px;margin-top:4px;color:#a9907b}
.media-add{min-width:32px;height:32px;border-radius:9px;background:#805842;color:#fff9ee;border:0;font-weight:800;font-size:18px}.media-remove{background:transparent;border:0;color:#ae8e76;font-size:19px;padding:4px}
.credits-clips{display:flex;flex-direction:column;min-height:300px;max-height:calc(100vh - 550px)}
.credits-clips #clipList{min-height:130px}.clip-item{grid-template-columns:32px minmax(0,1fr) auto}.clip-item .cue-name{white-space:nowrap;text-overflow:ellipsis;display:block}
.clip-selected-name{margin-top:9px;font-size:13px;font-weight:800;overflow-wrap:anywhere;color:#6b4a37}
.credits-editor .edit-current{margin-bottom:9px}.credits-editor .check-setting{font-size:11px}.credits-editor select{font-size:11px}
.credits-export-hint{border:1px solid #e4cfb0;background:#faf0df;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:7px;line-height:1.7;color:#7e5a40;font-size:11px}
.credits-export-hint strong{font-size:11px}.credits-export-hint span{font-size:10px}
.credits-export-hint code{font-size:10px;background:#eddec9;border-radius:3px;padding:2px}
.timeline-cues.credits-only .cue-bar{background:#b79f89;bottom:4px;height:19px}
.timeline-cues.credits-only .cue-bar.active{background:#71462f}
.timeline-cues.credits-only .cue-bar.has-fade:after{content:'';position:absolute;left:0;top:0;bottom:0;width:20%;background:linear-gradient(90deg,#f2e2beaa,transparent)}
.preview-options .small-toggle{white-space:normal}
@media(max-width:1100px){.workspace-caption{display:none}.credits-clips{max-height:none}.credits-editor{grid-column:2}}
@media(max-width:735px){.workspace-switch{padding:9px 13px}.workspace-tab{flex:1;padding:0 7px;font-size:11px}.credits-editor{grid-column:1}}

/* v2.2 - in-app usage guide and nonofficial attribution */
#helpDialog{max-width:min(650px,94vw);max-height:min(88vh,900px);overflow-y:auto;overscroll-behavior:contain}
#helpDialog .help-recipe{border:1px solid #e3d0b5;background:#fff8ec;border-radius:12px;padding:16px;margin:18px 0}
#helpDialog .help-recipe h3{margin:0 0 9px;color:#62412f;font-size:14px}
#helpDialog .help-recipe p{margin:8px 0;color:#856b54;line-height:1.7}
#helpDialog .help-recipe pre{margin:12px 0;padding:16px;border-radius:10px;background:#422b22;color:#fff3df;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;line-height:1.85;font:12px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace}
#helpDialog .help-recipe pre code{background:none;color:inherit;padding:0;font:inherit}
#helpDialog .help-recipe-extra{border-top:1px solid #e6d4c0;margin-top:12px;padding-top:12px;font-size:12px}
#helpDialog .help-recipe-extra strong{color:#62412f}
#helpDialog .help-recipe-extra code{white-space:normal;overflow-wrap:anywhere}
#helpDialog .help-nonofficial{background:#f5eee4;border-left:3px solid #af8769;padding:12px 14px;border-radius:6px;color:#765640}


/* v2.6 - scrolling endroll cards */
.nonlyrics-only{}
[data-mode="lyrics"] .nonlyrics-only{display:none!important}
.timeline-cues.endroll-only .cue-bar{background:#d2c1a7;bottom:24px;height:15px}
.timeline-cues.endroll-only .cue-bar.active{background:#8a6246}
.endroll-list-panel{display:flex;flex-direction:column;min-height:320px;max-height:calc(100vh - 520px)}
.endroll-editor .clip-selected-name{margin-bottom:8px}
.endroll-card-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;background:#f1e1cb;color:#80573f;font-size:10px;font-weight:800;margin-bottom:6px}
.endroll-card-editor .form-field textarea,.endroll-card-editor textarea{width:100%;min-height:108px;padding:10px;border:1px solid #e4d4c0;border-radius:8px;background:#fffdf9;resize:vertical}
.endroll-card-editor .entry-row{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;align-items:end;margin:0 0 8px}
.endroll-card-editor .entry-row button{height:34px;width:34px;border:1px solid #e7d8c6;border-radius:8px;background:#f7ebde;color:#866047;font-size:18px}
.endroll-card-editor .editor-actions{display:flex;justify-content:space-between;gap:8px;margin-top:10px}
.endroll-card-editor .mini-button.full{width:100%}
.endroll-card-editor .micro-note{font-size:10px;color:#9f846d;line-height:1.7;margin-top:8px}
.endroll-preview-box{border:1px solid #ead8c1;background:#fffaf2;border-radius:10px;padding:10px}

/* v2.7: center all compact glyph buttons, show editable placeholders. */
.icon-btn,.cue-more,.endroll-card-editor .entry-row button,.font-resource button{
  display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;vertical-align:middle;
}
.icon-btn{flex:0 0 31px;font-family:Arial,sans-serif;font-size:23px;font-weight:500}
.endroll-card-editor input::placeholder,.endroll-card-editor textarea::placeholder,#cueText::placeholder{color:#b8a99b;opacity:1;font-weight:400}
.endroll-style-group .endroll-sync-toggle{margin-bottom:4px}
.endroll-style-card{border:1px solid #e9d9c5;background:#fcf7ef;border-radius:10px;padding:12px 11px;margin:11px 0}
.endroll-style-heading{font-size:11px;font-weight:800;color:#80563d;margin-bottom:12px}
.endroll-style-card .form-field{margin:11px 0}
.endroll-style-card .form-field output{float:right;font:800 10px Arial;color:#80563d}
.endroll-style-card .form-field input[type=range]{width:100%;height:5px;margin:4px 0 8px;padding:0;border:0;background:linear-gradient(to right,#b68560,#f2e8dc)}
.endroll-style-card .color-line{margin:12px 0}
.endroll-style-card.is-disabled,#endrollBgOptions.is-disabled{opacity:.45}
.endroll-style-card.is-disabled *{cursor:default}
.endroll-style-card .form-field select{max-width:100%;min-width:0}
.endroll-card-editor .entry-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px}
.endroll-card-editor .entry-row .form-field{min-width:0}

/* v2.8: horizontal endroll placement and alignment controls */
.endroll-position-group .endroll-horizontal-range{margin:9px 0 14px}
.endroll-position-group .endroll-horizontal-range input{width:100%;display:block;margin:0}
.endroll-range-labels{display:flex;justify-content:space-between;gap:5px;margin-top:11px;color:#a48972;font-size:9px;font-weight:700}
.endroll-position-presets .mini-button.active{background:#8a5e44;color:#fffaf2;border-color:#8a5e44}
.endroll-position-presets .mini-button:focus-visible{outline:2px solid #b38e73;outline-offset:2px}
.endroll-position-group .microcopy{margin:11px 0 0;line-height:1.65}
/* v2.9: relative body-only horizontal offset, independent from the heading. */
.endroll-body-position{margin-top:18px;padding:13px 11px 12px;border-radius:10px;background:#fbf4e8;border:1px solid #e8d9c5}
.endroll-body-position-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#76503b;font-weight:800}
.endroll-body-position-head output{font:800 10px Arial,sans-serif;color:#986749;white-space:nowrap}
#endrollBodyOffsetX{display:block;width:100%;margin:15px 0 7px;accent-color:#95684a}
.endroll-offset-reset{display:block;margin:12px 0 0 auto}
.endroll-body-position .microcopy{margin:10px 0 0}

/* v2.9: full, beginner-friendly in-app user manual */
#helpDialog{width:min(1130px,96vw);max-width:min(1130px,96vw);height:min(900px,92vh);height:min(900px,92dvh);max-height:92vh;max-height:92dvh;overflow:hidden;border-radius:18px}
#helpDialog .help-inner{height:100%;padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}
#helpDialog .help-head{background:#fffaf1;padding:22px 27px 19px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #ebddcd;flex:none}
#helpDialog .help-heading-block{min-width:0}
#helpDialog .help-head h2{margin:8px 0 5px;font-size:25px;color:#56392d;line-height:1.35}
#helpDialog .help-head h2 small{font-size:12px;font-weight:500;color:#947961;display:inline-block;margin-left:9px}
#helpDialog .help-head p{font-size:12px;color:#826d5c;margin:5px 0 0}
#helpDialog .help-close{display:grid;place-items:center;margin:0;border:1px solid #e4d4be;background:#f8efe2;border-radius:10px;width:37px;height:37px;font-size:24px;color:#6d4e3b;flex:none}
#helpDialog .help-close:hover{background:#f0e1cd}
#helpDialog .help-searchbar{display:flex;align-items:center;gap:11px;background:#fffdf8;border-bottom:1px solid #eaded0;padding:11px 27px;flex:none}
#helpDialog .help-searchbox{display:flex;gap:10px;align-items:center;flex:1;min-width:0;border:1px solid #e4d5c1;border-radius:10px;padding:0 13px;background:#fff}
#helpDialog .help-searchbox>span:first-child{font-size:24px;color:#a88062}
#helpDialog #helpSearch{width:100%;height:38px;border:0;outline:0;min-width:0;font-size:12px;background:transparent;color:#50382c}
#helpDialog #helpSearch::placeholder{color:#aa9786}
#helpDialog .help-search-shortcut{font-size:10px;color:#b09e8c;white-space:nowrap}
#helpDialog .help-reset{border:1px solid #dfcbb3;background:#f8f0e4;border-radius:8px;padding:10px 13px;font-size:11px;font-weight:750;color:#815e48;margin:0}
#helpDialog .help-search-status{font-size:11px;color:#927963;min-width:65px;text-align:right}
#helpDialog .help-layout{display:grid;grid-template-columns:232px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
#helpDialog .help-toc{background:#f7efe2;border-right:1px solid #e8d8c3;padding:23px 12px 22px;overflow-y:auto;scrollbar-width:thin}
#helpDialog .help-toc-title{font-size:13px;font-weight:850;color:#654735;padding:0 13px 15px}
#helpDialog .help-toc-title span{font:800 9px Arial,sans-serif;letter-spacing:1.4px;color:#b39475;margin-left:7px}
#helpDialog .help-toc-link{display:flex;align-items:center;width:100%;gap:10px;margin:0 0 4px;padding:11px 10px;text-align:left;border:1px solid transparent;background:transparent;color:#856b57;border-radius:8px;font-size:11px;font-weight:700;line-height:1.5}
#helpDialog .help-toc-link>span{font:800 10px Georgia,serif;color:#b89b7c;min-width:19px}
#helpDialog .help-toc-link:hover{background:#f0e4d3}
#helpDialog .help-toc-link.active{background:#fff9ed;border-color:#e4d1bb;color:#5a382a;box-shadow:inset 3px 0 #976746}
#helpDialog .help-article{overflow-y:auto;min-height:0;background:#fffdf9;padding:4px 38px 26px;scrollbar-color:#d3bca6 transparent;scrollbar-width:thin;outline-offset:-5px}
#helpDialog .help-section{padding:30px 0 31px;border-bottom:1px solid #e9dccb;scroll-margin-top:18px}
#helpDialog .help-chapter{font:850 10px Arial,sans-serif;letter-spacing:2px;color:#a87e5b}
#helpDialog .help-section h3{font-size:21px;color:#573b2b;line-height:1.45;margin:8px 0 17px;letter-spacing:.02em;border-left:4px solid #b88a60;padding-left:13px}
#helpDialog .help-section h3 em{font-style:normal;font-size:11px;color:#a08a75;font-weight:600}
#helpDialog .help-section h4{font-size:14px;line-height:1.5;color:#775039;margin:22px 0 9px;padding:0 0 6px;border-bottom:1px dashed #e8d7c2}
#helpDialog .help-section p,#helpDialog .help-section li{font-size:12px;color:#6c5747;line-height:1.95}
#helpDialog .help-section p{margin:9px 0 13px}
#helpDialog .help-section ol,#helpDialog .help-section ul{margin:9px 0 16px;padding-left:23px}
#helpDialog .help-section li{margin-bottom:7px;padding-left:3px}
#helpDialog .help-section strong{color:#563b2d}
#helpDialog .help-section code{border:0;background:#f3e7d6;border-radius:4px;color:#6d422d;padding:2px 5px;overflow-wrap:anywhere;font-size:11px}
#helpDialog .help-section pre{background:#39271f;border:1px solid #53372a;color:#ffefd6;padding:16px 18px;border-radius:10px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;font:12px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace;margin:12px 0}
#helpDialog .help-section pre code{font:inherit;line-height:inherit;color:inherit;background:none;padding:0}
#helpDialog .help-steps{display:grid;gap:10px;margin:20px 0}
#helpDialog .help-steps>div{display:flex;gap:14px;padding:14px;background:#fbf4e8;border:1px solid #ebddc8;border-radius:11px;align-items:center}
#helpDialog .help-steps b{display:grid;place-items:center;min-width:32px;height:32px;background:#6a4434;color:#fff9ed;border-radius:50%;font:800 14px Georgia,serif}
#helpDialog .help-steps span{display:flex;flex-direction:column;gap:3px}
#helpDialog .help-steps small{font-size:11px;line-height:1.6;color:#947d68}
#helpDialog .help-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
#helpDialog .help-mini-grid>div{background:#fcf7ee;border:1px solid #ebe0d0;border-radius:10px;padding:15px 16px}
#helpDialog .help-mini-grid strong{font-size:12px}
#helpDialog .help-mini-grid p{margin:6px 0 0;font-size:11px;line-height:1.7}
#helpDialog .help-note,#helpDialog .help-tip,#helpDialog .help-warning{border-radius:10px;padding:15px 18px;margin:18px 0;background:#f6eee2;border-left:4px solid #9b7454}
#helpDialog .help-note strong,#helpDialog .help-tip strong,#helpDialog .help-warning strong{font-size:12px}
#helpDialog .help-note p,#helpDialog .help-tip p,#helpDialog .help-warning p{margin:5px 0 0;font-size:11.5px}
#helpDialog .help-tip{background:#f8f4eb;border-left-color:#9c9b72}
#helpDialog .help-warning{background:#fff2e8;border-left-color:#b97859}
#helpDialog .help-file-tree{background:#faf3e7;border:1px solid #e8d5bc;padding:17px;border-radius:9px;line-height:2;white-space:normal;overflow:auto}
#helpDialog .help-file-tree code{font:12px/2 ui-monospace,Consolas,monospace;background:transparent;color:#604737;padding:0}
#helpDialog .help-key-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:11px;table-layout:auto}
#helpDialog .help-key-table th{background:#eee0ce;text-align:left;color:#553c2c;font-weight:800}
#helpDialog .help-key-table td,#helpDialog .help-key-table th{border:1px solid #e8d7c0;padding:10px 12px;line-height:1.65;vertical-align:top}
#helpDialog .help-key-table td{color:#6d5847}
#helpDialog kbd{font:700 10px ui-monospace,Consolas,monospace;background:#f5eada;border:1px solid #e1cab0;border-bottom-width:2px;padding:2px 5px;border-radius:4px;color:#69492f;white-space:nowrap}
#helpDialog .help-section .help-small{font-size:10.5px;color:#927d6b}
#helpDialog .help-faq{padding:12px 0 14px;border-bottom:1px dashed #e6d9c8}
#helpDialog .help-faq:last-child{border-bottom:0}
#helpDialog .help-faq h4{margin:3px 0 6px;border:0;color:#77513b;font-size:13px;padding:0}
#helpDialog .help-faq p{margin:0;font-size:11.5px}
#helpDialog .help-nonofficial{margin-top:18px;padding:13px 15px;background:#f6ede1;border-left:3px solid #ad805d;color:#785f4c;border-radius:6px}
#helpDialog .help-no-results{text-align:center;padding:70px 15px;color:#9d866e;font-size:13px}
#helpDialog .help-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:28px 0 0}
#helpDialog .help-bottom span{font:800 9px Arial,sans-serif;letter-spacing:1.4px;color:#a9937d}
#helpDialog .help-bottom button{margin:0}
@media(max-width:770px){#helpDialog{width:96vw;max-width:96vw;height:94dvh;max-height:94dvh}#helpDialog .help-head{padding:17px 18px}#helpDialog .help-head h2{font-size:20px}#helpDialog .help-head h2 small{display:block;margin:3px 0 0}#helpDialog .help-searchbar{padding:9px 15px;gap:7px}#helpDialog .help-search-shortcut{display:none}#helpDialog .help-search-status{display:none}#helpDialog .help-layout{display:flex;flex-direction:column}#helpDialog .help-toc{display:flex;align-items:center;gap:6px;padding:10px 12px;border-right:0;border-bottom:1px solid #e8d8c3;overflow-x:auto;overflow-y:hidden;flex:none;scrollbar-width:thin}#helpDialog .help-toc-title{white-space:nowrap;padding:0 8px}#helpDialog .help-toc-title span{display:none}#helpDialog .help-toc-link{white-space:nowrap;flex:none;width:auto;padding:9px 11px;margin:0}#helpDialog .help-article{padding:4px 20px 20px}#helpDialog .help-mini-grid{grid-template-columns:1fr}#helpDialog .help-section{padding:24px 0}#helpDialog .help-section h3{font-size:18px}}
@media(max-width:390px){#helpDialog .help-head p{display:none}#helpDialog .help-reset{padding:9px 8px}#helpDialog .help-key-table td,#helpDialog .help-key-table th{padding:8px 6px}#helpDialog .help-bottom span{display:none}}

