:root {
  --bg: #f3f7f4;
  --panel: #ffffff;
  --ink: #1d2430;
  --muted: #667085;
  --line: #d9e2dc;
  --green: #1f7a4d;
  --blue: #2563eb;
  --rose: #be3455;
  --amber: #c47a1b;
  --skin: #f0b58c;
  --skin-on: #ffd29a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f9fbff 0%, var(--bg) 52%, #fff7ed 100%);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
}

.video-overlay,
.player-gate,
.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 36, 48, 0.58);
  backdrop-filter: blur(5px);
}

.video-overlay {
  z-index: 30;
}

.video-overlay.hidden,
.player-gate.hidden,
.result-overlay.hidden {
  display: none;
}

.video-card {
  width: min(920px, 100%);
  display: grid;
  gap: 12px;
  border: 2px solid #bfe4d1;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(29, 36, 48, 0.36);
}

.video-card video {
  width: 100%;
  max-height: 72vh;
  display: block;
  border-radius: 8px;
  background: #000;
}

.video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-actions strong {
  color: var(--green);
  font-size: 20px;
}

.video-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.player-card,
.result-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  border: 2px solid #bfe4d1;
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(29, 36, 48, 0.32);
}

.player-card span,
.result-card span {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.player-card h2,
.result-card h2,
.player-card p,
.result-card p {
  margin: 0;
}

.player-card h2,
.result-card h2 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.player-card p,
.result-card p {
  color: var(--muted);
  line-height: 1.45;
}

.player-card input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 22px;
  font-weight: 800;
}

.player-card button,
.result-card button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.sidebar {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.brand {
  display: grid;
  gap: 4px;
}

.brand span {
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.brand strong {
  color: var(--muted);
  font-size: 14px;
}

.book-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.book-tab,
.lesson-button,
.answer-form button,
#newProblem {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.book-tab.active,
.lesson-button.active,
.answer-form button,
#newProblem {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.lesson-list {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.lesson-button {
  height: auto;
  min-height: 54px;
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
  line-height: 1.25;
}

.lesson-button small {
  color: var(--muted);
  font-weight: 700;
}

.lesson-button.active small {
  color: rgba(255, 255, 255, 0.82);
}

.workspace {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.topbar,
.settings-panel,
.lesson-panel,
.practice,
.toc-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(29, 36, 48, 0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.topbar p,
.eyebrow {
  margin: 0 0 4px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.score span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  white-space: nowrap;
}

.settings-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
}

.settings-panel label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 900;
}

.settings-panel input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.settings-panel select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  font-weight: 800;
}

.settings-panel button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
}

#exitApp {
  background: var(--rose);
}

.timer-card {
  width: 120px;
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: #fff7bf;
  box-shadow: inset 0 -7px 0 rgba(196, 122, 27, 0.18);
}

.timer-card span,
.timer-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.timer-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.timer-card.warning strong {
  color: var(--rose);
}

.lesson-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  padding: 14px;
}

.guide,
.formula-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.guide p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.formula-card {
  display: grid;
  align-content: center;
  gap: 6px;
}

.formula-card span {
  color: var(--muted);
  font-weight: 800;
}

.formula-card strong {
  color: var(--green);
  font-size: 30px;
}

.practice {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(360px, 1fr);
  gap: 14px;
  padding: 14px;
}

.problem-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.problem-text {
  min-height: 104px;
  display: grid;
  place-items: center;
  border: 2px solid #bfe4d1;
  border-radius: 8px;
  color: var(--green);
  background: #f0fbf5;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
}

.answer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.answer-form input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-size: 28px;
  font-weight: 800;
}

.feedback {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.35;
}

.feedback.neutral {
  color: #344054;
  background: #eef2f6;
}

.feedback.good {
  color: #166534;
  background: #dcfce7;
}

.feedback.bad {
  color: #9f1239;
  background: #ffe4e6;
}

