.wb-tree{background:#f6faf2;border:1px solid #dce5d7;border-radius:16px;overflow:hidden}.wb-tree-top{display:flex;justify-content:space-between;gap:12px;padding:16px;color:#36654b;font-size:12px;flex-wrap:wrap}.wb-tree-top>span{font-size:9px;letter-spacing:1px}.wb-tree-scene{position:relative;isolation:isolate}.wb-tree-scene>svg{display:block;width:100%;height:auto;border:3px solid transparent}.wb-tree-over .wb-tree-scene>svg{border-color:#389a56}.wb-tree-landed{position:absolute;inset:3px;pointer-events:none}.wb-tree-chip{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:5%;aspect-ratio:1;border-radius:6px;background:#fffefa;color:var(--letter-color);font-size:clamp(9px,2vw,23px);font-weight:900;box-shadow:0 2px 0 #0002}.wb-tree-message{padding:15px 12px;margin:0!important;text-align:center;font-size:clamp(13px,2vw,21px);font-weight:750;color:#2a6145;min-height:56px}.wb-tree-complete .wb-tree-message{color:#a43932;background:#fff0d2}.wb-tree-palette{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;padding:12px}.wb-tree-palette button{padding:5px;min-height:40px;justify-content:center;font-size:22px;font-weight:800;color:#31587e;background:white;touch-action:none;user-select:none;cursor:grab}.wb-tree-palette button:nth-child(3n+1){color:#b84342}.wb-tree-palette button:nth-child(3n+2){color:#267450}.wb-tree-palette button:disabled{opacity:.22}.wb-tree-palette button.dragging{opacity:.35}.wb-tree-drag{position:fixed;transform:translate(-50%,-50%);z-index:9999;width:42px;height:42px;display:grid;place-items:center;background:#fff5ce;color:#31587e;border:2px solid #31587e;border-radius:9px;font-size:27px;font-weight:850;pointer-events:none;box-shadow:0 4px 15px #0002}.wb-tree-help{font-size:11px;line-height:1.65;padding:0 14px;color:#52655b}.wb-tree-controls{display:flex;gap:10px;padding:14px;flex-wrap:wrap}.wb-tree-controls button{font-size:11px}.wb-tree-letter:focus-visible,.wb-game button:focus-visible{outline:3px solid #8c4cba;outline-offset:2px}.wb-game{font-size:13px;line-height:1.7}.wb-game-feedback{min-height:25px;color:#36654b;font-weight:650}.wb-game input{min-width:0;max-width:100%}.wb-cloze{display:block!important;line-height:2.6!important;margin-bottom:15px}.wb-cloze input{display:inline-block;width:130px;margin:0 7px;border-width:0 0 2px;border-radius:0;background:#eef5f0}.wb-sort-items{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.wb-sort-items button{touch-action:none;user-select:none}.wb-sort-items button[aria-pressed=true]{outline:3px solid #7e5ca2}.wb-sort-items button.assigned{background:#e4eddf}.wb-sort-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wb-sort-group{flex-direction:column;align-items:flex-start!important;min-height:90px;overflow-wrap:anywhere;text-align:left;white-space:normal}.wb-sort-members{font-size:11px;color:#586854}.wb-color-dot{width:26px;height:26px;border-radius:50%;border:1px solid #666;display:inline-block}.wb-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.wb-targets button{min-height:64px;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere;font-size:18px}.wb-targets button[aria-pressed=true]{outline:3px solid #648b57;background:#e8f2df}.wb-target-board{padding:20px 12px;background:#e5f3f3;border-radius:15px;cursor:crosshair}.wb-target-board button{border-radius:40%;border:3px solid #7babab;box-shadow:0 0 0 4px #fff inset;animation:wb-target-float 3s ease-in-out infinite;cursor:crosshair}.wb-target-board button:nth-child(2n){animation-delay:-1.5s}@keyframes wb-target-float{50%{transform:translateY(-5px)}}.wb-counting{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:20px 0}.wb-counting button{position:relative;font-size:27px;padding:4px;min-height:42px;justify-content:center}.wb-counting small{position:absolute;right:0;bottom:0;font-size:11px;background:#35644c;color:white;padding:0 4px;border-radius:4px}.wb-counting button[aria-pressed=true]{background:#e4f0da}.wb-equation{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:clamp(20px,4vw,36px);padding:20px 0}.wb-equation input{width:95px;font-size:24px}.wb-number-range{width:100%;accent-color:#517c59;margin:20px 0 7px}.wb-number-ends{display:flex;justify-content:space-between;font-size:15px}.wb-number-ends output{font-weight:750}.wb-word-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));margin:16px 0;border:1px solid #c4d3be}.wb-word-grid button{padding:0;min-width:0;aspect-ratio:1;border-radius:0;border:0;justify-content:center;font-size:clamp(11px,2vw,19px);font-family:monospace;touch-action:none;user-select:none}.wb-word-grid button.found{background:#d4e9bc}.wb-word-grid button.selected{background:#f8de95}.wb-word-list{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:16px;font-size:12px;font-weight:700}.wb-word-list .found{text-decoration:line-through;color:#557943}.wb-drawing{display:block;width:100%;border:1px solid #b4c9ba;border-radius:5px;touch-action:none;user-select:none;cursor:crosshair;margin:15px 0}.wb-draw-caption{width:100%;margin-top:12px}.wb-game-draw .actions{margin-bottom:20px}.wb-interactive-exercise{width:100%}.wb-interactive-exercise .wb-activity-top{justify-content:space-between}.wb-interactive-exercise .wb-done{margin-top:15px}
@media(max-width:650px){.wb-tree-palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:8px}.wb-tree-top{padding:10px}.wb-tree-palette button{font-size:19px;min-height:36px}.wb-targets{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.wb-counting{grid-template-columns:repeat(5,minmax(0,1fr))}.wb-sort-groups{grid-template-columns:1fr}.wb-word-grid button{font-size:12px}.wb-equation{gap:8px}.wb-equation input{width:70px}}
@media(prefers-reduced-motion:reduce){.wb-target-board button{animation:none}}
@media print{.wb-tree-controls,.wb-tree-help,.wb-game-check,.wb-search-reset,.wb-speak,.wb-game-draw .actions{display:none}.wb-target-board button{animation:none}}

.wb-drawing{height:auto;aspect-ratio:5/3}

.wb-word-grid button{width:100%;min-height:0;line-height:1;height:auto}
.wb-tree-landed .wb-tree-chip{pointer-events:auto;border:0;padding:0;min-height:0;min-width:0;cursor:pointer}.wb-tree-chip:focus-visible{outline:3px solid #8c4cba;outline-offset:2px}
