@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("./fonts/instrument-sans-latin.fa41c43a3d8e.woff2") format("woff2");
}

@font-face {
    font-family: "Newsreader";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("./fonts/newsreader-latin.f94a697b1650.woff2") format("woff2");
}

@font-face {
    font-family: "Newsreader";
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url("./fonts/newsreader-italic-latin.e97067eb043b.woff2") format("woff2");
}

@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("./fonts/material-symbols-core.0a1efe641ed1.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --cm-color-page-bg: #eef0f3;
    --cm-color-surface: #fff;
    --cm-color-surface-soft: #f1f1f4;
    --cm-color-surface-subtle: #f6f6f8;
    --cm-color-surface-hover: #e2e4e9;
    --cm-color-surface-accent: #fbfbfe;
    --cm-color-text: #26272b;
    --cm-color-text-secondary: #4b4c52;
    --cm-color-muted: #77787e;
    --cm-color-subtle: #9a9ba1;
    --cm-color-border: #d5d6dc;
    --cm-color-border-soft: #ebecef;
    --cm-color-border-strong: #c8c9cf;
    --cm-color-primary: #5b63d3;
    --cm-color-primary-hover: #474fc0;
    --cm-color-primary-strong: #3a41a8;
    --cm-color-primary-soft: #eceffb;
    --cm-color-primary-border: #d9dbf0;
    --cm-color-success: #2e9e6b;
    --cm-color-success-strong: #267a55;
    --cm-color-success-soft: #e5f4ed;
    --cm-color-warning: #b3862a;
    --cm-color-warning-soft: #fbf3df;
    --cm-color-danger: #b3402e;
    --cm-color-danger-soft: #fff0f1;
    --cm-color-input-placeholder: #9a9ba1;
    --cm-color-input-focus-ring: rgb(91 99 211 / 25%);
    --cm-font-body: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
    --cm-font-title: "Newsreader", Georgia, serif;
    --cm-font-mono: "SF Mono", ui-monospace, monospace;
    --cm-font-size-xs: 0.75rem;
    --cm-font-size-sm: 0.875rem;
    --cm-font-size-base: 1rem;
    --cm-font-size-lg: 1.25rem;
    --cm-font-size-xl: 1.625rem;
    --cm-font-weight-medium: 500;
    --cm-font-weight-semibold: 600;
    --cm-font-weight-bold: 700;
    --cm-letter-spacing-eyebrow: 0.1em;
    --cm-space-1: 0.25rem;
    --cm-space-2: 0.5rem;
    --cm-space-3: 0.75rem;
    --cm-space-4: 1rem;
    --cm-space-5: 1.25rem;
    --cm-space-6: 1.5rem;
    --cm-space-8: 2rem;
    --cm-radius-sm: 0.375rem;
    --cm-radius-md: 0.5rem;
    --cm-radius-lg: 0.625rem;
    --cm-radius-pill: 9999px;
    --cm-border-width: 1px;
    --cm-shadow-card: 0 1px 4px rgb(30 32 44 / 5%);
    --cm-shadow-floating: 0 12px 32px rgb(30 32 44 / 16%);
    --cm-transition-fast: 150ms ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    color: #26272b;
    background: #e9eaee;
    font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

main,
section,
aside,
header,
footer,
nav,
article {
    min-width: 0;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid #5b63d3;
    outline-offset: 2px;
}

.material-symbols-outlined {
    display: inline-block;
    font: 400 1.5rem/1 "Material Symbols Outlined";
    font-feature-settings: "liga";
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.cm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.cm-shell-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.cm-shell {
    /* Single source of truth for the navigation column widths. The shell
       kernel reads these back to pin the surface while the columns animate. */
    --cm-shell-rail-width: 52px;
    --cm-shell-library-width: 212px;
    --cm-shell-focus-sidebar-width: 264px;

    position: relative;
    display: flex;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dcdde2;
    border-radius: 12px;
    background: #eef0f3;
    box-shadow: 0 8px 32px rgb(30 32 44 / 8%);
}

.cm-shell-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #26272b;
    font:
        600 14px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
}

.cm-shell-brand-mark {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.cm-shell-workspace {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.cm-shell-navigation {
    display: contents;
}

.cm-shell-rail-viewport,
.cm-shell-library-viewport,
.cm-shell-sidebar-viewport {
    height: 100%;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
    /* The panels hold their intrinsic width (see .cm-shell-library-sidebar and
       friends), so animating the viewport only moves the clip edge. Containment
       keeps that clipping from escaping into the workspace layout. */
    contain: layout paint;
    transition:
        width 320ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 200ms ease;
}

.cm-shell-rail-viewport {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.cm-shell[data-shell-navigation-state^="focus"] .cm-shell-rail-viewport {
    width: var(--cm-shell-rail-width);
    opacity: 1;
    pointer-events: auto;
}

.cm-shell-library-viewport {
    width: var(--cm-shell-library-width);
    opacity: 1;
}

.cm-shell[data-shell-navigation-state^="focus"] .cm-shell-library-viewport {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.cm-shell-sidebar-viewport {
    position: relative;
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.cm-shell[data-shell-navigation-state="focus-open"] .cm-shell-sidebar-viewport {
    width: var(--cm-shell-focus-sidebar-width);
    opacity: 1;
    pointer-events: auto;
}

/* While the columns animate, the kernel pins the panel stack to the widest of
   its start and end widths and .cm-shell-surface clips it. The surface subtree
   (a course reader runs ~10k nodes) then lays out once per navigation change
   instead of on every frame of the slide. */
.cm-shell-surface-stack[style*="width"] {
    will-change: width;
}

.cm-shell-icon-rail {
    display: flex;
    width: var(--cm-shell-rail-width);
    height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 0 12px;
    overflow: auto hidden;
    scrollbar-width: none;
}

.cm-shell-rail-brand {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    margin: 2px 0 4px;
}

.cm-shell-icon-rail::-webkit-scrollbar,
.cm-shell-tab-list::-webkit-scrollbar,
.cm-shell-tabs::-webkit-scrollbar {
    display: none;
}

.cm-shell-rail-link {
    position: relative;
    display: grid;
    width: 36px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #77787e;
    background: transparent;
    cursor: pointer;
    transition: 150ms ease;
}

.cm-shell-rail-link:hover {
    color: #26272b;
    background: rgb(255 255 255 / 75%);
}

.cm-shell-rail-link.is-active {
    color: #3a41a8;
    background: #fff;
    box-shadow:
        0 1px 3px rgb(30 32 44 / 8%),
        0 0 0 1px rgb(91 99 211 / 38%);
}

.cm-shell-rail-settings {
    margin-top: auto;
}

.cm-shell-rail-link.is-active::before {
    position: absolute;
    top: 50%;
    left: -8px;
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: #5b63d3;
    content: "";
    transform: translateY(-50%);
}

.cm-shell-rail-link svg,
.cm-shell-sidebar-links svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.cm-shell-rail-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.4;
}

.cm-shell-sidebar-links svg {
    width: 13px;
    height: 13px;
}

.cm-shell-rail-link[data-shell-navigation-key^="course-"] svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.65;
}

.cm-shell-rail-link[data-shell-navigation-key="course-generieke-competenties"] {
    height: 44px;
    flex-basis: 44px;
}

.cm-shell-sidebar-links a[data-shell-navigation-key^="course-"] svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.65;
}

/* Only the four exam subjects carry a colour, so the sidebar reads as a legend
   for the courses while every platform tool stays neutral. Just the glyph is
   tinted; the label keeps its own colour, and the tint survives hover and the
   active pill. */
.cm-shell-rail-link svg,
.cm-shell-sidebar-links a svg {
    color: var(--cm-nav-icon, currentcolor);
}

:is(.cm-shell-rail-link, .cm-shell-sidebar-links a)[data-shell-navigation-icon="cm-icon-subject-biologie"] {
    --cm-nav-icon: #2a6b3b;
}

:is(.cm-shell-rail-link, .cm-shell-sidebar-links a)[data-shell-navigation-icon="cm-icon-subject-chemie"] {
    --cm-nav-icon: #c47033;
}

:is(.cm-shell-rail-link, .cm-shell-sidebar-links a)[data-shell-navigation-icon="cm-icon-subject-fysica"] {
    --cm-nav-icon: #7d54b8;
}

:is(.cm-shell-rail-link, .cm-shell-sidebar-links a)[data-shell-navigation-icon="cm-icon-subject-wiskunde"] {
    --cm-nav-icon: #3f6fc4;
}

.cm-shell-rail-divider {
    width: 24px;
    height: 1px;
    flex: 0 0 1px;
    margin: 5px 0;
    background: #d5d6dc;
}

.cm-shell-rail-top-spacer,
.cm-shell-rail-group-spacer {
    display: grid;
    margin: 0;
    align-items: center;
}

.cm-shell-rail-top-spacer {
    height: 36px;
    flex: 0 0 36px;
}

.cm-shell-rail-group-spacer {
    height: 33px;
    flex: 0 0 33px;
    justify-items: center;
}

.cm-shell-rail-group-spacer .cm-shell-rail-divider {
    margin: 0;
}

.cm-shell-library-sidebar {
    width: var(--cm-shell-library-width);
}

.cm-shell-focus-sidebar {
    position: absolute;
    inset: 0;
    display: flex;
    width: var(--cm-shell-focus-sidebar-width);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.cm-shell-focus-sidebar.is-active {
    opacity: 1;
    pointer-events: auto;
}

.cm-shell-sidebar {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 4px 8px 12px 6px;
    overflow: hidden;
}

.cm-shell-sidebar-brand {
    padding: 8px 12px 16px;
}

.cm-shell-sidebar-heading {
    padding: 2px 12px 0;
}

.cm-shell-sidebar-heading h2 {
    margin: 0;
    color: #26272b;
    font:
        500 19px "Newsreader",
        Georgia,
        serif;
}

.cm-shell-sidebar-heading p {
    margin: 0;
    padding: 2px 0 12px;
    color: #9a9ba1;
    font:
        400 11.5px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
}

.cm-shell-sidebar-label {
    margin: 0;
    padding: 0 12px 5px;
    color: #9a9ba1;
    font:
        600 10.5px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cm-shell-sidebar-label:not(:first-of-type) {
    padding-top: 16px;
}

.cm-shell-sidebar-links {
    display: flex;
    flex-direction: column;
}

.cm-shell-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border-radius: 7px;
    color: #4b4c52;
    font:
        400 13px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
    transition:
        color var(--cm-transition-fast),
        background-color var(--cm-transition-fast),
        transform 80ms ease;
}

.cm-shell-sidebar-links a:hover {
    color: #26272b;
    background: #e2e4e9;
}

.cm-shell-sidebar-links a.is-active {
    color: #3a41a8;
    background: #fff;
    box-shadow: 0 0 0 1px #d9dbf0;
    font-weight: 500;
}

.cm-shell-sidebar-empty {
    padding: 6px 12px;
    color: #9a9ba1;
    font-size: 12px;
}

.cm-shell-sidebar-account-actions {
    position: relative;
    display: grid;
    gap: 2px;
    /* Pinned to the bottom, under a rule spanning the sidebar. Drawn as a
       pseudo-element so the hover pill keeps its rounded corners. */
    margin-top: auto;
    padding-top: 1px;
}

.cm-shell-sidebar-account-actions a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border-radius: 7px;
    color: #5d5e64;
    font:
        400 13px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
    transition:
        color var(--cm-transition-fast),
        background-color var(--cm-transition-fast),
        transform 80ms ease;
}

.cm-shell-sidebar-account-actions::before {
    position: absolute;
    top: -8px;
    right: -8px;
    left: -6px;
    border-top: 1px solid #dcdde2;
    content: "";
}

.cm-shell-sidebar-account-actions a:hover,
.cm-shell-sidebar-account-actions a:focus-visible,
.cm-shell-sidebar-account-actions a.is-active {
    color: #26272b;
    background: #e2e4e9;
}

.cm-shell-sidebar-account-actions svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.cm-shell-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    border-left: 1px solid #d9dae0;
}

.cm-shell-surface,
.cm-shell-surface-stack,
.cm-shell-surface-content,
.cm-shell-surface-body {
    min-height: 0;
}

.cm-shell-surface {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
}

.cm-shell-tab-strip,
.cm-shell-pane-toolbar {
    display: flex;
    min-height: 38px;
    flex: 0 0 38px;
    align-items: flex-end;
    gap: 16px;
    padding: 8px 18px 0;
    border-bottom: 1px solid #d5d6dc;
}

.cm-shell-tab-list,
.cm-shell-tabs {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    align-items: flex-end;
    gap: 16px;
    overflow: auto hidden;
    scrollbar-width: none;
}

.cm-shell-tab,
.cm-shell-tabs-item {
    display: flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-bottom: -1px;
    padding: 0 1px 9px;
    border-bottom: 2px solid transparent;
    color: #77787e;
    font:
        500 12px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
    cursor: pointer;
}

.cm-shell-tab {
    max-width: 220px;
}

.cm-shell-tab.is-active,
.cm-shell-tabs-item.is-active {
    border-bottom-color: #26272b;
    color: #26272b;
}

.cm-shell-tab-icon {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    fill: none;
    stroke: #5b63d3;
    stroke-width: 1.5;
}

.cm-shell-tab [data-shell-tab-title],
.cm-shell-tabs-select {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cm-shell-tabs button,
.cm-shell-tabs-item button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.cm-shell-tabs-close {
    color: #9a9ba1;
    font-size: 11px;
}

.cm-shell-tabs-status {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: currentcolor;
}

.cm-shell-tabs-status[data-tab-status="changed"] {
    background: #b3862a;
}

.cm-shell-tabs-select {
    font:
        500 12px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
}

.cm-shell-tabs-item button:disabled {
    cursor: progress;
    opacity: 0.55;
}

.cm-shell-tab-add {
    padding: 0 2px 9px;
    color: #9a9ba1;
    font-size: 13px;
    line-height: 1;
    transition:
        color var(--cm-transition-fast),
        transform 80ms ease;
}

.cm-shell-tab-add:hover {
    color: #26272b;
}

.cm-shell-route-progress {
    position: absolute;
    z-index: 5;
    top: 37px;
    right: 0;
    left: 0;
    height: 2px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.cm-shell-route-progress::before {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(90deg, #777de0, #5b63d3 72%, #8188e7);
    box-shadow: 0 0 5px rgb(91 99 211 / 28%);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
}

.cm-shell-route-progress[data-state="loading"] {
    opacity: 1;
}

.cm-shell-route-progress[data-state="loading"]::before {
    animation: cm-shell-route-loading 1600ms cubic-bezier(0.22, 0.61, 0.36, 1)
        forwards;
}

.cm-shell-route-progress[data-state="complete"] {
    opacity: 0;
    transition: opacity 160ms ease 70ms;
}

.cm-shell-route-progress[data-state="complete"]::before {
    transform: scaleX(1);
    transition: transform 120ms ease-out;
}

.cm-shell-route-progress[data-state="cancelled"] {
    opacity: 0;
    transition: opacity 100ms ease;
}

@keyframes cm-shell-route-loading {
    0% {
        transform: scaleX(0.06);
    }

    48% {
        transform: scaleX(0.58);
    }

    100% {
        transform: scaleX(0.82);
    }
}

.cm-shell-navigation-status {
    min-width: 0;
    margin: 0 0 7px;
    overflow: hidden;
    color: #9a9ba1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cm-shell-navigation-status:empty {
    display: none;
}

.cm-shell-navigation-status[data-state="error"] {
    color: #b3402e;
}

.cm-shell-tab-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 5px auto;
}

.cm-shell-surface-tab-actions {
    display: contents;
}

.cm-shell-surface-stack {
    display: flex;
    flex: 1 1 auto;
}

.cm-shell-surface-content {
    width: 100%;
    overflow: auto;
}

.cm-shell-surface-body {
    width: 100%;
    min-height: 100%;
}

.cm-public-surface,
.cm-page-surface {
    width: 100%;
    min-height: 100dvh;
    padding: 24px 32px;
}

.cm-row,
.cm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cm-content-stack,
.cm-page-heading {
    display: grid;
    gap: 8px;
}

.cm-page-heading > :where(h1, h2, p),
.cm-empty-state > :where(h2, p) {
    margin: 0;
}

.cm-list-plain {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-muted {
    color: #77787e;
}

.cm-text-sm {
    font-size: 14px;
}

.cm-text-xs,
.cm-eyebrow {
    font-size: 12px;
}

.cm-eyebrow {
    margin: 0;
    color: #77787e;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cm-title {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-weight: 500;
}

.cm-title-lg {
    font-size: 20px;
}

.cm-title-xl {
    font-size: 26px;
}

.cm-card,
.cm-panel {
    border: 1px solid #d5d6dc;
    border-radius: 10px;
    background: #fff;
}

.cm-card {
    box-shadow: 0 1px 4px rgb(30 32 44 / 5%);
}

.cm-panel {
    padding: 24px;
}

.cm-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 32px 16px;
    color: #77787e;
    text-align: center;
}

.cm-btn-primary,
.cm-btn-subtle,
.cm-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition:
        border-color var(--cm-transition-fast),
        color var(--cm-transition-fast),
        background-color var(--cm-transition-fast),
        box-shadow var(--cm-transition-fast),
        transform 80ms ease;
}

.cm-btn-primary {
    color: #fff;
    background: #5b63d3;
}

.cm-btn-subtle {
    border-color: #d5d6dc;
    background: #fff;
}

.cm-btn-danger {
    border-color: #b3402e;
    color: #b3402e;
    background: #fff;
}

.cm-btn-primary:hover {
    background: #474fc0;
}

.cm-btn-subtle:hover {
    border-color: #c8c9cf;
    background: #f6f6f8;
}

.cm-btn-danger:hover {
    background: #fff0f1;
}

:is(
        .cm-shell-rail-link,
        .cm-shell-sidebar-links a,
        .cm-shell-sidebar-account-actions a,
        .cm-shell-tab-add,
        .cm-shell-tabs-select,
        .cm-shell-tabs-close,
        .cm-btn-primary,
        .cm-btn-subtle,
        .cm-btn-danger
    ):active:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(1px);
}

.cm-shell-tooltip {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    max-width: 240px;
    padding: 5px 8px;
    border: 1px solid rgb(38 39 43 / 12%);
    border-radius: 6px;
    color: #fff;
    background: rgb(38 39 43 / 94%);
    box-shadow: 0 4px 14px rgb(30 32 44 / 16%);
    font-size: 11px;
    line-height: 1.3;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--cm-tooltip-x, 0), var(--cm-tooltip-y, 0), 0)
        translateY(2px);
    transition:
        opacity 100ms ease,
        transform 100ms ease;
    white-space: nowrap;
}

