:root{color-scheme:light;--blue:#137fdf;--navy:#18365c;--muted:#6a7e98;--border:#e0e8f2;--pale:#f5f8fd;--shadow:0 8px 30px #315b8f10;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--navy);background:var(--pale)}*{box-sizing:border-box}body{margin:0;min-width:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79b6f7;outline-offset:2px}button:hover:not(:disabled){filter:brightness(.975)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.shell{min-width:0}.topbar{min-height:76px;padding:12px 24px;background:#fff;display:flex;gap:22px;align-items:center;border-bottom:1px solid var(--border)}.brand-cluster{display:flex;align-items:center;gap:19px;min-width:0}.brand{text-decoration:none;display:flex;align-items:center;gap:9px;color:#254567;white-space:nowrap;font-size:17px}.mark{background:linear-gradient(140deg,#4ab4ff,#0672df);color:#fff;border-radius:12px;width:33px;height:33px;display:grid;place-items:center;font-size:21px}.divider-v{height:32px;width:1px;background:var(--border)}.product-name{white-space:nowrap}.product-name strong{display:block;font-size:15px;letter-spacing:-.3px}.product-name strong span{color:var(--blue)}.product-name small{font-size:11px;color:#91a1b4}.project-heading{min-width:110px;max-width:270px;display:grid;gap:3px;flex:1}.project-heading input{font-weight:700;border:0;border-bottom:1px dashed transparent;padding:3px 0;min-width:0;width:100%;color:var(--navy);background:0 0;text-overflow:ellipsis}.project-heading input:focus{border-bottom-color:var(--blue);outline:0}.project-heading span{font-size:10px;color:#7c91a8}.head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.btn{background:#fff;border:1px solid #dbe5ef;border-radius:9px;padding:9px 12px;color:#3a5673;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 1px 2px #213b5710}.btn.icon{font-size:19px;width:33px;height:34px;padding:0}.btn.primary{background:linear-gradient(130deg,#238be8,#0874d7);border-color:#127bdc;color:#fff;box-shadow:0 5px 14px #157dd52a}.btn.small{padding:7px 9px}.studio{display:grid;grid-template-columns:minmax(185px,230px) minmax(0,1fr) minmax(265px,320px);align-items:start;min-width:0}.left-panel,.right-panel{background:#fff;min-width:0;display:flex;flex-direction:column}.left-panel{border-right:1px solid var(--border)}.right-panel{border-left:1px solid var(--border)}.inspector-top,.panel-header{padding:27px 21px 16px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:.15em;color:#90a1b8;margin:0 0 8px}.split{display:flex;justify-content:space-between;align-items:center;gap:10px}.inspector-top h2,.panel-header h2{font-size:19px;letter-spacing:-.65px;margin:0}.inspector-top p:not(.eyebrow),.panel-header p:not(.eyebrow){font-size:12px;color:#8a9ab0;line-height:1.5;margin:8px 0 0}.chip{border:1px solid #e4eaf4;border-radius:30px;background:#f3f6fc;padding:3px 9px;color:#6983a3;font-size:11px;font-weight:750}.add-main{background:#eaf5ff;color:#0a7ddf;border:1px solid #c9e4fc;border-radius:10px;padding:14px 16px;margin:0 17px 17px;text-align:left;font-size:13px;font-weight:800}.add-main span{float:right}.search-holder{display:flex;gap:9px;align-items:center;margin:0 17px;border:1px solid #dfe8f3;border-radius:10px;padding:8px 12px;color:#9badc2}.search-holder input{min-width:0;width:100%;border:none;outline:0;font-size:12px;background:0 0}.filter-row{margin:13px 17px;display:flex;justify-content:space-between;align-items:center;gap:6px;color:#7d90a8;font-size:11px}.filter-row select{background:#f6f9fc;border:1px solid #e5ebf3;border-radius:7px;padding:6px;font-size:11px;color:#47637f;min-width:0}.small-label{margin:15px 19px 10px;font-size:10px;letter-spacing:.14em;color:#9cadc1;font-weight:800}.passage-list{padding:2px 11px;overflow:auto;min-height:100px;flex:1}.passage-item{width:100%;background:#fff;text-align:left;border:1px solid transparent;border-radius:10px;padding:11px 10px;margin:2px 0 4px;display:flex;align-items:center;gap:10px;color:#2b4765;min-width:0}.passage-item.selected{background:#f0f7ff;border-color:#c7e3fb}.passage-item.unreachable{opacity:.62}.node-icon{width:32px;height:32px;flex:none;border:1px solid #dde7f3;background:#eff5fb;display:grid;place-items:center;border-radius:10px;color:#488cce;font-weight:800}.passage-item.selected .node-icon{background:#ddebff}.passage-item .info{min-width:0;flex:1}.passage-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.passage-item small{display:block;color:#9aabc0;font-size:10px;margin-top:3px}.left-footer{border-top:1px solid var(--border);padding:16px;display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px;color:#70a088}.text-button{background:0 0;border:0;padding:0;color:#537aa6;font-size:11px}.work-area{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:#f7faff}.canvas-bar{padding:13px 17px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:57px}.tabs{display:flex;gap:5px}.tab{padding:8px 12px;background:0 0;border:0;border-radius:8px;color:#8192a6;font-size:12px;font-weight:750}.tab.active{color:#0d75d8;background:#eaf5ff}.canvas-actions{display:flex;align-items:center;gap:7px}.canvas-actions output{font-size:11px;color:#7590ad;min-width:38px;text-align:center}.map-viewport{flex:1;position:relative;min-height:0;overflow:hidden;touch-action:none;cursor:grab}.map-viewport.dragging{cursor:grabbing}.map-viewport svg{width:100%;height:100%;display:block}.map-hint{position:absolute;top:16px;left:16px;pointer-events:none;font-size:11px;color:#7295b4;background:#ffffffd9;padding:9px 12px;border:1px solid #e0eaf6;border-radius:8px;box-shadow:var(--shadow)}.svg-node{cursor:move}.svg-node rect{filter:drop-shadow(0px 4px 9px #365b8b15)}.svg-node.selected rect{stroke:#2189e5;stroke-width:3}.svg-node:focus-visible rect{stroke:#2b91eb;stroke-width:4}.svg-node text{pointer-events:none}.svg-node .subline{fill:#7790ab;font:11px system-ui}.svg-node .titleline{font:700 14px system-ui;fill:#234367}.svg-node .tagline{font:700 10px system-ui;fill:#2186d7}.svg-edge{pointer-events:none}.svg-edge path{fill:none;stroke:#8ba7c8;stroke-width:2;marker-end:url(#arrow)}.svg-edge text{fill:#7f93a9;font:10px system-ui}.canvas-bottom{background:#fff;border-top:1px solid var(--border);padding:10px 17px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#8296ad}.status:before{content:'●';color:#3fb38b;margin-right:8px}.stats{display:flex;gap:8px;align-items:center}.stats i{font-style:normal;color:#bdc9d9}.inspector-top{border-bottom:1px solid var(--border)}.corner-icon{color:#82afe0;font-size:27px}.inspector-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:0 15px;border-bottom:1px solid var(--border)}.ins-tab{background:0 0;border:0;border-bottom:2px solid transparent;padding:13px 3px;color:#879bb1;font-size:11px;font-weight:800}.ins-tab.selected{border-bottom-color:var(--blue);color:var(--blue)}.inspector-body{min-height:0;padding:18px 20px 28px}.inspector-body label{font-size:11px;font-weight:800;color:#466380;display:block;margin:16px 0 7px}.inspector-body input:not([type=checkbox]),.inspector-body select,.inspector-body textarea{width:100%;background:#fff;border:1px solid #dfe7f1;border-radius:9px;color:#2b4561;padding:10px 11px;font-size:12px;min-width:0}.inspector-body textarea{resize:vertical;line-height:1.65;min-height:135px}.helper,.inspector-body small{font-size:10px;color:#95a4b5;line-height:1.6}.helper{margin:8px 0 13px}.helper code{background:#ebf5ff;color:#387dbd;padding:2px 4px;border-radius:4px}.info{background:#f4f9ff;border-radius:10px;padding:12px}.switch-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:19px 0;border-top:1px solid #ecf0f5;padding-top:8px}.switch-row label{margin:0}.section-head{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1f6;margin-top:21px;padding-top:16px}.section-head h3{font-size:13px;margin:0}.choice-list,.variable-list{display:grid;gap:10px;margin:14px 0}.choice-card,.var-card{border:1px solid #e2e9f2;border-radius:12px;padding:12px;background:#fbfdff}.choice-card .split,.var-card .split{align-items:center}.choice-card label{margin:10px 0 4px}.choice-card .config-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.choice-card .config-row.triple{grid-template-columns:1.1fr .75fr 1fr}.choice-card .delete-choice{background:0 0;color:#b86e78;border:0;font-size:12px}.condition-checkbox{display:flex!important;align-items:center;gap:7px}.condition-checkbox input{width:auto}.soft-button{background:#eef7ff;border:1px solid #cfe6fa;border-radius:10px;padding:10px 12px;color:#197bd3;font-size:12px;font-weight:800;width:100%;margin:7px 0}.danger-button{background:0 0;border:1px solid #f4dadd;color:#bd6368;border-radius:10px;font-size:12px;padding:10px;width:100%;margin-top:16px}.empty-selection{color:#91a4bb;padding:32px 8px}.var-card strong{font-size:12px}.var-card small{font-size:10px;color:#8da0b5}.var-card button{border:0;background:0 0;color:#ba6772;font-size:12px}.var-card input{margin-top:9px}.health-good{border:1px solid #d4efdf;border-radius:12px;background:#f4fbf6;padding:15px;font-size:12px;color:#267d57}.health-issue{border:1px solid #e5e9f2;border-radius:10px;padding:12px;margin-top:9px;font-size:12px;color:#506883}.health-issue button{border:0;background:0 0;text-decoration:underline;color:#287bc1;text-align:left;padding:0}.play-viewport{flex:1;min-height:0;overflow:auto;padding:32px;background:radial-gradient(circle at top,#eaf4ff,#f8fafd 70%)}.play-shell{max-width:700px;margin:10px auto}.play-header{display:flex;justify-content:space-between;align-items:center;color:#668aae;font-size:11px;margin-bottom:15px;font-weight:750;letter-spacing:.08em}.play-reader{background:#fff;border:1px solid #e2eaf5;border-radius:22px;box-shadow:0 20px 45px #3e6c9917;padding:clamp(22px,5vw,48px);min-height:400px}.reader-kicker{color:#4c91d7;font-size:10px;letter-spacing:.14em;font-weight:800}.reader-title{font:700 clamp(25px,3.5vw,37px)/1.2 Georgia,serif;letter-spacing:-.02em;color:#244466;margin:17px 0}.reader-prose{font:18px/1.75 Georgia,serif;white-space:pre-wrap;color:#3d5065}.reader-options{margin:27px 0;display:grid;gap:10px}.reader-choice{border:1px solid #cfe4fb;background:#f3f9ff;text-align:left;border-radius:11px;padding:13px 15px;font-size:13px;font-weight:750;color:#1771c4}.reader-choice:hover{background:#e4f2ff}.reader-end{font-style:italic;color:#70879e;font-size:13px}.reader-footer{margin-top:24px;padding-top:17px;border-top:1px solid #e7edf6;display:flex;justify-content:space-between}.reader-secondary{background:#fff;color:#6683a2;border:1px solid #d9e5f1;border-radius:8px;font-size:12px;padding:8px 12px}.play-vars{background:#fff;border:1px solid var(--border);border-radius:11px;padding:15px 19px;margin-top:16px;color:#55708a;font-size:12px}.play-vars strong{font-size:11px;display:block;margin-bottom:8px}.play-vars #playVariables{display:flex;flex-wrap:wrap;gap:8px}.play-vars span{background:#eef6ff;border-radius:20px;padding:5px 9px;font-size:11px}.below{max-width:1160px;margin:0 auto;padding:44px 26px 80px}.below h2{letter-spacing:-.03em}.below p{color:#73879f;line-height:1.7;font-size:14px}.below-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.below-grid h3{font-size:15px}.below-grid p{font-size:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#183957;color:#fff;padding:12px 18px;box-shadow:0 10px 30px #1a385c33;border-radius:10px;font-size:12px;display:none;z-index:20;max-width:min(90vw,580px)}.toast.show{display:block}dialog{width:min(590px,calc(100vw - 25px));border:1px solid #d8e5f2;box-shadow:0 25px 90px #23456e40;border-radius:18px;padding:23px 26px;color:#244563;max-height:85vh;overflow:auto}dialog::backdrop{background:#10284285;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:15px}.dialog-head h2{margin:0;font-size:22px}.close{font-size:24px;background:#f1f5fa;border:0;border-radius:8px;width:30px;height:30px;color:#607a95}dialog p{font-size:12px;line-height:1.65;color:#71859b}.export-grid{display:grid;gap:9px;margin-top:20px}.export-option{padding:15px 16px;border:1px solid #e1e8f1;background:#fbfdff;border-radius:11px;text-align:left}.export-option strong{display:block;font-size:13px;color:#27649a}.export-option span{display:block;font-size:11px;color:#829ab1;margin-top:4px}.recovery-row{padding:12px;border:1px solid #e1e9f3;border-radius:10px;margin:10px 0;font-size:12px}.recovery-row button{margin:5px 5px 0 0;padding:7px;border:1px solid #dce7f2;border-radius:7px;background:#fff;color:#356a9d;font-size:11px}.recovery-row small{display:block;color:#879bb3}dialog code{color:#296ba5}button[data-format]:focus-visible{outline:3px solid var(--blue)}@media(max-width:1280px){.topbar{gap:10px;padding:10px 15px}.studio{grid-template-columns:185px minmax(0,1fr) 275px}.brand-cluster{gap:12px}.product-name small{display:none}.head-actions{gap:5px}.head-actions .btn{padding:7px 9px}}@media(max-width:1050px){.topbar{flex-wrap:wrap}.project-heading{margin-left:auto}.head-actions{flex-basis:100%;justify-content:flex-start}.studio{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.right-panel{border-left:0;border-top:1px solid var(--border)}.inspector-tabs{max-width:460px}.inspector-body{max-height:none}.right-panel{height:auto}.inspector-body{padding:20px 25px}.choice-list{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.left-footer{padding:10px}}@media(max-width:680px){.topbar{padding:10px 12px;gap:9px}.brand b:not(.mark),.divider-v{display:none}.brand-cluster{gap:7px}.product-name strong{font-size:13px}.project-heading{flex:1;min-width:100px}.project-heading input{font-size:12px}.head-actions{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.studio{display:flex;flex-direction:column;min-height:0}.left-panel{height:auto;min-height:0;border-right:0;border-bottom:1px solid var(--border)}.panel-header{padding:15px 16px 8px}.panel-header p:not(.eyebrow){display:none}.add-main{margin:4px 12px 10px;padding:10px}.search-holder{margin:0 12px}.filter-row{margin:7px 12px}.small-label{margin:8px 13px 4px}.passage-list{display:flex;gap:5px;overflow:auto;min-height:0;padding:5px 12px 12px}.passage-item{flex:0 0 158px;margin:0}.left-footer{display:none}.canvas-bar{flex-wrap:wrap;padding:8px 11px}.canvas-actions{overflow-x:auto}.map-hint{top:8px;left:8px;padding:6px 7px;font-size:10px}.canvas-bottom{padding:8px 12px}.stats{gap:4px}.right-panel{flex:none}.inspector-top{padding:16px}.inspector-body{padding:14px 17px}.choice-list{grid-template-columns:1fr}.below{padding:25px 16px}.below-grid{grid-template-columns:1fr}.play-viewport{padding:12px}.play-reader{min-height:300px}}@media(max-width:360px){.product-name strong{font-size:12px}.project-heading{min-width:78px}.head-actions .btn{font-size:11px}.canvas-actions .btn{font-size:10px}.tab{padding:7px;font-size:10px}.stats{font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.canvas-bar{min-width:0}.canvas-actions{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin}.canvas-actions .btn{flex:0 0 auto}.play-header{gap:10px;flex-wrap:wrap}.play-header span{white-space:nowrap}@media(max-width:1050px){.canvas-bar{flex-wrap:wrap}.canvas-actions{width:100%}}.choice-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.choice-actions .btn{min-width:27px;padding:5px 7px}.choice-actions .btn:disabled{opacity:.38;cursor:not-allowed}.story-find{flex:0 0 auto;min-width:0;max-height:245px;overflow:auto;background:#f9fcff;border-bottom:1px solid #dce7f4;padding:9px 13px;font:12px/1.45 system-ui,sans-serif;color:#365879}.story-find-options,.story-find-status,.story-find-top,.story-replace-controls{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0}.story-find-top input{flex:1 1 155px;min-width:0}.story-find input:not([type=checkbox]),.story-find select{border:1px solid #d3e1f0;border-radius:7px;padding:7px;font:inherit;background:#fff;max-width:100%;color:#284b6b}.story-find-options{margin:7px 0}.story-find-options label{display:inline-flex;align-items:center;gap:5px}.story-find-options select{max-width:190px}.story-find-options input{accent-color:#167ed1}.story-find-status{justify-content:flex-start;gap:8px}.story-find-status span{flex:1;min-width:120px}.story-find .btn.small{padding:5px 9px;font-size:11px;min-height:29px}.story-find-results{display:grid;gap:3px;margin-top:5px;max-height:76px;overflow:auto}.story-find-result{border:1px solid #e1eaf5;border-radius:6px;padding:5px 7px;background:#fff;color:#355877;text-align:left;width:100%;font:11px/1.35 system-ui;overflow-wrap:anywhere}.story-find-result.active{background:#d9edff;border-color:#3e95e2}.story-find-result:hover{background:#eaf5ff}.story-find details{margin-top:5px}.story-find summary{cursor:pointer;font-weight:700}.story-replace-controls{padding:8px 0}.story-replace-controls label{font-weight:600}.story-replace-controls input{flex:1 1 145px}.story-replace-review{border:1px solid #c9ddec;background:#fff;border-radius:8px;padding:8px}.story-replace-review p{font-size:11px;margin:4px 0 7px}.story-replace-review small{display:block;margin:5px 0;overflow-wrap:anywhere}.story-find-help{margin:6px 0;color:#687d91;font-size:10px}.story-find button:focus-visible,.story-find input:focus-visible,.story-find select:focus-visible,.story-find-result:focus-visible{outline:2px solid #2289dc;outline-offset:1px}@media(max-width:680px){.story-find{max-height:210px;padding:7px 9px}.story-find-options label{flex:1 1 110px}.story-find-options select{width:100%}.story-find-top label{flex:1 0 100%}.story-find-results{max-height:50px}.work-area{min-width:0}}@media(max-width:680px){.topbar{width:100%;max-width:100%;min-width:0;gap:8px;overflow:hidden}.topbar .brand-cluster{flex-wrap:wrap;max-width:100%;width:100%;gap:6px}.topbar .pk-site-search{min-width:0;max-width:100%;width:min(250px,100%);overflow:hidden}.topbar .pk-search-field{display:flex;align-items:center;max-width:100%;gap:6px}.topbar .pk-search-field svg{display:block;width:18px;height:18px;flex:0 0 18px}.topbar .pk-search-field input{min-width:0;width:100%;max-width:100%}.topbar .product-name{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.topbar .product-name h1{font-size:14px;line-height:1.3;white-space:normal}.topbar .head-actions{width:100%;min-width:0;max-width:100%;overflow-x:auto}.topbar .pk-studio-navigation{max-width:100%}.topbar .pk-studio-navigation nav{max-width:calc(100vw - 28px);overflow-x:auto}}@media(max-width:680px){.pk-studio-footer{max-width:100%;min-width:0;overflow-wrap:anywhere;padding:10px}.pk-studio-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:100%}.pk-studio-footer nav a{white-space:normal}}.vn-editor-viewport{padding:clamp(10px,2vw,24px);overflow:auto}.vn-workspace{width:min(100%,1100px);margin:auto}.vn-workspace #vnReader{min-width:0}.vn-workspace .play-vars{margin-top:12px}.vn-scene-details{margin:14px 0;border:1px solid #cbd9e9;border-radius:11px;background:#f8fbff;padding:10px 12px}.vn-scene-details summary{cursor:pointer;font-weight:800;color:#286b9c;font-size:13px;padding:5px;list-style:revert}.vn-scene-fields{margin-top:10px}.vn-scene-fields .section-head{margin-top:16px}.vn-asset-row,.vn-character-card{background:#fff;border:1px solid #dce7f2;border-radius:9px;padding:10px;margin:8px 0;display:grid;gap:5px;overflow-wrap:anywhere}.vn-asset-row button,.vn-character-card button{border:1px solid #d5e3f0;border-radius:7px;background:#f6faff;color:#285d88;padding:6px;cursor:pointer}.vn-asset-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;font-size:12px}.vn-scene-fields label{margin:9px 0 4px}.vn-scene-fields input[type=file]{border:1px dashed #becfe0;padding:8px;background:#fff}.vn-character-card .vn-char-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.vn-character-card .vn-char-grid label{margin:0}.vn-character-card .vn-char-grid label input,.vn-character-card .vn-char-grid label select{margin-top:5px}.studio>.work-area>.map-viewport,.studio>.work-area>.play-viewport{flex:none;height:clamp(350px,62dvh,740px)}.work-area .story-find{padding-block:8px}.story-find>summary{cursor:pointer;font-size:13px;font-weight:700;color:#365779}.story-find[open]>summary{margin-bottom:8px}.studio .passage-list{max-height:clamp(235px,49vh,500px)}.studio .inspector-body{padding-block:12px}.passage-jumps{display:none}@media(min-width:1051px){.studio>.work-area{grid-column:2;grid-row:1}.studio>.left-panel{grid-column:1;grid-row:1}.studio>.right-panel{grid-column:3;grid-row:1}}@media(max-width:1050px){.studio>.work-area{grid-column:1/-1}.studio>.left-panel{border-top:1px solid var(--border);border-left:1px solid var(--border);border-right:0}.passage-jumps{display:flex;flex-wrap:wrap;gap:10px}.passage-jumps a{color:#346899;font-weight:700;text-underline-offset:2px}}@media(max-width:680px){.studio{align-items:stretch}.studio>.work-area>.map-viewport,.studio>.work-area>.play-viewport{height:clamp(285px,53dvh,500px)}.studio .passage-list{max-height:180px}}.v4-story-lab{min-width:0;max-width:100%;margin:9px 0;padding:10px 12px;border:1px solid #cdd9e8;border-radius:12px}.v4-story-lab summary{cursor:pointer;font-weight:750}.v4-story-lab .v4-hint{font-size:.84rem;opacity:.85;line-height:1.5}.v4-lab-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}.v4-lab-actions button,.v4-scenario-label+div button{border:1px solid #bfd0e0;border-radius:9px;padding:8px 12px;min-height:41px;background:0 0;color:inherit;cursor:pointer}.v4-lab-actions button:disabled{opacity:.5;cursor:not-allowed}.v4-lab-actions input{max-width:100%;min-width:180px;flex:1;min-height:41px}.v4-scenario-label{display:block;font-size:.84rem;font-weight:650}.v4-story-scenarios{max-height:260px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:6px}.v4-story-scenarios button{text-align:left;width:100%;min-height:41px;border:1px solid #bfd0e0;border-radius:8px;padding:9px;background:0 0;color:inherit;cursor:pointer;overflow-wrap:anywhere}.v4-story-lab :is(button,input,summary):focus-visible{outline:3px solid #287ad0;outline-offset:2px}@media(max-width:470px){.v4-lab-actions{display:grid;grid-template-columns:minmax(0,1fr)}.v4-lab-actions input{min-width:0;width:100%}.v4-story-scenarios{grid-template-columns:minmax(0,1fr)}}.v4-story-lab{flex:0 0 auto}.v4-story-lab[open]{max-height:min(38vh,340px);overflow-y:auto;overscroll-behavior:contain}