:root{--brown:#4c3024;--cocoa:#674737;--choc:#7c523b;--cream:#fbf6ed;--vanilla:#fffaf3;--paper:#fffdf9;--line:#e6d3bd;--line2:#eedfd0;--muted:#9a806e;--caramel:#b57c50;--gold:#e6b378;--red:#a85c4d;--rose:#ffefe9;--green:#638560;--olive:#eef2e5;--blue:#edf1f7;--shadow:0 5px 20px #68442a13;--radius:15px}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{background:radial-gradient(circle at top right,#7f5b47 0,#7f5b47 6%,#e9d4bf 6.1%,#f7efe6 32%,#f5ebdf 64%,#e6cfba 100%);color:var(--brown);font:13px/1.55 'Yu Gothic UI','Hiragino Kaku Gothic ProN','Noto Sans JP','Meiryo',sans-serif}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c8966a77;outline-offset:2px}input,select,textarea{accent-color:var(--choc)}input[type=text],input[type=number],input[type=time],select,textarea{background:#fffcf7;border:1px solid #e1cdb8;border-radius:9px;padding:9px 10px;min-width:0;width:100%}textarea{resize:vertical;min-height:84px}button{transition:background .12s,border-color .12s,transform .12s}button:active{transform:translateY(1px)}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{line-height:1.4}svg{display:block}#app{height:100dvh;display:flex;flex-direction:column;overflow:hidden;position:relative}#app:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#ffffff4f 0,transparent 18%,transparent 82%,#8b63451e 100%)}.masthead{height:74px;min-height:74px;display:flex;align-items:center;padding:0 23px;gap:15px;background:linear-gradient(90deg,#4c2d20 0%,#4c2d20 34%,#513024eb 56%,#4b2d2192 72%,#3f261e 100%),url('assets/header-study.jpg') right center/auto 100% no-repeat;color:#fff4e7;box-shadow:0 4px 18px #43261d30;position:relative;z-index:5;overflow:hidden}.masthead:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#ffffff12,transparent 38%,#00000012 100%);pointer-events:none}.masthead:after{content:'';position:absolute;right:0;top:0;height:100%;width:41%;background:linear-gradient(90deg,transparent 0%,#00000008 50%,#00000020 100%),url('assets/header-study.jpg') center center/cover no-repeat;opacity:.95;mask-image:linear-gradient(90deg,transparent,#000 18%,#000 100%);pointer-events:none}.brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1;cursor:pointer;min-width:0}.brand-mark{display:grid;place-items:center;width:50px;height:50px;font-size:35px;color:#e3b887;transform:rotate(-14deg);border-radius:11px;text-shadow:0 1px 0 #fff2,0 3px 9px #0003}.brand strong{display:block;font-size:23px;font-family:'Yu Mincho','Hiragino Mincho ProN',serif;letter-spacing:.13em;white-space:nowrap}.brand small{display:block;font-size:10px;letter-spacing:.1em;color:#e4c5af;white-space:nowrap;margin-top:2px}.header-spacer{flex:1}.save-status{font-size:10px;white-space:nowrap;color:#dfc6b5;z-index:2}.header-icon,.avatar{z-index:2;border:1px solid #98745d80;background:#442d24a0;color:#ead1b9;border-radius:999px;width:32px;height:32px;font-size:18px;display:grid;place-items:center;position:relative}.header-icon:hover,.avatar:hover{background:#70503d}.notification-dot{width:7px;height:7px;background:#e78b67;position:absolute;top:2px;right:3px;border-radius:50%;border:1px solid #4d2e20}.avatar{width:37px;height:37px;background:#d8b99e;color:#6e4835}.app-body{display:flex;min-height:0;flex:1;background:linear-gradient(180deg,#f4e6d7,#f5ebdf)}.sidebar{width:225px;flex:none;display:flex;flex-direction:column;background:linear-gradient(180deg,#fbf2e7 0%,#fffaf3 16%,#f9efe2 100%);border-right:1px solid #dbc4ab;padding:18px 10px 0;min-height:0;overflow:auto;scrollbar-width:thin;position:relative;box-shadow:inset -1px 0 0 #fff6, inset 0 1px 0 #fff9}.side-section-title,.side-group-label{padding:0 6px;color:#795039;font-weight:900;font-size:14px;display:flex;align-items:center;justify-content:space-between;letter-spacing:.01em;margin-bottom:11px}.small-plus{background:#fffaf1;border:1px solid #d9bda0;border-radius:50%;font-size:17px;line-height:1;width:29px;height:29px;color:#97633d;display:inline-grid;place-items:center;padding:0;flex:none;box-shadow:0 1px 0 #fff inset,0 2px 5px #5b39210b}.project-list{display:grid;gap:7px}.project-item{display:flex;gap:9px;align-items:center;text-align:left;width:100%;background:#fffcf7;border:1px solid #ead8c5;border-radius:12px;padding:8px;min-height:59px;box-shadow:0 2px 7px #5c3f2b05}.project-item:hover{background:#fff2e4}.project-item.current{border-color:#c8a583;background:#f7e7d6}.project-thumb{flex:none;width:43px;height:39px;border-radius:6px;background:linear-gradient(#332c32,#9a6951);object-fit:cover}.project-text{flex:1;min-width:0}.project-name{font-size:11px;font-weight:850;display:block;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-tag{display:inline-block;font-size:9px;background:#f7d9a9;border:1px solid #e9be81;border-radius:12px;padding:0 7px;margin-top:3px}.side-row{display:flex;align-items:center;gap:10px;padding:8px 12px;margin:1px 0;background:transparent;border:0;text-align:left;width:100%;border-radius:10px;color:#7d5843;font-weight:700;font-size:12px}.side-row>span:first-child{font-size:16px;width:18px;text-align:center;color:#a6754e}.side-row:hover{background:#f3e5d6;box-shadow:inset 0 1px 0 #fff8}.side-count{margin-left:auto;border-radius:14px;background:#f0e3d3;padding:1px 8px;color:#8c684f;font-size:10px}.side-line{height:1px;background:#ead9c8;margin:15px 5px 19px}.side-group-label{margin-bottom:5px}.sidebar-spacer{flex:1;min-height:20px}.coffee-scene{min-height:156px;margin:14px -10px 0;position:relative;background:linear-gradient(180deg,transparent 0%,transparent 12%,#f7ecdf 12.1%,#ead2bc 100%),url('assets/sidebar-corner.png') left bottom/cover no-repeat;display:block;overflow:hidden;border-top:1px solid #ebddcf}.coffee-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,transparent 45%,#d7b2931f 100%);pointer-events:none}.coffee-scene .books,.coffee-scene .cup,.coffee-scene .watch{display:none}.side-footer{font-size:8px;letter-spacing:.05em;color:#ac8b74;text-align:center;background:linear-gradient(180deg,#f1dfcd,#ead4bf);padding:7px 3px;border-top:1px solid #e3cbb3}.work-frame{min-width:0;min-height:0;display:flex;flex-direction:column;flex:1;background:linear-gradient(180deg,#f9f1e7,#f5ebdf);box-shadow:inset 0 1px 0 #fff9}.main-tabs{height:73px;flex:none;background:linear-gradient(180deg,#f8ecde,#f9f2ea);padding:10px 16px 9px;display:flex;gap:6px;align-items:center;border-bottom:1px solid #e8d7c5;overflow-x:auto;scrollbar-width:thin;box-shadow:inset 0 1px 0 #fff9}.tab-button{white-space:nowrap;padding:11px 15px;background:#fff9f1;border:1px solid #e3cbb5;border-radius:10px;color:#855e46;font-size:12px;font-weight:850;display:flex;align-items:center;gap:8px;box-shadow:0 2px 4px #6c41290a}.tab-button:hover{background:#f5e3d0}.tab-button.active{background:linear-gradient(#85583f,#68402e);border-color:#85543b;color:#fffaf2;box-shadow:0 3px 9px #6e47313c}.tab-icon{font-size:17px}.main-tabs .export-main{margin-left:auto;background:linear-gradient(#8b593e,#5d392a);color:#fff5e8;padding:11px 20px;border:1px solid #774f39;border-radius:10px;white-space:nowrap;font-weight:850}.workspace{flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 366px;padding:0 10px 10px 11px;gap:9px;background:linear-gradient(180deg,#f6eee5,#f4eade)}.center-panel,.inspector{min-width:0;min-height:0;background:linear-gradient(180deg,#fffdf8 0%,#fffaf3 100%);border:1px solid #dfc9b1;border-radius:18px;box-shadow:0 8px 22px #60412a14,inset 0 1px 0 #fff9;overflow:hidden}.center-panel{display:flex;flex-direction:column}.view-header{padding:17px 17px 13px;flex:none;min-height:85px;background:linear-gradient(180deg,#fffdf9,#fff9f2);border-bottom:1px solid #efe0cf}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.view-title{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:900;color:#704731}.view-title .big-icon{font-size:21px;color:#97633d}.view-subtitle{font-size:11px;color:#a1846f;margin-top:3px;margin-left:2px}.heading-tools,.button-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tiny-button,.soft-button,.icon-button{border:1px solid #e2cdb7;border-radius:9px;color:#865d41;background:#fffaf2;padding:7px 11px;font-size:11px;font-weight:800;white-space:nowrap}.tiny-button:hover,.soft-button:hover,.icon-button:hover{background:#f5e7d5}.icon-button{padding:6px 9px;font-size:16px}.primary-button{border:1px solid #805139;border-radius:9px;color:#fffaf3;background:linear-gradient(#926246,#68422f);padding:9px 14px;font-weight:850;font-size:12px;white-space:nowrap}.primary-button:hover{background:#5b3b2d}.primary-button.warn{background:#a35845}.primary-button:disabled{opacity:.45}.view-content{min-height:0;flex:1;overflow:auto;padding:0 12px 12px}.board-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:12px}.filter-chip{border:1px solid #e2ceba;border-radius:8px;padding:7px 12px;background:#fffaf3;color:#815b43;font-size:11px;font-weight:800}.filter-chip.active{background:#75503d;color:#fff7ef;border-color:#75503d}.board-viewport{height:100%;min-height:480px;overflow:auto;position:relative;background-color:#fcf8f1;background-image:radial-gradient(#d1bba58a 1px,transparent 1px),linear-gradient(180deg,#fffdf9,#fbf6ee);background-size:17px 17px,100% 100%;border:1px solid #eadacb;border-radius:18px;box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px #fff8;scrollbar-color:#d6baa1 transparent;overscroll-behavior:contain}.board-stage{position:relative}.board-world{position:absolute;left:0;top:0;transform-origin:0 0}.edge-layer{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.node-card{position:absolute;width:170px;min-height:132px;display:flex;flex-direction:column;overflow:visible;cursor:grab;background:linear-gradient(180deg,#fffdf8,#fff7eb);border:1.6px solid #d2a985;border-radius:16px;box-shadow:0 7px 16px #53372220;user-select:none}.node-card:active{cursor:grabbing}.node-card.selected{border:3px solid #e3994c;box-shadow:0 0 0 4px #f9d09777,0 7px 19px #6e422a33}.node-card.hidden-node{opacity:.28;pointer-events:none}.node-card img{width:100%;height:67px;object-fit:cover;border-radius:13px 13px 0 0;pointer-events:none}.node-info{padding:8px 11px 10px}.node-title{font-size:15px;font-weight:950;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-desc{font-size:10px;line-height:1.4;margin-top:4px;color:#816958;white-space:pre-line;max-height:42px;overflow:hidden}.node-card.ending{border-color:#d7a66e}.node-card.ending.pink{background:#fff3ef;border-color:#d88c86}.node-card.flag,.node-card.unlock{min-height:0;width:190px;background:#fff8f0;border-radius:12px}.node-card.flag .node-title,.node-card.unlock .node-title{font-size:13px}.node-card.flag .node-info,.node-card.unlock .node-info{padding:8px 12px}.node-card.flag.pink{background:#fff0ed;border-color:#dda6a1}.node-card.flag.blue{background:#eef3fd;border-color:#aebdd9}.node-card.flag.green{background:#f3f6e5;border-color:#afbd81}.node-card.unlock{background:#fff9ed;border-color:#c49b67}.node-card .node-icon{font-size:15px;margin-right:4px}.node-card .node-badge{position:absolute;right:-10px;top:-13px;border-radius:50%;display:grid;place-items:center;width:25px;height:25px;background:#eda151;color:white;font-size:15px;font-weight:900;box-shadow:0 2px 7px #9d693f4b}.board-bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 0;font-size:10px;color:#947862}.board-legend{display:flex;gap:9px;flex-wrap:wrap}.board-zoom{display:flex;gap:3px;align-items:center}.zoom-label{min-width:42px;text-align:center;font-weight:800}.board-add-menu{display:flex;gap:7px;margin:11px 0}.node-context{display:flex;gap:3px;position:absolute;top:-18px;left:8px}.node-context span{background:#6a4635;border-radius:5px;padding:1px 6px;color:white;font-size:9px}.inspector{display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin;padding:16px 15px 19px}.inspector-title{font-size:16px;font-weight:900;display:flex;align-items:center;gap:10px;margin-bottom:13px}.inspector-title .detail-ico{color:#9a704e;font-size:19px}.inspect-card{background:linear-gradient(180deg,#fffefa,#fffaf4);border:1px solid #eadacc;border-radius:14px;padding:14px;margin-bottom:11px;box-shadow:inset 0 1px 0 #fff}.inspect-node-head{display:flex;gap:11px;align-items:center}.inspect-node-head img{height:74px;width:94px;border-radius:9px;object-fit:cover;flex:none}.inspect-name{font-weight:950;font-size:16px}.inspect-type{background:#f5e6d5;border:1px solid #dfc4a7;border-radius:15px;font-size:10px;padding:2px 10px;display:inline-block;margin-top:5px;color:#936842}.inspect-tabs{display:flex;gap:5px;margin:13px 0}.inspect-tabs button{flex:1;padding:8px 5px;background:#fff8ef;border:1px solid #e6cfbb;border-radius:8px;color:#815d45;font-size:11px;font-weight:850}.inspect-tabs button.active{background:#8b583b;color:#fff7ea;border-color:#8b583b}.field-label{display:block;font-weight:900;font-size:11px;color:#77513a;margin:11px 0 5px}.field-hint{color:#a68b77;font-size:10px;margin-top:3px}.section-inspector{margin:15px 0 6px;border-top:1px solid #e9d9c8;padding-top:11px}.section-inspector h3{font-size:13px;font-weight:900;margin-bottom:9px}.outgoing-row,.condition-row,.mini-row{display:flex;align-items:center;gap:6px;border:1px solid #ead7c4;border-radius:10px;padding:8px;background:#fffaf4;margin-bottom:6px;font-size:11px}.outgoing-row .target-chip{background:#f5e4d4;border-radius:6px;padding:3px 7px;font-weight:850;margin-left:auto;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outgoing-row button,.condition-row button{background:transparent;border:0;color:#a16d4f;font-size:14px}.small-section-text{font-size:11px;color:#906e57}.inline-controls{display:flex;gap:6px;align-items:center}.inline-controls>*{flex:1}.checkbox-label{display:flex;gap:8px;align-items:center;font-size:11px;margin:7px 0}.checkbox-label input{width:16px;height:16px}.field-split{display:grid;grid-template-columns:1fr 1fr;gap:9px}.field-split .field-label{margin-top:0}.subdued-box{border:1px solid #e6d3bc;background:#fbf2e8;padding:12px;border-radius:9px;font-size:11px;color:#815b40}.inspector-footer{margin-top:auto;padding-top:10px;border-top:1px solid #eadacd;display:flex;gap:8px}.inspector-footer button{flex:1}.empty-note{color:#a28b7a;text-align:center;font-size:12px;padding:30px 15px}.data-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(242px,1fr));gap:12px}.data-card{border:1px solid #e8d5c1;background:linear-gradient(180deg,#fffefa,#fffaf4);border-radius:12px;padding:15px;box-shadow:0 3px 7px #56391b09,inset 0 1px 0 #fff;cursor:pointer}.data-card:hover,.data-card.selected{border-color:#bf916c;box-shadow:0 3px 11px #68492b1b}.card-heading{display:flex;justify-content:space-between;align-items:start;gap:8px;font-size:14px;font-weight:900}.card-subtext{font-size:11px;color:#987d69;margin-top:6px;white-space:pre-line;line-height:1.7}.tag{display:inline-flex;gap:4px;align-items:center;border-radius:20px;padding:3px 9px;font-size:10px;font-weight:850;background:#f0e4d7;color:#805b44}.tag.green{background:#e7f0df;color:#60764f}.tag.pink{background:#fce5e2;color:#b65e56}.tag.blue{background:#e7edf7;color:#67809f}.list-stack{display:flex;flex-direction:column;gap:10px}.data-list-item{display:flex;gap:12px;border:1px solid #e4d0bd;border-radius:12px;padding:13px;background:linear-gradient(180deg,#fffefa,#fffaf4);align-items:center;cursor:pointer}.data-list-item:hover,.data-list-item.selected{background:#fff5e6;border-color:#cba47e}.data-index{background:#f3e5d4;border-radius:9px;padding:8px 12px;font-size:11px;font-weight:900;flex:none}.data-list-item .body{flex:1;min-width:0}.data-list-item .body b{display:block;font-size:13px}.data-list-item .body small{color:#a18978;font-size:11px;display:block}.twin-row{display:grid;grid-template-columns:1fr 34px 1fr;gap:10px;align-items:stretch;margin:12px 0}.compare-card{background:#fffdfa;border:1px solid #e4d1ba;border-radius:11px;padding:15px;min-height:112px}.compare-card h3{font-size:12px;margin-bottom:7px}.compare-card p{font-size:12px;color:#7b6250;white-space:pre-wrap}.compare-arrow{display:grid;place-items:center;color:#a17c5f;font-size:20px}.alert-line{display:flex;gap:9px;align-items:start;padding:11px;background:#fff3e8;border:1px solid #ecccad;border-radius:9px;font-size:11px;color:#905642;margin-bottom:8px}.empty-screen{text-align:center;padding:55px 15px;color:#a18a79}.empty-screen .big{font-size:38px;margin-bottom:8px}.status-bar{padding:9px 11px;border-radius:9px;background:#f5e7d9;color:#896b58;font-size:11px;margin-bottom:9px}.modal-back{position:fixed;inset:0;background:#24160fa8;backdrop-filter:blur(3px);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}.modal{max-width:740px;width:100%;max-height:88dvh;display:flex;flex-direction:column;overflow:hidden;background:#fffaf4;border-radius:17px;border:1px solid #ead5c1;box-shadow:0 25px 100px #170d075a}.modal-head{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:17px 22px;background:#f4e6d8;border-bottom:1px solid #e7d2bf}.modal-head h2{font-size:17px}.modal-head button{font-size:22px;border:0;background:transparent}.modal-body{overflow:auto;padding:19px 22px;scrollbar-width:thin}.modal-foot{display:flex;justify-content:end;gap:9px;padding:14px 22px;border-top:1px solid #ebdbca}.form-row{margin-bottom:13px}.form-row>label{display:block;font-weight:850;font-size:11px;color:#80583d;margin-bottom:5px}.form-row small{font-size:10px;color:#a28976}.choice-line{display:flex;gap:7px;align-items:center;margin:7px 0}.choice-line input{flex:1}.hidden{display:none!important}#toastRoot{position:fixed;bottom:20px;right:20px;z-index:80;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{background:#553729;color:#fff9ee;padding:11px 16px;border-radius:10px;font-size:12px;font-weight:750;box-shadow:0 5px 25px #29170c55;animation:rise .2s ease}.toast.error{background:#a65343}@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.play-shell{background:#fffaf3;border:1px solid #e1cbb5;border-radius:15px;padding:18px}.play-scene{background:linear-gradient(160deg,#55362b,#251917);color:#fff3e5;border-radius:12px;padding:24px;min-height:185px;display:flex;flex-direction:column;justify-content:end;gap:10px}.play-scene h2{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:21px}.play-scene p{white-space:pre-wrap;font-size:13px;color:#f3dbca}.play-choices{display:grid;gap:8px;margin-top:12px}.play-choices button{padding:11px 16px;background:#fffaf5;border:1px solid #d5b99c;border-radius:9px;text-align:left;font-weight:850}.play-choices button:hover{background:#f5e6d6}.play-choices button.blocked{opacity:.55;cursor:not-allowed}.play-flags{margin-top:15px;background:#f6e9da;border-radius:11px;padding:13px}.play-flags h3{font-size:12px;margin-bottom:8px}.play-flag-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;font-size:11px}.play-flag-line input[type=number]{width:85px}.play-history{font-size:11px;color:#90715e;margin-top:13px}.play-hint{font-size:10px;color:#a78a76}.content-paper{background:#fffdf9;border:1px solid #e4d3bf;border-radius:12px;padding:17px;margin-bottom:13px}.content-paper h3{font-size:14px;margin-bottom:7px}.content-paper p{font-size:11px;color:#8f715e;white-space:pre-line}.card-note-box{border:1px solid #e9d4bc;background:#fcf1e4;padding:12px;border-radius:10px;font-size:11px}.padded-bottom{padding-bottom:40px}.bottombar{margin:10px 0;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.kbd{padding:1px 4px;border:1px solid #dcc6ae;border-radius:4px;font-size:10px;background:#f6e8d8}.panel-wide{max-width:1000px;margin:0 auto}.float-mobile-menu{display:none}
@media(max-width:1340px){.sidebar{width:200px}.workspace{grid-template-columns:minmax(0,1fr) 320px}.main-tabs{gap:4px;padding-left:10px}.tab-button{padding:10px 11px;font-size:11px}.inspector{padding:13px}.brand small{display:none}}
@media(max-width:1070px){.sidebar{width:180px}.workspace{grid-template-columns:minmax(0,1fr) 288px}.brand strong{font-size:20px}.main-tabs{height:65px}.side-row{font-size:11px;padding:7px 5px}.save-status{display:none}}
@media(max-width:880px){.float-mobile-menu{display:grid;position:fixed;bottom:19px;left:15px;width:48px;height:48px;border:0;border-radius:50%;background:#684331;color:#fff8f0;font-size:24px;place-items:center;z-index:12;box-shadow:0 6px 19px #3820155c}.sidebar{position:fixed;z-index:15;top:74px;bottom:0;left:0;width:240px;box-shadow:5px 0 25px #4b2e243a;transform:translateX(-110%);transition:transform .18s}.sidebar.show{transform:translateX(0)}.workspace{grid-template-columns:minmax(0,1fr) 290px}.brand strong{font-size:18px}.masthead{padding:0 13px;gap:6px}.brand small{display:none}.brand-mark{width:35px;font-size:26px}.header-icon{width:29px;height:29px}.main-tabs .export-main{padding:9px 13px}}
@media(max-width:700px){.workspace{display:flex;flex-direction:column;overflow:auto;min-height:0}.center-panel{flex:none;min-height:65vh;max-height:75vh}.inspector{flex:none;min-height:230px;overflow:visible}.workspace{gap:11px}.board-viewport{height:450px;min-height:450px}.view-header{padding:11px}.main-tabs{height:57px}.tab-button{padding:8px 10px}.header-icon#notificationButton{display:none}.brand strong{font-size:17px}.view-content{overflow:visible}.center-panel{overflow:auto}.twin-row{grid-template-columns:1fr}.compare-arrow{transform:rotate(90deg)}.modal{max-height:94dvh}.modal-back{padding:7px}}
.view-content.map-layout{display:flex;flex-direction:column;overflow:hidden}.view-content.map-layout .board-viewport{flex:1;height:auto;min-height:180px}.view-content.map-layout .board-filters,.view-content.map-layout .board-bottom-bar,.view-content.map-layout .board-add-menu{flex:none}

/* 2026-11 — timeline dropdown / sortable entries */
.time-input-row{display:flex;align-items:end;gap:9px;margin:6px 0 12px;flex-wrap:wrap}
.time-input-row>label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#8a6249;font-weight:850;min-width:83px;flex:0 0 94px}
.time-input-row>label select{width:100%;padding:8px 11px}
.time-input-row>b{font-size:22px;color:#986a4b;margin-bottom:6px}
.time-preview{display:inline-flex;align-items:center;justify-content:center;min-width:76px;height:38px;padding:6px 11px;background:#f5e8d9;border:1px solid #e3c5a9;border-radius:9px;font-weight:900;font-size:16px;color:#694430;font-variant-numeric:tabular-nums}
.sort-handle{border:1px solid #e9d7c3;background:#f9eee0;color:#a07b61;border-radius:7px;width:27px;height:31px;min-width:27px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:17px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;flex:none;padding:0;line-height:1}
.sort-handle:hover{color:#704834;background:#f0d9c0;border-color:#c99c78}
.sort-handle:active,.is-sorting .sort-handle{cursor:grabbing}
.sort-dragging{opacity:.52;outline:2px dashed #bc8e6b!important;outline-offset:2px}
.sort-drop-target{outline:3px solid #be8358!important;outline-offset:2px;background:#fff3e3!important}
.timeline-sort-row{border-radius:12px;margin-bottom:14px}
.timeline-sort-row .twin-row{margin-left:35px;margin-bottom:0}
.sortable-card{position:relative;padding-top:36px}
.card-sort-handle{position:absolute;left:12px;top:7px;height:25px}
.chapter-sort-item{display:inline-flex;gap:3px;align-items:center;background:#fff8ee;border:1px solid #e6d3c1;border-radius:9px;padding:3px;margin:2px 1px 2px 0}
.chapter-sort-item .filter-chip{margin:0}
.chapter-sort-item .sort-handle{height:28px;width:23px;min-width:23px;border:0;background:transparent}
.project-sort-item{display:flex;gap:3px;align-items:center;border-radius:10px}
.project-sort-item>.sort-handle{width:20px;min-width:20px;height:39px;font-size:15px;background:transparent;border:0}
.project-sort-item .project-item{flex:1;width:calc(100% - 23px)}
.manager-sort-item .sort-handle{margin-right:9px;width:25px;height:25px}
@media(max-width:700px){.time-input-row>label{flex:0 0 80px}.timeline-sort-row .twin-row{margin-left:0}}


/* ===== 2026-11: reference-faithful curved header / sidebar transition ===== */
:root { --side-cut-width:225px; --notch-radius:31px; }
/* The dark region behind the rounded tab bar is intentional: the top left
   of the cream workspace is carved away to expose the study backdrop. */
.app-body{
  position:relative;
  background:linear-gradient(to bottom,#43291e 0 78px,#f5ebdf 78px 100%);
}
.sidebar{
  width:var(--side-cut-width);
  position:relative;
  isolation:isolate;
  background:linear-gradient(to bottom,#fff7ec,#fdf5e9 70%,#f6e7d7);
  padding-top:90px;
  padding-bottom:0;
  overflow-x:hidden;
  box-shadow:inset -1px 0 0 #d8c4ad;
}
.sidebar::before{
  content:"";
  position:absolute;
  z-index:0;
  top:0;left:0;right:0;
  height:77px;
  border-radius:0 0 var(--notch-radius) 0;
  background-image:linear-gradient(to bottom,#27181016,#37241b05),url('assets/header-left-books.jpg');
  background-position:center,center;
  background-repeat:no-repeat;
  background-size:100% 100%,100% 100%;
  box-shadow:inset 0 4px 8px #1d110e12;
  pointer-events:none;
}
.sidebar::after{
  content:"";
  position:absolute;
  z-index:0;
  left:0;right:0;top:77px;height:16px;
  border-radius:17px 0 0 0;
  background:linear-gradient(#fff9f2,#fff7ec);
  pointer-events:none;
}
.sidebar > * {position:relative;z-index:1;}
/* A real upper-left *concave transition*, not just a square header and
   differently colored rectangles. */
.work-frame{
  position:relative;
  z-index:1;
  min-width:0;
  border-radius:var(--notch-radius) 0 0 0;
  overflow:hidden;
  background:#fbf3e9;
  box-shadow:-2px -2px 0 #f8ecde24;
}
.main-tabs{
  border-radius:var(--notch-radius) 0 0 0;
  min-width:0;
  background:linear-gradient(180deg,#fff8ee 0%,#fcf2e7 100%);
  box-shadow:inset 0 1px 0 #fff, 0 2px 7px #69412710;
  padding-left:17px;
}
.small-plus{
  width:29px;height:29px;flex:none;
  display:grid;place-items:center;
  padding:0!important;margin:0;
  line-height:1;font-size:18px;font-weight:400;
  text-align:center;
}
/* The bottom illustration is a real cropped art asset, not Emoji glyphs. */
.coffee-scene{
  display:block;
  min-height:175px;
  margin:10px -10px 0;
  border:0;
  background:#f4e4d5 url('assets/sidebar-corner.jpg') center bottom / cover no-repeat;
  box-shadow:none;
  position:relative;
  flex-shrink:0;
}
.coffee-scene::after{background:linear-gradient(180deg,#fbf2e8 0%,#fbf2e800 20%,transparent 100%)}
.coffee-scene .books,.coffee-scene .cup,.coffee-scene .watch{display:none}
.side-footer{background:#e9d5c3;}
@media(max-width:1340px){:root{--side-cut-width:200px}}
@media(max-width:1070px){:root{--side-cut-width:180px}}
@media(max-width:880px){
  :root{--side-cut-width:240px}
  .sidebar{width:var(--side-cut-width)}
  .work-frame,.main-tabs{border-top-left-radius:17px}
}


/* 左メニュー: スクロールバーのみ非表示。小さな画面ではホイール/タッチでスクロール可能。 */
.sidebar{scrollbar-width:none;-ms-overflow-style:none}
.sidebar::-webkit-scrollbar{display:none;width:0;height:0}


/* ===== 2026-11: fixed top/bottom art in sidebar + scrolling menu only ===== */
.sidebar{
  overflow:hidden;
  border-right:0 !important;
  box-shadow:none !important;
  padding-top:0 !important;
}
.sidebar-scroll{
  position:relative;
  z-index:1;
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:90px 10px 10px;
}
.sidebar-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.sidebar-bottom-fixed{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  margin-top:auto;
}
.sidebar-spacer{display:none !important}
.coffee-scene{margin-top:0 !important}
.work-frame{
  margin-left:-1px;
  box-shadow:none !important;
}
.main-tabs{
  box-shadow:inset 0 1px 0 #fff, 0 2px 7px #69412710 !important;
}
.workspace{padding-left:0 !important}
@media(max-width:880px){
  .sidebar{box-shadow:5px 0 25px #4b2e243a !important}
  .sidebar-scroll{padding-top:90px}
  .work-frame{margin-left:0}
  .workspace{padding-left:11px !important}
}

/* The top artwork is OUTSIDE the scrolling content. Entries disappear at the
   boundary instead of appearing on top of the stationary header image. */
.sidebar-top-fixed{
  position:relative;
  z-index:1;
  height:93px;
  min-height:93px;
  flex:0 0 93px;
  pointer-events:none;
}
.sidebar-scroll{
  padding:0 10px 10px !important;
  overscroll-behavior:contain;
  overflow-y:auto;
}
@media(max-width:880px){
  .sidebar-scroll{padding-top:0 !important}
}

/* ===== 7 mystery-planning modules — same Chocolate × Vanilla design system ===== */
.main-tabs{gap:5px}.main-tabs .tab-button{padding:9px 12px;flex:none}.main-tabs .export-main{position:sticky;right:0;box-shadow:-9px 0 12px #f8ede6aa;z-index:2}
.board-new-shell{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}
.board-new-shell .board-filters,.board-new-shell .bottombar{flex:none}
.board-new-shell .board-filters{margin:0;gap:6px}
.evidence-viewport{min-height:150px!important;height:auto!important;flex:1!important;background-color:#f9f2e7!important;background-image:radial-gradient(#cdb8a4aa 1px,transparent 1px),linear-gradient(180deg,#fcf7ef,#f6eddf)!important;background-size:19px 19px,100% 100%!important}
.evidence-stage{position:relative;min-height:800px}
.evidence-edges{position:absolute;inset:0;overflow:visible;pointer-events:none}
.relationship-line text{font-family:'Yu Gothic UI','Noto Sans JP',sans-serif;font-weight:800;pointer-events:none}
.relationship-hit{cursor:pointer;pointer-events:stroke}
.evidence-node{position:absolute;width:195px;min-height:111px;max-height:145px;background:linear-gradient(165deg,#fffdf7,#fff4e8);border:1.5px solid #ccae93;border-radius:13px;box-shadow:0 6px 17px #5a34291f,0 1px #fff inset;cursor:grab;user-select:none;touch-action:none;overflow:hidden;color:#624536}
.evidence-node:hover{border-color:#ad7755;box-shadow:0 8px 20px #5a34292c}
.evidence-node.selected{outline:3px solid #e2ae7f;border-color:#925b3e}
.evidence-node-top{background:#ead8c5;padding:3px 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dac1aa}
.evidence-node-category{font-size:10px;font-weight:900;color:#8d674a}
.evidence-node .grab-icon{font-size:13px;opacity:.65}
.evidence-node-main{display:flex;align-items:center;gap:9px;padding:11px}
.evidence-node-main img,.evidence-node-symbol{width:51px;height:58px;border-radius:8px;flex:none;object-fit:cover}
.evidence-node-symbol{background:#efe0ce;display:grid;place-items:center;font-size:25px;color:#ad855f}
.evidence-node-main>div{overflow:hidden;min-width:0;flex:1}
.evidence-node-main b{font-size:12px;display:block;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.evidence-node-main small{font-size:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#987b68}
.ext-action-stack{display:grid;gap:8px;margin:12px 0}
.ext-detail-image{width:100%;max-height:170px;object-fit:cover;border-radius:10px}
.ext-select-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:11px}
.ext-select-row label{color:#805c45;font-size:11px;font-weight:800;min-width:200px}
.ext-select-row select{margin-top:4px}
.ext-release-item{margin-bottom:7px}.ext-release-item .body small{line-height:1.6}
.ext-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:14px}
.ext-stat{background:linear-gradient(#fffbf5,#f9f1e7);border:1px solid #e5d1be;border-radius:11px;text-align:center;padding:12px 4px;box-shadow:0 2px 8px #6a493311}
.ext-stat strong{display:block;font-size:23px;font-weight:900;color:#8f5f43;line-height:1.3}
.ext-stat span{font-size:10px;color:#987a68}.ext-stat.danger strong{color:#b25d54}.ext-stat.green strong{color:#62846a}
.ext-issue{display:flex;gap:11px;padding:12px 13px;background:#fffbf5;border:1px solid #e9d7c6;border-radius:11px;align-items:start}
.ext-issue.error{background:#fff0e9;border-color:#e4b9ae}.ext-issue.warning{background:#fff8e9;border-color:#ebd5ad}
.ext-issue .ext-issue-symbol{font-size:20px;color:#a96052;font-weight:900;flex:none}
.ext-issue b{display:block;color:#80553e;font-size:11px;margin-bottom:3px}.ext-issue p{font-size:11px;color:#806454}
.ext-section-title{font-size:13px;margin:16px 0 10px;padding-left:4px}
.ext-checkline{display:flex;gap:9px;align-items:center;background:#fff9f0;border:1px solid #ead8c5;border-radius:8px;margin:6px 0;padding:8px 10px;font-size:11px;cursor:pointer}
.ext-checkline input{width:16px;height:16px;flex:none}
.ext-hyp-row{background:#fffdf9;border:1px solid #e6d2be;border-radius:13px;padding:13px 15px;box-shadow:0 3px 10px #64452c0b}
.ext-hyp-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ext-hyp-control{display:grid;grid-template-columns:128px minmax(0,1fr);gap:10px;align-items:center}
.ext-hyp-control textarea{resize:vertical;min-height:51px;font-size:11px}
.ext-progress{height:6px;background:#f2e1d1;border-radius:99px;overflow:hidden;margin-top:13px}
.ext-progress span{display:block;height:100%;background:linear-gradient(90deg,#9b6e55,#c69063);transition:width .2s}
.ext-photo-card{display:flex;flex-direction:column;gap:7px;text-align:left;min-width:0}
.ext-photo-card img{height:130px;width:100%;object-fit:contain;background:#eee2d6;border-radius:10px}
.ext-photo-card b{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ext-photo-card small{color:#ad8d76}
.ext-image-preview{max-width:100%;width:100%;max-height:230px;object-fit:contain;background:#f8efe6;border:1px solid #ead4bc;border-radius:12px;margin-bottom:12px}
#inspector input[data-xfield],#inspector textarea[data-xfield],#inspector select[data-xfield]{width:100%}
#viewContent .data-card[data-ex]{cursor:pointer}
@media(max-width:1180px){.ext-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-tabs .tab-button{padding:9px 10px;font-size:10px}}
@media(max-width:700px){.board-new-shell{min-height:515px}.evidence-viewport{min-height:380px!important}.ext-hyp-control{grid-template-columns:1fr}.main-tabs .export-main{position:relative;right:auto}.ext-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Keep the export action fixed while mode tabs scroll independently. */
.top-work-tabs{display:flex;align-items:stretch;min-width:0;flex:none;height:73px;background:linear-gradient(180deg,#fff8ee,#fcf2e7);border-bottom:1px solid #e8d7c5;border-radius:var(--notch-radius) 0 0 0}
.top-work-tabs .main-tabs{flex:1;min-width:0;height:auto;border:0;border-radius:var(--notch-radius) 0 0 0;padding:10px 6px 9px 17px;overflow:auto hidden;scrollbar-width:none;white-space:nowrap}
.top-work-tabs .main-tabs::-webkit-scrollbar{display:none}
.top-work-tabs>.export-main{align-self:center;flex:none;margin:0 14px 0 7px;z-index:2;background:linear-gradient(#8b593e,#5d392a);color:#fff5e8;padding:11px 20px;border:1px solid #774f39;border-radius:10px;font-weight:850;white-space:nowrap;box-shadow:0 4px 12px #5636201d}
.top-work-tabs>.export-main:hover{background:#5d392a}
@media(max-width:1070px){.top-work-tabs{height:65px}}
@media(max-width:700px){.top-work-tabs{height:57px}.top-work-tabs>.export-main{padding:8px 10px;margin-right:8px}}
.ext-mode-selector{display:flex;gap:3px;border-radius:9px;background:#eaddcf;padding:3px}
.ext-mode-selector button{font-size:11px;font-weight:800;padding:8px 12px;border-radius:7px;border:0;background:transparent;color:#896a55;white-space:nowrap}
.ext-mode-selector button.active{background:#fff9f1;color:#664532;box-shadow:0 1px 5px #6e463022}
