#modal:has(.story-devtools){width:min(1500px,98vw);height:min(94dvh,1100px);max-height:94dvh}#modal:has(.story-devtools) #modal-body{padding:12px;overflow:hidden;min-height:0;flex:1;display:flex}.story-devtools{min-width:0;min-height:0;display:flex;flex-direction:column;width:100%;font-size:13px;color:#dce8e5}.story-devtools button{font:inherit;white-space:normal;overflow-wrap:anywhere;padding:7px 9px}.story-devtools input,.story-devtools select,.story-devtools textarea{font:inherit;background:#0e2632;color:#e6efea;border:1px solid #4f7180;border-radius:2px;padding:9px;min-width:0;max-width:100%;width:100%}.story-devtools textarea{resize:vertical;line-height:1.8}.dev-toolbar{display:grid;grid-template-columns:minmax(170px,2fr) repeat(3,minmax(90px,1fr)) repeat(4,auto);gap:6px;align-items:center}.dev-notice,.dev-note{font-size:11px;line-height:1.7;color:#a7c2c8;margin:8px 0}.dev-tabs,.dev-actions{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0}.dev-tabs button[aria-selected=true]{background:#426167;color:#fff;border-color:#a4ddcc}.dev-status{margin:5px 0;min-height:18px;color:#a2e5cc;font-size:12px}.dev-error{color:#ffc7b1}.dev-body{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(300px,1.3fr);gap:12px;min-height:0;flex:1}.dev-navigation,.dev-inspector{min-width:0;overflow:auto;overscroll-behavior:contain;padding:9px;border:1px solid #375563;background:#112732}.dev-node{width:100%;text-align:left;font-size:11px!important;line-height:1.55;background:#223e4b}.dev-node.selected{background:#416168;border-color:#a4deca}.dev-node.current::before{content:'현재 · ';color:#c8eaa6}.dev-branch-head{display:flex;gap:4px;margin:4px 0}.dev-toggle{flex:0 0 28px;padding:4px!important}.dev-branch-head .dev-node{flex:1;min-width:0}.dev-children{border-left:1px solid #60808a;margin-left:11px;padding-left:9px}.dev-edge{margin:7px 0}.dev-edge-label{font-size:11px;color:#bed1be;display:block;overflow-wrap:anywhere}.dev-edge small{font-size:10px;line-height:1.5;color:#98abb6;display:block}.dev-edge.unavailable>.dev-edge-label{color:#bd9d83}.dev-reference{font-size:11px!important;color:#9ecacb!important;padding:4px 8px!important;background:#1b3643!important}.dev-count{font-size:11px;color:#a9c7c7}.dev-scene-heading h2{font-size:20px;margin:0;overflow-wrap:anywhere}.dev-scene-heading p{font-size:11px;margin:5px 0}.dev-section{border-top:1px solid #365666;padding:12px 0;margin-top:10px}.dev-section h3{font-size:14px!important;margin:0 0 10px!important;color:#a7dfd5!important}.dev-field{display:flex!important;flex-direction:column;gap:5px;margin:8px 0!important;font-size:12px!important}.dev-field>span{color:#bad4d5}.dev-choice,.dev-request,.dev-interaction{border:1px solid #3b5863;padding:8px;margin:8px 0;background:#17303d}.dev-choice small,.dev-interaction small{font-size:11px;color:#a5bdc3;display:block;overflow-wrap:anywhere}.dev-presentation{display:flow-root;border:1px solid #385968;padding:9px;margin:9px 0;overflow-wrap:anywhere}.dev-presentation p{font-size:11px!important;line-height:1.7!important;margin:5px 0!important}.dev-sample{float:left;max-width:130px;margin:0 12px 5px 0;text-align:center}.dev-sample canvas{position:static!important;inset:auto!important;width:64px!important;height:64px!important;display:block;margin:auto;image-rendering:auto;background:#29433e}.dev-sample figcaption{font-size:10px;max-width:125px;overflow-wrap:anywhere}.dev-json{font:10px/1.7 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;background:#0d222c;padding:10px;color:#b6d3d5}.dev-warning{color:#ebc39a!important}.dev-flag-row{display:grid;grid-template-columns:1fr auto;align-items:end;gap:6px}.dev-navigation details{font-size:11px;margin:10px 0}.dev-navigation summary,.dev-presentation summary{cursor:pointer;overflow-wrap:anywhere;font-size:11px}.dev-request p{white-space:pre-wrap;overflow-wrap:anywhere}.dev-inspector>p{font-size:12px!important}.story-devtools [hidden]{display:none!important}@media(max-width:1050px){.dev-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.dev-toolbar input{grid-column:span 2}.dev-body{grid-template-columns:minmax(200px,.8fr) minmax(260px,1.2fr)}}@media(max-width:650px){#modal:has(.story-devtools){width:100%;height:94dvh}.dev-body{grid-template-columns:1fr;grid-template-rows:minmax(130px,.45fr) minmax(230px,1fr)}.dev-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.dev-toolbar input{grid-column:span 3}.dev-toolbar button{font-size:10px}.dev-notice{max-height:42px;overflow:auto}.dev-navigation,.dev-inspector{padding:7px}.dev-flag-row{grid-template-columns:1fr}.dev-status{font-size:10px}.dev-tabs button{font-size:11px}.dev-children{padding-left:6px;margin-left:6px}}@media(max-height:480px){#modal:has(.story-devtools){height:96dvh;max-height:96dvh}#modal:has(.story-devtools) .modal-head{padding:6px 10px}.dev-notice{display:none}.dev-toolbar{grid-template-columns:minmax(120px,2fr) repeat(3,minmax(70px,1fr)) repeat(4,auto)}.dev-toolbar input{grid-column:auto}.dev-toolbar button{font-size:10px;padding:5px}.dev-body{grid-template-columns:minmax(190px,.8fr) minmax(240px,1.2fr);grid-template-rows:1fr}.dev-tabs,.dev-status{margin:3px 0}.dev-tabs button{padding:5px}.dev-scene-heading h2{font-size:16px}}

