:root{color-scheme:light;--ink:#212a3a;--muted:#4f596b;--paper:#fafbf8;--green:#2b3b58;--line:#d4d8df;--soft:#edf0f4;--orange:#99522f;font:16px/1.65 "Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{touch-action:manipulation}button{cursor:pointer}button{background:white;color:var(--ink);border:1px solid #cbd0d9;border-radius:8px;padding:.48rem .86rem;display:inline-flex;align-items:center;justify-content:center;gap:.42rem;font-weight:600;font-size:.9rem;min-height:40px;line-height:1.4}button:hover{background:var(--soft);border-color:#a5adbc}button.primary,button[aria-pressed=true]{background:#213454;color:#fff;border-color:#213454}button.primary:hover{background:#162640;color:#fff}button:disabled{opacity:.4;cursor:default}button.quiet{background:transparent;border-color:transparent;color:var(--muted);font-weight:500}button.quiet:hover{background:var(--soft)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid #bc7943;outline-offset:3px}.wrap{width:min(1184px,calc(100% - 8vw));margin-inline:auto}header{background:#f1f3f6;border-bottom:1px solid var(--line)}.head,.brand,.head-right,.workspace-title,.toolbar,.legend,.legend span,.modal-head,.modal-actions,footer .wrap{display:flex;align-items:center}.head{min-height:62px;justify-content:space-between;gap:15px}.brand{font:600 1.4rem Georgia,serif;gap:.62rem;letter-spacing:-.035em}.head-right{gap:1rem}.head-right span,.hint,.legend,footer,.loops p,details,.examples small{color:var(--muted)}.head-right span{font-size:.82rem}i[data-icon],i[data-icon] svg{width:17px;height:17px;display:inline-block;flex:none}.intro{padding:clamp(28px,3.5vw,54px) 0 28px}.eyebrow{font:600 .75rem/1.35 Arial,sans-serif;letter-spacing:.15em;color:#556072}.intro h1,.below h2,.workspace-title #theme,.loops h2,.modal-head h2{font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP",serif}.intro h1{margin:6px 0 6px;font-size:clamp(2.2rem,4.2vw,3.55rem);line-height:1.26;letter-spacing:.055em}.intro p{margin:0;color:var(--muted)}.workspace{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 5px 20px #26304008}.workspace-title{justify-content:space-between;gap:8px;padding:14px 22px;border-bottom:1px solid var(--line)}#edit-title{padding:4px 1px;border:0;text-align:left;justify-content:flex-start;background:transparent;color:var(--ink)}#theme{font-size:clamp(1.1rem,2.1vw,1.52rem);overflow-wrap:anywhere}#edit-title i{color:#5e6b80;width:14px}.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,26%)}.plotcolumn{padding:18px 20px 12px;min-width:0}.toolbar{gap:7px;flex-wrap:wrap}.iconbtn{padding:.4rem;width:40px;height:40px}.toolbar .iconbtn{margin-left:auto}.hint{font-size:.86rem;margin:9px 0 12px;min-height:1.45em}.plot{background-color:#f5f7fa;background-image:radial-gradient(#bbc2cd .85px,transparent .85px);background-size:17px 17px;border:1px solid #d5d9e0;border-radius:11px;overflow:auto}.plot svg{display:block;width:100%;min-width:420px;height:auto;user-select:none;-webkit-user-select:none}.plot g[data-node],.plot g[data-edge]{cursor:pointer}.plot g[data-node]{touch-action:none}.plot g[data-node]:hover rect,.plot g[data-node]:focus rect{stroke-width:2.7px}.legend{gap:.6rem 1.3rem;flex-wrap:wrap;margin-top:10px;font-size:.83rem}.legend span{gap:.34rem}.sign{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;font-size:1rem;line-height:1}.plus{background:#e0e4ec;color:#253a5d}.minus{background:#f5e4d5;color:#944622}.loops{border-left:1px solid var(--line);background:#f1f3f7;padding:23px 19px}.loops h2{font-size:1.36rem;margin:4px 0 16px}.loopblock{margin:0 0 14px;padding-bottom:13px;border-bottom:1px solid var(--line)}.loophead{display:flex;align-items:center;gap:.5rem;font-weight:700}.loopbadge{border:1px solid #bfc6d1;min-width:27px;height:27px;border-radius:50%;display:inline-grid;place-items:center;background:#e2e5eb;color:#2c3a53;font:italic 700 1rem Georgia}.loopbadge.b{background:#f6eadc;color:#804522;border-color:#e6ceb8}.loops p{font-size:.88rem;margin:.45rem 0;line-height:1.65;overflow-wrap:anywhere}.looptrace{font-size:.81rem;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.loops summary,.list summary{font-size:.88rem;font-weight:600;cursor:pointer}.list{border-top:1px solid var(--line);padding:11px 20px}.entrygroup{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:10px 0}.entrygroup small{min-width:40px}.entrygroup button{font-size:.83rem;min-height:32px}.below{margin:32px 0}.below h2{font-size:1.65rem;margin:2px 0 13px}.examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.example{display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:12px;min-height:79px;padding:12px 14px;border-radius:10px;min-width:0}.example .example-mark{width:44px;height:44px;flex:none}.example small{display:block;font:500 .78rem/1.5 sans-serif;margin-bottom:3px}.example strong{font-size:.95rem}.reflection label{display:block;margin:0 0 9px}.reflection textarea{width:100%;resize:vertical}.reflection{max-width:870px}input,textarea,select{width:100%;padding:.62rem .75rem;border:1px solid #b9c0cb;border-radius:7px;background:white;color:var(--ink)}footer{border-top:1px solid var(--line);margin-top:38px;font-size:.82rem}footer .wrap{gap:20px;justify-content:space-between;padding:17px 0}footer span:first-child{font-family:Georgia,serif}dialog{border:1px solid var(--line);border-radius:13px;padding:0;width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 40px);color:var(--ink);box-shadow:0 18px 70px #141c2a40}dialog::backdrop{background:#1b253765}dialog form{padding:22px}.modal-head{justify-content:space-between;gap:10px}.modal-head h2{margin:0;font-size:1.35rem}.modal-head .iconbtn{font-size:1.3rem;min-height:33px;height:33px;width:33px}.modal-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:18px}.modal-actions .danger{color:#963e34;margin-right:auto}.field{display:block;margin:.8rem 0 .3rem;font-weight:600}.modal-copy{color:var(--muted);font-size:.94rem}.share-list{display:flex;flex-wrap:wrap;gap:8px}.share-list a{border:1px solid var(--line);border-radius:6px;padding:.35rem .7rem;text-decoration:none;color:var(--ink)}.skip{position:absolute;left:-9999px}.skip:focus{left:8px;top:8px;background:white;z-index:10}#toast{position:fixed;z-index:10;left:50%;transform:translateX(-50%);bottom:25px;max-width:90vw;background:#212a3a;color:white;padding:10px 17px;border-radius:8px;font-size:.9rem}#toast[hidden]{display:none}
@media(max-width:760px){.columns{grid-template-columns:1fr}.loops{border-left:0;border-top:1px solid var(--line);padding:16px}.loops h2{margin-bottom:8px}.examples{grid-template-columns:1fr}.example{min-height:61px}.intro{padding:25px 0 20px}.wrap{width:calc(100% - 28px)}.workspace-title,.plotcolumn{padding:12px}.workspace-title{align-items:flex-start}.quiet{white-space:nowrap}.head-right{gap:.4rem}.brand{font-size:1.2rem}.head{min-height:55px}.head-right span{font-size:.72rem;max-width:9em;line-height:1.3}.intro p{font-size:.94rem}.legend{font-size:.77rem}.below{margin:25px 0}footer .wrap{align-items:flex-start}}
@media(max-width:450px){.plot svg{min-width:0}.toolbar button{font-size:.82rem}.workspace-title #blank{font-size:.77rem;padding:.3rem}.workspace-title #blank i{display:none}.intro h1{font-size:2.35rem}.head-right button{font-size:.8rem}.example .example-mark{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

#loops details.loopblock{margin:8px 0;padding:0;border:1px solid var(--line);border-radius:8px;background:white}
#loops details.loopblock summary{padding:8px 10px;cursor:pointer}
#loops details.loopblock summary::after{content:'＋';margin-left:auto}
#loops details.loopblock[open] summary::after{content:'−'}
#loops details.loopblock p,#loops details.loopblock .looptrace{margin:5px 10px 10px}
.loopbadge{padding:0 4px;min-width:32px}
#previous-file[hidden]{display:none}

.intro h1,.below h2,.workspace-title #theme,.loops h2,.modal-head h2{font-family:var(--series-font,sans-serif)}
button.primary{background:var(--series-action);border-color:var(--series-action);color:#fff}
button.primary:hover{background:var(--series-action-hover);color:#fff}

.plot-controls{display:flex;align-items:center;justify-content:flex-end;gap:3px;margin:3px 0 6px}
.plot-controls button{padding:3px 9px;min-width:34px;min-height:34px;background:white}
.plot-controls #zoom-in,.plot-controls #zoom-out{font-size:1.15rem}
.plot-controls #zoom-fit{margin-left:5px;font-weight:500}
#zoom-value{min-width:49px;text-align:center;font-variant-numeric:tabular-nums;font-size:.83rem}
.plot{height:clamp(330px,44vw,560px);overflow:hidden}
.plot #graph{width:100%;height:100%;min-width:0;touch-action:none;cursor:grab}
.plot #graph.panning{cursor:grabbing}
.plot [data-port]{cursor:crosshair}
.plot [data-port]:hover circle:last-child,.plot [data-port]:focus circle:last-child{fill:#213454;stroke:#25344d}
.plot [data-node].drop-target rect{stroke:#253e68;stroke-width:3;fill:#e2e7f0}
@media(max-width:600px){.plot{height:clamp(330px,56vh,460px)}}
