/* Four physical regions and a separate collecting tray; native tap/keyboard controls. */
.fp-page{--fp-ink:#283d40;--fp-paper:#fffaf0;max-width:1060px;margin:auto;padding:12px 18px 22px;background:var(--fp-paper);color:var(--fp-ink);border:1px solid #d4c6aa;border-radius:12px;box-shadow:0 8px 0 #e3d7be;font-size:16px;line-height:1.35;min-width:0}
.fp-page *{box-sizing:border-box}.fp-page h1{font:400 32px/1.1 Georgia,serif;margin:5px 0}.fp-page h2{font:400 25px/1.15 Georgia,serif;margin:6px 0}.fp-page h3{font-size:18px;margin:6px 0}.fp-page p{margin:7px 0}.fp-page button,.fp-page select,.fp-page summary,.fp-page a{min-width:44px;min-height:44px;font-size:16px;line-height:1.2;touch-action:manipulation}.fp-page button{padding:8px 10px;white-space:normal;border:2px solid #7b9691;background:#fff;color:var(--fp-ink);border-radius:8px;box-shadow:0 2px 0 #c4cfc2}.fp-page button.primary{background:#244f48;color:white;border-color:#244f48}.fp-page button:disabled{opacity:.5;box-shadow:none}.fp-page button[aria-pressed=true],.fp-page button[aria-current=page]{border-color:#244f48;background:#deebe2;box-shadow:inset 0 -3px 0 #6a8f7b}.fp-page :focus-visible{outline:3px solid #9d562d;outline-offset:3px}.fp-page select{width:100%;max-width:100%;background:white;border:2px solid #809790;padding:6px}.fp-page a{display:inline-flex;align-items:center;padding:6px}.fp-page summary{padding:11px 3px;cursor:pointer}.fp-page details{border-top:1px solid #ccbfa6}.fp-page label{display:block;margin:8px 0}.fp-heading{border-bottom:2px solid #b9b29a}.fp-heading>p{font-weight:650}.fp-actions,.fp-size,.fp-help-choices{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0}.fp-actions>button{flex:0 1 auto}.fp-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0}.fp-stages button{min-width:0}.fp-size{background:#f0eadb;padding:5px 8px;border-radius:8px}.fp-size output{min-width:56px;font-weight:700;text-align:center}.fp-note{color:#455e5c}.fp-page .fp-note{font-size:16px}.fp-board{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:start}.fp-picture{min-width:0;background:#f0eee4;border:1px solid #c5c4b1;border-radius:10px;padding:8px}.fp-diagram{width:100%;height:auto;max-height:270px;display:block;overflow:visible}.fp-diagram text,.fp-contrast text{fill:#233c3d;font-family:system-ui,sans-serif;font-weight:700}.fp-region{stroke:#65766e;stroke-width:.045}.fp-region-0{fill:#cbdad7}.fp-region-1{fill:#eed4a2}.fp-region-2{fill:#d7cfdf}.fp-region-3{fill:#cddbad}.fp-region-selected{stroke:#142d31;stroke-width:.15}.fp-unit-grid{fill:none;stroke:#fdfcf5;stroke-width:.025;pointer-events:none}.fp-cuts{fill:none;stroke:#263f3e;stroke-width:.08;pointer-events:none}.fp-size-readout{font-size:16px}.fp-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.fp-parts button{min-width:0;text-align:left}.fp-editor{min-width:0;padding:10px;border:1px solid #c7bdac;border-radius:10px;background:#fffdf7}.fp-kinds{display:flex;gap:6px;flex-wrap:wrap}.fp-kinds>button{flex:1;min-width:72px}.fp-chosen{font-size:20px}.fp-counter{display:grid;grid-template-columns:44px 44px minmax(32px,1fr) 44px 44px;gap:3px;align-items:center;max-width:100%;margin:8px 0}.fp-counter button{padding:6px 3px;min-width:44px}.fp-counter output{font-weight:750;font-size:23px;text-align:center;overflow-wrap:anywhere}.fp-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fp-tray>section{background:#ede9d9;border:1px solid #bbb69e;border-bottom:5px solid #9d9d83;padding:8px;border-radius:8px;min-width:0}.fp-tray .fp-counter{grid-template-columns:44px 44px minmax(0,1fr) 44px 44px}.fp-label-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px;border-left:4px solid #9d906e;padding-left:10px;margin:8px 0}.fp-expression{font-size:23px;font-weight:700;background:#f3eddb;border:1px dashed #a2987a;padding:12px}.fp-comparison{background:#fffdf7;border:1px solid #c9c3af;border-left:5px solid #81938a;padding:10px;margin:12px 0}.fp-result{border-top:1px solid #d1cebd;padding:7px 0}.fp-point-only{font-weight:700}.fp-help{padding:14px;background:#fffdf7;border:2px solid #a3afa1;border-radius:9px}.fp-help>.fp-diagram{max-height:240px}.fp-contrast{width:100%;max-height:240px;height:auto;display:block}.fp-help-choices{padding-top:8px;border-top:1px solid #c8c2ad}.fp-help-choices button{flex:1}.fp-page #fp-status:empty{display:none}.fp-page #fp-status:not(:empty){border-left:4px solid #8f623b;padding:8px 12px;background:#f2e8d5}.fp-drafts{margin-top:10px}.fp-kept-row{padding:8px;border-bottom:1px solid #bdbba7}.fp-kept-row button{max-width:100%;text-align:left}.fp-primary-actions{padding:8px 0}.fp-page footer{border-top:1px solid #c7bca7;margin-top:12px}
body:has([data-fp-root]) .header nav,body:has([data-fp-root])>footer{display:none}body:has([data-fp-root]) .header{padding:6px 20px;gap:10px}body:has([data-fp-root]) main{padding-top:6px}
.equality-explorations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}.equality-explorations>aside{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;margin:0;padding:6px 8px;background:#f2f6f3;border:1px solid #adbbb4;border-radius:6px}.equality-explorations>aside span{font-size:16px;line-height:1.25;min-width:0;flex:1}.equality-explorations>aside button{min-width:44px;min-height:44px;font-size:16px}.fp-parent-return{padding:0 8px;background:#f8f3e7}.fp-parent-return summary{min-height:44px;padding:10px 0}.fp-parent-return p{font-size:16px}
@media(max-width:1000px){.fp-tray{grid-template-columns:minmax(0,1fr)}.fp-tray>section{display:grid;grid-template-columns:minmax(95px,1fr) minmax(220px,2fr);gap:8px;align-items:center}.fp-tray .fp-counter{margin:0}}
@media(max-width:650px){.fp-page{padding:8px 10px 100px;border-radius:8px}.fp-page h1{font-size:27px}.fp-page h2{font-size:22px}.fp-heading .fp-actions{gap:4px}.fp-heading .fp-actions button{flex:1 1 110px}.fp-board{grid-template-columns:minmax(0,1fr);gap:8px}.fp-picture .fp-diagram{max-height:170px}.fp-picture{padding:4px}.fp-size{gap:5px}.fp-size strong{width:100%}.fp-stages{gap:4px}.fp-stages button{padding:6px 3px}.fp-editor{padding:8px}.fp-tray>section{display:block}.fp-tray .fp-counter{margin:5px 0}.fp-label-list{grid-template-columns:1fr}.fp-primary-actions{position:fixed;bottom:0;bottom:env(safe-area-inset-bottom);left:0;right:0;z-index:20;background:#fffaf2;border-top:2px solid #a8b9ab;padding:7px 10px;margin:0;box-shadow:0 -3px 10px #283d401a}.fp-primary-actions button{flex:1;min-width:0}.equality-explorations{grid-template-columns:minmax(0,1fr)}.fp-help{padding:8px}}
@media(prefers-reduced-motion:reduce){.fp-page *{animation:none!important;transition:none!important}}
.fp-topbar{justify-content:space-between}.fp-tools{position:relative;border:2px solid #7b9691!important;border-radius:7px;background:white;margin:0}.fp-tools>summary{padding:9px 10px;font-weight:650}.fp-tools[open]>.fp-actions{position:absolute;top:100%;right:0;z-index:30;width:230px;max-width:80vw;padding:8px;margin:2px 0;background:#fffaf0;border:2px solid #7b9691;box-shadow:0 5px 12px #263f3e22}.fp-tools>.fp-actions button{width:100%}.fp-kinds button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.fp-tile-symbol{display:grid;place-items:center;border:2px solid #55716c;font-size:24px;line-height:1}.fp-tile-2{width:44px;height:44px;background:#cbdad7}.fp-tile-1{width:44px;height:23px;background:#eed4a2}.fp-tile-0{width:23px;height:23px;background:#cddbad;font-size:18px}.fp-size{display:grid;grid-template-columns:minmax(0,1fr) 44px 54px 44px}.fp-size output{min-width:0}.fp-size button{padding:6px}.fp-page #fp-instruction{font-weight:650}
@media(max-width:650px){.fp-heading .fp-topbar{flex-wrap:nowrap}.fp-heading .fp-topbar>button{flex:0 1 auto}.fp-tools>summary{white-space:nowrap}.fp-job-name,.fp-part-name{display:none}.fp-size strong{width:auto}.fp-picture .fp-diagram{max-height:140px}.fp-parts{grid-template-columns:repeat(4,minmax(0,1fr))}.fp-parts button{text-align:center}.fp-size-readout{margin:3px 0!important}.fp-heading>p{font-weight:600}}

[data-fp-pick]{cursor:pointer}

.fp-page [hidden]{display:none!important}
