.counter-activity{display:grid;gap:.8rem;min-width:0}
.counter-activity .counter-equation{flex-direction:column;align-items:flex-start;gap:.35rem;margin:0}
.counter-activity .counter-equation span,.counter-action-help{line-height:1.5;overflow-wrap:anywhere}
.counter-model-body{display:grid;gap:.8rem;min-width:0}
.counter-addition,.counter-division,.counter-group-work{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start}
.counter-multiplication,.counter-sharing-baskets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:.75rem;align-items:stretch}
.counter-basket{display:grid;align-content:start;gap:.55rem;min-width:0;padding:.75rem;border:2px solid #b6ccd9;border-radius:.9rem;background:#fff;color:#16324f;text-align:left}
.counter-basket h4,.counter-basket-title{margin:0;line-height:1.35;font-size:1.03rem;font-weight:800;overflow-wrap:anywhere}
.counter-source{background:#fff7e3;border-color:#d8b773}
.counter-leftover{background:#fff8e9;border-color:#d8b773}
.counter-build-group{width:100%;min-height:135px;cursor:pointer;font:inherit}
.counter-build-group.is-filled{background:#effaf3;border-color:#73a28a}
.counter-build-group:disabled,.counter-object:disabled{opacity:1;cursor:default}
.counter-tray{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.35rem;min-width:0;min-height:56px}
.counter-empty{display:grid;place-items:center;min-height:56px;color:#526b7c;line-height:1.4}
.counter-activity .counter-object{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.2rem;flex:0 0 auto;min-width:52px;min-height:56px;max-width:76px;padding:.3rem;border-radius:.55rem;vertical-align:middle}
.counter-activity span.counter-object{pointer-events:none}
.counter-picture{display:block;width:42px;height:42px;min-width:0;min-height:0;overflow:hidden;flex-shrink:0}
.counter-picture>span{display:grid;place-items:center;height:100%;font-size:1.8rem;line-height:1}
.counter-activity .counter-picture img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;border-radius:.3rem;object-fit:contain}
.counter-activity .counter-object.is-counted{transform:none;background:#e3f6e9;border-color:#36855b}
.counter-activity .counter-object.is-removed{opacity:1;filter:none;text-decoration:none;background:#f0f2f4;border-color:#bcc4cb}
.counter-activity .counter-object.is-removed .counter-picture{filter:grayscale(1);opacity:.45}
.counter-object small{max-width:100%;color:#46596b;font-size:.7rem;line-height:1.2;overflow-wrap:anywhere}
.counter-count-tag{padding:.12rem .35rem;border-radius:.4rem;background:#226844;color:#fff;font-size:.85rem;line-height:1.2}
.counter-object.is-added{border-color:#57997b;background:#e8f8ee;animation:counter-arrive .25s ease-out}
.counter-bundle{display:inline-grid;justify-items:center;gap:.2rem;padding:.3rem;border:2px solid #a8c4d5;border-radius:.5rem;background:#eef7fd}
.counter-bundle b{font-size:.8rem;line-height:1.2}
.counter-move-arrow{align-self:center;color:#287450;font-size:2rem;font-weight:900}
.counter-live-equation{margin:0;padding:.6rem .75rem;border-radius:.65rem;background:#e7f2fa;font-size:1.2rem;font-weight:850;overflow-wrap:anywhere}
.counter-progress{display:block;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.counter-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.counter-actions button{min-height:48px;margin:0;white-space:normal}
.counter-activity>.counter-answer{margin:0;line-height:1.4;overflow-wrap:anywhere}
.counter-activity button:focus-visible{outline:3px solid #2377aa;outline-offset:3px}
.counter-operation-field[hidden]{display:none!important}
.counter-basket-choice[aria-pressed="true"]{outline:3px solid #2377aa;background:#e7f2fa}
.counter-basket-choice{width:100%;white-space:normal;overflow-wrap:break-word}
.is-selected-basket{border-color:#2377aa;background:#f3faff}
.counter-more-stock{display:block;flex-basis:100%;font-size:.85rem;color:#526b7c;line-height:1.4}
.counter-model-feedback{display:block;overflow-wrap:break-word;line-height:1.5}
.counter-model-feedback:empty{display:none}
.counter-activity .counter-object.is-excess,.counter-activity .counter-bundle.is-excess{background:#fff0ef;border:2px solid #be2737;box-shadow:0 0 0 1px #be2737;color:#8e1724}
.counter-activity .is-excess .counter-picture{background:#ffe1de;border-radius:.35rem}
.counter-activity .counter-excess-tag{display:block;padding:.12rem .35rem;border-radius:.3rem;background:#a51d2d;color:#fff;font-size:.72rem;line-height:1.25;font-weight:800}
.counter-excess-feedback{display:block;margin:0;padding:.55rem .7rem;border:1px solid #cb6370;border-radius:.6rem;background:#fff0ef;color:#8e1724;font-weight:750;line-height:1.45;overflow-wrap:break-word}
.counter-activity [hidden]{display:none!important}
@keyframes counter-arrive{from{transform:scale(.9)}to{transform:scale(1)}}
@media(max-width:650px){.counter-addition,.counter-division,.counter-group-work{grid-template-columns:minmax(0,1fr)}.counter-move-arrow{justify-self:center;transform:rotate(90deg)}.counter-actions button{flex:1 1 140px}}
@container activity (max-width:640px){.counter-addition,.counter-group-work{grid-template-columns:minmax(0,1fr)}.counter-move-arrow{justify-self:center;transform:rotate(90deg)}}
@media(prefers-reduced-motion:reduce){.counter-object.is-added{animation:none}}
.calm-mode .counter-object.is-added{animation:none}
@media print{.counter-actions{display:none}}
