.both-page{max-width:1100px;margin:auto;color:#203f46}.both-page h1{font-size:clamp(2rem,5vw,3rem);line-height:1.1}.both-page h2{font-size:1.5rem}.both-page a{display:inline-flex;align-items:center;min-height:44px;max-width:100%}.both-page button,.both-page select,.both-page input,.both-page summary{min-height:48px}.both-cases,.both-pages,.both-row,.both-paired,.both-support{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.both-cases button{flex:1 1 160px;width:auto}.both-pages button{flex:1 1 120px;width:auto}.both-board{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start}.both-scene{margin:0;min-width:0;background:#eef3ed;border:2px solid #9db5a4;border-radius:16px;padding:14px}.both-scene svg{display:block;width:100%;height:auto}.both-pans{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-bottom:14px;margin-bottom:8px}.both-pan{min-width:0;transform:translateY(var(--pan-offset));text-align:center;border-bottom:5px solid #617f74;border-radius:0 0 16px 16px;padding:3px 5px 10px;background:#fffdf6}.both-pan h3{font-size:1rem;margin:6px}.both-pan p{font-size:1rem;margin:8px 0;line-height:1.5}.both-tokens{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;min-height:45px}.both-parcel{display:inline-flex;align-items:center;justify-content:center;width:29px;height:34px;background:#c5d7e3;border:2px solid #345965;border-radius:3px;font-weight:800}.both-bag{min-width:43px;line-height:1.3;padding:4px;background:#e9d5a4;border:2px solid #8c7042;border-radius:14px 14px 4px 4px;font-size:.85rem}.both-units{display:grid;grid-template-columns:repeat(5,10px);justify-content:center;gap:4px;margin:10px 0}.both-units span{height:10px;background:#d4a34d;border:1px solid #73591e;border-radius:2px}.both-equation{font-size:clamp(1.05rem,2.5vw,1.45rem);font-weight:700;overflow-wrap:anywhere}.both-caption{font-size:.95rem;line-height:1.5}.both-scene figcaption{font-weight:700;margin-top:15px}.both-actions{background:#fffdf6;border:1px solid #bdc9bb;border-radius:12px;padding:18px}.both-actions h3{margin-top:0}.both-paired button{flex:1 1 145px;width:auto}.both-share{margin:18px 0;padding-top:12px;border-top:1px solid #cad5c9}.both-page label{display:block;font-weight:700;margin:10px 0}.both-page select,.both-page input{font-size:1.1rem;border:2px solid #6e8f80;border-radius:7px;background:#fff;color:#203f46;padding:10px;box-sizing:border-box;max-width:100%}.both-share select{display:block;width:100%;margin-top:6px}.both-share button{margin:10px 0}.both-share-note,.both-feedback,.both-help,.both-revealed,.both-inspection,.both-substitution{background:#edf2e7;border-left:4px solid #799569;padding:14px;margin:16px 0}.both-one-sided{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.both-one-sided button{width:100%}.both-proposal{padding:12px 0;border-bottom:1px solid #c4d1c3}.both-proposal input{display:block;width:100%;margin-top:7px}.both-learning{max-width:760px;margin:20px 0;padding:18px;background:#f6edda;border-radius:12px}.both-learning h3{margin-top:0}.both-learning button{margin:6px 10px 6px 0}.both-guided{padding:8px 16px;border-left:3px solid #b8a06f}.both-ledger{padding-left:24px}.both-ledger li{padding:8px 0 18px;border-bottom:1px solid #c4d1c3;margin-bottom:12px}.both-record{padding:18px;border:1px solid #bcccbf;border-radius:12px;margin:18px 0}.both-record .both-scene{max-width:600px}.both-page pre{white-space:pre-wrap;overflow-wrap:anywhere}.both-page #both-status:not(:empty){border:2px solid #718d80;padding:12px;border-radius:8px}.both-page :focus-visible{outline:3px solid #905b35;outline-offset:4px}.both-page [aria-disabled=true]{border-style:dashed}.both-page summary{display:flex;align-items:center;cursor:pointer}.both-entry{margin:16px 0;padding:16px;background:#edf2e7;border-left:4px solid #799569}.both-entry a{display:inline-flex;align-items:center;min-height:44px}.both-row a{flex:1 1 165px}.both-record details{margin-top:14px}@media(max-width:700px){.both-board{grid-template-columns:1fr;gap:20px}.both-scene{padding:12px}.both-actions{padding:14px}.both-pans{gap:12px}.both-parcel{width:25px;height:30px}.both-bag{min-width:36px;font-size:.85rem}.both-cases button{flex-basis:100%}.both-record{padding:12px}.both-one-sided{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){.both-page *{transition:none!important;scroll-behavior:auto!important}}

.both-page summary{display:list-item;padding:12px 0;box-sizing:border-box}

.both-share-sketch{margin:16px 0;padding:12px;background:#f4f0e4;border:1px solid #b6bba5;border-radius:10px}.both-share-sketch figcaption{line-height:1.5}.both-share-sketch h4{margin:16px 0 5px}.both-share-sketch p{font-size:.95rem;margin:4px 0 10px}.both-share-groups{display:flex;flex-wrap:wrap;gap:8px}.both-small-group{flex:1 1 90px;min-width:0;box-sizing:border-box;border:2px solid #52776b;border-radius:8px;padding:8px;background:#fffdf6;font-size:.9rem;overflow-wrap:anywhere}.both-small-group strong{display:block}.both-set-aside{border:2px dashed #8b805f;background:#eee8d8}.both-group-tokens{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin:8px 0;min-height:22px}.both-mini-parcel{display:inline-flex;align-items:center;justify-content:center;width:18px;height:22px;background:#c5d7e3;border:1px solid #345965;border-radius:2px;font-weight:700}.both-mini-unit{width:8px;height:8px;background:#d4a34d;border:1px solid #73591e;border-radius:1px}
