:root{--bg:#f5f6f2;--panel:#fff;--panel2:#f0f2ed;--line:#e0e5db;--txt:#28362e;--sub:#667366;--accent:#38634c;--accent-ink:#fff;--accent2:#48738b;--card:#fff;--card2:#f5f7f2;--ok:#386d50;--warn:#a44838;--doc2:#fff;--font-ui:"Segoe UI","Yu Gothic UI","Meiryo",system-ui,sans-serif;--font-mono:Consolas,ui-monospace,monospace;--shadow:0 8px 32px #263b2914}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#c9d1c5 transparent}[hidden]{display:none!important}html,body{margin:0;height:100%;overflow:hidden}body{font:13px/1.5 var(--font-ui);background:var(--bg);color:var(--txt)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--txt);cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;white-space:nowrap}button:hover:not(:disabled){background:#edf2e9;border-color:#b6c4b1}button:disabled{opacity:.45;cursor:default}button.primary,.slot-actions .adopt{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600}button.primary:hover:not(:disabled),.slot-actions .adopt:hover{background:#294e39;border-color:#294e39}button.subtle{background:transparent;border-color:transparent;color:var(--sub)}button.reject,.danger{color:var(--warn)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,select,textarea{color:var(--txt);accent-color:var(--accent)}button .icon{pointer-events:none}.icon{width:17px;height:17px;stroke-width:1.7;flex-shrink:0;vertical-align:middle}.icon-button{width:34px;min-height:34px;padding:7px;background:transparent;border-color:transparent}.sp{flex:1}.app{display:flex;height:100vh;height:100dvh}.sidebar{width:226px;flex:0 0 226px;padding:29px 16px 14px;background:#edf0e8;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto}.brand{display:flex;gap:10px;align-items:center;margin:0 12px 45px;text-decoration:none;color:var(--txt);font-size:27px;font-weight:650;letter-spacing:-1px}.logo{display:grid;place-items:center;color:var(--accent);width:32px;height:38px}.logo .icon{width:30px;height:30px;stroke-width:1.5}.brand-caption{display:block;margin-top:0;font-size:8px;letter-spacing:1.65px;font-weight:600;color:var(--sub)}.ver{align-self:flex-start;font-size:11px;color:var(--sub);border:1px solid #c9d2c2;border-radius:4px;padding:0 5px;margin-top:8px;letter-spacing:0}.sidebar-label{padding:0 12px;margin-bottom:12px;font-size:10px;letter-spacing:1px;font-weight:600;color:#778373}.viewswitch{display:flex;flex-direction:column;gap:5px}.viewswitch .vseg{justify-content:flex-start;min-height:43px;padding:10px 12px;background:transparent;border-color:transparent;color:#5d6b5c;font-size:12px}.viewswitch .vseg.active{background:#dce6d7;color:#31573d;font-weight:650;border-color:#d6e0d0}.viewswitch .vseg:hover{background:#e2e8dc}.viewswitch .vseg .icon{width:18px;height:18px}.nav-count{margin-left:auto;font-size:10px;background:#ffffff8a;border-radius:4px;min-width:20px;text-align:center;padding:1px 4px}.mode-label{margin-top:34px}.modeswitch{display:flex;border:1px solid #d8dfd1;border-radius:7px;background:#e4e9de;padding:3px;margin:0 10px}.modeswitch .seg{flex:1;padding:5px 8px;min-height:29px;font-size:11px;background:transparent;border-color:transparent;color:var(--sub)}.modeswitch .seg.active{background:#fff;border-color:#dce2d6;color:var(--txt);box-shadow:0 1px 2px #263b2908}.dormant{font-size:10px;line-height:1.6;color:var(--sub);margin:10px 12px 0}.project-progress{margin:29px 12px;padding-top:21px;border-top:1px solid #d9e0d1}.progress-heading{display:flex;justify-content:space-between;font-size:11px;color:var(--sub)}#progressValue{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:600}.progress-track{height:5px;margin:12px 0;background:#dce3d6;border-radius:8px;overflow:hidden}.progress-track span{display:block;height:100%;width:0;background:#688861;transition:width .2s}.project-progress p{font-size:10px;color:#7a8575;margin:9px 0}.sidebar-bottom{margin-top:auto}.sidebar-action{display:flex;justify-content:flex-start;gap:9px;width:100%;min-height:35px;padding:7px 12px;background:none;border:0;color:var(--sub);font-size:11px;text-align:left}.sidebar-action .icon{width:15px;height:15px}.sidebar-footer{display:flex;justify-content:space-between;align-items:center;margin:17px 12px 0;padding-top:15px;border-top:1px solid #d9e0d1;font-size:10px;color:var(--sub)}.version-label{font-size:9px;margin-left:3px}.mode-badge{font-size:9px;display:flex;align-items:center;gap:5px}.mode-badge:before{content:"";width:5px;height:5px;background:#7d8b75;border-radius:50%}.mode-badge.on:before{background:#477857}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:12px;min-height:68px;padding:0 32px;border-bottom:1px solid var(--line);background:#fcfcfa}.topbar button{font-size:12px}.project-identity{display:flex;align-items:center;gap:10px;min-width:0}.project-identity>.icon{color:#809078}.project-identity input{width:190px;min-width:0;padding:7px 0;border:1px solid transparent;border-radius:4px;background:transparent;font-size:13px;font-weight:600;text-overflow:ellipsis}.project-identity input:hover{border-bottom-color:#b7c4ae}.project-pencil{width:12px!important;opacity:.55}.save-status{display:inline-flex;align-items:center;gap:5px;color:#71816b;font-size:10px;white-space:nowrap}.save-status .icon{width:13px;height:13px}.save-status.error{color:var(--warn)}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:30px 36px 24px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:650;color:#88947c;margin-bottom:7px}h1{font-size:25px;font-weight:650;letter-spacing:1px;margin:0;line-height:1.5}.workspace-heading p{font-size:12px;color:var(--sub);margin:7px 0 0}.workspace-heading .primary{min-height:40px;padding:9px 15px;font-size:12px}.workspace-heading .primary .icon:last-child{width:13px;margin-left:8px}.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 36px 17px;border-bottom:1px solid var(--line)}.filter-tabs{display:flex;gap:4px;align-items:center}.filter-tabs button{border:0;background:transparent;min-height:32px;padding:6px 10px;color:var(--sub);font-size:11px;gap:6px}.filter-tabs button.active{background:#e4ebdf;color:#35583d;font-weight:600}.filter-tabs button>span:last-child:not(.status-dot){font-size:10px;opacity:.8;margin-left:3px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex-shrink:0}.status-dot.empty{background:#8b9786}.status-dot.proposed{background:#b98739}.status-dot.confirmed{background:#548167}.board-tools{display:flex;align-items:center;gap:12px}.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fcfdfa;border-radius:6px;padding:0 9px;min-height:33px}.search-box .icon{color:#85907e;width:14px;height:14px}.search-box input{width:126px;min-width:0;border:0;outline:none;background:none;font-size:11px}.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #38634c18}.search-box input:focus-visible{outline:none}kbd{font:10px var(--font-mono);border:1px solid #dce2d5;border-radius:3px;padding:2px 5px;background:#f7f9f4;color:var(--sub)}.layout-switch{display:flex;border:1px solid var(--line);border-radius:6px;background:#edf1e8;padding:2px;gap:1px}.layout-switch button{min-height:27px;width:29px;padding:4px;border:0;background:transparent;color:#7b8973;border-radius:4px}.layout-switch button.active{background:#fff;color:var(--accent);box-shadow:0 1px 3px #263b2912}.layout-switch .icon{width:15px;height:15px}.chk{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:var(--sub);white-space:nowrap}.chk input{margin:0}.main{flex:1;position:relative;min-height:0}.viewsec{position:absolute;inset:0;overflow:auto}.viewsec.board{background:radial-gradient(#dce3d5 .75px,transparent .75px) 0 0/20px 20px,var(--bg)}.canvas{position:relative;width:2400px;min-height:1500px}.card-selection-rect{position:fixed;z-index:90;border:1px dashed #365f91;background:#789ac02b;pointer-events:none;box-sizing:border-box}.card-selection-surface .multi-selected{outline:2px solid #466e9b;outline-offset:2px;box-shadow:0 0 0 4px #789ac024}.selecting-cards,.selecting-cards *{user-select:none!important;cursor:crosshair!important}.card-selection-surface:focus-visible{outline:2px solid #466e9b;outline-offset:-2px}.grid-view .canvas{display:grid;grid-template-columns:repeat(auto-fill,minmax(244px,1fr));align-items:start;gap:20px;width:100%;min-height:0;padding:26px 36px 44px}.board-empty{padding:70px 24px;text-align:center;color:var(--sub)}.board-empty>.icon{width:32px;height:32px;color:#93a08b;margin-bottom:10px}.board-empty h2{font-size:17px;font-weight:600;color:var(--txt)}.board-empty p{font-size:12px;margin-bottom:20px}.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:35px;padding:7px 26px;background:#fcfcfa;border-top:1px solid var(--line);color:#788470;font-size:10px}.workspace-footer>span:first-child{display:flex;align-items:center;gap:7px}.workspace-footer .icon{width:13px;height:13px}.workspace-footer>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.slot{position:absolute;width:236px;background:var(--card);border:1px solid #dce3d7;border-radius:10px;box-shadow:0 2px 4px #263b2904;overflow:hidden;user-select:none;transition:border-color .15s,box-shadow .15s}.slot.is-arriving{outline:2px solid var(--accent);outline-offset:2px}.grid-view .slot{position:relative;left:auto!important;top:auto!important;width:100%;min-height:218px;display:flex;flex-direction:column}.slot:hover{border-color:#b6c5ad;box-shadow:0 5px 16px #263b2909}.slot.st-proposed{border-color:#d7bf92;background:#fffdf8}.slot.st-editing{border-color:var(--accent);box-shadow:0 0 0 2px #38634c15;z-index:10}.slot.dragging{z-index:50;box-shadow:var(--shadow);opacity:.92}.slot-head{display:flex;align-items:center;gap:9px;padding:17px 16px 12px;cursor:grab;touch-action:none}.grid-view .slot-head{cursor:default;touch-action:auto}.kind-badge{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;background:#edf2e8;border-radius:8px;color:#67815e}.kind-badge .icon{width:17px;height:17px}.slot[data-kind=character] .kind-badge{background:#eaf0f3;color:#618294}.slot[data-kind=scene] .kind-badge{background:#f3ede4;color:#a08a60}.slot[data-kind=tone] .kind-badge{background:#f1edf3;color:#8a7692}.slot-title{flex:1;font-weight:650;font-size:13px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text;border-radius:3px}.slot-title:focus{outline:2px solid #91ab81;white-space:normal}.slot-x{width:24px;min-height:26px;flex-shrink:0;border:0;background:transparent;color:#899582;padding:4px;opacity:.65}.slot-x .icon{width:14px;height:14px}.slot-x:hover{color:var(--warn);opacity:1}.ord-badge,.ai-badge,.link-badge{font-size:9px;padding:2px 4px;white-space:nowrap;border-radius:4px;color:#8d6c2f;background:#f7eedc}.link-badge{color:var(--accent2);background:#eaf1f4}.card-meta{display:flex;align-items:center;gap:6px;color:#73826a;font-size:10px;padding:0 17px 8px}.st-proposed .card-meta{color:#9b7332}.card-category{margin-left:auto;font-size:9px;color:#89917f}.slot-body{padding:6px 17px 18px;font-size:12px;line-height:1.75;flex:1;max-height:285px;overflow:auto}.st-editing .slot-body{max-height:440px}.slot-empty-note{color:#7d8875;font-size:11px;line-height:1.9;min-height:41px}.slot-actions{display:flex;gap:6px;margin:0 16px;padding:12px 0 14px;border-top:1px solid #edf0e8}.slot-actions button{flex:1;font-size:10px;min-height:31px;padding:5px 6px}.slot-actions button .icon{width:13px;height:13px}.slot-actions .write{color:#41603a;background:#f2f6ee;border-color:#dce5d4}.slot-actions .example{border-color:transparent;background:transparent;color:#828977}.field{display:flex;flex-direction:column;gap:1px;padding:3px 0 6px}.field .fk{font-size:10px;color:#87917e}.field .fv{color:#485440;min-width:0;word-break:break-word}.field .fv.empty{color:#929b8b}.f-edit,.insp-f{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.f-edit label,.insp-f label,.f-img-l{font-size:11px;color:var(--sub)}.f-edit input,.f-edit textarea,.f-edit select,.insp-f input,.insp-f textarea,.insp-f select{width:100%;padding:8px 9px;border:1px solid #d7dfd0;border-radius:5px;background:#fcfdfa;line-height:1.6;font-size:12px}.f-edit textarea,.insp-f textarea{resize:vertical;min-height:76px}.f-edit input:focus,.f-edit textarea:focus,.f-edit select:focus,.insp-f input:focus,.insp-f textarea:focus,.insp-f select:focus{border-color:var(--accent)}.card-thumb-frame{position:relative;width:100%;height:132px;overflow:hidden;border-radius:5px;background:#e8ebe7}.card-thumb{position:absolute;display:block;max-width:none;max-height:none}.f-img{margin-bottom:12px}.f-img-l{display:block;margin-bottom:6px}.img-pick{display:flex;flex-direction:column;gap:7px}.img-prev{min-height:60px;padding:6px;border:1px dashed var(--line);border-radius:5px;display:flex;align-items:center;justify-content:center;background:var(--bg)}.img-prev img{max-width:100%;max-height:140px}.img-empty{font-size:11px;color:var(--sub)}.img-btns{display:flex;gap:6px}.img-btns button{font-size:11px;min-height:30px}.st-confirmed .card-meta .status-dot{background:var(--ok)}.st-editing .card-meta .status-dot{background:var(--accent2)}body.dragging-card,body.dragging-card .slot-head,body.dragging-card .slot-title{cursor:grabbing;user-select:none}.menu-wrap{position:relative}.dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:70;width:250px;max-height:65vh;overflow:auto;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.dropdown button{display:flex;width:100%;justify-content:flex-start;border:0;background:transparent;gap:11px;padding:8px;font-size:12px}.dropdown .kind-badge{width:27px;height:27px;flex-basis:27px}.dd-head{padding:7px 9px;color:#8b977f;font-size:10px;letter-spacing:1px}.dd-sep{border-top:1px solid var(--line);margin:6px}.ctx-menu{position:fixed;z-index:80;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:5px;box-shadow:var(--shadow)}.ctx-menu button{display:block;width:100%;text-align:left;background:transparent;border:0;font-size:12px}.output-backdrop{position:fixed;inset:0;background:#273a2d30;z-index:89;backdrop-filter:blur(2px)}.drawer{position:fixed;right:0;top:0;bottom:0;width:560px;max-width:94vw;background:var(--panel);border-left:1px solid var(--line);z-index:90;display:flex;flex-direction:column;box-shadow:var(--shadow)}.drawer-head{display:flex;align-items:center;gap:12px;padding:23px 24px;border-bottom:1px solid var(--line);font-weight:600;font-size:15px}.drawer-description{font-size:12px;color:var(--sub);padding:0 24px;margin:19px 0}.drawer-body{flex:1;overflow:auto;margin:0 24px;padding:18px;background:var(--bg);border:1px solid var(--line);border-radius:7px;font:12px/1.9 var(--font-mono);white-space:pre-wrap;word-break:break-word}.drawer-actions{display:flex;justify-content:flex-end;gap:10px;padding:22px 24px}.toast{position:fixed;bottom:54px;left:50%;transform:translate(-50%);background:#2f4435;color:#fff;border-radius:8px;padding:12px 18px;font-size:12px;opacity:0;transition:opacity .15s;pointer-events:none;z-index:110;box-shadow:var(--shadow);max-width:calc(100vw - 32px)}.toast.show{opacity:1;pointer-events:auto}.toast button{min-height:25px;padding:2px 8px;margin-left:12px;background:transparent;border-color:#91a58a;color:#fff;font-size:11px}.rel-backdrop{position:absolute;inset:0;z-index:55;background:#263c2d33}.rel-drawer{position:absolute;inset:0 0 0 auto;z-index:56;width:min(960px,96vw);background:var(--bg);border-left:1px solid var(--line);display:flex;flex-direction:column;box-shadow:var(--shadow)}.rel-drawer.full{left:0;width:auto;border-left:0;box-shadow:none}.rel-drawer-head,.tl-toolbar,.ms-toolbar,.cr-toolbar{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:14px 24px;border-bottom:1px solid var(--line);background:#fcfcfa;min-height:63px}.rel-drawer-title{font-weight:600;font-size:12px;margin-right:6px}.rel-hint,.rel-guide{font-size:11px;color:var(--sub)}.rel-guide{padding:10px 25px;background:#eef3e9;border-bottom:1px solid var(--line)}.rel-main,.tl-main{flex:1;min-height:0;display:flex}.rel-scroll,.tl-scroll{flex:1;min-width:0;overflow:auto;position:relative}.rel-canvas{position:relative;width:2000px;height:1400px;background:radial-gradient(#d3dccb .8px,transparent .8px) 0 0/22px 22px,var(--bg)}.rel-extent{position:relative;overflow:hidden;min-width:100%;min-height:100%}.rel-extent .rel-canvas{position:absolute;left:0;top:0;transform-origin:0 0}.rel-scroll.is-panning,.rel-scroll.is-panning *{cursor:grabbing!important;user-select:none!important}#relZoomReset{min-width:48px;font-variant-numeric:tabular-nums}#relSvg,#relNodes{position:absolute;inset:0;width:100%;height:100%}#relSvg,#relNodes{pointer-events:none}.rel-node,.rel-rnode{pointer-events:auto;position:absolute;transform:translate(-50%,-50%);cursor:grab;user-select:none;touch-action:none}.rel-node{min-width:140px;max-width:190px;background:#fff;border:1px solid #cddac5;border-radius:9px;padding:13px 15px;text-align:center;box-shadow:0 3px 9px #263b2908;z-index:3;overflow:hidden}.rn-name{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rn-role{font-size:10px;color:var(--sub);margin-top:5px}.rn-traits{font-size:10px;color:var(--sub);margin-top:6px;max-height:70px;overflow:auto;white-space:normal;text-align:left}.rn-thumb{position:relative;height:100px;margin:-13px -15px 10px;overflow:hidden;background:#e8ebe7}.rn-thumb img{position:absolute;display:block;max-width:none;max-height:none}.rel-node.sel,.rel-rnode.sel,.rel-node.connect-src{border-color:var(--accent);box-shadow:0 0 0 3px #38634c24}.rel-rnode{z-index:2;background:#fff;border:1px solid var(--line);border-left:3px solid var(--rc,var(--sub));border-radius:5px;padding:5px 10px;max-width:170px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rr-label{pointer-events:none}.rel-edge-line{stroke:var(--sub);stroke-width:1.5;fill:none}.rel-empty{position:absolute;top:140px;left:200px;width:400px;text-align:center;color:var(--sub);line-height:2;font-size:13px}.rel-inspector,.tl-inspector{flex:0 0 290px;width:290px;overflow:auto;background:#fff;border-left:1px solid var(--line);padding:20px}.insp-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid var(--line)}.insp-title{font-size:14px;font-weight:600}.insp-x{font-size:10px;min-height:28px;padding:4px 8px}.insp-pair{font-size:13px;margin-bottom:20px}.insp-dir-glyph{color:var(--accent);padding:0 5px}.insp-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:14px;margin-top:10px;border-top:1px solid var(--line)}.insp-actions button{font-size:11px}#btnLink.armed{background:#e1ecdb;border-color:var(--accent);color:var(--accent)}body.connecting .rel-node{cursor:crosshair}body.connecting .rel-rnode{pointer-events:none;opacity:.5}#tlstage,#msstage{display:flex;flex-direction:column;overflow:hidden}.tl-grid{position:relative;min-width:100%;min-height:100%}.tl-ruler-tick{position:absolute;top:0;height:28px;display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--sub);border-left:1px solid var(--line);background:#eef2e9}.tl-lane{position:absolute;left:0;border-top:1px solid var(--line)}.tl-lane.alt{background:#eaf0e33d}.tl-lane-label{position:absolute;left:0;z-index:2;display:flex;align-items:center;gap:5px;padding:0 12px;background:#f6f8f2;border-top:1px solid var(--line);border-right:1px solid var(--line);font-size:11px}.tl-lane-label.moving{opacity:.65}.tl-lane-label.drop-target{box-shadow:inset 0 3px #56866a;background:#e3eee5}.tl-lane-grip{display:grid;place-items:center;flex:0 0 22px;width:22px;height:28px;padding:0;border:0;background:transparent;color:#68796b;cursor:grab;touch-action:none}.tl-lane-grip:active{cursor:grabbing}.tl-lane-grip .icon{width:15px;height:15px}.tl-lane-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text}.tl-trk-x{padding:0;min-height:24px;width:20px;border:0;background:none;color:var(--sub)}.tl-corner{position:absolute;top:0;left:0;height:28px;z-index:3;background:#eef2e9;border-right:1px solid var(--line)}.tl-scene{position:absolute;z-index:4;background:#fff;border:1px solid #d7e0d0;border-left:3px solid #88a178;border-radius:6px;padding:9px 10px;overflow:hidden;cursor:grab;user-select:none;touch-action:none}.tl-scene.sel{box-shadow:0 0 0 2px #69865b}.tl-scene-title{display:block;width:100%;padding:2px 3px;margin:-2px -3px 0;border:1px solid transparent;border-radius:3px;background:transparent;color:inherit;font-size:12px;font-weight:600;font-family:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text;user-select:text;touch-action:auto}.tl-scene-title:hover,.tl-scene-title:focus{border-color:#a9bfa9;background:#fff;outline:none;text-overflow:clip}.tl-scene-sum{font-size:10px;color:var(--sub);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-total{font-size:11px;color:var(--sub);font-variant-numeric:tabular-nums}.ms-main{flex:1;min-height:0;display:flex}.ms-list{width:208px;flex:0 0 208px;overflow:auto;background:#f8faf5;border-right:1px solid var(--line);padding:14px 10px}.ms-list:before{content:"シーン一覧";display:block;color:#859078;font-size:10px;padding:2px 10px 12px;letter-spacing:1px}.ms-item{display:block;width:100%;text-align:left;white-space:normal;padding:12px 11px;margin-bottom:6px;cursor:pointer;border:1px solid transparent;background:transparent;border-radius:7px}.ms-item:hover{background:#eef3e9}.ms-item.active{background:#e9f0e3;border-color:#d7e2ce}.ms-item-title{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ms-item-sub{display:flex;gap:8px;justify-content:space-between;margin-top:6px}.ms-item-snip{font-size:10px;color:#859078;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.ms-item-cnt{font-size:10px;color:var(--sub);flex-shrink:0}.ms-empty,.ms-ref-empty{padding:18px 10px;font-size:12px;line-height:1.9;color:var(--sub)}.ms-editor{flex:1;min-width:0;display:flex;flex-direction:column;background:#fff}.editor-caption{padding:30px 40px 0;font-size:9px;letter-spacing:2px;color:#98a08e}.ms-title{font-size:22px;font-weight:600;border:0;background:transparent;padding:16px 40px 22px;margin:0;outline:none}.ms-title:focus-visible{outline-offset:-3px}.ms-text{flex:1;min-height:0;width:100%;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:16px;line-height:2.2;border:0;border-top:1px solid #eff2ea;outline:none;background:#fff;padding:26px 40px;resize:none}.ms-text::placeholder{color:#a0a795;font-size:14px}.ms-text:focus-visible{outline:0;box-shadow:inset 3px 0 #d3e1c9}.ms-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:35px;padding:8px 24px;border-top:1px solid var(--line);font-size:10px;color:var(--sub)}.ms-ref{flex:0 0 240px;width:240px;overflow:auto;background:#fafbf7;border-left:1px solid var(--line);padding:24px 20px}.ms-ref-h{font-size:10px;letter-spacing:1px;color:#829074;margin:24px 0 14px;border-bottom:1px solid var(--line);padding-bottom:9px}.ms-ref-h:first-child{margin-top:0}.ms-ref-row{display:flex;flex-direction:column;gap:4px;margin:0 0 14px;font-size:11px}.ms-ref-row .k{color:#89947f;font-size:10px}.ms-ref-row .v{white-space:pre-wrap;word-break:break-word;line-height:1.8}.ms-ref-char{font-size:12px;margin-bottom:12px}.ms-ref-char span{display:block;font-size:10px;color:var(--sub);margin-top:4px}.focus-writing .sidebar,.focus-writing .workspace-heading,.focus-writing .ms-list,.focus-writing .ms-ref,.focus-writing .workspace-footer{display:none}.focus-writing .ms-editor{max-width:900px;width:100%;margin:auto;height:100%;border-inline:1px solid var(--line)}.focus-writing .ms-main{background:#eef2e9}dialog{border:1px solid var(--line);border-radius:14px;width:530px;max-width:calc(100vw - 32px);padding:28px;color:var(--txt);box-shadow:var(--shadow)}dialog::backdrop{background:#263c2d55;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{font-size:20px;margin:0}.dialog-intro{font-size:12px;color:var(--sub);margin:6px 0 28px}@media (min-width:1600px){.grid-view .canvas{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:24px}.workspace-heading{padding-top:38px;padding-bottom:30px}}@media (max-width:1180px){.sidebar{width:196px;flex-basis:196px;padding-inline:10px}.brand{margin-bottom:35px}.topbar{padding-inline:24px}.workspace-heading{padding:25px 24px 22px}.board-toolbar{padding-inline:24px;flex-wrap:wrap;gap:10px}.grid-view .canvas{padding:22px 24px;gap:16px}.board-tools{margin-left:auto}.project-identity input{width:155px}.save-status{font-size:9px}.ms-ref{width:200px;flex-basis:200px;padding:18px 14px}.ms-list{width:175px;flex-basis:175px}.ms-title,.ms-text{padding-inline:25px}.editor-caption{padding-left:25px}.rel-hint{display:none}}@media (max-width:900px){.sidebar{width:70px;flex-basis:70px;padding:24px 8px 12px;overflow:visible}.brand{margin:0 8px 32px}.brand>span:not(.logo),.sidebar-label,.vseg>span,.modeswitch,.dormant,.project-progress,.sidebar-footer,.sidebar-action{display:none}.viewswitch .vseg{justify-content:center;padding:10px}.viewswitch .vseg .icon{width:20px;height:20px}.sidebar-bottom{margin-top:25px}.save-status{display:none}.topbar{gap:8px}.ms-ref,.rel-drawer-title{display:none}.rel-inspector,.tl-inspector{position:absolute;right:0;top:64px;bottom:0;z-index:12;width:290px;box-shadow:var(--shadow)}.rel-inspector{top:105px}.workspace-footer{padding-inline:18px}.topbar #btnConvert span{display:none}.topbar #btnConvert{width:35px;padding:6px}}@media (max-width:600px){.app{flex-direction:column}.sidebar{order:2;width:100%;height:58px;flex:0 0 58px;padding:4px 8px;border-right:0;border-top:1px solid var(--line);background:#f4f7ef}.sidebar .brand,.sidebar-bottom{display:none}.viewswitch{flex-direction:row;gap:3px;height:100%;justify-content:space-around}.viewswitch .vseg{flex:1;flex-direction:column;gap:2px;padding:4px 2px;min-height:46px;font-size:9px;border-radius:6px}.viewswitch .vseg>span:not(.nav-count){display:block;font-size:9px}.viewswitch .vseg:first-child>span:not(.nav-count){font-size:8px}.viewswitch .vseg .icon{width:17px;height:17px}.workspace{min-height:0}.topbar{min-height:55px;padding:0 16px;gap:6px}.project-identity{gap:6px;flex:1}.project-identity input{width:100%;font-size:12px}.project-pencil{display:none}.topbar>.sp{display:none}.topbar #btnOutput{font-size:0;width:33px;padding:7px}.workspace-heading{padding:21px 18px 18px;align-items:flex-start;gap:10px}.eyebrow{font-size:8px;letter-spacing:1.5px}h1{font-size:19px}.workspace-heading p{font-size:10px;line-height:1.8;max-width:220px}.workspace-heading .primary{font-size:10px;min-height:34px;padding:7px 9px;margin-top:21px}.workspace-heading .primary .icon:last-child{display:none}.workspace-heading .primary .icon{width:13px}.board-toolbar{padding:0 18px 12px;gap:9px}.filter-tabs{width:100%;justify-content:space-between;gap:0}.filter-tabs button{font-size:10px;padding:5px 9px}.board-tools{width:100%;gap:9px}.search-box{flex:1}.search-box input{width:100%;flex:1}.search-box kbd{display:none}.grid-view .canvas{grid-template-columns:1fr;gap:15px;padding:18px}.grid-view .slot{min-height:206px}.workspace-footer{display:none}.tl-toolbar,.ms-toolbar,.rel-drawer-head{padding:10px 12px;gap:7px;min-height:58px;flex-wrap:wrap}.tl-toolbar button,.ms-toolbar button,.rel-drawer-head button{font-size:10px;padding:6px 8px;min-height:33px}.rel-guide{padding:9px 14px;font-size:10px}.rel-inspector{top:102px}.tl-inspector{top:58px}.ms-list{width:112px;flex-basis:112px;padding:10px 5px}.ms-item{padding:9px 6px}.ms-item-title{font-size:10px}.ms-item-snip{display:none}.ms-item-sub{margin-top:3px}.ms-list:before{font-size:9px;padding-left:6px}.ms-total{display:none}.ms-title{font-size:16px;padding:12px 18px 18px}.editor-caption{padding:22px 18px 0;font-size:8px}.ms-text{font-size:14px;padding:20px 18px}.ms-status{padding:7px 12px}.ms-status>span:last-child{display:none}.focus-writing .sidebar{display:flex}.dropdown{width:235px;max-height:55vh}.toast{bottom:75px;width:max-content}.rel-empty{left:30px;width:280px}.drawer-head{padding:18px;font-size:13px}.drawer-description{padding-inline:18px}.drawer-body{margin-inline:18px}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}.import-preview{display:flex;gap:15px;align-items:center;padding:20px;background:#f1f5ec;border:1px solid var(--line);border-radius:8px;margin:20px 0}.import-preview>.icon{width:27px;height:27px;color:var(--accent)}.import-preview strong{font-size:15px;word-break:break-word}.import-preview p{font-size:11px;color:var(--sub);margin:6px 0 0}.import-notice{font-size:12px;line-height:1.9;color:var(--sub)}.import-actions{display:flex;gap:8px;align-items:center;margin-top:24px}.import-actions button{font-size:11px}.topbar #btnSaveProject{background:#e9f0e3;border-color:#d5e1cc;color:#3e6034}@media (max-width:1180px){.topbar{gap:8px}.topbar .save-status,.topbar #btnConvert span{display:none}.topbar #btnConvert{width:34px;padding:7px}.topbar .project-identity{flex:1}.topbar>.sp{display:none}}@media (max-width:600px){.topbar #btnOpenProject,.topbar #btnSaveProject{font-size:0;width:33px;flex:0 0 33px;padding:7px;gap:0}.topbar #btnConvert{display:none}.project-identity>.icon{display:none}.import-actions{flex-wrap:wrap}.import-actions>.sp{display:none}.import-actions #importBackup{width:100%;margin-bottom:8px}.import-actions #importCancel,.import-actions #importConfirm{flex:1}}.slot-title{font-size:14px}.slot-empty-note{font-size:12px;color:#68755f}.slot-actions button{font-size:11px}.slot-actions .example{color:#64735b}.card-meta{font-size:11px;color:#64765a}.card-category{font-size:10px;color:#74826a}.viewswitch .vseg{font-size:13px}.sidebar-action{font-size:12px}.workspace-heading p{font-size:13px}.filter-tabs button{font-size:12px}.field .fk{color:#6b7a60}.ms-ref-row .k{color:#6e7d62}.search-box input{font-size:12px}.topbar .save-status{color:#62765b}.project-progress p{color:#64725d}.sidebar-label{color:#697961}.workspace-footer{color:#65765d}.eyebrow{color:#6c805f}.slot .card-meta .status-dot{width:5px;height:5px}#btnWorkspaceSettings{display:none}.settings-mode{display:flex;gap:10px;margin:24px 0 12px}.settings-mode button{flex:1}.settings-mode button[aria-pressed=true]{background:#e6efdf;color:var(--accent);border-color:#bacaaf}.settings-note{font-size:12px;color:var(--sub);margin-bottom:24px}#settingsHelp,#settingsReset{width:100%;justify-content:flex-start;margin-top:10px}.gsbr-x .icon{width:14px;height:14px}@media (max-width:900px){#btnWorkspaceSettings{display:inline-flex}}@media (max-width:600px){.workspace-heading p{font-size:11px}.topbar{gap:5px}.topbar #btnWorkspaceSettings{flex:0 0 27px;width:27px;padding:5px}.topbar #btnOpenProject{width:28px;flex-basis:28px}.topbar .project-identity{width:0}.topbar .project-identity input{min-width:0}}:root{--header-height:clamp(30px,5dvh,36px);--toolbar-height:clamp(30px,5dvh,34px)}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.app{display:block}.workspace{width:100%;height:100%;min-height:0}.topbar{height:var(--header-height);min-height:var(--header-height);flex:0 0 var(--header-height);gap:8px;padding:0 10px;white-space:nowrap}.topbar>.sp{display:block;flex:1}.topbar .brand{display:flex;flex:none;gap:6px;margin:0 8px 0 0;font-size:17px;letter-spacing:0;line-height:1}.topbar .brand>span{display:block}.topbar .logo{width:22px;height:24px}.topbar .logo .icon{width:21px;height:21px}.topbar .brand-caption{display:inline;margin-left:5px;font-size:9px;font-weight:400;letter-spacing:0;color:var(--sub)}.topbar .brand>.ver{display:inline-flex;align-items:center;gap:3px;align-self:center;height:18px;margin:0;padding:0 5px;border:1px solid #c9d2c2;border-radius:3px;color:#5b6b58;font-size:10px;font-weight:650;line-height:1;letter-spacing:0;white-space:nowrap}.topbar .brand>.ver .ver-num{font-weight:400}.viewswitch{flex:none;display:flex;flex-direction:row;gap:3px;height:auto;margin:0 12px 0 0}.viewswitch .vseg{display:inline-flex;flex:none;flex-direction:row;gap:6px;min-height:28px;height:28px;padding:4px 9px;font-size:12px;border-radius:5px}.viewswitch .vseg>span{display:block}.viewswitch .vseg .icon{width:15px;height:15px}.viewswitch .vseg .nav-count{display:none}.project-identity{flex:0 1 190px;gap:6px;min-width:90px;width:auto}.topbar .project-identity input{width:100%;min-width:0;font-size:12px;padding:4px 0}.project-identity>.icon{width:14px;height:14px}.project-pencil{display:none}.topbar .save-status{display:inline-flex;font-size:10px}.topbar button{min-height:27px;height:27px;padding:4px 8px;font-size:11px;gap:5px}.topbar button .icon{width:15px;height:15px}.topbar #btnConvert{display:inline-flex;width:auto;padding:4px 8px}.topbar #btnConvert span{display:inline}.topbar #btnWorkspaceSettings{display:inline-flex;flex:none;width:28px;padding:5px}.board-toolbar{height:var(--toolbar-height);min-height:var(--toolbar-height);flex:0 0 var(--toolbar-height);display:flex;flex-wrap:nowrap;align-items:center;gap:10px;padding:2px 10px;background:#fafbf7;border-bottom:1px solid var(--line)}.filter-tabs{flex:none;width:auto;justify-content:flex-start;gap:3px}.filter-tabs button{font-size:11px;min-height:26px;height:26px;padding:3px 9px}.board-tools{width:auto;flex:0 1 auto;margin-left:auto;gap:8px;min-width:0}.search-box{min-height:26px;height:26px;padding:0 7px;gap:6px;min-width:90px;flex:0 1 210px}.search-box input{width:155px;font-size:12px;min-width:0}.search-box kbd{font-size:9px;padding:0 4px}.layout-switch{padding:1px;flex:none}.layout-switch button{min-height:23px;height:23px;width:27px;padding:3px}#boardAddWrap{flex:none}#btnAdd{height:27px;min-height:27px;padding:4px 10px;font-size:11px;gap:5px}#btnAdd>.icon:last-child{width:12px}#statusSelect{display:none;font-size:12px;height:28px;padding:3px 5px;border:1px solid var(--line);border-radius:5px;background:#f7faf3;min-width:0;max-width:100px}.workspace-footer{display:none}.grid-view .canvas{grid-template-columns:repeat(auto-fill,minmax(244px,1fr));gap:10px;padding:10px;align-content:start}.grid-view .slot{min-height:156px}.slot-head{gap:7px;padding:10px 11px 7px}.kind-badge{width:26px;height:26px;flex-basis:26px;border-radius:6px}.slot-title{font-size:13px;letter-spacing:0}.card-meta{padding:0 12px 4px;font-size:10px}.slot-body{padding:4px 12px 9px}.slot-empty-note{font-size:12px;line-height:1.7;min-height:30px}.slot-actions{margin:0 11px;padding:7px 0 9px}.slot-actions button{min-height:27px;padding:4px 6px}.rel-drawer-head,.tl-toolbar,.ms-toolbar,.cr-toolbar{height:var(--toolbar-height);min-height:var(--toolbar-height);flex:0 0 var(--toolbar-height);padding:2px 10px;gap:8px;flex-wrap:nowrap}.rel-drawer-head button,.tl-toolbar button,.ms-toolbar button{height:27px;min-height:27px;padding:4px 8px;font-size:11px;gap:5px}.rel-drawer-title{display:none}.rel-hint{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.rel-guide{display:none}.connecting .rel-guide{display:block;position:absolute;left:12px;bottom:12px;z-index:10;max-width:calc(100% - 24px);padding:7px 12px;border:1px solid #b9ccaf;border-radius:6px;box-shadow:var(--shadow);pointer-events:none}.rel-inspector,.tl-inspector{padding:14px;top:var(--toolbar-height)}.insp-head{margin-bottom:14px;padding-bottom:9px}.editor-caption{display:none}.ms-title{padding:9px 22px;font-size:18px;min-height:42px;letter-spacing:0}.ms-text{padding:16px 22px}.ms-status{min-height:26px;height:26px;padding:4px 14px}.ms-list{padding:10px 8px}.ms-list:before{padding:0 8px 8px;letter-spacing:0}.ms-ref{padding:14px 16px}.ms-ref-h{margin-top:17px;letter-spacing:0}.focus-writing .ms-editor{max-width:none;margin:0;border:0}.focus-writing .topbar .brand,.focus-writing .viewswitch{display:none}.focus-writing .settings-details{display:flex}.settings-details{display:flex;position:static;width:100%;height:auto;max-height:none;flex:none;order:0;padding:0;background:none;border:0;overflow:visible}.settings-details .sidebar-label{display:block;margin:10px 0;padding:0;font-size:12px;letter-spacing:0}.settings-details .modeswitch{display:flex;margin:0;width:100%;padding:3px}.settings-details .modeswitch .seg{font-size:12px;min-height:32px}.settings-details .dormant{display:block;margin:9px 0}.settings-details .project-progress{display:block;margin:16px 0;padding-top:13px}.settings-details .project-progress p{display:none}.settings-details .sidebar-bottom{display:block;margin:0}.settings-details .sidebar-action{display:flex;justify-content:flex-start;gap:9px;width:100%;padding:8px 6px;min-height:33px;font-size:12px}.settings-details .sidebar-footer{display:flex;margin:12px 0;padding-top:12px}.settings-extra{display:flex;gap:8px;margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.settings-extra button{flex:1;font-size:12px}h1,.eyebrow,.dialog-head h2{letter-spacing:0}.toast{bottom:14px}@media (max-width:1180px){.topbar{gap:5px}.topbar .save-status{display:none}.topbar .project-identity{flex:0 1 160px}.topbar #btnConvert{width:27px;padding:5px}.topbar #btnConvert span{display:none}.viewswitch{margin-right:5px}}@media (max-width:900px){.topbar .brand>span:not(.logo){display:none}.topbar .brand{margin-right:2px}.viewswitch .vseg{padding:4px 7px;gap:4px}.topbar .project-identity{flex:1;min-width:65px}.topbar #btnOpenProject,.topbar #btnSaveProject,.topbar #btnOutput{flex:none;width:28px;padding:5px;font-size:0;gap:0}.topbar #btnConvert{display:none}.topbar>.sp{display:none}.rel-hint{display:none}}@media (max-width:700px){.topbar{padding:0 6px;gap:4px}.topbar .brand{display:none}.topbar .project-identity{order:-1;min-width:55px;max-width:150px}.project-identity>.icon{display:none}.viewswitch{gap:2px;margin:0 auto 0 0}.viewswitch .vseg{width:29px;height:28px;min-height:28px;padding:5px}.viewswitch .vseg>span{display:none!important}.viewswitch .vseg .icon{width:17px;height:17px}.board-toolbar{gap:6px;padding:2px 6px}.filter-tabs{display:none}#statusSelect{display:block;flex:0 0 82px}.board-tools{flex:1;margin:0;gap:6px}.search-box{flex:1;min-width:55px}.search-box input{width:100%;flex:1}.search-box kbd{display:none}#btnAdd{width:29px;padding:5px}#btnAdd span,#btnAdd>.icon:last-child{display:none}.layout-switch button{width:24px}.chk{font-size:10px}.grid-view .canvas{gap:8px;padding:8px}.ms-toolbar .sp{display:none}.ms-toolbar #btnMsExport{margin-left:auto}.ms-toolbar button{font-size:10px;padding:4px 6px;gap:4px}.ms-toolbar{gap:5px;padding:2px 6px}.ms-title{padding:8px 14px;font-size:16px}.ms-text{padding:12px 14px}.ms-status{padding:4px 10px}.rel-inspector,.tl-inspector{top:var(--toolbar-height)}}@media (max-width:400px){.topbar #btnOutput{display:none}.topbar .project-identity{min-width:50px}.topbar .project-identity input{font-size:11px}#statusSelect{flex-basis:76px;font-size:11px}}@media (max-width:700px){#btnAdd>i:last-child{display:none}}.file-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}#projectFileStatus{font-size:11px;color:var(--sub);overflow-wrap:anywhere;min-width:0}#btnSaveProjectAs{flex-shrink:0;font-size:12px}#saveProjectDialog{width:440px}.save-name-label{display:block;font-size:12px;font-weight:600;margin:22px 0 7px}.save-name-field{display:flex;align-items:center;border:1px solid #bdcdb4;border-radius:6px;background:#fafcf7;padding-right:12px}.save-name-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #38634c18}.save-name-field input{width:100%;min-width:0;border:0;border-radius:6px;padding:10px 12px;background:transparent;font-size:14px;outline:none}.save-name-field input:focus-visible{outline:none}.save-name-field span{font:12px var(--font-mono);color:var(--sub)}.save-file-hint{font-size:11px;color:var(--sub);line-height:1.8;margin:10px 0 0}.save-file-error{color:var(--warn);font-size:12px;line-height:1.8;margin-top:16px}.save-project-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.save-project-actions button{font-size:12px}@media (max-width:420px){.file-settings{align-items:flex-start;flex-direction:column}.save-project-actions button{font-size:11px;padding-inline:9px}}#msstage .ms-main{display:grid;grid-template-columns:minmax(0,var(--ms-editor-share,7fr)) 8px minmax(0,var(--ms-plot-share,3fr));flex:1;min-height:0;overflow:hidden}#msstage .ms-editor{width:auto;min-width:0;min-height:0;max-width:none;margin:0;border:0}#msSceneSelect{max-width:250px;min-width:100px;width:200px;flex:0 1 200px}#msSceneSelect,#msWritingMode,#plotTemplate,.ms-pin-toolbar select,.plot-link-row select{height:27px;min-height:27px;background:#fbfdf8;border:1px solid var(--line);border-radius:5px;padding:3px 7px;font-size:11px;color:var(--txt);min-width:0}#msWritingMode{width:76px;flex:none}.manuscript-pane-head{height:34px;min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 12px;border-bottom:1px solid var(--line);background:#f4f7ef;font-size:11px;font-weight:600}.manuscript-pane-head>span:first-child{display:inline-flex;align-items:center;gap:6px}.manuscript-pane-head .icon{width:14px;height:14px}#msPinCount{font-size:10px;font-weight:400;color:var(--sub)}#msstage .ms-title{height:43px;min-height:43px;padding:8px 16px;font-size:17px;flex:none}.ms-pin-toolbar{display:flex;align-items:center;gap:6px;padding:5px 12px;border-bottom:1px solid var(--line);height:38px;min-height:38px;background:#fcfdf9}.ms-pin-toolbar>.icon,.ms-pin-toolbar>i{color:#728563}.ms-pin-toolbar select{flex:1;width:0}.ms-pin-toolbar button{height:27px;min-height:27px;padding:3px 8px;font-size:11px;flex-shrink:0}.ms-pin-toolbar button .icon{width:13px;height:13px}.ms-writing-area{position:relative;min-height:0;flex:1;overflow:hidden;background:#fff}.ms-sheet{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}.ms-sheet-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:6px 10px;background:#eff1f3;border-block:1px solid #d6dadd}.ms-sheet-toolbar button,.ms-sheet-toolbar select,#msDisplayMode{height:27px;min-height:27px;font-size:11px;padding:3px 7px;border:1px solid #bdc3c8;border-radius:4px;background:#fff}.ms-sheet-toolbar .icon-button{width:27px;padding:4px}.ms-sheet-scroll{flex:1;min-height:0;overflow:auto}.ms-sheet-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px}.ms-sheet-table thead{position:sticky;top:0;z-index:2}.ms-sheet-table th{background:#e9ecef;color:#505c65;font-weight:500;text-align:center}.ms-sheet-table th,.ms-sheet-table td{border-right:1px solid #d9dde1;border-bottom:1px solid #d9dde1;padding:0}.ms-sheet-table thead th{height:30px;font-size:11px}.ms-sheet-table th:first-child{width:42px}.ms-sheet-table th:last-child{width:34px}.ms-sheet-table tbody th{font-variant-numeric:tabular-nums}.ms-sheet-table textarea{display:block;box-sizing:border-box;width:100%;height:58px;min-height:38px;resize:vertical;border:0;background:#fff;padding:8px 10px;font:13px/1.6 Yu Gothic UI,Meiryo,sans-serif;overflow-wrap:anywhere}.ms-sheet-table textarea:focus{outline:2px solid #466e9b;outline-offset:-2px;background:#f6f9ff}.ms-sheet-table tr:focus-within>th{background:#d7e4f4;color:#254f7c}.ms-sheet-table .icon-button{width:28px;height:28px;min-height:28px;margin:2px;padding:5px;border:0;background:transparent;color:#68737c}.ms-sheet-hint{padding:4px 10px;border-top:1px solid #d9dde1;color:#6d747a;background:#f3f4f5;font-size:10px}.ms-sheet-table{min-width:max-content}.ms-sheet-table .ms-sheet-id{width:92px;min-width:92px;font:10px/1.4 monospace;color:#6b7780;text-align:center}.ms-sheet-table .ms-sheet-text{width:340px;min-width:260px}.ms-sheet-table .ms-sheet-data{width:160px;min-width:130px}.ms-sheet-table td.ms-sheet-actions{width:36px}.ms-sheet-table .ms-sheet-data textarea,.ms-sheet-table .ms-sheet-data select{display:block;box-sizing:border-box;width:100%;height:58px;min-height:38px;border:0;background:#fff;padding:8px;font:12px/1.6 Yu Gothic UI,Meiryo,sans-serif;resize:vertical}.ms-sheet-table .ms-sheet-data select{height:58px;resize:none}#crstage{display:flex;flex-direction:column}.cr-wrap{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 24px}.cr-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;overflow:hidden}.cr-col-area{width:186px}.cr-col-url{width:264px}.cr-col-copy{width:208px}.cr-col-del{width:46px}.cr-table thead th{position:sticky;top:0;z-index:2;background:var(--panel2);color:var(--sub);font-weight:600;font-size:11px;text-align:left;height:38px;padding:0 11px;border-bottom:1px solid var(--line)}.cr-table td{border-bottom:1px solid var(--line);padding:0;vertical-align:middle}.cr-table tbody tr:last-child td{border-bottom:0}.cr-table tbody tr:hover{background:var(--card2)}.cr-in,.cr-area{width:100%;border:0;background:transparent;padding:9px 11px;font:inherit;font-size:12px;color:var(--txt);line-height:1.5}.cr-area{cursor:pointer}.cr-in::placeholder{color:#9aa69a}.cr-in:focus,.cr-area:focus{outline:2px solid var(--accent);outline-offset:-2px;background:var(--card2);border-radius:5px}.cr-areabox{display:flex;flex-direction:column}.cr-area-custom{border-top:1px solid var(--line)}.cr-urlcell{display:flex;align-items:center}.cr-url{flex:1;min-width:0}.cr-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;color:var(--accent2);text-decoration:none}.cr-link:hover{color:var(--accent)}.cr-link .icon{width:15px;height:15px}.cr-delcell{text-align:center}.cr-del{width:30px;min-height:30px;margin:0 auto;padding:6px;border:0;background:transparent;color:var(--sub)}.cr-del:hover:not(:disabled){color:var(--warn);background:transparent;border-color:transparent}.cr-del .icon{width:15px;height:15px}.cr-empty{padding:26px;text-align:center;color:var(--sub);font-size:12px}.cr-col-handle{width:36px}.cr-handle{text-align:center}.cr-grip{width:28px;min-height:28px;margin:0 auto;padding:5px;border:0;background:transparent;color:var(--sub);cursor:grab}.cr-grip:hover:not(:disabled){color:var(--txt);background:transparent;border-color:transparent}.cr-grip:active{cursor:grabbing}.cr-grip .icon{width:15px;height:15px}.cr-table tbody tr.cr-dragging{opacity:.45}.cr-table tbody tr.cr-over-before td{box-shadow:inset 0 2px 0 var(--accent)}.cr-table tbody tr.cr-over-after td{box-shadow:inset 0 -2px 0 var(--accent)}.cr-areas{display:flex;flex-direction:column;gap:14px}.cr-area-block{border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.cr-area-block.cr-dragging{opacity:.5}.cr-area-block.cr-over-before{box-shadow:0 -3px 0 var(--accent)}.cr-area-block.cr-over-after{box-shadow:0 3px 0 var(--accent)}.cr-area-head{display:flex;align-items:center;gap:7px;padding:7px 9px;background:var(--panel2);border-bottom:1px solid var(--line)}.cr-area-label{flex:0 1 260px;min-width:120px;font-weight:650;font-size:13px;color:var(--txt);border:1px solid transparent;border-radius:5px;background:transparent;padding:5px 7px;min-height:32px}.cr-area-label:hover{border-color:var(--line);background:var(--card)}.cr-area-label:focus{border-color:var(--accent);background:var(--card);outline:none}.cr-area-head .cr-add-field,.cr-area-head .cr-add-entry{min-height:30px;padding:5px 9px;font-size:11px;gap:4px}.cr-area-head .cr-area-del{color:var(--sub)}.cr-area-head .cr-area-del:hover{color:var(--warn);background:transparent;border-color:transparent}.cr-area-table-wrap{overflow-x:auto}.cr-area-table{table-layout:auto;border:0;border-radius:0;width:100%}.cr-area-table thead th{position:static;background:var(--card2);text-align:left}.cr-area-table .cr-gh{width:34px}.cr-fh{padding:3px 4px}.cr-fh-in{display:flex;align-items:center;gap:1px}.cr-fname{flex:1;min-width:64px;font-size:11px;font-weight:600;color:var(--sub);border:1px solid transparent;border-radius:4px;background:transparent;padding:4px 6px}.cr-fname:hover{border-color:var(--line);background:var(--panel)}.cr-fname:focus{border-color:var(--accent);background:var(--panel);color:var(--txt);outline:none}.cr-fdel{flex:0 0 auto;width:18px;min-height:18px;padding:2px;border:0;background:transparent;color:#aeb8ab}.cr-fdel:hover{color:var(--warn);background:transparent;border-color:transparent}.cr-fdel .icon{width:12px;height:12px}.cr-area-table .cr-in{min-width:92px}.cr-area-empty{padding:12px;color:var(--sub);font-size:11.5px;text-align:center}.cr-entry-del{width:30px;min-height:30px;margin:0 auto;padding:6px;border:0;background:transparent;color:var(--sub)}.cr-entry-del:hover{color:var(--warn);background:transparent;border-color:transparent}.cr-entry-del .icon{width:15px;height:15px}.ms-sheet-column-head{display:flex;align-items:center;gap:2px;padding:2px 3px}.ms-sheet-column-head input{min-width:55px;width:100%;border:0;background:transparent;font:inherit;color:inherit;text-align:center}.ms-sheet-column-head input:focus{outline:1px solid #466e9b;background:#fff}.ms-sheet-column-head button{flex:none;width:19px;height:20px;min-height:20px;padding:2px;border:0;background:transparent;color:#727d86}.ms-sheet-column-head button .icon{width:13px;height:13px}.ms-tag-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:4px 9px;background:#edf0f2;border-bottom:1px solid #d5dce2;font-size:10px}.ms-tag-tools>span{color:#5c6871;margin-right:3px}.ms-tag-tools button{font-size:10px;min-height:25px;padding:2px 6px;background:#fff;border:1px solid #c6ced5;border-radius:4px}.ms-tag-tools button.active{background:#d9e6f4;border-color:#688bb4;color:#254f7c}.ms-tag-tools button.auto{border-style:dashed;border-color:#688bb4}.ms-tag-sep{width:1px;align-self:stretch;margin:2px 3px;background:#c6ced5}.ms-tag-tools input{box-sizing:border-box;width:110px;height:25px;padding:2px 6px;border:1px solid #c6ced5;border-radius:4px;background:#fff;font-size:10px}.ms-tag-tools small{margin-left:auto;color:#6d747a;font-size:10px}#msColumnDialog{width:min(420px,calc(100vw - 28px))}#msColumnDialog select,#msColumnDialog input{width:100%;margin:5px 0 12px}.ms-preview{flex:1;min-height:0;display:flex;flex-direction:column;background:#f3f3f3}.ms-preview-bar{flex:none;display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;padding:4px 9px;background:#edf0f2;border-bottom:1px solid #d5dce2;font-size:11px;color:#46525b}.ms-preview-bar label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}.ms-preview-bar button{font-size:11px;min-height:25px;padding:2px 8px;gap:4px;background:#fff;border:1px solid #c6ced5;border-radius:4px}.ms-preview-bar button.active{background:#d9e6f4;border-color:#688bb4;color:#254f7c}.ms-preview-bar .icon{width:13px;height:13px}.ms-preview-legend{color:#6d747a}.ms-preview:not(.notes) .ms-preview-legend{display:none}.ms-preview.notes .ms-preview-legend{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ms-preview.notes .ms-preview-bar>.sp{display:none}#msPreviewStats .warn{color:var(--warn)}.ms-preview-scroll{flex:1;min-height:0;overflow:auto;padding:20px 28px}.ms-preview-page{box-sizing:border-box;max-width:690px;min-height:100%;margin:auto;padding:48px clamp(25px,7vw,76px) 90px;background:#fff;border:1px solid #dedede;color:#252525;font:15px/2.05 Yu Mincho,Hiragino Mincho ProN,serif}.ms-preview.notes .ms-preview-page{max-width:900px;padding-left:12px;padding-right:12px}.ms-preview-title{margin-bottom:36px;text-align:center}.ms-preview-title small{color:#777;font:11px/1.5 sans-serif}.ms-preview-title h2{margin:11px 0 0;font-size:22px;font-weight:600;letter-spacing:.04em}.ms-preview-page p{margin:0 0 .6em;white-space:pre-wrap;overflow-wrap:anywhere}.ms-preview-empty{color:#6d747a}.pv-line{display:grid;grid-template-columns:5.6em minmax(0,1fr) 7.6em;column-gap:10px;align-items:baseline;padding:0 4px;border-left:2px solid transparent}.ms-preview:not(.notes) .pv-line{display:block;padding:0;border-left:0}.ms-preview:not(.notes) .pv-note,.ms-preview.notes .pv-plain{display:none}.ms-preview.notes .pv-line:hover{background:#f7f8f5}.ms-preview.notes .pv-line.is-current{background:#eef4ea;border-left-color:var(--accent)}.pv-gap{height:1.4em}.pv-body{min-width:0}.pv-kind{justify-self:start;padding:0 4px;border:1px solid #b9c2ca;border-radius:2px;background:#fff;color:#46525b;font:10px/1.6 system-ui,Segoe UI,sans-serif;white-space:nowrap}.pv-k-speech .pv-kind{border-color:#7f9cc0;color:#2c4f78}.pv-k-dialogue .pv-kind{border-color:#2c4f78;background:#2c4f78;color:#fff}.pv-k-narration .pv-kind{border-color:#b5b5b5;color:#555}.pv-k-description .pv-kind{border-color:#6b6b6b;background:#6b6b6b;color:#fff}.pv-k-chara .pv-kind{border-color:#9b86b8;color:#57407a}.pv-k-togaki .pv-kind{border-color:#8fae95;color:#36573d}.pv-k-direction .pv-kind{border-color:#8fae95;background:#e3eee4;color:#36573d}.pv-k-hashira .pv-kind,.pv-k-bg .pv-kind,.pv-k-bgm .pv-kind{border-color:#36573d;background:#36573d;color:#fff}.pv-k-choice .pv-kind{border-color:#c4a46a;background:#f7efdf;color:#6e521c}.pv-auto .pv-kind{border-style:dashed;background:#fff;color:#6d747a}.pv-csv{display:flex;flex-direction:column;align-items:flex-end;font:10px/1.5 ui-monospace,Consolas,monospace;color:#333;white-space:nowrap}.pv-csv .auto{color:#9a9a9a}.pv-csv .dup{color:var(--warn)}.pv-csv .to{color:#8a8a8a;font-family:system-ui,Segoe UI,sans-serif}.pv-csv .icon{width:9px;height:9px;margin-right:2px;vertical-align:-1px}.pv-who,.pv-face,.pv-plate{display:inline-block;margin-right:6px;padding:0 5px;border:1px solid #c7d4e4;border-radius:2px;background:#f3f7fb;color:#2c4f78;font:11px/1.6 system-ui,Segoe UI,sans-serif;vertical-align:.15em}.pv-face{border-color:#ddd;background:#f7f7f7;color:#555}.pv-who.warn,.pv-plate.warn{border-color:#e6b8b3;background:#fdf3f2;color:var(--warn)}.pv-plain{font:12px/1.4 sans-serif;color:#66717b}.pv-dialogue{margin:.2em 0 .6em;padding:3px 10px 5px;border:1px solid #9aabc0;background:#fbfcfe}.pv-dialogue .pv-plate{border-color:#56667c;background:#56667c;color:#fff}.pv-dialogue p{margin:0!important}.pv-description{padding:2px 8px;border-left:2px solid #c9c9c9;background:#f5f5f5;color:#3f4d56;font:13px/1.8 system-ui,Segoe UI,sans-serif}.pv-togaki{padding-left:2em;color:#3f4f44;font-size:14px}.pv-direction{color:#66717b;font-size:13px;font-style:italic}.pv-hashira{margin-top:.5em!important;padding-bottom:2px;border-bottom:1px solid #c9d2c2;color:#2b3b31;font-weight:650}.pv-choice{padding-left:1em;border-left:2px solid #c4a46a}.pv-chara{margin-top:.5em!important;color:#2b3b31}.pv-chara strong{font-weight:650}@media (max-width:700px){.ms-tag-tools small{width:100%;margin-left:0}.ms-preview-scroll{padding:8px}.ms-preview-page{padding:25px 18px 50px}.pv-line{grid-template-columns:4.6em minmax(0,1fr)}.pv-csv{grid-column:2;align-items:flex-start;flex-direction:row;gap:6px}}#msstage .ms-text{display:block;width:100%;height:100%;min-height:0;min-width:0;padding:17px 22px 24px 35px;border:0;overflow:auto;scrollbar-gutter:stable;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;font-size:16px;line-height:2.15;tab-size:4}.ms-pin-gutter{position:absolute;left:0;top:0;bottom:0;width:29px;z-index:2;overflow:hidden;pointer-events:none;background:linear-gradient(90deg,#f7faf3 0,#f7faf300 100%)}.ms-gutter-pin{position:absolute;left:3px;width:23px;min-height:23px;height:23px;padding:4px;border:0;background:#edf3e7;color:#72945d;border-radius:5px;pointer-events:auto}.ms-gutter-pin .icon{width:14px;height:14px}.ms-gutter-pin.is-active{background:#38634c;color:#fff;box-shadow:0 0 0 2px #c4d7b6}.ms-gutter-pin.missing{background:#fbefeb;color:var(--warn)}.ms-text-mirror{position:fixed;left:-100000px;top:0;visibility:hidden;pointer-events:none;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;border:0}#msstage .vertical-writing .ms-text{writing-mode:vertical-rl;text-orientation:mixed;padding:32px 22px 20px 20px;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:auto}.vertical-writing .ms-pin-gutter{inset:0 0 auto;width:auto;height:27px;background:linear-gradient(180deg,#f7faf3 0,#f7faf300 100%)}.vertical-writing .ms-gutter-pin{top:2px;left:auto}#msstage .ms-status{flex:none;background:#fcfdf9}.plot-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid var(--line);background:#f7f9f3;overflow:hidden}.plot-panel .manuscript-pane-head{padding-inline:9px}.plot-tabs{display:flex;gap:3px}.plot-tabs button{height:26px;min-height:26px;padding:3px 8px;font-size:11px;border:0;background:transparent;color:var(--sub)}.plot-tabs button.active{background:#e0ead8;color:#355a40}#plotTemplate{max-width:126px;height:25px;min-height:25px}.plot-content{flex:1;min-height:0;overflow:auto;padding:12px;scrollbar-gutter:stable}.plot-section{border:1px solid #dbe4d2;border-radius:7px;margin-bottom:11px;background:#fff;overflow:hidden}.plot-section:focus-within{border-color:#9db38d}.plot-section-head{height:35px;display:flex;align-items:center;gap:9px;padding:5px 11px;background:#f4f8ef;border-bottom:1px solid #ecf0e5}.plot-number{font:10px var(--font-mono);color:#738568}.plot-section-title{flex:0 1 200px;min-width:0;background:transparent;border:0;font-size:13px;font-weight:600;padding:2px 0}.plot-section-head .icon-button{height:24px;min-height:24px;width:24px;padding:3px}.plot-notes{display:block;width:100%;min-height:105px;resize:vertical;border:0;background:#fff;font:12px/1.9 var(--font-ui);padding:10px 12px;outline-offset:-2px!important}.plot-notes::placeholder{color:#85917d}.plot-scene-links{display:flex;flex-wrap:wrap;gap:5px;padding:0 10px}.plot-scene-chip{display:flex;align-items:center;min-width:0;max-width:100%;background:#edf3e7;border:1px solid #d9e4cf;border-radius:5px;margin-bottom:6px}.plot-scene-chip button{min-height:24px;height:24px;padding:3px 6px;font-size:10px;border:0;background:transparent;min-width:0;overflow:hidden;text-overflow:ellipsis;justify-content:flex-start}.plot-scene-chip button:last-child{flex:none;width:22px;padding:4px}.plot-scene-chip .icon{width:12px;height:12px}.plot-link-row{display:flex;gap:6px;padding:7px 10px;border-top:1px solid #edf1e8;background:#fcfdf9}.plot-link-row select{flex:1;width:0;font-size:10px;height:25px;min-height:25px;color:var(--sub)}.plot-link-row button{height:25px;min-height:25px;width:27px;padding:4px}.plot-link-row button .icon{width:14px;height:14px}.plot-footnote{margin:10px 2px;color:#748269;font-size:10px;line-height:1.8}.plot-add-section{width:100%;border-style:dashed;font-size:12px;background:transparent}#msstage .plot-panel .ms-ref{display:block;width:auto;flex:1;min-height:0;border-left:0;padding:15px;overflow:auto;background:#fcfdf9}.manuscript-timeline{height:clamp(118px,19vh,170px);flex:0 0 clamp(118px,19vh,170px);min-height:0;display:flex;flex-direction:column;border-top:1px solid #cad8bf;background:#f4f7ef;overflow:hidden}.ms-timeline-head{display:flex;align-items:center;gap:12px;height:30px;min-height:30px;padding:3px 12px;border-bottom:1px solid #e0e8d8;font-size:11px}.ms-timeline-head>span:first-child{display:inline-flex;align-items:center;gap:6px;font-weight:600;flex:none}.ms-timeline-head .icon{height:14px;width:14px}#msTimelinePosition{font-size:10px;color:#507145;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#btnMsTimelineEdit{font-size:10px;padding:3px 6px;min-height:24px;height:24px;background:transparent;border-color:transparent}.ms-timeline-scroll{display:flex;gap:12px;flex:1;min-height:0;overflow:auto;padding:0 12px 9px;align-items:flex-start;position:relative}.ms-time-column{width:190px;flex:0 0 190px;position:relative;border-top:2px solid #b6c7a8;margin-top:11px}.ms-time-tick{height:21px;font:10px/21px var(--font-mono);color:#6d805f;position:relative;padding-left:10px}.ms-time-tick:before{position:absolute;content:"";left:0;top:-4px;width:6px;height:6px;border-radius:50%;background:#a6ba97}.ms-time-event{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px;width:100%;min-height:47px;margin-bottom:6px;padding:6px 9px;background:#fff;border:1px solid #d6e0cc;border-left:3px solid #afc69b;font-size:11px;text-align:left;white-space:normal;transition:background .18s,border-color .18s,box-shadow .18s}.ms-time-event-title{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ms-time-event-title .icon{width:12px;height:12px}.ms-time-event-meta{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#7c8a70}.ms-time-event-meta span{flex-shrink:0}.ms-time-event.is-active{border-color:#527b3e;background:#e0ecd5;box-shadow:0 0 0 2px #89a76e35}.ms-time-event.is-active .ms-time-event-title{color:#2e5332;font-weight:650}.ms-time-event.is-active .ms-time-event-meta{color:#4f7041}.ms-time-event.is-arriving{animation:timeline-pin-pulse .65s ease-out}@keyframes timeline-pin-pulse{0%{box-shadow:0 0 0 5px #88a96c66;background:#cce0ba}to{box-shadow:0 0 0 2px #89a76e35;background:#e0ecd5}}.ms-timeline-empty{font-size:12px;color:var(--sub);padding:18px 6px}#msPinsDialog{width:590px}#msPinsList{max-height:55vh;overflow:auto}.ms-pin-list-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:7px 0}.ms-pin-list-row>button:first-child{flex:1;min-width:0;justify-content:flex-start;text-align:left;background:transparent;border:0;white-space:normal}.ms-pin-list-row strong{display:block;font-size:12px;font-weight:600}.ms-pin-list-row small{display:block;font-size:10px;color:var(--sub);margin-top:4px}.ms-pins-empty{font-size:12px;color:var(--sub);line-height:1.9}.focus-writing #msstage .ms-main{grid-template-columns:minmax(0,1fr)}.focus-writing .plot-panel{display:none}.focus-writing .manuscript-timeline{flex-basis:118px;height:118px}@media (max-width:900px){#msSceneSelect{width:145px;flex-basis:145px}.ms-pin-toolbar{padding-inline:7px;gap:4px}.ms-pin-toolbar>i{display:none}.plot-content{padding:8px}.plot-tabs button{font-size:10px;padding-inline:5px;gap:4px}.plot-panel .manuscript-pane-head{gap:5px;padding-inline:7px}#plotTemplate{font-size:10px;max-width:99px;padding-inline:4px}#msstage .ms-text{font-size:15px}#msstage .ms-status>span:last-child{display:none}}@media (max-width:620px){#msstage .ms-toolbar{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;gap:5px}#msstage .ms-toolbar button{flex:none}#msSceneSelect{width:115px;flex:0 0 115px}#msstage .ms-toolbar #btnMsAddScene span,#msstage .ms-toolbar #btnMsExport span{display:none}#msstage .ms-toolbar #btnMsExport{margin-left:0}#msstage .ms-toolbar #btnMsExport,#msstage .ms-toolbar #btnMsAddScene{width:27px;padding:4px}#msWritingMode{width:64px}#msstage .ms-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(150px,1fr) minmax(125px,.72fr)}.plot-panel{border-left:0;border-top:1px solid var(--line)}#msstage .ms-title{font-size:14px;height:33px;min-height:33px;padding:6px 12px}.manuscript-pane-head{height:28px;min-height:28px;padding-block:1px}.ms-pin-toolbar{height:33px;min-height:33px;padding-block:3px}.plot-content{padding:7px;display:flex;gap:8px;align-items:flex-start;overflow:auto}.plot-section{flex:0 0 86%;margin-bottom:0}.plot-notes{min-height:66px;font-size:12px}.plot-footnote{display:none}.plot-add-section{min-width:130px;width:130px;margin-top:4px}.manuscript-timeline{height:118px;flex-basis:118px}.ms-timeline-head{gap:8px;padding-inline:8px}#btnMsTimelineEdit{width:25px;overflow:hidden;font-size:0;padding:4px;gap:0}.ms-time-column{width:164px;flex-basis:164px}.ms-timeline-scroll{padding-inline:8px;gap:8px}.focus-writing #msstage .ms-main{grid-template-rows:minmax(0,1fr)}}@media (prefers-reduced-motion:reduce){.ms-time-event.is-arriving{animation:none}.ms-time-event{transition:none}}.plot-panel{background:#dedede;border:0;color:#363636}.plot-panel .manuscript-pane-head{background:#d1d1d1;border-color:#a7a7a7;gap:5px}.plot-tabs button{color:#474747;padding-inline:6px}.plot-tabs button.active{background:#e6e6e6;color:#373737;box-shadow:inset 0 0 0 1px #939393}#plotTemplate{background:#e2e2e2;border-color:#a1a1a1;color:#393939}.plot-section{background:#eaeaea;border-color:#acacac}.plot-section:focus-within{border-color:#666;box-shadow:0 0 0 1px #666}.plot-section-head{background:#cacaca;border-color:#b9b9b9}.plot-section-title{color:#363636}.plot-number{color:#5c5c5c}.plot-notes{background:#eaeaea;color:#363636}.plot-notes::placeholder{color:#616161}.plot-link-row{background:#d4d4d4;border-color:#b7b7b7}.plot-link-row select,.plot-link-row button{background:#e3e3e3;border-color:#ababab;color:#515151}.plot-scene-chip{background:#c9c9c9;border-color:#a7a7a7}.plot-scene-chip button{color:#3f3f3f}.plot-footnote{color:#515151}.plot-add-section{background:#dfdfdf;border-color:#9e9e9e;color:#414141}#msstage .plot-panel .ms-ref{background:#dadada;color:#383838}.plot-panel .ms-ref .k,.plot-panel .ms-ref-h,.plot-panel .ms-ref-empty{color:#5b5b5b}.manuscript-timeline{background:#d3d3d3;border:0;color:#383838}.ms-timeline-head{background:#c7c7c7;border-color:#9c9c9c}#msTimelinePosition{color:#434343}#btnMsTimelineEdit{color:#393939}.ms-time-column{border-color:#8d8d8d}.ms-time-tick{color:#474747}.ms-time-tick:before{background:#737373}.ms-time-event{background:#e4e4e4;border-color:#a5a5a5;border-left-color:#8e8e8e;color:#393939}.ms-time-event:hover{background:#e5e5e5;border-color:#7f7f7f}.ms-time-event-meta{color:#575757}.ms-time-event.is-active{background:#515151;border-color:#404040;box-shadow:0 0 0 2px #e8e8e8}.ms-time-event.is-active .ms-time-event-title,.ms-time-event.is-active .ms-time-event-meta{color:#f4f4f4}.ms-timeline-empty{color:#4f4f4f}@keyframes timeline-pin-pulse{0%{box-shadow:0 0 0 5px #e8e8e899;background:#6c6c6c}to{box-shadow:0 0 0 2px #e8e8e8;background:#515151}}.ms-resize-handle{position:relative;background:#9e9e9e;touch-action:none;user-select:none;z-index:3;outline-offset:-2px;flex:none}.ms-resize-handle:after{content:"";position:absolute;border-radius:3px;background:#666666}.ms-column-resize{cursor:col-resize}.ms-column-resize:after{width:2px;height:36px;left:3px;top:calc(50% - 18px)}.ms-timeline-resize{height:8px;cursor:row-resize}.ms-timeline-resize:after{height:2px;width:44px;top:3px;left:calc(50% - 22px)}.ms-resize-handle:hover,.ms-resize-handle:focus-visible,.ms-resize-handle.is-dragging{background:#7a7a7a}.ms-resize-handle:hover:after,.ms-resize-handle:focus-visible:after,.ms-resize-handle.is-dragging:after{background:#f3f3f3}body.ms-resizing,body.ms-resizing *{cursor:var(--ms-resize-cursor)!important;user-select:none!important}#msstage .manuscript-timeline{height:var(--ms-timeline-height,clamp(118px,19vh,170px));flex-basis:var(--ms-timeline-height,clamp(118px,19vh,170px))}.focus-writing #msColumnResize{display:none}.tl-main{position:relative;--tl-inspector-width:290px}#tlInspector{width:var(--tl-inspector-width);flex:0 0 var(--tl-inspector-width);min-width:0}#tlInspector textarea[data-sfk=summary]{height:clamp(220px,calc(var(--tl-inspector-height,100dvh) - 420px),640px);min-height:180px;resize:vertical}.tl-column-resize{flex:0 0 8px;width:8px;position:relative;cursor:col-resize;touch-action:none;background:#f0f1f2}.tl-column-resize:after{content:"";position:absolute;width:2px;height:44px;left:3px;top:calc(50% - 22px);background:#b4bbc2;border-radius:2px}.tl-column-resize:hover,.tl-column-resize:focus-visible,.tl-column-resize.is-dragging{background:#dce5ef;outline:none}.tl-column-resize:focus-visible:after,.tl-column-resize.is-dragging:after{background:#466e9b}.tl-main:has(#tlInspector[hidden]) .tl-column-resize{display:none}.tl-resizing,.tl-resizing *{cursor:col-resize!important;user-select:none!important}@media (max-width:900px){#tlInspector{top:0;bottom:0}.tl-column-resize{position:absolute;top:0;bottom:0;right:var(--tl-inspector-width);z-index:13}}@media (max-width:620px){#msstage .ms-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,var(--ms-editor-share,7fr)) 8px minmax(0,var(--ms-plot-share,3fr))}.ms-column-resize{cursor:row-resize}.ms-column-resize:after{width:44px;height:2px;left:calc(50% - 22px);top:3px}.focus-writing #msstage .ms-main{grid-template-rows:minmax(0,1fr)}}@media (max-width:1889px){.topbar #btnBugReport span{display:none}.topbar #btnBugReport{flex:none;width:28px;padding:5px;gap:0}}@media (max-width:1889px){.topbar #btnFlagTree span,.topbar #btnWorkspaceLayout span,.topbar #btnNewProject span,.topbar #btnOpenProject span,.topbar #btnConvert span,.topbar #btnHelpWindow span{display:none}.topbar #btnFlagTree,.topbar #btnWorkspaceLayout,.topbar #btnNewProject,.topbar #btnOpenProject,.topbar #btnConvert,.topbar #btnHelpWindow{flex:none;width:28px;padding:5px;gap:0}}@media (max-width:1279px){.topbar #btnSaveProject span,.topbar #btnOutput span{display:none}.topbar #btnSaveProject,.topbar #btnOutput{flex:none;width:28px;padding:5px;gap:0}}@media (max-width:1419px){.topbar .save-status{display:none}}.topbar .save-chev{display:inline-flex;margin-left:-2px}.topbar .save-chev .icon{width:12px;height:12px}@media (max-width:1279px){.topbar .save-chev{display:none}}.topbar .save-menu{width:240px;white-space:normal}.topbar .save-menu .dd-head{letter-spacing:0;line-height:1.5;overflow-wrap:anywhere}.topbar .save-menu button{height:auto;min-height:30px;padding:6px 8px;gap:8px;font-size:12px;border-radius:4px}.topbar .save-menu button:hover:not(:disabled){background:#edf2e9}.topbar .save-menu kbd{margin-left:auto}@media (min-width:1181px) and (max-width:1365px){.topbar{gap:6px}}@media (max-width:1100px){.topbar #btnConvert{display:none}}.ms-kind-layer{position:absolute;left:0;top:0;z-index:1;overflow:hidden;pointer-events:none}.ms-kind-inner{position:absolute;left:0;top:0;width:0;height:0}.mk-box{position:absolute;box-sizing:border-box;border:1px solid var(--mk);border-radius:2px;background:color-mix(in srgb,var(--mk) 5%,transparent)}.mk-label{position:absolute;height:10px;padding:0 3px;background:#fff;color:var(--mk);font:9px/10px system-ui,Segoe UI,sans-serif;white-space:nowrap}.mk-label.mk-v{width:10px;height:auto;padding:3px 0;writing-mode:vertical-rl}.mk-speech{--mk:#4f74a0}.mk-dialogue{--mk:#2c4f78}.mk-chara{--mk:#6f569a}.mk-togaki,.mk-direction{--mk:#4b7653}.mk-hashira,.mk-bg,.mk-bgm{--mk:#36573d}.mk-choice{--mk:#9a7424}.mk-narration{--mk:#80868b}.mk-description{--mk:#5f6368}.ms-tag-tools .ms-tag-check{display:inline-flex;align-items:center;gap:3px;margin-left:2px;color:#46525b;cursor:pointer;white-space:nowrap}.ms-tag-tools .ms-tag-check input{width:auto;height:auto;margin:0;padding:0;border:0}@media (max-width:1279px){.topbar .save-status{display:none}.topbar .brand{gap:4px;margin-right:2px}.topbar .brand>.ver .ver-num{display:none}.topbar .brand>.ver{padding:0 4px}}.ms-toolbar #btnMsCsvPopup.active{background:#d9e6f4;border-color:#688bb4;color:#254f7c}.sid-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:auto;padding:14px 16px;border:1px solid #bbb;border-radius:4px;box-shadow:none}.sid-dialog::backdrop{background:#00000033;backdrop-filter:none}.sid-dialog h2{margin:0;font-size:15px}.sid-intro{margin:4px 0 10px;color:#555;font-size:12px}.sid-group{margin:0 0 10px;padding:6px 10px 8px;border:1px solid #ccc;border-radius:3px}.sid-group legend{padding:0 4px;font-size:12px;font-weight:650}.sid-field{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:12px}.sid-field>span{flex:none;min-width:84px;color:#46525b}.sid-field input,.sid-field select{flex:1;min-width:0;height:28px;padding:2px 6px;border:1px solid #bbb;border-radius:2px;font:13px ui-monospace,Consolas,monospace}.sid-field select{font-family:inherit}.sid-nums{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 6px;padding-left:92px}.sid-nums label{display:flex;align-items:center;gap:6px;font-size:12px;color:#46525b}.sid-nums input{width:84px;height:28px;padding:2px 6px;border:1px solid #bbb;border-radius:2px}.sid-tokens{margin:0 0 4px;color:#555;font-size:11px;line-height:1.7}.sid-tokens code{padding:0 3px;border:1px solid #ddd;border-radius:2px;background:#f5f5f5;font:11px ui-monospace,Consolas,monospace;color:#222}.sid-example{margin:0;padding:4px 6px;border:1px solid #e2e2e2;background:#f5f5f5;color:#333;font:12px ui-monospace,Consolas,MS Gothic,monospace;overflow-wrap:anywhere}.sid-codes{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.sid-table-wrap{max-height:168px;overflow:auto}.sid-codes table{width:100%;border-collapse:collapse;font-size:12px}.sid-codes th,.sid-codes td{padding:3px 6px;border-bottom:1px solid #e2e2e2;text-align:left;font-weight:400}.sid-codes th{position:sticky;top:0;background:#fff;color:#555}.sid-codes input{width:100%;height:26px;padding:2px 6px;border:1px solid #bbb;border-radius:2px;font:12px ui-monospace,Consolas,monospace}.sid-note{margin:0 0 6px;color:#7a5a12;font-size:12px}.sid-error{margin:0 0 6px;color:var(--warn);font-size:12px}.sid-actions{display:flex;align-items:center;gap:8px;padding-top:8px;border-top:1px solid #ccc}.sid-actions button{border-radius:3px}@media (max-width:620px){.sid-codes{grid-template-columns:1fr}.sid-nums{padding-left:0}}.update-bar{flex:none;display:flex;align-items:center;gap:6px;padding:3px 10px;background:#f5f5f5;border-bottom:1px solid #ccc;font-size:12px;line-height:1.4;color:#333}.update-bar[hidden]{display:none}.update-bar>span{flex:1;min-width:0}.update-bar button{flex:none;min-height:24px;height:24px;padding:2px 10px;font-size:12px;border-radius:3px}.update-bar.required>span{color:var(--warn);font-weight:600}.rel-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:auto;padding:12px 16px;border:1px solid #bbb;border-radius:4px;box-shadow:none}.rel-dialog::backdrop{background:#00000033;backdrop-filter:none}.rel-dialog h2{margin:0;font-size:15px}.rel-list section{margin-top:8px;padding-top:8px;border-top:1px solid #ddd}.rel-list h3{margin:0 0 4px;font-size:13px}.rel-list h3 small{margin-left:6px;font-weight:400;color:#777}.rel-list ul{margin:0;padding-left:18px;font-size:12px;line-height:1.5}.rel-list p{margin:8px 0 0;font-size:12px;color:#555}.rel-required{display:inline-block;margin-left:6px;padding:0 5px;border:1px solid var(--warn);border-radius:2px;color:var(--warn);font-size:10px;font-weight:600;vertical-align:1px}.rel-link{display:inline;min-height:0;height:auto;padding:0 2px;border:0;border-radius:0;background:none;color:var(--accent);font-size:inherit;text-decoration:underline;cursor:pointer}.identity-line{margin:8px 0 0;font-size:11px;color:#555;overflow-wrap:anywhere}.identity-line[hidden],.is-monitor .topbar #btnConvert{display:none}@media (max-width:1889px){.topbar #btnSubmit span{display:none}.topbar #btnSubmit{flex:none;width:28px;padding:5px;gap:0}}@media (max-width:1100px){.is-monitor .topbar #btnOutput{display:none}}.review-bar{border-left:3px solid var(--accent);background:#fff}.share-dialog{width:min(680px,calc(100vw - 24px))}.share-dialog.wide{width:min(1120px,calc(100vw - 24px))}.share-intro{margin:4px 0 8px;color:#555;font-size:12px}.share-project{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:0 0 8px;font-size:13px}.share-project span{color:#666;font-size:12px}.share-field{display:flex;flex-direction:column;gap:2px;margin-bottom:6px;font-size:12px;color:#444}.share-field textarea{font:inherit;font-size:13px;line-height:1.4;padding:4px 6px;border:1px solid #ccc;border-radius:2px;resize:vertical}.share-sub{margin:12px 0 4px;font-size:13px}.share-list{max-height:50vh;overflow:auto;font-size:12px}.share-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.4}.share-table th,.share-table td{padding:3px 6px;border-bottom:1px solid #ddd;text-align:left;vertical-align:top}.share-table th{position:sticky;top:0;background:#f5f5f5;font-weight:600;white-space:nowrap}.share-table tr.is-new td{font-weight:600}.share-actions{white-space:nowrap}.share-actions button{min-height:22px;height:22px;margin:0 2px 2px 0;padding:1px 6px;font-size:11px;border-radius:2px}.share-empty{margin:6px 0;color:#666}.share-keys{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px;padding:4px 6px;border:1px solid #ccc;background:#f5f5f5;font-size:12px}.share-keys button{min-height:24px;height:24px;padding:1px 8px;font-size:12px;border-radius:2px}.share-key-status{flex:1 1 320px;color:#444}.share-key-status.is-warn,.share-warn{color:var(--warn)}.share-muted{color:#777;font-weight:400}#keyDialog .sid-error{margin:8px 0 0}.history-list{max-height:60vh}.history-table td small{display:block;color:#777;font-size:11px;overflow-wrap:anywhere}.history-table tr.history-pending td{background:#f5f5f5;color:#555}.history-table tr.is-broken td{color:#999}.history-table details summary{cursor:pointer}.history-table details ul{margin:2px 0 0;padding-left:16px}.history-note{width:100%;min-width:120px;height:22px;padding:1px 4px;border:1px solid #ccc;border-radius:2px;font:inherit;font-size:12px;background:#fff}.history-foot{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px;color:#555}.history-foot button{min-height:24px;height:24px;padding:1px 8px;font-size:12px;border-radius:2px}.topbar .save-menu small{margin-left:auto;color:var(--sub);font-size:10px}.version-preview{position:fixed;inset:28px;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:2px solid var(--warn);border-radius:4px;background:#fff;box-shadow:none;overflow:hidden}.version-preview[open]{display:flex;flex-direction:column}.version-preview::backdrop{background:rgba(50,50,50,.6);backdrop-filter:none}.vp-head{display:flex;align-items:center;gap:8px;flex:none;padding:6px 8px 6px 12px;border-bottom:1px solid #ccc;background:#fbefec;font-size:12px;line-height:1.4}.vp-info{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;min-width:0}.vp-info strong{color:var(--warn);font-size:13px}.vp-info span{color:#444}.vp-head button{flex:none;min-height:26px;height:26px;padding:2px 10px;font-size:12px;border-radius:2px}.vp-head .icon-button{width:28px;padding:0}.vp-loading{flex:none;margin:0;padding:6px 12px;font-size:12px;color:#666}.vp-loading[hidden]{display:none}#versionPreviewFrame{flex:1;min-height:0;width:100%;border:0;background:#fff}#versionPreviewFrame[hidden]{display:none}.history-ask{width:min(520px,calc(100vw - 24px))}.history-ask-body{margin:8px 0 0;padding-left:18px;font-size:13px;line-height:1.6}.history-ask-body li{margin-bottom:4px}.history-ask .save-project-actions{margin-top:14px}.history-ask-note{display:flex;flex-direction:column;gap:2px;margin-top:10px;font-size:12px;color:#444}.history-ask-note[hidden]{display:none}.history-ask-note input{height:26px;padding:2px 6px;border:1px solid #ccc;border-radius:2px;font:inherit;font-size:13px}#historyAskOk.danger{background:var(--warn);border-color:var(--warn);color:#fff}.is-version-view #btnNewProject,.is-version-view #btnOpenProject,.is-version-view #saveWrap,.is-version-view #btnSubmit{display:none}.is-version-view .topbar #projectName{color:var(--warn);cursor:default}.is-embedded #btnBugReport,.is-embedded #reviewBar,.is-embedded #updateBar{display:none}.topbar #projectName{display:block;flex:1;min-width:0;height:auto;min-height:0;padding:4px 2px;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;color:var(--txt);font-size:12px;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.topbar #projectName:hover{border-bottom-color:#b7c4ae;background:none}@media (max-width:700px){.topbar #projectName{font-size:11px}}.topbar .save-status{flex:0 1 auto;min-width:0;overflow:hidden}.topbar .save-status .icon{flex:none}.topbar .save-status>span{min-width:0;overflow:hidden;text-overflow:ellipsis}@media (max-width:1799px){.topbar .brand>.ver .ver-num{display:none}.topbar .brand>.ver{padding:0 4px}}@media (max-width:1499px){.topbar .brand-caption{display:none}}#tlInspector .insp-actions{position:sticky;bottom:0;z-index:1;padding-bottom:6px;background:#fff}@media (max-width:700px){.ms-tag-tools{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.ms-tag-tools>*{flex:none}.ms-tag-tools small{display:none}}.is-gsscene [data-recit-only]{display:none!important}