.cm-shell-tooltip[data-visible] {
    opacity: 1;
    transform: translate3d(var(--cm-tooltip-x, 0), var(--cm-tooltip-y, 0), 0);
}

.cm-btn-primary:disabled,
.cm-btn-subtle:disabled,
.cm-btn-danger:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
}

.cm-form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.cm-label,
.cm-form-group > label {
    font-size: 14px;
    font-weight: 500;
}

.cm-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d5d6dc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.cm-input:focus {
    border-color: #5b63d3;
    outline: 2px solid rgb(91 99 211 / 25%);
}

textarea.cm-input {
    min-height: 80px;
    resize: vertical;
}

/* Inline stroke icon for names the Material Symbols subset does not carry.
   Sized in em so the existing font-size rules on icon slots keep working. */
.cm-icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.cm-new-tab-surface {
    min-height: 100%;
    padding: clamp(22px, 4vw, 52px);
    color: var(--cm-color-text);
    background:
        radial-gradient(circle at 95% 0%, rgb(91 99 211 / 8%), transparent 30rem),
        var(--cm-color-surface-subtle);
}

.cm-new-tab {
    width: min(100%, 880px);
    margin: 0 auto;
}

.cm-new-tab-heading {
    margin-bottom: var(--cm-space-8);
}

