@charset "UTF-8";
:root{--ink:#243a34;--muted:#78817b;--green:#245242;--accent:#b18b4c;--line:#e0e3da;--paper:#fafbf7;--panel:#fffefa;--soft:#edf2eb;--danger:#a04437;font-family:"Yu Gothic UI","Meiryo",system-ui,sans-serif;color:var(--ink);font-size:13px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:#f3f4ee}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;transition:background .14s,border-color .14s}button:hover{background:#edf2e8;border-color:#a3b9a9}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b89c5e;outline-offset:3px}button svg,[data-icon]>svg{width:18px;height:18px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}a{color:inherit}input,select{color:var(--ink);border:1px solid var(--line);border-radius:6px;background:white;padding:8px 9px;min-width:0}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;padding:0;flex-shrink:0}input[type=range]{accent-color:var(--green);padding:0;border:0;width:100%}input[type=number]{width:100%}h1,h2,h3,p{margin:0}h2{font-size:16px}small{font-size:10px}button.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:650;box-shadow:0 2px 3px #143c1710}button.primary:hover{background:#183d31}.quiet{background:transparent;border-color:transparent}.icon-button{padding:6px;width:34px;min-height:34px;flex-shrink:0}.text-button{background:none;border:0;font-size:12px}.full{width:100%}.app-header{height:74px;padding:0 24px;display:flex;align-items:center;gap:32px;background:var(--panel);border-bottom:1px solid var(--line);position:relative;z-index:3}.brand{display:flex;gap:10px;text-decoration:none;align-items:center;flex-shrink:0}.brand-logo{display:block;width:32px;height:32px;object-fit:contain;flex-shrink:0}.brand b{font-size:16px;letter-spacing:.02em}.brand small{display:block;font-size:8px;letter-spacing:.2em;margin-top:4px;color:var(--muted)}.document-name{max-width:230px;min-width:100px;margin-right:auto;border-left:1px solid var(--line);padding-left:22px}.document-name input{font-weight:600;background:none;border:0;width:100%;padding:0;box-shadow:none}.document-name span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.header-actions{display:flex;align-items:center;gap:6px}.separator{height:20px;border-left:1px solid var(--line);margin:0 7px}.app-layout{height:calc(100dvh - 74px);min-height:460px;display:grid;grid-template-columns:244px minmax(250px,1fr) 246px}.tool-panel{background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.steps{display:flex;padding:16px 13px 0;gap:5px;border-bottom:1px solid var(--line)}.steps button{border:0;background:none;border-radius:0;flex:1;font-weight:650;padding:4px 7px 13px;display:flex;flex-direction:column;gap:4px;position:relative;color:var(--muted)}.steps button small{font-size:9px;font-weight:400;letter-spacing:.12em}.steps button.active{color:var(--green)}.steps button.active:after{content:"";position:absolute;bottom:-1px;height:3px;background:var(--green);left:10px;right:10px}.panel-scroll{overflow-y:auto;flex:1;padding:22px 16px}.panel-heading{margin-bottom:18px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.6}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool{height:90px;display:flex;flex-direction:column;gap:8px;position:relative;background:#fff}.tool b{font-size:11px;font-weight:500}.tool>span svg{width:24px;height:24px}.tool kbd{position:absolute;right:6px;top:4px;font-size:9px;color:#a4aea4}.tool.active{background:#eaf1e8;border:1.5px solid var(--green);color:var(--green)}.connect-tool{width:100%;margin-top:10px;justify-content:flex-start;padding:12px;border-color:#b4c4b3;background:#f0f4eb}.connect-tool>svg{width:26px;height:26px;margin-right:4px}.connect-tool span{text-align:left}.connect-tool b{font-size:12px;display:block}.connect-tool small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.connect-tool.active{box-shadow:inset 0 0 0 1px var(--green)}.section-label{font-size:10px;letter-spacing:.08em;color:var(--muted);margin:22px 0 10px}.inline-tools{display:flex;gap:6px}.inline-tools button{flex:1;flex-direction:column;font-size:11px;padding:10px 3px;gap:6px}.inline-tools button.active{background:var(--soft);border-color:var(--green)}.tip-card{margin-top:23px;border-left:2px solid #b6aa7c;padding:3px 0 3px 11px;display:flex;gap:6px;color:#6f796e;font-size:10px;line-height:1.9}.tip-card>span{color:#b18b4c}.tip-card b{color:#50634e;font-weight:600}.sample-card{width:100%;padding:9px;gap:9px;justify-content:flex-start;text-align:left}.sample-card b{font-size:11px}.sample-card small{font-size:9px;display:block;margin-top:4px;color:var(--muted)}.sample-card>span:last-child{margin-left:auto}.mini-plan{width:41px;height:44px;background:#234f5a;display:grid;grid-template-columns:repeat(3,1fr);padding:7px 4px;gap:2px;flex-shrink:0}.mini-plan i{border:1px solid #c5bb95;height:19px}.mini-plan em{grid-column:span 3;border:1px solid #c5bb95;height:5px}.panel-footer{padding:13px 16px 12px;border-top:1px solid var(--line)}.panel-footer>a:not(.dungeon-banner){display:flex;gap:10px;text-decoration:none;font-size:11px;align-items:center;padding:7px 2px 14px}.panel-footer>a:not(.dungeon-banner)>span:first-child{color:#938259}.panel-footer>a:not(.dungeon-banner) small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.panel-footer>div{display:flex;gap:10px;align-items:center}.panel-footer button{border:0;background:none;font-size:9px;min-height:24px;padding:0;color:var(--muted)}.panel-footer>div>small{font-size:9px;color:var(--muted);margin-left:auto}.workspace{display:flex;flex-direction:column;min-height:0;min-width:0;background:#e9ede6;background-image:radial-gradient(#9fac9f55 .6px,transparent .6px);background-size:13px 13px}.workspace-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 19px;background:#eff2eabf;flex-shrink:0}.canvas-label{font-size:11px;color:#6a7c70;display:flex;align-items:center;gap:7px}.live-dot{height:5px;width:5px;border-radius:50%;background:#61846a}.view-switch{display:flex;border:1px solid #d9dfd2;background:#e1e7db;border-radius:6px;padding:3px;gap:3px}.view-switch button{font-size:10px;border:0;min-height:26px;padding:3px 10px;background:none;color:#75816f}.view-switch button.active{background:#fffefa;color:var(--green);box-shadow:0 1px 3px #19351a14}.workspace-bottom{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;gap:12px;background:#f8faf3dd;border-top:1px solid #dce2d5;min-height:57px}.hint{display:flex;align-items:center;gap:7px;font-size:10px;color:#6a7a69;line-height:1.5;min-width:0}.hint svg{width:14px;height:14px}.viewport-controls{display:flex;align-items:center;gap:3px;flex-shrink:0}.viewport-controls label{font-size:10px;display:flex;align-items:center;gap:2px;margin:0 7px}.viewport-controls button{background:transparent;border:0;width:28px;min-height:28px;padding:3px}.viewport-controls output{font-size:10px;min-width:35px;text-align:center}.viewport-controls .active{background:#d5e4cf}#canvasHost{flex:1;min-height:0;position:relative;overflow:hidden;touch-action:none;outline-offset:-4px}#mapCanvas{width:100%;height:100%;display:block;user-select:none;touch-action:none}#mapCanvas [data-kind="room"]{cursor:pointer}#mapCanvas [data-kind="furniture"],#mapCanvas [data-kind="door"]{cursor:grab}#canvasNotice{position:absolute;top:10px;left:50%;transform:translateX(-50%);border-radius:6px;background:#fff8e4;box-shadow:0 2px 12px #18281722;font-size:11px;padding:8px 14px;max-width:90%;pointer-events:none}#canvasHost.tool-draw{cursor:crosshair}#canvasHost.tool-pan{cursor:grab}.inspector{background:var(--panel);border-left:1px solid var(--line);padding:24px 18px;overflow:auto}.eyebrow{font-size:9px;letter-spacing:.17em;color:var(--muted);margin-bottom:9px}.inspector h2{font-size:17px;margin-bottom:8px}.inspector p{font-size:11px;color:var(--muted);line-height:1.8}.inspector .divider{border-top:1px solid var(--line);margin:22px 0}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;margin:17px 0;color:#526452}.field input,.field select{width:100%;min-height:36px}.field small{color:var(--muted);font-size:10px;line-height:1.6}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-columns .field{margin:8px 0}.check-row{display:flex;align-items:center;gap:7px;font-size:11px;margin:16px 0;line-height:1.6}.range-field{display:block;font-size:11px;margin:23px 0;color:#526452}.range-field output{float:right;color:var(--muted);font-size:10px}.range-field input{display:block;margin-top:13px}.object-actions{display:flex;gap:5px;margin-top:18px;flex-wrap:wrap}.object-actions button{font-size:11px;flex:1}.danger{color:var(--danger)}.stat-list{margin:22px 0;display:flex;gap:20px}.stat-list strong{font-size:25px;font-weight:400;display:block;font-family:Georgia,serif}.stat-list span{font-size:10px;color:var(--muted);display:block;margin-top:5px}.guide-step{display:flex;gap:10px;margin:18px 0;align-items:flex-start}.guide-step em{font-style:normal;background:#eff2e8;border:1px solid #dce4d7;color:#648158;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:10px;flex-shrink:0}.guide-step b{font-size:11px;display:block;margin-bottom:4px}.guide-step p{font-size:10px}.map-note{margin-top:26px;padding:14px;border:1px solid #e1e5da;background:#f4f6ee;border-radius:5px;font-size:10px;line-height:1.8;color:#798372}.search-box{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;padding:0 8px;background:white}.search-box input{border:0;background:none;width:100%;font-size:11px;padding:10px 5px}.search-box span{color:var(--muted)}.chips{display:flex;gap:4px;margin:14px 0}.chips button{font-size:10px;min-height:26px;padding:3px 9px;border-radius:20px}.chips button.active{background:var(--green);color:white;border-color:var(--green)}.asset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.asset-card{display:flex;flex-direction:column;padding:9px 5px;font-size:10px;gap:4px}.asset-card svg{width:69px;height:54px;fill:initial;stroke:initial;stroke-width:initial}.asset-card.active{border-color:var(--green);background:#e9f1e5}.style-cards{display:flex;flex-direction:column;gap:9px}.style-card{display:flex;justify-content:flex-start;gap:11px;padding:9px}.style-card>span:nth-child(2){text-align:left}.style-card b{font-size:11px}.style-card small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.style-card i{margin-left:auto;font-style:normal;color:transparent}.style-card.active{border-color:#628468;background:#eff4e9}.style-card.active i{color:var(--green)}.swatch{width:43px;height:47px;flex-shrink:0;border-radius:3px;position:relative}.swatch:before{content:"";position:absolute;inset:8px;border:1px solid currentColor;background:linear-gradient(90deg,transparent 47%,currentColor 48%,currentColor 50%,transparent 51%);opacity:.7}.swatch:after{content:"";position:absolute;bottom:16px;left:8px;right:8px;border-top:1px solid currentColor}.swatch.blue{background:#214d60;color:#d7cba2}.swatch.parchment{background:#daca9f;color:#786441}.swatch.draft{background:#f4f2e9;color:#6d786f;border:1px solid #ddd}.swatch.color{background:#a49c80;color:#53462e}.swatch.noir{background:#15191d;color:#d6ceb8;border:1px solid #353b42}.swatch.terminal{background:#0b1915;color:#5ce6b5;border:1px solid #1f4d3d}.info-list{padding-left:19px;font-size:12px;line-height:2}.info-list li{margin:7px 0}.subtle{color:var(--muted);font-size:11px;line-height:1.8}.shortcut-grid{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:16px;font-size:11px}.shortcut-grid kbd{font-family:inherit;background:#edf1e7;border:1px solid #d8dece;padding:2px 5px;border-radius:3px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:20;background:#203f34;color:white;border:1px solid #476b54;border-radius:7px;padding:12px 19px;font-size:12px;box-shadow:0 5px 25px #10291430;max-width:90vw;line-height:1.6}dialog{border:1px solid #d9dfd1;border-radius:12px;padding:0;width:min(570px,94vw);max-height:90dvh;background:var(--panel);color:var(--ink);box-shadow:0 25px 100px #152b2944}dialog::backdrop{background:#1b2c2855;backdrop-filter:blur(3px)}.dialog-content{padding:25px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.dialog-heading small{font-size:9px;color:#929b88;letter-spacing:.16em;display:block;margin-bottom:7px}.dialog-content>p{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0}.dialog-content h3{margin-top:21px;font-size:13px}.dialog-content a{color:var(--green)}.dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:24px}.export-preview{height:220px;border:1px solid #dbe0d4;border-radius:5px;margin:18px 0;background:repeating-conic-gradient(#e1e5dc 0% 25%,#f5f6ef 0% 50%) 0/18px 18px;display:flex;justify-content:center}.export-preview svg{height:100%;max-width:100%}.mobile-dismiss{display:none}button[hidden],section[hidden],[hidden]{display:none!important}
@media(min-width:1600px){.app-layout{grid-template-columns:262px minmax(250px,1fr) 270px}.panel-scroll{padding:24px 20px}.inspector{padding:26px 22px}}
@media(max-width:1100px){.app-header{padding:0 16px;gap:18px}.document-name{max-width:170px;padding-left:15px}.app-layout{grid-template-columns:218px minmax(200px,1fr) 210px}.panel-scroll{padding:18px 12px}.inspector{padding:22px 12px}.header-actions{gap:2px}.header-actions button{font-size:11px;padding:7px 9px}.workspace-bottom{flex-wrap:wrap;gap:5px}.hint{width:100%}.viewport-controls{margin-left:auto}}
@media(max-width:850px){.document-name{display:none}.header-actions{margin-left:auto}.brand b{font-size:14px}.app-layout{grid-template-columns:205px minmax(200px,1fr)}.inspector{position:fixed;right:12px;top:137px;width:225px;max-height:calc(100dvh - 230px);border:1px solid #d1dacb;border-radius:8px;box-shadow:0 10px 35px #1c3c251c;z-index:4;display:none}.inspector.has-selection{display:block}.mobile-dismiss{display:inline-flex;float:right}.workspace-top{padding:11px}.hint{font-size:9px}.panel-footer{padding:12px}.app-header .separator{display:none}.header-actions .quiet{font-size:0;gap:0;padding:7px}.header-actions .quiet svg{width:18px;height:18px}}
@media(max-width:560px){.app-header{height:62px;padding:0 9px;gap:8px}.brand{gap:6px}.brand b{font-size:12px}.brand small{font-size:7px;letter-spacing:.1em}.brand-logo{width:24px;height:24px}.header-actions .icon-button{width:27px;padding:3px}.header-actions #redoBtn{display:none}.header-actions #exportBtn{font-size:10px;padding:6px 8px;min-height:32px}.header-actions #exportBtn svg{display:none}.header-actions #openBtn{display:none}.app-layout{height:auto;min-height:calc(100dvh - 62px);display:flex;flex-direction:column}.workspace{order:0;height:57dvh;min-height:350px;border-bottom:1px solid var(--line)}.tool-panel{order:1;min-height:330px;border-right:0}.steps{padding-top:8px}.steps button{flex-direction:row;gap:7px;padding-bottom:10px}.panel-scroll{padding:18px;overflow:visible}.panel-heading{margin-bottom:12px}.tool-grid{grid-template-columns:repeat(4,1fr)}.tool{height:73px}.tool>span svg{width:21px;height:21px}.tool b{font-size:10px}.connect-tool{min-height:46px;padding:8px 11px}.connect-tool small{display:inline;margin-left:12px}.connect-tool b{display:inline}.inline-tools button{flex-direction:row}.tip-card{margin:15px 0}.section-label{margin-top:15px}.sample-card{max-width:300px}.panel-footer{padding:14px 18px}.panel-footer>a:not(.dungeon-banner){padding-bottom:10px}.inspector{top:120px;right:7px;width:215px;max-height:43dvh}.workspace-bottom{padding:5px 10px}.hint{font-size:9px}.viewport-controls button{min-height:25px}.workspace-top{padding:8px 11px}.canvas-label{font-size:10px}.asset-grid{grid-template-columns:repeat(4,1fr)}.style-cards{display:grid;grid-template-columns:1fr 1fr}.style-card{gap:7px}.style-card small{font-size:8px}.style-card .swatch{width:32px;height:39px}.style-card i{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.panel-footer .mobile-file-actions{display:none}
@media(max-width:560px){.panel-footer .mobile-file-actions{display:flex;padding-bottom:12px;gap:12px}.panel-footer .mobile-file-actions button{font-size:11px;min-height:34px;padding:5px 10px;border:1px solid var(--line);background:var(--paper)}}

@media(max-width:560px){.tool-panel{order:2}.inspector{position:relative;inset:auto;order:1;width:100%;max-height:340px;margin:0;padding:18px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}.inspector.has-selection{display:block}}

/* Furniture and architectural controls, v0.2 */
.global-setting{margin-top:16px}.global-setting small{font-size:11px;line-height:1.6;font-weight:400;color:var(--muted,#748077)}.follow-setting{align-items:flex-start;margin-top:18px}.follow-setting input{margin-top:4px;flex-shrink:0}.follow-description{font-size:11px;line-height:1.65;margin-top:4px}.tool[data-tool="stairs"]{grid-column:1/-1;flex-direction:row;justify-content:center;gap:8px;min-height:48px}.tool[data-tool="stairs"] small{font-size:10px;opacity:.7}.object-actions{flex-wrap:wrap}.object-actions button{font-size:12px}

/* Editing controls and grid-based export. */
[hidden]{display:none!important}
textarea{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:6px;background:white;padding:8px 9px;min-width:0;width:100%;resize:vertical}
.canvas-label{min-width:0;max-width:65%}#canvasHeading{display:block;min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tool[data-tool="stairs"]{grid-column:auto;flex-direction:column;height:90px}.tool-grid kbd{pointer-events:none}
.object-actions{gap:6px}.object-actions button{flex:1;min-width:80px}
.object-actions.door-actions{flex-direction:column}.door-actions button{width:100%}
.export-preview{background:#e6e9e2!important;height:280px;padding:10px;display:flex;align-items:center;justify-content:center;min-height:150px}.export-preview svg{display:block;width:auto;max-width:100%;max-height:100%;height:auto;box-shadow:0 1px 6px #0002;background:transparent}
.export-preview.is-transparent svg{background:repeating-conic-gradient(#e1e3dc 0% 25%,#fff 0% 50%) 50%/16px 16px!important}
#vttGuide{margin:10px 0;line-height:1.7}#vttGuide p{margin:5px 0}#copyVttSize{font-size:12px}
@media(max-width:560px){.tool-grid{grid-template-columns:repeat(3,1fr)}.tool[data-tool="stairs"]{height:73px}.panel-footer .mobile-file-actions{flex-wrap:wrap;gap:7px}.panel-footer .mobile-file-actions button{padding:5px 8px}.canvas-label{max-width:52%}}

/* A choice of real maps, with one clear next step after export. */
.start-picker-button{width:100%;margin-bottom:10px;justify-content:flex-start;font-size:11px}
.sample-card{padding:7px;gap:9px;margin-bottom:7px;min-height:80px;max-width:none}
.sample-thumb{display:block;width:66px;height:66px;border-radius:4px;overflow:hidden;flex-shrink:0;background:#173b40}
.sample-card>span:nth-child(2){min-width:0}.sample-card>span:last-child{font-size:12px}
.sample-card b{font-size:11px;display:block;line-height:1.5}.sample-card small{line-height:1.5}
.sample-thumb svg,.start-preview svg{display:block;width:100%;height:100%;stroke:none;stroke-width:0;fill:initial;pointer-events:none}
#startDialog{width:min(1080px,96vw);max-height:92dvh;border-radius:15px;background:#fbfaf5}
.start-content{padding:30px}.start-content .dialog-heading{margin-bottom:12px}.start-content .dialog-heading small{color:#8a7955;letter-spacing:.12em;font-size:10px}
#startTitle{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:28px;letter-spacing:.03em;font-weight:600;line-height:1.45}
#startDescription{font-size:12px;color:#69776d;line-height:1.8;margin-bottom:24px}
#startTitle span{display:inline-block}
.start-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.start-card{display:flex;flex-direction:column;align-items:stretch;gap:0;overflow:hidden;padding:0;text-align:left;background:#fffefa;border:1px solid #d7ddd1;border-radius:9px;transition:transform .15s,box-shadow .15s,border-color .15s}
.start-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #1d372515;background:#fffefa;border-color:#779782}
.start-preview{display:block;width:100%;aspect-ratio:1.24;overflow:hidden;background:#173b40;padding:9px}
.start-card[data-start="manor"] .start-preview{background:#0f1215}.start-card[data-start="facility"] .start-preview{background:#07110e}.start-card[data-start="observatory"] .start-preview{background:#163644}
.start-card-copy{display:flex;flex-direction:column;padding:16px 14px;flex:1;gap:9px}.start-card-copy>small{font-size:9px;color:#8c7953;letter-spacing:.05em}.start-card-copy>b{font-size:16px;line-height:1.5;color:#213f34}.start-card-copy>span{font-size:11px;line-height:1.75;color:#718073;min-height:39px}.start-card-copy>strong{display:flex;justify-content:space-between;gap:8px;padding-top:13px;margin-top:auto;border-top:1px solid #e4e7dd;font-size:11px;font-weight:600;color:var(--green)}
.start-blank{border-style:dashed;background:#f6f7f0}.start-blank .blank-preview{background-color:#eff2e9;background-image:linear-gradient(#dce3d766 1px,transparent 1px),linear-gradient(90deg,#dce3d766 1px,transparent 1px);background-size:22px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#809383;gap:10px;font-size:9px;letter-spacing:.2em}
.blank-cross{display:flex;align-items:center;justify-content:center;width:55px;height:55px;border:1px solid #a3b39f;border-radius:50%;background:#fbfcf5a6;font-size:32px;font-weight:300;letter-spacing:0;line-height:1}
.resume-work{width:100%;margin:0 0 20px;padding:14px 18px;justify-content:space-between;text-align:left;background:#eaf0e5;border-color:#c4d2bd;gap:20px}.resume-work>span{min-width:0}.resume-work small{display:block;font-size:10px;color:#74816e;margin-bottom:5px}.resume-work b{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resume-work strong{font-size:12px;flex-shrink:0}.resume-work strong span{margin-left:14px}
.start-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid #e0e3d7}.start-bottom>span{font-size:11px;color:#849080;line-height:1.7}.start-bottom button{font-size:11px;background:transparent;flex-shrink:0}
.export-intro{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0}
#exportDialog.showing-next{width:min(820px,94vw)}.showing-next #exportTitle{font-size:23px;line-height:1.5;letter-spacing:.02em}.showing-next .dialog-heading{margin-bottom:7px}
.export-complete{font-size:11px;color:#7d8b7c;margin-bottom:14px}

.stage-return{display:flex;gap:9px;justify-content:flex-end;padding-top:15px;border-top:1px solid var(--line)}.stage-return button{font-size:11px}.stage-optout{margin-top:15px;font-size:10px;color:#81907e}

@media(max-width:850px){.start-content{padding:24px}.start-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.start-preview{aspect-ratio:1.7}#startTitle{font-size:25px}.start-card-copy{padding:13px 15px}.start-card-copy>span{min-height:0}.start-card-copy>strong{padding-top:9px}.start-bottom{flex-wrap:wrap}}
@media(max-width:560px){.start-content{padding:18px 14px}#startTitle{font-size:21px}.start-content .dialog-heading{gap:6px;align-items:flex-start}#startDescription{font-size:11px;margin-bottom:17px}.start-choices{gap:10px}.start-preview{aspect-ratio:1.1;padding:5px}.start-card-copy{padding:12px 10px;gap:6px}.start-card-copy>b{font-size:13px}.start-card-copy>span{font-size:10px;min-height:35px}.start-card-copy>small{font-size:8px}.start-card-copy>strong{font-size:10px}.resume-work{padding:12px;gap:8px}.resume-work strong{font-size:10px}.resume-work strong span{margin-left:3px}.resume-work b{font-size:12px}.start-bottom{gap:10px;margin-top:17px}.start-bottom button{width:100%}.showing-next #exportTitle{font-size:20px}.showing-next .dialog-content{padding:20px 16px}.stage-return{justify-content:stretch}.stage-return button{flex:1}.stage-optout{align-items:flex-start}}

/* Privacy stays available without interrupting map creation. */
.inspector-footer .footer-privacy{display:flex;margin-top:6px;font-size:9px;text-decoration:underline;text-underline-offset:3px;color:#526b5e}.start-privacy{display:flex;justify-content:flex-end;margin-top:13px}.start-privacy button{min-height:28px;padding:3px 0;background:none;border:0;font-size:10px;color:#66796d;text-decoration:underline;text-underline-offset:3px}
#privacyDialog{width:min(700px,94vw)}.privacy-content{padding:28px 30px}.privacy-content .dialog-heading{align-items:flex-start}.privacy-content .dialog-heading h2{font-size:22px;line-height:1.5}.privacy-content .dialog-heading form{flex-shrink:0}.privacy-content .privacy-lead{font-size:13px;line-height:1.9;color:var(--ink);padding:14px 16px;background:var(--soft);border-radius:7px}.privacy-content .privacy-date{font-size:10px;color:var(--muted);margin:12px 0 22px}.privacy-content section{padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}.privacy-content section h3{font-size:14px;line-height:1.7;margin:0 0 9px}.privacy-content section p{font-size:12px;line-height:1.95;color:#4d6156;margin-top:9px;overflow-wrap:anywhere}.privacy-content a{text-underline-offset:3px}.privacy-content .dialog-actions{padding-top:15px;border-top:1px solid var(--line)}
@media(max-width:560px){.privacy-content{padding:20px 17px}.privacy-content .dialog-heading h2{font-size:19px}.privacy-content .privacy-lead{padding:12px;font-size:12px}.privacy-content section h3{font-size:13px}.privacy-content section p{font-size:12px}}

/* v2.0 Curved rooms, ship sample, and trace overlay controls */
.start-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
.start-card[data-start="ship"] .start-preview{background:#d8c598}
.start-card.start-blank{grid-column:1/-1;flex-direction:row;align-items:center}
.start-card.start-blank .start-preview{width:140px;aspect-ratio:auto;height:86px;flex-shrink:0}
.start-card.start-blank .blank-cross{width:38px;height:38px;font-size:22px}
.start-card.start-blank .start-card-copy{flex-direction:row;align-items:center;justify-content:space-between;padding:14px 20px;gap:16px}
.start-card.start-blank .start-card-copy>span{min-height:0}
.start-card.start-blank .start-card-copy>strong{border-top:0;padding-top:0;margin-top:0;flex-shrink:0}
@media(max-width:850px){.start-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.start-card.start-blank{flex-direction:column;align-items:stretch}.start-card.start-blank .start-preview{width:100%;height:auto;aspect-ratio:1.7}.start-card.start-blank .start-card-copy{flex-direction:column;align-items:stretch;padding:13px 15px}}

.studio-ads>a.dungeon-banner{display:grid!important;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:center;padding:10px 12px;margin:0 0 12px;background:linear-gradient(135deg,#182f29 0%,#23453b 100%);border:1px solid #3c6255;border-radius:8px;color:#f5f1e6;text-decoration:none;box-shadow:0 2px 8px #142b2918;transition:transform .14s,border-color .14s,box-shadow .14s}
.studio-ads>a.dungeon-banner>.dungeon-banner-icon{width:38px;height:38px;border-radius:6px;background:#10211d;border:1px solid #8e774488;display:flex;align-items:center;justify-content:center;color:inherit}
.studio-ads>a.dungeon-banner img{width:24px;height:24px;object-fit:contain;display:block}
.studio-ads>a.dungeon-banner .dungeon-banner-body{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.35}
.studio-ads>a.dungeon-banner em{font-size:8.5px;font-style:normal;letter-spacing:.12em;color:#d6b874;font-weight:600}
.studio-ads>a.dungeon-banner b{font-size:12px;letter-spacing:.02em;color:#fffefa;font-weight:650}
.studio-ads>a.dungeon-banner small{font-size:9.5px;color:#b8ccc3;margin:0;line-height:1.3}
.studio-ads>a.dungeon-banner:hover,.studio-ads>a.dungeon-banner:focus-visible{border-color:#b89c5e;box-shadow:0 4px 12px #142b2928;transform:translateY(-1px)}
@media(prefers-reduced-motion:reduce){.studio-ads>a.dungeon-banner{transition:none}.studio-ads>a.dungeon-banner:hover{transform:none}}

/* One stable advertisement slot in the lower-left footer. */
.panel-footer .studio-ads{margin:0 0 12px}
.studio-ads>a.dungeon-banner{margin:0;min-height:76px}
.studio-ads>a.dungeon-banner .dungeon-banner-body b{font-size:11px;letter-spacing:0}
.studio-ads .dungeon-banner-icon svg{width:26px;height:26px;fill:none;stroke:#d6b874;stroke-width:1.5}
.panel-footer .studio-ad-controls{display:flex;align-items:center;gap:4px;margin-top:3px}
.studio-ad-caption{font-size:9px;color:var(--muted);margin-right:auto}
.studio-ad-controls>div{display:flex;gap:0}
.studio-ad-controls button[data-studio-ad]{width:24px;min-height:24px;padding:0;border:0;background:transparent}
.studio-ad-controls button[data-studio-ad]::before{content:"";width:5px;height:5px;border-radius:50%;background:#bac7bc}
.studio-ad-controls button[data-studio-ad][aria-pressed="true"]::before{background:var(--green);width:7px;height:7px}
.studio-ad-controls #studioAdPause{font-size:9px;padding:2px 4px;min-height:24px}

/* Contextual instructions sit below the canvas, outside the editable map. */
.curve-guide{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:9px 14px;background:#f4f6ec;border-top:1px solid #dce2d5;color:#516556;font-size:11px;line-height:1.65}
.curve-guide[hidden]{display:none}.curve-guide>div{flex:1;min-width:0}.curve-guide b{font-weight:600}.curve-guide small{display:block;font-size:10px}.curve-guide button{font-size:10px;min-height:30px;padding:5px 8px;flex-shrink:0}
@media(max-width:900px){.curve-guide{flex-wrap:wrap;font-size:10px;padding:6px 10px;gap:4px}.curve-guide>div{flex-basis:100%}.curve-guide small{font-size:10px}.curve-guide button{min-height:26px}}

/* The shape choices get their own row so the guide stays readable at every width. */
.curve-guide{flex-wrap:wrap;gap:6px 10px}.curve-guide>div:first-child{flex:1 1 380px}
.curve-guide .curve-shape-chips{display:flex;flex:0 0 100%;gap:5px;flex-wrap:wrap}
.curve-guide .curve-shape-chips button{font-size:10px;min-height:27px;padding:3px 9px;border-radius:14px;background:#fff;border:1px solid #c8d2c3}
.curve-guide .curve-shape-chips button.active{background:var(--green);color:#fff;border-color:var(--green)}
@media(max-width:560px){.curve-guide .curve-shape-chips{gap:4px}.curve-guide .curve-shape-chips button{padding:3px 7px}}

.tool-label-unit{white-space:nowrap}

.workspace-top{flex-wrap:wrap;gap:8px 12px}
.floor-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.floor-bar .view-switch button[data-floor-btn].has-data:not(.active)::after{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--green);margin-left:3px;vertical-align:middle}
.floor-copy-btn{font-size:10px;min-height:28px;padding:3px 9px;background:#fffefa;border:1px solid #c4d2bd;color:var(--green);font-weight:600}
.onion-toggle{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#526452;cursor:pointer;user-select:none}
.mode-switch{background:#d7e3dc;border-color:#b8ccc0}
.mode-switch button.active{background:var(--green);color:#fff}
.stack-camera-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:7px 18px;background:#e2ece5;border-bottom:1px solid #c5d6cb;font-size:11px;color:#244438}
.stack-camera-bar .camera-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.stack-camera-bar label{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600}
.stack-camera-bar input[type=range]{width:96px;margin:0}
.stack-camera-bar button{min-height:26px;padding:3px 8px;font-size:10px}
.empty-floor-wizard{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#e9ede688;backdrop-filter:blur(1.5px);z-index:2;pointer-events:auto}
.wizard-card{max-width:420px;width:100%;background:var(--panel);border:1px solid #b8ccc0;border-radius:12px;padding:22px 24px;box-shadow:0 14px 40px #162e2626;text-align:left}
.wizard-card small{font-size:9px;letter-spacing:.14em;color:var(--green);font-weight:700;display:block;margin-bottom:6px}
.wizard-card h3{font-size:17px;margin:0 0 8px;color:var(--ink)}
.wizard-card p{font-size:11.5px;line-height:1.75;color:var(--muted);margin-bottom:16px}
.wizard-actions{display:flex;flex-direction:column;gap:8px}
.next-quick-exports{margin:0 0 16px;padding:12px 14px;background:#eef3ec;border:1px solid #c6d4c2;border-radius:8px}
.next-quick-exports>b{display:block;font-size:11px;color:var(--green);margin-bottom:8px}
.next-quick-exports .object-actions{margin-top:0}

.stage-play-bar{background:#1d382f;color:#f3f6f0;border-bottom-color:#355c4e}
.stage-play-bar small{color:#bdd2c7;font-size:10px}
.stage-play-bar .camera-controls button:not(.primary){background:#294c40;color:#fff;border-color:#487565}
.stage-play-bar .camera-controls button:not(.primary):hover{background:#356152}
@keyframes shaftPulse{0%,100%{filter:drop-shadow(0 0 0px #f6d782);transform:scale(1)}50%{filter:drop-shadow(0 0 8px #f6d782); stroke-width:.11}}
.shaft-active-pulse path,.shaft-active-pulse ellipse{animation:shaftPulse var(--shaft-pulse-duration,.65s) ease-in-out 2}
@media(prefers-reduced-motion:reduce){.shaft-active-pulse path,.shaft-active-pulse ellipse{animation:none}}

/* Help follows the saving note; narrow layouts keep it in the visible panel. */
.inspector-footer{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}
.inspector-footer>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.inspector-footer button{border:0;background:none;font-size:10px;min-height:28px;padding:0;color:var(--muted)}
.inspector-footer small{margin-left:auto;font-size:9px;color:var(--muted)}
.related-studios{margin:20px 0}
.related-studios h3{font-size:12px;margin:0 0 10px}
.export-studio-ads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.export-studio-ads>a.dungeon-banner{grid-template-columns:1fr;gap:10px;padding:14px;align-content:start}
.export-studio-ads>a.dungeon-banner .dungeon-banner-body{gap:6px}
.export-studio-ads>a.dungeon-banner .dungeon-banner-body b{font-size:12px;line-height:1.6}
@media(max-width:560px){.export-studio-ads{grid-template-columns:1fr}.export-studio-ads>a.dungeon-banner{grid-template-columns:38px minmax(0,1fr);align-content:normal;padding:12px}.export-studio-ads>a.dungeon-banner .dungeon-banner-body{gap:3px}.next-quick-exports .object-actions{flex-direction:column}}

.stage-cta-card{margin-top:22px;padding:14px;background:linear-gradient(135deg,#eef4ef 0%,#e2ede6 100%);border:1px solid #b7cbbd;border-radius:9px}
.stage-cta-card small{display:block;font-size:9px;letter-spacing:.14em;color:var(--green);font-weight:700;margin-bottom:4px}
.stage-cta-card b{display:block;font-size:12px;color:var(--ink);margin-bottom:6px}
.stage-cta-card p{font-size:10.5px;line-height:1.65;color:var(--muted);margin-bottom:12px}
.stage-step-box{padding:13px;margin-bottom:14px;background:#f7f9f5;border:1px solid #d6dfd2;border-radius:9px}
.stage-step-head{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.stage-step-head em{font-style:normal;width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.stage-step-head b{font-size:12px;color:var(--ink)}
.stage-tool-btn{justify-content:flex-start;text-align:left;padding:10px 12px;background:#fff;border:1.5px solid #bfd0c3;margin-top:8px}
.stage-tool-btn>span:first-child svg{width:22px;height:22px}
.stage-tool-btn b{display:block;font-size:11.5px}
.stage-tool-btn small{display:block;font-size:9.5px;color:var(--muted);margin-top:2px}
.stage-tool-btn.active{background:#e7f1ea;border-color:var(--green);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.floor-lock-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.floor-lock-chips button{min-height:30px;padding:4px;font-size:10px;font-weight:600}
.floor-lock-chips button.active{background:#263832;color:#f6d782;border-color:#263832}
.stage-list{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.stage-list-item{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 9px;background:#f6f8f3;border:1px solid #dce2d6;border-radius:6px;font-size:11px}
.stage-list-item.is-locked{background:#222c29;color:#f4e2a7;border-color:#3a4a44}
.stage-list-item .item-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.stage-list-item .item-actions{display:flex;gap:4px;flex-shrink:0}
.stage-list-item .item-actions button{min-height:24px;padding:2px 7px;font-size:10px}
.steps button{min-width:0;padding-left:3px;padding-right:3px}
.stage-scenario-toggle{display:none;margin-bottom:12px;font-size:11px}
.stage-list-item{align-items:flex-start;flex-wrap:wrap}
.stage-list-item .item-title{white-space:normal;overflow-wrap:anywhere;flex-basis:100%}
.stage-list-item .item-actions{margin-left:auto}
.stage-list-item.is-done{border-color:#9abda3}
.stage-export-progress{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:30;width:min(520px,94vw);padding:12px 16px;background:var(--panel);border:1px solid var(--green);border-radius:8px;box-shadow:0 5px 24px #142b2933;display:grid;grid-template-columns:1fr auto;gap:8px;font-size:12px}
.stage-export-progress span{grid-column:1/-1}.stage-export-progress progress{width:100%;align-self:center;accent-color:var(--green)}
.stage-export-progress button{font-size:11px}.stage-export-progress[hidden]{display:none}
@media(max-width:850px){.stage-scenario-toggle{display:block}.inspector.stage-scenario-open{display:block}.steps button{font-size:12px}.steps button small{font-size:8px}}
@media(max-width:560px){.inspector.stage-scenario-open{max-height:420px}.stage-step-box .object-actions{flex-direction:column}.steps button{gap:4px}}

.stage-view-switcher{margin-bottom:14px;padding:10px 12px;background:#eaf1ec;border:1px solid #bfd1c4;border-radius:9px}
.stage-view-switcher>small{display:block;font-size:10px;font-weight:700;color:var(--green);margin-bottom:6px}
.stage-view-switcher .view-switch{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.stage-view-switcher .view-switch button{flex-direction:column;gap:2px;padding:6px 4px;line-height:1.25;font-weight:650}
.stage-view-switcher .view-switch button small{font-size:8.5px;font-weight:400;opacity:.85}
.route-start-banner{margin-top:8px;padding:8px 10px;background:#203f34;color:#f6d782;border-radius:6px;font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.route-start-banner button{color:#fff;text-decoration:underline;font-size:10px;padding:2px 4px;min-height:24px}
.timeline-step{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f6f8f3;border:1px solid #d8e0d2;border-radius:7px;font-size:11px;cursor:pointer;transition:border-color .14s,background .14s}
.timeline-step:hover{border-color:var(--green);background:#eef4ef}
.timeline-step.is-active{border:1.5px solid var(--green);background:#e6f0e9}
.timeline-step em{font-style:normal;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:#dce5d8;color:var(--ink);font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.timeline-step.is-active em{background:var(--green);color:#fff}
.route-start-banner[hidden]{display:none}.route-start-banner{flex-wrap:wrap}.route-start-banner span{overflow-wrap:anywhere;min-width:0}.timeline-step{text-align:left;width:100%}.timeline-step .item-title{white-space:normal;overflow-wrap:anywhere}.stage-manual ol{padding-left:22px;margin:18px 0}.stage-manual li{padding:0 0 14px 4px;font-size:12px;line-height:1.8}.stage-manual li p{font-size:11px;color:var(--muted);margin-top:3px}.stage-manual .map-note{margin:0 0 18px}.stage-manual>p{font-size:12px;line-height:1.8}

.unlock-badge{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:10px;background:#354b42;color:#f6d782;font-size:9.5px;font-weight:700}
.unlock-trigger-select{width:100%;min-height:28px;padding:3px 6px;font-size:10.5px;margin-top:4px;background:#fffefa;border:1px solid #486358;color:var(--ink);border-radius:5px}
[data-stage-handles] [data-kind="linepoint"],[data-3d-handles] [data-kind="linepoint"]{cursor:grab;touch-action:none}.unlock-trigger-select{flex-basis:100%;min-width:0}.unlock-badge{margin:4px 0 0;line-height:1.6;white-space:normal}

/* Horizontal stage timeline and inspector controls */
/* 1. キャンバス上部バーの1行スリム化 */
.workspace-top{flex-wrap:nowrap;padding:7px 14px;min-height:44px;gap:10px;border-bottom:1px solid #dce2d5}
.canvas-label{max-width:200px;flex-shrink:1}
.floor-bar{flex-wrap:nowrap;gap:6px;margin:0 auto}
.audience-switch{flex-shrink:0}
@media(max-width:960px){.canvas-label{display:none}.floor-bar{margin:0}}

/* 2. 右パネル（インスペクター）上部のフロア操作＆3D視点調整カード */
.inspector{padding:14px 14px 22px}
.inspector-env-box{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.inspector-floor-tools{display:flex;flex-direction:column;gap:6px}
.inspector-toggles{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 0}
.inspector-camera-card{padding:10px 11px;background:#e6efe9;border:1px solid #bed1c5;border-radius:8px;display:flex;flex-direction:column;gap:8px;font-size:10.5px;color:#214236}
.cam-card-head{display:flex;align-items:center;justify-content:space-between}
.cam-card-head b{font-size:11px}
.cam-card-head .text-button{font-size:10px;padding:0;min-height:20px;color:var(--green);text-decoration:underline}
.cam-rot-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px}
.cam-rot-row button{min-height:26px;padding:2px 7px;font-size:10px}
.cam-rot-row label{display:flex;flex-direction:column;font-size:9.5px;font-weight:600;text-align:center;gap:2px}
.cam-sliders-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cam-sliders-row label{display:flex;flex-direction:column;gap:3px;font-size:9.5px;font-weight:600}

/* 3. Premiere Pro風 下部・横型2トラック演出タイムラインドック */
.stage-timeline-dock{background:#182823;color:#eff5f1;border-top:2px solid #355c4e;display:flex;flex-direction:column;flex-shrink:0;z-index:2;box-shadow:0 -4px 16px #0d1a1628}
.timeline-dock-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;background:#12201c;border-bottom:1px solid #29453c;flex-wrap:wrap}
.timeline-transport{display:flex;align-items:center;gap:5px}
.timeline-transport button{min-height:28px;padding:3px 10px;font-size:11px;border-radius:5px}
.timeline-transport button:not(.primary){background:#243d35;color:#e7f0ec;border-color:#3b6154}
.timeline-transport button:not(.primary):hover{background:#2f5046}
.timeline-meta{display:flex;align-items:center;gap:10px;font-size:11px;margin-right:auto}
.timeline-meta b{color:#f6d782;font-size:11px}
.timeline-meta small{color:#a8c3b8;font-size:10px}
.timeline-collapse-btn{color:#bdd2c7;font-size:10.5px;min-height:24px;padding:2px 6px}
.timeline-dock-body{overflow:hidden}
.timeline-track-scroll{overflow-x:auto;overflow-y:hidden;padding:8px 12px 10px}
.nle-timeline{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(158px,182px);gap:6px;align-items:stretch;min-width:max-content}
.nle-track-headers{position:sticky;left:0;z-index:2;width:104px;min-width:104px;background:#14231f;border:1px solid #2b473e;border-radius:6px;display:grid;grid-template-rows:26px 1fr 1fr;overflow:hidden;box-shadow:4px 0 10px #09131066}
.nle-track-headers>div{padding:4px 8px;display:flex;align-items:center;font-size:10px;font-weight:700;color:#b8d0c5;border-bottom:1px solid #233b33}
.nle-track-headers>div:last-child{border-bottom:0;color:#f6d782}
.nle-col{background:#1e332c;border:1px solid #2e4d42;border-radius:6px;display:grid;grid-template-rows:26px minmax(42px,auto) minmax(46px,auto);position:relative;transition:border-color .14s,background .14s}
.nle-col:hover{border-color:#689985}
.nle-col.is-current{border:2px solid #f25f4c;background:#243f36;box-shadow:0 0 0 2px #f25f4c33}
.nle-col.is-current::before{content:"▼ PLAYHEAD";position:absolute;top:-8px;right:6px;background:#f25f4c;color:#fff;font-size:8px;font-weight:800;padding:1px 5px;border-radius:3px;letter-spacing:.06em;pointer-events:none}
.nle-col.is-manual{background:#192623;border-style:dashed;border-color:#4a635a}
.nle-step-head{width:100%;border:0;border-bottom:1px solid #2b473e;border-radius:5px 5px 0 0;background:#162722;color:#e6f0ec;padding:3px 8px;min-height:26px;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:space-between;cursor:pointer;text-align:left}
.nle-step-head:hover{background:#213a32}
.nle-step-badge{display:inline-flex;align-items:center;justify-content:center;padding:1px 6px;border-radius:10px;background:#2e5144;color:#f6d782;font-size:9px}
.nle-col.is-current .nle-step-badge{background:#f25f4c;color:#fff}
.nle-cell-route,.nle-cell-unlock{padding:5px 7px;display:flex;flex-direction:column;gap:4px;justify-content:center;font-size:10px}
.nle-cell-route{border-bottom:1px solid #264037;background:#1b2e28}
.nle-route-chip{display:flex;flex-direction:column;gap:3px;background:#254239;border:1px solid #457564;border-radius:5px;padding:4px 6px;color:#fff}
.nle-route-top{display:flex;align-items:center;justify-content:space-between;gap:4px;font-weight:700;font-size:10px}
.nle-route-actions{display:flex;gap:2px}
.nle-route-actions button{min-height:18px;padding:0 4px;font-size:9px;background:#182c26;color:#d6e6df;border-color:#3a5e51;border-radius:3px}
.nle-stair-tag{font-size:9px;color:#f6d782;font-weight:600}
.nle-unlock-chip{display:flex;flex-direction:column;gap:3px;padding:4px 6px;background:#263832;border:1px solid #5a7a6c;border-radius:5px;color:#f6d782;font-size:9.5px;font-weight:600}
.nle-unlock-chip select{width:100%;min-height:21px;padding:1px 4px;font-size:9px;background:#14221e;color:#e8f1ed;border:1px solid #45665a;border-radius:4px}
.nle-empty{color:#78968a;font-size:9.5px;font-style:italic}

/* Keep the two lanes aligned and bound the dock independently of map size. */
.workspace-top{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.canvas-label{min-width:0;flex:1 1 150px}
.canvas-label button{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.floor-bar,.audience-switch{flex-shrink:0}
.workspace-top .view-switch button{white-space:nowrap}
.inspector-env-box .mobile-dismiss{align-self:flex-end;float:none}
.inspector-env-toggle{display:none}
.timeline-dock-body{max-height:min(27dvh,260px)}
.timeline-track-scroll{max-height:inherit;overflow:auto;scrollbar-color:#5e8575 #172921}
.nle-timeline{grid-template-columns:104px;grid-auto-columns:174px;grid-template-rows:26px minmax(48px,auto) minmax(52px,auto);column-gap:6px;row-gap:0}
.nle-col,.nle-track-headers{grid-row:1 / 4;grid-template-rows:subgrid;min-width:0}
.nle-track-headers{width:auto;min-width:0}
.nle-col.is-current{border-width:1px;outline:1px solid #f25f4c;outline-offset:-1px}
.nle-route-chip,.nle-unlock-chip{min-width:0;overflow-wrap:anywhere}
.nle-step-head{white-space:nowrap}
.timeline-meta{flex-wrap:wrap;gap:3px 10px}
.timeline-transport{flex-wrap:wrap}
.timeline-collapse-btn:hover{background:#29473c;color:#fff}
@media(max-width:1200px){.canvas-label{display:none}.workspace-top{padding:5px 9px}.floor-bar{margin:0 auto 0 0}.workspace-top .view-switch button{padding:3px 7px}}
@media(max-width:850px){
 .viewport-controls .inspector-env-toggle{display:inline-flex;width:auto;white-space:nowrap;border:1px solid var(--line);padding:3px 7px;font-size:10px}
 .inspector.env-open{display:block}
 .cam-rot-row{grid-template-columns:auto minmax(0,1fr) auto}
 .timeline-meta b{display:none}
}
@media(max-width:560px){
 .workspace.has-stage-timeline{height:82dvh;min-height:600px}
 .workspace.has-stage-timeline.timeline-is-collapsed{height:57dvh;min-height:350px}
 .workspace-top{min-height:44px}
 .workspace-top .view-switch button{font-size:10px;padding:3px 7px}
 .timeline-dock-bar{padding:6px 8px;gap:5px 8px}
 .timeline-transport{gap:4px}
 .timeline-transport button{padding:3px 7px}
 .timeline-meta{order:3;flex-basis:100%}
 .timeline-collapse-btn{margin-left:auto}
 .timeline-dock-body{max-height:220px}
 .timeline-track-scroll{padding:9px 8px}
 .viewport-controls{gap:1px;flex-wrap:wrap}
 .viewport-controls label{margin:0 4px}
 .inspector.env-open{max-height:460px}
}

/* おまかせ演出生成ボタン */
.stage-autogen-btn{background:linear-gradient(135deg,#245242 0%,#183d31 100%);border-color:#f6d78288;box-shadow:0 3px 10px #143c2c28}
.stage-autogen-btn:hover{background:linear-gradient(135deg,#1d4537 0%,#122e25 100%)}

/* タイムライン上部バーのクイック設定・書き出しボタン */
.timeline-quick-opts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.timeline-quick-opts label{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#bdd2c7;background:#1a2e28;padding:2px 6px;border-radius:5px;border:1px solid #2f4f44}
.timeline-quick-opts select{background:transparent;color:#f6d782;border:0;padding:2px 4px;font-size:10px;font-weight:700;min-height:22px}
.timeline-quick-opts select option{background:#182823;color:#fff}
.timeline-export-btn{min-height:26px;padding:2px 8px;font-size:10px;background:#243d35;color:#f6d782;border-color:#487262;border-radius:5px;font-weight:600}
.timeline-export-btn:hover{background:#315247;border-color:#f6d782}

/* タイムライン上のドラッグ＆ドロップ・追加コントロール */
.nle-unlock-chip[draggable="true"]{cursor:grab}
.nle-unlock-chip.is-dragging{opacity:.45;border-style:dashed}
.nle-col.is-drop-target{border-color:#f6d782!important;background:#29493e!important;box-shadow:inset 0 0 0 1.5px #f6d782}
.nle-unlock-head{display:flex;align-items:center;justify-content:space-between;gap:4px}
.nle-unlock-head button{min-height:18px;padding:0 4px;font-size:9px;background:#172822;color:#cfe0d8;border:1px solid #3c5e51;border-radius:3px}
.nle-add-room-select{width:100%;min-height:22px;padding:1px 4px;font-size:9.5px;background:#162822;color:#a8c8ba;border:1px dashed #3d6355;border-radius:4px;margin-top:2px;cursor:pointer}
.nle-add-room-select:hover{border-color:#f6d782;color:#f6d782}

/* タイムラインホバー時のマップ上リアルタイム発光ハイライト */
@keyframes stageHoverPulse{0%,100%{filter:drop-shadow(0 0 4px #f6d782) drop-shadow(0 0 10px #f25f4c)}50%{filter:drop-shadow(0 0 9px #f6d782) drop-shadow(0 0 16px #f25f4c)}}
.stage-hover-highlight{animation:stageHoverPulse .9s ease-in-out infinite;filter:drop-shadow(0 0 6px #f6d782)}
path.stage-hover-highlight{stroke:#f6d782!important;stroke-width:.14!important}

.stage-paused .shaft-active-pulse *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.stage-hover-highlight{animation:none}}

/* 3D視点調整カードのスライダー・ボタンの水平ライン完全統一 */
.cam-rot-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:8px}
.cam-rot-row button{height:28px;min-height:28px;padding:0 8px;font-size:10px;margin-bottom:1px}
.cam-sliders-row{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:10px}
.cam-slider-field{display:flex!important;flex-direction:column!important;gap:4px!important;margin:0;min-width:0}
.cam-slider-label{display:flex;align-items:baseline;justify-content:space-between;gap:4px;font-size:10px;font-weight:600;line-height:1.2;color:#214236}
.cam-slider-label output{font-size:10px;font-weight:700;color:var(--green);font-variant-numeric:tabular-nums}
.cam-slider-field input[type=range]{width:100%;height:18px;margin:0}

/* タイムライン上部バーの全ボタン・セレクトの高さ統一 (28px) */
.timeline-transport button,.timeline-quick-opts label,.timeline-export-btn,.timeline-collapse-btn{height:28px;min-height:28px;box-sizing:border-box}

/* Premiere Pro風 タイムコードルーラー＆秒数比例カラム幅 */
.nle-timeline{grid-template-columns:108px;grid-auto-columns:max-content;grid-template-rows:44px minmax(48px,auto) minmax(52px,auto)}
.nle-col.dur-short{width:168px}
.nle-col.dur-mid{width:196px}
.nle-col.dur-long{width:228px}
.nle-header-time{display:flex;flex-direction:column;justify-content:center;align-items:flex-start!important;gap:2px;background:#101d19}
.nle-header-time small{font-size:9.5px;color:#f6d782;font-variant-numeric:tabular-nums;font-weight:700}
.nle-step-head{flex-direction:column;align-items:stretch;justify-content:space-between;padding:0;min-height:44px;overflow:hidden}
.nle-time-ruler{display:flex;align-items:center;justify-content:space-between;padding:3px 7px 2px;background:repeating-linear-gradient(90deg,#ffffff14 0,#ffffff14 1px,transparent 1px,transparent 14px),#111e1a;border-bottom:1px solid #253d35;font-size:9px;font-variant-numeric:tabular-nums}
.nle-tc{color:#9ec4b2;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:600;letter-spacing:.02em}
.nle-dur{padding:0 5px;border-radius:3px;background:#233d34;color:#f6d782;font-weight:700;font-size:8.5px}
.nle-col.dur-long .nle-dur{background:#3a4f2c;color:#ffe28a}
.nle-step-title-row{display:flex;align-items:center;justify-content:space-between;padding:3px 8px 4px;width:100%}
[data-tl-jump]{touch-action:none;user-select:none;cursor:ew-resize}
.nle-track-headers{width:auto}

/* Three-language controls and wrapping for translated labels. */
.lang-switch{padding:2px;gap:2px;flex-shrink:0}
.lang-switch button{min-height:24px;padding:2px 7px;font-size:10px;font-weight:700;letter-spacing:.03em}
html:not([lang="ja"]) .tool-button b,html:not([lang="ja"]) .field,html:not([lang="ja"]) .stage-tool-card,html:not([lang="ja"]) .dungeon-banner-body{overflow-wrap:anywhere}
html:not([lang="ja"]) .brand b{font-size:14px}
html:not([lang="ja"]) .header-actions{flex-wrap:wrap}
html:not([lang="ja"]) .nle-step-title-row{gap:3px}
html:not([lang="ja"]) .nle-col.dur-short{width:186px}
html:not([lang="ja"]) .nle-col.dur-mid{width:218px}
html:not([lang="ja"]) .nle-col.dur-long{width:250px}
html:not([lang="ja"]) .nle-step-head{height:auto}
@media(max-width:560px){
 .lang-switch button{padding:2px 5px;font-size:9px;min-height:22px}
 .header-actions{flex-wrap:wrap}
}

/* Edition information and upgrade flow. */
.brand .edition-label{display:inline-block;padding:2px 5px;border:1px solid #b49b60;border-radius:4px;color:#68542d;font-size:8px;font-weight:700;letter-spacing:.06em}
.edition-pro-tag{display:inline-block;flex-shrink:0;padding:1px 5px;border:1px solid #c4aa70;border-radius:4px;color:#72561d;background:#fff6dc;font-size:9px;line-height:1.5;font-weight:700}
.edition-card,.edition-start{border:1px solid #d9cfb7;background:#faf7ef;border-radius:8px;padding:12px;display:grid;gap:8px;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.edition-card{margin-bottom:12px}.edition-start{margin-bottom:20px}.edition-start p{margin:0}
.edition-card button,.edition-start button{font-size:11px;white-space:normal;min-height:36px}
.edition-start button{justify-self:start}.edition-card b{color:#68542d}
.edition-panel-cta{margin-bottom:10px}
.edition-panel-cta button{width:100%;min-height:36px;padding:8px 10px;font-size:11px;line-height:1.5;white-space:normal}
#proDialog{width:min(600px,calc(100vw - 24px));max-height:90dvh;overflow:auto}
.pro-content{display:grid;gap:16px;line-height:1.8}.pro-content .dialog-heading{margin:0;gap:12px;align-items:flex-start}
.pro-content h2{margin-top:5px}.pro-content small{font-size:12px;color:#72561d}.pro-content .subtle{font-size:12px}
.pro-reason{padding:10px 12px;background:#edf2eb;border-radius:6px}.pro-reason:empty{display:none}
.pro-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pro-actions>*{min-width:0;text-align:center;white-space:normal;line-height:1.6}
.pro-shop{display:flex;align-items:center;justify-content:center;padding:10px;border:1px solid;border-radius:7px;text-decoration:none}
.edition-card button[data-open-pro],.edition-start button[data-open-pro],.edition-panel-cta button,.pro-content .pro-shop{background:#fc4d50;border-color:#fc4d50;color:#fff;font-weight:700}
.edition-card button[data-open-pro]:hover,.edition-start button[data-open-pro]:hover,.edition-panel-cta button:hover,.pro-content .pro-shop:hover{background:#e53c40;border-color:#e53c40}
#proSavedStatus{font-size:12px;color:#245242}#proSavedStatus:empty{display:none}
@media(max-width:560px){.pro-actions{grid-template-columns:1fr}.pro-content{padding:20px 16px}.edition-start button{justify-self:stretch}.brand .edition-label{font-size:7px;padding:1px 3px}}
