:root {
  color-scheme: light;
  --paper: #f4f5f0;
  --white: #fffefa;
  --ink: #26352e;
  --muted: #58665d;
  --line: #d9dfd4;
  --accent: #51438b;
  --wash: #eeeaf7;
  --green: #326343;
  --green-wash: #eaf2e5;
  --warm: #f6edda;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
input,
select {
  min-height: 44px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 36px;
}
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.3px;
  text-decoration: none;
  gap: 10px;
}
.brand svg {
  width: 34px;
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.brand svg path {
  fill: none;
  stroke-width: 2;
}
.brand > span {
  color: var(--accent);
  margin-left: -10px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  padding: 6px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #b8c3b3;
  border-radius: 7px;
  background: var(--white);
  padding: 10px 17px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: #edf0e8;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.button.primary:hover {
  background: #413471;
}
.button.small {
  font-size: 12px;
  padding: 8px 12px;
}
.button.danger {
  background: #883e36;
  border-color: #883e36;
  color: white;
}
.quiet {
  border: 0;
  background: transparent;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 3px;
}
.quiet:hover {
  text-decoration: underline;
  color: var(--ink);
}
.muted {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.notice {
  padding: 13px 17px;
  border: 1px solid #cfc5e7;
  background: var(--wash);
  border-radius: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.notice.warning {
  background: var(--warm);
  border-color: #dfcfae;
}
.loading {
  padding: 30px;
}
.workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.library {
  padding: 10px 0;
}
.library-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 17px;
  gap: 8px;
}
.library-heading h2 {
  font-size: 13px;
  font-weight: 600;
}
.library-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.deck-list {
  display: grid;
  gap: 7px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px;
}
.deck-button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  min-width: 0;
  width: 100%;
}
.deck-button:hover {
  background: #eaeee4;
}
.deck-button[aria-pressed="true"] {
  background: var(--white);
  border-color: #b9add8;
  box-shadow: 0 2px 0 #e6e1ef;
}
.deck-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 39px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 500;
  border: 1px solid #cdd8c5;
  border-radius: 8px;
  background: #e9efdf;
  color: #4c6546;
}
.deck-button:nth-child(3n + 2) .deck-icon {
  background: #eee8f6;
  border-color: #d8cde6;
  color: #645084;
}
.deck-button:nth-child(3n) .deck-icon {
  background: #f4ead9;
  border-color: #dfd2ba;
  color: #785830;
}
.deck-info {
  min-width: 0;
}
.deck-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.deck-info small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}
.review-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 27px 9px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.library-label {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 8px;
  font-weight: 600;
}
.library-group > summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
.library-group .deck-button {
  width: 100%;
  margin-bottom: 6px;
}
.review-note strong {
  font-weight: 550;
  color: var(--ink);
}
.review-mark {
  font-size: 27px;
  color: var(--accent);
}
.mobile-picker {
  display: none;
}
.study {
  background: var(--white);
  border: 1px solid #d4dccd;
  border-radius: 15px;
  box-shadow: 0 5px 0 #e7eade;
  padding: 26px 28px;
  min-width: 0;
  scroll-margin-top: 12px;
}
.study-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.study-heading .button {
  flex-shrink: 0;
}
.meta {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: var(--muted);
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 6px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.practice-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 25px 0 23px;
}
.modes {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: #f1f3ed;
  border-radius: 8px;
  gap: 3px;
}
.modes button {
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  font-size: 12px;
  font-weight: 550;
  padding: 8px 13px;
  color: var(--muted);
}
.modes button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--white);
  border-color: #d7d0e6;
  box-shadow: 0 1px 2px #3f325314;
}
.size-field {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
select,
input,
textarea {
  border: 1px solid #b8c3b3;
  border-radius: 6px;
  background: var(--white);
  padding: 9px 10px;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}
select {
  padding-right: 26px;
}
.size-field select {
  font-size: 12px;
}
.round-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 11px;
  color: var(--muted);
}
.round-top p {
  color: var(--ink);
  font-weight: 550;
}
progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 5px;
  background: #e6eadf;
  margin-bottom: 21px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #e6eadf;
}
progress::-webkit-progress-value {
  background: #81986c;
}
progress::-moz-progress-bar {
  background: #81986c;
}
.practice {
  min-height: 390px;
}
.question-card {
  border: 1px solid #dcd7c9;
  border-radius: 12px;
  background: #fcfaf3;
  padding: 27px 28px;
  text-align: center;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-wrap: anywhere;
}
.question-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 25px;
}
.question {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.5px;
  max-width: 660px;
}
.question.math {
  font-size: 54px;
  letter-spacing: -1.7px;
  font-variant-numeric: tabular-nums;
}
.case-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.hint {
  margin-top: 12px;
  font-size: 15px;
  max-width: 100%;
}
.hint summary {
  cursor: pointer;
  color: var(--accent);
  min-height: 44px;
  align-content: center;
  list-style-position: inside;
}
.hint p {
  max-width: 440px;
  margin: 8px auto;
  color: var(--muted);
}
.visual-model {
  margin: 16px auto;
  max-width: 100%;
}
.addition-model,
.place-model {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.counter-group {
  display: grid;
  grid-template-columns: repeat(5, 25px);
  gap: 7px;
  justify-content: center;
}
.counter {
  display: block;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  border: 2px solid #326343;
  background: #98b77d;
}
.counter.second {
  border-radius: 4px;
  border-color: #51438b;
  background: #b8a6db;
}
.counter.removed {
  background: #fffefa;
  border-color: #77542c;
  color: #77542c;
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
}
.subtraction-model {
  display: flex;
  justify-content: center;
}
.picture-plus {
  font-size: 25px;
}
.empty-group {
  font-size: 18px;
  color: var(--muted);
}
.picture-label {
  display: block;
  font-size: 14px;
  margin-bottom: 9px;
  text-align: center;
}
.place-model {
  align-items: flex-start;
  gap: 24px;
}
.tens-rods {
  display: flex;
  gap: 4px;
}
.ten-rod {
  display: grid;
  gap: 1px;
  padding: 2px;
  border: 1px solid #326343;
  background: #326343;
}
.unit {
  display: block;
  width: 9px;
  height: 9px;
  background: #a9c68e;
}
.ones-blocks {
  display: grid;
  grid-template-columns: repeat(3, 13px);
  gap: 5px;
}
.ones-blocks .unit {
  width: 13px;
  height: 13px;
  border: 1px solid #51438b;
  background: #b8a6db;
}
.match-tile .visual-model {
  pointer-events: none;
  margin: 12px auto 0;
}
.match-tile .counter-group {
  grid-template-columns: repeat(5, 12px);
  gap: 4px;
}
.match-tile .counter {
  height: 12px;
  width: 12px;
  border-width: 1px;
  font-size: 15px;
}
.match-tile .addition-model,
.match-tile .place-model {
  gap: 10px;
}
.match-tile .dot {
  width: 6px;
  height: 6px;
}
.match-tile .dots {
  gap: 3px;
}
.match-tile .ten-frame {
  grid-template-columns: repeat(5, 12px);
  padding: 6px;
}
.match-tile .ten-frame .dot {
  width: 12px;
  height: 12px;
}
.match-tile .unit {
  width: 5px;
  height: 5px;
}
.match-tile .ten-rod {
  padding: 1px;
}
.match-tile .tens-rods {
  gap: 2px;
}
.match-tile .ones-blocks {
  grid-template-columns: repeat(3, 7px);
  gap: 3px;
}
.match-tile .ones-blocks .unit {
  width: 7px;
  height: 7px;
}
.dots {
  display: grid;
  gap: 6px;
  margin: 17px auto;
  max-width: 100%;
  width: fit-content;
}
.dot {
  height: 13px;
  width: 13px;
  border-radius: 50%;
  background: #537342;
}
.ten-frame {
  grid-template-columns: repeat(5, 28px);
  gap: 6px;
  border: 1px solid #acb89d;
  border-radius: 7px;
  padding: 10px;
}
.ten-frame .dot {
  width: 28px;
  height: 28px;
  background: #fffefa;
  border: 1px solid #647e54;
}
.ten-frame .dot.filled {
  background: #537342;
  border-color: #647e54;
}
.fraction-bar {
  display: flex;
  width: min(300px, 100%);
  height: 46px;
  border: 1px solid #8677ac;
  border-radius: 6px;
  overflow: hidden;
  margin: 16px auto;
}
.fraction-bar span {
  flex: 1;
  border-right: 1px solid #b3a8c8;
  background: #eee8f5;
}
.fraction-bar span:last-child {
  border: 0;
}
.fraction-bar .filled {
  background: #68538c;
}
.answer-area {
  border-top: 1px solid #ddd7c7;
  margin-top: 23px;
  padding-top: 20px;
  width: 100%;
}
.answer {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.explanation {
  font-size: 14px;
  line-height: 1.8;
  margin: 11px auto 0;
  max-width: 580px;
  color: #4c5e51;
}
.practice-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  flex-wrap: wrap;
}
.practice-actions .button {
  min-width: 150px;
}
.again {
  background: #faf2e3;
}
.got-it {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.got-it:hover {
  background: #284f35;
}
.answer-form {
  margin-top: 20px;
}
.answer-form label {
  font-size: 12px;
  font-weight: 550;
  display: block;
  margin-bottom: 7px;
}
.answer-entry {
  display: flex;
  gap: 10px;
}
.answer-entry input {
  flex: 1;
  min-width: 0;
}
.feedback {
  border-radius: 8px;
  padding: 13px 16px;
  margin-top: 16px;
  background: var(--green-wash);
  color: #2d5839;
  font-size: 14px;
}
.feedback.retry {
  background: var(--warm);
  color: #77542c;
}
.feedback strong {
  font-weight: 600;
}
.self-check {
  display: block;
  margin: 7px 0 0;
  padding: 4px 0;
  text-decoration: underline;
  color: inherit;
}
.results {
  padding: 34px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f7ef;
  min-height: 300px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.result-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 1px solid #b6c8a6;
  background: #e8f0de;
  border-radius: 50%;
  font-size: 25px;
  color: var(--green);
}
.results h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
}
.results p {
  font-size: 14px;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.8;
}
.results .result-score {
  font-size: 18px;
  color: var(--ink);
}
.match-instructions {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.match-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.match-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.match-column h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 3px;
}
.match-tile {
  border: 1px solid #cbd4c4;
  background: #fafbf6;
  border-radius: 8px;
  padding: 13px;
  min-height: 75px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  flex: 1 0 auto;
}
.match-tile[aria-pressed="true"] {
  border: 2px solid var(--accent);
  padding: 12px;
  background: var(--wash);
}
.match-tile.matched {
  background: #eaf2e5;
  border-color: #b4c5a7;
  opacity: 1;
  color: #3b5e3e;
}
.match-message {
  min-height: 44px;
  font-size: 13px;
  margin-top: 13px;
  color: var(--muted);
  padding: 8px 0;
}
.set-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 12px;
}
.set-actions > div {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.storage-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.shared-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: var(--wash);
  border-radius: 8px;
  padding: 12px;
  margin-top: 15px;
  font-size: 12px;
}
.shared-actions button {
  flex-shrink: 0;
}
.help {
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}
.help summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  width: fit-content;
}
#help-content {
  max-width: 780px;
  padding: 8px 0 27px;
  scroll-margin-top: 20px;
}
.help h2 {
  font-size: 14px;
  color: var(--ink);
  margin: 18px 0 6px;
}
.help p {
  line-height: 1.9;
}
.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  color: var(--muted);
  padding: 20px 0 80px;
}
footer a {
  text-decoration: none;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  background: var(--white);
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
dialog {
  border: 1px solid #c8d0be;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  padding: 25px;
  width: calc(100% - 28px);
  max-width: 540px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 20px 100px #26352e33;
}
dialog::backdrop {
  background: #23362e66;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.dialog-heading h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  font-weight: 550;
}
.close {
  background: transparent;
  border: 0;
  font-size: 28px;
  min-width: 44px;
  flex-shrink: 0;
  color: var(--muted);
}
dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  margin-top: 17px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.error {
  font-size: 13px;
  color: #8d332d;
  min-height: 20px;
  margin-top: 10px;
}
#editor {
  max-width: 760px;
}
.editor-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 15px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.check-label input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.paste-panel {
  margin: 18px 0;
  border-block: 1px solid var(--line);
  padding: 5px 0;
  font-size: 12px;
  color: var(--muted);
}
.paste-panel summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
}
.paste-panel textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.paste-panel button {
  margin: 12px 0;
}
.editor-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 18px 0;
  min-width: 0;
}
.editor-row legend {
  font-size: 11px;
  color: var(--muted);
  padding: 0 5px;
}
.editor-row .row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.editor-row label {
  margin-top: 5px;
}
.editor-row textarea {
  width: 100%;
  resize: vertical;
  min-height: 70px;
  font-size: 14px;
}
.editor-row .row-remove {
  display: block;
  margin: 4px 0 -4px auto;
}
.editor-row .note-field {
  margin-top: 10px;
}
.editor-row .note-field input {
  font-size: 13px;
  width: 100%;
}
#share-status {
  margin-top: 12px;
}
#share-url {
  font-size: 12px;
}
@media (max-width: 1050px) {
  .shell {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 15px;
  }
  .study {
    padding: 22px;
  }
  .practice-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  .size-field {
    margin-left: auto;
  }
  .modes {
    flex: 1;
  }
  .modes button {
    flex: 1;
    padding-inline: 8px;
  }
}
@media (max-width: 760px) {
  .addition-model {
    gap: 10px;
  }
  .addition-model .counter-group {
    grid-template-columns: repeat(3, 20px);
    gap: 5px;
  }
  .addition-model .counter {
    width: 20px;
    height: 20px;
  }
  .match-tile .addition-model {
    flex-direction: column;
    gap: 6px;
  }
  .match-tile .counter-group {
    grid-template-columns: repeat(5, 10px);
    gap: 3px;
  }
  .match-tile .counter {
    width: 10px;
    height: 10px;
    font-size: 12px;
  }
  .shell {
    padding: 0 16px;
  }
  .site-header {
    height: 70px;
  }
  .brand {
    font-size: 26px;
    gap: 7px;
  }
  .brand svg {
    width: 29px;
  }
  .brand > span {
    margin-left: -7px;
  }
  .site-header nav {
    gap: 2px;
  }
  .site-header nav .button {
    padding: 6px 8px;
  }
  .workspace {
    display: block;
  }
  .library {
    padding: 0 0 15px;
  }
  .library-heading,
  .deck-list,
  .review-note {
    display: none;
  }
  .mobile-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
  }
  .mobile-picker select {
    width: 100%;
    color: var(--ink);
  }
  .study {
    padding: 20px 18px;
    border-radius: 12px;
  }
  .study-heading h1 {
    font-size: 25px;
  }
  .study-heading .muted {
    font-size: 12px;
  }
  #deck-description {
    display: none;
  }
  .study-heading .button {
    padding: 6px 9px;
    font-size: 11px;
  }
  .meta {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .practice-controls {
    margin: 20px 0 15px;
  }
  .modes {
    width: 100%;
    flex-basis: 100%;
  }
  .modes button {
    font-size: 14px;
    padding: 8px 6px;
  }
  .size-field {
    margin-left: 0;
  }
  .round-top {
    font-size: 10px;
  }
  .round-top > span {
    text-align: right;
  }
  .question-card {
    padding: 21px 17px;
    min-height: 230px;
  }
  .question {
    font-size: 24px;
  }
  .question.math {
    font-size: 46px;
  }
  .question-label {
    margin-bottom: 12px;
  }
  .question-card .question-label {
    display: none;
  }
  .practice {
    min-height: 350px;
  }
  .answer {
    font-size: 28px;
  }
  .explanation {
    font-size: 15px;
  }
  .practice-actions {
    gap: 8px;
  }
  .practice-actions .button {
    min-width: 0;
    flex: 1;
    padding-inline: 10px;
    font-size: 16px;
    min-height: 48px;
  }
  .match-tile {
    font-size: 14px;
    padding: 10px;
    min-height: 80px;
  }
  .match-tile[aria-pressed="true"] {
    padding: 9px;
  }
  .match-grid {
    gap: 9px;
  }
  .set-actions {
    gap: 4px;
  }
  .set-actions > div {
    gap: 0;
  }
  .set-actions .quiet {
    font-size: 11px;
    padding-inline: 7px;
  }
  .shared-actions {
    flex-wrap: wrap;
  }
  .answer-entry {
    gap: 7px;
  }
  .answer-entry .button {
    font-size: 12px;
    padding-inline: 11px;
  }
  .study:focus-visible {
    outline-offset: 2px;
  }
  .editor-fields {
    grid-template-columns: 1fr;
  }
  .editor-fields label + label {
    margin-top: 0;
  }
  dialog {
    padding: 20px;
  }
  .editor-row .row-grid {
    grid-template-columns: 1fr;
  }
  .results {
    padding: 25px 15px;
  }
  .results h2 {
    font-size: 22px;
  }
  .results p {
    font-size: 13px;
  }
  .dots {
    gap: 4px;
  }
  .dot {
    width: 11px;
    height: 11px;
  }
  .ten-frame {
    grid-template-columns: repeat(5, 25px);
  }
  .ten-frame .dot {
    width: 25px;
    height: 25px;
  }
}
@media (max-width: 360px) {
  .shell {
    padding: 0 12px;
  }
  .brand {
    font-size: 24px;
  }
  .brand svg {
    width: 26px;
  }
  .site-header nav .quiet,
  .site-header nav a {
    font-size: 11px;
    padding-inline: 6px;
  }
  .study {
    padding: 17px 14px;
  }
  .study-heading {
    gap: 8px;
  }
  .study-heading h1 {
    font-size: 23px;
  }
  .round-top {
    align-items: flex-start;
  }
  .question.math {
    font-size: 40px;
  }
  .question {
    font-size: 22px;
  }
  .ten-frame {
    grid-template-columns: repeat(5, 23px);
    padding: 7px;
  }
  .ten-frame .dot {
    width: 23px;
    height: 23px;
  }
  .answer-entry {
    flex-wrap: wrap;
  }
  .answer-entry input {
    flex-basis: 100%;
  }
  .answer-entry .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