.hand-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hand-card {
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.hand-card span {
  color: var(--muted);
  font-weight: 900;
}

.hand svg {
  width: 100%;
  height: 190px;
  display: block;
}

.hand.left svg {
  transform: scaleX(-1);
}

.hand.left text {
  transform: scaleX(-1);
  transform-box: fill-box;
  transform-origin: center;
}

.finger {
  opacity: 0.2;
}

.finger.on {
  opacity: 1;
}

.finger .shape,
.palm {
  fill: var(--skin);
  stroke: #1d2430;
  stroke-width: 6;
  stroke-linejoin: round;
}

.finger.on .shape {
  fill: var(--skin-on);
}

.hand text {
  fill: #1d2430;
  font-size: 16px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.crease {
  fill: none;
  stroke: #1d2430;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.68;
}

.toc-image {
  min-height: 0;
  display: grid;
  padding: 14px;
}

.toc-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.toc-left {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-head strong {
  display: block;
  font-size: 20px;
}

.toc-image img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.score-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-panel-head strong {
  display: block;
  font-size: 22px;
}

.score-panel-head button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--rose);
  font-weight: 900;
}

.level-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.summary-card {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.summary-card strong {
  color: var(--green);
  font-size: 22px;
}

.score-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.score-table th,
.score-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  font-size: 14px;
}

.score-table th {
  position: sticky;
  top: 0;
  color: #166534;
  background: #eaf8ef;
}

.score-table td {
  color: var(--ink);
}

.score-table .empty-row {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lesson-list {
    max-height: 260px;
  }

  .lesson-panel,
  .practice,
  .toc-layout {
    grid-template-columns: 1fr;
  }

  .level-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .workspace,
  .sidebar {
    padding: 10px;
  }

  .book-tabs,
  .hand-board,
  .answer-form {
    grid-template-columns: 1fr;
  }
}

/* Bright learning dashboard theme */
:root {
  --sky: #11a5f5;
  --sky-dark: #0877d7;
  --sun: #ffd45a;
  --deep: #08306f;
  --panel: #ffffff;
  --ink: #09245c;
  --muted: #5d7196;
  --line: #cbe6fb;
  --green: #19a363;
  --blue: #1677e8;
  --rose: #f04462;
  --amber: #f59e0b;
  --skin: #f6bd8f;
  --skin-on: #ffd1a2;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.78) 0 22px, transparent 23px),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.55) 0 28px, transparent 29px),
    linear-gradient(180deg, #078ee7 0%, #57c8ff 42%, #e9f8ff 100%);
}

.app {
  min-height: 100vh;
  grid-template-columns: 315px minmax(0, 1fr);
  gap: 0;
  padding: 8px;
}

.sidebar {
  min-height: calc(100vh - 16px);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9) 0 14px, transparent 15px),
    linear-gradient(180deg, #0aa5f0 0%, #0678d4 100%);
  box-shadow: 0 18px 46px rgba(5, 62, 125, 0.3);
}

.brand {
  min-height: 116px;
  position: relative;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.brand::before,
.brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #fff;
  opacity: 0.9;
}

.brand::before {
  width: 62px;
  height: 24px;
  left: 10px;
  top: 12px;
  box-shadow: 24px 2px 0 2px #fff, 46px 7px 0 -4px #fff;
}

.brand::after {
  width: 74px;
  height: 26px;
  right: 8px;
  top: 48px;
  box-shadow: 26px 3px 0 1px #fff;
}

.brand-hand,
.top-mascot {
  width: 76px;
  height: 84px;
  position: relative;
  display: block;
  border: 4px solid #0b2d68;
  border-radius: 28px 28px 24px 24px;
  background: var(--skin-on);
  box-shadow: inset 0 -7px 0 rgba(222, 111, 57, 0.24);
}

.brand-hand {
  margin-bottom: 5px;
}

.brand-hand span,
.top-mascot span {
  position: absolute;
  bottom: 58px;
  width: 18px;
  height: 48px;
  border: 4px solid #0b2d68;
  border-radius: 14px;
  background: var(--skin-on);
}

.brand-hand span:nth-child(1),
.top-mascot span:nth-child(1) { left: 2px; transform: rotate(-10deg); }
.brand-hand span:nth-child(2),
.top-mascot span:nth-child(2) { left: 20px; height: 58px; }
.brand-hand span:nth-child(3),
.top-mascot span:nth-child(3) { left: 40px; height: 54px; }
.brand-hand span:nth-child(4),
.top-mascot span:nth-child(4) { right: -3px; transform: rotate(12deg); }

.brand > span {
  z-index: 1;
  color: #fff36d;
  text-shadow: 0 4px 0 #0a4ba0, 0 7px 18px rgba(0, 0, 0, 0.25);
  font-size: 34px;
  line-height: 0.94;
  text-transform: uppercase;
}

.brand strong {
  z-index: 1;
  margin-top: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.student-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 75, 142, 0.18);
}

