.arithmetic-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.arithmetic-copy .lesson { padding: 20px; margin-bottom: 18px; }
.arithmetic-board {
  position: sticky;
  top: 16px;
  padding: clamp(12px, 3vw, 18px);
  min-width: 0;
  background: #f2f9fd;
  border: 1px solid #c5e1ec;
  border-radius: 14px;
}
.arithmetic-board h2 { font-size: 1.1rem; margin: 0 0 12px; }
.arithmetic-figure { margin: 0; }
.arithmetic-figure svg {
  display: block;
  width: 100%;
  height: auto;
  color: #175d80;
  background: #fff;
  border: 1px solid #c5e1ec;
  border-radius: 10px;
}
.arithmetic-figure figcaption { margin-top: 5px; color: #476577; font-size: .875rem; }
.arithmetic-figure text { fill: #233f50; font-size: 17px; text-anchor: middle; }
.stone { fill: #287fac; }
.stone-orange { fill: #e89932; stroke: #a25512; stroke-width: 1; }
.stone-box { fill: #f2f9fd; stroke: #9fc6da; stroke-width: 1; }
.arithmetic-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.arithmetic-actions button {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #9fc6da;
  border-radius: 8px;
  color: #145c80;
  background: linear-gradient(#fff, #d9effc);
  box-shadow: 0 3px 0 #afcddd;
  cursor: pointer;
}
.arithmetic-actions button:active { transform: translateY(2px); box-shadow: none; }
.arithmetic-actions button:disabled { opacity: .65; cursor: default; }
.arithmetic-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.arithmetic-inputs label { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; }
.arithmetic-inputs input { width: 100%; margin: 0; accent-color: #d34242; min-height: 28px; }
.arithmetic-status {
  block-size: 4.7em;
  box-sizing: border-box;
  overflow: auto;
  margin: 12px 0 0;
  padding: 9px 10px;
  background: #e2f1fa;
  border-radius: 8px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .arithmetic-layout { grid-template-columns: 1fr; }
  .arithmetic-board { position: static; }
}
@media (max-width: 380px) {
  .arithmetic-inputs { grid-template-columns: 1fr; }
}