#modal-body .story-devtools p.dev-notice,#modal-body .story-devtools p.dev-note{font-size:11px;line-height:1.7}#modal-body .story-devtools .dev-scene-heading p{font-size:11px;line-height:1.6}@media(max-width:650px){#modal:has(.story-devtools) .modal-head{padding:12px 16px}.dev-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.dev-toolbar input{grid-column:span 4}.dev-toolbar select{grid-column:span 1}.dev-toolbar select:nth-of-type(3){grid-column:span 2}}
/* 2.6: readable local graph and a presentation board before editing fields. */
.dev-body{grid-template-columns:minmax(350px,1.2fr) minmax(320px,1fr)}
.dev-navigation{display:flex;flex-direction:column;gap:7px}.dev-count{margin:0}.dev-node-list{overflow:auto}.dev-node-list .dev-node{margin:3px 0}
.dev-graph-controls{display:flex;gap:4px;flex-wrap:wrap;align-items:center}.dev-graph-controls button{padding:6px 8px;font-size:11px}.dev-zoom-readout{font:11px ui-monospace,monospace;min-width:34px;text-align:center}.dev-graph-legend{font-size:10px!important;line-height:1.6!important;color:#b9cbc7;margin:0!important}.dev-graph-viewport{position:relative;overflow:auto;min-height:280px;flex:1;background-color:#0c1f29;background-image:radial-gradient(#284653 1px,transparent 1px);background-size:20px 20px;border:1px solid #385968;touch-action:pan-x pan-y;overscroll-behavior:contain;cursor:grab}.dev-graph-viewport:active{cursor:grabbing}.dev-graph-world{position:relative;min-width:100%;min-height:100%}.dev-graph-surface{position:relative;transform-origin:0 0}.dev-graph-lines{position:absolute;inset:0;pointer-events:none;overflow:visible}.dev-link{fill:none;stroke:#76d8cd;stroke-width:2}.dev-link-interaction{stroke:#e8bb72;stroke-width:3}.dev-link-rejoin{stroke:#bb9ee7;stroke-dasharray:8 4}.dev-link-return{stroke:#e797a6;stroke-dasharray:3 5}.dev-link.locked{opacity:.4}.dev-link-label{position:absolute;z-index:2;width:36px;height:28px;padding:2px!important;border-radius:20px;border:1px solid #76d8cd;background:#153d43!important;color:#d9fff4!important;font-size:10px!important}.dev-link-label-interaction{border-color:#e8bb72;background:#493b28!important}.dev-link-label-rejoin{border-color:#bb9ee7;background:#3d3155!important}.dev-link-label-return{border-color:#e797a6;background:#502e3b!important}
.story-devtools .dev-graph-card{position:absolute;width:214px;height:146px;padding:12px 10px!important;display:flex;align-items:flex-start;gap:7px;background:#203c4a;border:1px solid #527887;border-radius:7px;box-shadow:0 4px 15px #0005;text-align:left;overflow:hidden;z-index:3}.dev-graph-card.selected{border:2px solid #b0f1d6;background:#305b60;box-shadow:0 0 0 4px #89dcb31c}.dev-graph-card.current{border-color:#e2ca82}.dev-graph-card.current::before{content:none}.dev-card-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.dev-card-copy strong{font:600 11px/1.35 ui-monospace,monospace;overflow-wrap:anywhere;color:#effbf4}.dev-card-copy small{font-size:10px;color:#c3dbd8}.dev-card-copy>span{font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.dev-graph-card .dev-sample{float:none;width:42px;flex:0 0 42px;margin:0}.dev-graph-card .dev-sample canvas{width:40px!important;height:40px!important}.dev-graph-card .dev-sample figcaption{display:none}.dev-card-badge{position:absolute;bottom:5px;right:8px;font-size:9px;color:#c4f6d3}.dev-edge-inspector{background:#19333e;border-left:3px solid #90cdb9;padding:8px;font-size:11px;max-height:156px;overflow:auto;flex-shrink:0}.dev-edge-inspector p{font-size:10px!important;margin:4px 0!important;line-height:1.5!important;overflow-wrap:anywhere}.dev-edge-inspector button{font-size:10px;padding:4px 7px}.dev-all-connections{margin:0!important;max-height:180px;overflow:auto;flex-shrink:0}.dev-connection-row{display:block;width:100%;text-align:left;font-size:10px!important;margin:3px 0}.dev-overview{margin-top:10px;padding:12px 0}.dev-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:stretch}.dev-overview-grid>.dev-sample{float:none;max-width:none;margin:0;padding:5px;background:#183642;border:1px solid #385967}.dev-background-sample canvas{width:100%!important;height:88px!important;object-fit:contain}.dev-background-sample figcaption{max-width:none}.dev-overview-tile{border:1px solid #385967;background:#183642;padding:7px;min-width:0;display:flex;flex-direction:column;gap:4px;text-align:center}.dev-overview-tile .dev-sample{float:none;margin:0;max-width:none}.dev-overview-tile .dev-sample figcaption{max-width:none}.dev-overview-tile strong{font-size:11px}.dev-overview-tile small{font-size:9px;overflow-wrap:anywhere;color:#acc7c8}.dev-cue-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.dev-cue-chips>span{font-size:10px;background:#294650;border:1px solid #47646d;border-radius:4px;padding:4px 6px;overflow-wrap:anywhere}.dev-next-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.dev-next-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;background:#193941!important;min-width:0}.dev-next-card .dev-sample{float:none;max-width:100%;margin:0}.dev-next-card .dev-sample canvas{width:40px!important;height:40px!important}.dev-next-card .dev-sample figcaption{display:none}.dev-next-card strong{font-size:11px}.dev-next-card small{font-size:10px;line-height:1.5}.dev-overview h4{font-size:12px;margin:12px 0 7px}.dev-cinematic-strip{display:flex;flex-wrap:wrap;gap:5px;padding:8px 0}.dev-cinematic-strip>strong{width:100%;font-size:11px}.dev-cinematic-strip .dev-sample{float:none;margin:0;width:64px}.dev-mobile-views{display:none}.dev-inspector{scroll-behavior:auto}.story-devtools button:focus-visible,.story-devtools [tabindex]:focus-visible{outline:2px solid #e9d690;outline-offset:2px}
@media(max-width:1050px){.dev-body{grid-template-columns:minmax(300px,1fr) minmax(280px,1fr)}.dev-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dev-mobile-views{display:flex;gap:4px;margin-left:auto}.dev-mobile-views button{font-size:10px}.dev-mobile-views button[aria-pressed=true]{background:#426167;border-color:#a4ddcc}.dev-tabs{flex-wrap:wrap}.dev-body{display:flex;min-height:0}.dev-navigation,.dev-inspector{width:100%;min-height:0}.story-devtools[data-mobile-view=graph] .dev-inspector{display:none}.story-devtools[data-mobile-view=detail] .dev-navigation{display:none}.dev-graph-viewport{min-height:160px}.dev-graph-controls button{font-size:10px;padding:5px}.dev-toolbar{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.dev-toolbar input{grid-column:span 4}.dev-toolbar select{grid-column:span 1}.dev-toolbar select:nth-of-type(3){grid-column:span 2}.dev-toolbar button{padding:5px;font-size:10px}.dev-notice{display:none}.dev-status{font-size:10px;min-height:13px;margin:2px 0}.dev-next-previews{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-edge-inspector{max-height:115px}.dev-toolbar>.dev-range-editor{grid-column:span 2}}
@media(max-width:700px) and (max-height:480px){.dev-toolbar{grid-template-columns:minmax(100px,2fr) repeat(3,minmax(65px,1fr)) repeat(3,auto)}.dev-toolbar input,.dev-toolbar select,.dev-toolbar select:nth-of-type(3){grid-column:auto}.dev-toolbar>button:nth-last-child(3),.dev-toolbar>button:nth-last-child(2){display:none}.dev-toolbar>.dev-range-editor{grid-column:auto}.dev-tabs button{padding:4px}.dev-graph-viewport{min-height:90px}.dev-edge-inspector{max-height:65px}.dev-graph-legend{display:none}.dev-graph-controls button{padding:3px 6px}.dev-count{font-size:10px}.dev-navigation{gap:4px;padding:5px}.dev-all-connections{max-height:80px}.dev-mobile-views{margin-left:4px}}
.dev-toolbar{grid-template-columns:minmax(170px,2fr) auto repeat(5,auto)}.dev-filter-box{position:relative;align-self:center}.dev-filter-box summary{cursor:pointer;border:1px solid #4f7180;padding:10px 14px;font-size:11px;background:#203b48}.dev-filter-box[open]{z-index:12}.dev-filter-box[open] .dev-field{position:absolute;left:0;top:32px;width:210px;padding:10px;background:#18323e;border:1px solid #4f7180}.dev-filter-box[open] .dev-field:nth-of-type(2){top:111px}.dev-filter-box[open] .dev-field:nth-of-type(3){top:190px}.dev-link-label{width:26px}.dev-overview .dev-enlarge{font-size:9px;padding:3px 5px;margin-top:4px}.dev-art-dialog{max-width:90vw;max-height:90dvh;overflow:auto;color:#e1eee9;background:#112b36;border:1px solid #91c7b2;padding:18px}.dev-art-dialog::backdrop{background:#000b}.dev-art-dialog h3{font-size:16px}.dev-art-dialog p{font:11px ui-monospace,monospace;overflow-wrap:anywhere}.dev-art-dialog canvas{position:static!important;inset:auto!important;display:block;image-rendering:auto;width:auto!important;height:auto!important;min-width:128px;max-width:80vw;max-height:65dvh;object-fit:contain;background:#243f43;margin:12px auto}
@media(max-width:700px){.dev-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.dev-toolbar>input{grid-column:span 4}.dev-toolbar .dev-range-editor{grid-column:span 1}.dev-toolbar .dev-expand-all,.dev-toolbar .dev-collapse-all{display:none}.dev-filter-box summary{padding:8px;font-size:10px}.dev-filter-box{width:100%}.dev-toolbar>button{min-height:34px}.dev-mobile-views{margin-left:0}.dev-tabs{gap:4px}.dev-notice{display:none}}
@media(max-width:700px) and (max-height:480px){.dev-toolbar{grid-template-columns:minmax(120px,2fr) auto auto auto auto}.dev-toolbar>input,.dev-toolbar .dev-range-editor{grid-column:auto}.dev-toolbar>.dev-range-editor{display:block!important}.dev-toolbar>button:nth-last-child(2){display:block}.dev-toolbar .dev-expand-all,.dev-toolbar .dev-collapse-all{display:none!important}.dev-graph-viewport{min-height:145px}.dev-count{display:none}.dev-graph-controls{gap:3px}.dev-edge-inspector{display:none}.dev-edge-inspector.has-selection{display:block;position:absolute;bottom:10px;left:30px;right:30px;z-index:6;max-height:105px}.dev-all-connections{max-height:80px}.dev-body{overflow:hidden}.dev-navigation{overflow:auto}.dev-filter-box summary{padding:11px 7px}.dev-tabs{margin:3px 0}.dev-status:empty{display:none}#modal:has(.story-devtools) .modal-head h2{font-size:16px}}
@media(min-width:1051px){.dev-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* 2.7 all-direction animation inspector. */
.dev-animation-dialog{width:min(1100px,94vw);max-width:94vw;box-sizing:border-box}.dev-animation-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.dev-animation-controls .dev-field{min-width:100px}.dev-animation-controls select{width:100%}.dev-art-dialog.dev-animation-dialog canvas.dev-animation-main{width:240px!important;height:240px!important;min-width:0;max-height:none;max-width:100%;background:#284448}.dev-animation-dialog input[type=range]{width:100%;padding:0}.dev-animation-grid{display:flex;flex-direction:column;gap:10px}.dev-animation-direction h4{margin:5px 0}.dev-animation-frames{display:flex;gap:5px;flex-wrap:wrap}.dev-animation-frame{width:94px;padding:5px!important;display:flex;flex-direction:column;align-items:center;gap:4px;background:#203e49}.dev-animation-frame[aria-pressed=true]{border:2px solid #e7d290;background:#47635f}.dev-art-dialog .dev-animation-frame canvas{width:80px!important;height:96px!important;min-width:0!important;max-width:100%;max-height:none;margin:0}.dev-animation-frame span{font-size:10px}.dev-animation-frame small{font-size:9px;overflow-wrap:anywhere;max-width:100%}.dev-animation-readout{white-space:normal;font-size:10px!important}.dev-animation-dialog::backdrop{background:#000c}@media(max-width:700px){.dev-animation-dialog{padding:10px;max-height:94dvh}.dev-animation-controls{gap:5px}.dev-animation-controls .dev-field{min-width:75px;max-width:110px}.dev-animation-frame{width:78px}.dev-art-dialog .dev-animation-frame canvas{width:64px!important;height:80px!important}.dev-animation-dialog .dev-animation-controls button{min-height:38px}}

.dev-animation-heading{display:flex;align-items:center;gap:10px;position:sticky;top:-18px;background:#112b36;z-index:3;border-bottom:1px solid #45636e;margin-bottom:12px}.dev-animation-heading h3{margin-right:auto}.dev-animation-heading button{flex-shrink:0}@media(max-width:700px){.dev-animation-heading{top:-10px}.dev-animation-heading h3{font-size:13px}.dev-animation-heading button{font-size:11px}}
/* Desktop authoring workspace: graph first, inspector alongside. */
#modal:has(.story-devtools){width:98vw;height:96vh;max-height:96vh;max-width:none}.story-devtools .dev-body{grid-template-columns:minmax(0,1fr) 420px;gap:12px}.story-devtools .dev-navigation{display:flex;flex-direction:column;overflow:hidden;padding:10px}.story-devtools .dev-inspector{overflow:auto}.story-devtools .dev-graph-viewport{height:auto!important;min-height:300px;flex:1;overflow:auto;position:relative;background-color:#0b202a;background-image:radial-gradient(#426371 1px,transparent 1px);background-size:24px 24px}.story-devtools .dev-graph-world{position:relative;flex-shrink:0}.story-devtools .dev-graph-surface{position:relative;transform-origin:0 0}.story-devtools .dev-graph-card{width:280px!important;height:190px!important;padding:10px!important;box-sizing:border-box;overflow:hidden;display:block;border-width:2px;border-left-width:6px;background:#193541}.story-devtools .dev-graph-card .dev-card-copy{display:flex;flex-direction:column;gap:4px;font-size:12px}.story-devtools .dev-graph-card .dev-card-copy>span{display:block;max-height:48px;overflow:hidden;line-height:1.6}.story-devtools .dev-graph-card small{font-size:10px;line-height:1.6}.story-devtools .dev-graph-card[data-type=dialogue]{border-color:#73abc6}.story-devtools .dev-graph-card[data-type=branch]{border-color:#efcf79;background:#3e3827}.story-devtools .dev-graph-card[data-type=explore]{border-color:#73c7ad}.story-devtools .dev-graph-card[data-type=ending]{border-color:#c69ae2;background:#342b45}.story-devtools .dev-kind-label{font-weight:700;color:#e4f4e9}.story-devtools .dev-graph-card .dev-sample{float:right;margin:0 0 3px 7px;max-width:64px}.story-devtools .dev-graph-card figcaption{display:none}.story-devtools .dev-card-badge{bottom:3px;right:5px;font-size:9px}.story-devtools .dev-link-label{min-width:28px;max-width:40px;padding:3px!important;font-size:10px!important;line-height:16px;background:#294450;z-index:2}.story-devtools .dev-story-summary{display:flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:11px;margin:4px 0 8px}.story-devtools .dev-story-summary button{font-size:10px;padding:5px}.story-devtools .dev-graph-legend{margin:5px 0;font-size:11px}.story-devtools .dev-graph-controls{display:flex;flex-wrap:wrap;gap:5px}.story-devtools .dev-all-connections{flex-shrink:0;max-height:110px;overflow:auto;margin:5px 0}.story-devtools .dev-edge-inspector{max-height:120px;overflow:auto;font-size:11px}.story-devtools.dev-canvas-wide .dev-body{grid-template-columns:minmax(0,1fr)}.story-devtools.dev-canvas-wide .dev-inspector{display:none}.story-devtools .dev-toolbar{display:flex;flex-wrap:wrap}.story-devtools .dev-toolbar>input{flex:1;min-width:220px}.story-devtools .dev-filter-box{min-width:85px}.story-devtools .dev-graph-card.selected{box-shadow:0 0 0 3px #d9f2c6}.story-devtools .dev-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-devtools .dev-preview-dirty{background:#493c24;color:#f2dd98;padding:8px}.story-devtools .dev-json-editor{font:11px/1.7 ui-monospace,monospace;min-height:140px}.story-devtools .dev-count{margin:2px 0}.story-devtools .dev-node-list{overflow:auto}.story-devtools .dev-graph-minimap{position:static!important;inset:auto!important;width:240px!important;height:110px!important;image-rendering:auto;background:#071922;border:1px solid #4e7081;cursor:crosshair;flex-shrink:0;align-self:flex-end;margin-top:4px}
.story-devtools input[type=checkbox]{width:auto;align-self:flex-start}