.cm-new-tab-heading h1 {
    margin: 0;
    font: 500 clamp(1.7rem, 3.2vw, 2.4rem) / 1.1 var(--cm-font-title);
    letter-spacing: -0.02em;
}

.cm-new-tab-eyebrow {
    margin: 0 0 var(--cm-space-2);
    color: var(--cm-color-primary-strong);
    font-size: var(--cm-font-size-xs);
    font-weight: var(--cm-font-weight-bold);
    letter-spacing: var(--cm-letter-spacing-eyebrow);
    text-transform: uppercase;
}

.cm-new-tab-label {
    margin: var(--cm-space-6) 0 var(--cm-space-3);
    color: var(--cm-color-muted);
    font-size: var(--cm-font-size-xs);
    font-weight: var(--cm-font-weight-semibold);
    letter-spacing: var(--cm-letter-spacing-eyebrow);
    text-transform: uppercase;
}

.cm-new-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: var(--cm-space-3);
}

.cm-new-tab-item {
    display: flex;
    align-items: center;
    gap: var(--cm-space-3);
    padding: var(--cm-space-4);
    border: 1px solid var(--cm-color-border-soft);
    border-radius: var(--cm-radius-lg);
    color: var(--cm-color-text);
    background: rgb(255 255 255 / 92%);
    box-shadow: var(--cm-shadow-card);
    font-size: var(--cm-font-size-sm);
    font-weight: var(--cm-font-weight-medium);
    text-decoration: none;
    transition:
        border-color var(--cm-transition-fast),
        box-shadow var(--cm-transition-fast),
        transform var(--cm-transition-fast);
}

