:root{--bg:#faf6ef;--paper:#fffdf9;--cream:#fff7eb;--vanilla:#f9eddd;--line:#e9dacc;--line2:#f0e5db;--brown:#4e342b;--brown2:#6b4a3d;--caramel:#b77955;--caramel2:#d6a57e;--ink:#4d392f;--muted:#9b8072;--green:#61816b;--red:#b35b50;--shadow:0 10px 30px #62432b0d}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:13px;line-height:1.6;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer;transition:background .15s,border-color .15s}button:disabled{opacity:.43;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ddb18f;outline-offset:2px}button:active:not(:disabled){transform:translateY(1px)}[hidden],.hidden{display:none!important}
.app{min-height:100dvh;display:grid;grid-template-rows:71px minmax(0,1fr)}.header{display:flex;gap:20px;align-items:center;background:var(--brown);color:#fff4e7;padding:0 27px;border-bottom:3px solid #d3a079}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-icon{height:41px;width:41px;border-radius:12px;background:#d6a67f;color:#4e342b;display:grid;place-items:center;font-size:23px;box-shadow:inset 0 0 0 1px #f4d0aa7a}.brand-name{font-weight:900;font-size:18px;letter-spacing:.08em;line-height:1.3}.brand-sub{font-size:9px;letter-spacing:.17em;color:#e4bfaa}.header-note{border-left:1px solid #917362;padding-left:18px;font-size:11px;color:#e1c4b4}.spacer{flex:1}.header-btn{background:transparent;border:1px solid #94735d;border-radius:9px;color:#fff2e6;padding:8px 13px;font-size:12px;font-weight:750;white-space:nowrap}.header-btn:hover{background:#6c4b3c}.header-btn.filled{background:#dab18e;color:#55392c;border-color:#dab18e}.header-btn.filled:hover{background:#e8c19b}
.layout{display:grid;grid-template-columns:252px minmax(410px,1fr) 321px;min-height:0;height:calc(100dvh - 71px)}.sidebar{background:#f8f0e6;border-right:1px solid var(--line);padding:22px 15px;overflow:auto;min-width:0}.caps{font-size:10px;color:#816353;letter-spacing:.1em;font-weight:900;margin:0 2px 11px}.drop{border:2px dashed #d8b89e;border-radius:14px;padding:23px 12px;text-align:center;background:#fffaf3;color:#8c6b58;transition:.15s}.drop.drag{background:#f2dfcb;border-color:#b77955}.drop-icon{font-size:28px;color:#c18a63;line-height:1}.drop strong{display:block;font-size:12px;margin:5px 0 4px}.drop small{display:block;color:#a58a79;font-size:10px}.upload-btn{margin-top:12px;background:var(--brown2);color:white;border:0;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:800}.upload-btn:hover{background:var(--brown)}.file-head{display:flex;justify-content:space-between;align-items:center;margin:24px 2px 10px}.file-count{background:#ead9c8;color:#906f5b;border-radius:99px;padding:2px 8px;font-size:10px;font-weight:800}.file-list{display:grid;gap:7px}.file-item{width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:12px;display:flex;align-items:center;gap:10px;padding:10px 9px;color:#805e4e;min-width:0;cursor:pointer}.file-item:hover{background:#fff8f0}.file-item.active{background:#fffdfa;border-color:#e3cbb7;box-shadow:0 3px 10px #593b2610}.file-icon{flex:0 0 auto;width:33px;height:35px;background:#eee0d0;border-radius:10px;display:grid;place-items:center;font-weight:900;font-size:10px;color:#99694c}.file-item.active .file-icon{background:#dfb996;color:#593c2c}.file-body{min-width:0;flex:1}.file-name{font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-sub{font-size:10px;color:#a1887a}.remove{border:0;background:transparent;color:#ae9181;border-radius:6px;padding:3px 6px;font-size:15px}.remove:hover{background:#f4e2d8;color:#ac4e44}.sidebar-bottom{border-top:1px solid #e7d7c8;margin-top:22px;padding-top:18px}.muted{color:var(--muted);font-size:11px}.side-help{font-size:10px;color:#a58b7d;line-height:1.9;margin-top:14px}.side-help strong{color:#866452}.ghost-btn{border:1px solid #dfc7b3;background:#fff9f1;border-radius:9px;color:#89664f;padding:9px 11px;font-size:11px;font-weight:800}.ghost-btn:hover{background:#fbeada}.full{width:100%}
.main{padding:24px 25px 38px;overflow:auto;min-width:0;min-height:0}.heading{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:17px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.13em;color:#b07a5d}.h1{font-size:22px;font-weight:900;color:#4d3428;margin:3px 0 4px;overflow-wrap:anywhere;line-height:1.4}.subtitle{font-size:11px;color:#998173}.badge{background:#f2e5d6;color:#93674f;font-size:10px;font-weight:800;border-radius:30px;padding:5px 10px;white-space:nowrap}.panel{border:1px solid #e8d8ca;border-radius:16px;background:var(--paper);box-shadow:var(--shadow);overflow:hidden;margin-bottom:17px}.panel-title{background:#fbf5ec;border-bottom:1px solid #ede0d3;padding:12px 17px;font-size:12px;font-weight:900;color:#73513d;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-title small{font-weight:500;font-size:10px;color:#ab9180}.panel-inner{padding:17px}.wave-canvas{display:block;width:100%;height:205px;touch-action:none;cursor:crosshair;border:1px solid #e5d5c7;border-radius:11px;background:#fffaf4}.flow-legend{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:6px;margin-bottom:10px}.flow-label{border-radius:8px;display:flex;justify-content:center;align-items:center;gap:8px;padding:6px 4px;font-size:11px;color:#78594b;background:#f2e7d9}.flow-label span{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;font-size:9px;background:#fff4e4;font-weight:900}.flow-label.kept-a{background:#eaf1e8;color:#567b60}.flow-label.removed{background:#f5e3d8;color:#ae7459}.flow-label.kept-b{background:#f4e8d9;color:#9b6b4e}.wave-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:10px;color:#967c6a;margin:9px 1px 0}.color-dot{display:inline-block;height:9px;width:9px;margin-right:5px;border-radius:2px;background:#ad8d7c}.color-dot.keep{background:#94735c}.color-dot.remove-dot{background:#e9bca3}.color-dot.green,.inline-dot.green{background:#638b72}.color-dot.orange,.inline-dot.orange{background:#bf825c}.color-dot.cursor-dot{background:#593b72}.inline-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.wave-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#8c7564;margin-top:10px}.wave-footer strong{color:#6e4c3d;font-size:12px}.range-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:15px}.range-item{background:#fbf6ee;padding:13px;border-radius:11px;border:1px solid #eee0d2}.range-top{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-bottom:8px}.range-name{font-weight:900;font-size:11px;color:#7b5a48}.range-tag{font-size:9px;font-weight:800;color:#ae8c76}.time-control{display:flex;gap:5px;align-items:center}.number{width:100%;min-width:0;height:37px;border:1px solid #dfc8b6;border-radius:8px;background:white;color:#51382e;text-align:right;padding:0 9px;font-variant-numeric:tabular-nums;font-size:15px;font-weight:750}.stepper{width:31px;min-width:31px;height:37px;border-radius:8px;background:#f3e8dc;border:1px solid #e5d1bf;color:#8a6855;font-weight:900}.stepper:hover{background:#ebd2bd}.time-unit{font-size:11px;color:#a48e81}.mark-btn{border:0;background:transparent;color:#98735d;font-size:10px;margin:8px 0 0;padding:2px;font-weight:800;display:block}.mark-btn:hover{color:#573b2f;text-decoration:underline}.detail-head{display:flex;align-items:center;gap:8px;margin-top:17px;margin-bottom:8px;flex-wrap:wrap}.detail-head strong{font-size:11px;color:#74533f;margin-right:auto}.detail-head label{font-size:10px;color:#9c806f}.mini-slider{width:105px;accent-color:#ab7957}.detail-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-box{border:1px solid #e9ded2;border-radius:10px;padding:9px;background:#fffdf8}.detail-box-head{display:flex;justify-content:space-between;color:#927766;font-size:10px;font-weight:800;margin-bottom:5px}.detail-box-head strong{color:#785343}.detail-canvas{width:100%;height:92px;display:block;touch-action:none;cursor:crosshair;border-radius:6px;background:#fcf6ed}.detail-caption{color:#b09687;font-size:9px;margin-top:4px}.seam-visual{border:1px solid #eadbcc;background:#fffaf4;border-radius:11px;overflow:hidden}.seam-canvas{display:block;width:100%;height:143px}.seam-caption{display:flex;gap:9px;justify-content:space-between;align-items:center;padding:7px 11px;background:#f9eddf;color:#92735f;font-size:10px;flex-wrap:wrap}.seam-caption strong{color:#77523f}.accent-green{color:#638b72!important}.accent-orange{color:#bf825c!important}.arrow{color:#ae8067;margin:0 4px}.play-row{display:flex;flex-wrap:wrap;gap:9px}.play-btn{border:1px solid #dac5b1;background:#fffaf2;color:#74513e;border-radius:9px;padding:10px 12px;font-size:11px;font-weight:850;display:flex;align-items:center;gap:8px}.play-btn:hover{background:#f7e8d7}.play-btn.primary{background:#6e4b3a;color:#fff9f0;border-color:#6e4b3a}.play-btn.primary:hover{background:#573b2f}.play-btn.active{outline:2px solid #cb8e62;outline-offset:1px}.transport{display:flex;align-items:center;gap:11px;margin:13px 0 0}.transport input{flex:1;min-width:20px;accent-color:#987157}.transport .mono{font-size:11px;font-variant-numeric:tabular-nums;color:#886b58;font-weight:800;min-width:49px}.list-note{padding:12px 14px;border:1px solid #ebd9c5;background:#fff8ec;border-radius:10px;font-size:11px;color:#8c6a55;margin-top:12px}.empty-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:350px;background:#fffdf9;border:1px dashed #e1c9b3;border-radius:15px;color:#9d806e;padding:25px}.empty-icon{width:64px;height:64px;background:#f4e4d2;border-radius:19px;font-size:34px;display:grid;place-items:center;margin-bottom:13px}.empty-panel strong{font-size:16px;color:#74523f;margin-bottom:5px}.empty-panel p{max-width:410px}
.settings{background:#f8f0e7;border-left:1px solid var(--line);padding:23px 19px 30px;min-width:0;overflow:auto;min-height:0}.settings h2{font-size:14px;margin:0;color:#644839;letter-spacing:.03em}.settings .hint{font-size:10px;color:#a18a7c;margin:2px 0 20px}.settings-card{background:#fffdf9;border:1px solid #e5d5c7;border-radius:13px;padding:17px 15px;margin-bottom:14px}.settings-title{font-weight:900;font-size:11px;color:#765341;letter-spacing:.03em;margin-bottom:13px;display:flex;justify-content:space-between;align-items:center}.tag{font-size:9px;color:#ad805d;background:#faeedf;border-radius:5px;padding:2px 6px}.form-label{font-size:11px;font-weight:800;color:#896b5a;display:flex;justify-content:space-between;margin-bottom:7px;gap:7px}.form-label strong{color:#6f4b3a}.slider{width:100%;height:6px;accent-color:#af7552;cursor:pointer;margin:0 0 7px}.slider-scale{display:flex;justify-content:space-between;color:#b0988a;font-size:9px}.form-select{border:1px solid #e2ceb9;color:#795a48;background:white;border-radius:8px;padding:9px 10px;width:100%;font-size:11px;font-weight:700}.form-group{margin-bottom:17px}.form-group:last-child{margin-bottom:0}.setting-foot{color:#a38a7a;font-size:10px;line-height:1.75;margin-top:7px}.top-note{margin-top:-5px;margin-bottom:10px}.small-primary{background:#7b5642;border:0;border-radius:8px;color:white;font-size:11px;font-weight:850;padding:9px 12px}.small-primary:hover{background:#5f4335}.preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.preset{padding:8px 3px;background:#fff9f0;border:1px solid #e3ccb7;border-radius:8px;color:#845c46;font-size:11px;font-weight:800}.preset:hover{background:#f0decb}.custom-target{display:flex;align-items:center;gap:7px;margin-top:12px}.custom-target label{font-size:10px;white-space:nowrap;color:#927866}.custom-target .number{font-size:12px;height:33px}.custom-target .small-primary{white-space:nowrap;height:33px;padding:7px 10px}.bpm-number{text-align:left;font-size:12px}.check-line{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:800;color:#825f4b;cursor:pointer}.check-line input{accent-color:#9c704e;width:15px;height:15px}.summary{border:1px solid #dec3ad;border-radius:13px;padding:17px 16px;background:linear-gradient(140deg,#fffaf4,#f2dfce);margin:17px 0}.summary-kicker{font-size:10px;font-weight:900;color:#926e58}.summary-time{font-size:30px;font-weight:900;color:#644335;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.7;margin-bottom:4px}.summary-line{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#987a67;padding:4px 0}.summary-line strong{color:#755441;font-variant-numeric:tabular-nums}.summary-line.separator{border-top:1px solid #e7d0bd;margin-top:6px;padding-top:8px}.export-wrap{display:grid;gap:10px}.export-button{padding:13px 8px;border:0;border-radius:10px;background:#bc855f;color:#fffdf7;font-weight:900;font-size:12px;box-shadow:0 4px 12px #aa775c23}.export-button:hover{background:#a66c4e}.export-button.dark{background:#60463a}.export-button.dark:hover{background:#49372f}.progress{width:100%;height:7px;border-radius:7px;background:#e9d6c3;overflow:hidden}.progress>div{width:0%;height:100%;background:#be815d;transition:width .12s}.status{font-size:10px;color:#9b8172;min-height:26px;line-height:1.55}.file-input{display:none}.toastbox{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);display:grid;gap:7px;z-index:30;pointer-events:none;max-width:min(90vw,500px)}.toast{background:#594136;color:#fff4e7;border:1px solid #8c6b55;border-radius:12px;padding:10px 16px;font-size:11px;box-shadow:0 10px 30px #442b1a40;text-align:center}.toast.error{background:#a14d45}.modal-mask{position:fixed;inset:0;background:#2c1d16a9;display:grid;place-items:center;z-index:20;padding:20px}.modal{width:min(610px,100%);max-height:90vh;overflow:hidden;display:flex;flex-direction:column;background:#fffaf3;border:1px solid #e7d1bd;border-radius:19px;box-shadow:0 20px 80px #1a0c0875}.modal-title{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;font-size:17px;font-weight:900;color:#644635;border-bottom:1px solid #eedfce;background:#fff4e6}.modal-title button{border:0;background:transparent;font-size:25px;color:#88634d;padding:0 8px}.modal-content{padding:18px 23px 27px;overflow:auto;color:#876c5b;font-size:12px;line-height:1.9}.modal-content h3{font-size:13px;color:#70503d;margin:19px 0 4px}.modal-content h3:first-child{margin-top:0}.modal-content p{margin:4px 0 10px}.modal-content strong{color:#604232}
@media(max-width:1170px){.layout{grid-template-columns:226px minmax(0,1fr) 286px}.main{padding:19px 15px 30px}.settings{padding:20px 13px}.header{padding:0 17px}.header-note{display:none}}
@media(max-width:920px){.app{display:block}.header{height:auto;min-height:68px;padding:10px 15px}.layout{height:auto;display:grid;grid-template-columns:minmax(0,1fr) 310px}.sidebar{grid-column:1 / -1;border-right:0;border-bottom:1px solid var(--line);padding:12px 15px}.sidebar>.caps{display:none}.drop{padding:10px}.drop-icon{display:none}.drop strong,.drop small{display:inline;margin-right:7px}.upload-btn{margin-top:0}.file-head{margin:10px 0 5px}.file-list{display:flex;overflow-x:auto;gap:6px}.file-item{min-width:190px;max-width:250px}.sidebar-bottom{margin-top:10px;padding-top:8px}.sidebar-bottom .side-help{display:none}.main{grid-column:1;grid-row:2}.settings{grid-column:2;grid-row:2}.panel-title small{display:none}}
@media(max-width:680px){.header{gap:9px;flex-wrap:wrap}.brand-name{font-size:16px}.brand-icon{height:36px;width:36px}.brand-sub{font-size:8px}.header-btn{padding:7px 9px;font-size:10px}.layout{display:block}.main{padding:17px 12px}.settings{border-left:0;border-top:1px solid var(--line);padding:17px 12px}.h1{font-size:18px}.panel-inner{padding:12px}.wave-canvas{height:180px}.range-grid{gap:7px}.range-item{padding:9px}.number{font-size:13px}.stepper{width:26px;min-width:26px}.mark-btn{font-size:9px}.time-unit{font-size:10px}.detail-row{grid-template-columns:1fr}.detail-canvas{height:83px}.play-btn{flex:1;justify-content:center;font-size:11px}.flow-label{font-size:10px}.flow-label span{width:17px;height:17px}.wave-legend{gap:8px}.settings-card{margin-bottom:12px}}