.student-avatar {
  width: 54px;
  height: 54px;
  border: 4px solid #ffd7a8;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 42%, #0b2d68 0 4px, transparent 5px),
    radial-gradient(circle at 65% 42%, #0b2d68 0 4px, transparent 5px),
    radial-gradient(circle at 50% 66%, #ef6d7a 0 11px, transparent 12px),
    linear-gradient(#f7c391 0 62%, #fff3df 63%);
}

.student-card span,
.student-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.student-card strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.book-tabs {
  gap: 10px;
}

.book-tab {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.book-tab.active {
  color: #06468d;
  background: #fff;
}

.lesson-list {
  gap: 8px;
  padding-right: 0;
}

.lesson-button {
  min-height: 62px;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(7, 75, 142, 0.14);
}

.lesson-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #28c76f, #10a956);
}

.lesson-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #34c759, #168b45);
  font-size: 21px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.lesson-copy {
  display: grid;
  min-width: 0;
}

.lesson-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.lesson-copy small {
  font-size: 11px;
}

.lesson-star {
  width: 22px;
  height: 22px;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  border: 1px solid #f5c56b;
  background: #fff8df;
}

.lesson-button.active .lesson-star {
  background: #ffd85a;
}

.workspace {
  gap: 10px;
  padding: 0 0 0 10px;
}

.topbar,
.settings-panel,
.lesson-panel,
.practice,
.toc-image {
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 30px rgba(7, 75, 142, 0.16);
}

.topbar {
  min-height: 146px;
  align-items: center;
  padding: 18px;
}

.top-mascot {
  flex: 0 0 auto;
  transform: rotate(-8deg);
}

.top-title {
  min-width: 0;
  flex: 1;
}

.topbar p,
.eyebrow {
  color: #e71955;
  letter-spacing: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 46px);
}

.score {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
}

.score span {
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid #ffe5bf;
  border-radius: 16px;
  padding: 10px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #fff8ed);
  box-shadow: inset 0 -6px 0 rgba(245, 158, 11, 0.08);
}

.score strong {
  color: var(--blue);
  font-size: 24px;
}

.settings-panel {
  min-height: 86px;
  padding: 14px 18px;
}

.timer-card {
  width: 96px;
  min-height: 78px;
  border-color: #344054;
  background: radial-gradient(circle at 50% 12%, #fff 0 18px, #fff8c8 19px);
}

.settings-panel label {
  min-height: 48px;
  border-color: #ffe5bf;
  color: var(--ink);
  background: #fffdf8;
}

.settings-panel button,
.answer-form button,
#newProblem {
  border: 0;
  background: linear-gradient(180deg, #ff9816, #ef6c00);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

#exitApp {
  background: linear-gradient(180deg, #ff5f7c, #e51f55);
}

.lesson-panel {
  grid-template-columns: minmax(0, 1fr) 180px 280px;
  gap: 10px;
  padding: 10px;
}

.guide,
.formula-card,
.classroom-card {
  border-color: #cdeeff;
  border-radius: 14px;
  background: #ffffff;
}

.formula-card strong {
  color: #16935a;
  font-size: 48px;
}

.classroom-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  display: grid;
  place-items: center end;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, #dff6ff 0%, #b9ebff 100%);
}

.board-doodle {
  width: 146px;
  border: 5px solid #a36a2f;
  border-radius: 10px;
  padding: 12px;
  color: #fff9d8;
  background: #3d8f67;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.desk-doodle {
  position: absolute;
  left: 18px;
  bottom: 10px;
  width: 72px;
  height: 58px;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 34% 38%, #09245c 0 4px, transparent 5px),
    radial-gradient(circle at 64% 38%, #09245c 0 4px, transparent 5px),
    radial-gradient(circle at 50% 60%, #ff7485 0 8px, transparent 9px),
    #fff;
  box-shadow: 88px 7px 0 -7px #f1a65a;
}

.practice {
  grid-template-columns: minmax(340px, 1fr) minmax(360px, 0.9fr);
  padding: 10px;
}

.problem-card,
.hand-card {
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
}

.problem-text {
  min-height: 116px;
  border-color: #b6f0d0;
  border-radius: 14px;
  color: #168d55;
  background: linear-gradient(180deg, #f5fffa, #e7fff1);
  font-size: clamp(48px, 6vw, 78px);
  box-shadow: inset 0 -7px 0 rgba(22, 141, 85, 0.06);
}

.answer-form input {
  border-radius: 12px;
}

.answer-form button {
  border-radius: 12px;
  background: linear-gradient(180deg, #26c76f, #0f9f56);
}

.feedback {
  border-radius: 14px;
}

.hand-board {
  gap: 10px;
}

.hand-card {
  min-height: 284px;
  border-color: #cdeeff;
}

.hand-card span {
  color: #426096;
}

.toc-image {
  padding: 10px;
}

.toc-layout {
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1fr);
}

.toc-image img,
.score-panel,
.score-table-wrap {
  border-color: #cdeeff;
  border-radius: 14px;
}

.score-panel {
  background: #ffffff;
}

.summary-card {
  border-color: #ffe5bf;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fff9ec);
}

.score-table th {
  color: #0956a5;
  background: #e9f7ff;
}

@media (max-width: 1200px) {
  .score {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }

  .lesson-panel,
  .practice,
  .toc-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .app {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-radius: 0;
  }

  .workspace {
    padding: 10px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
