:root {
  --hundreds-ink:#3158af;
  --hundreds-soft:#e8eeff;
  --tens-ink:#237a54;
  --tens-soft:#e7f5ed;
  --ones-ink:#a35a15;
  --ones-soft:#fff0df;
}
body[data-contrast=true] {
  --hundreds-ink:#23458f;
  --tens-ink:#165538;
  --ones-ink:#753b0a;
}
[data-place="hundreds"], .block.hundreds {
  --place-ink:var(--hundreds-ink);
  --place-soft:var(--hundreds-soft);
}
[data-place="tens"], .block.tens {
  --place-ink:var(--tens-ink);
  --place-soft:var(--tens-soft);
}
[data-place="ones"], .block.ones {
  --place-ink:var(--ones-ink);
  --place-soft:var(--ones-soft);
}
.place-word {font-weight:760}
body[data-colors=true] .place-word,
body[data-colors=true] .child-column[data-place] :is(.child-place,.child-digit,.child-answer),
body[data-colors=true] .column[data-place] :is(.place-label,.number,.pencil-value,.write,.answer-box) {
  color:var(--place-ink);
}
.child-column.child-receiving:before {
  content:"";
  position:absolute;
  inset:0 3px;
  z-index:-1;
  border-radius:15px;
  background:var(--lesson-highlight);
  opacity:.55;
}
body[data-colors=true] .child-column:is(.child-active,.child-changed,.child-receiving,.child-blocked):before,
body[data-colors=true] .child-new-value,
body[data-colors=true] .column[data-place].active:before {
  background-color:var(--place-soft);
}
body[data-colors=true] .child-column:is(.child-active,.child-blocked):before {
  border-color:var(--place-ink);
}
body[data-colors=true] .child-column :is(.child-answer,.child-borrow) {
  border-color:var(--place-ink);
}
body[data-colors=true] .child-column .child-borrow:hover {
  background:var(--place-soft);
}
body[data-colors=true] .block {
  background-color:var(--place-soft);
  border-color:var(--place-ink);
}
body[data-colors=false] .block {
  background-color:var(--soft);
  border-color:var(--accent);
}
#restart-problem p {margin-top:.55rem}
@media print {
  body[data-colors=true] #print-area .column[data-place] :is(.place-label,.number,.pencil-value) {
    color:#000;
  }
}
body[data-colors=true] :is(.child-count,.child-dots,.child-packet)[data-place] {
  --accent:var(--place-ink);
}
body[data-colors=true] .child-column .child-stroke:after {
  background:var(--place-ink);
}
.child-footer [data-child="restart"] {
  margin-inline-end:.25rem;
  border:1px solid var(--border);
  font-size:.92rem;
  font-weight:650;
}
