:root[data-theme][data-editor-theme=light]{--bg: #eef1f5;--panel: #fff;--panel-soft: #f5f7fa;--ink: #1f2733;--muted: #5d6676;--line: #e6e9ef;--accent: #2563c9;--accent-soft: #eaf1fc;--editor-action: #2563c9;--editor-action-ink: #fff}:root[data-theme][data-editor-theme=dark]{--bg: #141720;--panel: #1c202d;--panel-soft: #232938;--ink: #eef0f8;--muted: #b2bbcf;--line: #3b4357;--accent: #b6a7ff;--accent-soft: #342f4d;--editor-action: #b6a7ff;--editor-action-ink: #211b39}:root[data-theme][data-editor-theme=sand]{--bg: #f5f1e9;--panel: #fffdf8;--panel-soft: #f5efe4;--ink: #39352e;--muted: #706555;--line: #ddd4c4;--accent: #795b2c;--accent-soft: #eee3ce;--shadow: 0 18px 70px #42372114;--editor-action: #795b2c;--editor-action-ink: #fff}:root[data-theme][data-editor-theme=forest]{--bg: #13201e;--panel: #1c2b28;--panel-soft: #243731;--ink: #e5f1eb;--muted: #a7c3b7;--line: #3a544a;--accent: #9bd5b3;--accent-soft: #2c4439;--shadow: 0 18px 70px #0005;--editor-action: #9bd5b3;--editor-action-ink: #142b21}:root[data-editor-theme] :is(.editor-shell,.home,.editor-settings-dialog) .primary{background:var(--editor-action);border-color:var(--editor-action);color:var(--editor-action-ink)}:root[data-editor-theme] :is(.editor-shell,.home,.editor-settings-dialog) .primary:hover{filter:brightness(.94)}:root[data-editor-theme] input:focus-visible,:root[data-editor-theme] select:focus-visible,:root[data-editor-theme] textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent)}.settings-workspace{container:settings / inline-size;min-width:0;background:var(--bg);font-size:14px;color:var(--ink);overflow:hidden}.settings-workspace .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.settings-workspace [hidden]{display:none!important}.settings-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 24px 8px;background:var(--panel);flex-shrink:0}.settings-eyebrow{font-size:11px;letter-spacing:1.4px;font-weight:600;color:var(--muted)}.settings-header h1{font-size:21px;line-height:1.3;margin:0;letter-spacing:-.8px}.settings-header p{font-size:14px;color:var(--muted)}.settings-local-note{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}.settings-tabs{display:flex;gap:24px;flex-shrink:0;padding:0 24px;border-bottom:1px solid var(--line);background:var(--panel)}.settings-tabs>button{position:relative;padding:10px 0;min-height:44px;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:14px;gap:9px;white-space:normal;text-align:left}.settings-tabs>button[aria-selected=true]{color:var(--accent);font-weight:600}.settings-tabs>button[aria-selected=true]:after{content:"";position:absolute;inset:auto 0 -1px;height:3px;background:var(--accent);border-radius:3px 3px 0 0}.settings-tabs>button:hover:not(:disabled){color:var(--ink)}.settings-tabs>button:focus-visible{outline-offset:-3px;border-radius:5px}.settings-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;outline-offset:-3px}.settings-container{width:100%;max-width:1040px;margin:0;padding:24px;min-width:0}.settings-section-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px;min-width:0}.settings-section-intro h2{font-size:21px;line-height:1.4;letter-spacing:-.4px;margin:0 0 7px}.settings-section-intro p{color:var(--muted);font-size:14px;line-height:1.65;overflow-wrap:anywhere}.settings-section-intro strong{font-weight:500;color:var(--ink)}.settings-scope{flex-shrink:0;border:1px solid var(--line);border-radius:20px;padding:6px 10px;font-size:11px;color:var(--muted);background:var(--panel)}.settings-workspace .settings-card,.settings-workspace .release-settings,.settings-workspace .recovery-settings{border:1px solid var(--line);border-radius:8px;padding:20px;background:var(--panel);margin:0;min-width:0;box-shadow:0 2px 3px #00000002}.settings-workspace .settings-card-heading{margin-bottom:16px;display:grid;gap:7px}.settings-workspace .settings-card h3,.settings-workspace .settings-card h2,.settings-workspace .release-settings h2,.settings-workspace .recovery-settings h2{font-size:17px;font-weight:600;letter-spacing:-.2px;line-height:1.5}.settings-workspace .settings-card-heading p,.settings-workspace .release-settings>p,.settings-workspace .recovery-settings>p{color:var(--muted);font-size:14px;line-height:1.7;max-width:68ch;margin-top:6px}.settings-workspace label{font-size:14px;line-height:1.5;font-weight:500}.settings-workspace input:not([type=checkbox]):not([type=radio]),.settings-workspace select{min-height:38px;line-height:1.4;font-size:14px;border-radius:7px}.settings-workspace button{line-height:1.5}.settings-workspace .settings-field{display:grid;gap:6px;width:100%;max-width:400px}.settings-field-row{display:flex;align-items:end;gap:24px;flex-wrap:wrap}.settings-field-row .settings-field{width:auto;max-width:100%}.settings-field-row input{width:120px;max-width:100%}.settings-field-row p{font-size:13px;color:var(--muted);line-height:1.6}.theme-options{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;min-width:0}.theme-choice{position:relative;border:1px solid var(--line);border-radius:10px;padding:5px;display:block!important;cursor:pointer;min-width:0;background:var(--panel);transition:border-color .15s,box-shadow .15s}.theme-choice:hover{border-color:var(--accent)}.theme-choice.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-choice:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:4px}.theme-choice>input{position:absolute;width:1px;height:1px;opacity:0}.theme-sample{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:18px;background:var(--sample-bg);color:var(--sample-ink);border-radius:6px;padding:16px;min-height:64px;border:1px solid color-mix(in srgb,var(--sample-ink) 12%,transparent)}.theme-type-sample{font-size:24px;font-weight:500;letter-spacing:-1px;line-height:1.2}.theme-type-sample>span{display:block;font-size:11px;font-weight:400;letter-spacing:0;line-height:1.5;margin-top:7px;color:var(--sample-muted)}.editor-theme-swatches{display:flex;gap:6px}.editor-theme-swatches i{width:17px;height:17px;border-radius:50%;background:var(--sample-panel);border:1px solid color-mix(in srgb,var(--sample-ink) 20%,transparent)}.editor-theme-swatches i:nth-child(2){background:var(--sample-ink)}.editor-theme-swatches i:nth-child(3){background:var(--sample-accent)}.theme-label{display:grid;grid-template-columns:1fr auto;gap:3px 5px;padding:12px 9px 9px;align-items:center;min-width:0}.theme-label strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.theme-label>svg{color:var(--accent)}.theme-label small{grid-column:1/-1;color:var(--muted);font-size:12px;line-height:1.5;font-weight:400}.settings-card-footnote{display:flex;gap:10px;align-items:center;padding-top:12px;margin-top:16px;border-top:1px solid var(--line);color:var(--muted)}.settings-card-footnote p{font-size:13px;line-height:1.7}.settings-guidance{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 2px;min-width:0}.settings-guidance h3{font-size:14px;margin-bottom:6px}.settings-guidance p{color:var(--muted);font-size:13px;line-height:1.7;max-width:68ch}.settings-guidance a{display:inline-flex;align-items:center;gap:7px;font-size:13px;white-space:nowrap;text-underline-offset:4px}.settings-workspace .project-settings-workspace{min-width:0}.project-settings-layout{display:grid;grid-template-columns:180px minmax(0,680px);gap:20px;align-items:start}.project-settings-nav{display:grid;gap:6px;position:sticky;top:0;min-width:0}.project-settings-nav>button{display:flex;justify-content:flex-start;text-align:left;background:transparent;border:1px solid transparent;padding:10px 12px;gap:10px;min-width:0;border-radius:8px}.project-settings-nav>button[aria-current]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 28%,var(--line));color:var(--accent)}.project-settings-nav>button>span{display:grid;gap:3px;min-width:0;flex:1}.project-settings-nav strong{font-size:13px;font-weight:600}.project-settings-nav small{font-size:11px;font-weight:400;color:var(--muted)}.project-settings-nav>button>svg:last-child{display:none}.settings-workspace .project-settings-content{display:block;max-width:none;min-width:0}.settings-category-content{display:grid;gap:14px;min-width:0}.settings-workspace .release-settings>p,.settings-workspace .recovery-settings>p{margin-bottom:20px}.settings-workspace .release-settings form{gap:12px;margin-top:22px}.settings-workspace .release-settings form label{min-width:min(160px,100%);max-width:360px}.settings-workspace .release-snapshots{display:grid;gap:8px;margin-top:24px}.settings-workspace .release-snapshots>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:var(--panel-soft);border-radius:8px;min-width:0}.settings-workspace .release-snapshots>div>span{flex:1 1 170px;overflow-wrap:anywhere;font-size:13px}.settings-workspace .release-snapshots button{font-size:12px}.settings-workspace .toolbar{display:flex;flex-wrap:wrap;gap:10px;min-width:0;margin:18px 0}.settings-workspace .output-settings-card>p{margin:10px 0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}.settings-inline-note{padding:14px 16px;border-radius:8px;background:var(--panel-soft);color:var(--muted);font-size:13px;line-height:1.7;margin-top:22px}.settings-workspace .recovery-row{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;min-width:0}.settings-workspace .recovery-row>span{width:100%;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.settings-workspace .recovery-row button{font-size:12px;flex:0 1 auto}.settings-workspace .recovery-settings>section{background:var(--panel-soft);border:1px solid var(--line);padding:18px;border-radius:8px;margin-top:16px;display:flex;flex-wrap:wrap;gap:12px}.settings-workspace .recovery-settings>section>p,.settings-workspace .recovery-settings>section>h3,.settings-workspace .recovery-settings>section>div{flex-basis:100%}.settings-workspace [role=alert]{color:var(--ink);background:var(--panel-soft);border-left:3px solid var(--accent);padding:12px 14px;border-radius:4px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.settings-workspace .project-modules{display:block;min-width:0}.settings-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.settings-workspace .project-module-card{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:8px;min-width:0;height:100%}.module-card-header{display:flex;align-items:center;gap:12px;min-width:0}.module-card-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:10px;background:var(--accent-soft);color:var(--accent)}.module-card-title{flex:1;min-width:0}.module-card-title h3{font-size:16px;line-height:1.45;margin:0 0 3px;overflow-wrap:anywhere}.module-status{font-size:12px;color:var(--muted)}.module-status.is-enabled{color:var(--accent)}.settings-workspace .project-module-card p{font-size:14px;line-height:1.7;color:var(--muted)}.settings-workspace .project-module-card>.module-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:10px;margin-top:auto;border-top:1px solid var(--line)}.module-card-footer>span{font-size:11px;color:var(--muted)}.settings-workspace .project-module-card .module-guide-link{font-size:13px;display:inline-flex;align-items:center;gap:6px;margin:0}.settings-switch{position:relative;display:block;width:40px;height:24px;flex-shrink:0;cursor:pointer}.settings-switch>input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%!important;height:100%!important;opacity:0;margin:0;cursor:pointer;z-index:1}.settings-switch>span{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:20px;background:var(--panel-soft);border:1px solid var(--muted);transition:background .15s}.settings-switch>span:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .15s}.settings-switch>input:checked+span{background:var(--editor-action, var(--accent));border-color:var(--editor-action, var(--accent))}.settings-switch>input:checked+span:after{transform:translate(16px);background:var(--editor-action-ink, var(--panel))}.settings-switch:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:4px;border-radius:20px}.settings-workspace .module-shared-note{margin-top:20px;display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:13px;line-height:1.7;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:9px}.settings-workspace .module-shared-note svg{margin-top:2px}.modal.editor-settings-dialog{width:860px;height:min(480px,calc(100dvh - 64px));max-width:100%}.editor-settings-dialog .settings-workspace{flex:1;min-height:0;height:auto}@container settings (max-width:940px){.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-sample{min-height:64px}.project-settings-layout{grid-template-columns:165px minmax(0,1fr);gap:18px}.project-settings-nav>button{padding:12px 8px;gap:8px}.project-settings-nav small,.settings-local-note{display:none}.settings-container{padding:20px}.settings-header{padding:16px 20px 8px}.settings-tabs{padding:0 20px}}@container settings (max-width:740px){.project-settings-layout{grid-template-columns:minmax(0,1fr);gap:20px}.project-settings-nav{grid-template-columns:repeat(2,minmax(0,1fr));position:static}.project-settings-nav>button{border-color:var(--line);background:var(--panel);padding:12px}.settings-module-grid{grid-template-columns:minmax(0,1fr)}.settings-guidance{align-items:flex-start;flex-direction:column;gap:16px}.settings-tabs{gap:18px}.settings-tabs>button{font-size:13px}.settings-tabs>button>svg{display:none}}@container settings (max-width:480px){.settings-container,.settings-header{padding:20px 16px}.settings-tabs{padding:0 16px;gap:14px}.settings-workspace .settings-card,.settings-workspace .release-settings,.settings-workspace .recovery-settings{padding:18px}.theme-options{gap:12px}.theme-sample{padding:12px}.theme-label{padding:10px 5px}.settings-scope{display:none}.project-settings-nav{gap:8px}.settings-section-intro h2{font-size:20px}}@media(prefers-reduced-motion:reduce){.settings-workspace *{transition:none!important}}.settings-header>a{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);text-underline-offset:3px}.settings-divider{border:0;border-top:1px solid var(--line);margin:20px 0}.settings-workspace .appearance-card{max-width:880px}.settings-workspace .project-settings-content{max-width:680px}.settings-workspace .settings-section-intro h2{font-size:18px;margin-bottom:4px}.settings-workspace .settings-section-intro p{line-height:1.5}:is(.editor-shell,.modal) .module-workspace .settings-container.module-page{max-width:none;display:grid;gap:20px}.module-page-header{display:flex;align-items:flex-start;gap:14px}.module-page-header .module-card-icon{width:40px;height:40px}.module-page-header>div{flex:1;min-width:0}.module-page-header h2{margin:0 0 4px;font-size:24px;font-weight:700;letter-spacing:-.5px}.module-page-header p{margin:0;font-size:14px;color:var(--muted)}.module-page-header .module-guide-link{display:inline-flex;align-items:center;gap:6px;margin-top:6px;white-space:nowrap}.module-page-pointer{display:grid;gap:16px;justify-items:start;max-width:760px}.module-page-pointer p{margin:0;font-size:14.5px}:is(.editor-shell,.modal) .module-workspace .module-workspace-manage{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:10px;font-size:14px;font-weight:500}:is(.editor-shell,.modal) .module-workspace.settings-workspace .settings-scroll{background:var(--panel-soft)}.project-module-card .module-open-button{align-self:flex-start}.module-workspace-empty{display:grid;place-content:center;justify-items:center;gap:12px;text-align:center}.font-settings .font-list{display:grid;gap:10px;margin:8px 0 4px;padding:0;list-style:none}.font-settings .font-list li{display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,1.2fr) minmax(120px,1fr) auto;align-items:center;gap:10px}.font-settings .asset-font-preview{min-height:0;font-size:20px;justify-items:start;overflow:hidden;white-space:nowrap}.font-settings-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.font-settings-actions small{font-size:13px;color:var(--muted)}.progression-overview{display:grid;gap:20px}.progression-table{width:100%;border-collapse:collapse;font-size:14.5px}.progression-table th,.progression-table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.progression-table thead th{background:var(--panel-soft);font-size:12.5px;font-weight:600;color:var(--muted)}.progression-table tbody th{font-weight:600}.progression-table tbody th code,.progression-table td small{display:block;margin-top:2px;font-size:13px;font-weight:400;color:var(--muted)}.progression-table td:last-child{text-align:right}.progression-table td:last-child button{display:inline-flex;align-items:center;gap:6px}.progression-empty{margin:0;color:var(--muted)}.progression-add{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.progression-add label{display:grid;gap:6px;min-width:320px;font-size:13.5px;font-weight:500}.progression-tracks>summary{cursor:pointer;font-weight:600;padding:8px 0}.progression-overview .progression-add{margin-top:8px}.ui-designer{display:flex;flex-direction:column;flex:1;min-height:560px;overflow:hidden;border-top:1px solid var(--line);background:var(--panel);color:var(--ink)}.ui-designer-toolbar{display:flex;align-items:center;gap:18px;padding:12px 18px;border-bottom:1px solid var(--line);flex-shrink:0;flex-wrap:wrap}.ui-designer-mode,.ui-designer-devices{display:flex;gap:4px;background:var(--panel-soft);border:1px solid var(--line);border-radius:9px;padding:3px}.ui-designer-toolbar button{gap:7px;background:transparent;border-color:transparent;padding:7px 10px;min-height:34px}.ui-designer button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.ui-designer-devices{margin-left:auto}.ui-designer-interact,.ui-designer-checkbox{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0}.ui-designer-grid{display:grid;grid-template-columns:190px minmax(280px,1fr) 270px;flex:1;min-height:0;overflow:hidden}.ui-designer-tree,.ui-designer-inspector,.ui-designer-code{min-height:0;overflow:auto;scrollbar-width:thin;padding:18px 14px}.ui-designer-tree{border-right:1px solid var(--line)}.ui-designer-tree h3{font-size:13px;font-weight:600;margin:0 0 12px}.ui-tree-item{display:flex;justify-content:space-between;align-items:center;width:100%;min-width:0;text-align:left;gap:10px;padding:9px 8px;border:1px solid transparent;background:transparent;border-radius:7px;font-size:13px;margin:3px 0}.ui-tree-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ui-tree-item small{font-size:10px;flex-shrink:0;color:var(--muted)}.ui-tree-item.child{padding-left:18px}.ui-designer-tree-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0 10px}.ui-designer-tree-heading h3{margin:0}.ui-designer-tree-heading>span{color:var(--muted);font-size:12px}.ui-tree-region{border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:9px}.ui-designer-add{display:flex;gap:5px;border:0;background:transparent;color:var(--accent);font-size:12px;padding:8px}.ui-designer-add-bar{margin:18px 0 0}.ui-designer-add-bar select{width:100%}.ui-designer-canvas{min-width:0;overflow:auto;background:var(--panel-soft);padding:18px;scrollbar-width:thin}.ui-designer-canvas-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.ui-designer-canvas-heading>div{display:grid;gap:5px}.ui-designer-canvas-heading strong{font-size:13px}.ui-designer-canvas-heading span{font-size:11px;color:var(--muted)}.ui-designer-canvas-heading select{max-width:180px;min-width:80px;font-size:12px}.ui-designer-viewport{width:100%;min-width:0}.ui-designer-frame-space{position:relative;width:100%;overflow:hidden;border-radius:10px;box-shadow:0 6px 28px #0002;background:#11141c;min-height:140px}.ui-designer-frame-space iframe{display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:0;transform-origin:top left;background:#11141c;max-width:none}.ui-designer-preview-note{color:var(--muted);font-size:12px;line-height:1.7;margin:12px 0}.ui-designer-inspector{border-left:1px solid var(--line);background:var(--panel)}.ui-designer-inspector>header{padding:0 2px 16px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-wrap:anywhere}.ui-designer-inspector>header small{font-size:10px;color:var(--muted);letter-spacing:1.5px}.ui-designer-inspector>header h3{font-size:16px;line-height:1.5;margin:8px 0 0}.ui-designer-inspector fieldset{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:16px}.ui-designer-inspector label{margin:0;font-size:12px;min-width:0;gap:6px}.ui-designer-inspector input,.ui-designer-inspector select,.ui-designer-inspector textarea{min-width:0;width:100%;font-size:13px;padding:8px}.ui-designer-inspector input[type=checkbox]{width:16px;height:16px;flex-shrink:0;padding:0}.ui-designer-inspector input[type=color]{height:36px;padding:4px}.ui-designer-inspector textarea{resize:vertical}.ui-designer-inspector p{font-size:12px;color:var(--muted);line-height:1.65;margin:0 0 12px}.ui-designer-inspector h4{font-size:13px;margin:0 0 8px}.ui-designer-section{border-top:1px solid var(--line);padding-top:18px;display:flex;flex-direction:column;gap:14px}.ui-designer-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.ui-designer-actions{display:flex;gap:8px}.ui-designer-actions button{min-width:36px;min-height:36px}.ui-designer-danger{color:#c65060;gap:8px;font-size:12px}.ui-designer-inspector details{min-width:0;overflow-wrap:anywhere}.ui-designer-inspector details summary{font-size:13px;margin-bottom:12px;cursor:pointer}.ui-designer-inspector .condition-editor{display:flex;flex-direction:column;gap:10px}.ui-designer-inspector .condition-editor>*{min-width:0;max-width:100%}.ui-designer-error{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;color:#b23e52;background:#d94e6810;border-bottom:1px solid #d94e6844;font-size:13px;line-height:1.6;flex-shrink:0}.ui-designer-error button{flex-shrink:0}.ui-designer-grid.code-mode{grid-template-columns:minmax(300px,1fr) minmax(280px,1fr)}.ui-designer-code{padding:22px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:14px}.ui-designer-code h3{font-size:15px;margin:0}.ui-designer-code p{font-size:13px;color:var(--muted);line-height:1.65;margin:0}.ui-designer-code textarea{width:100%;flex:1;min-height:250px;resize:vertical;font:12px/1.7 JetBrains Mono,monospace;padding:14px;-moz-tab-size:2;tab-size:2;white-space:pre;overflow:auto;background:var(--panel-soft)}.ui-designer-code>textarea{min-height:460px;resize:none}.ui-designer-code label{margin:0;gap:8px}.ui-designer-code label textarea{min-height:180px}.ui-designer-code .ui-css-reference{font-size:11px;line-height:1.9;overflow-wrap:anywhere}@media(max-width:1150px){.ui-designer-grid{grid-template-columns:160px minmax(230px,1fr) 240px}.ui-designer-canvas{padding:12px}.ui-designer-canvas-heading{align-items:flex-start;flex-direction:column}}@media(max-width:900px){.ui-designer{overflow:auto;min-height:600px}.ui-designer-grid{grid-template-columns:170px minmax(260px,1fr);overflow:visible}.ui-designer-inspector{grid-column:1/-1;border-top:1px solid var(--line);max-height:450px}.ui-designer-grid.code-mode{grid-template-columns:1fr}.ui-designer-tree{max-height:520px}.ui-designer-canvas{overflow:visible}.ui-designer-two{grid-template-columns:repeat(2,minmax(0,1fr))}}.ui-designer-transfer{display:flex;gap:5px}.ui-designer-transfer button{font-size:12px;border:1px solid var(--line);background:var(--panel)}.ui-designer-notice{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:var(--accent-soft);color:var(--accent);font-size:13px}.ui-designer-notice button{border:0;background:transparent}.ui-widget-code{font:12px/1.6 JetBrains Mono,monospace!important;white-space:pre;min-height:130px}.interface-content-list{display:grid;gap:8px;min-width:0}.interface-content-item{padding:10px;border:1px solid var(--border, #ccd0dc);border-radius:8px;min-width:0}.interface-content-item>summary{cursor:pointer;overflow-wrap:anywhere}.interface-content-item>summary small{display:block;opacity:.65;margin-top:3px}.interface-content-item label{display:grid;gap:5px;margin-top:10px;min-width:0}.interface-content-item label.ui-designer-checkbox{display:flex;align-items:center}.interface-content-item input:not([type=checkbox]),.interface-content-item select,.interface-content-item textarea{width:100%;min-width:0}.interface-content-editor{border-bottom:1px solid var(--border, #ccd0dc);padding-bottom:16px;margin-bottom:16px}.interface-content-editor .ui-designer-actions{margin-top:10px}.topbar-layout-editor{border-bottom:1px solid var(--border, #ccd0dc);padding-bottom:16px;margin-bottom:16px}.topbar-layout-tree{display:grid;gap:4px;padding:6px;background:#80808008;border:1px solid var(--border, #ccd0dc);border-radius:8px}.topbar-layout-tree .topbar-tree-node{display:flex;justify-content:space-between;gap:8px;width:100%;min-width:0;text-align:start;padding:8px}.topbar-tree-node span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-tree-node small{opacity:.6;font-size:11px}.topbar-layout-tree .topbar-tree-node[aria-pressed=true]{border-color:#8072f5;background:#8072f514}.topbar-node-settings{padding-top:8px}.topbar-spacing-editor{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--border, #ccd0dc)}.topbar-spacing-editor details{margin-top:12px}.topbar-spacing-editor summary{cursor:pointer}.ui-designer-devices label{display:flex;align-items:center;gap:8px;font-size:12px}.ui-designer-devices select{width:auto}.ui-designer-devices{align-items:center;padding-inline:10px}.ui-designer-devices label{flex-direction:row;flex-wrap:nowrap;width:auto;margin:0;white-space:nowrap}.ui-designer-devices label select{width:94px;min-width:94px}.ui-designer-devices>svg{flex-shrink:0}.runtime-inspector{height:270px;flex-shrink:0;border-top:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column}.runtime-inspector>header{display:flex;align-items:center;gap:18px;padding-right:20px;border-bottom:1px solid var(--line)}.runtime-inspector .tabs{border:0;flex:1}.runtime-inspector>header>span{font-size:11px;color:var(--muted)}.runtime-inspector>header>button:not(.icon-button){font-size:11px}.inspector-output{overflow:auto;padding:18px 28px;flex:1;font-size:12px}.state-columns{display:flex;gap:40px}.state-columns>section{min-width:180px;max-width:300px;flex:1}.state-columns h4{color:var(--accent);margin-bottom:12px}.state-columns section>div{display:flex;justify-content:space-between;gap:20px;margin:9px 0}.state-columns code{font-size:12px;color:var(--muted)}.inspector-output table{border-collapse:collapse;width:100%;text-align:left}.inspector-output th{font-weight:500;color:var(--muted);padding:0 12px 12px}.inspector-output td{padding:9px 12px;border-top:1px solid var(--line)}.trace-list{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:9px}.trace-list li{display:flex;gap:20px}.trace-list code{color:var(--muted);font-size:11px;min-width:24px}@media(max-width:760px){.runtime-inspector{height:240px}.runtime-inspector>header{gap:5px;padding-right:8px;flex-wrap:wrap}.runtime-inspector>header>span{display:none}.inspector-output{padding:15px}.state-columns{gap:25px}}.runtime-inspector.tracking-inspector{height:min(52vh,480px);min-height:230px}.tracking-inspector>header{flex-wrap:wrap;gap:8px 16px;padding-right:12px}.tracking-inspector .tabs{flex-wrap:wrap}.tracking-inspector .inspector-output{padding:16px 22px;font-size:13px}.tracking-toolbar,.tracking-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.tracking-toolbar{margin-bottom:14px;gap:12px}.tracking-tabs{margin-right:auto}.tracking-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.tracking-search{display:flex;align-items:center;gap:8px;color:var(--muted)}.tracking-search input{width:190px;min-width:0}.tracking-toolbar>select{max-width:200px}.tracking-note{color:var(--muted);line-height:1.6;margin:8px 0 12px}.tracking-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px}.tracking-card{padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0;overflow-wrap:anywhere}.tracking-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tracking-card-heading>strong{font-size:14px;line-height:1.5}.tracking-status{border-radius:6px;padding:3px 7px;background:var(--panel-soft);font-size:12px;flex-shrink:0}.tracking-status.running,.tracking-status.active,.tracking-status.eligible{color:var(--accent);background:var(--accent-soft)}.tracking-status.completed,.tracking-status.complete{color:#24855a;background:#24855a12}.tracking-card>p{line-height:1.6}.tracking-counts{display:flex;flex-wrap:wrap;gap:12px 20px;margin:14px 0}.tracking-counts div{display:grid;gap:5px}.tracking-counts dt{color:var(--muted);font-size:12px}.tracking-counts dd{margin:0;font-size:16px;font-variant-numeric:tabular-nums}.tracking-reasons{padding-left:18px;line-height:1.7;margin:12px 0}.tracking-stages{list-style:none;padding:0;margin:12px 0;display:grid;gap:12px}.tracking-stages li{display:flex;gap:10px}.tracking-stages li>span{width:25px;height:25px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}.tracking-stages li.current>span{background:var(--accent);color:#fff;border-color:var(--accent)}.tracking-stages li.past>span{color:#24855a}.tracking-stages li>div{padding-top:4px}.tracking-stages p{margin:6px 0;line-height:1.5}.tracking-stages small{display:block;color:var(--muted);margin-top:5px}.tracking-activity{list-style:none;padding:0;margin:0}.tracking-activity li{display:flex;align-items:flex-start;gap:14px;padding:10px 0;border-top:1px solid var(--line);line-height:1.5}.tracking-activity code{min-width:28px;color:var(--muted)}.tracking-activity small{margin-left:auto;color:var(--muted)}.tracking-empty{padding:18px 0;color:var(--muted);line-height:1.6}.dialogue-editor{max-width:980px;margin:auto;padding:24px}.dialogue-editor .section-heading{display:flex;gap:20px;justify-content:space-between;align-items:start}.dialogue-editor p,.recovery-settings p{color:var(--muted);line-height:1.6}.dialogue-line-editor{border:1px solid var(--line);border-radius:12px;margin:18px 0;padding:18px;background:var(--panel)}.dialogue-line-editor header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.dialogue-line-editor header select{flex:1;min-width:130px}.dialogue-line-editor textarea{width:100%;resize:vertical;line-height:1.7;padding:12px}.dialogue-line-editor details{margin-top:12px}.dialogue-scene-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-top:16px}.dialogue-scene-fields label{display:flex;flex-direction:column;gap:8px}.recovery-settings{padding:22px;border:1px solid var(--line);border-radius:12px;margin:0 0 24px}.recovery-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:14px 0}.dialogue-transition-fade{animation:vn-fade .3s ease-out}.dialogue-transition-slide{animation:vn-slide .3s ease-out}.media-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:20px}.media-picker-grid article{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.media-picker-grid img{width:100%;height:130px;object-fit:contain}.media-picker-grid audio{width:100%}.media-picker-grid small{overflow-wrap:anywhere;color:var(--muted)}@keyframes vn-fade{0%{opacity:0}to{opacity:1}}@keyframes vn-slide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.dialogue-transition-fade,.dialogue-transition-slide{animation:none}}@media(max-width:650px){.dialogue-editor{padding:12px}.recovery-row{align-items:start;flex-direction:column}}.vn-layout-settings p{color:var(--muted);line-height:1.6}.vn-layout-settings label{display:flex;flex-direction:column;gap:8px}.vn-layout-settings{padding:22px;border:1px solid var(--line);border-radius:12px;margin:0 0 24px}.field-name-settings{min-width:0}.field-name-settings>input{width:100%}.variable-level-button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:7px;padding:5px 0;border:0;background:transparent;color:var(--accent);font-size:12px;text-align:left;line-height:1.4}.variable-level-button small{color:var(--muted);font-size:11px}.variable-level-dialog{min-height:0;display:flex;flex-direction:column}.variable-level-dialog .modal-content{display:flex;flex-direction:column;gap:20px;overflow-y:auto}.variable-level-description,.variable-level-dialog p{font-size:13px;line-height:1.7;margin:0;color:var(--muted)}.variable-level-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px}.variable-level-rules{display:grid;grid-template-columns:1.1fr 1fr;gap:28px}.variable-level-rules h3{margin:0 0 10px;font-size:15px}.variable-level-rules table{width:100%;border-collapse:collapse;margin:12px 0;font-size:13px}.variable-level-dialog .variable-level-rules th{text-align:left;font-size:12px;color:var(--muted);font-weight:500}.variable-level-dialog .variable-level-rules th,.variable-level-dialog .variable-level-rules td{padding:9px 5px;border-bottom:1px solid var(--line)}.variable-level-dialog .variable-level-rules td input{width:100%;min-width:70px}.variable-level-dialog .variable-level-rules td button{font-size:12px;padding:5px 7px}.variable-level-rules section>label{margin-top:18px}.variable-level-preview{background:var(--panel-soft);padding:12px 15px;border-radius:7px}.variable-level-source{font-size:13px}.variable-level-source summary{cursor:pointer;margin-bottom:12px}.variable-level-source code{display:block;background:var(--panel-soft);padding:10px;margin-bottom:8px;border:1px solid var(--line);border-radius:5px;overflow-wrap:anywhere}.character-legacy-progression{border-top:1px solid var(--line);padding-top:20px;font-size:13px}.character-legacy-progression summary{cursor:pointer;color:var(--muted)}.character-legacy-progression .character-progression{padding:18px 0 0}@media(max-width:700px){.variable-level-rules{grid-template-columns:minmax(0,1fr)}}.variable-level-fieldset{border:0;padding:0;margin:0;min-width:0}.variable-level-fieldset[disabled]{opacity:.75}.references-dialog,.passage-group-settings{display:flex;flex-direction:column;gap:18px;padding:22px;min-width:0}.references-dialog>input,.references-dialog>select{width:100%}.reference-use-list{display:grid;gap:12px;max-height:52vh;overflow:auto}.reference-use-list>button{justify-content:space-between;text-align:left;padding:13px;gap:16px}.reference-use-list>button>span{display:grid;gap:7px;min-width:0;overflow-wrap:anywhere}.reference-use-list small{font-size:13px;color:var(--muted);line-height:1.6}.usage-button{font-size:12px;white-space:nowrap;gap:6px}.field-row .usage-button{width:32px;height:32px;padding:5px;font-size:0}.field-row .usage-button svg{width:17px;height:17px;flex-shrink:0}.action-value-editor{display:grid;gap:8px;min-width:0}.action-value-editor>input,.action-value-editor>select{width:100%;min-width:0}.condition-editor{align-items:start}.condition-add-group{grid-column:1/-1}.condition-add-group button{font-size:12px;background:transparent;color:var(--muted)}.condition-group{display:grid;gap:14px;border-left:3px solid var(--accent);border-radius:5px;background:var(--panel-soft);padding:12px;min-width:0}.condition-group .section-heading{gap:8px;flex-wrap:wrap}.condition-group-item{display:flex;gap:7px;align-items:flex-start;min-width:0}.condition-group-item>.condition-editor,.condition-group-item>.condition-group{flex:1;min-width:0}.condition-group .condition-editor{display:flex;flex-direction:column;gap:8px}.condition-group .condition-editor>select,.condition-group .condition-editor>.action-value-editor{width:100%}.passage-group-settings>label{display:grid;gap:8px}.passage-group-settings .group-color-field{display:flex;align-items:center;justify-content:space-between}.passage-group-settings .check-label{display:flex;flex-direction:row;gap:9px;align-items:center}.group-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.group-dimensions label{display:grid;gap:8px;min-width:0}.group-dimensions input{width:100%}.group-members{display:grid;gap:8px;max-height:230px;overflow:auto}.group-members>div{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:6px;padding:8px 10px}.group-members span{min-width:0;overflow-wrap:anywhere;font-size:13px}.field-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}.fields-editor .field-row{grid-template-columns:minmax(140px,1.6fr) 115px minmax(110px,1.2fr) 88px 88px 70px}.release-settings,.scene-settings{border:1px solid var(--line);border-radius:10px;padding:20px;background:var(--panel);margin:20px 0}.release-settings p,.scene-settings p,.progression-editor p,.media-library p{font-size:13px;color:var(--muted);line-height:1.65}.release-settings form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:18px}.release-settings form label{flex:1;min-width:160px;margin:0}.release-snapshots{display:grid;gap:8px;margin:15px 0}.release-snapshots>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;font-size:13px;padding:10px;background:var(--panel-soft)}.progression-editor{width:100%}.progression-editor form{display:flex;flex-direction:column;gap:20px}.progression-track-list{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.progression-track-list .active{background:var(--accent-soft);color:var(--accent)}.progression-level{display:flex;align-items:center;gap:14px;margin-bottom:10px;flex-wrap:wrap}.progression-level label{margin:0;max-width:200px}.progression-level span{font-size:13px;color:var(--muted)}.progression-editor pre{padding:15px;border:1px solid var(--line);background:var(--panel-soft);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.media-library>label{max-width:600px;margin:20px 0}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}.media-grid article{min-width:0;border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--panel);display:flex;flex-direction:column;gap:12px}.media-grid img{width:100%;height:160px;object-fit:contain;background:var(--panel-soft);border-radius:6px}.media-grid audio{width:100%}.media-grid small{color:var(--muted);font-size:12px}.character-portrait-select{margin-top:20px;max-width:500px}.folder-assets{border:1px solid var(--line);border-radius:12px;padding:20px;margin:22px 0 30px;background:var(--panel)}.folder-assets .section-heading{align-items:flex-start;gap:18px;flex-wrap:wrap}.folder-assets h3,.media-project-heading h3{margin:0 0 8px;font-size:17px}.folder-assets .section-heading p{margin:0;max-width:640px}.media-filter-bar{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0 12px}.media-filter-bar label{display:grid;gap:8px;flex:1;min-width:min(200px,100%);margin:0;font-size:13px}.media-filter-bar input,.media-filter-bar select{width:100%;min-width:0}.folder-selection-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:18px 0}.folder-selection-bar>span{flex:1 1 100%;color:var(--muted);font-size:13px;line-height:1.6}.folder-file-select{display:flex!important;align-items:flex-start;gap:9px;margin:0}.folder-file-select input{width:16px;height:16px;margin:2px 0 0;flex-shrink:0}.folder-file-select strong{min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5;font-weight:500}.media-source-path{display:block;overflow-wrap:anywhere;line-height:1.5}.folder-preview-placeholder{height:160px;display:grid;place-items:center;font-size:13px;color:var(--muted);background:var(--panel-soft);border-radius:6px}.folder-pagination{display:flex;gap:15px;justify-content:center;align-items:center;flex-wrap:wrap;margin:20px 0;font-size:13px}.folder-assets>button{margin-top:18px}.folder-access-note,.media-result-count{font-size:13px;color:var(--muted)}.folder-media-grid{margin:20px 0}@media(max-width:700px){.folder-assets{padding:14px}.folder-media-grid{grid-template-columns:minmax(0,1fr)}}.media-missing{color:#b42318;background:#fee4e2;white-space:normal;line-height:1.5}.media-workspace .folder-assets{margin-top:0}.media-manager{background:var(--bg)}.media-manager-heading{padding-bottom:20px}.asset-total{font-size:12px;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:6px 11px;white-space:nowrap}.asset-connection-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--panel);flex-wrap:wrap}.asset-connection-name,.asset-connection-actions{display:flex;align-items:center;gap:12px;min-width:0}.asset-connection-name>svg{color:var(--accent);flex-shrink:0}.asset-connection-name strong{font-size:13px;font-weight:500;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-connection-status{font-size:12px;color:var(--muted)}.asset-connection-dot{width:6px;height:6px;border-radius:50%;background:var(--muted);flex-shrink:0}.asset-connection-dot.connected{background:#28a275}.asset-connection-actions{gap:8px;flex-shrink:0}.asset-connection-actions button{min-height:33px;font-size:12px;padding:7px 11px}.asset-connection-notice{font-size:12px;color:var(--muted);padding:10px 26px;background:var(--panel-soft);border-bottom:1px solid var(--line);line-height:1.6}.asset-manager-body{display:flex;flex:1;min-height:0;overflow:hidden}.asset-folders{flex:0 0 218px;width:218px;min-width:0;padding:23px 12px;background:var(--panel);border-right:1px solid var(--line);overflow:auto}.asset-section-label{display:block;color:var(--muted);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1.1px;padding:0 12px;margin-bottom:12px}.asset-folders-heading{margin-top:28px}.asset-library-link,.asset-tree-link{border:0;background:transparent;width:100%;border-radius:6px;justify-content:flex-start;text-align:left;gap:9px;min-width:0}.asset-library-link{padding:10px 12px;min-height:38px}.asset-library-link span,.asset-tree-link span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.asset-library-link>svg,.asset-tree-link>svg{flex-shrink:0;color:var(--muted)}.asset-library-link small,.asset-tree-link small{font-size:11px;color:var(--muted)}.asset-library-link.active,.asset-tree-row.active{background:var(--accent-soft);color:var(--accent)}.asset-library-link.active>svg,.asset-tree-row.active .asset-tree-link>svg{color:var(--accent)}.asset-folder-tree{padding:0;margin:4px 0;list-style:none}.asset-folder-tree .asset-folder-tree{padding-left:12px}.asset-tree-row{display:flex;border-radius:6px;align-items:center;min-width:0}.asset-tree-toggle,.asset-tree-spacer{width:19px;flex:0 0 19px}.asset-tree-toggle{min-height:30px;padding:0;border:0;background:transparent;color:var(--muted)}.asset-tree-link{padding:9px 8px 9px 0;min-height:35px}.asset-folder-hint{font-size:11px;color:var(--muted);line-height:1.7;margin:35px 12px 0}.asset-browser{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.asset-browser-toolbar{display:flex;align-items:center;gap:10px;padding:17px 24px;background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap}.asset-search{position:relative;flex:1 1 200px;min-width:140px;display:flex;flex-direction:row;align-items:center;margin:0}.asset-search>svg{position:absolute;left:11px;color:var(--muted);pointer-events:none}.asset-search input{width:100%;padding-left:35px;min-height:36px;font-size:13px;background:var(--bg)}.asset-browser-toolbar>select{width:auto;max-width:150px;min-height:36px;font-size:12px;padding:8px 25px 8px 10px}.asset-view-switch{display:flex;padding:3px;gap:2px;background:var(--bg);border:1px solid var(--line);border-radius:7px}.asset-view-switch button{width:29px;height:28px;min-height:28px;padding:0;border:0;background:transparent;color:var(--muted);border-radius:4px}.asset-view-switch button[aria-pressed=true]{color:var(--accent);background:var(--panel);box-shadow:0 1px 3px #00000012}.asset-location-bar{padding:14px 25px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.asset-location-bar nav{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}.asset-location-bar button{min-height:23px;background:transparent;border:0;padding:2px 0;color:var(--muted);font-size:12px;max-width:240px;overflow-wrap:anywhere}.asset-location-bar nav>svg{color:var(--muted);flex-shrink:0}.asset-location-bar nav>span{font-size:12px}.asset-location-bar>span{color:var(--muted);font-size:11px;white-space:nowrap}.asset-browser-content{flex:1;min-height:0;overflow:auto;padding:4px 25px 24px}.asset-location-title{font-size:17px;font-weight:600;margin:0 0 20px;overflow-wrap:anywhere}.asset-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:13px;margin-bottom:24px}.asset-folder-card{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:0;padding:17px;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:10px}.asset-folder-card>svg:first-child{color:var(--accent);flex-shrink:0}.asset-folder-card>svg:last-child{color:var(--muted);margin-left:auto;flex-shrink:0}.asset-folder-card span{min-width:0}.asset-folder-card strong,.asset-folder-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-folder-card strong{font-size:13px;font-weight:500;margin-bottom:5px}.asset-folder-card small{font-size:11px;color:var(--muted)}.asset-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:17px}.asset-file-card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:border-color .12s,box-shadow .12s}.asset-file-card:hover{border-color:var(--accent);box-shadow:0 4px 18px #00000009}.asset-card-preview{position:relative;height:148px;padding:10px;background:var(--panel-soft);display:grid;place-items:center;overflow:hidden}.asset-card-preview>img{width:100%;height:100%;object-fit:contain;border-radius:4px}.asset-type-label{position:absolute;left:10px;top:10px;padding:3px 5px;border-radius:4px;font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);background:var(--panel);border:1px solid var(--line)}.asset-card-caption{padding:12px 13px}.asset-card-caption>button{display:block;border:0;background:transparent;color:var(--text);padding:0;min-height:22px;width:100%;text-align:left;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-card-caption>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.asset-card-caption>div>span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-missing-label{color:#c04945!important;display:inline-flex;align-items:center;gap:4px}.asset-preview-placeholder{display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--muted)}.asset-preview-placeholder>span{font-size:10px;text-align:center;line-height:1.5}.asset-audio-preview{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:18px;width:100%;color:var(--accent);padding-top:15px}.asset-audio-preview audio{width:100%;height:30px}.asset-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.asset-file-table{width:100%;border-collapse:collapse;text-align:left}.asset-file-table th{font-size:10px;color:var(--muted);font-weight:500;text-transform:uppercase;letter-spacing:.5px;padding:12px 15px;border-bottom:1px solid var(--line);background:var(--panel-soft)}.asset-file-table td{font-size:12px;padding:13px 15px;border-bottom:1px solid var(--line);color:var(--muted);max-width:260px;overflow-wrap:anywhere}.asset-file-table tr:last-child td{border-bottom:0}.asset-file-table td:first-child button{border:0;background:transparent;padding:0;min-height:20px;font-size:13px;text-align:left;color:var(--text);justify-content:flex-start}.asset-file-table td:first-child button svg{color:var(--accent);flex-shrink:0}.asset-empty{min-height:260px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:35px 20px;color:var(--muted)}.asset-empty>svg{margin-bottom:15px;color:var(--accent)}.asset-empty h3{font-size:17px;font-weight:500;color:var(--text);margin:0 0 9px}.asset-empty p{font-size:12px;line-height:1.7;max-width:320px;margin:0}.asset-browser-footer{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:12px 25px;border-top:1px solid var(--line);background:var(--panel);color:var(--muted);font-size:10px}.asset-pagination{display:flex;gap:14px;align-items:center;justify-content:center;padding:12px;font-size:12px}.asset-pagination button{min-height:30px;font-size:12px}.asset-inspector-preview{min-height:200px;display:grid;place-items:center;padding:22px;background:var(--panel-soft);border-radius:10px;margin-bottom:20px}.asset-inspector-preview>img{max-width:100%;max-height:340px;object-fit:contain}.asset-inspector dl{display:grid;grid-template-columns:65px minmax(0,1fr);gap:12px 18px;font-size:12px;margin:20px 0}.asset-inspector dt{color:var(--muted)}.asset-inspector dd{margin:0;overflow-wrap:anywhere}.asset-inspector>p{font-size:12px;line-height:1.6;color:var(--muted)}@keyframes asset-refresh{to{transform:rotate(360deg)}}.asset-refreshing{animation:asset-refresh .9s linear infinite}@media(max-width:1100px){.asset-folders{width:185px;flex-basis:185px}.asset-browser-toolbar{padding:14px 18px}.asset-connection-bar{padding:11px 20px}}@media(max-width:750px){.asset-manager-body{flex-direction:column;overflow:auto}.asset-folders{width:100%;flex:0 0 auto;max-height:180px;border-right:0;border-bottom:1px solid var(--line);padding:15px}.asset-folders-heading{margin-top:16px}.asset-folder-hint{display:none}.asset-browser{min-height:450px;overflow:visible;flex:1 0 auto}.asset-browser-content{overflow:visible}.asset-connection-bar{gap:10px}.asset-connection-name{flex-wrap:wrap;gap:8px}.asset-connection-status{font-size:11px}.asset-browser-toolbar{padding:12px 16px;gap:8px}.asset-browser-toolbar>select{max-width:135px}.asset-location-bar,.asset-browser-content{padding-left:16px;padding-right:16px}.asset-file-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}}@media(prefers-reduced-motion:reduce){.asset-refreshing{animation:none}}.asset-font-preview{display:grid;place-items:center;width:100%;height:100%;min-height:96px;color:var(--ink);font-size:28px}.scripts-workspace{height:100%;display:flex;flex-direction:column;padding:28px;gap:24px;min-height:0}.scripts-workspace>header{display:flex;align-items:center;justify-content:space-between;gap:20px}.scripts-workspace h1{margin:0 0 8px}.scripts-workspace p{margin:0;color:var(--muted)}.scripts-layout{display:grid;grid-template-columns:230px minmax(0,1fr);flex:1;min-height:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.scripts-layout>aside{padding:12px;border-right:1px solid var(--line);overflow:auto;display:flex;flex-direction:column;gap:8px}.scripts-layout>aside button{display:flex;gap:10px;text-align:left;align-items:center}.scripts-layout>aside button span{flex:1;overflow-wrap:anywhere}.scripts-layout .active{background:var(--accent-soft, #8072f522)}.script-editor{display:flex;flex-direction:column;min-width:0;min-height:0}.script-toolbar{padding:14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-bottom:1px solid var(--line)}.script-toolbar>input{flex:1;min-width:160px}.script-toolbar label{display:flex;gap:6px;align-items:center}.script-toolbar input[type=checkbox]{width:auto}.script-editor footer{min-height:56px;padding:12px 16px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.script-empty{padding:40px;max-width:650px}.script-empty h2{margin-top:0}.script-code-surface{flex:1;display:flex;flex-direction:column;min-height:300px;overflow:hidden;min-width:0;--script-keyword: #7953b3;--script-comment: #707a8e;--script-string: #177754;--script-number: #a05b16;--script-function: #2768a1;--script-definition: #92568a}.js-code-editor{flex:1;min-height:0;overflow:hidden;position:relative;background:var(--panel)}.js-code-editor .cm-editor{height:100%}.script-problems{max-height:100px;overflow:auto;border-top:1px solid var(--line);background:var(--panel-soft);padding:8px 12px}.script-problems button{border:0;padding:4px 6px;min-height:24px;text-align:left;justify-content:flex-start;color:#c44b54;font-size:12px;background:transparent}.script-editor-status{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:7px 13px;background:var(--panel-soft);border-top:1px solid var(--line);font-size:10px;color:var(--muted)}:root[data-theme=dark] .script-code-surface{--script-keyword: #c4a7f7;--script-comment: #9aa2b9;--script-string: #86d7b1;--script-number: #efb77c;--script-function: #8abff3;--script-definition: #edacd7}:root[data-theme=dark] .script-problems button{color:#ff9eac}.script-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.script-header-actions>input[hidden]{display:none}.script-toolbar label{flex-direction:row;white-space:nowrap}.widgets-workspace{height:100%;min-height:0;display:flex;flex-direction:column;padding:28px;gap:22px;--widget-code-keyword: #8062cf;--widget-code-string: #249b75}.widgets-workspace>header{display:flex;justify-content:space-between;align-items:center;gap:20px}.widgets-workspace h1{margin:0 0 8px}.widgets-workspace p{color:var(--muted);margin:0;line-height:1.6}.widget-header-actions,.widget-actions{display:flex;gap:8px;align-items:center}.widget-header-actions button{display:inline-flex;gap:8px;align-items:center;white-space:nowrap}.widgets-layout{flex:1;min-height:0;display:grid;grid-template-columns:240px minmax(0,1fr);border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}.widgets-layout>aside{overflow:auto;border-right:1px solid var(--line);padding:16px;min-width:0;display:flex;flex-direction:column;gap:16px}.widgets-layout>aside>input{width:100%;box-sizing:border-box;min-width:0}.widget-list{display:flex;flex-direction:column;gap:6px}.widget-list>button{display:flex;align-items:center;gap:10px;text-align:left;padding:12px;border:1px solid transparent;background:transparent;min-width:0}.widget-list>button.active{background:var(--accent-soft, #8072f51a);border-color:var(--accent)}.widget-list>button>span{min-width:0;display:grid;gap:4px}.widget-list strong{overflow-wrap:anywhere;font-size:13px}.widget-list small,.inline-widgets small{color:var(--muted);font-size:11px}.widget-detail{display:flex;flex-direction:column;min-height:0;min-width:0}.widget-detail-scroll{overflow:auto;min-height:0;padding:24px;display:flex;flex-direction:column;gap:24px;flex:1}.widget-title-row{display:flex;justify-content:space-between;align-items:end;gap:20px}.widget-title-row>label{display:grid;gap:8px;max-width:440px;flex:1;font-size:13px;font-weight:600}.widget-title-row input{width:100%;box-sizing:border-box}.widget-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.widgets-workspace h2{font-size:14px;margin:0}.widget-section-heading small{color:var(--muted)}.widget-parameters>p{font-size:13px;padding:14px;border:1px dashed var(--line);border-radius:8px}.widget-param-table{display:grid;gap:8px}.widget-param-row{display:grid;grid-template-columns:minmax(100px,1fr) 110px minmax(100px,1fr) 32px;gap:10px;align-items:center}.widget-param-row input,.widget-param-row select{width:100%;min-width:0;box-sizing:border-box}.widget-param-row.headings{font-size:11px;color:var(--muted)}.widget-body{min-height:250px;display:flex;flex-direction:column;flex:1}.widget-code{height:280px;min-height:230px;flex:1;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}.widget-usage{border-top:1px solid var(--line);padding-top:18px;display:grid;gap:10px}.widget-usage code{font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.widget-usage p{font-size:12px}.widget-detail>footer{padding:16px 24px;border-top:1px solid var(--line);display:flex;gap:16px;align-items:center;justify-content:space-between;flex-shrink:0}.widget-detail>footer>div:first-child{font-size:12px;color:var(--muted);overflow-wrap:anywhere;min-width:0}.widget-detail>footer>div[role=alert]{color:var(--danger, #d45565)}.widget-detail>footer>div:last-child{display:flex;gap:8px;flex-shrink:0}.widgets-empty{align-self:center;justify-self:center;max-width:430px;text-align:center;display:grid;justify-items:center;gap:18px;padding:28px}.widgets-empty h2{font-size:20px}.inline-widgets{margin-top:auto;border-top:1px solid var(--line);padding-top:16px;display:grid;gap:12px}.inline-widgets p,.widget-empty-note{font-size:12px}.inline-widgets article{display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}.inline-widgets article strong{font-size:12px}.inline-widgets article button{font-size:12px;margin-top:5px}.widget-insert-form{display:grid;gap:16px}.widget-insert-form label{display:grid;gap:8px}.widget-insert-form code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.characters-workspace{background:var(--bg)}.characters-list{flex:0 0 260px;width:260px;min-height:0;overflow-y:auto;padding:24px 16px;border-right:1px solid var(--line);background:var(--panel)}.characters-list-heading{padding:0 4px 20px}.characters-list-heading h2{margin:0 0 7px;font-size:20px}.characters-list-heading p,.characters-list .muted{font-size:13px;line-height:1.6}.characters-list-heading p{color:var(--muted);margin:0}.characters-library-tabs{display:flex;flex-direction:column;gap:5px;margin-bottom:18px}.characters-library-tabs button{width:100%;border:0;justify-content:flex-start;padding:11px;background:transparent;min-height:40px;gap:9px;text-align:left;white-space:normal;line-height:1.4}.characters-library-tabs button span{margin-left:auto;color:var(--muted);font-size:12px}.characters-library-tabs button.active,.characters-library-items button.active{color:var(--accent);background:var(--accent-soft)}.characters-list .character-create{width:100%;margin-bottom:14px}.characters-list input[type=search]{width:100%;font-size:13px}.character-list-label{font-size:12px;color:var(--muted);margin:24px 8px 10px}.characters-library-items>button{display:flex;width:100%;gap:11px;justify-content:flex-start;background:transparent;border:1px solid transparent;padding:12px 10px;margin-bottom:5px;text-align:left}.characters-library-items>button>svg,.characters-library-tabs svg{flex-shrink:0}.characters-library-items button>span{flex:1;min-width:0}.characters-library-items strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.characters-library-items small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.character-add-player{border-style:dashed!important;border-color:var(--line)!important}.character-detail{flex:1;min-width:0;overflow:auto}.character-detail>.empty{min-height:65%}.character-heading{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:25px 30px;background:var(--panel);border-bottom:1px solid var(--line)}.character-avatar{display:grid;place-items:center;flex-shrink:0;width:54px;height:54px;border:1px solid var(--line);border-radius:14px;color:var(--accent);background:var(--accent-soft)}.character-heading-title{min-width:120px;flex:1}.character-eyebrow{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.character-heading-title h2{margin:0 0 7px;font-size:22px;overflow-wrap:anywhere}.character-heading-title>code,.character-heading-title>p{font-size:13px;color:var(--muted);margin:0;overflow-wrap:anywhere}.character-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.character-actions>button{font-size:13px}.character-actions svg{flex-shrink:0}.character-detail-content{display:flex;flex-direction:column;gap:22px;padding:26px 30px}.character-profile,.character-variable-section{min-width:0;padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.character-profile .section-heading,.character-variable-section .section-heading{flex-wrap:wrap;gap:14px;margin-bottom:20px}.character-profile h3,.character-variable-section h3{font-size:15px}.character-profile p,.character-variable-section .section-heading p{font-size:13px;line-height:1.6}.character-profile>label{max-width:520px}.character-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.character-form-grid label,.character-dialog-content label{margin:0;min-width:0}.character-template-summary>span{display:block;margin-bottom:8px;font-size:12px;color:var(--muted)}.character-template-summary>div{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.character-template-summary .text-button{min-height:40px}.character-count{display:inline-block;margin-left:5px;padding:3px 7px;background:var(--panel-soft);border-radius:5px;color:var(--muted);font-size:12px;font-weight:400}.character-variable-section .fields-editor{overflow-x:auto}.character-variable-section .fields-editor>.section-heading{min-width:440px}.character-variable-section .field-table{min-width:920px}.character-variable-section .variable-definitions-table .field-row{grid-template-columns:minmax(145px,1.1fr) minmax(140px,1fr) 100px minmax(150px,1fr) 85px 85px 80px}.characters-workspace .variable-key-static{display:block;padding:10px 4px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.characters-workspace .variable-initial-input{min-width:0}.characters-workspace .variable-initial-input>input{width:100%}.characters-workspace .variable-initial-input small{white-space:normal}.character-inherited-scroll{overflow-x:auto}.character-inherited-table{width:100%;min-width:650px;border-collapse:collapse;text-align:left;font-size:13px}.character-inherited-table th{color:var(--muted);font-weight:500;background:var(--panel-soft)}.character-inherited-table th,.character-inherited-table td{padding:13px 12px;border-bottom:1px solid var(--line)}.character-inherited-table td small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}.character-inherited-table td code{font-size:12px}.character-inherited-table td:nth-child(4){min-width:170px}.character-inherited-table td:nth-child(4) select{width:100%}.character-template-users{display:flex;flex-wrap:wrap;gap:9px}.character-template-users small{color:var(--muted);font-size:12px}.character-start-note{color:var(--muted);font-size:13px;margin:0;line-height:1.6}.character-error{margin:18px 30px 0;padding:12px 15px;background:var(--panel);border:1px solid var(--line);border-radius:7px}.character-dialog-content{display:flex;flex-direction:column;gap:18px}.character-dialog-content p{margin:0;font-size:13px;line-height:1.6}.character-dialog-content small{color:var(--muted);font-size:12px;line-height:1.5}@media(max-width:1100px){.characters-list{flex-basis:225px;width:225px}.character-heading,.character-detail-content{padding:22px}.character-actions{flex-basis:100%}}@media(max-width:760px){.characters-workspace{flex-direction:column;overflow:auto}.characters-list{flex:0 0 auto;width:100%;max-height:310px;border-right:0;border-bottom:1px solid var(--line);padding:18px}.characters-list-heading{padding-bottom:12px}.characters-library-tabs{flex-direction:row;margin-bottom:12px}.characters-library-tabs button{width:auto;flex:1}.characters-library-items{margin-top:12px}.character-list-label{margin-top:16px}.character-detail{overflow:visible;flex:1 0 auto}.character-detail-content,.character-heading{padding:18px}.character-profile,.character-variable-section{padding:16px}.character-form-grid{grid-template-columns:minmax(0,1fr);gap:18px}}.character-name-inputs{margin-top:20px}.character-name-inputs small{font-size:12px;line-height:1.5}.character-detail-tabs{background:var(--panel);padding:0 30px;flex-wrap:wrap}.character-detail-tabs button{padding:16px 15px;font-size:13px}.character-progression{padding:20px 24px 30px;max-width:1260px}.character-progression-section{border:1px solid var(--line);border-radius:10px;padding:18px;background:var(--panel);margin-bottom:18px}.character-progression-section>.section-heading{gap:16px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.character-progression-section h3{font-size:18px;margin:0}.character-progression-section>p,.progression-empty{color:var(--muted);font-size:13px;line-height:1.7;margin:10px 0 0}.character-progression-section>.section-heading button{font-size:12px}.character-track-list{display:grid;gap:12px}.character-track{border:1px solid var(--line);border-radius:8px;overflow:clip}.character-track-heading{width:100%;border:0;border-radius:0;background:var(--panel-soft);padding:17px 20px;display:flex;align-items:center;gap:14px;text-align:left;justify-content:flex-start}.track-avatar{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;color:var(--muted)}.track-heading-name{min-width:0;flex:1}.track-heading-name strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.track-heading-name small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.track-direction{font-size:12px;color:var(--muted);margin-left:auto;overflow-wrap:anywhere}.character-track-heading>svg{flex-shrink:0;color:var(--muted)}.character-track-form{padding:22px 20px 0}.character-track-form label{font-size:12px;min-width:0}.character-track-form label small{color:var(--muted);font-size:11px;margin-top:8px;line-height:1.5}.track-starting-values,.track-participants{grid-template-columns:repeat(2,minmax(0,1fr));max-width:740px;margin:0 0 24px}.track-rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:20px}.track-rules-grid h4{font-size:15px;margin:0 0 15px;font-weight:500}.track-threshold-table{width:100%;border:1px solid var(--line);border-spacing:0;border-radius:7px;overflow:hidden}.track-threshold-table th{font-size:11px;font-weight:400;color:var(--muted);text-align:left;padding:10px 12px;background:var(--panel-soft)}.track-threshold-table td{border-top:1px solid var(--line);padding:9px 12px;font-size:13px}.track-threshold-table td:first-child{width:50px}.track-threshold-table td:last-child{padding-left:0;width:30px}.track-threshold-table td:last-child button{padding:3px;width:27px;height:27px;min-height:27px;border:0;background:transparent;color:var(--muted)}.track-threshold-table input{width:100%;min-width:70px}.track-add-level{margin-top:12px;font-size:12px}.track-limits p{color:var(--muted);font-size:11px;line-height:1.6;margin-top:13px}.track-source-help{margin-top:22px;color:var(--muted);font-size:12px}.track-source-help summary{cursor:pointer;margin-bottom:12px}.track-source-help code{display:block;padding:10px;border:1px solid var(--line);border-radius:5px;background:var(--panel-soft);overflow-wrap:anywhere}.track-source-help p{font-size:12px;line-height:1.6}.character-track-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:19px 0;margin-top:24px;border-top:1px solid var(--line)}.character-track-actions>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.character-track-actions button{font-size:12px}.new-track-title{font-size:14px;padding:18px 20px;margin:0;background:var(--panel-soft);border-bottom:1px solid var(--line)}.progression-save-notice{color:var(--accent);font-size:13px;margin:10px 0}@media(max-width:1050px){.track-rules-grid{gap:20px;grid-template-columns:minmax(0,1fr)}}@media(max-width:750px){.character-progression{padding:18px 16px}.character-progression-section{padding:16px}.track-starting-values,.track-participants{grid-template-columns:minmax(0,1fr)}.character-track-heading{gap:9px;padding:14px;flex-wrap:wrap}.track-direction{width:100%;margin-left:45px}.character-track-form{padding:18px 14px 0}.character-detail-tabs{padding:0 8px}}.track-participant-settings{margin-bottom:18px;font-size:12px;color:var(--muted)}.track-participant-settings summary{cursor:pointer}.track-participant-settings[open] summary{margin-bottom:16px}.track-limits label{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.character-track-actions{position:sticky;bottom:0;z-index:2;background:var(--panel);box-shadow:0 -8px 14px var(--panel)}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.story-workspace{min-width:0}.story-workspace .graph-toolbar{flex-wrap:wrap;padding:12px 18px}.story-workspace .graph-toolbar button{flex-shrink:0}.story-workspace .flow-workspace{min-width:0}.story-workspace .passage-dialogs{display:contents}.story-passage-node{position:relative;width:260px}.story-passage-node.selected .passage-card{box-shadow:0 0 0 2px var(--accent)}.story-passage-node>.react-flow__handle{width:12px;height:12px;background:var(--accent);border:2px solid var(--panel)}.story-passage-node .passage-card{max-width:260px}.story-workspace .call-open{font-size:12px;max-width:100%;margin-top:8px}.story-workspace .node-output{font-size:12px}.story-workspace .flow-card .react-flow__handle{width:12px;height:12px}.story-workspace .flow-card .node-output .react-flow__handle{right:-24px}.passage-library-list{padding:24px;overflow:auto;min-height:0}.passage-library-row{display:flex;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.passage-library-row>div{min-width:0;flex:1}.passage-library-row strong{font-size:14px}.passage-library-row p{font-size:13px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:7px}.passage-library-row>button{flex-shrink:0}.story-workspace .item-list h3{font-size:13px}.story-workspace .item-list>button small{flex-shrink:0}.story-workspace .workspace-heading>.title-input{min-width:100px}.story-workspace .inspector{overflow-x:hidden}.story-workspace .inspector>button{max-width:100%}@media(max-width:800px){.passage-library-row{flex-wrap:wrap}.passage-library-row>div{flex-basis:calc(100% - 55px)}.story-workspace .graph-toolbar{gap:8px}.story-workspace .graph-toolbar button{font-size:13px}.story-workspace .graph-toolbar select{max-width:180px}}.global-passage-workspace .map-passage-node .passage-card{height:220px}.global-passage-workspace .map-badges{display:flex;gap:6px;padding:0 14px 6px;min-height:22px;flex-wrap:wrap}.map-badges span{font-size:10.5px;font-weight:600;letter-spacing:.5px;color:var(--accent);background:var(--accent-soft);border-radius:4px;padding:3px 5px}.map-transition{justify-content:space-between;text-align:left}.map-transition>span{min-width:0;font-size:12px}.map-transition strong{display:block;line-height:1.5;font-size:13px;margin-top:5px}.map-notice{padding:10px 24px;background:var(--accent-soft);font-size:13px}.global-passage-workspace .inspector>h3{margin-top:20px}.global-passage-workspace .passage-dialogs{display:contents}.flow-hub>.tabs{flex-shrink:0}.sequence-host{flex:1;min-height:0;display:flex}.event-steps-workspace{display:flex;flex:1;min-height:0}.event-steps-workspace>.flow-workspace{flex:1;min-height:0}.event-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:10px 24px;border-bottom:1px solid var(--line)}.event-breadcrumb>span{color:var(--muted);font-size:13px}.scene-reference>button{margin-top:12px}.passage-source-editor{min-height:100%;display:flex;flex-direction:column}.source-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}.source-toolbar>span{font-size:13px;color:var(--muted)}.passage-source-editor .passage-code{min-height:230px;height:49vh;resize:vertical;flex:none}.passage-editor-body>.passage-exits{padding:22px}.passage-dialogs .tabs{overflow-x:auto}.passage-notice{margin:0;padding:12px 22px;color:var(--ink);background:var(--panel-soft);border-bottom:1px solid var(--line);font-size:13px}.passage-code-workspace{min-height:100%}.passage-code-workspace .source-toolbar strong{font-size:14px}.passage-code-workspace .source-toolbar p{font-size:12px;margin-top:5px}.passage-code-workspace .navigation-code{display:block;width:100%;min-height:320px;height:37vh;resize:vertical;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px 22px;line-height:1.7;font-size:13px;-moz-tab-size:2;tab-size:2}.code-status{font-size:12px;color:var(--muted);margin:0;padding:10px 22px}.passage-code-workspace>.error-message{margin:14px 22px}.code-help{padding:16px 22px;font-size:13px;line-height:1.6}.code-help summary{cursor:pointer;font-weight:600}.code-help p{margin-top:10px}.code-help pre{background:var(--panel-soft);border:1px solid var(--line);border-radius:8px;padding:16px;overflow:auto;margin-top:12px}.code-id-lists{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:18px}.code-id-lists h3{font-size:13px}.code-id-lists code{display:block;overflow-wrap:anywhere}.flow-overview{display:grid;grid-template-columns:220px minmax(0,1fr) auto}.flow-catalog{overflow:auto;padding:18px 14px;border-right:1px solid var(--line);background:var(--panel)}.flow-catalog>label{display:block;font-size:12px}.flow-catalog input{width:100%;margin-top:8px}.flow-catalog section{margin-top:24px}.flow-catalog h2{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin-bottom:12px}.flow-catalog h2 span{color:var(--muted);font-size:12px}.flow-catalog p{font-size:12px;line-height:1.6}.flow-catalog .flow-catalog-item{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:12px 10px;margin-bottom:7px}.flow-catalog-item strong,.flow-routine>strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.flow-catalog-item small{font-size:11px;color:var(--muted)}.flow-catalog-item.active{border-color:var(--accent);background:var(--panel-soft)}.flow-routine{border-top:1px solid var(--line);padding:12px 0;margin-top:12px}.flow-routine .toolbar-actions{flex-wrap:wrap;gap:6px;margin-top:8px}.flow-routine button{min-height:32px;font-size:12px;padding:6px 8px}@media(max-width:1200px){.flow-overview{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(260px,1fr)}.flow-catalog{grid-column:1 / -1;max-height:190px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;border-right:0;border-bottom:1px solid var(--line)}.flow-catalog section{margin:0}.flow-overview .logic-inspector{width:300px}}@media(max-width:800px){.flow-overview{display:flex;flex-direction:column;overflow:auto}.flow-catalog{flex:0 0 auto;width:100%;max-height:220px}.flow-overview .graph-canvas{flex:0 0 380px}.flow-overview .logic-inspector{width:100%;flex:0 0 auto;overflow:visible;border-left:0;border-top:1px solid var(--line)}.code-id-lists{grid-template-columns:1fr}}.passage-source-editor>.passage-exits{padding:20px}.passage-exits .section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.passage-exits .section-heading p{max-width:48ch}.exit-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-top:1px solid var(--line)}.exit-summary{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;gap:5px;border:0;background:transparent;padding:6px}.exit-summary>strong{overflow-wrap:anywhere;text-align:left}.exit-summary>span{display:flex;align-items:center;gap:6px;color:var(--muted);text-align:left}.exit-summary>small{font-size:12px;color:var(--muted)}.exit-editor{display:flex;flex-direction:column;gap:16px}.exit-editor .exit-requirements-preview{display:block;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px;white-space:pre-wrap;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.exit-advanced{border-top:1px solid var(--line);padding-top:14px}.exit-advanced summary{cursor:pointer;font-weight:500}.exit-advanced>*:not(summary){margin-top:16px}.exit-advanced .section-heading{flex-wrap:wrap;gap:10px}.exit-action{padding:12px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;gap:10px}.exit-action-value{display:grid;grid-template-columns:1fr 1fr;gap:10px}.exit-action-value>*{min-width:0}.passage-live-preview{height:100%;display:flex;flex-direction:column;min-height:300px}.passage-live-preview>.html-frame{flex:1;min-height:230px}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;flex-wrap:wrap;font-size:12px;color:var(--muted)}.preview-controls{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0}.preserved-routes{border-top:1px solid var(--line);padding-top:14px}.preserved-routes summary{cursor:pointer}.preserved-routes li{padding:5px 0}@media(max-width:600px){.exit-action-value{grid-template-columns:1fr}.event-breadcrumb{padding:10px 16px}.passage-source-editor>.passage-exits{padding:14px}}.logic-card{position:relative;width:250px;min-height:170px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:18px;box-shadow:0 4px 16px #25243c08}.logic-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.logic-card>small{color:var(--accent);font-size:10px;letter-spacing:1px}.logic-card.quest>small{color:#a47f40}.logic-card>strong{display:block;font-size:15px;line-height:1.5;margin:9px 0;overflow-wrap:anywhere}.logic-card>p{font-size:13px;line-height:1.6;color:var(--muted)}.logic-card>span{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.logic-card .react-flow__handle{width:10px;height:10px;border:2px solid var(--panel);background:var(--accent)}.logic-inspector{width:350px;flex-basis:350px}.logic-inspector>h3{margin-top:18px}.logic-inspector>.toolbar-actions{flex-wrap:wrap}.quest-stage-row{display:flex;align-items:center;gap:8px}.quest-stage-editor{display:grid;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.quest-stage-editor label{display:grid;gap:6px}.quest-stage-row>input{min-width:0;flex:1}.quest-stage-row>span{color:var(--muted);font-size:12px}.passage-events{border-bottom:1px solid var(--line);padding:5px 0 24px;margin:10px 0 24px}.event-entry-actions{display:flex;flex-wrap:wrap;gap:10px}.event-entry-actions>*{max-width:100%}.event-entry-link{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:12px 0;font-size:13px}.bar-settings>label{margin:15px 0;max-width:400px}.bar-table{overflow:auto;border:1px solid var(--line);border-radius:8px;margin:15px 0}.bar-table table{width:100%;border-collapse:collapse;font-size:13px;min-width:540px}.bar-table th{text-align:left;font-weight:500;color:var(--muted);background:var(--panel-soft);padding:12px}.bar-table td{border-top:1px solid var(--line);padding:12px;vertical-align:top}.bar-table td strong{display:block;font-size:13px;line-height:1.5}.bar-table td small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:4px}.bar-table td select{min-width:130px;max-width:190px;font-size:12px}.advanced-rules{margin:18px 0}.advanced-rules>summary{cursor:pointer;font-size:13px;color:var(--muted);padding:8px 0}.advanced-rules .ui-rules{margin-top:15px}@media(max-width:900px){.flow-hub>.workspace-heading,.global-passage-workspace>.workspace-heading{flex-wrap:wrap;gap:15px}.flow-hub>.workspace-heading .toolbar-actions{flex-wrap:wrap}.logic-inspector{width:300px;flex-basis:300px}.bar-table table{min-width:500px}}.logic-card>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.logic-card>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.logic-card>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.macro-code-surface{position:relative;height:clamp(280px,45vh,540px);flex:1;min-height:240px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}.macro-code-surface pre,.macro-code-surface textarea{box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:18px;border:0;border-radius:0;font:13px/1.7 JetBrains Mono,monospace;white-space:pre;overflow:auto;-moz-tab-size:2;tab-size:2}.macro-code-surface pre{pointer-events:none;color:var(--ink)}.macro-code-surface textarea{background:transparent!important;color:transparent;caret-color:var(--ink);resize:none;-webkit-text-fill-color:transparent}.macro-code-surface textarea::selection{background:#8072f544}.syntax-macro{color:#7b46ca}.syntax-tag{color:#126d86}.syntax-comment{color:#737d8c}[data-theme=dark] .syntax-macro{color:#bd9cfc}[data-theme=dark] .syntax-tag{color:#83cddb}.code-diagnostic{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:var(--panel);border-left:3px solid #d25b68;overflow-wrap:anywhere}.code-diagnostic button{flex-shrink:0}.macro-reference-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.macro-reference-list button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:90px}.key-completion{display:flex;justify-content:space-between;width:100%;gap:12px;text-align:left;margin:6px 0;overflow-wrap:anywhere}.code-key-field{display:flex;gap:8px;flex-wrap:wrap}.code-key-field input{flex:1;min-width:160px}.exit-form-group{padding:0;margin:0;border:0;min-width:0}.exit-form-group:disabled{opacity:.65}.passage-preview-error{padding:24px;white-space:pre-wrap}.player-alias{display:grid;gap:8px;padding:12px}.passage-code-workspace .source-toolbar{flex-wrap:wrap;gap:12px}.passage-code-workspace .toolbar-actions{flex-wrap:wrap}.passage-code-workspace .macro-code-surface textarea{min-height:0;height:100%;padding:18px;font:13px/1.7 JetBrains Mono,monospace;resize:none;border:0}.global-passage-workspace .workspace-heading{flex-wrap:wrap;gap:14px}.global-passage-workspace .toolbar-actions{flex-wrap:wrap}.global-passage-workspace .react-flow__node-group{background:transparent;border:0;padding:0}.passage-map-group{height:100%;width:100%;border:2px solid var(--group-color);border-radius:10px;background:color-mix(in srgb,var(--group-color) 7%,var(--panel))}.passage-group-heading{display:flex;align-items:center;gap:10px;padding:10px 12px;height:54px;border-bottom:1px solid color-mix(in srgb,var(--group-color) 30%,transparent);cursor:grab;color:var(--ink)}.passage-group-heading>strong{font-size:14px;line-height:1.5;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.passage-group-heading>span{font-size:12px;color:var(--muted);border-radius:12px;background:var(--panel);padding:3px 8px}.passage-map-group .group-resize-line{border-color:var(--group-color)}.passage-map-group .group-resize-handle{background:var(--group-color);width:10px;height:10px;border:2px solid var(--panel);border-radius:3px}.global-passage-workspace .graph-and-inspector .inspector>label{display:grid;gap:8px;margin:12px 0}.flow-workspace{display:flex;flex-direction:column;min-height:0}.flow-workspace>.workspace-heading{flex-shrink:0;padding-bottom:18px}.flow-workspace-tabs{display:flex;gap:8px;padding:0 20px;background:var(--panel);border-bottom:1px solid var(--line);flex-shrink:0}.flow-workspace-tabs>button{border:0;border-bottom:3px solid transparent;border-radius:0;padding:13px 22px;background:transparent;font-size:14px}.flow-workspace-tabs>button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}.flow-workspace-tabs span{background:var(--panel-soft);border:1px solid var(--line);border-radius:10px;padding:1px 7px;font-size:12px}.flow-body{display:flex;flex:1;min-height:0;overflow:hidden}.flow-definitions{padding:22px 28px 40px;overflow-y:auto;min-width:0;flex:1}.flow-search{width:100%;margin-bottom:22px}.flow-related-group{display:grid;gap:14px;margin-bottom:22px;min-width:0}.flow-related-group.linked{padding-left:12px;border-left:2px solid var(--line)}.flow-group-label{color:var(--muted);font-size:12px}.flow-definition{background:var(--panel);border:1px solid var(--line);border-radius:9px;overflow:hidden;min-width:0}.flow-definition.selected{border-color:var(--accent)}.flow-definition-heading{display:flex;align-items:center;padding:12px 15px;gap:12px;min-height:80px}.flow-definition.selected>.flow-definition-heading{background:color-mix(in srgb,var(--accent-soft) 45%,var(--panel))}.flow-definition-toggle{border:0;background:transparent;padding:0 6px;flex:1;justify-content:flex-start;text-align:left;min-width:0;gap:15px}.flow-definition-toggle>span{display:grid;gap:7px;min-width:0}.flow-definition-toggle strong{font-size:16px;overflow-wrap:anywhere;line-height:1.35}.flow-definition-toggle small{color:var(--muted);font-weight:400;line-height:1.5}.flow-definition-toggle em{align-self:flex-start;margin-top:1px;font-size:11px;font-weight:600;padding:4px 9px;border-radius:15px;background:var(--accent-soft);color:var(--accent);font-style:normal;flex-shrink:0}.event-definition .flow-definition-toggle em{color:#218b7e;background:#218b7e12}.flow-definition-body{padding:14px 18px 20px;border-top:1px solid var(--line)}.quest-starts{display:flex;flex-wrap:wrap;align-items:center;border:1px solid var(--line);border-radius:7px;margin-bottom:22px;min-height:44px}.quest-starts>small{padding:12px 14px;color:var(--muted);font-weight:600;font-size:11px}.quest-starts button{border:0;border-left:1px solid var(--line);border-radius:0;flex:1;justify-content:flex-start;min-width:180px}.quest-starts button>span{display:inline-flex;gap:7px;align-items:center;margin-left:auto;color:var(--accent);font-size:12px}.quest-stage-canvas{display:flex;align-items:stretch;gap:14px;overflow-x:auto;padding:6px 2px 8px}.flow-stage-card{width:270px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;padding:14px 12px;display:flex;flex-direction:column;gap:13px}.flow-stage-card.selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent-soft) 35%,var(--panel))}.flow-stage-title{justify-content:flex-start;background:transparent;border:0;padding:0;gap:11px;text-align:left;min-height:37px}.flow-stage-title>span{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:var(--panel-soft);font-size:12px;flex-shrink:0}.flow-stage-title>strong{line-height:1.5;font-size:14px;overflow-wrap:anywhere}.flow-stage-card.selected .flow-stage-title>span{color:var(--accent);background:var(--accent-soft)}.flow-passage-ref{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:9px;min-width:0;padding:11px;font-size:13px;background:var(--panel)}.flow-passage-ref strong{font-weight:500;overflow-wrap:anywhere}.flow-passage-ref>span{display:inline-flex;align-items:center;gap:5px;margin-left:auto;color:var(--accent);font-size:12px}.flow-local-arrow{flex-shrink:0;align-self:center;color:var(--muted)}.flow-stage-objectives{padding-top:12px;border-top:1px solid var(--line);display:grid;gap:10px}.flow-stage-objectives>strong{font-size:13px;font-weight:500}.flow-stage-objectives>div{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.4}.flow-stage-objectives small{color:var(--muted);font-size:12px}.flow-stage-action{margin-top:auto;padding:10px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;justify-content:flex-start;font-size:12px;font-weight:400;line-height:1.5;text-align:left;color:var(--muted);background:transparent}.flow-add-scene{font-size:13px;border-style:dashed}.flow-add-stage{align-self:flex-start;border-style:dashed;white-space:nowrap;margin-top:5px}.flow-next-quest{display:flex;flex-direction:column;align-self:center;align-items:flex-start;padding:16px;width:180px;flex-shrink:0;border-style:dashed;gap:11px;text-align:left}.flow-next-quest small{color:var(--muted);font-size:11px}.flow-next-quest strong{font-size:14px}.flow-next-quest span{display:flex;justify-content:space-between;width:100%;color:var(--muted);font-size:12px}.flow-related{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:15px;border-top:1px solid var(--line);padding-top:14px}.flow-related small{color:var(--muted);margin-right:5px}.flow-related button{font-size:12px;min-height:30px;padding:5px 8px}.event-scene-references{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.event-scene-references .flow-passage-ref{min-width:210px}.flow-text-button{color:var(--accent);border:0;background:transparent;padding-left:0;justify-content:flex-start}.flow-hint{color:var(--muted);font-size:13px;line-height:1.6;margin:4px 0 16px}.flow-inspector{width:340px;flex:0 0 340px;min-width:0;border-left:1px solid var(--line);background:var(--panel);padding:0;display:flex;flex-direction:column;overflow:hidden}.flow-inspector-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 10px;flex-shrink:0}.flow-inspector-heading h3{font-size:16px}.flow-inspector-fields{padding:10px 22px 24px;overflow-y:auto;display:flex;flex-direction:column;gap:18px}.flow-inspector-fields>label,.quest-insert-form>label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:500}.flow-inspector-fields input:not([type=checkbox]):not([type=radio]),.flow-inspector-fields select,.flow-inspector-fields textarea{width:100%}.flow-inspector-fields .check-label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;line-height:1.6}.flow-inspector-fields>h4{border-top:1px solid var(--line);padding-top:22px;margin-top:5px;font-size:14px}.flow-inspector-fields p{line-height:1.6;font-size:13px}.flow-inspector-breadcrumb{color:var(--muted);margin-top:-5px}.flow-inline-row{display:flex;gap:7px;align-items:center}.flow-inline-row>button:first-child{flex:1;min-width:0}.quest-objective-form{display:grid;grid-template-columns:minmax(0,1fr) 70px 32px;align-items:end;gap:7px}.quest-objective-form label{display:grid;gap:7px;font-size:12px;color:var(--muted);min-width:0}.quest-reward-form,.quest-condition-form{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:7px}.flow-use-card{display:grid;gap:9px;text-align:left;justify-content:stretch;padding:12px;font-size:13px}.flow-use-card strong{font-weight:500}.flow-use-card span{font-size:12px;color:var(--muted);line-height:1.5}.flow-remove{margin-top:22px}.flow-empty{padding:45px 20px;text-align:center;color:var(--muted);display:grid;gap:12px}.flow-empty strong{font-size:17px;color:var(--ink)}.flow-empty p{font-size:13px;line-height:1.7}.quest-module-intro{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:8px;margin-bottom:22px;background:var(--panel)}.quest-module-intro>div{flex:1;min-width:180px}.quest-module-intro p{color:var(--muted);margin-top:6px;font-size:13px;line-height:1.5}@media(max-width:1150px){.flow-inspector{position:fixed;right:16px;top:95px;bottom:16px;z-index:40;width:min(340px,calc(100vw - 32px));border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}}@media(max-width:700px){.flow-workspace>.workspace-heading{flex-wrap:wrap;gap:15px}.flow-definitions{padding:16px}.flow-workspace-tabs{padding:0 8px}.flow-definition-heading{padding:12px 8px}.flow-definition-toggle{gap:8px;flex-wrap:wrap}.flow-definition-toggle>span{flex:1;min-width:130px}.quest-starts button>span{margin-left:0}}.quest-insert-form{display:flex;flex-direction:column;gap:18px}.quest-insert-form>label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:500}.quest-insert-form p{line-height:1.6;font-size:13px}.quest-insert-form .check-label{display:flex;flex-direction:row;align-items:center}.quest-key-help{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.quest-key-help>code{color:var(--muted)}.quest-key-help button{flex-wrap:wrap;text-align:left;justify-content:flex-start;font-size:12px}.quest-key-help code{overflow-wrap:anywhere}.narration-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,480px);gap:32px;align-items:start}.narration-settings-form{display:grid;gap:24px;min-width:0}.narration-settings h4{margin:0;font-size:12px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}.narration-settings .narration-help{margin:0;font-size:13.5px;color:var(--muted)}.narration-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.narration-presets button{display:grid;gap:4px;justify-items:start;justify-content:stretch;align-content:start;min-height:0;padding:12px 16px;text-align:left}.narration-presets small{font-size:13px;font-weight:400;color:var(--muted)}.narration-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px 20px}.narration-field{display:grid;gap:6px;min-width:0;font-size:13.5px;font-weight:500}.narration-range-label{display:flex;justify-content:space-between;gap:8px}.narration-range-label output{font-variant-numeric:tabular-nums;color:var(--muted)}.narration-segmented{display:flex;gap:2px;padding:3px;border-radius:var(--radius-sm);background:var(--panel-soft);box-shadow:0 0 0 1px var(--line)}.narration-segmented button{flex:1;min-height:32px;padding:4px 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13.5px;box-shadow:none}.narration-segmented button[aria-pressed=true]{background:var(--panel);color:var(--accent);font-weight:600;box-shadow:0 1px 3px #141e321f}.narration-color{grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:12px}.narration-color>small,.narration-color>button{justify-self:start;padding-bottom:8px}.narration-color label{display:grid;gap:6px}.narration-color input[type=color],.narration-cell-color input[type=color]{width:56px;height:34px;padding:2px}.narration-color small,.narration-cell-color small{font-size:12.5px;font-weight:400;color:var(--muted)}.narration-settings label.narration-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:14px}.narration-settings .narration-check input{flex:0 0 auto;width:auto;margin-top:4px}.narration-check small{display:block;font-size:13px;color:var(--muted)}.narration-characters{width:100%;border-collapse:collapse;font-size:14px}.narration-characters th,.narration-characters td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.narration-characters thead th{background:var(--panel-soft);font-size:12.5px;font-weight:600;color:var(--muted)}.narration-characters tbody th small{font-size:12px;font-weight:500;color:var(--accent)}.narration-characters select,.narration-characters input:not([type=color]){width:100%;min-height:32px}.narration-characters select{min-width:150px}.narration-cell-color{display:flex;align-items:center;gap:8px}.narration-styles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin:0}.narration-styles div{display:grid;gap:2px}.narration-styles dt{font-weight:600}.narration-styles dd{margin:0}.narration-styles code{font-size:13px;color:var(--ink-2)}.narration-preview{position:sticky;top:0;display:grid;gap:12px;padding:16px;border-radius:var(--radius);background:var(--panel-soft);box-shadow:0 0 0 1px var(--line)}.narration-preview iframe{width:100%;min-height:320px;border:0;border-radius:10px}.narration-settings-host{container-type:inline-size}@container (max-width: 1180px){.narration-settings{grid-template-columns:minmax(0,1fr)}.narration-preview{position:static}}.narration-table-scroll{max-width:100%;overflow-x:auto}.narration-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.narration-preview-heading button{display:inline-flex;align-items:center;gap:6px}.modal.wide.narration-preview-modal{width:min(1240px,calc(100vw - 64px));max-width:none;max-height:calc(100vh - 64px);overflow:auto}.narration-preview-body{padding:4px 24px 24px}.narration-preview-stage{padding:24px 32px;border-radius:var(--radius)}.narration-preview-stage iframe{width:100%;min-height:480px;border:0}.narration-preview-modal .narration-help{margin:12px 0 0;font-size:13.5px;color:var(--muted)}.narration-tabs{display:flex;flex-wrap:wrap;gap:2px;padding:3px;border-radius:var(--radius-sm);background:var(--panel);box-shadow:var(--shadow-rest)}.narration-tabs button{min-height:34px;padding:6px 14px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;box-shadow:none}.narration-tabs button[aria-selected=true]{background:var(--accent-soft);color:var(--accent);font-weight:600}.narration-tab-panel{display:grid;gap:24px}.narration-tab-panel>section{display:grid;gap:12px;padding:20px 22px;border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow-rest)}.line-style-editor{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:start}.line-style-list{display:grid;gap:4px}.line-style-editor .line-style-list button{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:2px;min-height:0;padding:8px 12px;border:0;border-radius:10px;background:transparent;text-align:left;box-shadow:none}.line-style-list button[aria-selected=true]{background:var(--accent-soft);color:var(--accent)}.line-style-list small{font-size:12px;color:var(--muted)}.line-style-editor .line-style-list .line-style-add{flex-direction:row;align-items:center;gap:6px;margin-top:6px;color:var(--accent);font-weight:500}.line-style-form{display:grid;gap:14px;min-width:0}.line-style-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.line-style-form-head h5{margin:0 0 2px;font-size:16px;font-weight:600}.line-style-form-head code{font-size:13px;color:var(--muted)}.line-style-form-head button{display:inline-flex;align-items:center;gap:6px}.danger-text{color:#b4233a}@container (max-width: 760px){.line-style-editor{grid-template-columns:minmax(0,1fr)}}.character-appearance-color{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:12px}.character-appearance-color label{display:grid;gap:6px}.character-appearance-color input[type=color]{width:56px;height:34px;padding:2px}.character-appearance-color>small,.character-appearance-color>button{justify-self:start;padding-bottom:8px;font-size:13px;color:var(--muted)}.character-appearance-color>button{color:var(--accent)}.tabs{display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);padding:0 24px;background:var(--panel);flex-shrink:0}.tabs button{border:0;border-radius:0;background:transparent;padding:15px 10px;color:var(--muted);font-size:13px;position:relative;white-space:nowrap}.tabs button.active{color:var(--accent)}.tabs button.active:after{content:"";position:absolute;bottom:0;height:2px;background:var(--accent);left:10px;right:10px}.tabs button span{font-size:10px;border-radius:4px;padding:2px 5px;background:var(--panel-soft)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#17132366;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);padding:32px;display:flex;align-items:center;justify-content:center}.modal{width:520px;max-width:100%;max-height:calc(100dvh - 64px);display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 30px 100px #11132930;overflow:hidden}.modal.wide{width:960px}.modal>header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);gap:20px}.modal>header h2{font-size:17px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal-content{padding:26px;overflow:auto;min-height:0}.modal-footer{border-top:1px solid var(--line);padding:16px 24px;display:flex;align-items:center;justify-content:flex-end;gap:10px;background:var(--panel);flex-shrink:0}.modal-footer>span{font-size:11px;margin-right:auto}.modal>form{display:flex;flex-direction:column;min-height:0}@media(max-width:760px){.tabs{padding:0 10px;gap:2px;overflow:auto}.tabs button{font-size:12px;padding:14px 8px}.modal-backdrop{padding:15px}.modal{max-height:calc(100dvh - 30px)}.modal.wide{width:100%}.modal>header{padding:17px 20px}.modal-footer{padding:13px 20px}.modal-footer>span{display:none}}.html-frame{display:block;width:100%;height:100%;border:0;background:transparent;min-height:0}.runtime{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.runtime-toolbar{min-height:65px;display:flex;align-items:center;gap:24px;padding:10px 22px;background:var(--panel);border-bottom:1px solid var(--line);z-index:2}.runtime-title{flex:1;min-width:0;display:flex;gap:12px;align-items:center}.runtime-title strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.runtime-title>span{font-size:8px;letter-spacing:1px;color:var(--muted);border:1px solid var(--line);padding:4px 6px;border-radius:4px}.player{display:grid;grid-template-areas:"top top top" "left main right" "bottom bottom bottom";grid-template-columns:var(--left) minmax(0,1fr) var(--right);grid-template-rows:var(--top) minmax(0,1fr) var(--bottom);flex:1;min-height:0;color:#e8e9f3;overflow:auto}.player-content{grid-area:main;width:100%;max-width:900px;min-width:0;min-height:0;margin:auto;height:100%;padding:45px clamp(20px,6vw,85px) 36px;display:flex;flex-direction:column}.player-content>.html-frame{flex:1;min-height:100px}.player-controls{padding:22px 16px 0;flex-shrink:0}.player-controls h3{font-size:16px;margin-bottom:18px;font-weight:500}.player-controls .game-primary{background:var(--game-accent);color:#fff;border:0;min-width:150px;padding:12px 20px;min-height:45px}.player-choices{display:flex;flex-direction:column;gap:10px;max-width:600px}.player-choices button{justify-content:space-between;min-height:47px;padding:12px 17px;background:#ffffff09;border:1px solid #ffffff26;color:#e8e9f3}.player-choices button:hover{border-color:var(--game-accent);background:#ffffff0e}.game-region{padding:25px 20px;background:#ffffff05;overflow:auto;min-width:0;min-height:0;display:flex;flex-direction:column;gap:26px}.region-right{border-left:1px solid #ffffff12}.region-left{border-right:1px solid #ffffff12}.region-top,.region-bottom{flex-direction:row;align-items:center;padding:12px 25px;gap:35px}.region-top{border-bottom:1px solid #ffffff12}.region-bottom{border-top:1px solid #ffffff12}.game-component{min-width:0}.game-component>span{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#aaaabe;display:block;margin-bottom:9px}.game-component>strong{font-size:21px;font-weight:500}.game-component p{font-size:14px;white-space:pre-wrap}.game-component progress{display:block;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:5px;margin-top:12px;border:0;border-radius:3px;overflow:hidden;background:#ffffff16;accent-color:var(--game-accent)}.game-component progress::-webkit-progress-bar{background:#ffffff16}.game-component progress::-webkit-progress-value{background:var(--game-accent)}.game-component progress::-moz-progress-bar{background:var(--game-accent)}.game-component button{width:100%;min-height:41px;justify-content:space-between;background:#ffffff08;color:#e8e9f3;border-color:#ffffff20;font-size:12px}.region-top .game-component,.region-bottom .game-component{min-width:120px}.region-top .game-component>span,.region-bottom .game-component>span{margin-bottom:4px}.region-top .game-component>strong,.region-bottom .game-component>strong{font-size:16px}.game-complete{font-size:12px;letter-spacing:1px;color:#a1a1b8}.player-empty{padding:50px 16px;flex:1}.runtime-message{padding:9px 20px;background:var(--accent-soft);color:var(--accent);font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:15px}.runtime-message.error{background:#f7e6e6;color:#9c4545}.runtime-message span{white-space:pre-wrap}.runtime-message .icon-button{border:0;min-height:26px;height:26px}.game-screen-backdrop{position:fixed;top:65px;right:0;bottom:0;left:0;background:#0008;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:30px;z-index:10}.game-screen{width:700px;max-width:100%;height:70vh;max-height:700px;display:flex;flex-direction:column;background:#1c1d2a;border:1px solid #ffffff22;border-radius:12px;overflow:hidden;color:#e8e9f3;box-shadow:0 25px 90px #0007}.game-screen header{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid #ffffff17}.game-screen h2{font-size:17px}.game-screen .icon-button{color:#e8e9f3;border-color:#ffffff25}.game-screen .html-frame{padding:16px 25px;flex:1}@media(max-width:1200px){.runtime-toolbar{gap:15px}.runtime-title>span{display:none}}@media(max-width:1000px){.runtime-title{display:none}.runtime-toolbar>.toolbar-actions{margin-left:auto}}@media(max-width:760px){.runtime-toolbar{flex-wrap:wrap;gap:10px;padding:10px 12px}.runtime-toolbar>.toolbar-actions{gap:6px}.runtime-toolbar button{font-size:11px;padding:7px}.runtime-toolbar .icon-button{width:30px;flex-basis:30px}.player{display:flex;flex-direction:column}.player-content{order:1;height:auto;min-height:500px;padding:20px 20px 35px;flex:1}.player-content>.html-frame{min-height:300px}.region-top{order:0}.region-left{order:2}.region-right{order:3}.region-bottom{order:4}.game-region{flex-direction:row;flex-wrap:wrap;flex-shrink:0;overflow:visible;padding:22px;gap:25px;border:0;border-top:1px solid #ffffff12}.game-component{min-width:120px;flex:1}}.game-modal-backdrop{background:#0008;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.game-modal-backdrop .modal{width:700px;height:70vh;max-height:700px;background:#1c1d2a;color:#e8e9f3;border-color:#fff2}.game-modal-backdrop .modal>header{border-color:#ffffff17}.game-modal-backdrop .icon-button{color:#e8e9f3;border-color:#ffffff25}.game-modal-backdrop .html-frame{padding:16px 25px;flex:1}.runtime-event-tools{display:flex;gap:10px;flex-wrap:wrap;padding:15px 20px;align-items:center;border-bottom:1px solid #ffffff15}.runtime-event-tools>button{color:#e8e9f3;background:#ffffff0a;border-color:#ffffff20;font-size:13px}.runtime-event-tools>details{color:#ccd0e2;font-size:13px;line-height:1.8}.runtime-event-tools summary{cursor:pointer}.runtime-event-tools details p{margin:8px 0}.save-games-dialog{min-width:0}.migration-review p{font-size:13px;color:var(--muted);line-height:1.65}.vn-stage{min-height:100%;background-size:cover;background-position:center;padding:24px;border-radius:12px;display:flex;flex-direction:column;gap:15px;flex:1}.vn-speaker{display:flex;gap:18px;align-items:flex-end;color:#fff;text-shadow:0 2px 8px #0008}.vn-speaker img{width:clamp(90px,18vw,200px);height:clamp(110px,22vw,250px);object-fit:contain;object-position:bottom}.vn-speaker strong{padding:12px 18px;border-radius:8px;font-size:20px;background:#111b}.vn-dialogue{flex:1;min-height:200px;background:#111d;border:1px solid #ffffff22;border-radius:10px;display:flex;overflow:hidden}.vn-dialogue>iframe{min-height:250px;flex:1;width:100%}.vn-audio{display:flex;flex-wrap:wrap;gap:12px;padding:10px;background:#111d;border-radius:10px}.vn-audio label{margin:0;font-size:12px;color:#fff;gap:7px}.vn-audio audio{max-width:min(100%,300px);height:36px}.runtime .player-content>.vn-stage{width:100%}.migration-review ul{max-height:220px;overflow:auto;font-size:13px;line-height:1.7}.standalone-menu{min-height:100dvh;display:grid;place-items:center;padding:30px;color:#f3f2ff}.standalone-menu>section{width:min(100%,480px);border:1px solid #ffffff22;border-radius:18px;background:#171923ed;padding:35px;display:grid;gap:14px;box-shadow:0 20px 60px #0005}.standalone-menu h1{font-size:clamp(28px,5vw,42px);line-height:1.2;overflow-wrap:anywhere;margin:8px 0 20px}.standalone-menu button{min-height:46px}.standalone-version{font-size:13px;color:#c9c6dc}.standalone-menu .game-primary{background:var(--game-accent);color:#fff}@media(max-width:700px){.vn-stage{padding:12px}.vn-speaker strong{font-size:17px}.runtime-toolbar{flex-wrap:wrap;height:auto;padding:10px}.runtime-toolbar .toolbar-actions{flex-wrap:wrap}.standalone-menu{padding:18px}}.player-options label{display:flex;flex-direction:column;gap:8px}.player-options{display:grid;gap:22px}.player-options input[type=checkbox]{width:auto}.player-options label:has(input[type=checkbox]){flex-direction:row;align-items:center}.dialogue-history article{padding:18px 0;border-bottom:1px solid var(--line)}.dialogue-history strong,.dialogue-history small{display:block}.dialogue-history p{white-space:pre-wrap;line-height:1.7}.dialogue-history small{color:var(--muted);margin-bottom:5px}.vn-stage .dialogue-text{white-space:pre-wrap;font-size:var(--vn-text-size, 20px);line-height:1.8;min-height:5.4em;margin:0 0 22px}.vn-stage .vn-dialogue{background:rgb(18 20 32 / var(--dialogue-opacity, .88));color:#f5f4ff;border-radius:12px;padding:24px}.vn-playback-controls{display:flex;gap:8px;align-items:center;margin-top:16px}.vn-playback-controls small{margin-left:auto}.vn-playback-controls button[aria-pressed=true],.vn-preset-options button[aria-pressed=true]{outline:2px solid var(--accent, #8976ff);outline-offset:2px}.vn-layout-cinematic{min-height:520px;display:flex;flex-direction:column;justify-content:end;background-size:cover;background-position:center}.vn-layout-cinematic .vn-speaker img{max-height:240px}.vn-layout-novel .vn-dialogue{max-width:760px;margin:auto;padding:clamp(20px,5vw,50px)}.vn-layout-novel{background-size:cover;padding:24px}.vn-preset-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.vn-preset-options button{padding:18px;text-align:left;display:grid;gap:8px}.vn-preset-options small{line-height:1.5}.player-controls[hidden]{display:none!important}@media(max-width:650px){.vn-preset-options{grid-template-columns:1fr}.vn-stage .vn-dialogue{padding:16px}.vn-layout-cinematic{min-height:380px}}.vn-stage .vn-dialogue{flex-direction:column;overflow:visible}.vn-stage .dialogue-player{width:100%}.vn-speaker{color:#f5f4ff}.vn-stage .vn-dialogue .html-frame{min-height:200px}.vn-layout-cinematic .vn-dialogue{flex:0 1 auto}.vn-layout-novel .vn-speaker{max-width:760px;width:100%;margin:auto}.vn-stage .dialogue-next{background:var(--game-accent, #7862d6);border:1px solid transparent;color:#fff;padding:11px 18px;border-radius:8px;cursor:pointer}.vn-stage .dialogue-next:disabled{background:transparent;border-color:#ffffff25;color:#c1bfd3;cursor:default}.vn-playback-controls button{background:#ffffff0b;border:1px solid #ffffff30;color:#eeecff;border-radius:7px;padding:7px 12px}.vn-playback-controls{color:#c1bfd3}.vn-layout-cinematic .vn-speaker img{width:auto;object-fit:contain}.quest-journal{text-align:left;font-size:13px;line-height:1.6}.quest-journal>h3{font-size:16px;margin-bottom:16px}.quest-journal>p{opacity:.7}.quest-journal details{padding:12px 0;border-top:1px solid currentColor;border-color:color-mix(in srgb,currentColor 18%,transparent)}.quest-journal summary{cursor:pointer;font-weight:600;margin-bottom:10px}.quest-journal summary small{display:block;font-weight:400;opacity:.7;font-size:11px}.quest-journal details>strong{display:block;font-size:13px}.quest-journal ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:8px}.quest-journal li{display:flex;gap:12px;align-items:flex-start}.quest-journal li small{margin-left:auto;white-space:nowrap;opacity:.7}.quest-journal li.done>span{text-decoration:line-through;opacity:.65}:is(.game-runtime,.game-preview) .persistent-audio-notice{position:relative;z-index:5;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 16px;background:var(--game-surface);color:var(--game-text);font-size:14px;grid-column:1/-1}.game-runtime,.game-preview{--bg: var(--game-bg);--panel: var(--game-surface);--panel-soft: var(--game-raised);--text: var(--game-text);--muted: var(--game-muted);--line: var(--game-line);--accent: var(--game-accent);--accent-soft: var(--game-accent-soft);color:var(--game-text);color-scheme:dark}:is(.game-runtime,.game-preview)[data-game-theme=paper]{color-scheme:light}.runtime.game-runtime{background:radial-gradient(ellipse at 32% 0%,var(--game-accent-soft),transparent 50%),var(--game-bg);height:100dvh;min-height:0}.game-runtime button{font-size:14px}.game-runtime button:focus-visible{outline:2px solid var(--game-accent);outline-offset:3px}.game-runtime .game-topbar{display:flex;flex-shrink:0;align-items:center;gap:24px;min-height:80px;padding:16px 28px;background:var(--game-bg);border-bottom:1px solid var(--game-line)}.game-topbar-brand{display:flex;align-items:center;gap:15px;min-width:0;flex:1}.game-topbar-brand>div{min-width:0;display:grid;gap:5px}.game-topbar-brand strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;letter-spacing:.15px}.game-topbar-brand small{color:var(--game-muted);font-size:10px;letter-spacing:1.5px}.game-runtime .game-topbar button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;color:var(--game-muted);background:transparent;min-height:42px;border-radius:10px}.game-runtime .game-topbar button:hover{background:var(--game-raised);color:var(--game-text)}.game-runtime .game-topbar .game-menu-trigger{width:44px;flex:0 0 44px;background:var(--game-surface);border:1px solid var(--game-line);color:var(--game-text)}.game-topbar nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.game-runtime .game-topbar nav button{padding:10px 12px}.game-topbar-actions{display:flex;align-items:center;gap:4px;margin-left:auto}.game-topbar-actions>button{width:42px}.game-runtime .game-topbar .mobile-panel-trigger{display:none}.game-runtime .player{background:transparent!important}.game-runtime .player-content{height:auto;min-height:0;display:block;max-width:1120px;margin:0 auto;padding:44px clamp(24px,5vw,72px) 64px}.game-story-heading{padding:8px 0 28px;margin-bottom:16px;border-bottom:1px solid var(--game-line)}.game-story-heading>span,.game-sidebar-heading>small{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--game-muted)}.game-story-heading h1{font-size:clamp(22px,2.5vw,30px);line-height:1.3;font-weight:550;letter-spacing:-.6px;margin:10px 0 0;overflow-wrap:anywhere}.game-runtime .runtime-event-tools{padding:0 0 20px;margin:0;gap:10px;border:0}.game-runtime .runtime-event-tools>small{font-size:10px;letter-spacing:1.5px;color:var(--game-muted);width:100%}.game-runtime .runtime-event-tools>button{padding:8px 12px;font-size:13px;background:var(--game-surface);color:var(--game-muted);border-color:var(--game-line)}.game-runtime .game-region{background:var(--game-surface);padding:28px 24px;gap:26px;color:var(--game-text);border-color:var(--game-line)}.game-sidebar-heading{display:grid;gap:9px;border-bottom:1px solid var(--game-line);padding-bottom:24px}.game-sidebar-heading>strong{font-size:18px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}.game-sidebar-heading>span{font-size:12px;color:var(--game-muted)}.game-runtime .game-identity{cursor:default;width:100%;display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--game-line);border-radius:14px;background:var(--game-raised);text-align:left;color:var(--game-text)}.game-identity-avatar{display:grid;place-items:center;width:52px;height:58px;border-radius:11px;background:var(--game-accent-soft);color:var(--game-accent);overflow:hidden;flex:0 0 52px}.game-identity-avatar img{width:100%;height:100%;object-fit:cover}.game-identity>span:last-child{display:grid;gap:8px;min-width:0}.game-identity small{font-size:9px;letter-spacing:1px;color:var(--game-muted)}.game-identity strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.game-runtime .game-component>span{font-size:11px;color:var(--game-muted);letter-spacing:1px}.game-runtime .game-component>strong{font-size:24px;font-weight:550}.game-runtime .game-component p{color:var(--game-muted);line-height:1.7}.game-runtime .game-component button{background:var(--game-raised);border-color:var(--game-line);color:var(--game-text);border-radius:10px;font-size:14px}.game-runtime .quest-journal{padding:0;color:var(--game-text)}.game-runtime .quest-journal h3{color:var(--game-text);font-size:14px;font-weight:600;margin:0 0 18px}.game-runtime .quest-journal p,.game-runtime .quest-journal small{color:var(--game-muted);line-height:1.6}:is(.game-runtime,.game-preview) .vn-stage{min-height:0;height:auto;display:block;flex:none;padding:12px 0;border:0;border-radius:18px;background-size:cover;background-position:center;color:var(--game-text)}:is(.game-runtime,.game-preview) .vn-conversation{width:min(100%,720px);margin-right:auto;padding:24px;background:var(--game-surface);border:1px solid var(--game-line);border-radius:18px;box-shadow:0 12px 36px #0000000c}:is(.game-runtime,.game-preview) .vn-align-right .vn-conversation{margin-left:auto;margin-right:0;border-color:var(--game-accent)}:is(.game-runtime,.game-preview) .vn-speaker{margin:0 0 20px;color:var(--game-text);text-shadow:none}:is(.game-runtime,.game-preview) .vn-speaker .vn-character-button{align-items:center;gap:12px;border-radius:8px;color:var(--game-text)}:is(.game-runtime,.game-preview) .vn-speaker img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--game-accent-soft)}:is(.game-runtime,.game-preview) .vn-avatar-placeholder{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--game-accent-soft);color:var(--game-accent);flex:0 0 44px;font-size:18px}:is(.game-runtime,.game-preview) .vn-speaker strong{padding:0;background:transparent;color:var(--game-accent);border-radius:0;font-size:14px;font-weight:600;letter-spacing:.3px}:is(.game-runtime,.game-preview) .vn-character-button:hover strong{background:transparent;color:var(--game-text)}:is(.game-runtime,.game-preview) .vn-dialogue{display:block;min-height:0;height:auto;flex:none;padding:0;border:0;border-radius:0;background:transparent;color:var(--game-text);overflow:visible}:is(.game-runtime,.game-preview) .vn-stage .dialogue-text{min-height:0;font-size:var(--vn-text-size, 20px);line-height:1.75;margin:0 0 24px}:is(.game-runtime,.game-preview) .vn-dialogue .html-frame{min-height:0;margin-top:12px;width:100%}:is(.game-runtime,.game-preview) .dialogue-next{padding:10px 16px;min-height:42px;border-radius:10px;background:var(--game-accent);color:var(--game-accent-ink);border:0}:is(.game-runtime,.game-preview) .dialogue-next:disabled{padding:0;min-height:24px;background:transparent;color:var(--game-muted);font-size:13px;border:0}:is(.game-runtime,.game-preview) .vn-playback-controls{border-top:1px solid var(--game-line);margin-top:20px;padding-top:14px;color:var(--game-muted);gap:10px;flex-wrap:wrap}:is(.game-runtime,.game-preview) .vn-playback-controls button{border:0;background:transparent;color:var(--game-muted);padding:6px 9px;border-radius:7px;font-size:12px}:is(.game-runtime,.game-preview) .vn-playback-controls button[aria-pressed=true]{background:var(--game-accent-soft);color:var(--game-accent);outline:none}:is(.game-runtime,.game-preview) .vn-stage[data-scene-kind=narrative] .vn-conversation{background:transparent;box-shadow:none;border:0;margin:12px auto;padding:22px 10px;text-align:center}:is(.game-runtime,.game-preview) .vn-stage[data-scene-kind=narrative] .dialogue-text{color:var(--game-muted);font-style:italic}:is(.game-runtime,.game-preview) .vn-stage[data-scene-kind=narrative] .vn-playback-controls{justify-content:center}:is(.game-runtime,.game-preview) .vn-stage[data-scene-kind=narrative] .vn-playback-controls small{margin-left:0}:is(.game-runtime,.game-preview) .vn-layout-cinematic{min-height:500px;display:flex;flex-direction:column;justify-content:end;padding:28px}:is(.game-runtime,.game-preview) .vn-layout-cinematic .vn-conversation{background:rgb(var(--game-surface-rgb) / var(--dialogue-opacity, .88))}:is(.game-runtime,.game-preview) .vn-layout-novel .vn-conversation{margin:auto;max-width:760px;padding:32px}.game-preview{border-radius:14px;background:var(--game-bg);padding:18px}.game-runtime .player-controls{width:min(100%,1000px);margin:0 auto;box-sizing:border-box;padding:22px 0 0}.game-runtime .player-controls button{border-radius:10px;color:var(--game-text);background:var(--game-surface);border:1px solid var(--game-line)}.game-runtime .player-controls .game-primary{color:var(--game-accent-ink);background:var(--game-accent);border:0}.game-runtime .modal-backdrop{background:var(--game-overlay);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.game-runtime .modal{background:var(--game-surface);color:var(--game-text);border:1px solid var(--game-line);border-radius:20px;box-shadow:0 24px 100px #0005}.game-runtime .modal>header{padding:24px 28px;border-color:var(--game-line)}.game-runtime .modal>header h2{font-size:19px;font-weight:550}.game-runtime .modal .modal-content{padding:26px 28px}.game-runtime .modal-footer{border-color:var(--game-line);padding:18px 28px}.game-runtime .modal button{color:var(--game-text);border-color:var(--game-line);background:var(--game-raised)}.game-runtime .modal button.primary{background:var(--game-accent);color:var(--game-accent-ink);border-color:transparent}.game-runtime .modal input,.game-runtime .modal select{background:var(--game-bg);color:var(--game-text);border-color:var(--game-line);accent-color:var(--game-accent)}.game-runtime .modal p{line-height:1.65}.game-runtime .modal-backdrop:has(.game-menu-drawer){justify-content:flex-start;align-items:stretch;padding:0}.game-runtime .game-menu-drawer{width:min(360px,92vw);max-height:100dvh;border-radius:0 20px 20px 0;border-left:0}.game-menu-intro{padding:10px 28px 24px;display:grid;gap:12px}.game-menu-intro small{color:var(--game-accent);font-size:10px;letter-spacing:2px}.game-menu-intro h3{margin:0;font-size:23px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.game-menu-intro>span{color:var(--game-muted);font-size:13px}.game-menu-items{display:grid;gap:8px;padding:0 18px 24px;overflow:auto}.game-runtime .game-menu-items>button{justify-content:flex-start;padding:16px;min-height:56px;gap:16px;border:0;border-radius:12px;background:transparent}.game-runtime .game-menu-items>button:hover{background:var(--game-raised)}.game-menu-items>button>svg:first-child{color:var(--game-accent)}.game-menu-items>button>svg:last-child{margin-left:auto;color:var(--game-muted)}.game-runtime .game-menu-drawer>.modal-footer{margin-top:auto}.game-runtime .game-save-slot{border-color:var(--game-line);background:var(--game-raised);border-radius:14px}.game-runtime .character-directory-grid article{background:var(--game-raised);border:1px solid var(--game-line);border-radius:14px}.game-runtime .character-directory-grid dd{color:var(--game-text)}.game-runtime .character-directory-grid dt{color:var(--game-muted)}.game-runtime .game-sidebar-content{display:grid;gap:24px}.game-runtime .runtime-message{background:var(--game-raised);color:var(--game-text);border-color:var(--game-line)}.standalone-menu.game-runtime{background:radial-gradient(ellipse at 50% 0%,var(--game-accent-soft),transparent 65%),var(--game-bg)}.standalone-menu.game-runtime>section{background:var(--game-surface);color:var(--game-text);border:1px solid var(--game-line);box-shadow:0 24px 100px #0003;border-radius:24px;padding:40px}.standalone-menu.game-runtime button{min-height:48px;border:1px solid var(--game-line);color:var(--game-text);background:var(--game-raised);border-radius:10px}.standalone-menu.game-runtime .game-primary{background:var(--game-accent);color:var(--game-accent-ink);border:0}.standalone-menu.game-runtime .standalone-version{color:var(--game-muted)}.player-interface-settings{display:grid;grid-template-columns:minmax(420px,660px) minmax(300px,1fr);gap:36px;padding:28px;overflow:auto;align-items:start}.interface-settings-main{display:grid;gap:22px}.interface-settings-main>section{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.interface-settings-main h2{font-size:22px;margin:0 0 12px}.interface-settings-main h3{margin:0 0 12px;font-size:16px}.interface-settings-main p{font-size:13px;line-height:1.7}.interface-item-list{display:grid;gap:10px;margin-top:18px}.interface-item-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;background:var(--panel-soft);border:1px solid var(--line);border-radius:10px}.interface-item-row>input[type=checkbox]{width:17px;height:17px;margin:0}.interface-item-row>label{display:grid;gap:7px;margin:0;min-width:0}.interface-item-row>label>span{font-size:11px;color:var(--muted);text-transform:capitalize}.interface-item-row>label>input{width:100%;min-width:0}.interface-order{display:flex;gap:3px}.interface-theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.interface-theme-choices>button{padding:18px;display:grid;text-align:left;gap:9px;border:1px solid var(--line);border-radius:12px}.interface-theme-choices>button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.interface-theme-dot{width:36px;height:25px;border-radius:6px;background:#141824;border:1px solid #353b50}.interface-theme-dot.paper{background:#f5f2ec;border-color:#d8d1c4}.interface-theme-choices small{color:var(--muted);font-size:12px}.interface-settings-main .check-label{display:flex;gap:10px;align-items:center;margin:16px 0;line-height:1.5}.interface-settings-main .check-label input{width:17px;height:17px;flex:0 0 17px}.interface-settings-preview{position:sticky;top:0;background:var(--game-bg);color:var(--game-text);border:1px solid var(--game-line);border-radius:16px;overflow:hidden}.interface-preview-top{display:flex;align-items:center;gap:14px;padding:22px;border-bottom:1px solid var(--game-line)}.interface-preview-top strong{font-size:13px;overflow-wrap:anywhere}.interface-preview-body{display:grid;grid-template-columns:minmax(0,1fr) 110px}.interface-preview-body>div{padding:30px 22px;min-width:0}.interface-preview-body small{color:var(--game-muted);font-size:9px;letter-spacing:1px}.interface-preview-body h3{font-size:20px;font-weight:500;line-height:1.5;margin:12px 0 24px}.interface-preview-body article{display:flex;align-items:start;gap:10px;background:var(--game-surface);border:1px solid var(--game-line);border-radius:12px;padding:16px}.interface-preview-body article>svg{color:var(--game-accent);flex-shrink:0}.interface-preview-body article strong{color:var(--game-accent);font-size:12px}.interface-preview-body article p{font-size:12px;line-height:1.7;margin:8px 0 0}.interface-preview-narrative{font-style:italic;color:var(--game-muted);font-size:13px;line-height:1.7;margin-top:28px}.interface-preview-body>aside{padding:30px 16px;display:flex;flex-direction:column;gap:18px;background:var(--game-surface);border-left:1px solid var(--game-line);font-size:11px;line-height:1.7}.interface-preview-body>aside>svg{color:var(--game-accent)}.interface-preview-body>aside>span{color:var(--game-muted)}.interface-preview-note{padding:16px 22px;margin:0;color:var(--game-muted);border-top:1px solid var(--game-line);font-size:11px;line-height:1.7}@media(max-width:1100px){.game-runtime .game-topbar{gap:14px;padding:14px 20px;flex-wrap:wrap}.game-topbar-brand{flex:1 1 180px}.game-topbar nav{order:3;width:100%;justify-content:center;border-top:1px solid var(--game-line);padding-top:8px}.player-interface-settings{grid-template-columns:minmax(340px,1fr);max-width:900px}.interface-settings-preview{position:static;max-width:600px;grid-row:1}.game-runtime .game-topbar-actions{margin-left:0}}@media(max-width:900px){.game-runtime .player{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "main" "bottom"}.game-runtime .player>.region-right,.game-runtime .player>.region-left{display:none}.game-runtime .game-topbar .mobile-panel-trigger{display:inline-flex}.game-runtime .player-content{padding:28px 24px 48px}.game-runtime .region-top,.game-runtime .region-bottom{flex-wrap:wrap}}@media(max-width:560px){.game-runtime .game-topbar{padding:12px 16px;gap:12px}.game-topbar-brand{gap:10px;flex-basis:120px}.game-runtime .game-topbar nav{gap:0;justify-content:flex-start}.game-runtime .game-topbar nav button{padding:10px 9px;min-height:44px}.game-runtime .game-topbar nav button span{font-size:13px}.game-runtime .game-topbar nav svg{display:none}.game-topbar-actions{gap:0}.game-topbar-actions>button{width:36px}.game-runtime .player-content{padding:22px 18px 40px}.game-story-heading{padding-bottom:20px}.game-story-heading h1{font-size:23px}:is(.game-runtime,.game-preview) .vn-conversation{padding:20px;border-radius:14px}:is(.game-runtime,.game-preview) .vn-layout-cinematic{padding:16px;min-height:380px}.game-runtime .modal{max-width:calc(100vw - 24px)}.game-runtime .modal>header,.game-runtime .modal .modal-content,.game-runtime .modal-footer{padding:20px}.game-runtime .save-slot-actions{flex-wrap:wrap}.player-interface-settings{padding:18px;display:block}.interface-settings-preview{margin-bottom:22px}.interface-settings-main>section{padding:18px}.interface-item-row{gap:9px;padding:10px}.interface-order{display:grid}.interface-theme-choices{gap:9px}.interface-theme-choices>button{padding:14px}.game-runtime .game-menu-drawer{max-width:92vw}.game-preview{padding:12px}}@media(prefers-reduced-motion:reduce){.game-runtime *,.game-preview *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.game-sidebar-content>section{display:grid;gap:24px}.game-sidebar-content{display:grid;gap:32px}.game-story-heading h1{color:var(--game-text)}:is(.game-runtime,.game-preview) .dialogue-next:disabled{opacity:1}:is(.game-runtime,.game-preview) .vn-after-content{text-align:left;margin:24px 0 0}.interface-theme-choices>button{justify-content:stretch;justify-items:start}.interface-settings-main h2+p{margin-bottom:20px}.game-runtime .game-topbar nav button{max-width:100%;min-width:0;text-align:left}.game-topbar nav button span{min-width:0;overflow-wrap:anywhere}.game-topbar nav button svg{flex-shrink:0}.game-menu-items>button>span{min-width:0;flex:1;text-align:left;overflow-wrap:anywhere}.runtime.game-runtime{position:relative;background:var(--game-bg)}.game-runtime .game-topbar{position:absolute;z-index:5;top:calc(var(--game-top-size, 0px) + 24px);left:calc(var(--game-left-size, 0px) + 28px);right:calc(var(--game-right-size, 0px) + 28px);min-height:56px;padding:0;gap:18px;border:0;background:transparent}.game-topbar-brand{flex:0 0 auto}.game-topbar-brand>div{display:none}.game-runtime .game-topbar .game-menu-trigger{width:46px;height:46px;border-radius:12px}.game-topbar nav{margin:auto;padding:4px;border:1px solid var(--game-line);border-radius:14px;background:var(--game-surface);box-shadow:0 8px 26px #00000014}.game-runtime .game-topbar nav button{min-height:44px;padding:10px 15px}.game-topbar-actions{margin-left:0;padding:3px;border-radius:12px;background:var(--game-surface);border:1px solid var(--game-line)}.game-runtime .player{overflow:hidden}.game-runtime .player-content{height:100%;overflow:auto;max-width:none;margin:0;padding:132px clamp(22px,4vw,60px) 48px;scrollbar-width:thin}.game-runtime .player-content>.html-frame{display:block;flex:none;width:100%;max-width:1000px;margin:0 auto}.game-runtime .game-story-heading{max-width:1000px;margin:0 auto 22px;padding:0 0 18px}.game-runtime .game-region{background:var(--game-bg);gap:24px}.game-runtime .game-sidebar-heading{text-align:center;padding-bottom:22px}.game-sidebar-heading>small{display:none}.game-sidebar-heading>strong{font-size:17px;color:var(--game-accent);font-weight:500;letter-spacing:1.5px}.game-runtime .game-identity{display:grid;justify-items:center;gap:16px;border:0;padding:0 0 24px;border-bottom:1px solid var(--game-line);border-radius:0;background:transparent;text-align:center}.game-identity-avatar{width:100%;max-width:260px;height:auto;aspect-ratio:4/5;border:1px solid var(--game-line);border-radius:14px;flex:auto;background:var(--game-surface)}.game-identity-avatar>svg{width:42px;height:42px;opacity:.4}.game-identity>span:last-child{gap:6px}.game-identity small{display:none}.game-identity strong{font-size:17px}.game-interactions{max-width:1000px;margin:30px auto 0;padding-top:18px;border-top:1px solid var(--game-line);color:var(--game-muted);font-size:13px}.game-interactions>summary{cursor:pointer}.game-runtime .game-interactions .runtime-event-tools{margin-top:16px;padding:0}.game-interactions .runtime-event-tools>small{display:none}@media(max-width:1100px)and (min-width:901px){.game-runtime .game-topbar{gap:10px;left:calc(var(--game-left-size, 0px) + 18px);right:calc(var(--game-right-size, 0px) + 18px);flex-wrap:wrap}.game-topbar nav{order:3;width:100%;margin:0;justify-content:center;border-top:1px solid var(--game-line);padding:4px}.game-topbar-actions{margin-left:auto}.game-runtime .player-content{padding-top:180px}}@media(max-width:900px){.game-runtime .game-topbar{position:static;margin:18px 18px 0;min-height:0;flex-wrap:wrap}.game-runtime .player-content{padding:28px 22px 42px}.game-topbar-brand{flex:0 0 auto}.game-topbar nav{order:3;width:100%;margin:0;padding:4px;justify-content:center}.game-topbar-actions{margin-left:auto}.game-runtime .game-topbar nav button{padding:9px 12px}.game-runtime .game-topbar .mobile-panel-trigger{display:inline-flex}}@media(max-width:560px){.game-runtime .game-topbar{gap:12px;margin:14px 14px 0;padding:0}.game-topbar-brand{flex-basis:auto}.game-runtime .game-topbar nav button span{font-size:13px}.game-runtime .game-topbar nav{justify-content:center;gap:0}.game-runtime .game-topbar nav button{padding:9px 10px}.game-runtime .player-content{padding:24px 16px 36px}.game-topbar-actions>button{width:38px}}.game-runtime .game-identity-with-portrait{justify-content:stretch}.game-identity:not(.game-identity-with-portrait) .game-identity-avatar{width:64px;height:64px;aspect-ratio:1}.game-runtime .game-topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:24px;top:calc(var(--game-top-size, 0px) + 32px);left:calc(var(--game-left-size, 0px) + 30px);right:calc(var(--game-right-size, 0px) + 30px);padding:0;min-height:112px}.game-runtime .game-topbar-brand{display:block}.game-runtime .game-menu-trigger{width:44px;height:44px;border:1px solid var(--game-line);border-radius:9px;background:rgb(var(--game-surface-rgb) / .72);color:var(--game-muted)}.game-topbar-assembly{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,280px) minmax(0,1fr);align-items:center;width:min(100%,800px);justify-self:center;min-width:0}.game-runtime .game-topbar .game-topbar-wing{display:flex;align-items:stretch;justify-content:center;width:auto;min-width:0;height:60px;margin:0;padding:0;gap:0;order:initial;background:rgb(var(--game-surface-rgb) / .7);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--game-line);border-radius:0}.game-runtime .game-topbar .game-topbar-wing-left{border-right:0;border-radius:13px 0 0 13px}.game-runtime .game-topbar .game-topbar-wing-right{border-left:0;border-radius:0 13px 13px 0}.game-runtime .game-topbar .game-topbar-wing button{display:flex;min-width:0;flex:1 1 0;align-items:center;justify-content:center;padding:0 12px;border:0;border-radius:8px;color:var(--game-muted);background:transparent}.game-runtime .game-topbar .game-topbar-wing button>svg{display:none}.game-runtime .game-topbar .game-topbar-wing button span{font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-runtime .game-topbar .game-topbar-wing button:hover{background:var(--game-accent-soft);color:var(--game-text)}.game-topbar-center{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:112px;padding:18px;border:1px solid var(--game-line);border-radius:17px;background:rgb(var(--game-surface-rgb) / .82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--game-muted);text-align:center}.game-topbar-center>span{width:100%;min-height:18px;font-size:13px;line-height:1.4;letter-spacing:.6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-topbar-center>span:first-child{color:var(--game-text);font-size:15px}.game-runtime .game-topbar-actions{display:flex;flex-direction:column;margin:0;padding:0;border:0;background:none;justify-self:end}.game-runtime .game-topbar-actions button{width:36px;height:36px}.game-runtime .player-content{padding-top:180px}.game-runtime .game-topbar button:focus-visible{outline:2px solid var(--game-accent);outline-offset:3px}.topbar-row-setting{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end;margin:12px 0}.topbar-row-setting label{display:grid;gap:6px}@media(max-width:1100px){.game-runtime .game-topbar{gap:12px;left:calc(var(--game-left-size, 0px) + 18px);right:calc(var(--game-right-size, 0px) + 18px)}.game-topbar-assembly{grid-template-columns:minmax(0,1fr) minmax(150px,210px) minmax(0,1fr)}.game-runtime .game-topbar .game-topbar-wing button{padding:0 8px}.game-runtime .game-topbar .game-topbar-wing button span{letter-spacing:.4px}}@media(max-width:900px){.game-runtime .game-topbar{position:static;margin:24px 18px 0}.game-runtime .player-content{padding-top:36px}}@media(max-width:650px){.game-runtime .game-topbar{grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;margin:18px 14px 0}.game-topbar-assembly{grid-column:1 / -1;grid-row:2;grid-template-columns:1fr 1fr;row-gap:0}.game-topbar-center{grid-row:1;grid-column:1 / -1;justify-self:center;width:min(100%,280px);min-height:96px;margin-bottom:-1px;border-radius:14px 14px 0 0}.game-runtime .game-topbar .game-topbar-wing{grid-row:2;height:54px}.game-runtime .game-topbar .game-topbar-wing-left{border-right:1px solid var(--game-line);border-radius:10px 0 0 10px}.game-runtime .game-topbar .game-topbar-wing-right{border-radius:0 10px 10px 0}.game-runtime .game-topbar-actions{grid-column:3;grid-row:1;flex-direction:row}.game-runtime .game-topbar .game-topbar-wing button span{font-size:12px}.topbar-row-setting{grid-template-columns:1fr}}.game-runtime .game-topbar .game-topbar-wing{flex-wrap:wrap;height:auto;min-height:60px}.game-runtime .game-topbar .game-topbar-wing button{flex:1 1 84px;min-height:44px}@media(max-width:650px){.game-runtime .game-topbar .game-topbar-wing{min-height:54px}.game-runtime .game-topbar .game-topbar-wing button{flex-basis:76px}}.game-runtime .game-menu-drawer{width:min(340px,92vw);height:100dvh;max-height:100dvh;border-radius:0;background:var(--game-bg);box-shadow:16px 0 64px #0003;animation:game-menu-enter .18s ease-out}.game-runtime .game-menu-drawer>header{padding:26px 24px;border-bottom:1px solid var(--game-line);flex-shrink:0}.game-runtime .game-menu-drawer>header h2{color:var(--game-accent);font-size:17px;font-weight:500;text-transform:uppercase;letter-spacing:3px}.game-runtime .game-menu-drawer .game-menu-intro{padding:24px;gap:7px;flex-shrink:0}.game-runtime .game-menu-intro small{display:none}.game-runtime .game-menu-intro h3{font-size:17px;line-height:1.5}.game-runtime .game-menu-intro>span{font-size:12px}.game-menu-scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;padding:0 16px 20px}.game-runtime .game-menu-items{overflow:visible;padding:0;gap:10px}.game-runtime .game-menu-items>button{border:1px solid var(--game-line);border-radius:9px;min-height:62px;padding:16px;gap:15px;text-align:left;color:var(--game-text)}.game-runtime .game-menu-items>button:hover{background:var(--game-raised);border-color:var(--game-muted)}.game-runtime .game-menu-items>button>span{font-size:14px;letter-spacing:.3px}.game-runtime .game-menu-items>button>svg:first-child{color:var(--game-muted);flex-shrink:0}.game-menu-links{display:grid;gap:4px;margin-top:22px;padding-top:16px;border-top:1px solid var(--game-line)}.game-menu-links>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;min-height:44px;border-radius:7px;color:var(--game-muted);text-decoration:none;font-size:13px}.game-menu-links>a:hover{background:var(--game-raised);color:var(--game-text)}.game-menu-links>a>span{min-width:0;overflow-wrap:anywhere}.game-menu-links>a>svg{flex-shrink:0}.game-menu-links>a:focus-visible{outline:2px solid var(--game-accent);outline-offset:-2px}.game-runtime .game-menu-drawer>.modal-footer{padding:18px 24px;flex-shrink:0;border-top:1px solid var(--game-line)}.game-runtime .game-menu-drawer>.modal-footer>button{width:100%;justify-content:center}.game-help-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}@keyframes game-menu-enter{0%{transform:translate(-100%)}to{transform:translate(0)}}.game-runtime .game-region:is(.region-right,.region-left){display:block;padding:0;overflow:hidden;background:var(--game-bg)}.game-sidebar-layout{display:flex;flex-direction:column;height:100%;min-height:0;width:100%}.game-runtime .game-sidebar-heading,.game-runtime .game-sidebar-navigation-only{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;padding:28px 20px 18px;border-bottom:0;flex-shrink:0;text-align:center}.game-runtime .game-sidebar-heading>strong{font-size:16px;line-height:1.5;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:var(--game-accent)}.game-runtime .game-sidebar-heading>span{font-size:11px;line-height:1.5;letter-spacing:1.5px}.game-sidebar-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding:8px 24px 24px}.game-runtime .game-sidebar-body .game-identity{border:0;border-radius:0;background:transparent;padding:0;gap:12px;margin:0 0 24px;justify-items:center}.game-sidebar-body .game-identity-with-portrait .game-identity-avatar{max-width:220px;aspect-ratio:3/4;border-radius:8px;border:1px solid var(--game-line);height:auto}.game-runtime .game-sidebar-body .game-identity strong{font-size:14px;font-weight:500}.game-sidebar-components{display:grid;gap:0}.game-sidebar-components>.game-component:is(.component-value,.component-meter){padding:13px 0;border-bottom:1px solid var(--game-line)}.game-sidebar-components>.game-component:last-child{border-bottom:0}.game-value-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;min-width:0}.game-value-label{font-size:12px;color:var(--game-muted);letter-spacing:1px;text-transform:uppercase;line-height:1.6;overflow-wrap:anywhere;min-width:0}.game-value-row>strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.6;text-align:right;overflow-wrap:anywhere;min-width:0}.game-runtime .game-component progress{margin-top:9px;height:4px;accent-color:var(--game-accent)}.game-runtime .game-component p{margin:0;font-size:13px}.game-sidebar-components>.game-component:is(.component-module,.component-button,.component-text){padding:14px 0}.game-runtime .game-sidebar-components .game-component>button,.game-runtime .game-sidebar-footer .game-component>button{width:100%;min-height:44px;justify-content:space-between;padding:12px 14px;font-size:13px;text-align:left}.game-sidebar-footer{display:grid;flex-shrink:0;max-height:40%;overflow-y:auto;gap:12px;padding:18px 24px;border-top:1px solid var(--game-line);background:var(--game-surface)}.game-component-info{margin-top:7px}.game-component-info>summary{cursor:pointer;display:inline-flex;align-items:center;gap:5px;min-height:24px;color:var(--game-muted);font-size:11px;list-style:none}.game-component-info>summary::-webkit-details-marker{display:none}.game-component-info>summary:hover{color:var(--game-text)}.game-component-info>summary:focus-visible{outline:2px solid var(--game-accent);outline-offset:2px;border-radius:3px}.game-runtime .game-component-info>p{padding:9px 0 2px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.interface-help-label{display:grid;gap:8px;margin:20px 0 12px}.interface-menu-links h4{margin:22px 0 12px}.interface-link-row{display:flex;align-items:center;gap:6px;padding:12px 0;border-bottom:1px solid var(--line)}.interface-link-row>span{flex:1;min-width:0;display:grid;gap:5px}.interface-link-row small{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.interface-menu-links>button{margin-top:12px}.interface-link-draft{display:grid;gap:12px;padding:16px;margin-top:12px;background:var(--panel-soft);border:1px solid var(--line);border-radius:9px}.interface-link-draft label{display:grid;gap:7px}.interface-link-draft>div{display:flex;gap:8px}.game-value-format{display:grid;gap:12px;border:1px solid var(--line);border-radius:8px;padding:14px;min-width:0}.game-value-format label{display:grid;gap:6px}@media(max-width:900px){.game-sidebar-content .game-sidebar-layout{height:auto}.game-sidebar-body{overflow:visible}.game-sidebar-footer{max-height:none}}@media(prefers-reduced-motion:reduce){.game-runtime .game-menu-drawer{animation:none}}.game-value-label{display:flex;align-items:center;gap:5px}.game-runtime .game-component .game-value-info{display:inline-flex;align-items:center;justify-content:center;padding:0;width:24px;min-width:24px;height:24px;min-height:24px;border:0;border-radius:4px;background:transparent;color:var(--game-muted)}.game-runtime .game-component .game-value-info:hover{background:var(--game-raised);color:var(--game-text)}.game-runtime .game-component .game-value-explanation{padding-top:9px;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.game-modal-backdrop:has(.game-panel){padding:28px}.game-modal-backdrop .modal.game-panel{display:flex;flex-direction:column;width:min(620px,100%);height:auto;max-height:min(820px,calc(100dvh - 56px));min-height:0;border:1px solid var(--game-line, #303239);border-radius:16px;background:var(--game-surface, #17191d);color:var(--game-text, #eceef6);overflow:hidden}.game-modal-backdrop .modal.game-panel.wide{width:min(940px,100%)}.game-modal-backdrop .modal.game-panel>header{display:flex;align-items:center;gap:18px;padding:23px 28px;flex-shrink:0;border-bottom:1px solid var(--game-line, #303239)}.game-modal-backdrop .modal.game-panel>header h2{min-width:0;overflow-wrap:anywhere;font-size:18px;font-weight:500;letter-spacing:.2px;color:inherit}.game-modal-backdrop .game-panel>header .icon-button{width:36px;height:36px;flex-shrink:0;color:var(--game-muted, #a7acbe);background:transparent;border:1px solid var(--game-line, #303239);border-radius:8px}.game-panel-body{padding:26px 28px;overflow:auto;min-height:0;flex:1 1 auto;scrollbar-width:thin}.game-panel .game-panel-body>.modal-content{padding:0;overflow:visible}.game-panel-description{color:var(--game-muted, #a7acbe);font-size:13px;line-height:1.8;margin:0 0 24px}.game-modal-backdrop .game-panel-footer{flex-shrink:0;padding:18px 28px;gap:12px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--game-line, #303239);background:var(--game-surface, #17191d)}.game-panel-footer>button{min-height:40px;border-radius:8px}.game-panel-count{margin-right:auto;font-size:12px;color:var(--game-muted)}.game-panel-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px}.game-panel-toolbar>input{min-width:180px;flex:1 1 220px;min-height:42px}.game-panel-toolbar>select{max-width:100%;min-height:42px}.game-panel-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 24px;gap:12px}.game-panel-empty>span{color:var(--game-accent, #d78bad);opacity:.8}.game-panel-empty>strong{font-size:16px;font-weight:500;line-height:1.5}.game-panel-empty>p{margin:0;font-size:13px;line-height:1.8;max-width:350px;color:var(--game-muted, #a7acbe)}.game-panel-filters{display:flex;flex-wrap:wrap;gap:6px}.game-runtime .game-panel-filters>button{min-height:38px;border:1px solid transparent;padding:8px 13px;border-radius:7px;color:var(--game-muted);background:transparent;gap:8px}.game-runtime .game-panel-filters>button[aria-pressed=true]{border-color:var(--game-line);background:var(--game-raised);color:var(--game-text)}.game-panel-filters>button>span{font-size:11px;opacity:.65}.game-panel-notice{padding:12px 14px;border:1px solid var(--game-line);border-radius:8px;color:var(--game-muted);font-size:13px;overflow-wrap:anywhere}.game-panel-body label,.game-panel-body input{max-width:100%}.game-relation-group+.game-relation-group{margin-top:26px}.game-relation-group>h3{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:13px;font-weight:500;color:var(--game-muted)}.game-relation-group>h3>span{color:var(--game-muted);opacity:.6;font-variant-numeric:tabular-nums}.game-character-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-runtime .game-character-tile{display:flex;align-items:center;gap:14px;padding:16px;min-width:0;text-align:left;border-radius:10px;background:transparent;border:1px solid var(--game-line)}.game-runtime .game-character-tile:hover{border-color:var(--game-muted);background:var(--game-raised)}.game-character-thumbnail{width:52px;height:64px;display:grid;place-items:center;flex-shrink:0;border-radius:7px;color:var(--game-muted);background:var(--game-raised);overflow:hidden}.game-character-thumbnail img{width:100%;height:100%;object-fit:cover}.game-character-tile>span:nth-child(2){flex:1;min-width:0;display:grid;gap:7px}.game-character-tile strong{font-weight:500;font-size:14px;overflow-wrap:anywhere}.game-character-tile small{font-size:12px;color:var(--game-muted);overflow-wrap:anywhere}.game-character-tile>svg{flex-shrink:0;color:var(--game-muted)}.game-character-profile{display:grid;grid-template-columns:minmax(180px,250px) minmax(0,1fr);gap:32px;align-items:start}.game-profile-identity{display:grid;gap:20px;min-width:0}.game-profile-portrait{display:grid;place-items:center;width:100%;aspect-ratio:4/5;border:1px solid var(--game-line);border-radius:10px;color:var(--game-muted);background:var(--game-raised);overflow:hidden}.game-profile-portrait:not(.has-portrait){aspect-ratio:4/3}.game-profile-portrait img{width:100%;height:100%;object-fit:cover}.game-profile-identity small{font-size:10px;letter-spacing:1.8px;color:var(--game-accent)}.game-profile-identity h3{font-size:23px;font-weight:500;line-height:1.5;margin:7px 0 0;overflow-wrap:anywhere}.game-profile-identity p{color:var(--game-muted);font-size:13px;margin:8px 0 0}.game-profile-details{min-width:0}.game-profile-details dl{display:grid;grid-template-columns:minmax(90px,.85fr) minmax(0,1.15fr);gap:0 20px;margin:0}.game-profile-details dl:empty{display:none}.game-profile-details dt,.game-profile-details dd{padding:12px 0;margin:0;border-bottom:1px solid var(--game-line);font-size:13px;line-height:1.7;overflow-wrap:anywhere}.game-profile-details dt{color:var(--game-muted)}.game-profile-details dd{color:var(--game-text)}.game-profile-details .character-card-variables{margin-top:20px}.game-profile-details .character-variable-level{display:block;margin-top:5px;color:var(--game-accent);font-size:11px}.game-profile-bio{margin:24px 0 0;white-space:pre-wrap;font-size:13px;color:var(--game-muted)}.game-profile-empty{padding:20px;border:1px dashed var(--game-line);border-radius:8px;margin:0;color:var(--game-muted);font-size:13px}.game-audio-settings>h3{margin:0 0 22px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:1.5px;color:var(--game-muted)}.game-audio-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px;padding:0 0 24px}.game-audio-row>span{display:flex;align-items:center;gap:12px;font-size:14px}.game-audio-row>span>svg{color:var(--game-muted)}.game-audio-row output{color:var(--game-muted);font-size:13px;font-variant-numeric:tabular-nums}.game-audio-row input{grid-column:1 / -1;width:100%;padding:0}.game-mute-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--game-line);padding-top:22px}.game-mute-row>span{display:grid;gap:7px;font-size:14px}.game-mute-row small{color:var(--game-muted);line-height:1.7;font-size:12px}.game-mute-row input{width:20px;height:20px;flex-shrink:0}.game-reading-history{display:grid;gap:0}.game-reading-history strong{font-size:12px;font-weight:500;letter-spacing:.7px;color:var(--game-accent)}.game-reading-history small{font-size:11px;color:var(--game-muted)}.game-reading-history p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;margin:10px 0 0}.game-reading-history .is-narration p{font-style:italic;color:var(--game-muted)}.game-runtime .game-journal-panel .quest-journal>details{padding:0;border:1px solid var(--game-line);border-radius:10px;margin-bottom:14px;background:transparent;overflow:hidden}.game-runtime .game-journal-panel .quest-journal>details>summary{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;gap:14px;cursor:pointer;font-size:15px;list-style:none}.game-runtime .game-journal-panel .quest-journal>details>summary small{color:var(--game-accent);font-size:11px}.game-runtime .game-journal-panel .quest-journal>details>strong{display:block;font-size:13px;padding:0 20px;margin:4px 0 12px;font-weight:500}.game-runtime .game-journal-panel .quest-journal>details>p{padding:0 20px;font-size:13px}.game-runtime .game-journal-panel .quest-journal>details>ul{list-style:none;padding:0 20px 14px;margin:14px 0 0}.game-runtime .game-journal-panel .quest-journal li{display:flex;gap:12px;align-items:baseline;justify-content:space-between;padding:10px 0;border-top:1px solid var(--game-line);font-size:13px}.game-runtime .game-journal-panel .quest-journal li small{flex-shrink:0}.game-runtime .game-journal-panel .quest-journal li.done{color:var(--game-muted);text-decoration:line-through}.game-saves-panel .save-games-dialog{padding:0;overflow:visible}.save-slot-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.game-runtime .game-saves-panel .game-save-slot{display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:154px;padding:14px;gap:10px;border:1px solid var(--game-line);border-radius:10px;background:var(--game-raised)}.game-runtime .game-save-slot.is-empty{border-style:dashed;background:transparent}.game-save-kind{display:block;font-size:10px;font-weight:600;letter-spacing:.8px;color:var(--game-muted)}.game-save-slot-content{flex:1;min-width:0}.game-save-slot-content strong{display:block;font-weight:600;font-size:14px;overflow-wrap:anywhere}.game-save-slot-content p,.game-save-slot-content time{display:block;margin:5px 0 0;font-size:12px;color:var(--game-muted);overflow-wrap:anywhere;line-height:1.5}.game-save-slot-content time{font-size:11px}.game-save-warning{display:block;margin-top:8px;max-height:60px;overflow:auto;color:var(--game-muted);font-size:12px;line-height:1.5}.save-slot-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.game-runtime .save-slot-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;font-size:12px}.game-save-more{position:relative;margin-left:auto}.game-save-more>summary{display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:6px;list-style:none;cursor:pointer;color:var(--game-muted)}.game-save-more>summary::-webkit-details-marker{display:none}.game-save-more>summary:hover,.game-save-more[open]>summary{background:var(--game-surface);color:var(--game-text)}.game-save-more>summary:focus-visible{outline:2px solid var(--game-accent);outline-offset:2px}.game-save-more-actions{position:absolute;z-index:5;right:0;bottom:38px;display:grid;gap:4px;width:166px;padding:6px;border:1px solid var(--game-line);border-radius:9px;background:var(--game-surface);box-shadow:0 6px 22px #0004}.game-runtime .game-save-more-actions button{width:100%;justify-content:flex-start;border:0;padding:8px 10px;background:transparent}.game-runtime .game-save-more-actions button:hover{background:var(--game-raised)}.game-save-confirm p{margin:0 0 8px;font-size:12px;color:var(--game-text)}.game-save-notice{margin:0 0 16px;font-size:13px;color:var(--game-muted);line-height:1.6}.game-saves-panel .game-panel-footer>button{display:inline-flex;align-items:center;gap:7px}.game-older-saves{margin-top:20px}.game-older-saves>summary{cursor:pointer;color:var(--game-muted);font-size:13px;padding:12px 0}@media(max-width:1280px){.save-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.save-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.save-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.game-screen-panel .game-panel-body{display:flex;padding:0}.game-modal-backdrop .game-screen-panel .html-frame{padding:0;width:100%;min-height:420px;flex:1}.game-conversion-panel .migration-review label{display:grid;gap:10px;margin:20px 0}.game-conversion-panel .migration-review li{font-size:13px;line-height:1.8;margin:8px 0}.game-conversion-panel .migration-review fieldset{margin:20px 0;padding:16px;border:1px solid var(--game-border, #343640);border-radius:10px}.game-conversion-panel .migration-review fieldset label{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;margin:12px 0}.game-conversion-panel .migration-review fieldset input{width:18px;height:18px;flex:0 0 18px}@media(max-width:650px){.game-modal-backdrop:has(.game-panel){padding:10px}.game-modal-backdrop .modal.game-panel{max-height:calc(100dvh - 20px);border-radius:12px}.game-modal-backdrop .modal.game-panel>header,.game-panel-body,.game-modal-backdrop .game-panel-footer{padding:18px}.game-character-profile{grid-template-columns:1fr;gap:22px}.game-profile-identity{grid-template-columns:90px minmax(0,1fr);align-items:center;gap:18px}.game-character-tiles,.game-runtime .game-saves-panel .game-save-slot{grid-template-columns:1fr}.game-panel-toolbar{align-items:stretch}.game-panel-toolbar>select{width:100%}.game-panel-count{width:100%}}.game-saves-panel .save-slot-list{max-height:none;overflow:visible}.game-journal-panel .quest-journal>details>summary>span{flex:1;min-width:0;overflow-wrap:anywhere}.game-journal-panel .quest-journal>details>summary>svg{color:var(--game-muted);flex-shrink:0;transition:transform .12s ease}.game-journal-panel .quest-journal>details[open]>summary>svg{transform:rotate(180deg)}.game-panel-footer>button{max-width:100%;white-space:normal}.game-runtime .game-topbar-brand{grid-column:1;grid-row:1}.game-runtime .game-topbar-assembly{grid-column:2;grid-row:1}.game-runtime .game-topbar-actions{grid-column:3;grid-row:1}.game-runtime .game-topbar-components{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 24px;min-width:0}.game-topbar-components>.game-component{min-width:0}.game-topbar-components .game-value-row{gap:12px}.game-runtime .game-topbar-components .game-component>button{min-height:40px}@media(min-width:901px){.game-runtime .player-content{padding-top:calc(var(--game-header-height, 44px) + 68px)}}@media(max-width:650px){.game-runtime .game-topbar-assembly{grid-column:1 / -1;grid-row:2}.game-runtime .game-topbar-components{grid-column:1 / -1}}@media(max-width:900px){.game-runtime .player{display:grid;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:0px minmax(0,1fr) var(--bottom);grid-template-areas:"top" "main" "bottom"}.game-runtime .player>.game-region:is(.region-right,.region-left){display:none}.game-runtime .player-content{min-height:0}}.game-runtime .game-history-passage{border-bottom:1px solid var(--game-line)}.game-runtime .game-history-passage:last-child{border-bottom:0}.game-runtime .game-history-passage>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;cursor:pointer;list-style:none;color:var(--game-text);font-size:17px;font-weight:600;overflow-wrap:anywhere}.game-runtime .game-history-passage>summary::-webkit-details-marker{display:none}.game-runtime .game-history-passage>summary svg{flex-shrink:0;color:var(--game-muted)}.game-runtime .game-history-passage[open]>summary svg{transform:rotate(180deg)}.game-runtime .game-history-passage>summary:hover{color:var(--game-accent)}.game-runtime .game-history-passage>summary:focus-visible{outline:2px solid var(--game-accent);outline-offset:-2px;border-radius:6px}.game-runtime .game-history-passage .game-history-blocks{display:grid;gap:12px;padding:0 0 22px}.game-runtime .game-history-blocks p{margin:0;white-space:pre-wrap;font-size:15px;line-height:1.8}.game-runtime .game-history-blocks p.is-narration{color:var(--game-muted);font-style:italic}.game-runtime .game-history-blocks strong{font-size:inherit;letter-spacing:normal;font-weight:600}.game-runtime .game-story-controls{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:6px 0 0}.game-runtime .game-story-controls button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--game-line);border-radius:7px;color:var(--game-text);background:transparent;cursor:pointer}.game-runtime .game-story-controls button:not(:disabled):hover{background:var(--game-raised);color:var(--game-accent)}.game-runtime .game-story-controls button:disabled{opacity:.4;cursor:default}.game-runtime .game-story-controls button:focus-visible{outline:2px solid var(--game-accent);outline-offset:3px}.game-runtime .game-topbar .game-topbar-flat{display:flex;flex-wrap:wrap;gap:12px;width:100%;padding:12px 18px;border:1px solid var(--game-line);border-radius:6px;background:var(--game-surface)}.game-runtime .game-topbar .game-topbar-flat .game-topbar-center{order:-1;flex:1 1 180px;align-items:flex-start;min-height:0;width:auto;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;text-align:start}.game-runtime .game-topbar .game-topbar-flat .game-topbar-center>span{font-size:12px;min-height:0}.game-runtime .game-topbar .game-topbar-flat .game-topbar-center>span:first-child{font-size:16px;color:var(--game-text)}.game-runtime .game-topbar .game-topbar-flat .game-topbar-wing{flex:0 1 auto;min-height:36px;height:auto;border:0;border-radius:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.game-runtime .game-topbar .game-topbar-flat .game-topbar-wing button{flex:0 1 auto;min-height:36px}.game-runtime .game-topbar .game-topbar-free{display:block;width:100%;gap:12px;padding:14px 18px;border:1px solid var(--game-line);border-radius:10px;background:var(--game-surface)}.free-topbar-root,.free-topbar-row,.free-topbar-column{display:flex;flex-wrap:wrap;align-items:var(--topbar-align, center);justify-content:var(--topbar-justify, flex-start);gap:12px;min-width:0;max-width:100%}.free-topbar-root{width:100%;gap:inherit}.free-topbar-column{flex-direction:column;align-items:var(--topbar-align, flex-start)}.free-topbar-node{min-width:0;max-width:100%;overflow-wrap:anywhere}.free-topbar-text,.free-topbar-value{white-space:pre-wrap}.free-topbar-spacer{flex:1 1 16px}.game-runtime .game-topbar .free-topbar-navigation{display:flex;flex:0 1 auto;flex-wrap:wrap;width:auto;height:auto;margin:0;padding:0;gap:6px;border:0;background:transparent;justify-content:var(--topbar-justify, flex-start);align-items:var(--topbar-align, center)}.game-runtime .game-topbar .free-topbar-navigation button,.game-runtime .game-topbar .free-topbar-button,.game-runtime .game-topbar .free-topbar-dropdown summary{display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;min-height:38px;height:auto;width:auto;max-width:100%;padding:8px 12px;border:1px solid var(--game-line);border-radius:7px;background:var(--game-raised);color:var(--game-text);font:inherit;font-size:13px;text-align:start;cursor:pointer;overflow-wrap:anywhere}.game-runtime .game-topbar .free-topbar-dropdown summary{list-style:none;gap:8px}.free-topbar-dropdown summary:after{content:"▾"}.free-topbar-dropdown summary::-webkit-details-marker{display:none}.free-topbar-dropdown{position:relative}.free-topbar-dropdown-content{position:absolute;z-index:20;inset-inline-end:0;top:calc(100% + 8px);display:flex;flex-direction:column;align-items:stretch;gap:8px;width:max-content;min-width:160px;max-width:min(280px,calc(100vw - 40px));padding:12px;border:1px solid var(--game-line);border-radius:10px;background:var(--game-surface);box-shadow:0 12px 30px #0005;max-height:60vh;overflow:auto}.free-topbar-image{width:48px;height:40px}.free-topbar-image img{display:block;max-width:100%;width:100%;height:100%;object-fit:contain}.game-runtime .game-topbar .free-topbar-navigation button:hover,.game-runtime .game-topbar .free-topbar-button:hover,.game-runtime .game-topbar .free-topbar-dropdown summary:hover{background:var(--game-accent-soft)}@media(max-width:650px){.free-topbar-row[data-mobile-direction=column],.free-topbar-column[data-mobile-direction=column]{flex-direction:column}.free-topbar-row[data-mobile-direction=row],.free-topbar-column[data-mobile-direction=row]{flex-direction:row}.game-runtime .game-topbar .game-topbar-flat,.game-runtime .game-topbar .game-topbar-free{padding:12px}}.audio-insert-form{display:grid;gap:16px}.audio-insert-form>label,.audio-track-row>label{display:grid;gap:8px;min-width:0}.audio-insert-form select,.audio-insert-form input[type=number]{width:100%;min-width:0}.audio-insert-form>.check-label{display:flex;flex-direction:row;justify-content:flex-start;gap:8px;align-items:center}.audio-insert-form>.check-label input[type=checkbox]{width:16px;height:16px;margin:0;flex:0 0 auto}.audio-track-row{display:flex;gap:12px;align-items:end}.audio-track-row>label{flex:1}.passage-editor-body .passage-html-workspace{position:relative;padding:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--panel, #fff)}:is(.passage-html-workspace,.passage-editor-toolbar) .writing-toolbar{border:0;border-bottom:1px solid var(--line);border-radius:0;gap:3px;padding:8px;flex-wrap:wrap}.writing-insert-tools{display:flex;gap:8px;margin-left:auto;align-items:center}.writing-toolbar .writing-insert-tools select{width:105px;min-width:0}:is(.passage-html-workspace,.passage-editor-toolbar) .writing-toolbar>select{width:120px;min-width:0}:is(.passage-html-workspace,.passage-editor-toolbar) .writing-toolbar .icon-button{flex:0 0 32px;width:32px;height:32px}:is(.passage-html-workspace,.passage-editor-toolbar) .writing-toolbar .writing-tool-separator{margin:0 3px}.passage-html-workspace .passage-writing-frame{border:0;border-radius:0}.passage-html-workspace .writing-status{padding:10px 18px;border-top:1px solid var(--line)}.passage-editor-toolbar{flex:0 0 auto;min-width:0;background:var(--panel)}.passage-editor-toolbar[hidden]{display:none}.passage-editor-toolbar .source-toolbar{background:var(--panel)}.passage-editor-toolbar .source-toolbar strong{font-size:14px}.passage-editor-toolbar .source-toolbar p{margin-top:5px;font-size:12px}.passage-editor-toolbar .toolbar-actions{flex-wrap:wrap}.passage-dialogs .modal.wide>header,.passage-dialogs .passage-editor-navigation{flex-shrink:0}.passage-dialogs .modal.wide>.passage-editor-body{min-height:0;flex:1 1 auto;overscroll-behavior:contain}.passage-editor-toolbar+.passage-editor-body .passage-html-workspace{border:0;border-radius:0}.passage-editor-toolbar+.passage-editor-body .passage-writing-frame{min-height:410px}.passage-include-content{display:grid;gap:16px}.passage-include-content label{display:grid;gap:8px;font-size:13px;font-weight:500}.passage-include-content select{width:100%;min-width:0}.passage-include-content p{margin:0;font-size:13px;line-height:1.6}.passage-inline-inspector{position:absolute;z-index:12;top:90px;right:24px;width:min(310px,calc(100% - 48px));background:var(--panel, #fff);color:var(--text);border:1px solid var(--line);box-shadow:0 8px 30px #20203920;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:16px;max-height:calc(100% - 110px);overflow:hidden}.passage-inline-inspector header,.passage-inline-inspector footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.passage-inline-inspector label,.passage-inline-inspector details{display:flex;flex-direction:column;gap:8px;font-size:13px}.passage-inline-inspector select,.passage-inline-inspector input{width:100%;min-width:0}.passage-inline-inspector footer{justify-content:flex-end;flex-shrink:0;border-top:1px solid var(--line);padding-top:12px}.passage-inline-inspector header{flex-shrink:0}.passage-inspector-fields{display:flex;flex-direction:column;gap:16px;overflow:auto;min-height:0;padding:2px 3px}.passage-rule-form,.passage-rule-form label{display:flex;flex-direction:column;gap:10px}.passage-entry-form{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:18px}.passage-entry-form>*{min-width:0}.passage-entry-form select,.passage-entry-form input{width:100%}.passage-entry-value{grid-column:1 / -1}.passage-entry-value .action-value-editor{display:flex;flex-direction:column;gap:12px}@media(max-width:500px){.passage-entry-form{grid-template-columns:minmax(0,1fr)}}.character-profile-details{display:flex;flex-direction:column;gap:20px}.character-profile-details details{border-top:1px solid var(--line);padding-top:18px}.character-profile-details summary{cursor:pointer;font-weight:600}.character-profile-details details[open]>summary{margin-bottom:16px}.character-profile-details label{display:flex;flex-direction:column;gap:8px}.character-profile-details textarea{width:100%;resize:vertical}.character-profile-details .character-form-grid{margin-bottom:16px}.character-profile-details small{display:block;color:var(--muted);line-height:1.6}.character-profile-details details>p{margin:0 0 16px}.character-directory{display:flex;flex-direction:column;gap:20px}.character-directory h3{margin:0 0 12px}.character-directory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.character-directory article{padding:18px;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;gap:10px}.character-directory article img{height:100px;max-width:100%;object-fit:contain;align-self:flex-start}.character-directory article p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.character-directory article small{color:var(--muted)}.character-directory article dl{display:grid;grid-template-columns:95px minmax(0,1fr);gap:8px;margin:0;font-size:13px}.character-directory dt{color:var(--muted)}.character-directory dd{margin:0;overflow-wrap:anywhere}.passage-html-workspace>.passage-inline-inspector{max-height:min(460px,50vh,calc(100% - 100px))}.media-size-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.media-size-fields label{display:flex;flex-direction:column;gap:8px}.media-picker-grid video,.media-browser video{width:100%;max-height:180px;object-fit:contain}.character-portraits{display:flex;flex-direction:column;gap:16px;border-top:1px solid var(--line);padding-top:20px}.character-portraits header h3{margin:0 0 5px;font-size:15px}.character-portraits small{color:var(--muted)}.character-portrait-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}.character-portrait-grid article{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:9px;padding:10px;min-width:0}.character-portrait-grid img{width:100%;height:110px;object-fit:contain;border-radius:5px}.character-portrait-grid strong{font-size:12px;overflow-wrap:anywhere}.character-portrait-grid [aria-pressed=true]{color:var(--accent);background:var(--accent-soft, #f0edff)}.vn-stage.vn-align-right .vn-speaker{margin-left:auto;flex-direction:row-reverse;text-align:right}.vn-stage.vn-align-right .dialogue-player{text-align:right;margin-left:auto}.vn-stage.vn-align-right .dialogue-next{margin-left:auto}.vn-stage.vn-align-left .dialogue-player{text-align:left;margin-right:auto}.unified-source-footer{color:var(--muted);font-size:12px}.quest-manager{display:grid;grid-template-columns:240px minmax(240px,320px) minmax(360px,1fr);flex:1;min-height:0;gap:0;border-top:1px solid var(--line)}.quest-manager>*{min-width:0;overflow:auto;padding:20px;border-right:1px solid var(--line)}.quest-manager-list{display:flex;flex-direction:column;gap:12px}.quest-list-group{display:flex;flex-direction:column;gap:6px}.quest-list-group>button{width:100%;text-align:left;align-items:flex-start;display:flex;flex-direction:column;padding:14px;gap:6px;border-color:transparent}.quest-list-group>button.active{background:var(--accent-soft, #eeebff);color:var(--accent)}.stage-prompt-editor{display:flex;flex-direction:column;gap:14px;border-block:1px solid var(--line);padding:16px 0;margin:8px 0}.stage-prompt-editor label{display:flex;flex-direction:column;gap:8px}.stage-prompt-editor small{color:var(--muted)}.passage-code-workspace{position:relative}.passage-editor-body .passage-inline-inspector{max-height:min(460px,50vh,calc(100% - var(--inspector-top, 90px) - 16px))}.passage-code-workspace .macro-code-surface .source-line-numbers{width:52px;right:auto;border-right:1px solid var(--line);color:var(--muted);text-align:right;padding:18px 12px;overflow:hidden;background:var(--panel)}.passage-code-workspace .macro-code-surface .source-code-paint,.passage-code-workspace .macro-code-surface textarea{padding-left:68px}.quest-stage-details[open]{display:flex;flex-direction:column;gap:14px}.quest-stage-details summary{color:var(--muted);cursor:pointer;font-size:13px}.quest-manager>*{background:var(--panel)}.quest-manager-settings .flow-inspector-breadcrumb{display:none}.quest-manager-settings .usage-button{align-self:flex-start;width:auto}.quest-manager-settings .flow-inspector-fields>label,.quest-manager-settings .stage-prompt-editor>label{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:14px}.quest-manager-settings .quest-condition-form>summary{cursor:pointer;padding:14px;font-size:14px}.quest-manager-settings .quest-condition-form[open]>summary{margin-bottom:12px}.quest-manager-settings .flow-inspector-fields{gap:8px}.quest-manager-settings{position:relative}.quest-manager-settings>h3{padding-right:100px;margin-bottom:20px}.quest-manager-settings .flow-inspector-fields>.usage-button{position:absolute;top:16px;right:20px}.passage-code-workspace .macro-code-surface pre.source-code-paint,.passage-code-workspace .macro-code-surface pre.source-line-numbers,.passage-code-workspace .macro-code-surface textarea.code-input{font-size:14px}.quest-manager-list>button,.quest-stage-list>button{text-align:left;align-items:flex-start;display:flex;flex-direction:column;padding:14px;gap:6px;border-color:transparent}.quest-manager-list>button.active,.quest-stage-list>button.active{background:var(--accent-soft, #eeebff);color:var(--accent)}.quest-manager-list small,.quest-manager-stages>small{color:var(--muted)}.quest-manager-stages h2{font-size:22px;margin:0 0 8px}.quest-stage-list{display:flex;flex-direction:column;gap:8px;margin:22px 0}.quest-stage-list>button{flex-direction:row;align-items:center;gap:14px}.quest-stage-list>button span{border-radius:50%;width:28px;height:28px;display:grid;place-items:center;background:var(--surface, #f2f3f8);flex-shrink:0}.quest-manager-settings .flow-inspector-fields{max-width:680px;padding:0}.quest-manager-settings h3{margin-top:0}@media(max-width:1150px){.quest-manager{grid-template-columns:190px 225px minmax(300px,1fr)}.quest-manager>*{padding:15px}}@media(max-width:900px){.quest-manager{display:flex;flex-wrap:wrap;overflow:auto}.quest-manager-list{width:34%}.quest-manager-stages{width:66%}.quest-manager-settings{width:100%;border-top:1px solid var(--line)}}.home-content .example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.home-content .example-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.home-content .example-card h3{margin:10px 0;font-size:17px}.home-content .example-card p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.home-content .example-card>button{margin-top:auto;white-space:normal;text-align:left}.modal>.quest-insert-form{gap:20px;flex:0 1 auto}.modal>.quest-insert-form>label{min-width:0;gap:9px}.modal>.quest-insert-form input,.modal>.quest-insert-form select{width:100%;min-width:0}.modal>.quest-insert-form p{margin:0;line-height:1.7}.modal>header{flex-shrink:0}.character-profile .character-profile-details{margin-top:24px}.character-profile-details .character-family{display:flex;flex-direction:column;gap:16px}.character-profile-details .character-family>.character-form-grid{margin:0}.character-family-links{display:flex;flex-wrap:wrap;gap:8px}.character-family-links:empty{display:none}.character-family-links>div{display:flex;align-items:center;gap:12px;background:var(--panel-soft);border:1px solid var(--line);padding:4px 6px 4px 12px;border-radius:8px}.character-profile-details .family-parents{margin:0}.quest-manager{grid-template-columns:210px 230px minmax(0,1fr)}.quest-manager>.quest-manager-list,.quest-manager>.quest-manager-stages{background:var(--panel);padding:20px 16px}.quest-manager .quest-manager-settings{background:var(--panel-soft);padding:22px 24px}.quest-manager .quest-manager-settings>h3{font-size:18px;padding-right:130px;margin:0 0 24px;overflow-wrap:anywhere}.quest-manager .quest-manager-settings .flow-inspector-fields{gap:18px;max-width:780px;overflow:visible}.quest-manager .quest-manager-settings .flow-inspector-fields>.usage-button{top:16px;right:24px}.quest-manager .quest-manager-list .quest-list-group>button{gap:7px;min-height:66px}.quest-manager .quest-manager-list .quest-list-group>button strong{font-size:14px;overflow-wrap:anywhere}.quest-manager .quest-manager-stages h2{font-size:18px;overflow-wrap:anywhere}.quest-manager .quest-stage-list{gap:6px;margin:22px 0 16px}.quest-manager .quest-stage-list>button{justify-content:flex-start;text-align:left;padding:12px;min-height:44px;line-height:1.5}.quest-manager .quest-stage-list>button strong{font-weight:500;overflow-wrap:anywhere}.quest-manager .quest-manager-stages>button{width:100%}.quest-manager .quest-manager-stages>p{font-size:12px;line-height:1.7;margin-top:16px}.quest-manager .quest-form-section,.quest-manager .stage-prompt-editor,.quest-manager .flow-inspector-fields>.quest-stage-details{display:flex;flex-direction:column;gap:16px;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:20px;margin:0;min-width:0}.quest-manager .quest-form-section>h4,.quest-manager .stage-prompt-editor>h4{margin:0;font-size:14px}.quest-manager .quest-form-section>p,.quest-manager .stage-prompt-editor>small{margin:0;line-height:1.7}.quest-manager .quest-form-section label,.quest-manager .quest-stage-details label,.quest-manager .stage-prompt-editor>label{display:flex;flex-direction:column;gap:9px;font-size:13px;min-width:0;align-items:stretch;text-align:left}.quest-manager .quest-form-section .check-label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px}.quest-manager .quest-form-section .quest-code-key{flex-direction:row;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.quest-manager .quest-form-section input:not([type=checkbox]),.quest-manager .quest-form-section select,.quest-manager .quest-form-section textarea{width:100%;min-width:0}.quest-manager .quest-form-section>button:not(.flow-use-card),.quest-manager .stage-prompt-editor .toolbar-actions button{align-self:flex-start;width:auto}.quest-manager .quest-form-section .inline-empty{padding:14px;border-radius:7px;border:1px dashed var(--line);color:var(--muted);font-size:13px}.quest-manager .quest-actions-details{display:block}.quest-manager .quest-actions-details[open]{display:flex}.quest-manager .quest-actions-details summary{cursor:pointer;font-size:14px;font-weight:600}.quest-manager .quest-actions-details summary>span{color:var(--muted);font-weight:400;margin-left:8px}.quest-manager .quest-form-section .flow-use-card{width:100%;line-height:1.6}.quest-manager .quest-stage-details summary{font-size:13px;color:var(--muted);cursor:pointer}.quest-manager .quest-condition-form{display:block;background:var(--panel-soft);padding:14px}.quest-manager .quest-condition-form[open]{display:flex;flex-direction:column;gap:14px}.quest-manager .quest-manager-settings .quest-condition-form>summary{padding:0;line-height:1.6}.quest-manager .quest-manager-settings .quest-condition-form[open]>summary{margin-bottom:0}.quest-manager .quest-condition-form .condition-row{flex-wrap:wrap}.quest-manager .quest-objective-form{grid-template-columns:minmax(0,1fr) 85px 32px;align-items:end;gap:12px}.quest-manager .quest-reward-form{padding:16px;gap:12px}.quest-manager .quest-reward-form>button{justify-self:start}.quest-manager details.quest-form-section[open],.quest-manager details.quest-stage-details[open],.quest-manager details.quest-condition-form[open]{display:block}.quest-manager .quest-details-body{display:flex;flex-direction:column;gap:16px;padding-top:16px;min-width:0}.quest-manager .quest-details-body>button{align-self:flex-start}.quest-manager .condition-editor>.action-value-editor{width:100%;display:flex;flex-direction:column;gap:10px}.quest-manager .condition-editor>.action-value-editor select,.quest-manager .condition-editor>.action-value-editor input{width:100%;max-width:100%}.quest-manager .flow-remove{align-self:flex-start;width:auto;margin:6px 0 0}.quest-manager .toolbar-actions{flex-wrap:wrap;gap:8px}@media(max-width:1180px){.quest-manager{grid-template-columns:180px 190px minmax(0,1fr)}.quest-manager .quest-manager-settings{padding:20px 16px}.quest-manager .quest-form-section,.quest-manager .stage-prompt-editor,.quest-manager .flow-inspector-fields>.quest-stage-details{padding:16px}}@media(max-width:950px){.home-content .example-grid{grid-template-columns:1fr}.quest-manager{display:flex;flex-wrap:wrap;overflow:auto}.quest-manager>.quest-manager-list{width:42%;max-height:300px}.quest-manager>.quest-manager-stages{width:58%;max-height:300px}.quest-manager>.quest-manager-settings{width:100%;overflow:visible}}.family-action-fields,.relationship-insert-form{display:flex;flex-direction:column;gap:16px}.family-action-fields label,.relationship-insert-form>label{display:flex;flex-direction:column;gap:7px;min-width:0}.card-variable-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 18px}.card-variable-options .checkbox-row{display:flex;flex-direction:row;align-items:center;gap:10px}.card-variable-options input[type=checkbox]{width:16px;height:16px;flex:0 0 16px}.vn-stage .vn-character-button{display:flex;align-items:flex-end;gap:18px;background:transparent;color:inherit;border:0;box-shadow:none;padding:0;text-align:inherit;font:inherit;cursor:pointer;max-width:100%}.vn-stage .vn-character-button:hover strong{background:#222e}.vn-stage .vn-character-button:focus-visible{outline:3px solid #ada4ff;outline-offset:6px;border-radius:10px}.vn-align-right .vn-character-button{flex-direction:row-reverse}.character-single-card .character-directory-grid{display:block}.character-card-variables{padding-top:14px;border-top:1px solid var(--line)}.character-variable-level{display:block;margin-top:4px}.game-modal-backdrop .modal.character-card-modal{width:560px;height:auto;max-height:min(760px,calc(100dvh - 64px));--line: #ffffff24;--muted: #b1b4cb}.character-single-card article{border:0;padding:0;gap:14px}.character-single-card article>strong{font-size:18px}.family-condition>select,.family-condition>label,.condition-group .family-condition>label{width:100%;min-width:0}.family-condition>label{display:flex;flex-direction:column;gap:7px}.family-condition>label>select{width:100%}.character-single-card article dl{grid-template-columns:120px minmax(0,1fr);font-size:14px;line-height:1.5}:root{font-family:Inter,system-ui,sans-serif;color:#252639;background:#f7f8fc;font-synthesis:none;font-size:14px;--bg: #f7f8fc;--panel: #fff;--panel-soft: #f9f9fc;--ink: #252639;--muted: #777c91;--line: #e7e8f0;--accent: #6955d8;--accent-soft: #eeeafa;--shadow: 0 18px 70px #24203914;color-scheme:light}:root[data-theme=dark]{--bg: #151620;--panel: #1d1f2d;--panel-soft: #232535;--ink: #e7e8f3;--muted: #a1a4bd;--line: #34364b;--accent: #aa9aff;--accent-soft: #332e4a;--shadow: 0 18px 70px #0005;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 13px;background:var(--panel);border:1px solid var(--line);border-radius:7px;color:var(--ink);font-weight:500;transition:background .12s,border-color .12s}button:hover{background:var(--accent-soft);border-color:#a99ae266}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,select,textarea{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:10px 11px;min-width:0;max-width:100%;outline-offset:2px}input:focus,select:focus,textarea:focus{outline:2px solid #9e8fe04d;border-color:#9e8fe0}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.75}input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px;margin:0;padding:0;flex-shrink:0}input[type=color]{width:62px;height:36px;padding:4px}textarea{resize:vertical;line-height:1.65}button svg,svg{flex-shrink:0}h1,h2,h3,h4,p{margin:0}h1{font-size:25px;letter-spacing:-.7px;font-weight:600;line-height:1.3}h2{font-size:20px;letter-spacing:-.4px;font-weight:600}h3{font-size:15px;font-weight:600}h4{font-size:13px;font-weight:600}p{line-height:1.7}code,.code-input{font-family:JetBrains Mono,monospace;font-size:13px}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500}a{color:var(--accent)}.muted{color:var(--muted);font-weight:400}.primary{background:#6955d8;border-color:#6955d8;color:#fff}.primary:hover{background:#5944c7;border-color:#5944c7}.large{min-height:45px;padding:12px 20px}.icon-button{width:34px;height:34px;min-height:34px;flex:0 0 34px;padding:0;background:transparent}.text-button{background:transparent;border:0;padding:6px 0;color:var(--accent);justify-content:flex-start}.danger-button{color:#ce5867}.selected-button{background:var(--accent-soft);border-color:#a99ae266;color:var(--accent)}.badge{font-size:11px;color:var(--accent);background:var(--accent-soft);padding:6px 9px;border-radius:5px;white-space:nowrap}.count{font-size:12px;color:var(--muted);margin-left:6px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--accent)}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;border:0;background:transparent;padding:0}.brand strong{font-size:18px;letter-spacing:-.5px}.brand-mark{display:grid;place-items:center;background:#6955d8;color:#fff;width:31px;height:34px;font-size:23px;font-weight:700;border-radius:9px 9px 9px 2px}.alpha-label{font-size:9px;letter-spacing:1.5px;padding:5px 7px;background:var(--accent-soft);border-radius:4px;color:var(--accent);margin-left:4px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.section-heading p{color:var(--muted);font-size:13px;margin-top:5px}.section-heading>input{min-width:0}.toolbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.info-line{margin:14px 0 22px;font-size:13px}.check-label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:9px;min-width:0;line-height:1.5;overflow-wrap:anywhere}.check-label>input[type=checkbox]{margin-top:2px}.title-input{font-size:19px;font-weight:600;letter-spacing:-.4px;border-color:transparent;background:transparent;padding:7px 8px;max-width:420px;flex:1}.title-input:hover{border-color:var(--line)}.home{min-height:100dvh}.home-header{height:82px;padding:0 max(5vw,24px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--panel)}.home-content{max-width:1120px;margin:0 auto;padding:58px 28px 24px}.home-intro{display:flex;align-items:center;justify-content:space-between;gap:40px;margin-bottom:58px}.home-intro .eyebrow{margin-bottom:19px}.home-intro h1{font-size:clamp(36px,4.2vw,52px);letter-spacing:-2px;line-height:1.12;margin-bottom:23px;font-weight:600}.home-intro h1 span{color:var(--accent)}.home-intro>div>p:last-child{color:var(--muted)}.home-actions{display:flex;flex-direction:column;gap:11px;min-width:200px}.home-content section{margin-bottom:30px}.home-empty{padding:34px;border:1px dashed var(--line);background:var(--panel);border-radius:12px;display:flex;gap:23px;align-items:center}.home-empty>svg{color:var(--accent)}.home-empty strong{font-size:15px}.home-empty p{font-size:13px;color:var(--muted);margin-top:5px}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:0;overflow:hidden;border-radius:11px}.project-cover{height:112px;background:#eae6fb;color:#7563bd;display:flex;align-items:center;justify-content:space-between;padding:28px}.project-cover span{font-size:11px;padding:5px 8px;border:1px solid #9987c955;border-radius:5px}.cover-1{background:#e5f0ee;color:#648f86}.cover-2{background:#f4eae0;color:#ad856a}.project-card-content{position:relative;padding:20px 22px}.project-card-content strong{font-size:15px;display:block;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card-content p{font-size:12px;color:var(--muted);margin-top:7px}.project-card-content>svg{position:absolute;right:20px;top:21px;color:var(--muted)}.example-banner{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:26px;display:flex;align-items:center;gap:24px}.example-visual{width:76px;height:88px;flex-shrink:0;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent)}.example-banner>div:nth-child(2){flex:1}.example-banner h3{font-size:17px;margin:8px 0}.example-banner p{color:var(--muted);font-size:13px;max-width:570px}.example-banner button{white-space:nowrap}.home-footer{border-top:1px solid var(--line);padding-top:22px;display:flex;gap:24px;color:var(--muted);font-size:11px}.editor-shell{height:100dvh;display:grid;grid-template-columns:196px minmax(0,1fr);grid-template-rows:65px minmax(0,1fr)}.app-header{grid-column:1/-1;display:flex;align-items:center;padding:0 20px;gap:16px;background:var(--panel);border-bottom:1px solid var(--line)}.project-title{display:flex;align-items:center;gap:10px;min-width:80px;flex:1}.project-title>span{color:var(--line);font-size:20px}.project-title input{width:100%;max-width:330px;border:1px solid transparent;background:transparent;padding:6px 9px;font-size:15px;font-weight:600;text-overflow:ellipsis}.project-title input:hover{border-color:var(--line);background:var(--panel-soft)}.project-title input:focus{background:var(--panel)}.save-status{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:#2f7a55;background:#2f7a5514;border-radius:999px;padding:4px 10px;white-space:nowrap}.save-status.bad{color:#b5562c;background:#b5562c17}:root[data-theme=dark] .save-status{color:#8fd3ad;background:#8fd3ad1a}:root[data-theme=dark] .save-status.bad{color:#f0a27f;background:#f0a27f1a}.header-history{display:flex;align-items:center;gap:2px;padding:0 6px;border-left:1px solid var(--line);border-right:1px solid var(--line)}.playtest-actions{display:flex;align-items:center;gap:8px}.app-sidebar{display:flex;flex-direction:column;min-height:0;overflow-y:auto;background:var(--panel);border-right:1px solid var(--line);padding:24px 13px 0}.app-sidebar button{justify-content:flex-start;border:0;background:transparent;min-height:42px;white-space:nowrap;padding:10px 12px}.app-sidebar button:hover{background:var(--panel-soft)}.app-sidebar button.active{background:var(--accent-soft);color:var(--accent)}.back-projects{color:var(--muted);margin-bottom:22px}.nav-caption{font-size:11px;font-weight:600;letter-spacing:1.2px;color:var(--muted);padding:0 12px;margin-bottom:10px}.app-sidebar nav{display:flex;flex-direction:column;gap:3px;flex-shrink:0}.app-sidebar nav span{flex:1;text-align:left}.app-sidebar nav small{min-width:22px;padding:1px 7px;border-radius:999px;background:var(--panel-soft);border:1px solid var(--line);font-size:12px;line-height:18px;text-align:center;color:var(--muted)}.app-sidebar nav button.active small{background:var(--panel);border-color:transparent;color:var(--accent)}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:4px;padding-top:20px;flex-shrink:0}.sidebar-bottom>button{font-size:13px;color:var(--muted)}.sidebar-project-settings{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.project-settings-link{width:100%;font-size:13px}.sidebar-version{border-top:1px solid var(--line);margin-top:15px;padding:20px 12px;display:flex;flex-direction:column;gap:6px}.sidebar-version span{font-size:10px;font-weight:600;letter-spacing:1.2px;color:var(--muted)}.sidebar-version small{font-size:11.5px;color:var(--muted)}.editor-main{min-width:0;min-height:0;overflow:hidden}.page-fill{display:flex;flex-direction:column;height:100%;min-height:0}.workspace-heading{padding:27px 30px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--panel)}.workspace-heading p{font-size:13px;margin-top:7px;max-width:780px}.workspace-heading>.title-input{margin-left:-8px}.panel-padding{padding:30px;min-width:0;overflow:auto}.panel-padding.narrow{max-width:800px;width:100%}.scroll-area{overflow:auto;flex:1}.section-with-list{display:flex;min-height:0;min-width:0;height:100%;flex:1}.item-list{width:210px;flex:0 0 210px;background:var(--panel);border-right:1px solid var(--line);padding:25px 14px;overflow:auto}.item-list .section-heading{padding:0 6px;margin-bottom:15px;gap:8px}.item-list>button{width:100%;justify-content:flex-start;text-align:left;min-height:43px;border:0;background:transparent;font-size:13px;gap:8px;white-space:normal;overflow-wrap:anywhere;margin-bottom:5px}.item-list>button span{flex:1}.item-list>button small{font-size:11.5px;font-weight:500;letter-spacing:.2px;line-height:1.4;background:var(--panel);border:1px solid var(--line);padding:1px 7px;border-radius:999px;color:var(--muted)}.item-list>button.active small{border-color:transparent;color:var(--accent)}.item-list>button.active{background:var(--accent-soft);color:var(--accent)}.list-note{font-size:12px;color:var(--muted);padding:20px 8px}.empty{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:50px 30px;text-align:center;gap:14px}.empty p{max-width:420px;color:var(--muted)}.empty .primary{margin-top:10px}.empty-symbol{width:54px;height:54px;background:var(--accent-soft);color:var(--accent);border-radius:16px;display:grid;place-items:center;font-size:36px;font-weight:400;margin-bottom:9px}.inline-empty{border:1px dashed var(--line);border-radius:8px;padding:25px;color:var(--muted);font-size:13px}.fields-editor{width:100%;overflow:auto}.field-table{min-width:680px;border:1px solid var(--line);border-radius:9px;background:var(--panel);overflow:hidden}.field-row{display:grid;grid-template-columns:minmax(140px,1.6fr) 115px minmax(110px,1.2fr) 88px 88px 34px;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line)}.field-row:last-child{border:0}.field-row input,.field-row select{width:100%;padding:9px}.table-head{background:var(--panel-soft);font-size:11px;font-weight:500;color:var(--muted);padding-top:12px;padding-bottom:12px}.help-card{display:flex;gap:17px;padding:23px 25px;background:var(--accent-soft);color:var(--accent);border-radius:9px;max-width:760px;margin-top:30px}.help-card p{font-size:13px;color:var(--muted);margin-top:7px}.instances{margin-top:38px}.character-card{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:9px;margin-bottom:16px}.character-card>.section-heading{margin-bottom:15px}.character-card>.section-heading input{font-weight:600;border-color:transparent}.character-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px}.character-card>.text-button{font-size:12px;margin-top:15px}.flow-workspace{flex:1;min-width:0;display:flex;flex-direction:column;height:100%}.flow-workspace>.workspace-heading{padding:15px 24px;min-height:75px}.graph-toolbar{display:flex;gap:10px;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line);background:var(--panel-soft)}.graph-toolbar select{padding:8px;max-width:200px}.graph-toolbar>.muted{font-size:11px;margin-left:auto;max-width:170px}.graph-and-inspector{display:flex;min-height:0;flex:1}.graph-canvas{position:relative;flex:1;min-height:260px;min-width:0}.canvas-empty{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:28px;text-align:center}.canvas-empty p{color:var(--muted);font-size:13px}.flow-card{width:230px;min-height:100px;padding:16px 18px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 4px 12px #211e3b08;position:relative}.flow-card.selected{outline:2px solid var(--accent);outline-offset:2px}.flow-card.entry{border-color:#71a58d}.node-type{text-transform:uppercase;font-size:9px;letter-spacing:1.4px;color:var(--muted);display:flex;justify-content:space-between;margin-bottom:9px}.node-type>span{color:#488d71;letter-spacing:.5px}.flow-card>strong{font-size:14px;display:block;overflow-wrap:anywhere;line-height:1.4}.flow-card>p{margin-top:7px;font-size:12px;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.node-outputs{margin-top:13px}.node-output{position:relative;font-size:11px;color:var(--muted);padding:5px 0;text-align:right;min-height:24px}.flow-card .react-flow__handle{width:9px;height:9px;background:#8f7cc6;border:2px solid var(--panel)}.flow-card>.react-flow__handle{left:-5px}.flow-card .node-output .react-flow__handle{right:-23px;top:50%}.kind-choice .node-type{color:#bc9449}.kind-action .node-type{color:#5c93bd}.kind-call .node-type{color:#9d78c8}.kind-show .node-type{color:#68a08a}.inspector{width:300px;flex:0 0 300px;border-left:1px solid var(--line);background:var(--panel);padding:24px 20px;overflow:auto;display:flex;flex-direction:column;gap:20px}.inspector>.section-heading{margin-bottom:0;gap:8px}.inspector .section-heading h3{white-space:nowrap}.inspector .text-button{font-size:12px}.inspector label>select,.inspector label>input:not([type=checkbox]):not([type=radio]):not([type=color]),.inspector label>textarea{width:100%}.inspector>p{font-size:13px}.condition-editor{display:flex;flex-direction:column;gap:9px}.choice-editor{border:1px solid var(--line);border-radius:7px;padding:12px;display:flex;flex-direction:column;gap:9px}.choice-editor .section-heading{margin:0;font-size:11px;color:var(--muted)}.choice-editor>.check-label{font-size:11px}.ui-rules{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}.rule-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;border-bottom:1px solid var(--line)}.rule-row:last-child{border-bottom:0}.rule-row>span{overflow-wrap:anywhere;flex:1}.rule-row select{width:190px;flex-shrink:0;font-size:12px}.ui-rules>p{padding:18px;font-size:13px}.react-flow__controls{box-shadow:0 2px 10px #211e3b14!important}.react-flow__controls button{border-radius:0;background:var(--panel);border-color:var(--line);color:var(--ink);fill:var(--ink)}.react-flow__controls button:hover{background:var(--accent-soft)}.react-flow__attribution{background:var(--panel)!important;color:var(--muted)!important}.react-flow__edge.selected .react-flow__edge-path{stroke:var(--accent)!important}.passage-map{flex:1;min-height:0;position:relative}.passage-card{width:260px;height:196px;max-width:420px;max-height:320px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:9px;background:var(--panel);box-shadow:0 4px 16px #25243c08;overflow:hidden}.passage-card.start-passage{border:2px solid #74a78e}.passage-card>header{height:50px;min-height:50px;padding:7px 12px 7px 16px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line)}.passage-card>header strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.passage-card>header .icon-button{width:28px;min-height:28px;height:28px;flex-basis:28px;border:0}.passage-card>p{font-size:13px;color:var(--muted);margin:14px 16px;flex:1;max-height:4.8em;overflow:hidden;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.passage-card footer{margin-top:auto;padding:4px 10px 8px 16px;display:flex;gap:6px;align-items:center}.passage-card footer span{font-size:10.5px;font-weight:600;letter-spacing:1px;color:var(--muted);flex:1}.passage-card.start-passage footer span{color:#4f9172}.passage-card footer .icon-button{border:0;width:32px;height:32px;min-height:32px;flex-basis:32px}.inline-rename{display:flex;align-items:center;gap:5px;width:100%}.inline-rename input{width:100%;padding:5px;font-size:14px}.passage-editor-body{height:59vh;min-height:300px;overflow:auto}.code-input{font-size:13px;line-height:1.8;-moz-tab-size:2;tab-size:2}.passage-code{width:100%;height:100%;border:0;border-radius:0;padding:24px;resize:none;background:var(--panel-soft)}.passage-preview{height:100%;padding:10px 25px}.passage-settings{padding:26px 30px;display:flex;flex-direction:column;gap:20px}.passage-settings .info-line{margin:0}.passage-settings>.danger-button{align-self:flex-start;margin-top:10px}.passage-settings>.ui-rules{flex-shrink:0}.passage-settings>section{flex-shrink:0;margin:0}.passage-settings .bar-settings{display:flex;flex-direction:column;gap:12px}.passage-settings h3,.passage-settings .bar-settings>p{margin:0}.passage-settings .scene-settings h3{margin-bottom:10px}.ui-builder{display:flex;min-height:0;flex:1}.layout-main{padding:30px;overflow:auto;flex:1;min-width:0}.layout-diagram{display:grid;grid-template-areas:"top top top" "left main right" "bottom bottom bottom";grid-template-columns:minmax(100px,1fr) minmax(170px,1.65fr) minmax(100px,1fr);grid-template-rows:64px 200px 64px;gap:12px;max-width:760px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);margin-top:10px}.layout-zone{border:1px dashed var(--line);color:var(--muted);font-size:12px;background:var(--panel-soft);flex-direction:column;gap:8px;padding:10px;text-align:center}.layout-zone.exists{border-style:solid;background:var(--accent-soft);color:var(--accent)}.layout-zone.selected{outline:2px solid var(--accent);outline-offset:1px}.layout-zone strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.layout-zone small{font-size:10px;opacity:.8}.disabled-zone{opacity:.45}.layout-center{grid-area:main;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid var(--line);border-radius:8px;gap:9px;background:var(--panel-soft)}.layout-center strong{font-size:13px}.layout-center small{font-size:11px;color:var(--muted)}.center-document{display:flex;flex-direction:column;gap:6px;margin-bottom:4px;width:47px;height:55px;padding:12px 9px;border:1px solid var(--line);background:var(--panel);border-radius:5px}.center-document span{height:3px;border-radius:2px;background:var(--line)}.center-document span:last-child{width:65%}.component-list{margin-top:30px}.component-row{display:flex;align-items:center;gap:4px;padding:9px 10px;background:var(--panel);border:1px solid var(--line);border-radius:7px;margin-bottom:8px}.component-row.active{border-color:var(--accent);background:var(--accent-soft)}.component-select{min-width:0;flex:1;justify-content:flex-start;text-align:left;padding:0;border:0;background:transparent;gap:12px}.component-select:hover{background:transparent}.component-select strong{font-size:13px;display:block;overflow-wrap:anywhere}.component-select small{font-size:11px;color:var(--muted);font-weight:400;display:block;margin-top:4px}.component-symbol{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--accent)}.component-row>.icon-button{border:0}.color-field{flex-direction:row;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line)}.theme-swatch{margin-top:30px;padding:36px;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:22px}.theme-swatch>span{font-size:9px;letter-spacing:2px;color:#aaa8c3}.theme-swatch h2{font-size:30px}.theme-swatch button{border:0}.screen-editor{flex:1;min-width:0;display:flex;flex-direction:column}.screen-options{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:24px}.screen-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;flex:1;min-height:350px}.screen-columns>label{min-height:0}.screen-columns textarea{flex:1;resize:none}.screen-preview{background:#141620;border:1px solid var(--line);border-radius:8px;overflow:hidden;padding:15px;min-height:350px}.issue-list{list-style:none;padding:0;margin:20px 0 0;display:flex;flex-direction:column;gap:20px}.issue-list li{display:flex;align-items:flex-start;gap:12px}.issue-list svg{color:#c99555;margin-top:3px}.issue-list strong{font-size:13px}.issue-list p{font-size:13px;color:var(--muted);white-space:pre-wrap;margin-top:4px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px 12px 10px 18px;box-shadow:var(--shadow);max-width:calc(100% - 40px);z-index:150;font-size:13px}.toast>svg{color:#5d9b7c}.toast .icon-button{border:0}.storage-warning{position:fixed;bottom:0;left:0;right:0;background:#6b4520;color:#fff;padding:12px 22px;font-size:12px;z-index:110}.changelog{padding:32px 40px;overflow:auto;max-width:1000px}.changelog h2{font-size:23px;margin-bottom:20px}.changelog h3{font-size:16px;color:var(--accent);margin-bottom:25px}.changelog h4{font-size:12px;text-transform:uppercase;letter-spacing:1px;margin:25px 0 13px}.changelog p{font-size:13px;color:var(--muted);margin:7px 0}.log-item{padding-left:16px;position:relative}.log-item:before{content:"•";position:absolute;left:0;color:var(--accent)}@media(min-width:1550px){.item-list{width:225px;flex-basis:225px}.inspector{width:330px;flex-basis:330px}.panel-padding,.layout-main{padding:36px}.app-sidebar{padding-left:16px;padding-right:16px}}@media(max-width:1200px){.editor-shell{grid-template-columns:174px minmax(0,1fr)}.app-header{gap:15px;padding:0 18px}.save-status{display:none}.item-list{width:180px;flex-basis:180px;padding-left:10px;padding-right:10px}.inspector{width:275px;flex-basis:275px;padding:20px 17px}.layout-main{padding:24px}.layout-diagram{grid-template-columns:90px minmax(110px,1fr) 90px;padding:12px;gap:8px}.graph-toolbar>.muted{display:none}.workspace-heading{padding:23px}}@media(max-width:1000px){.ui-builder{flex-direction:column;overflow:auto}.ui-builder>.inspector{border-left:0;border-top:1px solid var(--line);width:100%;flex-basis:auto;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.layout-main{overflow:visible;flex:0 0 auto}.layout-diagram{grid-template-columns:1fr 1.7fr 1fr;max-width:none}.graph-and-inspector{flex-direction:column;overflow:auto}.graph-and-inspector>.inspector{width:100%;flex:0 0 auto;border-left:0;border-top:1px solid var(--line);overflow:visible}.graph-canvas{min-height:380px}.screen-columns{grid-template-columns:1fr}.screen-columns textarea{min-height:250px}.example-banner{flex-wrap:wrap}.example-banner>button{margin-left:100px}.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.home-content{padding:35px 20px}.home-header{padding:0 20px;height:68px}.home-intro{flex-direction:column;align-items:flex-start;margin-bottom:35px;gap:25px}.home-actions{flex-direction:row;min-width:0;flex-wrap:wrap}.home-intro h1{font-size:42px}.example-banner{gap:16px;padding:20px}.example-visual{display:none}.example-banner>button{margin-left:0}.editor-shell{grid-template-columns:64px minmax(0,1fr)}.app-sidebar{padding:15px 7px 0}.app-sidebar .nav-caption,.app-sidebar nav span,.app-sidebar nav small,.sidebar-version,.back-projects{display:none}.app-sidebar button{padding:10px;justify-content:center;overflow:hidden}.sidebar-bottom button{font-size:0;gap:0}.app-header{gap:12px;padding:10px 12px;min-height:65px}.app-header .brand strong,.app-header .project-title>span{display:none}.app-header .brand-mark{width:27px;height:30px;font-size:20px}.app-header .toolbar-actions{gap:5px}.app-header .toolbar-actions>.header-history{display:none}.app-header .toolbar-actions>button{font-size:12px;padding:8px}.project-title{min-width:40px}.project-title input{font-size:12px}.item-list{width:140px;flex-basis:140px;padding:18px 8px}.item-list>button{font-size:12px;padding:9px}.item-list .section-heading h3{font-size:13px}.workspace-heading{padding:20px 18px;flex-wrap:wrap;gap:15px}.workspace-heading p{font-size:12px}.workspace-heading h1{font-size:22px}.workspace-heading>.title-input{font-size:17px;min-width:120px}.panel-padding,.layout-main,.passage-settings{padding:20px}.rule-row{padding:12px;gap:10px}.rule-row select{width:160px}.section-heading{gap:10px}.section-heading p{font-size:12px}.layout-diagram{grid-template-columns:75px minmax(90px,1fr) 75px;padding:10px;gap:8px;grid-template-rows:60px 170px 60px}.layout-zone{font-size:11px}.layout-zone small{display:none}.ui-builder>.inspector{display:flex}.component-row{padding:8px 6px}.component-row>.icon-button{width:28px;flex-basis:28px;min-height:28px;height:28px}.component-symbol{display:none}.graph-toolbar{padding:12px;gap:7px}.graph-toolbar select{max-width:155px;font-size:12px}.graph-toolbar button{font-size:12px}.flow-workspace>.workspace-heading{padding:13px}.flow-workspace>.workspace-heading>.toolbar-actions>button:not(.icon-button){font-size:11px}.changelog{padding:25px}.screen-options{gap:15px}.screen-editor{padding:18px}.screen-columns{min-height:600px}.example-banner p{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}.passage-visual-fields{min-width:0;margin:0;padding:0;border:0}.passage-visual-fields:disabled .passage-writing-frame{pointer-events:none;opacity:.55}.passage-writing-frame{width:100%;min-height:340px;border:1px solid var(--line);border-radius:10px;display:block}.passage-html-workspace{padding:20px 24px 8px}.passage-html-workspace .source-toolbar{padding:0 0 14px}.visual-hint{margin:10px 0 0;font-size:13px}.passage-variables{padding:24px}.passage-variables .section-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}.passage-variables .section-heading p{margin:6px 0}.entry-row,.entry-condition{border:1px solid var(--border);border-radius:10px;padding:16px;margin:14px 0}.entry-fields{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(130px,1fr) minmax(110px,1fr);gap:12px;margin-top:12px}.entry-fields select,.entry-fields input{width:100%;min-width:0}.entry-branch{border-left:2px solid var(--border);padding:12px 0 12px 16px;margin-top:12px}.inline-rename{flex-wrap:wrap}@media(max-width:650px){.entry-fields{grid-template-columns:1fr}.passage-html-workspace,.passage-variables{padding:16px}.source-toolbar{flex-wrap:wrap}}.code-exit-tools{margin:0 22px 20px;border-top:1px solid var(--line);padding-top:14px}.code-exit-tools>summary{cursor:pointer;font-weight:500;padding-bottom:14px}.passage-html-workspace{padding-bottom:20px}.passage-editor-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:0 12px;border-bottom:1px solid var(--line);padding:0 20px;background:var(--panel);flex-shrink:0}.passage-go-to{flex:0 0 auto;margin:8px 0;min-height:36px;gap:7px;font-size:13px}.passage-go-to>span{min-width:20px;text-align:center;border-radius:4px;background:var(--accent-soft);color:var(--accent);padding:1px 5px}.passage-navigation-dialog .passage-exits{padding:0}.writing-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:10px 12px;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;background:var(--panel)}.writing-toolbar select{width:148px;min-height:34px;margin-right:4px;font-size:13px}.writing-tool-group{display:flex;gap:4px}.writing-toolbar .icon-button{width:32px;height:32px;min-width:32px;padding:0;border-color:transparent;background:transparent}.writing-toolbar .icon-button:hover:not(:disabled){background:var(--panel-soft);border-color:var(--line)}.writing-toolbar .icon-button[aria-pressed=true]{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);border-color:color-mix(in srgb,var(--accent) 30%,transparent)}.writing-tool-separator{width:1px;height:22px;background:var(--line);margin:0 4px}.writing-toolbar~.passage-writing-frame{border-radius:0 0 10px 10px;min-height:410px}.writing-status{display:flex;gap:14px;padding:10px 2px 0;font-size:12px;color:var(--muted)}@media(max-width:650px){.writing-toolbar{gap:4px;padding:8px}.writing-toolbar select{width:132px}.writing-tool-separator{margin:0 2px}}.projects-grid>.project-card{border:1px solid var(--line);background:var(--panel)}.project-card .project-open{display:block;flex:1;width:100%;padding:0;border:0;border-radius:0;text-align:left;color:inherit;background:transparent}.project-card .project-open:hover{background:var(--panel-soft)}.project-card-actions{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid var(--line)}.project-card-actions button{min-height:34px}.project-settings-content{max-width:900px;display:grid;gap:28px}.project-general{display:grid;gap:16px}.project-general>label{display:grid;gap:8px;max-width:520px}.project-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.project-modules>.section-heading{grid-column:1/-1}.module-settings-content{max-width:none;width:100%;min-width:0;container-type:inline-size}@container (max-width:760px){.project-modules{grid-template-columns:minmax(0,1fr)}}.project-module-card{display:flex;flex-direction:column;min-width:0;gap:14px;padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.project-module-card p{line-height:1.6;overflow-wrap:anywhere}.project-module-card>.section-heading{gap:12px;align-items:flex-start}.project-module-card>.section-heading h3{min-width:0;overflow-wrap:anywhere}.project-module-card>.section-heading .badge{flex-shrink:0}.module-guide-link{align-self:flex-start;font-size:14px;font-weight:500;text-underline-offset:3px}.project-module-card>.module-guide-link{margin-top:auto}.project-module-card:has(>.module-guide-link)>.project-module-controls{margin-top:0}.project-module-controls{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.project-module-controls .check-label{margin:0}.project-module-card .module-enabled{color:#287a51;background:#3caa7015}.project-backup-deletion{padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft)}.project-backup-deletion ul{margin:8px 0 0;padding-left:20px}.modal-content .passage-settings{padding:0}.inline-rename .error-message{flex-basis:100%}@media(max-width:650px){.passage-dialogs .tabs{overflow-x:auto;flex-wrap:nowrap}.passage-dialogs .tabs button{flex-shrink:0}}.passage-editor-navigation>.tabs{flex:1 1 auto;min-width:0;padding:0;border-bottom:0}.docs-launch-link{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid var(--line);border-radius:7px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:500;background:var(--panel)}.docs-launch-link:hover{background:var(--accent-soft)}.sidebar-help-link{display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:7px;color:var(--muted);text-decoration:none;font-size:13px}.sidebar-help-link:hover{color:var(--accent);background:var(--accent-soft)}.sidebar-help-link small{margin-left:auto;font-size:13px}:is(.editor-shell,.home,.modal-backdrop){--line-strong: color-mix(in srgb, var(--line) 86%, var(--ink) 14%);--ink-2: color-mix(in srgb, var(--ink) 82%, var(--muted));--ring: color-mix(in srgb, var(--accent) 22%, transparent);--hover: color-mix(in srgb, var(--panel-soft) 50%, var(--line) 50%);--success: #24704b;--success-dot: #3f9a6e;--success-soft: #e8f4ee;--warning: #8a5420;--warning-dot: #c77d2e;--warning-soft: #fbf0e2;--danger: #b4233a;--danger-soft: #fdecee;--radius-sm: 10px;--radius: 12px;--radius-lg: 16px;--shadow-rest: 0 1px 2px rgb(20 30 50 / .06), 0 0 0 1px var(--line);--shadow-raised: 0 1px 3px rgb(20 30 50 / .12);--shadow-float: 0 10px 30px -10px rgb(20 30 50 / .3), 0 0 0 1px var(--line);font-size:14.5px;-webkit-font-smoothing:antialiased}:root[data-theme=dark] :is(.editor-shell,.home,.modal-backdrop){--success: #8fd3ad;--success-dot: #5fc192;--success-soft: #8fd3ad1f;--warning: #efbd84;--warning-dot: #e0a46a;--warning-soft: #efbd841f;--danger: #f39aa6;--danger-soft: #f39aa61f;--shadow-rest: 0 1px 2px rgb(0 0 0 / .3), 0 0 0 1px var(--line);--shadow-raised: 0 1px 3px rgb(0 0 0 / .45);--shadow-float: 0 12px 32px -10px rgb(0 0 0 / .6), 0 0 0 1px var(--line)}:where(.editor-shell,.home,.modal) button{min-height:38px;padding:8px 14px;border-radius:var(--radius-sm);border-color:var(--line-strong);font-weight:500;transition:background .15s,border-color .15s,box-shadow .15s,color .15s}:where(.editor-shell,.home,.modal) button:hover:not(:disabled){background:var(--panel-soft);border-color:color-mix(in srgb,var(--line-strong) 70%,var(--ink) 30%)}:where(.editor-shell,.home,.modal) button:disabled{opacity:1;color:color-mix(in srgb,var(--muted) 70%,var(--panel));background:var(--panel-soft);border-color:var(--line)}:is(.editor-shell,.home,.modal) .icon-button{border-color:transparent;color:var(--muted)}:is(.editor-shell,.home,.modal) .icon-button:hover:not(:disabled){color:var(--ink);background:var(--hover);border-color:transparent}:is(.editor-shell,.home,.modal) .icon-button:disabled{background:transparent;border-color:transparent}:is(.editor-shell,.home,.modal) .text-button:hover:not(:disabled){background:transparent;text-decoration:underline}:root[data-editor-theme] :is(.editor-shell,.home,.modal) .primary{font-weight:600}:root[data-editor-theme] :is(.editor-shell,.home,.modal) .primary:hover{background:var(--editor-action);border-color:var(--editor-action);filter:brightness(.92)}:root[data-editor-theme] :is(.editor-shell,.home,.modal) .primary:disabled{filter:none;opacity:.45;background:var(--editor-action);color:var(--editor-action-ink)}:is(.editor-shell,.home,.modal) .danger-button{color:var(--danger)}:is(.editor-shell,.home,.modal) .danger-button:hover:not(:disabled){background:var(--danger-soft);border-color:color-mix(in srgb,var(--danger) 35%,transparent)}:where(.editor-shell,.home,.modal) :is(input:where(:not([type=checkbox],[type=radio],[type=color],[type=range])),select,textarea){border-color:var(--line-strong);border-radius:var(--radius-sm);transition:border-color .15s,box-shadow .15s}:where(.editor-shell,.home,.modal) :is(input:where(:not([type=checkbox],[type=radio],[type=color],[type=range])),select){min-height:40px}:where(.editor-shell,.home,.modal) :is(input,select,textarea):hover:not(:disabled):not(:focus){border-color:color-mix(in srgb,var(--line-strong) 65%,var(--ink) 35%)}:root[data-editor-theme] :is(.editor-shell,.home,.modal) :is(input,select,textarea):focus,:root[data-editor-theme] :is(.editor-shell,.home,.modal) :is(input,select,textarea):focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}:where(.editor-shell,.home,.modal) input[type=checkbox]{width:18px;height:18px}:where(.editor-shell,.home,.modal) label{font-size:13.5px;font-weight:500}:is(.editor-shell,.home,.modal) .error-message{color:var(--danger);font-size:13px;font-weight:500}:is(.editor-shell,.home,.modal) .badge{font-size:12.5px;font-weight:500;border-radius:999px;padding:3px 10px}:is(.editor-shell,.home,.modal) .eyebrow{font-size:12px;font-weight:600;letter-spacing:.4px}.editor-shell{grid-template-columns:76px minmax(0,1fr);grid-template-rows:64px minmax(0,1fr);background:var(--bg)}.editor-shell .app-sidebar{grid-column:1;grid-row:1 / -1;align-items:center;padding:14px 6px 12px;background:transparent;border-right:0}.editor-shell .app-header{grid-column:2;grid-row:1;margin:10px 10px 0 0;border-radius:var(--radius-lg) var(--radius-lg) 0 0;gap:10px;padding:0 16px 0 22px;box-shadow:0 0 0 1px var(--line);position:relative;z-index:5}.editor-shell .editor-main{grid-column:2;grid-row:2;margin:0 10px 10px 0;border-radius:0 0 var(--radius-lg) var(--radius-lg);background:var(--panel);box-shadow:0 0 0 1px var(--line)}.editor-shell .app-sidebar .sidebar-brand{width:40px;height:40px;min-height:0;margin:0 0 18px;padding:0;justify-content:center;border:0;background:transparent}:is(.editor-shell,.home) .brand{box-shadow:none}:is(.editor-shell,.home) .brand:hover:not(:disabled){background:transparent;border-color:transparent}:is(.editor-shell,.home) .brand strong{font-size:17px;font-weight:700}:is(.editor-shell,.home) .brand-mark{width:36px;height:36px;border-radius:var(--radius-sm);font-size:18px;background:var(--editor-action, var(--accent));color:var(--editor-action-ink, #fff)}.editor-shell .app-sidebar nav{width:100%;align-items:center;gap:4px}.editor-shell .app-sidebar nav button,.editor-shell .sidebar-project-settings button,.editor-shell .sidebar-help-link{position:relative;flex-direction:column;justify-content:center;width:64px;min-height:0;padding:8px 2px 7px;gap:4px;border:0;border-radius:var(--radius);background:transparent;color:var(--muted);font-size:11.5px;font-weight:500;line-height:1.2;text-align:center;white-space:normal}.editor-shell .app-sidebar nav button span,.editor-shell .sidebar-project-settings button span{flex:none;text-align:center}.editor-shell .app-sidebar nav button svg,.editor-shell .sidebar-project-settings button svg{color:currentColor}.editor-shell .app-sidebar nav button:hover:not(.active),.editor-shell .sidebar-project-settings button:hover:not(.active),.editor-shell .sidebar-help-link:hover{background:color-mix(in srgb,var(--panel) 65%,transparent);color:var(--ink)}.editor-shell .app-sidebar button.active{background:var(--panel);color:var(--accent);font-weight:600;box-shadow:var(--shadow-raised)}.editor-shell .app-sidebar nav small{position:absolute;top:3px;right:6px;min-width:18px;padding:0 5px;border:0;border-radius:999px;background:var(--panel);box-shadow:0 0 0 1px var(--line-strong);color:var(--ink-2);font-size:11.5px;font-weight:600;line-height:18px}.editor-shell .app-sidebar nav button.active small{background:var(--accent-soft);color:var(--accent)}.editor-shell .sidebar-bottom{width:100%;align-items:center;gap:4px;padding-top:12px}.editor-shell .sidebar-project-settings{border-top:0;margin:0;padding:0}.editor-shell .project-title>span{display:none}.editor-shell .project-title input{min-height:36px;font-size:15px;font-weight:600}.editor-shell .project-title input:not(:hover):not(:focus){border-color:transparent;box-shadow:none}.editor-shell .save-status{background:transparent;padding:0;font-size:13px;color:var(--success)}.editor-shell .save-status.bad{color:var(--warning)}.editor-shell .app-header .toolbar-actions{gap:4px}.editor-shell .app-header .toolbar-actions>button:not(.primary){background:transparent;border-color:transparent;color:var(--ink-2)}.editor-shell .app-header .toolbar-actions>button:not(.primary):hover{background:var(--hover)}.editor-shell .header-history{border:0;padding:0 2px;gap:0}.editor-shell .playtest-actions{margin-left:8px;padding-left:12px;border-left:1px solid var(--line)}.editor-shell .workspace-heading{padding:18px 28px 16px;background:var(--panel)}.editor-shell :is(.workspace-heading,.widgets-workspace>header,.scripts-workspace>header,.settings-header) h1{font-size:24px;font-weight:700;letter-spacing:-.5px;line-height:1.25}.editor-shell :is(.workspace-heading,.widgets-workspace>header,.scripts-workspace>header) p{font-size:14px;margin-top:4px;color:var(--muted)}.editor-shell :is(.widgets-workspace,.scripts-workspace){padding:20px 28px 24px}.editor-shell .section-heading h2{font-size:19px;font-weight:600}.editor-shell .section-heading h3{font-size:16px;font-weight:600}.editor-shell .section-heading p{font-size:14px}.editor-shell :is(.tabs,.flow-workspace-tabs,.settings-tabs){gap:4px;padding:0 20px}.editor-shell :is(.tabs,.flow-workspace-tabs,.settings-tabs)>button{border:0;border-radius:0;background:transparent;min-height:44px;padding:10px 12px;font-size:14.5px;font-weight:500;color:var(--muted)}.editor-shell :is(.tabs,.flow-workspace-tabs,.settings-tabs)>button:hover:not(:disabled){background:transparent;color:var(--ink)}.editor-shell .tabs>button.active,.editor-shell :is(.flow-workspace-tabs,.settings-tabs)>button[aria-selected=true]{color:var(--accent);font-weight:600}.editor-shell .tabs button.active:after{height:2px;left:12px;right:12px}.editor-shell .flow-workspace-tabs>button{border-bottom:2px solid transparent}.editor-shell .flow-workspace-tabs>button[aria-selected=true]{border-bottom-color:var(--accent)}.editor-shell .settings-tabs>button[aria-selected=true]:after{height:2px}.editor-shell :is(.tabs,.flow-workspace-tabs) button span{font-size:12px;border-radius:999px;padding:1px 8px;border:0;background:var(--line);color:var(--ink-2)}.editor-shell :is(.tabs>button.active,.flow-workspace-tabs>button[aria-selected=true]) span{background:var(--accent-soft);color:var(--accent)}.editor-shell .item-list{padding:18px 12px;background:var(--panel-soft)}.editor-shell .item-list>button{border:0;min-height:40px;padding:9px 10px;border-radius:var(--radius-sm);font-size:14px;font-weight:500;margin-bottom:2px}.editor-shell .item-list>button:hover:not(.active):not(:disabled){background:var(--hover)}.editor-shell .item-list>button.active{background:var(--panel);color:var(--accent);font-weight:600;box-shadow:var(--shadow-raised)}.editor-shell .item-list>button small{border:0;background:var(--line);color:var(--ink-2);font-size:12px}.editor-shell .item-list>button.active small{background:var(--accent-soft);color:var(--accent)}.editor-shell .inspector{padding:20px 22px}.editor-shell .list-note{font-size:13.5px;line-height:1.55;color:var(--muted)}.editor-shell :is(.settings-card,.tracking-card,.example-card,.project-card,.home-empty,.character-variable-section){border-radius:var(--radius);box-shadow:var(--shadow-rest);border-color:transparent}.home :is(.example-card,.project-card){border-radius:var(--radius);box-shadow:var(--shadow-rest);border-color:transparent;transition:box-shadow .2s,transform .2s}.home :is(.example-card,.project-card):hover{box-shadow:var(--shadow-float);transform:translateY(-1px)}.editor-shell table thead th{font-size:12.5px;font-weight:600;color:var(--muted);background:var(--panel-soft)}.editor-shell table td{font-size:14.5px}.editor-shell .empty h2,.editor-shell .empty h3{font-size:18px;font-weight:600}.editor-shell .empty p{font-size:14.5px}.editor-shell .react-flow{background:var(--panel-soft)}.editor-shell .react-flow__background .react-flow__background-pattern.dots{fill:var(--line-strong)}.editor-shell .react-flow__controls{border-radius:var(--radius-sm);overflow:hidden;box-shadow:var(--shadow-rest)}.editor-shell .react-flow__controls button{min-height:0;border-radius:0}.modal-backdrop{background:#141a2680;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-backdrop .modal{border:0;border-radius:var(--radius-lg);box-shadow:0 30px 80px -20px #0a0f1e80}.modal-backdrop .modal>header{border-bottom-color:var(--line)}.modal-backdrop .modal>header h2{font-size:19px;font-weight:600}.modal-backdrop .modal-footer{background:var(--panel-soft)}.modal-backdrop .modal-footer>span{font-size:13px;color:var(--muted)}.toast{border-radius:var(--radius);font-size:14px}.home .home-header{height:68px}.home .home-footer{font-size:12.5px}:is(.editor-shell,.home,.modal) *{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.editor-shell .project-settings-nav button:not([aria-selected=true]):not(.active){border-color:transparent;background:transparent}.editor-shell .project-settings-nav button:hover:not([aria-selected=true]){background:var(--hover)}.editor-shell :is(.scripts-layout,.widgets-layout){background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow-rest);border-color:transparent}.editor-shell .passage-card{border:0;border-top:4px solid var(--line-strong);border-radius:var(--radius);box-shadow:var(--shadow-rest);transition:box-shadow .2s,opacity .2s}.editor-shell .passage-card.passage-kind-start{border-top-color:var(--success-dot)}.editor-shell .passage-card.passage-kind-quest{border-top-color:var(--accent)}.editor-shell .passage-card.passage-kind-event{border-top-color:var(--warning-dot)}.editor-shell .story-passage-node:hover .passage-card{box-shadow:var(--shadow-float)}.editor-shell .story-passage-node.selected .passage-card{box-shadow:0 0 0 2px var(--accent),var(--shadow-float)}.editor-shell .passage-card.is-dimmed{opacity:.45}.editor-shell .passage-card>header{border-bottom:0;height:44px;min-height:44px;padding:8px 8px 0 16px}.editor-shell .passage-card>header strong{font-size:15px;font-weight:600}.editor-shell .passage-card>p{margin:2px 16px 10px;font-size:13.5px;line-height:1.5;max-height:4.5em;color:var(--muted)}.editor-shell .passage-card footer{border-top:1px solid var(--line);padding:6px 8px 6px 16px}.editor-shell .passage-card footer span,.editor-shell .passage-card.start-passage footer span{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}.editor-shell .global-passage-workspace .map-badges span{font-size:12px;font-weight:500;letter-spacing:0;border-radius:999px;padding:2px 9px}.editor-shell .react-flow__edgelabel-renderer{z-index:3000}.editor-shell .map-edge-label{position:absolute;pointer-events:all;min-height:0;max-width:150px;padding:4px 10px;border:0;border-radius:var(--radius-sm);background:var(--panel);color:var(--ink-2);box-shadow:0 0 0 1px var(--line-strong),var(--shadow-raised);font-size:12.5px;font-weight:500;line-height:1.3;text-align:center;white-space:normal;cursor:pointer}.editor-shell .map-edge-label:hover{color:var(--ink);box-shadow:0 0 0 1px var(--accent),var(--shadow-raised)}.editor-shell .map-edge-label.is-out{background:var(--accent);color:var(--editor-action-ink, #fff);box-shadow:var(--shadow-raised)}.editor-shell .map-edge-label.is-in{background:var(--accent-soft);color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 30%,transparent)}.editor-shell .map-label-mode{position:absolute;top:12px;left:14px;z-index:6;display:flex;align-items:center;gap:2px;padding:3px 3px 3px 12px;border-radius:var(--radius-sm);background:var(--panel);box-shadow:var(--shadow-rest)}.editor-shell .map-label-mode>span{margin-right:8px;font-size:13px;color:var(--muted)}.editor-shell .map-label-mode>button{min-height:30px;padding:4px 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px}.editor-shell .map-label-mode>button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);font-weight:600}.editor-shell .map-transition{min-height:0;padding:10px 12px;border:0;background:var(--accent-soft)}.editor-shell .map-transition.is-incoming{background:var(--panel-soft)}.editor-shell .map-transition strong{font-weight:600}:is(.editor-shell,.modal) .output-folder-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px}:is(.editor-shell,.modal) .output-folder-row .toolbar{display:flex;flex-wrap:wrap;gap:8px}:is(.editor-shell,.modal) .output-folder-status{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500}:is(.editor-shell,.modal) .output-folder-status:before{content:"";width:8px;height:8px;border-radius:50%;flex-shrink:0}:is(.editor-shell,.modal) .output-folder-status.is-ready{color:var(--success)}:is(.editor-shell,.modal) .output-folder-status.is-ready:before{background:var(--success-dot)}:is(.editor-shell,.modal) .output-folder-status.is-missing{color:var(--warning)}:is(.editor-shell,.modal) .output-folder-status.is-missing:before{background:var(--warning-dot)}:is(.editor-shell,.modal) .output-folder-note{margin-top:8px;font-size:13.5px;color:var(--warning)}.modal .output-folder-prompt{display:flex;flex-direction:column;gap:16px;font-size:14.5px}.modal .export-dialog{display:flex;flex-direction:column;gap:16px;padding-top:18px}.modal .export-intro{font-size:14.5px;color:var(--muted)}.modal .export-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.modal .export-steps>li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:14px;align-items:start;padding:14px 0}.modal .export-steps>li+li{border-top:1px solid var(--line)}.modal .export-steps h3{font-size:15px;font-weight:600;margin-bottom:8px}.modal .export-steps p{font-size:14px;color:var(--muted)}.modal .export-step-number{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:13.5px;font-weight:600;background:var(--line);color:var(--muted)}.modal .export-steps>li.is-current .export-step-number{background:var(--editor-action, var(--accent));color:var(--editor-action-ink, #fff)}.modal .export-steps>li.is-done .export-step-number{background:var(--success-soft);color:var(--success)}.modal .export-notice{font-size:14px;color:var(--success);font-weight:500}.modal .export-backup{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border-radius:var(--radius);background:var(--panel-soft)}.modal .export-backup h3{font-size:14.5px;font-weight:600;margin-bottom:3px}.modal .export-backup p{font-size:13.5px;color:var(--muted);line-height:1.5}.modal .export-details{font-size:14px}.modal .export-details summary{cursor:pointer;font-weight:500}.modal .export-details p{margin-top:8px;font-size:13.5px;color:var(--muted)}:is(.editor-shell,.modal) .settings-workspace{background:var(--panel);font-size:14.5px}:is(.editor-shell,.modal) .settings-layout{display:flex;flex:1;min-height:0}:is(.editor-shell,.modal) .settings-nav{width:260px;flex-shrink:0;display:flex;flex-direction:column;gap:6px;padding:22px 14px;background:var(--panel-soft);border-right:1px solid var(--line);overflow-y:auto}:is(.editor-shell,.modal) .settings-nav h1{font-size:24px;font-weight:700;letter-spacing:-.5px;padding:0 10px 12px}:is(.editor-shell,.modal) .settings-workspace .settings-tabs{display:flex;flex-direction:column;gap:4px;padding:0;border:0;background:transparent}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;justify-content:stretch;gap:12px;min-height:0;padding:11px 12px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--ink-2);text-align:left}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button:after{display:none}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button span{display:flex;flex-direction:column;gap:2px}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button strong{font-size:14.5px;font-weight:600}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button small{font-size:13px;font-weight:400;color:var(--muted)}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button:hover:not(:disabled):not([aria-selected=true]){background:var(--hover);color:var(--ink)}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button[aria-selected=true]{background:var(--panel);color:var(--accent);box-shadow:var(--shadow-raised)}:is(.editor-shell,.modal) .settings-guide-link{margin-top:auto;display:inline-flex;align-items:center;gap:6px;padding:10px;font-size:14px;font-weight:500}:is(.editor-shell,.modal) .settings-workspace .settings-scroll{flex:1;min-width:0;background:var(--panel)}:is(.editor-shell,.modal) .settings-workspace .settings-container{max-width:920px;padding:28px 36px 48px}:is(.editor-shell,.modal) .project-settings-stack,:is(.editor-shell,.modal) .settings-workspace .project-modules{display:flex;flex-direction:column;gap:20px}:is(.editor-shell,.modal) .settings-workspace :is(.settings-card,.release-settings,.recovery-settings,.project-module-card){border:0;border-radius:var(--radius);padding:20px 22px;background:var(--panel);box-shadow:var(--shadow-rest)}:is(.editor-shell,.modal) .settings-workspace :is(.settings-card h2,.settings-card h3,.release-settings h2,.recovery-settings h2){font-size:17px;font-weight:600;letter-spacing:-.2px}:is(.editor-shell,.modal) .settings-workspace :is(.settings-card-heading p,.release-settings>p,.recovery-settings>p,.settings-field-row p,.settings-inline-note){font-size:14px;color:var(--muted);line-height:1.6}:is(.editor-shell,.modal) .settings-workspace .settings-field-row{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:end;gap:16px}:is(.editor-shell,.modal) .settings-workspace .settings-field-row p{padding-bottom:10px}:is(.editor-shell,.modal) .settings-workspace :is(input:not([type=checkbox]):not([type=radio]),select){min-height:40px;font-size:14.5px;border-radius:var(--radius-sm)}:is(.editor-shell,.modal) .settings-workspace .settings-section-intro h2{font-size:19px;font-weight:600}:is(.editor-shell,.modal) .settings-workspace .settings-module-grid{grid-template-columns:minmax(0,1fr);gap:12px}@media(min-width:1280px){:is(.editor-shell,.modal) .settings-workspace .settings-container:has(.project-settings-stack,.settings-module-grid){max-width:1240px}:is(.editor-shell,.modal) .project-settings-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}:is(.editor-shell,.modal) .settings-workspace .settings-module-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));align-items:stretch}}.settings-workspace .release-snapshots-group>summary{cursor:pointer;font-size:13.5px;color:var(--ink-2);padding:10px 0 4px}:is(.editor-shell,.modal) .settings-workspace .settings-scope{font-size:12.5px;border-radius:999px}:is(.editor-shell,.modal) .settings-workspace .module-card-footer,:is(.editor-shell,.modal) .settings-workspace .module-card-footer *{font-size:13px}:is(.editor-shell,.modal) .settings-workspace .theme-choice{border-radius:var(--radius)}:is(.editor-shell,.modal) .settings-workspace .theme-choice small{font-size:13px}:is(.editor-shell,.modal) .settings-workspace .settings-tabs>button:disabled{background:transparent;opacity:.5}.modal-backdrop:has(>.passage-editor-modal){padding:12px;background:#141a2659}.modal-backdrop .modal.passage-editor-modal{width:100%;max-width:1600px;height:calc(100dvh - 24px);max-height:none}.modal-backdrop .passage-editor-modal>header{padding:14px 18px 14px 24px}.modal-backdrop .passage-editor-modal>header h2{font-size:21px;font-weight:700;letter-spacing:-.3px}.modal-backdrop .passage-editor-modal>header h2:before{content:"Passage";display:block;font-size:12px;font-weight:500;letter-spacing:0;color:var(--muted)}.modal-backdrop .passage-editor-modal .passage-editor-navigation{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 18px;border-bottom:1px solid var(--line);position:relative}.modal-backdrop .passage-editor-modal .passage-editor-navigation .tabs{display:inline-flex;gap:2px;padding:3px;border:0;border-radius:var(--radius-sm);background:var(--line)}.modal-backdrop .passage-editor-modal .passage-editor-navigation .tabs>button{min-height:32px;padding:5px 16px;border:0;border-radius:8px;background:transparent;color:var(--ink-2);font-size:14px;font-weight:500}.modal-backdrop .passage-editor-modal .passage-editor-navigation .tabs>button.active{background:var(--panel);color:var(--ink);font-weight:600;box-shadow:var(--shadow-raised)}.modal-backdrop .passage-editor-modal .passage-editor-navigation .tabs>button.active:after{display:none}.modal-backdrop .passage-editor-modal .passage-go-to{position:absolute;right:18px}.modal-backdrop .passage-editor-modal .passage-editor-toolbar{border-bottom:1px solid var(--line)}.modal-backdrop .passage-editor-modal .passage-editor-body{flex:1 1 auto;height:auto;min-height:0;display:flex;flex-direction:column;overflow:auto;background:var(--panel)}.modal-backdrop .passage-editor-modal .passage-editor-body>fieldset{flex:1 0 auto;display:flex;flex-direction:column;min-width:0}.modal-backdrop .passage-editor-modal .passage-html-workspace{flex:1 0 auto;display:flex;flex-direction:column;margin:0;border:0;border-radius:0;box-shadow:none;background:var(--panel)}.modal-backdrop .passage-editor-modal .passage-writing-frame{flex:1 0 auto;min-height:0;border:0;border-radius:0}.modal-backdrop .passage-editor-modal .writing-status{position:sticky;bottom:0;z-index:1;justify-content:center;gap:16px;padding:8px 18px;border-top:1px solid var(--line);background:var(--panel);font-size:12.5px;color:var(--muted)}.modal-backdrop .passage-editor-modal .passage-editor-body>.passage-settings,.modal-backdrop .passage-editor-modal .passage-editor-body>fieldset>.passage-variables{width:100%;max-width:820px;margin:0 auto;padding:28px 32px 48px;background:transparent;border-radius:0;box-shadow:none}.modal-backdrop .passage-editor-modal .passage-settings{display:flex;flex-direction:column;gap:20px}.modal-backdrop .passage-editor-modal .passage-editor-body>.passage-preview{flex:1 0 auto;width:100%}.modal-backdrop .passage-editor-modal .passage-editor-navigation .tabs{flex:0 0 auto;width:auto;margin:0}.modal-backdrop .passage-editor-modal .passage-editor-body .passage-html-workspace{overflow:visible}.modal-backdrop .passage-editor-modal .passage-settings .scene-settings{border:0;border-radius:0;padding:0;box-shadow:none;background:transparent}.modal-backdrop .passage-editor-modal .passage-settings :is(h3,h4){font-size:16px;font-weight:600}.modal-backdrop .passage-editor-modal .passage-settings :is(small,.muted,.info-line){font-size:13.5px}.modal-backdrop:has(>.passage-editor-modal){left:76px;padding:10px 10px 10px 0;background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}.modal-backdrop .modal.passage-editor-modal{width:100%;max-width:none;height:100%;border-radius:var(--radius-lg);box-shadow:0 0 0 1px var(--line)}.modal-backdrop .passage-editor-modal>header{display:none}.passage-editor-modal .passage-workspace-header{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 16px 10px 12px;border-bottom:1px solid var(--line);flex-shrink:0}.passage-editor-modal .passage-back{width:36px;height:36px;min-height:36px;flex:0 0 36px}.passage-editor-modal .passage-workspace-title{display:flex;flex-direction:column;min-width:0}.passage-editor-modal .passage-workspace-title span{font-size:12px;color:var(--muted)}.passage-editor-modal .passage-workspace-title strong{font-size:18px;font-weight:650;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}.passage-editor-modal .passage-workspace-chips{display:flex;gap:6px;flex-wrap:wrap}.passage-editor-modal .passage-chip{font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;white-space:nowrap}.passage-editor-modal .passage-chip.is-quest{background:var(--accent-soft);color:var(--accent)}.passage-editor-modal .passage-chip.is-start{background:var(--success-soft);color:var(--success)}.passage-editor-modal .passage-chip.is-event{background:var(--warning-soft);color:var(--warning)}.modal-backdrop .passage-editor-modal .passage-workspace-header .passage-editor-navigation{margin:0 auto;padding:0;border:0;flex:0 0 auto}.passage-editor-modal .passage-workspace-actions{display:flex;align-items:center;gap:8px}.passage-editor-modal .passage-workspace-status{display:inline-flex;align-items:center;gap:6px;margin-right:4px;font-size:13px;color:var(--success);white-space:nowrap}.passage-editor-modal .passage-workspace-status:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--success-dot)}.modal-backdrop .passage-editor-modal .passage-go-to{position:static}.passage-editor-modal .passage-panel-toggle[aria-pressed=true]{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.passage-editor-modal .passage-workspace-columns{flex:1 1 auto;min-height:0;display:flex}.passage-editor-modal .passage-workspace-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.passage-editor-modal .passage-settings-panel{width:340px;flex:0 0 340px;overflow-y:auto;border-left:1px solid var(--line);padding:18px 20px 32px;background:var(--panel)}.passage-editor-modal .passage-settings-panel>h2{margin-bottom:14px;font-size:12px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}.passage-editor-modal .passage-settings-panel .passage-settings{display:flex;flex-direction:column;gap:18px;padding:0;max-width:none;background:transparent;box-shadow:none}.passage-editor-modal .passage-settings-panel :is(.character-form-grid,.settings-field-row){grid-template-columns:minmax(0,1fr)}.passage-editor-modal .passage-settings-panel :is(input:not([type=checkbox]),select){width:100%}.passage-editor-modal .passage-settings-panel :is(h3,h4){font-size:15px;font-weight:600}.passage-editor-modal .passage-settings-panel :is(p,small,.muted,.info-line){font-size:13px}.passage-editor-modal .passage-settings-panel .scene-settings{border:0;padding:0;background:transparent;box-shadow:none}.passage-editor-modal .passage-settings-panel :is(section,.scene-settings)+:is(section,.scene-settings){padding-top:18px;border-top:1px solid var(--line)}.passage-editor-modal .passage-panel-switch{display:flex;gap:2px;padding:3px;margin-bottom:18px;border-radius:var(--radius-sm);background:var(--panel-soft)}.passage-editor-modal .passage-panel-switch>button{flex:1;min-height:32px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13.5px;box-shadow:none}.passage-editor-modal .passage-panel-switch>button[aria-pressed=true]{background:var(--panel);color:var(--ink);font-weight:600;box-shadow:var(--shadow-raised)}.passage-editor-modal .passage-panel-exits fieldset{border:0;margin:0;padding:0;min-width:0}.passage-settings .passage-panel-section,.passage-settings .passage-panel-group{display:flex;flex-direction:column;gap:10px}.passage-settings .passage-panel-section>h3,.passage-editor-modal .passage-settings-panel .passage-panel-section>h3{margin:0;font-size:12px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}.passage-settings .passage-panel-group,.passage-settings .passage-panel-group.passage-events{margin:0;padding:14px 0 0;border-top:1px solid var(--line);border-bottom:0}.passage-settings .passage-panel-group:not([open]){gap:0}.passage-settings .passage-panel-group>summary{list-style:none}.passage-settings .passage-panel-group>summary::-webkit-details-marker{display:none}.passage-settings .passage-panel-group>summary:before{content:"";width:7px;height:7px;margin:0 4px 0 2px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);transition:transform .15s}.passage-settings .passage-panel-group[open]>summary:before{transform:rotate(45deg)}.passage-settings .passage-panel-group>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14.5px;font-weight:600;color:var(--ink)}.passage-settings .passage-panel-group .passage-panel-summary{font-size:13px;font-weight:400;color:var(--muted)}.passage-settings .passage-panel-group .badge.is-warning{background:var(--warning-soft);color:var(--warning);font-size:12px;font-weight:600;padding:2px 8px}.passage-settings .passage-panel-group>section{border:0;padding:0}.passage-editor-modal .passage-editor-toolbar .writing-toolbar{padding:8px 14px;gap:2px}.passage-editor-modal .writing-insert-tools{margin-left:auto;display:flex;align-items:center;gap:6px}.passage-editor-modal .writing-insert-label{margin-right:2px;font-size:13px;color:var(--muted)}.passage-editor-modal .writing-insert-tools>:is(button,select){min-height:34px;height:34px;padding:4px 12px;font-size:13.5px}.passage-editor-modal .writing-insert-tools>select{width:110px}.passage-editor-modal .passage-editor-body>.passage-code-workspace{flex:1 0 auto;display:flex;flex-direction:column}.passage-editor-modal .passage-code-workspace .macro-code-surface{flex:1 0 auto;height:auto;min-height:max(360px,calc(100dvh - 330px))}
