:root{font-family:Inter,Arial,sans-serif;color:#193c39;background:#f3f6f5;font-synthesis:none;font-size:16px}*{box-sizing:border-box}body{margin:0}header{height:90px;padding:0 4%;background:white;border-bottom:1px solid #dce5e2;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:13px;align-items:center;color:inherit;text-decoration:none;font-size:14px;font-weight:600;letter-spacing:1px}.brand b{font-weight:800}.brand small{display:block;font-size:14px;font-weight:400;letter-spacing:0;margin-top:5px;color:#657a76}.mark{background:#153e39;color:#e3ed79;border-radius:12px;width:44px;height:44px;display:grid;place-content:center;font-size:25px;position:relative}.mark span{position:absolute;right:5px;bottom:2px;font-size:15px}.formats{font-size:14px;color:#6a7e7b}main{max-width:1700px;margin:auto;padding:32px 4% 18px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow,.canvas-label{font-size:12px;font-weight:700;letter-spacing:1.8px;color:#617a74}h1{font-size:clamp(25px,2.5vw,36px);letter-spacing:-1px;font-weight:600;margin:9px 0 0}button{font:inherit;font-size:14px;background:white;border:1px solid #d4dfdc;border-radius:8px;color:#244943;min-height:44px;padding:10px 14px;cursor:pointer;font-weight:600}button:hover{background:#eef4f0}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #578e83;outline-offset:3px}.primary{background:#153e39;color:white;border-color:#153e39}.primary:hover{background:#28594f}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.workspace{border:1px solid #d4dfdb;border-radius:16px;overflow:hidden;background:white;box-shadow:0 10px 30px #153e3907}.canvas-top{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 22px;border-bottom:1px solid #e9eeeb}.canvas-top>div{display:flex;align-items:center;gap:18px}.canvas-label small{font-size:13px;color:#7c8f89;letter-spacing:0;font-weight:400;margin-left:12px}.hint{font-size:13px;color:#6d8378}#fit{min-height:34px;padding:7px 10px;font-size:13px}#viewport{height:calc(100dvh - 345px);min-height:390px;max-height:850px;overflow:auto;overscroll-behavior:contain;background-color:#fbfcfb;background-image:radial-gradient(#cddcd5 1px,transparent 1px);background-size:20px 20px}#tree{display:block}.canvas-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;border-top:1px solid #e6ede8;font-size:14px;color:#71877e}.canvas-bottom label{display:flex;align-items:center;gap:8px;font-size:13px}.canvas-bottom input{width:100px;accent-color:#244f42}.valid{color:#3b7150}.warning{color:#966327}#checkDetails{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}#checkDetails button{min-height:36px;font-size:13px;padding:7px 11px;background:#fff5e8;color:#966327;border-color:#eedbc1}footer{display:flex;justify-content:space-between;gap:15px;font-size:13px;line-height:1.6;color:#778c80;margin-top:15px}#notice{font-size:14px;min-height:20px;color:#385d48;margin-bottom:0}.node{cursor:grab;touch-action:none}.node:active{cursor:grabbing}.node:focus-visible{outline:none}.node:focus-visible text{fill:#0a806a;text-decoration:underline}.node .outcome-hit{fill:transparent;stroke:none}.plus,.probability{cursor:pointer;touch-action:manipulation}.plus:hover circle{fill:#e5ee7e}.plus:focus-visible circle{stroke:#178978;stroke-width:3;outline:none}.probability:hover text,.probability:focus-visible text{fill:#0a806a}.probability:hover .fraction-bar,.probability:focus-visible .fraction-bar{stroke:#0a806a;stroke-width:1.8}.probability:focus-visible{outline:none}.probability .weight-hit{fill:transparent;stroke:none}#popover{position:fixed;z-index:10;width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:white;border:1px solid #b6c9ba;border-radius:13px;padding:20px;box-shadow:0 15px 55px #153e3933}#popover[hidden]{display:none}.popover-head{display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font-size:18px;margin:0;overflow-wrap:anywhere}.popover-head button{padding:0;min-height:32px;width:32px;border:0;font-size:25px;font-weight:400}.help{font-size:13px;line-height:1.6;color:#6d8376}.row{display:grid;grid-template-columns:minmax(0,1fr) 100px 22px;gap:7px;margin-bottom:12px}.row label,form>label{font-size:13px;font-weight:600;color:#677e73}.row input,form>label input{display:block;width:100%;border:1px solid #d5dfd8;border-radius:7px;margin-top:7px;padding:10px;font:inherit;font-size:16px;color:#254d3e;min-height:44px}.row button{padding:0;border:0;font-size:20px;margin-top:24px;min-height:44px;background:none;color:#7c8d83}.text-button{padding:0;min-height:36px;background:none;border:none;font-size:14px}.wide{width:100%;margin-top:12px}.paired{display:flex;gap:7px;margin-top:16px}.paired button{font-size:13px}.danger{color:#a44333}form>label{display:block;margin-top:16px}#error{font-size:13px;color:#ad432e;line-height:1.5;margin-bottom:0}@media(max-width:1050px){.heading{align-items:flex-start;flex-direction:column}.hint{display:none}#viewport{height:calc(100dvh - 400px)}}@media(max-width:600px){header{height:76px;padding:0 5%}.formats{display:none}main{padding:22px 4%}.heading{gap:18px;margin-bottom:20px}h1{font-size:28px}.toolbar{gap:6px}.toolbar button{padding:9px 10px;font-size:13px}.canvas-top{padding:13px}.canvas-bottom{padding:12px;flex-wrap:wrap;gap:10px}#viewport{height:440px;min-height:360px}.canvas-label small{margin-left:6px}footer{flex-direction:column;gap:6px}.canvas-bottom input{width:100px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.sample-space{margin-top:18px;background:#fff;border:1px solid #d4dfdb;border-radius:12px;padding:20px 22px}.sample-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.sample-head h2{margin-top:6px}#sampleCount{font-size:14px;color:#728674;font-weight:400}#sampleSet{font-size:18px;line-height:1.9;overflow-wrap:anywhere;margin:15px 0 0;color:#2a503c}.notation-toggle{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer}.notation-toggle input{appearance:none;width:42px;height:24px;flex-shrink:0;border-radius:20px;background:#cad6ce;border:1px solid #bdcfc2;position:relative;cursor:pointer;margin:0}.notation-toggle input:before{content:'';position:absolute;width:18px;height:18px;left:2px;top:2px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #193c3933}.notation-toggle input:checked{background:#153e39;border-color:#153e39}.notation-toggle input:checked:before{left:20px}@media(max-width:600px){.sample-space{padding:18px}.sample-head{align-items:flex-start;flex-direction:column}.notation-toggle{min-height:44px}#sampleSet{font-size:16px}}

.canvas-options{display:flex;align-items:center;justify-content:flex-end;gap:22px;margin-left:auto;flex-wrap:wrap}.canvas-options .notation-toggle{font-size:14px;min-height:32px}.canvas-options .notation-toggle input{width:42px}.junction:hover .junction-dot{r:6;fill:#285f4b}.junction:focus-visible .junction-dot{stroke:#178978;stroke-width:4}.junction:focus-visible{outline:none}@media(max-width:600px){.canvas-options{width:100%;gap:12px;justify-content:flex-end}.canvas-options .notation-toggle{min-height:44px}.canvas-options>label:first-child{margin-right:auto}}

.row{grid-template-columns:minmax(0,1fr) 86px 44px 22px}.row .not-button{font-size:13px;font-weight:600;border:1px solid #ccdacf;border-radius:7px;color:#335641;min-height:44px;background:#f4f7f2;margin-top:24px}.row .not-button[aria-pressed=true]{background:#153e39;border-color:#153e39;color:#fff}.row .not-button:hover{border-color:#638772}

/* Shared The Varley Academy home link. */
a.mv-home-link{display:inline-flex;align-items:center;gap:12px;color:#152f40;text-decoration:none;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18.4px;font-weight:750;letter-spacing:-.035em;line-height:1.25;max-width:100%;min-width:0;}
a.mv-home-link .mv-home-logo{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;background:#152f40;color:#fff;border-radius:10px;font-family:Georgia,serif;font-style:italic;font-size:21.6px;font-weight:400;line-height:1;letter-spacing:0;}
a.mv-home-link .mv-home-label{color:#152f40;min-width:0;}
a.mv-home-link:hover .mv-home-label{text-decoration:underline;text-underline-offset:4px;}
a.mv-home-link:focus-visible{outline:3px solid #176d87;outline-offset:5px;border-radius:4px;}
.mv-tool-label{display:block;margin-top:6px;color:#526775;font:400 14px/1.4 system-ui,sans-serif;}
