:root {
  --dmr-ink: #212121;
  --dmr-bg: #fbe9f2;
  --dmr-panel: #fffcf0;
  --dmr-blue: #bde7fb;
  --dmr-green: #d1e8ca;
  --dmr-yellow: #ffe298;
  --dmr-neutral: #fff2df;
}

body.dmr-focused-practice-app {
  margin: 0;
  min-height: 100vh;
  background: var(--dmr-bg);
  color: var(--dmr-ink);
  font-family: Verdana, Arial, sans-serif;
}

body.has-dmr-shell.dmr-focused-practice-app {
  padding-bottom: 28px !important;
}

body.dmr-focused-practice-app .infoandapp {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 420px);
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
  justify-content: center;
  width: min(100%, 1240px);
  margin: 0 auto;
}

body.dmr-focused-practice-app .container,
body.dmr-focused-practice-app .end-screen,
body.dmr-focused-practice-app .info-panel {
  min-width: 0;
  border: 6px solid var(--dmr-ink);
  border-radius: 0;
  background: var(--dmr-panel);
  color: var(--dmr-ink);
  box-shadow: none;
}

body.dmr-focused-practice-app .container,
body.dmr-focused-practice-app .end-screen {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
  text-align: center;
}

body.dmr-focused-practice-app .info-panel {
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  background: var(--dmr-blue);
  font-size: 15px;
  line-height: 1.42;
}

body.dmr-focused-practice-app .heading {
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 5px solid var(--dmr-ink);
}

body.dmr-focused-practice-app h1,
body.dmr-focused-practice-app h2,
body.dmr-focused-practice-app h3,
body.dmr-focused-practice-app p {
  margin-top: 0;
}

body.dmr-focused-practice-app h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  text-transform: none;
}

body.dmr-focused-practice-app .orderStart,
body.dmr-focused-practice-app .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

body.dmr-focused-practice-app button,
body.dmr-focused-practice-app select,
body.dmr-focused-practice-app input {
  border-radius: 0;
  color: var(--dmr-ink);
  font-family: inherit;
}

body.dmr-focused-practice-app button,
body.dmr-focused-practice-app select {
  min-height: 44px;
  max-height: none;
  max-width: none;
  padding: 8px 12px;
  border: 4px solid var(--dmr-ink);
  background: var(--dmr-neutral);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

body.dmr-focused-practice-app button:hover,
body.dmr-focused-practice-app button:focus-visible,
body.dmr-focused-practice-app select:hover,
body.dmr-focused-practice-app select:focus-visible {
  background: var(--dmr-yellow);
  color: var(--dmr-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.dmr-focused-practice-app .question {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  margin-top: 14px;
  padding: clamp(14px, 2.4vw, 24px);
  border: 5px solid var(--dmr-ink);
  background: #eef7fb;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
}

body.dmr-focused-practice-app .question.hidden {
  display: none;
}

body.dmr-focused-practice-app .answer,
body.dmr-focused-practice-app #name,
body.dmr-focused-practice-app .fractionInput input {
  min-height: 48px;
  border: 4px solid var(--dmr-ink);
  border-radius: 0;
  background: var(--dmr-panel);
  color: var(--dmr-ink);
  font-weight: 900;
}

body.dmr-focused-practice-app .answer {
  width: clamp(90px, 18vw, 180px);
  max-width: none;
  padding: 6px 8px;
  font-size: clamp(28px, 4.8vw, 54px);
}

body.dmr-focused-practice-app .feedback {
  min-height: 34px;
  margin-top: 12px;
  font-weight: 900;
}

body.dmr-focused-practice-app .score,
body.dmr-focused-practice-app .timer,
body.dmr-focused-practice-app #chooseinfo,
body.dmr-focused-practice-app #enterRowInfo {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.25;
}

@media (max-width: 980px) {
  body.dmr-focused-practice-app .infoandapp {
    grid-template-columns: 1fr;
  }
}

html.student-app-source,
html.student-app-source body.dmr-focused-practice-app {
  height: 100%;
  overflow: hidden;
}

html.student-app-source body.has-dmr-shell.dmr-focused-practice-app {
  padding: 92px 14px 14px !important;
  min-height: 100vh;
  background: var(--dmr-bg) !important;
}

html.student-app-source body.dmr-focused-practice-app footer,
html.student-app-source body.dmr-focused-practice-app .info-panel {
  display: none !important;
}

html.student-app-source body.dmr-focused-practice-app .infoandapp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  width: min(100%, 1460px);
  height: calc(100vh - 106px);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
}

html.student-app-source body.dmr-focused-practice-app .container,
html.student-app-source body.dmr-focused-practice-app .end-screen {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(10px, 1.5vw, 18px);
  border: 6px solid var(--dmr-ink);
  border-radius: 0;
  background: var(--dmr-panel);
  color: var(--dmr-ink);
  overflow: hidden;
}

html.student-app-source body.dmr-focused-practice-app .container {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  gap: clamp(6px, 1.1vh, 11px);
}

html.student-app-source body.dmr-focused-practice-app .end-screen {
  flex-direction: column;
  justify-content: center;
  gap: clamp(6px, 1.1vh, 12px);
  font-size: clamp(14px, 1.5vw, 18px);
}

html.student-app-source body.dmr-focused-practice-app .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 5px solid var(--dmr-ink);
}

html.student-app-source body.dmr-focused-practice-app h1,
html.student-app-source body.dmr-focused-practice-app h2,
html.student-app-source body.dmr-focused-practice-app p {
  margin-block: 0;
}

