/* Design tokens and components from the approved pen.dev learning environment. */
@layer classroom {
  :root {
    --bg: #f3f5f7;
    --paper: #fff;
    --ink: #173042;
    --muted: #60717f;
    --line: #dfe5ea;
    --soft: #edf0f3;
    --blue: #2055cf;
    --blue-hover: #1743ac;
    --blue-wash: #edf3ff;
    --green: #28664f;
    --green-wash: #edf5f0;
    --radius: 12px;
  }
  :root[data-theme="dark"] {
    --bg: #151b20;
    --paper: #1c252c;
    --ink: #ecf1f4;
    --muted: #afbdc6;
    --line: #3b4a54;
    --soft: #28343d;
    --blue: #abc5ff;
    --blue-hover: #cbdcff;
    --blue-wash: #293955;
    --green: #a5d3b8;
    --green-wash: #273b30;
  }
  body {
    font-size: 16px;
  }
  h1,
  h2,
  h3 {
    font-weight: 500;
  }
  h1 {
    font-size: 40px;
    line-height: 1.15;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 22px;
  }
  .container {
    width: min(1280px, calc(100% - 64px));
  }
  .header-inner {
    height: 80px;
    min-height: 80px;
  }
  .site-header {
    background: var(--paper);
  }
  .brand {
    font-size: 20px;
    gap: 10px;
  }
  .brand-light {
    font-weight: 500;
  }
  .brand small {
    display: none;
  }
  .brand-icon {
    width: 24px;
    height: 24px;
    color: var(--blue);
  }
  .brand-icon .ui-icon {
    width: 24px;
    height: 24px;
  }
  .header-context {
    display: none;
    font-size: 14px;
    color: var(--muted);
    flex: 1;
  }
  .button {
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    gap: 12px;
  }
  .button .ui-icon {
    width: 16px;
    height: 16px;
  }
  .button.small {
    min-height: 40px;
  }
  .button.secondary {
    background: var(--paper);
  }
  .eyebrow {
    font-size: 13px;
    letter-spacing: 0;
  }
  .text-link {
    font-size: 14px;
  }
  .course-hero {
    background: var(--bg);
  }
  .course-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    padding-block: 64px;
    align-items: center;
  }
  .course-hero-copy h1 {
    font-size: 56px;
    line-height: 1.08;
    margin: 24px 0;
  }
  .course-hero-copy .lead {
    font-size: 19px;
    line-height: 1.55;
    max-width: 560px;
    margin: 24px 0;
  }
  .course-hero-copy .eyebrow {
    margin: 0;
  }
  .course-free-note {
    font-size: 13px;
    margin-top: 24px;
  }
  .home-example {
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    min-width: 0;
  }
  .home-example-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    margin-bottom: 16px;
  }
  .home-example-heading span {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
  }
  .home-example h2 {
    font-size: 20px;
    margin: 16px 0;
  }
  .home-player {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }
  .home-player .scene {
    height: 300px;
    max-height: none;
    width: 100%;
    background: #d2ddc8;
  }
  .home-player .anim-controls {
    padding: 12px;
  }
  .home-player .anim-buttons {
    gap: 8px;
  }
  .home-player .anim-buttons button,
  .home-player .anim-buttons select {
    min-height: 32px;
    font-size: 12px;
  }
  .home-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .home-options .answer {
    font-size: 13px;
    padding: 8px;
    min-height: 44px;
    gap: 8px;
  }
  .home-options .answer-letter {
    display: none;
  }
  .home-result {
    padding-top: 16px;
    font-size: 14px;
  }
  .home-result p {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 16px;
  }
  .home-result > b {
    color: var(--green);
  }
  .section {
    padding-block: 64px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .steps-grid {
    gap: 48px;
  }
  .steps-grid h3 {
    font-size: 22px;
  }
  .steps-grid p {
    font-size: 16px;
  }
  .step-number {
    font-size: 14px;
    color: var(--blue);
    margin-bottom: 16px;
  }
  .home-lab-section {
    background: var(--bg);
    padding-block: 48px;
  }
  .home-lab-grid {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .home-lab-images,
  .lab-mini-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .home-lab-images img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #d2ddc8;
    border-radius: 8px;
  }
  .home-lab-grid h2 {
    font-size: 32px;
    margin: 16px 0;
  }
  .home-lab-grid p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .lab-marker {
    font-size: 13px;
    color: var(--blue);
  }
  .home-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-block: 48px;
  }
  .home-buy h2 {
    font-size: 32px;
    margin-bottom: 12px;
  }
  .home-buy p {
    font-size: 16px;
    margin: 8px 0;
  }
  .home-buy .small-note {
    font-size: 14px;
  }
  .faq-section {
    padding-top: 32px;
    padding-bottom: 64px;
  }
  .faq-section h2 {
    font-size: 32px;
  }
  body[data-app="true"] .header-inner {
    height: 72px;
    min-height: 72px;
    width: calc(100% - 64px);
    max-width: 1536px;
    gap: 24px;
  }
  body[data-app="true"] .brand {
    width: 208px;
    flex: none;
  }
  body[data-app="true"] .header-context {
    display: block;
  }
  body[data-app="true"] .desktop-nav {
    display: none;
  }
  body[data-app="true"] .site-header {
    position: sticky;
    top: 0;
  }
  body[data-app="true"] .site-footer {
    display: none;
  }
  body[data-app="true"] .container.app-layout {
    width: 100%;
    max-width: 1600px;
  }
  .app-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: calc(100svh - 72px);
  }
  .app-sidebar {
    height: calc(100svh - 72px);
    max-height: none;
    top: 72px;
    padding: 32px 20px;
    gap: 4px;
    background: var(--paper);
  }
  .side-title {
    padding: 0;
    margin-bottom: 24px;
    font-size: 12px;
  }
  .side-link {
    padding: 10px 12px;
    min-height: 40px;
    gap: 12px;
    font-size: 14px;
    border-radius: 6px;
  }
  .side-link.active {
    color: var(--blue);
    background: var(--blue-wash);
  }
  .side-link.active::before {
    display: none;
  }
  .side-link.active .ui-icon {
    color: var(--blue);
  }
  .side-promo {
    padding: 0;
    border: 0;
    margin-top: auto;
  }
  .side-promo p {
    font-size: 13px;
  }
  .side-legal {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
  }
  .app-content {
    padding: 32px;
    min-width: 0;
  }
  .page-heading {
    margin: 0 0 24px;
    gap: 24px;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading .eyebrow {
    display: none;
  }
  .page-heading p {
    margin-top: 12px;
    font-size: 15px;
  }
  .panel {
    padding: 24px;
    border-radius: 12px;
  }
  .stack {
    gap: 24px;
  }
  .panel h2 {
    font-size: 24px;
  }
  .mobile-app-nav {
    display: none;
  }
  .learning-hub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }
  .focus-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .focus-callout .eyebrow {
    margin-bottom: 20px;
  }
  .learning-hub h2 {
    font-size: 28px;
    margin: 0 0 16px;
    line-height: 1.35;
  }
  .learning-hub p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .course-thumbnail {
    width: 180px;
    height: 240px;
    object-fit: contain;
    background: #d2ddc8;
    border-radius: 8px;
  }
  .lab-callout {
    padding: 24px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .lab-callout .lab-marker {
    margin: 0;
  }
  .lab-callout h2 {
    font-size: 24px;
    margin: 0;
  }
  .lab-callout p {
    margin: 0;
  }
  .lab-mini-pair {
    gap: 8px;
  }
  .lab-mini-pair img {
    width: 100%;
    height: 76px;
    object-fit: contain;
    background: #d2ddc8;
    border-radius: 8px;
  }
  .lab-callout .text-link {
    margin-top: auto;
  }
  .stat-grid {
    padding: 20px 0;
    border-block: 1px solid var(--line);
  }
  .stat-card {
    padding: 0;
    border: 0;
  }
  .stat-card > b {
    font-size: 28px;
  }
  .stat-card > span {
    font-size: 13px;
  }
  .course-subjects .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .course-subjects h2 {
    font-size: 24px;
  }
  .course-subjects .section-heading p {
    font-size: 13px;
    margin: 0;
  }
  .course-topic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 32px;
  }
  .course-topic {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  .course-topic > span {
    flex: 1;
    min-width: 0;
  }
  .course-topic b {
    font-size: 16px;
    font-weight: 500;
  }
  .course-topic small {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
  }
  .course-topic .ui-icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
  }
  .course-topic:hover b {
    color: var(--blue);
  }
  .exam-next {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .exam-next > .ui-icon {
    width: 24px;
    height: 24px;
    color: var(--muted);
  }
  .exam-next > div {
    flex: 1;
  }
  .exam-next h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .exam-next p {
    font-size: 14px;
  }
  .practice-filter-details {
    margin-bottom: 20px;
  }
  .practice-filter-details > summary {
    font-size: 13px;
    color: var(--muted);
    display: inline-flex;
    padding-right: 24px;
  }
  .practice-filter-details[open] .filters {
    margin: 20px 0 0;
  }
  .practice-filter-details > summary::after {
    font-size: 16px;
    top: 0;
  }
  .practice-back {
    display: inline-block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
  }
  .practice-progress {
    display: flex;
    gap: 6px;
    margin: 0 0 24px;
    height: 4px;
  }
  .practice-progress i {
    height: 4px;
    flex: 1;
    background: var(--line);
  }
  .practice-progress i.done {
    background: var(--blue);
  }
  body[data-view="oefenen"] .page-heading p {
    display: none;
  }
  .question-grid.with-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .qcard {
    border-radius: 12px;
  }
  .qtop {
    padding: 16px 24px;
  }
  .qmeta {
    gap: 12px;
  }
  .qmeta .pill {
    font-size: 13px;
  }
  .qmeta .pill + .pill {
    padding-left: 0;
    border: 0;
  }
  .qcount {
    font-size: 13px;
  }
  .question-body {
    padding: 24px;
  }
  .question-media {
    background: #d2ddc8;
    border-radius: 8px;
    border-color: var(--line);
  }
  .scene {
    max-height: 480px;
  }
  .question-prompt {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  .question-how {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .answer {
    min-height: 60px;
    padding: 16px;
    gap: 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  .answer-letter {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 13px;
  }
  .answer-list {
    gap: 16px;
  }
  .question-choice-pane > .button {
    margin-top: 24px;
    width: 100%;
  }
  .confidence {
    padding-top: 20px;
    margin-top: 24px;
    border-top: 0;
  }
  .confidence > span {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .confidence small {
    font-size: 12px;
  }
  .confidence button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .qfooter {
    padding: 16px 24px;
    min-height: 48px;
  }
  .qfooter .text-link {
    font-size: 12px;
  }
  .anim-controls {
    padding: 16px;
    gap: 16px;
  }
  .anim-buttons {
    gap: 12px;
    flex-wrap: wrap;
  }
  .anim-buttons button,
  .anim-buttons select {
    min-height: 36px;
    border-radius: 4px;
    font-size: 13px;
  }
  .anim-buttons .time {
    font-size: 12px;
  }
  .media-caption {
    font-size: 12px;
    background: transparent;
    padding: 8px 12px;
  }
  .feedback {
    margin-top: 24px;
    padding: 24px;
    border-radius: 8px;
  }
  .feedback h3 {
    font-size: 22px;
  }
  .feedback p {
    font-size: 16px;
    line-height: 1.6;
  }
  .feedback .review-note {
    font-size: 14px;
  }
  .feedback.bad {
    background: var(--green-wash);
    border-left-color: var(--green);
  }
  .feedback.bad h3 {
    color: var(--green);
  }
  body[data-lab-case="true"] .page-heading {
    display: none;
  }
  .lab-case-heading h2 {
    font-size: 32px;
  }
  .lab-case-heading > .eyebrow {
    display: none;
  }
  .lab-change {
    background: var(--blue-wash);
    margin-block: 24px;
    padding: 16px 20px;
  }
  .lab-change p {
    font-size: 14px;
  }
  .lab-pair {
    gap: 24px;
  }
  .lab-card-label {
    padding: 16px 24px;
    min-height: 72px;
  }
  .lab-art svg {
    height: 310px;
  }
  .lab-card-body {
    padding: 24px;
  }
  .lab-prompt {
    font-size: 16px;
  }
  .lab-letter {
    font-size: 14px;
  }
  .lab-question .answer {
    font-size: 16px;
  }
  .lab-takeaway h3 {
    font-size: 24px;
  }
  .lab-takeaway p {
    font-size: 16px;
  }
  .lab-catalog {
    gap: 24px;
  }
  .lab-intro {
    background: var(--paper);
  }
  .classroom-prices .section-heading {
    display: block;
  }
  .classroom-prices h1 {
    font-size: 40px;
    margin-bottom: 20px;
  }
  .classroom-prices .section-heading p {
    font-size: 18px;
    max-width: none;
  }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .price-card {
    padding: 32px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .price-card.featured {
    border-color: var(--blue);
  }
  .price-card h2 {
    font-size: 24px;
  }
  .price-card > p {
    font-size: 15px;
    margin: 0;
  }
  .price {
    font-size: 44px;
    line-height: 1.2;
    margin: 0;
  }
  .price-card .check-list {
    margin: 0;
    gap: 20px;
  }
  .price-card .button {
    align-self: flex-start;
    width: auto;
    margin-top: auto;
  }
  .price-card > small {
    font-size: 12px;
    text-align: left;
    margin: 0;
  }
  .free-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
  }
  .free-intro h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .free-intro p {
    font-size: 16px;
  }
  .price-faq section {
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .price-faq h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .price-faq p {
    font-size: 14px;
  }
  .selected-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--blue-wash);
    border-radius: 8px;
    margin: 24px 0;
  }
  .selected-plan b {
    font-size: 18px;
  }
  .checkout-layout {
    max-width: 1200px;
    margin-block: 56px;
    gap: 32px;
  }
  .checkout-layout h1 {
    font-size: 36px;
  }
  .checkout-layout .panel {
    padding: 32px;
  }
  .checkbox-row {
    font-size: 14px;
  }
  .order-line {
    font-size: 14px;
  }
  .order-line.total {
    font-size: 20px;
  }
  .order-line b {
    overflow-wrap: anywhere;
  }
  .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 448px;
    max-width: 1120px;
    gap: 96px;
    margin: 72px auto;
    align-items: center;
  }
  .auth-intro h1 {
    font-size: 40px;
    margin: 24px 0;
  }
  .auth-intro > p:not(.eyebrow) {
    font-size: 18px;
    line-height: 1.6;
  }
  .auth-intro img {
    width: 320px;
    height: 280px;
    object-fit: contain;
    background: #d2ddc8;
    border-radius: 8px;
    margin-top: 24px;
  }
  .auth-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .auth-form h2 {
    font-size: 28px;
    margin: 0;
  }
  .auth-form > p {
    font-size: 15px;
  }
  .auth-tabs {
    display: flex;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .auth-tabs a {
    font-size: 14px;
    color: var(--muted);
  }
  .auth-tabs a[aria-current] {
    color: var(--blue);
  }
  .auth-form .divider {
    margin: 0;
  }
  .auth-form .form-help {
    margin: 0 !important;
  }
  .auth-form #verify-host:empty {
    display: none;
  }
  #verify-form {
    padding-top: 24px;
  }
  .auth-form .button {
    width: 100%;
  }
  .exam-toolbar {
    margin-bottom: 24px;
  }
  .exam-toolbar b {
    font-size: 24px;
    font-weight: 500;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 16px;
  }
  .exam-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 24px;
    align-items: start;
  }
  .exam-main {
    min-width: 0;
  }
  .exam-workspace:has(#exam-overview[hidden]) {
    grid-template-columns: 1fr;
  }
  .exam-workspace #exam-overview {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    position: sticky;
    top: 96px;
  }
  .exam-workspace #exam-overview h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .exam-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  .exam-grid button {
    height: 36px;
    min-height: 36px;
    font-size: 13px;
    border-radius: 4px;
  }
  .exam-grid button.answered {
    background: var(--blue-wash);
    border-color: var(--line);
    color: var(--blue);
  }
  .exam-grid button.active {
    background: var(--blue);
    color: var(--paper);
    outline: 0;
  }
  .exam-main .question-grid.with-media {
    grid-template-columns: 1fr;
  }
  .exam-main .question-media {
    max-width: none;
  }
  .exam-main .scene {
    max-height: 360px;
  }
  .exam-main .question-choice-pane {
    width: 100%;
  }
  .exam-actions {
    gap: 12px;
    justify-content: space-between;
  }
  .exam-actions .button {
    font-size: 13px;
    padding: 12px;
  }
  .exam-intro {
    max-width: 960px;
  }
  .admin-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
  }
  .admin-title h1 {
    font-size: 32px;
    margin-bottom: 12px;
  }
  .admin-title p {
    font-size: 15px;
  }
  .admin-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
  }
  .admin-columns > * {
    min-width: 0;
  }
  .admin-subtitle {
    margin-top: 24px !important;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  #admin-content > h1 {
    font-size: 32px;
    margin-bottom: 24px;
  }
  #admin-content > p {
    margin-bottom: 24px;
  }
  .admin-verification {
    max-width: 600px;
    margin-inline: auto;
  }
  .admin-verification > .button {
    margin-top: 24px;
  }
  #mfa-host {
    margin-top: 24px;
  }
  .mfa-qr {
    width: 240px;
    height: 240px;
    background: white;
    margin-block: 20px;
  }
  #mfa-host code {
    display: block;
    overflow-wrap: anywhere;
    padding-block: 16px;
  }
  .admin-search {
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
  }
  .admin-search label {
    width: 100%;
  }
  .admin-search input {
    flex: 1;
    width: auto;
  }
  .admin-search .button {
    flex: none;
  }
  .health-checks {
    list-style: none;
    padding: 0;
    margin: 24px 0;
  }
  .health-checks li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .health-checks b {
    white-space: nowrap;
  }
  #user-editor {
    margin-top: 24px;
  }
  .order-table button.text-link {
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
  }
  .order-table small {
    display: block;
    max-width: 240px;
    overflow-wrap: anywhere;
    margin-top: 12px;
  }
  @media (min-width: 1600px) {
    .course-hero-grid {
      padding-block: 80px;
    }
  }
  @media (max-width: 1270px) {
    .learning-hub {
      grid-template-columns: minmax(0, 1fr) 288px;
    }
    .focus-callout {
      grid-template-columns: minmax(0, 1fr) 136px;
      padding: 24px;
    }
    .course-thumbnail {
      width: 136px;
      height: 220px;
    }
    .learning-hub h2 {
      font-size: 26px;
    }
    .home-lab-grid {
      grid-template-columns: 1fr 1fr;
    }
    .question-grid.with-media {
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }
    .question-media {
      max-width: none;
    }
    .question-prompt {
      font-size: 24px;
    }
    .exam-workspace {
      grid-template-columns: minmax(0, 1fr) 264px;
    }
    .exam-workspace #exam-overview {
      padding: 16px;
    }
    .exam-grid button {
      height: 32px;
      min-height: 32px;
    }
    .admin-columns {
      grid-template-columns: 1fr;
    }
    .auth-layout {
      gap: 48px;
    }
    .course-hero-grid {
      gap: 40px;
    }
  }
  @media (max-width: 1100px) {
    .learning-hub {
      grid-template-columns: 1fr;
    }
    .focus-callout {
      grid-template-columns: minmax(0, 1fr) 180px;
    }
    .course-thumbnail {
      width: 180px;
      height: 220px;
    }
    .lab-callout {
      display: grid;
      grid-template-columns: 1fr 200px;
    }
    .lab-callout .lab-mini-pair {
      grid-column: 2;
      grid-row: 1/4;
      align-self: center;
    }
    .lab-callout .text-link {
      grid-column: 1;
    }
    .question-grid.with-media {
      grid-template-columns: 1fr;
    }
    .question-media {
      max-width: 560px;
      margin-inline: auto;
    }
    .exam-workspace {
      grid-template-columns: 1fr;
    }
    .exam-workspace #exam-overview {
      position: static;
      grid-row: 1;
    }
    .exam-grid {
      grid-template-columns: repeat(10, 1fr);
    }
    .pricing-grid {
      gap: 16px;
    }
    .price-card {
      padding: 24px;
    }
    .auth-layout {
      grid-template-columns: 1fr 420px;
      gap: 40px;
    }
    .auth-intro h1 {
      font-size: 36px;
    }
    .course-hero-copy h1 {
      font-size: 48px;
    }
    .course-hero-copy .lead {
      font-size: 18px;
    }
    .home-options {
      grid-template-columns: 1fr;
    }
    .home-player .scene {
      height: 280px;
    }
  }
  @media (max-width: 760px) {
    .container {
      width: calc(100% - 40px);
    }
    .header-inner {
      height: 64px;
      min-height: 64px;
      gap: 8px;
    }
    .brand {
      font-size: 18px;
      gap: 8px;
    }
    .brand-icon {
      width: 20px;
    }
    .header-actions {
      gap: 4px;
    }
    .header-actions .button {
      display: none;
    }
    .icon-button {
      width: 36px;
      height: 36px;
    }
    .login-link {
      font-size: 13px;
    }
    .desktop-nav {
      padding: 16px 20px;
      background: var(--paper);
    }
    .desktop-nav[data-open="true"] {
      display: grid;
    }
    .desktop-nav a {
      min-height: 44px;
      padding: 12px 0;
    }
    .course-hero-grid {
      grid-template-columns: 1fr;
      gap: 32px;
      padding-block: 40px;
    }
    .course-hero-copy h1 {
      font-size: 40px;
      margin-block: 20px;
    }
    .course-hero-copy .lead {
      font-size: 18px;
    }
    .course-hero-copy .button-row {
      gap: 20px;
    }
    .course-free-note {
      margin-top: 20px;
    }
    .home-example {
      padding: 16px;
    }
    .home-example-heading {
      font-size: 12px;
      gap: 8px;
    }
    .home-player .scene {
      height: 300px;
    }
    .home-player .anim-buttons button,
    .home-player .anim-buttons select {
      min-height: 40px;
    }
    .home-options {
      grid-template-columns: 1fr;
    }
    .home-options .answer-letter {
      display: grid;
    }
    .home-options .answer {
      font-size: 15px;
      padding: 12px;
    }
    .home-lab-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .home-lab-images {
      gap: 12px;
    }
    .home-lab-images img {
      height: 160px;
    }
    .home-lab-grid h2 {
      font-size: 28px;
    }
    .home-buy {
      display: block;
      padding-block: 40px;
    }
    .home-buy h2 {
      font-size: 28px;
    }
    .home-buy .button {
      margin-top: 24px;
    }
    .section {
      padding-block: 48px;
    }
    .section-heading h2 {
      font-size: 28px;
    }
    .steps-grid {
      gap: 24px;
    }
    .steps-grid article {
      display: block;
    }
    .steps-grid .step-number {
      display: block;
      margin-bottom: 16px;
    }
    .faq-section h2 {
      font-size: 28px;
    }
    body[data-app="true"] .header-inner {
      width: calc(100% - 40px);
      height: 64px;
      min-height: 64px;
      gap: 8px;
    }
    body[data-app="true"] .brand {
      width: auto;
      font-size: 18px;
      flex: 1;
    }
    body[data-app="true"] .header-context {
      display: none;
    }
    body[data-app="true"] .menu-button {
      display: grid;
    }
    body[data-app="true"] .desktop-nav[data-open="true"] {
      display: grid;
    }
    body[data-app="true"] .login-link {
      display: none;
    }
    .app-sidebar {
      display: none;
    }
    .app-layout {
      display: block;
    }
    .app-content {
      padding: 24px 20px 104px;
    }
    .page-heading {
      margin-bottom: 24px;
      display: flex;
      align-items: center;
    }
    .page-heading h1 {
      font-size: 28px;
    }
    .page-heading p {
      font-size: 14px;
    }
    .mobile-app-nav {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--paper);
      border-top: 1px solid var(--line);
      z-index: 20;
      padding: 10px 8px max(10px, env(safe-area-inset-bottom));
    }
    .mobile-app-nav a {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      min-height: 44px;
      justify-content: center;
      color: var(--muted);
      font-size: 12px;
    }
    .mobile-app-nav a.active {
      color: var(--blue);
    }
    .mobile-app-nav .ui-icon {
      width: 20px;
      height: 20px;
    }
    .toast {
      bottom: 88px;
    }
    .learning-hub {
      gap: 24px;
    }
    .focus-callout {
      display: block;
      padding: 24px;
    }
    .course-thumbnail {
      display: none;
    }
    .learning-hub h2 {
      font-size: 26px;
    }
    .learning-hub p {
      font-size: 15px;
    }
    .lab-callout {
      display: flex;
      padding: 24px;
    }
    .lab-callout .lab-mini-pair {
      width: 100%;
    }
    .lab-mini-pair img {
      height: 120px;
    }
    .stat-grid {
      gap: 24px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      padding: 16px 0;
    }
    .stat-card {
      padding: 0;
    }
    .stat-card > b {
      font-size: 26px;
    }
    .stat-card > span {
      font-size: 12px;
    }
    .course-subjects .section-heading {
      display: block;
    }
    .course-subjects .section-heading p {
      margin-top: 12px;
    }
    .course-topic-grid {
      display: block;
    }
    .course-topic {
      min-height: 60px;
      padding: 16px 0;
      gap: 12px;
    }
    .course-topic b {
      font-size: 15px;
    }
    .course-topic small {
      font-size: 12px;
    }
    .exam-next {
      flex-wrap: wrap;
      padding: 20px;
      gap: 16px;
    }
    .exam-next > div {
      min-width: 200px;
    }
    .exam-next .button {
      margin-left: 40px;
    }
    .filters {
      grid-template-columns: 1fr 1fr;
    }
    .filters > div:first-child {
      grid-column: 1/-1;
    }
    .practice-back {
      margin-bottom: 20px;
    }
    .practice-progress {
      gap: 4px;
      margin-bottom: 20px;
    }
    .qtop {
      padding: 16px;
    }
    .qmeta .pill {
      font-size: 12px;
    }
    .qmeta {
      gap: 8px;
    }
    .question-body {
      padding: 16px;
    }
    .question-grid.with-media {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .question-media {
      max-width: none;
      width: 100%;
    }
    .scene {
      max-height: 400px;
    }
    .question-prompt {
      font-size: 22px;
      line-height: 1.35;
    }
    .question-how {
      font-size: 14px;
    }
    .answer {
      font-size: 16px;
      min-height: 60px;
      padding: 16px;
      gap: 16px;
    }
    .answer-list {
      gap: 16px;
    }
    .anim-controls {
      padding: 12px;
      gap: 12px;
    }
    .anim-buttons {
      gap: 8px;
    }
    .anim-buttons button,
    .anim-buttons select {
      min-height: 44px;
      font-size: 13px;
      padding: 8px 10px;
    }
    .anim-buttons .time {
      font-size: 12px;
    }
    .anim-buttons [data-transport="step"] {
      margin-left: 0;
    }
    .confidence > div {
      display: flex;
      flex-wrap: nowrap;
    }
    .confidence button {
      min-height: 40px;
      font-size: 13px;
      flex: 1;
      padding: 8px;
    }
    .qfooter {
      padding: 16px;
      gap: 16px;
    }
    .qfooter .button {
      font-size: 14px;
    }
    .feedback {
      padding: 20px;
    }
    .feedback h3 {
      font-size: 22px;
    }
    .feedback p {
      font-size: 15px;
    }
    .feedback .review-note {
      font-size: 14px;
    }
    .question-choice-pane > .button {
      margin-top: 20px;
    }
    .lab-pair {
      grid-template-columns: 1fr;
    }
    .lab-card-label {
      padding: 16px;
    }
    .lab-card-body {
      padding: 20px;
    }
    .lab-art svg {
      height: 280px;
    }
    .lab-case-heading h2 {
      font-size: 28px;
    }
    .lab-takeaway {
      padding: 24px;
    }
    .lab-takeaway h3 {
      font-size: 22px;
    }
    .lab-takeaway p {
      font-size: 15px;
    }
    .pricing-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .classroom-prices h1 {
      font-size: 32px;
    }
    .classroom-prices .section-heading p {
      font-size: 16px;
    }
    .price-card {
      padding: 24px;
    }
    .price-card .button {
      width: 100%;
    }
    .free-intro {
      display: block;
    }
    .free-intro .button {
      margin-top: 20px;
    }
    .free-intro h2 {
      font-size: 24px;
    }
    .checkout-layout {
      margin-block: 40px;
      gap: 24px;
    }
    .checkout-layout h1 {
      font-size: 32px;
    }
    .checkout-layout .panel {
      padding: 24px;
    }
    .selected-plan {
      padding: 16px;
    }
    .selected-plan b {
      font-size: 16px;
    }
    .selected-plan .text-link {
      font-size: 13px;
    }
    .auth-layout {
      grid-template-columns: 1fr;
      margin-block: 32px;
      gap: 24px;
    }
    .auth-intro {
      display: none;
    }
    .auth-form {
      padding: 24px;
      gap: 24px;
    }
    .auth-form h2 {
      font-size: 28px;
    }
    .auth-tabs {
      gap: 24px;
    }
    .exam-toolbar {
      flex-wrap: wrap;
      gap: 12px;
    }
    .exam-toolbar b {
      font-size: 22px;
      padding: 8px 12px;
    }
    .exam-grid {
      grid-template-columns: repeat(6, 1fr);
    }
    .exam-grid button {
      min-height: 40px;
    }
    .exam-workspace {
      display: flex;
      flex-direction: column;
    }
    .exam-main,
    #exam-overview {
      width: 100%;
    }
    .exam-workspace #exam-overview {
      order: -1;
    }
    .exam-main .question-media .scene {
      max-height: 360px;
    }
    .exam-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .exam-actions .button {
      min-height: 44px;
    }
    .admin-title {
      align-items: flex-start;
      flex-direction: column;
    }
    .admin-title h1 {
      font-size: 28px;
    }
    .admin-title p {
      font-size: 15px;
    }
    .admin-columns {
      grid-template-columns: 1fr;
    }
    .admin-search {
      display: block;
    }
    .admin-search input {
      width: 100%;
      margin-bottom: 12px;
    }
    .admin-search .button {
      width: 100%;
    }
    .admin-verification {
      padding: 24px;
    }
    .health-checks li {
      font-size: 12px;
    }
    .admin-title + .admin-columns .panel {
      padding: 20px;
    }
    .mfa-qr {
      width: 220px;
      height: 220px;
    }
  }
  @media (max-width: 390px) {
    .brand {
      font-size: 16px;
    }
    .brand-icon {
      display: none;
    }
    .course-hero-copy h1 {
      font-size: 36px;
    }
    .course-hero-copy .button-row {
      align-items: stretch;
    }
    .course-hero-copy .button-row .button {
      width: 100%;
    }
    .home-example-heading {
      flex-wrap: wrap;
    }
    .home-player .scene {
      height: 260px;
    }
    .stat-grid {
      gap: 16px;
    }
    .course-topic b {
      font-size: 14px;
    }
    .page-heading h1 {
      font-size: 26px;
    }
    .answer,
    .lab-card-body .answer {
      font-size: 15px;
      padding: 12px;
    }
    .question-prompt {
      font-size: 22px;
    }
    .qmeta .pill:nth-child(3) {
      display: none;
    }
    .qcount {
      font-size: 12px;
    }
    .lab-key {
      gap: 12px;
    }
    .health-checks li {
      flex-wrap: wrap;
    }
    .home-lab-images img {
      height: 136px;
    }
    .pricing-grid .price {
      font-size: 44px;
    }
  }
  .scene-description {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--muted);
  }
  .scene-description summary {
    font-size: 12px;
    padding: 8px 24px 8px 0;
  }
  .scene-description p {
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.6;
  }
  @media (max-width: 760px) {
    .question-media .scene {
      max-height: 320px;
    }
    .practice-back {
      margin-bottom: 20px;
    }
    .practice-filter-details {
      margin-bottom: 20px;
    }
    .question-grid.with-media {
      gap: 20px;
    }
  }
  #environment,
  .anim-instruction,
  .order-table th {
    color: var(--ink);
  }
  .practice-progress {
    height: 4px;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
  }
  .practice-progress > span {
    white-space: nowrap;
  }
  .practice-progress-track {
    height: 4px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
  }
  .practice-progress-track i {
    display: block;
    height: 100%;
    background: var(--blue);
  }
  body[data-view="start"] .page-heading > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  body[data-view="start"] .page-heading p {
    margin: 0;
    font-size: 13px;
  }
  @media (max-width: 760px) {
    body[data-view="start"] .page-heading > div {
      display: block;
    }
    body[data-view="start"] .page-heading p {
      margin-top: 12px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      transition: none !important;
      animation: none !important;
    }
  }
}
