.overview-layout { grid-template-columns: 225px minmax(0, 1fr); }
.legacy-link { display: block; padding: 8px 10px; color: #5241bc; font-size: 13px; }
.overview-layout .nav-button { padding: 10px 8px; }
.overview-layout .hero { padding: 22px; margin-bottom: 12px; }
.overview-layout .hero h1 { font-size: clamp(23px, 3vw, 30px); margin-top: 0; }
.overview-layout .hero .eyebrow { margin-bottom: 6px; }
.lesson-copy { margin-bottom: 13px; }
.lesson-copy .action-row { margin-top: 9px; }
.lesson-copy .explanation { margin-top: 9px; font-size: 14px; }
.task-instruction { margin-top: 11px; padding-top: 11px; border-top: 1px solid #dde2eb; color: #323a51; }
.task-instruction strong { display: block; color: #302b60; margin-bottom: 2px; }
.task-panel { margin-bottom: 16px; padding: 18px; border: 1px solid #c7b9f2; border-left: 5px solid #6245c4; border-radius: 13px; background: #f3efff; }
.task-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.task-heading h2 { font-size: 20px; color: #362568; }
.task-progress-label { padding: 3px 10px; border-radius: 7px; color: #4c3698; background: #e4dcfa; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.task-description { margin-top: 8px; font-size: 14px; color: #34394e; }
.task-panel .task-progress { appearance: none; width: 100%; height: 9px; margin-top: 12px; border: 0; border-radius: 99px; overflow: hidden; background: #ded7ed; }
.task-progress::-webkit-progress-bar { background: #ded7ed; border-radius: 99px; }
.task-progress::-webkit-progress-value { background: #6245c4; border-radius: 99px; }
.task-progress::-moz-progress-bar { background: #6245c4; border-radius: 99px; }
.task-help { margin-top: 7px; font-size: 12px; color: #534968; }
.checkpoint-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.checkpoint-list > li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #dcd8e8; border-radius: 8px; background: #fff; color: #42495d; }
.checkpoint-list > li[data-guided="true"] { align-items: start; align-content: start; }
.checkpoint-content { min-width: 0; }
.checkpoint-list > li[data-guided="true"] .checkpoint-status { padding-top: 4px; }
.checkpoint-guidance { grid-column: 1 / -1; }
.checkpoint-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.checkpoint-steps li + li { margin-top: 7px; }
.checkpoint-completion { margin-top: 10px; padding-top: 8px; border-top: 1px solid #dcd8e8; font-size: 12px; line-height: 1.7; }
.checkpoint-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #c9c9d8; border-radius: 50%; font: 700 13px/1 ui-monospace,Consolas,monospace; color: #646176; }
.checkpoint-label { font-size: 13px; line-height: 1.5; }
.checkpoint-status { font-size: 11px; color: #646176; white-space: nowrap; }
.checkpoint-list > li[aria-current="step"] { background: #eae2ff; border-color: #a88bdf; color: #38236b; }
.checkpoint-list > li[aria-current="step"] .checkpoint-mark { background: #6245c4; border-color: #6245c4; color: #fff; }
.checkpoint-list > li[aria-current="step"] .checkpoint-status { color: #4d3290; font-weight: 750; }
.checkpoint-list > li[data-done="true"] { background: #e9f6ef; border-color: #a2ccb6; color: #215b45; }
.checkpoint-list > li[data-done="true"] .checkpoint-mark { background: #2e7556; border-color: #2e7556; color: #fff; font-size: 17px; }
.checkpoint-list > li[data-done="true"] .checkpoint-status { color: #215b45; font-weight: 700; }
.studio { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 13px; }
.studio > section { min-width: 0; }
.studio h2, .material-section h2 { font-size: 17px; }
.source-editor { display: block; width: 100%; min-height: 216px; padding: 14px; margin-top: 10px; resize: vertical; color: #f4f2ff; background: #252a3e; border: 1px solid #3c425d; border-radius: 9px; font: 14px/1.8 ui-monospace, "Cascadia Mono", Consolas, monospace; tab-size: 4; }
.scenario-select { min-width: 0; max-width: 100%; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #bfc8da; border-radius: 7px; background: white; color: #333c50; }
.prediction { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; white-space: nowrap; }
.prediction input { min-width: 0; flex: 1; width: 100%; border: 1px solid #bfc8da; border-radius: 7px; padding: 5px 7px; }
.result-status { margin-top: 9px; padding: 5px 8px; border-radius: 7px; background: #f1effb; font-size: 13px; }
.result-status[data-status="error"] { background: #fff0dd; color: #7c420d; }
.result-status[data-status="returned"] { background: #e6f5ee; color: #215c49; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 12px; margin-top: 10px; }
.result-grid label { font-size: 12px; color: #515c70; display: block; }
.stdout { min-height: 90px; margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: #f4f5f9; overflow-wrap: anywhere; white-space: pre-wrap; font: 17px/1.6 ui-monospace, Consolas, monospace; }
.return-value { font: 700 27px/1.5 ui-monospace, Consolas, monospace; margin-top: 6px; }
.result-meta { color: #515c70; font-size: 12px; margin-top: 9px; }
.history { margin-top: 9px; }
.history summary { font-size: 12px; cursor: pointer; color: #515c70; }
.history button { font-size: 12px; padding: 3px 7px; margin: 6px 5px 0 0; }
.material-section { margin-top: 13px; }
.view-tabs { display: flex; gap: 5px; flex-wrap: wrap; border-bottom: 1px solid #dde2eb; padding-bottom: 9px; margin-bottom: 10px; }
.view-tabs button { padding: 5px 9px; font-size: 13px; }
.view-tabs button[aria-selected="true"] { background: #efebff; color: #47349d; border-color: #bcaeea; }
.token-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.token-grid button { font: 13px/1.5 ui-monospace, Consolas, monospace; padding: 5px 8px; }
.token-grid small { display: block; font-size: 11px; color: #515c70; }
.ast-node { padding: 6px 0 3px 12px; border-left: 1px solid #d9d4ed; margin-left: 5px; }
.ast-node summary { cursor: pointer; color: #4b418b; }
.ast-node button { font-size: 13px; padding: 2px 6px; background: #f5f3fd; }
.ir-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; }
.ir-list button { width: 100%; text-align: left; font: 13px/1.7 ui-monospace, Consolas, monospace; background: #f6f5fb; }
.ir-list button.last-instruction { background: #fff0cc; border-color: #c79a2e; }
.block-heading { padding: 7px 0 2px; font-size: 12px; color: #515c70; }
.effect-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.effect-values span { font: 12px/1.7 ui-monospace, Consolas, monospace; padding: 4px 7px; background: #edf5f0; border-radius: 6px; }
.trace-events { display: grid; gap: 4px; max-height: 220px; overflow: auto; font-size: 12px; margin: 8px 0 0; padding-left: 22px; }
.diagnostic-button { width: 100%; text-align: left; padding: 8px; background: #fff5e8; border-color: #ecd1ad; font-size: 13px; margin-top: 8px; }
.diagnostic-guidance { margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: #f1effb; color: #443968; font-size: 13px; }
.source-location { margin: 10px 0 0; padding: 8px; background: #f0edf9; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, Consolas, monospace; }
.source-location mark { background: #f5dd8c; color: #272a3d; }
.exercise-board { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 9px; margin-top: 10px; }
.placement { border: 1px dashed #b5b3d3; border-radius: 9px; padding: 11px; text-align: left; min-height: 81px; background: #f9f9fe; }
.placement small { display: block; color: #515c70; font-weight: 450; margin-top: 4px; }
.placement[data-correct="true"] { background: #eaf6ef; border-color: #6aa28a; }
.material-pool { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.material-pool button[aria-pressed="true"] { border-color: #6149c5; background: #eee8ff; }
.compiler-route { display: grid; gap: 8px; padding-left: 22px; }
.compiler-route span { display: block; color: var(--muted); }
.version-practice { margin-top: 9px; }
.version-practice summary { cursor: pointer; font-weight: 700; }
.learning-comparison { padding: 10px; border-left: 3px solid #c5b9eb; background: #f7f5fc; margin: 10px 0; font-size: 13px; }
.back-to-task { margin-bottom: 11px; padding: 9px 12px; background: #ede9ff; border-radius: 9px; }
.concept-card h3 { font-size: 16px; }
.concept-card .muted { font-size: 12px; }
.concept-card .concept-button { margin: 0 3px; }
.advance-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hint-text { margin-top: 7px; font-size: 12px; color: #515c70; }
.save-warning { background: #fff0dd; padding: 8px; border-radius: 7px; margin-top: 7px; }
.explanation-card { margin: 7px 0; border: 1px solid #e1dced; border-radius: 8px; padding: 8px 11px; font-size: 13px; }
.explanation-card summary { font-weight: 650; cursor: pointer; }
.explanation-card p { margin-top: 5px; }
#lesson-explanations { margin-top: 10px; }
.symbol-records { display: grid; gap: 8px; margin-top: 10px; }
.symbol-records article { padding: 10px; background: #f4f2fb; border: 1px solid #e1dced; border-radius: 8px; }
.symbol-records p { font-size: 13px; }
.symbol-records button { margin-top: 5px; font-size: 12px; }
.reflection-editor { width: 100%; display: block; min-height: 80px; margin: 8px 0; padding: 9px; border: 1px solid #b9c1d3; border-radius: 8px; resize: vertical; }
#model-results ol { padding-left: 18px; }
#model-results pre { white-space: pre-wrap; }
.learning-comparison { min-width: 0; overflow-wrap: anywhere; }
.material-section > p { margin: 6px 0; }
@media (max-width: 1000px) { .overview-layout { grid-template-columns: 190px minmax(0, 1fr); } .studio { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 715px) {
  .overview-layout { display: block; }
  #lesson-route { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-bottom: 10px; }
  .overview-layout .nav-button { padding: 7px 2px; }
  .legacy-link { font-size: 12px; padding: 5px 0 10px; }
  .overview-layout .hero { padding: 15px; }
  .task-panel { padding: 13px; }
  .checkpoint-list { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 380px) {
  .result-grid { grid-template-columns: minmax(0,1fr) 77px; }
  .prediction { display: block; }
  .prediction input { display: block; margin-top: 4px; }
}
