:root {
    color-scheme: light;
    --blue: #258fe5;
    --blue-dark: #176ead;
    --green: #45b86b;
    --amber: #f4ad32;
    --coral: #e85d65;
    --purple: #8063cc;
    --ink: #203548;
    --muted: #71869a;
    --line: #e2ebf2;
    --surface: #fff;
    --background: #f7fafd;
    --shadow: 0 5px 18px rgb(32 53 72 / 6%);
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
}
* { box-sizing: border-box; }
/* Stage 2B extends the Stage 2A tokens and native form language. */
textarea, select { font: inherit; width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 52px; }
textarea { resize: vertical; line-height: 1.65; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.admin-page h2 { font-size: 22px; letter-spacing: -.025em; }
.admin-page h3 { font-size: 17px; letter-spacing: -.02em; }
.admin-page .card p { font-size: 14px; }
.inline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-actions select { width: auto; flex: 1; min-width: 180px; }
.editor-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 24px; margin-bottom: 24px; align-items: start; }
.editor-link { display: inline-flex; margin-top: 20px; }
.cms-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.filter-bar { display: flex; gap: 12px; align-items: center; padding: 20px; }
.filter-bar select { max-width: 210px; }
.filter-bar input { min-width: 0; }
.filter-bar .button { flex-shrink: 0; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 12px; font-weight: 650; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgb(39 132 232 / 3%); }
td small { display: block; color: var(--muted); margin-top: 4px; }
.row-title { color: var(--ink); font-weight: 650; }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding-top: 24px; font-size: 13px; color: var(--muted); }
.empty-state { display: grid; justify-items: center; text-align: center; padding-block: 52px; }
.empty-state .icon-tile { margin-bottom: 20px; }
.empty-state p { max-width: 430px; }
.save-bar { margin: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.block-list { display: grid; gap: 16px; margin: 20px 0; }
.editor-block { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--background); }
.editor-block h3 { margin: 0; }
.editor-block .section-heading { flex-wrap: wrap; gap: 12px; }
.option-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 12px; align-items: center; margin-bottom: 20px; }
.option-row input[type=checkbox], .checkbox-label input { width: 20px; height: 20px; min-height: 20px; accent-color: var(--blue); }
.option-row label { margin-top: 0; }
.ordering-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; margin-bottom: 16px; }
.checkbox-label { display: flex; gap: 12px; align-items: center; margin: 20px 0; line-height: 1.65; }
.hotspot-canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; margin-top: 20px; touch-action: none; background: var(--background); }
.coordinate-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.lesson-preview { width: 100%; max-width: 780px; margin-inline: auto; padding: 36px; }
.lesson-preview h1 { font-size: 30px; }
.preview-block { padding: 18px 0; }
.preview-block p { white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.preview-block.key_fact, .preview-block.medical_definition, .preview-block.clinical_note, .preview-block.explanation { background: rgb(39 132 232 / 7%); border-radius: 16px; padding: 22px; margin: 16px 0; }
.preview-block.warning { background: rgb(240 107 99 / 10%); border-left: 4px solid var(--coral); border-radius: 12px; padding: 20px; }
.content-image { border-radius: 16px; max-height: 550px; object-fit: contain; margin-inline: auto; }
figure { margin: 0; } figcaption { color: var(--muted); font-size: 13px; text-align: center; padding-top: 12px; }
.answer-preview { display: grid; gap: 12px; padding-left: 24px; margin-block: 24px; }
.answer-preview li { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; }
.answer-preview .correct { border-color: var(--green); background: rgb(36 180 126 / 8%); }
.media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.media-card { padding: 20px; min-width: 0; }
.media-card > img { width: 100%; height: 180px; object-fit: contain; border-radius: 12px; background: var(--background); margin-bottom: 18px; }
.media-card h2 { font-size: 18px; overflow-wrap: anywhere; }
.media-card > form { margin-top: 16px; }
summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; font-weight: 650; min-height: 44px; padding-block: 10px; }
code { font-size: 12px; overflow-wrap: anywhere; }
.migration-list { list-style: none; margin: 0; padding: 0; }
.migration-list li { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.migration-list time { color: var(--muted); margin-left: auto; }
.onboarding-content { display: flex; gap: 24px; align-items: center; }
.onboarding-content p { margin-bottom: 0; }
.onboarding-content .button { margin-left: auto; flex-shrink: 0; }
dialog { border: 1px solid var(--line); border-radius: 22px; padding: 32px; max-width: min(460px,calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgb(0 0 0 / 20%); }
dialog::backdrop { background: rgb(15 30 50 / 40%); backdrop-filter: blur(4px); }
.toast { margin: 0; animation: notice-in .2s ease-out; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) { .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 860px) { .editor-columns, .cms-grid { grid-template-columns: 1fr; } .onboarding-content { flex-wrap: wrap; } }
@media (max-width: 620px) {
    .filter-bar, .save-bar { flex-wrap: wrap; } .filter-bar select { max-width: none; } .media-grid { grid-template-columns: 1fr; }
    .coordinate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .ordering-row { grid-template-columns: 1fr; }
    .option-row { grid-template-columns: 24px minmax(0,1fr); } .option-row > button { grid-column: 2; justify-self: start; }
    .lesson-preview { padding: 24px; } .dashboard-heading { flex-wrap: wrap; } .pagination { flex-wrap: wrap; }
}
@media (prefers-color-scheme: dark) {
    .admin-page { color-scheme: dark; --ink: #e5edf8; --muted: #a1b0c4; --line: #29394c; --surface: #172436; --background: #0f1927; --blue-dark: #75b6fc; --shadow: 0 12px 40px rgb(0 0 0 / 12%); }
    .admin-page .admin-sidebar, .admin-page .admin-topbar { background: var(--surface); }
    .admin-page input { background: var(--background); border-color: var(--line); }
    .admin-page .button.secondary, .admin-page .pill.blue, .admin-page .icon-tile.blue { background: #1c3754; border-color: #304d70; color: #95caff; }
    .admin-page .pill.neutral, .admin-page .notice.neutral { background: #203044; color: #b2c1d6; }
    .admin-page .pill.green, .admin-page .notice.success { background: #15392f; color: #75dbb3; }
    .admin-page .notice.danger, .admin-page .pill.red { background: #422724; color: #ffc1ba; }
    .admin-page .nav-item { color: var(--muted); } .admin-page .nav-item.selected { background: #1c3754; color: #95caff; }
    .admin-page .profile-note { background: var(--background); }
}
body { margin: 0; background: var(--background); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.04em; }
p { color: var(--muted); }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { max-width: 1180px; margin: auto; padding-inline: 28px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.brand b { color: var(--blue); font-weight: inherit; }
.brand img { flex-shrink: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--surface); padding: 12px 20px; z-index: 100; border-radius: 12px; }
.skip-link:focus { top: 16px; }
.button { display: inline-flex; min-height: 54px; padding: 14px 22px; align-items: center; justify-content: center; gap: 16px; border-radius: 14px; border: 1px solid transparent; font-weight: 650; line-height: 1.35; transition: background .2s, transform .2s, box-shadow .2s; text-align: center; }
.button.primary { background: var(--blue); color: white; box-shadow: 0 6px 18px rgb(39 132 232 / 18%); }
.button.primary:hover { background: var(--blue-dark); box-shadow: 0 8px 24px rgb(39 132 232 / 25%); }
.button.secondary { background: #eef5fd; color: var(--blue-dark); border-color: #daeafa; }
.button.secondary:hover { background: #e1eefb; }
.button:active { transform: scale(.98); }
.button.small { min-height: 42px; padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.button.full { width: 100%; margin-top: 20px; }
.button.is-busy { opacity: .6; }
.text-link { font-weight: 650; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; padding: 6px 12px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pill.blue { background: #eaf3ff; color: var(--blue-dark); }
.pill.green { background: #e8f7f1; color: #147c55; }
.pill.red { background: #fff0ed; color: #be4038; }
.pill.neutral { background: #f0f3f7; color: var(--muted); }
.pill.light { background: rgb(255 255 255 / 16%); color: white; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; }
.eyebrow { display: block; color: var(--blue-dark); font-size: 11px; font-weight: 750; letter-spacing: .12em; margin-bottom: 20px; }
.lead { font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.muted { color: var(--muted); font-size: 13px; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; font-size: 28px; font-weight: 650; flex-shrink: 0; }
.icon-tile.blue { background: #eaf3ff; color: var(--blue); }
.icon-tile.green { background: #e8f8f1; color: var(--green); }
.icon-tile.amber { background: #fff6df; color: #d59919; }
.icon-tile.coral { background: #fff0ed; color: var(--coral); }
.icon-tile.purple { background: #f1efff; color: var(--purple); }
.icon-tile.small-tile { width: 44px; height: 44px; border-radius: 13px; font-size: 24px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.status-dot.blue { background: var(--blue); }
.status-dot.green { background: var(--green); }
.status-dot.red { background: var(--coral); }
label { display: block; font-size: 13px; font-weight: 650; margin: 20px 0 8px; }
input { width: 100%; min-height: 52px; border: 1px solid #dae3ed; background: #fbfcfe; color: var(--ink); border-radius: 12px; padding: 12px 14px; transition: border .2s, box-shadow .2s; }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(39 132 232 / 12%); }
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { padding-right: 100px; }
.reveal { position: absolute; right: 4px; min-height: 44px; padding: 8px 12px; background: transparent; color: var(--blue-dark); border: 0; font-size: 12px; font-weight: 650; border-radius: 10px; }
.field-help { font-size: 12px; line-height: 1.6; margin: 8px 0 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 110px; gap: 16px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.notice { border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 13px; line-height: 1.65; }
.notice.danger { color: #a63c35; background: #fff0ed; border: 1px solid #fadbd6; }
.notice.success { color: #137d56; background: #eaf8f2; border: 1px solid #cdeedd; }
.notice.neutral { color: #5f7188; background: #f3f6fb; border: 1px solid var(--line); }
.checkbox-label { display: flex; align-items: start; gap: 12px; font-weight: 450; }
.checkbox-label input { width: 18px; height: 18px; min-height: 18px; margin: 4px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.busy-message { font-size: 13px; margin-top: 18px; }
/* Installer */
.installer-page { background:var(--background) }
.installer-top { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.install-shell { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 76px; max-width: 1080px; padding-top: 20px; }
.install-sidebar { padding-top: 28px; }
.install-sidebar h1 { font-size: 32px; }
.install-sidebar > p { font-size: 14px; max-width: 300px; }
.step-list { list-style: none; padding: 0; margin: 34px 0; }
.step-list li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; color: #8d9aab; font-size: 14px; }
.step-list li:not(:last-child)::after { content: ''; height: 20px; width: 1px; background: #dce5f0; position: absolute; left: 17px; top: 48px; }
.step-number { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dce5f0; background: var(--background); font-weight: 700; }
.step-list .active { color: var(--ink); font-weight: 650; }
.step-list .active .step-number { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 0 0 5px #e2eefc; }
.step-list .done { color: #4c7e6a; }
.step-list .done .step-number { background: #e1f5ec; border-color: #c8eadb; color: #16875d; }
.sidebar-note { display: flex; align-items: start; gap: 10px; border-top: 1px solid #dee7f1; padding-top: 22px; font-size: 12px; color: var(--muted); max-width: 310px; }
.sidebar-note > span { color: var(--blue); font-size: 22px; }
.install-card { padding: 34px; align-self: start; min-height: 580px; }
.step-caption { display: flex; justify-content: space-between; font-size: 10px; font-weight: 750; letter-spacing: .08em; color: #8898ad; }
.wizard-progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 10px; margin: 18px 0 32px; background: #edf2f8; overflow: hidden; }
.wizard-progress::-webkit-progress-bar { background: #edf2f8; border-radius: 10px; }
.wizard-progress::-webkit-progress-value { background: var(--blue); border-radius: 10px; }
.wizard-progress::-moz-progress-bar { background: var(--blue); border-radius: 10px; }
.install-card > .icon-tile { margin-bottom: 24px; }
.install-card h2 { font-size: 29px; }
.overview-list { display: grid; gap: 22px; margin: 30px 0; }
.overview-list > div { display: flex; align-items: flex-start; gap: 14px; }
.mini-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--blue); background: #edf5ff; font-size: 11px; font-weight: 750; flex-shrink: 0; }
.overview-list strong { font-size: 14px; }
.overview-list p { font-size: 12px; margin: 4px 0 0; }
.requirements { list-style: none; padding: 0; margin: 0; }
.requirements li { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 12px; }
.check-status { font-weight: 700; white-space: nowrap; }
.check-status.pass { color: #158457; }
.check-status.fail { color: #bd4138; }
.summary-list { margin: 24px 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 15px 0; font-size: 13px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.completion-orbit { width: 108px; height: 108px; border-radius: 50%; margin: 20px auto 30px; background: #e5f8ef; display: flex; align-items: center; justify-content: center; border: 10px solid #f2fbf7; box-shadow: 0 0 0 1px #d7f0e4; }
.completion-orbit span { background: var(--green); color: white; font-size: 32px; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; }
.installer-footer { padding-top: 36px; padding-bottom: 36px; text-align: center; font-size: 12px; color: #8e9aad; }
.center-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.error-card { max-width: 580px; width: 100%; }
.error-card .brand { margin-bottom: 40px; }
/* Administrator login */
.login-page { background:var(--background) }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; max-width: 1060px; min-height: 100svh; align-items: center; padding-block: 50px; }
.login-intro .brand { margin-bottom: 65px; }
.login-intro h1 { font-size: 40px; }
.login-intro h1 span { color: var(--blue); }
.login-intro p { max-width: 350px; font-size: 15px; }
.login-art { position: relative; height: 190px; width: 260px; display: grid; place-items: center; margin: 30px 0; }
.login-art img { position:relative; border-radius:32px }
.login-ring { position: absolute; border: 16px solid #e0edfc; height: 190px; width: 190px; border-radius: 50%; }
.art-bubble { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 24px; }
.bubble-one { left: 4px; top: 34px; color: var(--amber); }
.bubble-two { right: 0; bottom: 36px; color: var(--green); }
.login-card { padding: 38px; }
.login-card .icon-tile { margin-bottom: 24px; }
.login-card h2 { font-size: 29px; }
.login-security { display: flex; justify-content: center; align-items: center; gap: 8px; color: #8c9aae; font-size: 12px; padding-top: 25px; }
/* Dashboard */
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100svh; }
.admin-sidebar { background: white; border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; }
.admin-sidebar .brand { padding-left: 6px; margin-bottom: 42px; }
.sidebar-section-label { font-size: 10px; letter-spacing: .12em; font-weight: 750; color: #a0acbb; padding: 0 14px 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; font-size: 13px; min-height: 48px; margin-bottom: 5px; padding: 12px 14px; border-radius: 12px; color: #6b7b8f; }
.nav-item > span { font-size: 21px; width: 24px; line-height: 1; }
.nav-item.selected { background: #eaf3ff; color: var(--blue-dark); font-weight: 650; }
.nav-item.unavailable { opacity: .7; }
.nav-item small { margin-left: auto; padding: 2px 6px; border-radius: 5px; background: #f0f3f7; font-size: 9px; color: #8998aa; }
.sidebar-bottom { margin-top: auto; padding: 36px 12px 10px; }
.sidebar-bottom p { font-size: 12px; margin: 12px 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 18px 40px; border-bottom: 1px solid var(--line); background: white; gap: 16px; }
.breadcrumb { font-size: 12px; color: #8190a4; }
.breadcrumb > span { margin: 0 12px; color: #b2bdca; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--ink); width: 44px; height: 44px; border-radius: 12px; }
.dashboard-main { max-width: 1240px; margin: auto; padding: 40px; display: grid; gap: 28px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dashboard-heading h1 { font-size: 31px; margin: 0 0 8px; }
.dashboard-heading .eyebrow { margin-bottom: 10px; font-size: 10px; }
.dashboard-heading p { margin: 0; font-size: 14px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { display: grid; align-content: start; }
.stat p { margin: 18px 0 6px; font-size: 13px; }
.stat > strong { font-size: 34px; letter-spacing: -.04em; line-height: 1.3; }
.stat > span { font-size: 11px; color: #9aa6b7; margin-top: 8px; }
.dashboard-columns { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading h2 { font-size: 19px; margin: 0; }
.status-list > div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 12px; }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; font-weight: 650; text-align: right; }
.admin-profile { text-align: center; overflow-wrap: anywhere; }
.admin-profile .eyebrow { color: #8b9aaf; font-size: 9px; margin-bottom: 25px; }
.profile-avatar { display:grid; place-items:center; width:78px; height:78px; margin:auto auto 20px; color:white; background:var(--blue); font-weight:700; font-size:32px; border-radius:50%; border:7px solid #edf5ff }
.admin-profile h2 { font-size: 22px; margin-bottom: 6px; }
.admin-profile p { font-size: 13px; margin-bottom: 16px; }
.profile-note { font-size: 11px; line-height: 1.8; color: #91a0b2; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.activity-list li:last-child { border: none; }
.activity-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.activity-list time { margin-left: auto; color: var(--muted); font-size: 11px; }
.next-stage { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border: 1px dashed #c9d9ee; border-radius: 20px; }
.next-stage h2 { font-size: 19px; margin-bottom: 6px; }
.next-stage p { font-size: 13px; margin: 0; }
.next-stage > .pill { margin-left: auto; }
/* Public website */
.landing-page { background: white; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { color: #718098; font-size: 13px; font-weight: 550; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; padding-top: 62px; padding-bottom: 94px; }
.hero-copy h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.08; margin: 26px 0; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--blue); }
.hero-copy > p { max-width: 450px; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 34px; }
.hero-actions .text-link { font-size: 13px; }
.hero-footnote { font-size: 11px; color: #96a2b3; margin-top: 24px; }
.hero-visual { position: relative; min-height: 590px; display: grid; place-items: center; }
.hero-orbit { position: absolute; width: 490px; height: 490px; border-radius: 50%; background: #f0f6ff; box-shadow: 0 0 0 22px #f8fbff; max-width: 100%; }
.phone-card { position:relative; width:288px; padding:32px 20px 14px; background:#f7fafd; border:1px solid var(--line); border-radius:32px; box-shadow:0 8px 28px rgb(32 53 72 / 8%) }
.phone-notch { position: absolute; top: 9px; left: 96px; width: 82px; height: 16px; border-radius: 10px; background: #e0e7f0; }
.phone-top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 750; margin: 13px 0 26px; }
.sample-badge { color: #7f91a9; font-size: 9px; }
.phone-card h2 { font-size: 25px; margin-bottom: 8px; }
.phone-card > p { font-size: 11px; margin-bottom: 22px; }
.sample-goal { display: flex; align-items: center; gap: 12px; padding: 13px; background: white; border-radius: 14px; margin-bottom: 14px; }
.sample-goal strong { display: block; font-size: 11px; }
.sample-goal div > span { display: block; font-size: 9px; color: #95a4b7; }
.sample-course { background:var(--blue); color:white; padding:20px; border-radius:18px }
.sample-course > span:not(.sample-course-icon) { display: block; letter-spacing: .1em; font-size: 8px; opacity: .7; }
.sample-course h3 { font-size: 22px; margin: 12px 0; }
.sample-course p { font-size: 10px; color: rgb(255 255 255 / 75%); }
.sample-course-icon { display: block; font-size: 32px; line-height: 1; margin-bottom: 18px; }
.sample-lesson-button { font-size: 9px; background: rgb(255 255 255 / 18%); padding: 11px 10px; border-radius: 10px; margin-top: 22px; }
.sample-tabs { display: flex; justify-content: space-around; font-size: 22px; padding-top: 16px; color: #98a7ba; }
.sample-tabs > span:first-child { color: var(--blue); }
.floating-card { position: absolute; display: flex; align-items: center; gap: 12px; background: white; border: 1px solid #edf1f6; padding: 14px 18px; border-radius: 18px; box-shadow: 0 14px 35px rgb(34 70 112 / 10%); z-index: 1; }
.floating-card strong { display: block; font-size: 12px; }
.floating-card div > span { display: block; font-size: 10px; color: #99a6b8; }
.float-left { left:-20px; top:110px }
.float-right { right:-12px; bottom:110px }
.intro-strip { background: #f8fafd; border-block: 1px solid #edf1f7; padding: 28px 0; }
.intro-strip .shell { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.intro-strip p { margin: 0; font-size: 15px; }
.intro-strip strong { color: var(--ink); }
.intro-strip .shell > span { font-size: 12px; color: #8393a9; }
.method-section, .tracks-section { padding-top: 100px; padding-bottom: 100px; }
.section-intro { max-width: 540px; margin-bottom: 42px; }
.section-intro h2 { font-size: clamp(30px, 3.4vw, 42px); }
.section-intro p { font-size: 15px; line-height: 1.8; }
.section-intro.centered { text-align: center; margin-inline: auto; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; }
.method-number { display: inline-block; color: #aac9ee; font-weight: 700; font-size: 36px; margin-bottom: 16px; letter-spacing: -.06em; }
.method-grid h3 { font-size: 19px; }
.method-grid p { font-size: 14px; line-height: 1.8; }
.features-section { background: #f5f8fc; padding: 90px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { box-shadow: none; padding: 30px; }
.feature-card h3 { font-size: 19px; margin-top: 26px; }
.feature-card p { font-size: 13px; line-height: 1.85; margin-bottom: 0; }
.feature-wide { grid-column: span 2; display: flex; align-items: center; gap: 50px; background: #eaf3ff; border-color: #e2eefe; }
.feature-copy { max-width: 320px; }
.feature-wide .icon-tile { background: white; }
.path-art { display: grid; justify-items: center; margin: auto; flex-shrink: 0; }
.path-art > span { display:grid; place-items:center; width:48px; height:48px; background:var(--blue); color:white; border-radius:16px; font-size:12px; font-weight:700; border:4px solid #dff1ff }
.path-art > span:last-child { background: white; color: #b2c4da; }
.path-art i { display: block; height: 18px; border-left: 3px dashed #c3d9f3; margin: 6px 0; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.track { padding: 38px; box-shadow: none; }
.track.student { background: #f8fbff; }
.track.doctor { background: #f7fcfa; }
.track .icon-tile { margin-bottom: 28px; }
.track .eyebrow { font-size: 10px; margin-bottom: 12px; }
.track.doctor .eyebrow { color: #239566; }
.track h3 { font-size: 28px; }
.track p { font-size: 14px; line-height: 1.85; }
.track-detail { display: block; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: #8d9db1; font-size: 11px; }
.ios-section { padding-bottom: 90px; }
.ios-card { display:flex; justify-content:space-between; align-items:center; gap:60px; padding:56px 64px; border-radius:24px; background:var(--blue-dark); color:white }
.ios-card h2 { font-size: 40px; margin-top: 24px; }
.ios-card p { max-width: 470px; color: rgb(255 255 255 / 75%); font-size: 14px; }
.ios-card img { border:1px solid rgb(255 255 255 / 18%); border-radius:28px; flex-shrink:0 }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-block: 38px; border-top: 1px solid var(--line); }
.site-footer > p { font-size: 12px; margin: 0; align-self: center; }
.site-footer > div { display: flex; gap: 30px; font-size: 12px; }
.site-footer small { color: #9aa6b7; font-size: 10px; text-align: right; }
/* Motion and adaptive layout */
.install-card, .login-card, .dashboard-main { animation: entrance .35s ease both; }
@keyframes entrance { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
    .hero { gap: 20px; }
    .float-left { left: -5px; }
    .float-right { right: -5px; }
    .floating-card { padding: 12px; gap: 8px; }
    .floating-card strong { font-size: 10px; }
    .hero-orbit { width: 400px; height: 400px; }
    .hero-visual { min-height: 570px; }
    .admin-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .admin-sidebar { padding-inline: 14px; }
    .admin-topbar { padding-inline: 24px; }
    .dashboard-main { padding: 30px 24px; }
    .dashboard-columns { grid-template-columns: 1.3fr 1fr; }
    .dashboard-stats { gap: 14px; }
    .dashboard-stats .card { padding: 22px; }
}
@media (max-width: 860px) {
    .install-shell { gap: 36px; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); }
    .install-card { padding: 26px; }
    .install-sidebar h1 { font-size: 28px; }
    .login-shell { gap: 40px; }
    .login-intro h1 { font-size: 34px; }
    .login-card { padding: 28px; }
    .site-header nav { gap: 18px; }
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
    .hero-copy { max-width: 620px; margin: auto; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 520px; width: 100%; margin: auto; }
    .hero-copy h1 { font-size: 56px; }
    .hero-visual .float-left { left: 0; }
    .hero-visual .float-right { right: 0; }
    .method-grid { gap: 28px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-wide { grid-column: span 1; display: block; }
    .path-art { display: none; }
    .ios-card { padding: 40px; gap: 30px; }
    .ios-card img { width: 100px; height: 100px; border-radius: 30px; }
    .ios-card h2 { font-size: 34px; }
    .track { padding: 28px; }
    .track h3 { font-size: 25px; }
    .admin-layout { display: block; }
    .admin-sidebar { display: none; position: fixed; left: 0; top: 82px; bottom: 0; width: 260px; z-index: 20; overflow-y: auto; box-shadow: 10px 0 50px rgb(23 43 69 / 15%); }
    .menu-open .admin-sidebar { display: flex; }
    .menu-toggle { display: block; }
    .admin-topbar { position: sticky; top: 0; z-index: 25; }
    .breadcrumb { margin-right: auto; }
}
@media (max-width: 620px) {
    .shell { padding-inline: 20px; }
    .brand { font-size: 19px; gap: 10px; }
    .brand img { width: 34px; height: 34px; }
    .installer-top { padding-top: 20px; padding-bottom: 12px; }
    .installer-top .pill { font-size: 10px; padding: 5px 9px; }
    .install-shell { display: block; padding-top: 0; }
    .install-sidebar { padding-top: 10px; }
    .install-sidebar > .eyebrow, .install-sidebar h1, .install-sidebar > p, .sidebar-note { display: none; }
    .step-list { display: flex; justify-content: space-between; margin: 12px 2px 26px; }
    .step-list li { min-height: auto; }
    .step-list li > span:last-child { display: none; }
    .step-list li::after { display: none; }
    .step-number { width: 30px; height: 30px; font-size: 12px; }
    .install-card { padding: 24px 20px; min-height: 0; border-radius: 20px; }
    .install-card h2 { font-size: 26px; }
    .requirements li { font-size: 11px; gap: 12px; }
    .form-actions { gap: 10px; }
    .form-actions .button { flex: 1 1 100%; font-size: 14px; }
    .summary-list > div { flex-direction: column; gap: 4px; }
    .summary-list dd { text-align: left; }
    .login-shell { display: block; padding-block: 28px; }
    .login-intro .brand { margin-bottom: 28px; }
    .login-intro > .eyebrow, .login-intro h1, .login-intro > p, .login-art { display: none; }
    .login-intro > .text-link { display: none; }
    .login-card { padding: 26px; }
    .site-header { flex-wrap: wrap; gap: 18px; padding-top: 20px; }
    .site-header nav { order: 3; width: 100%; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
    .site-header .button { padding: 9px 12px; font-size: 11px; min-height: 38px; }
    .hero { padding-top: 30px; padding-bottom: 50px; }
    .hero-copy h1 { font-size: clamp(36px, 10vw, 50px); }
    .hero-copy > p { font-size: 15px; }
    .hero-actions { gap: 18px; }
    .hero-footnote { font-size: 10px; }
    .hero-visual { min-height: 575px; margin-top: 18px; }
    .hero-orbit { width: 310px; height: 310px; box-shadow: 0 0 0 12px #f8fbff; }
    .phone-card { width: 268px; }
    .floating-card { padding: 10px; }
    .floating-card .small-tile { height: 32px; width: 32px; font-size: 19px; border-radius: 10px; }
    .float-left { top: 48px; }
    .float-right { bottom: 40px; }
    .intro-strip .shell { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .intro-strip p { flex-basis: 100%; text-align: center; }
    .intro-strip .shell > span { font-size: 11px; }
    .method-section, .tracks-section { padding-top: 60px; padding-bottom: 60px; }
    .section-intro h2 { font-size: 32px; }
    .method-grid { grid-template-columns: 1fr; gap: 20px; }
    .method-grid article { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .features-section { padding-block: 60px; }
    .feature-grid, .track-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 26px; }
    .feature-card h3 { margin-top: 20px; }
    .ios-section { padding-bottom: 50px; }
    .ios-card { padding: 30px; gap: 22px; flex-direction: column-reverse; align-items: flex-start; border-radius: 22px; }
    .ios-card img { width: 68px; height: 68px; border-radius: 20px; }
    .ios-card .pill { font-size: 10px; }
    .ios-card h2 { font-size: 32px; }
    .site-footer { grid-template-columns: 1fr; gap: 16px; }
    .site-footer small { text-align: left; }
    .admin-topbar { padding: 14px 20px; min-height: 72px; }
    .breadcrumb { font-size: 10px; }
    .breadcrumb > span { margin: 0 5px; }
    .admin-topbar .button { font-size: 11px; padding: 9px 12px; }
    .admin-sidebar { top: 72px; }
    .dashboard-main { padding: 28px 20px; gap: 20px; }
    .dashboard-heading { align-items: start; flex-direction: column; gap: 14px; }
    .dashboard-heading h1 { font-size: 27px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .stat { grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: center; }
    .stat .icon-tile { grid-row: span 2; }
    .stat p { margin: 0; font-size: 12px; }
    .stat > strong { grid-column: 3; grid-row: span 2; font-size: 25px; }
    .stat > span { margin: 0; font-size: 9px; }
    .dashboard-columns { grid-template-columns: 1fr; }
    .dashboard-main .card { padding: 22px; }
    .status-list > div { font-size: 11px; }
    .activity-list li { flex-wrap: wrap; gap: 8px; }
    .activity-list time { width: 100%; margin-left: 16px; }
    .next-stage { flex-wrap: wrap; padding: 20px; }
    .next-stage .pill { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .button:active { transform: none; }
}