html.student-app-source body.dmr-focused-practice-app h1 {
  font-size: clamp(24px, 4vw, 42px) !important;
  line-height: 1;
}

html.student-app-source body.dmr-focused-practice-app button,
html.student-app-source body.dmr-focused-practice-app select,
html.student-app-source body.dmr-focused-practice-app input {
  border-radius: 0 !important;
  text-transform: none !important;
}

html.student-app-source body.dmr-focused-practice-app button,
html.student-app-source body.dmr-focused-practice-app select {
  min-height: 44px;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 4px solid var(--dmr-ink) !important;
  background: var(--dmr-blue) !important;
  color: var(--dmr-ink) !important;
  font: inherit !important;
  font-size: clamp(15px, 2vw, 22px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

html.student-app-source body.dmr-focused-practice-app button:disabled,
html.student-app-source body.dmr-focused-practice-app select:disabled {
  background: var(--dmr-neutral) !important;
  opacity: 0.62;
}

html.student-app-source body.dmr-focused-practice-app .allSettings {
  display: grid;
  gap: 8px;
  min-height: 0;
}

html.student-app-source body.dmr-focused-practice-app .settings {
  min-height: 0;
}

html.student-app-source body.dmr-focused-practice-app #chooseinfo,
html.student-app-source body.dmr-focused-practice-app #enterRowInfo {
  padding: 0;
  font-size: clamp(14px, 1.7vw, 20px);
  line-height: 1.2;
}

html.student-app-source body.dmr-focused-practice-app .orderStart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 0;
}

html.student-app-source body.dmr-focused-practice-app #timesTableButtons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

html.student-app-source body.dmr-focused-practice-app .times-table-button {
  min-height: 38px;
  padding: 3px 6px !important;
  font-size: clamp(16px, 2.1vw, 24px) !important;
}

html.student-app-source body.dmr-focused-practice-app .times-table-button.selected {
  background: var(--dmr-green) !important;
  box-shadow: inset 0 0 0 3px var(--dmr-panel) !important;
  outline: 4px solid var(--dmr-ink);
  outline-offset: 2px;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

html.student-app-source body.dmr-focused-practice-app .times-table-button.selected:disabled {
  opacity: 1;
}

html.student-app-source body.dmr-focused-practice-app .question {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(10px, 2vw, 20px);
  border: 5px solid var(--dmr-ink);
  background: #eef7fb;
  font-size: clamp(32px, 6.2vw, 64px);
  font-weight: 900;
  line-height: 1;
}

html.student-app-source body.dmr-focused-practice-app .question.hidden {
  display: none !important;
}

html.student-app-source body.dmr-focused-practice-app .question span {
  padding: 0 0.12em;
}

html.student-app-source body.dmr-focused-practice-app .answer {
  width: clamp(88px, 18vw, 170px);
  max-width: none;
  min-height: clamp(54px, 8vw, 78px);
  padding: 4px 8px !important;
  border: 5px solid var(--dmr-ink) !important;
  border-radius: 0 !important;
  background: var(--dmr-neutral) !important;
  color: var(--dmr-ink) !important;
  font-size: clamp(28px, 5.6vw, 58px) !important;
  line-height: 1 !important;
}

html.student-app-source body.dmr-focused-practice-app .feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

html.student-app-source body.dmr-focused-practice-app #enterRow {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

html.student-app-source body.dmr-focused-practice-app #enterRow.hidden {
  display: none !important;
}

html.student-app-source body.dmr-focused-practice-app #submit {
  min-width: min(220px, 100%);
  background: var(--dmr-green) !important;
}

html.student-app-source body.dmr-focused-practice-app .score,
html.student-app-source body.dmr-focused-practice-app .timer {
  padding: 0;
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.1;
}

html.student-app-source body.dmr-focused-practice-app .correct,
html.student-app-source body.dmr-focused-practice-app .incorrect {
  font-size: clamp(16px, 2vw, 22px);
}

html.student-app-source body.dmr-focused-practice-app .hidden {
  display: none !important;
}

html.student-app-source body.dmr-focused-practice-app .actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

html.student-app-source body.dmr-focused-practice-app #name {
  width: min(100%, 360px);
  min-height: 44px;
  padding: 6px 8px;
  border: 4px solid var(--dmr-ink);
  font-size: clamp(16px, 2vw, 22px);
}

@media (max-width: 700px) {
  html.student-app-source body.has-dmr-shell.dmr-focused-practice-app {
    padding: 84px 10px 10px !important;
  }

  html.student-app-source body.dmr-focused-practice-app .infoandapp {
    height: calc(100vh - 94px);
  }

  html.student-app-source body.dmr-focused-practice-app .container {
    gap: 6px;
    padding: 10px;
    border-width: 5px;
  }

  html.student-app-source body.dmr-focused-practice-app .heading {
    gap: 8px;
    padding-bottom: 6px;
  }

  html.student-app-source body.dmr-focused-practice-app .orderStart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.student-app-source body.dmr-focused-practice-app #timesTableButtons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.student-app-source body.dmr-focused-practice-app .question {
    flex-wrap: wrap;
    align-content: center;
    font-size: clamp(28px, 9vw, 42px);
  }

  html.student-app-source body.dmr-focused-practice-app .answer {
    width: min(100%, 150px);
    min-height: 52px;
    font-size: clamp(26px, 8vw, 40px) !important;
  }
}