.cm-new-tab-item:hover {
    border-color: var(--cm-color-primary-border);
    box-shadow: 0 10px 28px rgb(30 32 44 / 9%);
    transform: translateY(-1px);
}

.cm-new-tab-item-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--cm-color-primary-border);
    border-radius: var(--cm-radius-md);
    color: var(--cm-color-primary-strong);
    background: var(--cm-color-primary-soft);
}

.cm-new-tab-item-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.cm-new-tab-item[data-shell-navigation-key^="course-"] .cm-new-tab-item-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.65;
}

.cm-new-tab-empty {
    color: var(--cm-color-subtle);
    font-size: var(--cm-font-size-sm);
}

@media (prefers-reduced-motion: reduce) {
    .cm-shell-rail-viewport,
    .cm-shell-library-viewport,
    .cm-shell-sidebar-viewport,
    .cm-shell-focus-sidebar {
        transition: none;
    }

    .cm-shell-route-progress[data-state="loading"]::before {
        animation: none;
        transform: scaleX(0.72);
    }

    .cm-shell-route-progress,
    .cm-shell-route-progress::before,
    .cm-shell-tooltip,
    .cm-shell-rail-link,
    .cm-shell-sidebar-links a,
    .cm-shell-sidebar-account-actions a,
    .cm-shell-tab-add,
    .cm-btn-primary,
    .cm-btn-subtle,
    .cm-btn-danger {
        transition: none;
    }

    :is(
            .cm-shell-rail-link,
            .cm-shell-sidebar-links a,
            .cm-shell-sidebar-account-actions a,
            .cm-shell-tab-add,
            .cm-shell-tabs-select,
            .cm-shell-tabs-close,
            .cm-btn-primary,
            .cm-btn-subtle,
            .cm-btn-danger
        ):active:not(:disabled):not([aria-disabled="true"]) {
        transform: none;
    }
}

