@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 {
    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-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 6px;
}

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

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

.cm-shell-breadcrumb {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #9a9ba1;
    font:
        400 12px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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;
    transition:
        width 350ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 250ms ease;
}

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

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

.cm-shell-library-viewport {
    width: 212px;
    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: 236px;
    opacity: 1;
    pointer-events: auto;
}

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

.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: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 9px;
    color: #77787e;
    transition: 150ms ease;
}

.cm-shell-rail-link:hover {
    color: #26272b;
    background: #e2e4e9;
}

.cm-shell-rail-link.is-active {
    color: #5b63d3;
    background: #fff;
    box-shadow:
        0 1px 3px rgb(30 32 44 / 10%),
        0 0 0 1px #d5d6dc;
}

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

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

.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[data-shell-show-library] svg {
    width: 16px;
    height: 16px;
}

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

.cm-shell-rail-course-icon {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    font:
        400 16px/1 "Newsreader",
        Georgia,
        serif;
}

.cm-shell-rail-course-icon.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-size: 17px;
}

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

.cm-shell-library-sidebar {
    width: 212px;
}

.cm-shell-focus-sidebar {
    position: absolute;
    inset: 0;
    display: flex;
    width: 236px;
    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: 4px 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;
}

.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-course-icon {
    display: grid;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    place-items: center;
    color: #77787e;
    font:
        400 14px/1 "Newsreader",
        Georgia,
        serif;
}

.cm-shell-sidebar-course-icon .material-symbols-outlined {
    font-size: 14px;
}

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

.cm-shell-sidebar-note {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 12px 12px 8px;
    border-top: 1px solid #dcdde2;
    color: #5b63d3;
}

.cm-shell-sidebar-note p {
    margin: 0;
    color: #5d5e64;
    font:
        italic 400 12.5px/1.5 "Newsreader",
        Georgia,
        serif;
}

.cm-shell-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border-radius: 7px;
    color: #5d5e64;
    font:
        400 13px "Instrument Sans",
        "Helvetica Neue",
        sans-serif;
}

.cm-shell-sidebar-logout:hover,
.cm-shell-sidebar-logout:focus-visible {
    color: #26272b;
    background: #e2e4e9;
}

.cm-shell-sidebar-logout 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 {
    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;
}

.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;
}

.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: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;
}

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