/* Dochodowa Ekspertka — lokalny interfejs, bez zewnętrznych fontów i zasobów. */
:root {
  --ink: #302820;
  --muted: #766d64;
  --paper: #f6f4ef;
  --surface: #fffefa;
  --line: #e7e1d7;
  --accent: #a44d30;
  --accent-dark: #833a22;
  --accent-soft: #f3e6dc;
  --sidebar: #30241f;
  --sidebar-muted: #b8a99e;
  --sage: #e8eee5;
  --green: #476141;
  --radius: 16px;
  --shadow: 0 3px 14px rgb(48 40 32 / 3%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img, svg { vertical-align: middle; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(30px, 3vw, 45px); letter-spacing: -1.3px; margin-bottom: 14px; }
h2 { font-size: 22px; letter-spacing: -.55px; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 16px; }
::selection { background: #e6bea9; color: #30241f; }
:focus-visible { outline: 3px solid #b56b49; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 100; padding: 10px 16px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 14px; line-height: 1.5; font-weight: 650; letter-spacing: 1.8px; color: var(--muted); margin-bottom: 12px; }
.eyebrow.light { color: #d6bca8; }
.meta { font-size: 14px; line-height: 1.5; letter-spacing: .55px; color: var(--muted); margin-bottom: 5px; }
.accent-dot { color: var(--accent); }
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; min-height: 660px; background: var(--sidebar); color: #f9f4ec; padding: 31px 20px 20px; display: flex; flex-direction: column; }
.brand, .public-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand { padding: 0 9px; margin-bottom: 38px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: #e7c7a9; color: #362720; font-family: Georgia, serif; font-size: 27px; font-weight: 400; letter-spacing: -3px; padding-right: 3px; }
.brand-name { display: flex; flex-direction: column; font-size: 16px; line-height: 1.2; font-weight: 500; letter-spacing: -.45px; }
.brand-name span { font-family: Georgia, serif; font-size: 20px; font-style: italic; font-weight: 400; }
.sidebar-caption { font-size: 14px; letter-spacing: 1.7px; color: var(--sidebar-muted); padding-left: 12px; margin-bottom: 16px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; color: #d5c7bc; font-size: 14px; transition: color .18s, background .18s; white-space: nowrap; }
.nav-link svg { width: 18px; height: 18px; stroke-width: 1.5; }
.nav-link:hover, .nav-link:focus-visible { background: #47352c; color: #fffaf3; }
.nav-link.is-active { background: #ead1ba; color: #37271f; font-weight: 600; }
.nav-divider { border-top: 1px solid #514139; margin: 16px 12px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { margin: 30px 12px 25px; padding-top: 17px; border-top: 1px solid #514139; display: flex; align-items: flex-start; gap: 10px; color: #c4b0a0; }
.sidebar-note p { margin: 0; font-family: Georgia, serif; font-style: italic; font-size: 14px; line-height: 1.6; }
.small-spark { font-size: 22px; color: #ddba98; line-height: 1; }
.sidebar-profile { display: flex; align-items: center; gap: 11px; border-top: 1px solid #514139; padding: 20px 9px 7px; }
.sidebar-profile > span:nth-child(2) { flex: 1; min-width: 0; }
.sidebar-profile strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.sidebar-profile small { display: block; color: #bfac9e; font-size: 14px; }
.sidebar-profile svg { width: 16px; height: 16px; }
.avatar { height: 36px; width: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 17px; font-weight: 400; color: #76513d; background: #efdfce; flex: none; }
.avatar-small { width: 30px; height: 30px; font-size: 14px; }
.avatar-large { width: 66px; height: 66px; font-size: 29px; }
.logout-form { padding-left: 55px; margin-top: 1px; }
.logout-button { border: 0; padding: 4px 0; background: transparent; color: #c0afa2; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.logout-button:hover { color: #fffaf3; }
.logout-button svg { width: 12px; height: 12px; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; padding: 0 43px; border-bottom: 1px solid var(--line); }
.topbar-label { font-size: 14px; letter-spacing: 1.9px; color: var(--muted); }
.topbar-account { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.online-dot { width: 5px; height: 5px; background: #829371; border-radius: 50%; }
.content { padding: 35px 43px 30px; max-width: 1530px; margin: 0 auto; }
.page-footer { margin: 28px 43px 0; border-top: 1px solid var(--line); padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 20px; color: #898076; font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--accent); border-radius: 7px; padding: 13px 19px; background: var(--accent); color: #fffaf4; font-size: 14px; font-weight: 550; line-height: 1.35; min-height: 43px; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .6; }
.button > span { font-size: 17px; font-weight: 400; line-height: 1; }
.button-small { font-size: 14px; padding: 10px 13px; min-height: 38px; }
.button-cream { background: #f4e8d9; border-color: #f4e8d9; color: #493222; }
.button-cream:hover { background: #fff7ec; border-color: #fff7ec; }
.button-outline { background: transparent; border-color: #d5c7b8; color: var(--ink); }
.button-outline:hover { border-color: #aa8b74; background: #f5eee5; }
.button-danger-outline { background: transparent; color: #914d41; border-color: #dac0b8; }
.button-danger-outline:hover { color: #753125; background: #f9ece7; border-color: #bd897a; }
.button-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 14px; font-weight: 550; line-height: 1.5; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link > span { font-size: 16px; line-height: 1; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 19px; flex: none; }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.welcome-hero { position: relative; min-height: 307px; border-radius: 17px; background: #6a3e2d; overflow: hidden; padding: 35px 40px 33px; display: flex; justify-content: space-between; color: #fff3e6; }
.hero-copy { z-index: 1; max-width: 68%; }
.hero-copy h1 { font-size: clamp(34px, 3.9vw, 54px); font-weight: 400; line-height: 1.07; letter-spacing: -1.8px; margin-bottom: 15px; }
.hero-copy > p:not(.eyebrow) { color: #e3cdbb; font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.hero-copy .eyebrow { margin-bottom: 17px; font-size: 14px; letter-spacing: 1.9px; }
.hero-copy .button { font-size: 14px; min-height: 40px; padding: 11px 16px; }
.hero-dot { color: #dda67e; }
.hero-art { width: 36%; position: absolute; top: 0; right: 0; bottom: 0; overflow: hidden; opacity: .95; }
.orbit { position: absolute; width: 245px; height: 360px; border: 1px solid #b57b56; border-radius: 50%; right: 17px; top: -60px; transform: rotate(33deg); }
.orbit-two { right: -42px; top: -37px; }
.orbit-three { right: 72px; top: -98px; }
.hero-spark { position: absolute; font-size: 145px; line-height: 1; top: 34px; right: 76px; color: #eac6a3; transform: rotate(10deg); }
.hero-art-caption { position: absolute; bottom: 37px; right: 43px; font-size: 14px; line-height: 1.9; letter-spacing: 2.6px; color: #e8c7ad; }
.section-heading { margin: 31px 0 17px; display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.section-heading .eyebrow { margin-bottom: 6px; font-size: 14px; letter-spacing: 1.65px; }
.section-heading h2 { margin: 0; font-size: 22px; }
.section-heading.compact { margin-top: 30px; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.program-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.program-cover { min-height: 162px; position: relative; padding: 21px 25px; background: #e9dac7; color: #6c4a35; overflow: hidden; }
.cover-label { position: relative; z-index: 1; display: block; letter-spacing: 2px; font-size: 14px; }
.cover-monogram { position: absolute; font-family: Georgia, serif; font-size: 190px; letter-spacing: -23px; right: 18px; bottom: -74px; line-height: 1; color: #caaa8c; }
.cover-caption { position: relative; display: block; margin-top: 24px; font-family: Georgia, serif; font-size: 21px; line-height: 1.22; letter-spacing: -.5px; z-index: 1; }
.cover-line { position: absolute; width: 175px; height: 230px; border: 1px solid #b89474; border-radius: 50%; right: 38px; top: -81px; transform: rotate(-30deg); opacity: .65; }
.program-card-body { padding: 21px 24px 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.program-card h3 { font-size: 21px; font-weight: 550; letter-spacing: -.5px; margin-bottom: 7px; }
.program-card p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 9px; border-radius: 5px; font-size: 14px; font-weight: 550; line-height: 1.3; }
.status-active { color: #4e6744; background: #edf1e7; }
.status-muted { color: #726355; background: #f0eae2; }
.status-warning { color: #89551c; background: #f8eccf; }
.progress-label { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.progress-label strong { color: var(--ink); font-weight: 550; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 8px; overflow: hidden; background: #eee9e0; color: #ab6848; appearance: none; }
progress::-webkit-progress-bar { background: #eee9e0; border-radius: 8px; }
progress::-webkit-progress-value { background: #ab6848; border-radius: 8px; }
progress::-moz-progress-bar { background: #ab6848; border-radius: 8px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 17px; }
.card-bottom .small { font-size: 14px; }
.dashboard-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.dashboard-lower .section-heading h2 { font-size: 19px; }
.event-list, .news-list { min-height: 194px; }
.event-item { padding: 21px; display: flex; align-items: center; gap: 15px; }
.event-item + .event-item { border-top: 1px solid var(--line); }
.event-item > div:nth-child(2) { flex: 1; }
.event-item h3 { font-size: 14px; margin-bottom: 4px; }
.event-item p { margin-bottom: 0; }
.date-tile { width: 51px; height: 60px; border: 1px solid #ddcebd; border-radius: 9px; background: #f6ede2; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.date-tile strong { line-height: 1; font-family: Georgia, serif; font-size: 24px; font-weight: 400; color: #70523c; }
.date-tile span { line-height: 1.3; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; color: #806953; }
.news-item { padding: 21px; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.post-author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; line-height: 1.4; }
.post-author small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.news-item h3 { font-size: 14px; margin-top: 13px; margin-bottom: 5px; }
.news-item > p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.empty-state { grid-column: 1 / -1; width: 100%; padding: 48px 28px; text-align: center; border: 1px dashed #d5c8b9; background: #f8f5ef; border-radius: var(--radius); }
.empty-state h2, .empty-state h3 { font-size: 23px; font-family: Georgia, serif; font-weight: 400; margin-bottom: 10px; }
.empty-state p { max-width: 450px; margin: 0 auto 22px; color: var(--muted); font-size: 14px; }
.empty-state .button { font-size: 14px; }
.empty-symbol { display: block; margin-bottom: 16px; color: #b18563; font-size: 30px; line-height: 1; }
.empty-svg { width: 32px; height: 32px; color: #ad8d72; margin-bottom: 15px; }
.quiet-empty { padding: 34px 24px; text-align: center; color: var(--muted); }
.quiet-empty svg { color: #b1977d; width: 26px; height: 26px; margin-bottom: 12px; }
.quiet-empty h3 { font-size: 14px; color: #6e5c4e; font-weight: 500; margin-bottom: 6px; }
.quiet-empty h2 { font-size: 20px; color: #6e5c4e; font-weight: 500; }
.quiet-empty p { font-size: 14px; max-width: 290px; margin: 0 auto; }
.quiet-empty .button { margin-top: 18px; }
.compact-empty { padding: 33px 25px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 10px 0 29px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading h1 { margin-bottom: 12px; }
.page-heading > .button { flex: none; }
.page-intro { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 600px; margin-bottom: 0; }
.page-symbol { color: #c6a88a; font-family: Georgia, serif; font-size: 75px; line-height: 1; padding-right: 20px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); margin-bottom: 23px; flex-wrap: wrap; }
.breadcrumbs a { color: #8b6248; }
.breadcrumbs a:hover { text-decoration: underline; }
.progress-summary { min-width: 160px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; text-align: center; background: #f9f7f2; }
.progress-summary > strong { font-family: Georgia, serif; font-size: 33px; font-weight: 400; display: block; line-height: 1.1; color: #855435; }
.progress-summary > strong > span { font-size: 20px; }
.progress-summary > span { display: block; color: var(--muted); font-size: 14px; margin: 5px 0 12px; }
.progress-summary progress { height: 4px; }
.program-toolbar { display: flex; align-items: center; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.program-toolbar > .text-link { margin-left: auto; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.module-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.module-cover { position: relative; overflow: hidden; padding: 21px; height: 119px; background: #e5d2bb; color: #6f533b; }
.module-tone-two { background: #e6e7dd; color: #67705a; }
.module-tone-three { background: #ebd9cd; color: #865b47; }
.module-number { display: block; font-family: Georgia, serif; font-size: 43px; line-height: 1; font-weight: 400; letter-spacing: -3px; }
.module-caption { font-size: 14px; letter-spacing: 2.3px; }
.module-decoration { position: absolute; top: -25px; right: -5px; font-family: Georgia, serif; font-size: 153px; line-height: 1; opacity: .35; }
.module-body { padding: 19px 20px 9px; }
.module-body h2 { font-size: 17px; margin-bottom: 11px; min-height: 42px; font-weight: 550; letter-spacing: -.35px; }
.module-body .card-meta { margin-bottom: 8px; }
.module-body .card-meta .meta { font-size: 14px; }
.module-body > p { font-size: 14px; }
.module-body progress { height: 3px; margin-bottom: 10px; }
.lesson-list-item { display: flex; align-items: center; gap: 9px; padding: 13px 0; font-size: 14px; line-height: 1.5; }
.lesson-list-item + .lesson-list-item { border-top: 1px solid #efebe4; }
.lesson-list-item > span:nth-child(2) { flex: 1; }
.lesson-list-item:hover { color: var(--accent); }
.lesson-icon { border: 1px solid #dbcec0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #987254; flex: none; font-size: 14px; }
.lesson-arrow { font-size: 14px; color: #997758; }
.module-empty { padding: 9px 0 4px; font-size: 14px; }
.lesson-heading { margin-bottom: 23px; }
.lesson-heading h1 { font-size: 36px; }
.lesson-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 267px; gap: 26px; align-items: start; }
.lesson-main { min-width: 0; }
.video-frame { border-radius: 13px; background: #211c19; overflow: hidden; aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-hint { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #8c7b6c; margin: 9px 3px 20px; }
.video-hint svg { width: 11px; height: 11px; }
.lesson-content { padding: 26px 28px; margin-bottom: 20px; }
.lesson-content h2 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.lesson-content > p:not(.eyebrow) { font-size: 14px; }
.prose { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.assignment { background: #f5f0e6; border-left: 2px solid #b78560; padding: 19px 21px; margin-top: 24px; border-radius: 0 7px 7px 0; }
.assignment h3 { font-size: 14px; margin-bottom: 8px; }
.attachment-list { display: flex; flex-direction: column; gap: 9px; }
.attachment { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.attachment:hover { border-color: #b99373; background: #f9f5ee; }
.file-symbol { display: flex; width: 33px; height: 39px; align-items: center; justify-content: center; color: #8f6042; background: #f2e5d6; border-radius: 5px; }
.attachment > span:nth-child(2) { flex: 1; }
.attachment strong { display: block; font-size: 14px; font-weight: 550; }
.attachment small { color: var(--muted); font-size: 14px; }
.attachment > svg { width: 17px; height: 17px; color: #9b7659; }
.lesson-outline { position: sticky; top: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; overflow: hidden; }
.outline-header { padding: 24px 22px 21px; border-bottom: 1px solid var(--line); }
.outline-header .eyebrow { font-size: 14px; margin-bottom: 9px; }
.outline-header h2 { font-size: 17px; line-height: 1.3; margin-bottom: 14px; }
.outline-header .text-link { font-size: 14px; }
.outline-item { display: flex; align-items: start; gap: 9px; padding: 16px 19px; font-size: 14px; line-height: 1.45; border-left: 3px solid transparent; }
.outline-item > span:nth-child(2) { flex: 1; }
.outline-item + .outline-item { border-top: 1px solid #f0ebe4; }
.outline-item:hover { background: #fbf4e9; }
.outline-item.is-current { background: #f5e9dc; border-left-color: #a65d38; color: #885432; }
.outline-number { font-size: 14px; color: #978776; padding-top: 1px; }
.outline-note { margin: 16px; padding: 16px 5px 3px; border-top: 1px solid var(--line); color: #8a7563; display: flex; gap: 9px; }
.outline-note svg { width: 15px; height: 15px; margin-top: 3px; }
.outline-note p { font-size: 14px; }
.outline-note a { color: var(--accent); display: inline-block; margin-top: 5px; }
.lesson-pagination { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-top: 8px; }
.lesson-pagination a { max-width: 47%; }
.lesson-pagination a > span { display: block; font-size: 14px; }
.lesson-pagination a > strong { display: block; font-size: 14px; font-weight: 500; }
.next-lesson { text-align: right; }
.standard-form p { margin-bottom: 19px; }
.standard-form label, .key-label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 7px; color: #5c4a3d; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']), textarea, select { width: 100%; border: 1px solid #dcd1c4; border-radius: 6px; padding: 11px 12px; min-height: 42px; line-height: 1.5; color: var(--ink); background: #fffefa; box-shadow: inset 0 1px 1px rgb(50 30 10 / 2%); }
input::placeholder, textarea::placeholder { color: #a4988b; }
input:hover, textarea:hover, select:hover { border-color: #bba590; }
input:focus, textarea:focus, select:focus { border-color: #a96e49; outline: 2px solid #dcc1a9; outline-offset: 1px; }
textarea { resize: vertical; min-height: 80px; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 17px; height: 17px; vertical-align: middle; margin-left: 0; }
.standard-form p:has(input[type='checkbox']) { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; background: #f6f0e8; padding: 12px 14px; border-radius: 7px; }
.standard-form p:has(input[type='checkbox']) label { margin: 0; order: 1; }
.helptext { display: block; color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 6px; }
.helptext ul { padding-left: 17px; margin: 7px 0; }
.errorlist { margin: 0 0 8px; padding: 10px 12px 10px 28px; color: #873829; background: #faebe5; border-radius: 6px; font-size: 14px; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form-panel { padding: 30px; }
.form-panel-wide { max-width: 750px; }
.standard-form > p:last-of-type { margin-bottom: 25px; }
.messages { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.message { padding: 14px 18px; border: 1px solid #dfd3c3; background: #faf0de; color: #725435; border-radius: 8px; font-size: 14px; }
.message-success { border-color: #cddbc5; background: #eef4e9; color: #45643d; }
.message-error { background: #faebe5; color: #873829; border-color: #e5c0b5; }
.expiry-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin-bottom: 24px; border: 1px solid #e4cca1; border-radius: 11px; background: #fcf1dc; color: #755021; }
.banner-icon { width: 23px; height: 23px; border: 1px solid #c5924b; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-family: Georgia, serif; }
.expiry-copy { flex: 1; }
.expiry-copy > strong { display: block; font-size: 14px; line-height: 1.3; margin-bottom: 5px; }
.expiry-copy p { margin: 0; font-size: 14px; line-height: 1.7; max-width: 590px; }
.expiry-clock { flex: none; min-width: 113px; }
.expiry-clock small { display: block; font-size: 14px; letter-spacing: 1.5px; margin-bottom: 2px; }
.expiry-clock strong { display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.expiry-banner .button { color: #755021; border-color: #d8b981; font-size: 14px; }
.blocked-card { border: 1px solid var(--line); background: #fffdf8; border-radius: 18px; max-width: 760px; margin: 50px auto 60px; padding: 52px 60px; text-align: center; }
.blocked-symbol { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%; background: #f1e4d3; color: #936b47; margin-bottom: 22px; }
.blocked-symbol svg { width: 27px; height: 27px; }
.blocked-card h1 { font-size: 36px; line-height: 1.2; }
.blocked-card > p:not(.eyebrow) { max-width: 470px; margin: 0 auto 26px; color: var(--muted); font-size: 14px; }
.blocked-actions { display: flex; align-items: center; gap: 21px; flex-direction: column; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 25px; align-items: start; }
.community-feed { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.compose-panel { padding: 24px 26px; }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.panel-heading h2 { font-size: 18px; margin: 0; }
.compose-panel .standard-form p { margin-bottom: 13px; }
.compose-panel .form-actions { margin-top: 13px; justify-content: end; }
.community-post { padding: 26px; scroll-margin-top: 25px; }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.community-post h2 { font-size: 20px; margin-bottom: 12px; }
.comments { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 21px; }
.comments > h3 { font-size: 14px; margin-bottom: 18px; letter-spacing: 1.4px; }
.comment { display: flex; align-items: start; gap: 10px; margin-bottom: 20px; }
.comment > div { min-width: 0; flex: 1; }
.comment strong { font-size: 14px; font-weight: 550; }
.comment-date { font-size: 14px; color: #a38e7e; margin-left: 6px; }
.comment .prose { font-size: 14px; margin-top: 4px; }
.comment-form { display: flex; align-items: end; gap: 10px; margin-top: 18px; }
.comment-form textarea { min-height: 60px; font-size: 14px; }
.comment-form .button { flex: none; margin-bottom: 0; }
.note-card { border: 1px solid #dfcbb6; border-radius: 13px; background: #eee0ce; padding: 27px; color: #684931; }
.note-star { display: block; font-size: 43px; line-height: 1; margin-bottom: 20px; color: #a17750; }
.note-card h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.25; letter-spacing: -.7px; }
.note-card p { font-size: 14px; line-height: 1.8; margin-bottom: 0; color: #80654d; }
.aside-link { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 20px 5px; border-bottom: 1px solid var(--line); }
.aside-link svg { width: 18px; height: 18px; color: #926d4e; }
.aside-link > span:nth-child(2) { flex: 1; }
.aside-link > span:last-child { color: var(--accent); font-size: 17px; }
.calendar-list { overflow: hidden; }
.calendar-event { display: flex; align-items: center; gap: 23px; padding: 29px; }
.calendar-event + .calendar-event { border-top: 1px solid var(--line); }
.date-tile-large { width: 70px; height: 81px; border-radius: 11px; }
.date-tile-large strong { font-size: 33px; }
.date-tile-large span { font-size: 14px; }
.calendar-event-content { flex: 1; min-width: 0; }
.calendar-event-content .eyebrow { font-size: 14px; margin-bottom: 7px; }
.calendar-event-content h2 { font-size: 19px; margin-bottom: 7px; }
.calendar-event-content .prose { font-size: 14px; }
.calendar-event > .button { flex: none; }
.calendar-list .empty-state { border: 0; background: var(--surface); border-radius: 0; }
.information-note { margin-top: 24px; display: flex; align-items: start; gap: 10px; color: #857365; padding: 16px 0; }
.information-note > span { border: 1px solid #c8b5a0; border-radius: 50%; width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }
.information-note p { font-size: 14px; margin: 0; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 25px; align-items: start; }
.faq-panel { padding: 28px; }
.faq-panel > h2 { font-size: 21px; margin-bottom: 20px; }
.faq-panel details { padding: 19px 0; border-top: 1px solid var(--line); }
.faq-panel details:last-child { padding-bottom: 0; }
summary { cursor: pointer; }
.faq-panel summary { font-size: 14px; font-weight: 550; padding-right: 20px; }
.faq-panel details p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 14px 0 0; }
.help-contact > .button { margin-top: 24px; font-size: 14px; padding-left: 13px; padding-right: 13px; }
.contact-unset { margin-top: 22px; border-top: 1px solid #ceb498; padding-top: 18px; }
.contact-unset strong { font-size: 14px; }
.contact-unset p { font-size: 14px; margin-top: 7px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 25px; align-items: start; }
.profile-summary { display: flex; align-items: center; gap: 18px; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.profile-summary h2 { font-size: 20px; margin-bottom: 4px; }
.profile-summary p { font-size: 14px; margin-bottom: 0; overflow-wrap: anywhere; }
.account-security { padding: 26px; }
.account-security h2 { font-size: 19px; }
.account-security p { font-size: 14px; }
.account-note { padding: 20px 10px; line-height: 1.8; font-size: 14px; }
.security-link { margin-top: 18px; }
.crm-panel { overflow: hidden; }
.crm-search { display: flex; align-items: center; gap: 10px; padding: 23px 25px 0; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1px solid #ded4c8; padding-left: 13px; border-radius: 7px; max-width: 380px; flex: 1; background: #fffefa; }
.search-field svg { color: #9e8874; width: 17px; height: 17px; }
.search-field input[type='search'] { border: 0; font-size: 14px; padding-left: 0; background: transparent; min-height: 39px; box-shadow: none; }
.search-field:focus-within { outline: 2px solid #dec6af; outline-offset: 2px; }
.search-field input:focus { outline: 0; }
.filter-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding: 0 25px; overflow-x: auto; margin-top: 12px; scrollbar-width: thin; }
.filter-tabs a { padding: 18px 0 15px; color: var(--muted); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.filter-tabs a.is-selected { color: #8c4d2e; border-bottom-color: #a5663e; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; text-align: left; }
.crm-table th { font-weight: 550; font-size: 14px; color: #8d7e70; padding: 16px 15px; border-bottom: 1px solid var(--line); background: #fbf9f4; white-space: nowrap; }
.crm-table td { padding: 18px 15px; border-bottom: 1px solid #eee8df; font-size: 14px; vertical-align: middle; }
.crm-table th:first-child, .crm-table td:first-child { padding-left: 25px; }
.crm-table th:last-child, .crm-table td:last-child { padding-right: 25px; }
.crm-table tbody tr:last-child td { border-bottom: 0; }
.crm-table tbody tr:hover { background: #fdfaf4; }
.student-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.student-cell strong { display: block; font-size: 14px; font-weight: 550; }
.student-cell small { display: block; color: var(--muted); font-size: 14px; }
.student-cell:hover strong { color: var(--accent); }
.table-program { font-size: 14px; min-width: 100px; display: block; }
.table-subtext { display: block; font-size: 14px; color: #9b8877; margin-top: 5px; }
.table-progress { min-width: 72px; max-width: 110px; }
.table-progress strong { font-size: 14px; font-weight: 500; display: block; margin-bottom: 6px; }
.table-progress progress { height: 4px; }
.table-footer { padding: 15px 25px; border-top: 1px solid var(--line); color: #978779; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.student-heading { display: flex; align-items: center; gap: 19px; }
.student-heading h1 { font-size: 33px; margin-bottom: 4px; }
.student-heading .eyebrow { font-size: 14px; }
.crm-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.crm-detail-main { display: flex; flex-direction: column; gap: 23px; min-width: 0; }
.detail-panel { padding: 26px; }
.detail-panel .section-heading { margin-top: 0; }
.detail-panel h2 { font-size: 21px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; gap: 21px 25px; padding: 5px 0 26px; }
.detail-grid dt { font-size: 14px; color: #9a8776; margin-bottom: 4px; }
.detail-grid dd { font-size: 14px; margin: 0; }
.access-actions { padding-top: 23px; border-top: 1px solid var(--line); }
.access-actions h3 { font-size: 14px; margin-bottom: 14px; }
.button-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.button-wrap .button { font-size: 14px; padding: 9px 10px; min-height: 35px; }
.button-wrap small { font-size: 14px; display: block; }
.custom-date-row { display: flex; align-items: end; gap: 12px; padding-top: 19px; }
.custom-date-row label { font-size: 14px; color: #8c7059; }
.custom-date-row input { margin-top: 6px; max-width: 175px; }
.custom-date-row .button { margin-bottom: 1px; }
.access-actions > p { font-size: 14px; margin: 14px 0 0; }
.student-progress-list { margin-top: 20px; }
.student-lesson { border-top: 1px solid var(--line); }
.student-lesson summary { display: flex; align-items: center; gap: 10px; padding: 16px 0; list-style: none; font-size: 14px; }
.student-lesson summary::-webkit-details-marker { display: none; }
.student-lesson summary > span:nth-child(2) { flex: 1; }
.student-lesson summary .small { font-size: 14px; }
.completion-indicator { color: #ad9e8c; border: 1px solid #d8cbbb; border-radius: 50%; width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.completion-indicator.is-complete { color: #5a744d; background: #eff3e8; border-color: #d0dcc3; }
.student-lesson-body { padding: 7px 15px 20px 31px; }
.student-lesson-body h3 { font-size: 14px; }
.student-lesson-body p { font-size: 14px; }
.student-lesson-body .meta { margin-top: 13px; font-size: 14px; }
.audit-list { margin: 22px 0 0; padding: 0; list-style: none; }
.audit-list li { position: relative; display: flex; gap: 13px; padding-bottom: 22px; }
.audit-list li:last-child { padding-bottom: 0; }
.audit-list li + li { padding-top: 4px; }
.audit-dot { width: 7px; height: 7px; border-radius: 50%; background: #bd9471; flex: none; margin-top: 4px; z-index: 1; }
.audit-list li:not(:last-child)::before { content: ''; position: absolute; width: 1px; top: 12px; left: 3px; height: calc(100% - 10px); background: #e7dbcd; }
.audit-list .meta { font-size: 14px; margin-bottom: 5px; }
.audit-list h3 { font-size: 14px; margin-bottom: 6px; font-weight: 550; }
.audit-list p { font-size: 14px; }
.audit-change { font-size: 14px; color: #9d8774; display: flex; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
.audit-change strong { font-weight: 500; color: #76533b; }
.crm-detail-aside h2 { font-size: 19px; }
.crm-detail-aside .standard-form { margin-top: 21px; }
.crm-detail-aside > .panel + .panel { margin-top: 20px; }
.public-shell { min-height: 100vh; max-width: 1350px; margin: 0 auto; display: flex; flex-direction: column; }
.public-brand { margin: 40px 60px 0; }
.public-brand .brand-mark { background: #e4cbb2; }
.public-brand .brand-name { font-size: 15px; }
.public-shell .content { width: 100%; flex: 1; padding: 60px; }
.public-shell .page-footer { margin: 0 60px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 80px; align-items: center; max-width: 1030px; margin: 0 auto 20px; }
.auth-intro { padding-top: 5px; }
.auth-intro .eyebrow { font-size: 14px; letter-spacing: 1.9px; color: #98775b; margin-bottom: 23px; }
.auth-intro h1 { font-size: 53px; line-height: 1.08; letter-spacing: -2px; margin-bottom: 23px; }
.auth-intro h1 em { font-weight: 400; color: #a06c49; }
.auth-intro > p:not(.eyebrow) { font-size: 14px; color: #8c7968; line-height: 1.9; }
.auth-spark { color: #bea07f; font-size: 86px; line-height: 1; display: inline-block; margin-top: 18px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 37px; box-shadow: 0 8px 35px rgb(66 42 22 / 3%); }
.auth-card h2, .auth-card h1 { font-family: Georgia, serif; font-size: 32px; font-weight: 400; letter-spacing: -1px; margin-bottom: 12px; }
.auth-card .eyebrow { font-size: 14px; margin-bottom: 15px; }
.auth-card > .muted { font-size: 14px; line-height: 1.8; }
.auth-form { margin-top: 27px; }
.auth-form p { margin-bottom: 17px; }
.auth-form label { font-size: 14px; }
.auth-help { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 21px; }
.auth-help strong { font-size: 14px; font-weight: 550; }
.auth-help p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 7px 0 0; }
.auth-help a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.reset-card, .mfa-card { max-width: 530px; margin: 22px auto 35px; }
.reset-card > .button { margin-top: 15px; }
.result-card { max-width: 680px; margin: 35px auto; padding: 42px; }
.result-card h1 { font-size: 35px; }
.result-card > p { font-size: 14px; }
.result-symbol { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: #eaf0e3; color: #6b8153; font-size: 22px; margin-bottom: 24px; }
.invite-url, .secret-key { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; color: #765537; background: #f9f5ec; overflow-wrap: anywhere; }
.setup-steps { margin: 22px 0; padding-left: 20px; color: #8c7663; font-size: 14px; line-height: 1.8; }
.setup-steps li + li { margin-top: 7px; }
.mfa-card .secret-key { margin-bottom: 13px; font-size: 14px; letter-spacing: .7px; }
.mfa-card .standard-form { margin-top: 25px; }
.grant-preview { border-left: 2px solid #b6875f; padding: 12px 15px; background: #f7eddf; font-size: 14px; border-radius: 0 6px 6px 0; margin-bottom: 20px; }
.staff-program-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0 0; }
.staff-tools { margin-top: 23px; padding: 23px 26px; }
.staff-tools h2 { font-size: 17px; margin-bottom: 7px; }
.staff-tools p { font-size: 14px; margin-bottom: 0; }
@media (min-width: 1550px) {
  .content { padding-left: 55px; padding-right: 55px; }
  .welcome-hero { min-height: 340px; padding-top: 44px; }
  .hero-art { width: 42%; }
  .hero-spark { right: 135px; top: 60px; }
  .orbit { right: 88px; width: 300px; height: 400px; }
  .orbit-two { right: 25px; }
  .orbit-three { right: 149px; }
  .hero-art-caption { right: 76px; }
  .module-cover { height: 140px; }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .brand { padding-left: 6px; gap: 9px; }
  .brand-name { font-size: 14px; }
  .brand-name span { font-size: 18px; }
  .topbar { padding: 0 30px; }
  .content { padding: 29px 30px; }
  .page-footer { margin-left: 30px; margin-right: 30px; }
  .welcome-hero { padding-left: 30px; padding-right: 30px; }
  .hero-spark { font-size: 125px; right: 40px; }
  .hero-art-caption { right: 28px; }
  .orbit { right: -35px; }
  .orbit-two { right: -94px; }
  .orbit-three { right: 20px; }
  .lesson-workspace { grid-template-columns: minmax(0, 1fr) 230px; gap: 19px; }
  .lesson-content { padding: 23px; }
  .module-grid { gap: 15px; }
  .module-body { padding-left: 16px; padding-right: 16px; }
  .module-body h2 { font-size: 16px; }
  .module-decoration { right: -29px; }
  .community-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 20px; }
  .note-card { padding: 23px; }
  .help-layout, .profile-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .crm-detail-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 20px; }
  .detail-panel { padding: 22px; }
  .expiry-banner { flex-wrap: wrap; }
  .expiry-copy { flex-basis: calc(100% - 50px); }
  .expiry-clock { margin-left: 37px; }
  .expiry-banner > .button { margin-left: auto; }
  .calendar-event { flex-wrap: wrap; }
  .calendar-event > .button { margin-left: 93px; }
  .auth-layout { gap: 50px; grid-template-columns: minmax(0, 1fr) 390px; }
  .auth-intro h1 { font-size: 45px; }
}
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 196px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; font-size: 24px; }
  .brand-name { font-size: 14px; }
  .brand-name span { font-size: 17px; }
  .sidebar-caption { font-size: 14px; letter-spacing: 1.2px; padding-left: 10px; }
  .nav-link { font-size: 14px; padding-left: 12px; gap: 10px; }
  .content { padding: 25px; }
  .topbar { padding: 0 25px; height: 68px; }
  .topbar-label { font-size: 14px; letter-spacing: 1px; }
  .topbar-account { font-size: 14px; }
  .page-heading { gap: 20px; }
  .hero-art { width: 30%; }
  .hero-spark { right: 1px; }
  .hero-art-caption { right: 14px; font-size: 14px; }
  .welcome-hero { min-height: 310px; padding: 30px; }
  .hero-copy { max-width: 80%; }
  .hero-copy h1 { font-size: 39px; }
  .dashboard-lower { gap: 17px; }
  .dashboard-lower .section-heading h2 { font-size: 17px; }
  .program-grid { gap: 16px; }
  .program-card-body { padding: 18px; }
  .program-card h3 { font-size: 18px; }
  .program-cover { padding: 19px; min-height: 148px; }
  .cover-caption { font-size: 18px; }
  .card-bottom { flex-wrap: wrap; gap: 8px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-workspace { grid-template-columns: minmax(0, 1fr); }
  .lesson-outline { position: static; order: 2; }
  .lesson-outline nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outline-header { padding: 20px; }
  .outline-header h2 { margin-bottom: 8px; }
  .outline-note { display: none; }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
  .community-aside { display: none; }
  .help-layout, .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-layout > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .help-contact { max-width: none; }
  .help-contact h2 br { display: none; }
  .help-contact .note-star { float: right; margin-left: 20px; }
  .crm-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .crm-detail-aside { order: 2; }
  .public-shell .content { padding: 45px; }
  .public-brand { margin: 35px 45px 0; }
  .auth-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) 360px; }
  .auth-card { padding: 30px; }
  .auth-intro h1 { font-size: 39px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { height: auto; min-height: 0; position: static; padding: 16px 20px 0; }
  .brand { margin: 0 0 18px; padding: 0; gap: 9px; }
  .brand-mark { width: 32px; height: 32px; font-size: 22px; }
  .brand-name { font-size: 14px; }
  .brand-name span { font-size: 16px; }
  .sidebar-caption, .sidebar-bottom, .nav-divider { display: none; }
  .main-nav { flex-direction: row; gap: 7px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 12px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: none; padding: 10px 12px; border-radius: 6px; font-size: 14px; gap: 7px; }
  .nav-link svg { width: 15px; height: 15px; }
  .topbar { height: 51px; padding: 0 20px; }
  .topbar-label { font-size: 14px; letter-spacing: 1px; }
  .topbar-account { font-size: 14px; gap: 7px; }
  .topbar-account .avatar { width: 25px; height: 25px; font-size: 14px; }
  .online-dot { display: none; }
  .content { padding: 21px 20px; }
  .page-footer { margin: 25px 20px 0; padding-top: 17px; padding-bottom: 20px; font-size: 14px; }
  .welcome-hero { border-radius: 12px; padding: 27px 25px; min-height: 286px; }
  .hero-copy .eyebrow { font-size: 14px; letter-spacing: 1.4px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .hero-copy .button { font-size: 14px; min-height: 38px; }
  .hero-art { width: 30%; opacity: .65; }
  .hero-art-caption { display: none; }
  .hero-spark { font-size: 94px; top: 87px; right: 13px; }
  .orbit { width: 170px; height: 310px; top: 5px; right: -104px; }
  .orbit-two { right: -63px; top: -22px; }
  .orbit-three { right: -149px; }
  .section-heading { margin-top: 26px; gap: 12px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading .eyebrow { font-size: 14px; }
  .section-heading > .text-link { font-size: 14px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-cover { min-height: 150px; }
  .program-card-body { padding: 21px; }
  .program-card h3 { font-size: 22px; }
  .card-bottom { flex-wrap: nowrap; }
  .dashboard-lower { grid-template-columns: 1fr; gap: 0; }
  .dashboard-lower .section-heading h2 { font-size: 20px; }
  .event-list, .news-list { min-height: auto; }
  .quiet-empty { padding: 28px 22px; }
  .page-heading { margin-top: 3px; margin-bottom: 25px; align-items: start; }
  .page-heading h1 { font-size: 32px; }
  .page-heading .eyebrow { font-size: 14px; }
  .page-intro { font-size: 14px; }
  .page-symbol { font-size: 55px; padding-right: 0; }
  .progress-summary { min-width: 118px; padding: 16px 12px; }
  .progress-summary > strong { font-size: 29px; }
  .progress-summary > span { font-size: 14px; }
  .program-toolbar { gap: 10px; flex-wrap: wrap; margin-bottom: 23px; }
  .program-toolbar > .small { font-size: 14px; }
  .program-toolbar > .text-link { margin-left: 0; flex-basis: 100%; font-size: 14px; }
  .module-grid { gap: 14px; }
  .module-cover { height: 107px; padding: 19px; }
  .module-number { font-size: 37px; }
  .module-caption { font-size: 14px; }
  .module-decoration { font-size: 135px; }
  .module-body { padding: 17px 15px 6px; }
  .module-body h2 { font-size: 15px; }
  .lesson-list-item { font-size: 14px; }
  .lesson-icon { width: 19px; height: 19px; }
  .lesson-content { padding: 24px 21px; border-radius: 12px; }
  .lesson-content h2 { font-size: 23px; }
  .lesson-heading { flex-direction: column; gap: 9px; }
  .lesson-heading h1 { font-size: 32px; }
  .lesson-heading .status-pill { margin-top: -6px; }
  .breadcrumbs { font-size: 14px; margin-bottom: 19px; }
  .lesson-pagination { gap: 20px; padding-top: 4px; }
  .lesson-pagination a > strong { font-size: 14px; }
  .lesson-pagination a > span { font-size: 14px; }
  .expiry-banner { padding: 16px; gap: 11px; }
  .expiry-copy { flex-basis: calc(100% - 42px); }
  .expiry-copy > strong { font-size: 14px; }
  .expiry-copy p { font-size: 14px; }
  .expiry-clock { margin-left: 34px; }
  .expiry-banner > .button { font-size: 14px; padding: 9px 10px; min-height: 33px; }
  .blocked-card { padding: 36px 25px; margin: 25px auto; }
  .blocked-card h1 { font-size: 31px; }
  .blocked-card > p:not(.eyebrow) { font-size: 14px; }
  .blocked-card .button { font-size: 14px; padding-left: 15px; padding-right: 15px; }
  .compose-panel, .community-post { padding: 23px; }
  .community-post h2 { font-size: 19px; }
  .community-layout { gap: 0; }
  .comment-form { flex-direction: column; align-items: end; }
  .comment-form textarea { width: 100%; }
  .calendar-event { gap: 17px; padding: 23px; }
  .date-tile-large { width: 59px; height: 72px; }
  .calendar-event > .button { margin-left: 76px; }
  .calendar-event-content h2 { font-size: 18px; }
  .calendar-event-content .eyebrow { font-size: 14px; }
  .calendar-event > .small { font-size: 14px; }
  .faq-panel, .form-panel, .account-security { padding: 24px; }
  .profile-layout > aside { display: block; }
  .profile-summary h2 { font-size: 19px; }
  .profile-summary .avatar-large { width: 53px; height: 53px; font-size: 25px; }
  .profile-summary { gap: 14px; }
  .crm-search { padding: 20px 20px 0; }
  .filter-tabs { padding-left: 20px; padding-right: 20px; gap: 22px; }
  .table-footer { padding: 15px 20px; font-size: 14px; }
  .page-heading:has(> .button) { flex-direction: column; gap: 20px; }
  .student-heading h1 { font-size: 29px; }
  .student-heading .avatar-large { width: 53px; height: 53px; font-size: 25px; }
  .student-heading { gap: 14px; }
  .page-heading:has(.student-heading) { flex-direction: column; gap: 14px; }
  .detail-panel { padding: 23px; }
  .detail-grid { gap: 19px; }
  .detail-grid dd { font-size: 14px; }
  .public-brand { margin: 28px 26px 0; gap: 10px; }
  .public-brand .brand-mark { width: 37px; height: 37px; font-size: 25px; }
  .public-brand .brand-name { font-size: 14px; }
  .public-brand .brand-name span { font-size: 17px; }
  .public-shell .content { padding: 35px 25px; }
  .public-shell .page-footer { margin-left: 25px; margin-right: 25px; }
  .auth-layout { display: flex; flex-direction: column; gap: 30px; align-items: stretch; margin-bottom: 0; }
  .auth-intro { position: relative; }
  .auth-intro h1 { font-size: 35px; line-height: 1.08; letter-spacing: -1.4px; margin-bottom: 14px; }
  .auth-intro h1 > br:first-child { display: none; }
  .auth-intro > p:not(.eyebrow) { font-size: 14px; margin-bottom: 0; }
  .auth-intro .eyebrow { font-size: 14px; letter-spacing: 1.4px; margin-bottom: 14px; }
  .auth-spark { position: absolute; right: 2px; top: 40px; font-size: 65px; opacity: .6; }
  .auth-card { padding: 29px 25px; border-radius: 13px; }
  .auth-card h2, .auth-card h1 { font-size: 31px; }
  .auth-card .eyebrow { font-size: 14px; }
  .auth-help { margin-top: 22px; padding-top: 20px; }
  .reset-card, .mfa-card { margin-top: 10px; }
  .result-card { margin: 15px auto; padding: 30px 25px; }
  .result-card h1 { font-size: 30px; }
  .form-actions .button { font-size: 14px; }
}
@media (max-width: 420px) {
  .content { padding: 19px 16px; }
  .topbar { padding: 0 16px; }
  .topbar-label { font-size: 14px; }
  .topbar-account > span:nth-child(2) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .welcome-hero { padding: 25px 22px; }
  .hero-copy h1 { font-size: 35px; }
  .hero-copy { max-width: 95%; }
  .hero-art { width: 24%; opacity: .4; }
  .hero-spark { right: -29px; top: 83px; }
  .hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .page-heading h1 { font-size: 29px; }
  .page-symbol { display: none; }
  .progress-summary { min-width: 103px; padding: 13px 8px; }
  .progress-summary > span { font-size: 14px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-cover { height: 112px; }
  .module-decoration { right: 11px; }
  .module-body { padding-left: 20px; padding-right: 20px; }
  .module-body h2 { font-size: 20px; min-height: 0; margin-bottom: 16px; }
  .lesson-list-item { font-size: 14px; padding: 15px 0; }
  .module-empty { font-size: 14px; }
  .lesson-outline nav { grid-template-columns: 1fr; }
  .expiry-clock { margin-left: 0; min-width: 105px; }
  .expiry-clock strong { font-size: 14px; }
  .expiry-banner > .button { gap: 6px; }
  .calendar-event { padding: 20px; gap: 14px; }
  .calendar-event > .button { margin-left: 0; }
  .date-tile-large { width: 53px; height: 66px; }
  .date-tile-large strong { font-size: 28px; }
  .calendar-event-content h2 { font-size: 17px; }
  .calendar-event-content .eyebrow { font-size: 14px; }
  .page-footer > span:nth-child(2) { display: none; }
  .section-heading > .text-link { font-size: 14px; gap: 4px; }
  .detail-grid { grid-template-columns: 1fr; gap: 15px; }
  .custom-date-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .custom-date-row input { max-width: none; }
  .table-footer > span:last-child { display: none; }
  .auth-spark { font-size: 48px; top: 39px; right: -4px; opacity: .4; }
  .auth-intro h1 { font-size: 31px; }
  .student-heading h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .page-footer, .button, .form-actions, .expiry-banner, .video-frame { display: none !important; }
  .app-shell, .lesson-workspace, .crm-detail-layout { display: block; }
  .content { padding: 0; }
  body { background: white; color: black; }
  .panel, .program-card { box-shadow: none; break-inside: avoid; }
}

.profile-logout { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Practical mentoring controls and comfortable reading. */
.button,.icon-button,.logout-button {min-height:44px;}
.nav-link{font-size:15px;padding:11px 13px;}
.sidebar{overflow-y:auto;min-height:0;}
.sidebar-note{display:none;}
.prose {font-size:16px;line-height:1.8;overflow-wrap:anywhere;}
.prose a{color:var(--accent-dark);text-decoration:underline;text-underline-offset:3px;}
.prose h2{font-size:24px;}.prose h3{font-size:20px;}
.prose ul,.prose ol{padding-left:1.5em;}
.page-heading h1{font-size:clamp(28px,3.5vw,40px);}
.dashboard-heading{padding:10px 0;}
.staff-quick-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px;}
.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.feedback-card{background:var(--sage);border-left:3px solid var(--green);padding:18px;margin:18px 0;border-radius:8px;}
.feedback-card h3{font-size:18px;}
.feedback-form{margin-top:22px;}
.category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;}
.category-tabs a{padding:9px 15px;border:1px solid var(--line);border-radius:22px;background:var(--surface);font-size:14px;min-height:44px;}
.category-tabs a[aria-current]{background:var(--accent);color:white;border-color:var(--accent);}
.calendar-event{flex-wrap:wrap;}
.event-actions{flex-basis:100%;display:flex;gap:18px;align-items:center;flex-wrap:wrap;}
.search-form{display:flex;align-items:end;gap:12px;margin:20px 0;flex-wrap:wrap;}
.search-form input{flex:1;min-width:180px;}
.search-result{padding:18px 0;border-bottom:1px solid var(--line);}
@media(max-width:800px){.task-grid{grid-template-columns:1fr;}.sidebar{overflow-y:visible}.sidebar-profile strong{font-size:14px}.content{padding:22px 18px}.button-wrap{flex-wrap:wrap}.calendar-event-content{min-width:0;width:100%}.page-heading{flex-wrap:wrap;gap:16px}.student-heading{min-width:0}.student-heading h1{overflow-wrap:anywhere}.category-tabs{gap:6px}.category-tabs a{padding:8px 11px}.topbar-account{font-size:14px}}

/* Explicit mobile menu keeps every destination and logout easy to find. */
.mobile-menu-toggle{display:none}
@media(max-width:760px){
 .sidebar{position:static;padding:15px 18px;display:block}
 .brand{margin:0;display:inline-flex}
 .mobile-menu-toggle{display:block;float:right;border:1px solid #76604f;border-radius:8px;background:transparent;color:#fffaf3;padding:10px 14px;min-height:44px;font-size:15px}
 .main-nav{display:none;margin:16px 0 0;padding:0;overflow:visible;flex-direction:column}
 .menu-open .main-nav{display:flex}
 .menu-open .sidebar-bottom{display:block;margin-top:16px}
 .menu-open .sidebar-note{display:none}
 .menu-open .logout-form{padding:0}
 .menu-open .logout-button{padding:10px 14px}
 .topbar-label{display:none}
 .topbar{justify-content:flex-end}
 .nav-link{white-space:normal}
}

/* Authentication choices and locally rendered QR codes. */
.auth-provider-options { display:grid; gap:10px; margin:20px 0; }
.account-provider-settings { margin-top:30px; padding-top:25px; border-top:1px solid var(--line); }
.auth-provider-unavailable { display:grid; gap:5px; border:1px solid var(--line); border-radius:10px; padding:13px 15px; background:var(--surface-soft,#f5f2ed); }
.auth-provider-unavailable span { color:var(--muted); font-size:13px; line-height:1.55; }
.auth-method-divider { display:flex; align-items:center; gap:14px; margin:24px 0 18px; font-size:14px; font-weight:600; }
.auth-method-divider::before,.auth-method-divider::after { content:""; height:1px; flex:1; background:var(--line); }
.mfa-qr { display:block; width:230px; max-width:100%; height:auto; margin:18px auto; background:#fff; }
.mfa-manual { margin:18px 0; }
.mfa-manual summary { cursor:pointer; font-size:14px; padding:10px 0; }
.mfa-manual .key-label { display:block; margin-top:12px; }
.mfa-regenerate { margin:16px 0; }
.mfa-regenerate .small { margin:8px 0 0; }