@media (max-width: 720px) {
    .cm-shell-workspace {
        position: relative;
    }

    /*
     * Keep the icon rail in the document flow, but turn a course's contextual
     * sidebar into a drawer. It can then cover the surface while open without
     * squeezing lesson content into the few pixels left on a phone.
     */
    .cm-shell-sidebar-viewport {
        position: absolute;
        z-index: 30;
        top: 0;
        bottom: 0;
        left: var(--cm-shell-rail-width);
        max-width: calc(100% - var(--cm-shell-rail-width));
        border-right: 1px solid #d9dae0;
        background: #eef0f3;
        box-shadow: 12px 0 28px rgb(30 32 44 / 14%);
    }

    .cm-shell[data-shell-navigation-state="focus-rail-only"]
        .cm-shell-sidebar-viewport {
        border-right-color: transparent;
        box-shadow: none;
    }

    .cm-shell-surface-stack[style*="width"] {
        width: 100% !important;
    }
}

/* Theory links stay visible when the theory itself is locked: the entry is
   dimmed and carries the shell's own lock glyph, never a character. */
.cm-shell-sidebar-links a.is-locked,
.cm-new-tab-item.is-locked,
.cm-shell-rail-link.is-locked {
    opacity: 0.6;
}

.cm-shell-nav-lock {
    flex: none;
    width: 12px;
    height: 12px;
    margin-left: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}

.cm-new-tab-item .cm-shell-nav-lock {
    margin-left: 6px;
}
