.script-editor-toolbar{background:#161616;border:1px solid #242424;border-radius:12px;flex-direction:column;gap:10px;padding:10px;display:flex}.script-editor-section{background:#121212;border:1px solid #1f1f1f;border-radius:10px;flex-direction:column;gap:6px;padding:8px;display:flex}.script-editor-section-pagebg{background:linear-gradient(#16140e 0%,#121212 100%);border-color:#c9a84c40}.script-editor-section-history{background:linear-gradient(#0e141c 0%,#121212 100%);border-color:#5298e047}.script-editor-history-btn{gap:6px;min-width:88px;padding:0 12px;font-size:11px;font-weight:700}.script-editor-tool-btn:disabled{opacity:.35;cursor:not-allowed;pointer-events:none}.script-editor-section-head{flex-wrap:wrap;align-items:baseline;gap:6px 10px;display:flex}.script-editor-section-hint{color:#606060;font-size:10px}.script-editor-element-help{color:#a8a8a8;margin:0;padding:0 2px;font-size:11px;line-height:1.4}.script-editor-element-help strong{color:#c9a84c}.script-editor-element-legend{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;margin-top:2px;display:grid}.script-editor-element-legend-item{background:#0f0f0f;border:1px solid #1a1a1a;border-radius:8px;flex-direction:column;gap:2px;padding:6px 8px;display:flex}.script-editor-element-legend-name{color:#f0ebe0;font-size:10px;font-weight:700}.script-editor-element-legend-desc{color:#707070;font-size:10px;line-height:1.35}.script-editor-pagebg-preview{border:1px solid #444;border-radius:4px;width:16px;height:16px;display:inline-block}.script-editor-pagebg-hex{color:#909090;padding-left:4px;font-family:ui-monospace,monospace;font-size:10px}.script-editor-toolbar-row{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.script-editor-toolbar-row.elements{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;padding-bottom:2px;overflow-x:auto}.script-editor-toolbar-label{letter-spacing:.08em;text-transform:uppercase;color:#606060;flex-shrink:0;padding:0;font-size:9px;font-weight:700}.script-editor-tool-btn{color:#909090;cursor:pointer;background:#0f0f0f;border:1px solid #0000;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;min-width:32px;height:32px;padding:0 8px;transition:all .15s;display:inline-flex}.script-editor-tool-btn:hover{color:#f0ebe0;background:#1a1a1a;border-color:#333}.script-editor-tool-btn.active{background:var(--gd,#c9a84c);color:#080808;border-color:var(--gd,#c9a84c)}.script-editor-element-btn{white-space:nowrap;height:auto;min-height:32px;padding:6px 10px;font-size:10px;font-weight:700}.script-editor-color-wrap{flex-shrink:0;align-items:center;gap:4px;display:inline-flex}.script-editor-color-input{cursor:pointer;background:#0f0f0f;border:1px solid #333;border-radius:8px;width:32px;height:32px;padding:2px}.script-editor-color-swatches{flex-wrap:wrap;gap:4px;padding:6px 0;display:flex}.script-editor-color-swatch{cursor:pointer;border:1px solid #333;border-radius:6px;flex-shrink:0;width:22px;height:22px}.script-editor-color-swatch.selected{outline:2px solid var(--gd,#c9a84c);outline-offset:1px}.script-editor-surface{letter-spacing:.02em;font-family:Courier New,Courier,monospace;font-size:14px;line-height:1.6}.script-editor-surface--light:empty:before{color:#8a8a8a}.script-editor-surface:empty:before{content:attr(data-placeholder);color:#606060;pointer-events:none}.script-editor-surface div,.script-editor-surface p{min-height:1.4em}.script-editor-surface .script-el-scene{text-transform:uppercase;margin-top:1.25em;margin-bottom:.5em;font-weight:700}.script-editor-surface .script-el-action{margin-bottom:.65em}.script-editor-surface .script-el-character{text-transform:uppercase;max-width:55%;margin-top:.85em;margin-left:32%}.script-editor-surface .script-el-dialogue{max-width:72%;margin-bottom:.45em;margin-left:12%}.script-editor-surface .script-el-parenthetical{max-width:52%;margin-left:22%;font-size:.92em}.script-editor-surface .script-el-transition{text-transform:uppercase;text-align:right;margin-top:.85em;margin-bottom:.5em}@media (max-width:768px){.script-editor-surface{min-height:320px;font-size:13px;padding:16px!important}.script-editor-surface .script-el-character{max-width:75%;margin-left:18%}.script-editor-surface .script-el-dialogue{max-width:88%;margin-left:8%}.script-editor-surface .script-el-parenthetical{max-width:78%;margin-left:14%}.script-editor-toolbar-row.elements{scrollbar-width:none}}
