*{box-sizing:border-box}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#36334c;background:#fffdf9;font-synthesis:none;font-size:15px}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #7962ad;outline-offset:4px}.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;z-index:20;background:#fff;padding:1rem}.topbar{display:flex;align-items:center;justify-content:space-between;padding:20px 4vw;border-bottom:1px solid #eee8e5;gap:16px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:750;font-size:16px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#e9e0f5;color:#6f5597;font-size:24px}.top-actions{display:flex;align-items:center;gap:22px}.back{font-size:12px;text-decoration:none;color:#686177}select{border:1px solid #dcd5e5;background:#fff;border-radius:12px;padding:9px;color:#36334c;min-height:42px}main{max-width:1600px;margin:auto;padding:28px 3vw 0}.intro{text-align:center;margin:12px auto 32px;max-width:800px}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;color:#817397;margin:0 0 10px}.intro h1{font-size:clamp(36px,4vw,56px);letter-spacing:-.05em;line-height:1.12;margin:0 0 12px;font-weight:750}.intro h1 span{display:inline-block;color:#d5a75f;font-weight:400;font-size:.85em;margin-inline-start:14px}.headline{font-size:clamp(17px,2vw,22px);color:#67597f;margin:0 0 9px;font-weight:600}.intro-copy{font-size:13px;color:#777181;line-height:1.6;margin:0}.workspace{display:grid;grid-template-columns:190px minmax(0,1fr) 260px;gap:18px;align-items:start}.panel{background:#fff;border:1px solid #e9e3ee;border-radius:24px;box-shadow:0 8px 30px #6b5c7b07;min-width:0}.shape-panel,.settings-panel{padding:23px 18px}.panel h2{font-size:13px;line-height:1.5;margin:0 0 19px}.shapes{display:grid;gap:8px}.shape{display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:15px;padding:10px 8px;color:#514861;background:#fff;text-align:start;font-size:12px;font-weight:600;min-height:62px}.shape[aria-pressed=true]{background:#f4effb;border-color:#c7b5e5;color:#604484}.shape:hover{background:#f8f5fc}.shape-icon{display:block;border-radius:12px;width:46px;height:46px;min-width:46px;padding:7px;background:#eee7f9;color:#8064b5}.shape-icon svg{width:100%;height:100%}.tone-1{background:#e5f4ed;color:#568f7d}.tone-2{background:#ffecdf;color:#c28b67}.tone-3{background:#e6f1fb;color:#638db5}.tone-4{background:#fbe9f0;color:#b86c8a}.viewer-panel{overflow:hidden;padding:24px}.viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.viewer-head .eyebrow{font-size:9px;margin-bottom:3px}.viewer-head h2{font-size:25px;line-height:1.2;letter-spacing:-.025em;margin:0}.primary,.secondary{padding:12px 15px;border-radius:12px;font-size:12px;font-weight:700;border:1px solid #c6b4df;background:#e8def6;color:#55406f;min-height:44px}.primary:hover,.secondary:hover{background:#ddcdef}.stage{height:440px;position:relative;border:1px solid #eee8f2;background:#f9f7fc;border-radius:20px;overflow:hidden}#viewport{width:100%;height:100%;direction:ltr}canvas{display:block;touch-action:none;width:100%;height:100%}#view-status{position:absolute;inset:25% 8% auto;text-align:center;font-size:15px;line-height:1.7;background:#fff9;padding:16px;border-radius:18px}#view-status[hidden]{display:none}.measurement-label{position:absolute;inset:auto 12px 12px;text-align:center;pointer-events:none;background:#ffffffd9;border:1px solid #eee8f4;border-radius:12px;padding:9px 12px;font-size:11px;color:#625471;line-height:1.6}#empty-layers{position:absolute;inset:25% 15% auto;background:#fff;padding:18px;border-radius:16px;text-align:center;font-size:13px}.viewer-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:14px;flex-wrap:wrap}.viewer-toolbar button{border:1px solid #e0d9e7;border-radius:10px;background:#fff;padding:10px 12px;color:#61566f;font-size:11px;min-height:42px}.viewer-toolbar button[aria-pressed=true]{background:#e6f5ec;border-color:#9ac7af;color:#3e6b52}.zoom{display:flex;gap:5px}.zoom button:first-child,.zoom button:last-child{font-size:20px;width:42px;padding:5px}.gesture{font-size:11px;text-align:center;color:#756e80;line-height:1.6;margin:15px 0 3px}.keyboard{font-size:10px;text-align:center;color:#777080;line-height:1.6;margin:0 0 20px}.facts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0}.facts>div{display:grid;gap:6px;flex:1;min-width:80px;border:1px solid #e5dfed;background:#faf7fe;border-radius:15px;padding:13px 8px;text-align:center}.facts strong{font-size:29px;font-weight:650;color:#796093}.facts span{font-size:10px;line-height:1.3;color:#6f647b}.fineprint{font-size:10px;line-height:1.7;color:#766d81;margin:10px 0 19px}.fineprint:empty{display:none}.question{background:#fff5df;border:1px solid #f0e0b8;border-radius:16px;padding:17px 18px;margin-top:20px}.question span{font-size:10px;color:#9a733c;font-weight:800;letter-spacing:.04em}.question p{margin:8px 0 0;font-size:13px;line-height:1.6;color:#685638}.dimension{display:grid;grid-template-columns:1fr 64px;gap:12px;align-items:center;margin-bottom:22px}.dimension>span{font-size:11px;font-weight:650;line-height:1.5}.dimension small{font-weight:400;color:#7c7188}.dimension input[type=number]{border:1px solid #dcd4e7;border-radius:10px;padding:8px 4px;text-align:center;width:100%;color:#534462;background:#fbf8ff}.dimension input[type=range]{width:100%;grid-column:1/-1;accent-color:#a58bc8;cursor:pointer}.colours,.layers{border:0;margin:20px 0;padding:0}.colours legend,.layers legend{font-size:11px;font-weight:700;margin-bottom:14px}.colours button{width:32px;height:32px;border-radius:50%;border:4px solid white;background:var(--swatch);box-shadow:0 0 0 1px #ebe5f0;margin-inline-end:6px}.colours button[aria-pressed=true]{box-shadow:0 0 0 2px #69537d}.layers{display:grid;gap:12px;border-top:1px solid #eee7f4;padding-top:20px}.layers label{display:flex;align-items:center;gap:9px;font-size:11px;cursor:pointer;min-height:27px}.layers input{accent-color:#9277b7;width:17px;height:17px}.secondary{width:100%;background:#f5f0fb;border-color:#e1d5ef;font-size:11px;line-height:1.5}.text-button{display:block;padding:12px 8px;background:transparent;border:0;color:#867295;text-decoration:underline;font-size:11px;margin:auto}.part-info{font-size:12px;font-weight:650;text-align:center;color:#8d6c30;min-height:16px}.teacher-tip{background:#eef7f0;border-radius:14px;padding:15px;margin-top:24px;color:#52725e}.teacher-tip strong{font-size:10px}.teacher-tip p{font-size:11px;line-height:1.8;margin:7px 0 0}.download-status{font-size:13px;text-align:center;min-height:20px;color:#745f8b}footer{text-align:center;padding:12px 20px 26px;font-size:10px;color:#8c8198}html[dir=rtl] .eyebrow{letter-spacing:0}html[dir=rtl] .intro h1{letter-spacing:0;font-size:clamp(30px,3.8vw,48px)}@media(min-width:1500px){.stage{height:520px}}@media(max-width:1100px){.workspace{grid-template-columns:150px minmax(0,1fr) 220px;gap:12px}main{padding-inline:18px}.shape-panel,.settings-panel{padding:18px 12px}.shape{gap:6px;font-size:11px}.shape-icon{width:36px;height:36px;min-width:36px;padding:5px}.viewer-panel{padding:18px}.stage{height:370px}}@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr) 230px}.shape-panel{grid-column:1/-1}.shapes{display:flex;overflow-x:auto;padding:3px 2px 8px;gap:9px}.shape-panel h2{margin-bottom:12px}.shape{flex-direction:column;text-align:center;min-width:100px;max-width:115px;gap:7px;min-height:100px}.shape-icon{width:44px;height:44px}.viewer-head h2{font-size:21px}.primary{padding:10px;font-size:11px}.viewer-head{align-items:start}.facts>div{min-width:65px}.viewer-toolbar{justify-content:center}.stage{height:360px}.intro{margin:8px auto 24px}}@media(max-width:620px){.topbar{padding:14px 16px}.brand{font-size:13px}.back{display:none}.top-actions{gap:0}.intro{padding-inline:6px}.intro h1{font-size:36px}.intro-copy{font-size:12px}.headline{font-size:17px}.eyebrow{font-size:8px}.workspace{grid-template-columns:1fr}.viewer-panel{padding:15px}.shape-panel{padding:14px}.stage{height:360px}.settings-panel{padding:22px}.facts{gap:6px}.facts strong{font-size:25px}.facts span{font-size:9px}.facts>div{min-width:54px;padding:12px 4px}.viewer-head{align-items:center}.viewer-toolbar{justify-content:space-between}.viewer-head h2{font-size:22px}.colours button{width:40px;height:40px}.layers label{font-size:13px;min-height:35px}.dimension>span{font-size:13px}.fineprint{font-size:11px}.shape{min-width:98px}.teacher-tip p{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{.topbar,.shape-panel,.settings-panel,.viewer-toolbar,.gesture,.keyboard,#save,.intro-copy,.download-status{display:none}.workspace{display:block}.viewer-panel{border:0;box-shadow:none}.stage{height:400px}.intro{margin:0}.intro h1{font-size:24px}footer{padding:10px}}
