/* Focused learning workspace. Public landing, enrollment and auth keep INB's campaign theme. */
body.lms-mode {
  color-scheme: light;
  --ink: #24232b; --muted: #686a75; --paper: #f5f5f8; --white: #fff;
  --green: #991d38; --deep: #261c26; --lime: #f6e7cc; --gold: #8a622d;
  --line: #e3e4eb; --danger: #a3263f; --radius: 14px;
  --surface: #fff; --surface-raised: #f8f8fa;
  --shadow: 0 5px 22px rgba(31, 25, 43, .045); --lms-sidebar-width: 228px;
  background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.6;
}
body.lms-mode > .site-header, body.lms-mode > footer { display: none; }
.lms-sidebar, .lms-topbar { display: none; }
body.lms-mode #app { margin-left: var(--lms-sidebar-width); min-height: calc(100dvh - 76px); }
body.lms-mode #network-status:not([hidden]) { margin-left: var(--lms-sidebar-width); }
body.lms-mode .lms-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column;
  width: var(--lms-sidebar-width); padding: 28px 16px 20px; overflow-y: auto;
  background: #241c27; border-right: 1px solid #382a38; color: #eee7ee;
  scrollbar-width: thin; scrollbar-color: #624c65 transparent;
}
.lms-sidebar a { text-decoration: none; }
.lms-sidebar .lms-brand, .lms-sidebar > a:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 14px 26px; }
.lms-sidebar img { display: block; width: 145px; height: auto; max-height: 60px; object-fit: contain; }
.lms-sidebar .lms-brand span, .lms-sidebar > a:first-child small { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c4b6c6; }
.lms-sidebar-section { margin: 20px 14px 10px; color: #bcaebf; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lms-nav { display: grid; gap: 5px; }
.lms-nav-link { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 11px 14px; border-radius: 8px; color: #cfc4d3; font-size: 12px; font-weight: 650; line-height: 1.4; }
.lms-nav-link .icon { width: 19px; height: 19px; flex: none; opacity: .85; }
.lms-nav-link:hover { color: white; background: #352836; }
.lms-nav-link.active { color: white; background: #8d2542; box-shadow: inset 3px 0 #e1b67b; }
.lms-sidebar-account { margin-top: auto; padding: 24px 10px 0; border-top: 1px solid #493747; display: flex; align-items: center; gap: 11px; }
.lms-sidebar-account strong { display: block; font-size: 12px; color: #f7eef7; overflow-wrap: anywhere; }
.lms-sidebar-account small { display: block; font-size: 10px; color: #bfb0c3; }
.lms-sidebar-account > div { min-width: 0; flex: 1; }
body.lms-mode .lms-sidebar-account .text-button { color: #d8becb; font-size: 10px; }
.lms-sidebar-help { margin-top: auto; padding: 28px 12px 22px; }
.lms-sidebar-help .lms-sidebar-section { display: block; margin: 0 0 8px; }
.lms-sidebar-help > a { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #e4d5e3; }
.lms-sidebar-help .icon { width: 14px; height: 14px; }
.lms-sidebar-help + .lms-sidebar-account { margin-top: 0; }
.lms-nav-indicator { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #f3d4ae; }
.lms-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f2e4e8; color: #86233e; font-size: 12px; font-weight: 800; }
body.lms-mode .lms-topbar { position: sticky; top: 0; z-index: 30; margin-left: var(--lms-sidebar-width); display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 76px; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.lms-topbar-copy { display: grid; gap: 1px; min-width: 0; }
.lms-breadcrumb { color: var(--muted); font-size: 10px; font-weight: 650; }
.lms-topbar-copy > strong { font-size: 14px; font-weight: 800; }
.lms-topbar-actions { display: flex; align-items: center; gap: 14px; }
.lms-topbar-actions > a:not(.button) { color: var(--muted); font-size: 12px; text-decoration: none; }
.lms-topbar-actions > a.lms-avatar { color: #86233e; }
body.lms-mode .page, body.lms-mode .section { max-width: 1440px; padding: 30px 32px 48px; }
body.lms-mode h1, body.lms-mode h2, body.lms-mode h3 { color: var(--ink); font-family: Manrope, sans-serif; }
body.lms-mode .page-title, body.lms-mode .preview-main h1 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; margin: 6px 0 12px; }
body.lms-mode h2, body.lms-mode .section-head h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.025em; font-weight: 800; }
body.lms-mode .eyebrow, .lms-section-label { color: #8e4a5c; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body.lms-mode .muted, body.lms-mode .lead { color: var(--muted); }
body.lms-mode .button { min-height: 40px; padding: 10px 16px; border: 1px solid #991d38; border-radius: 8px; background: #991d38; box-shadow: none; font-size: 12px; font-weight: 750; color: #fff; line-height: 1.4; }
body.lms-mode .button:hover { background: #7f1930; border-color: #7f1930; box-shadow: none; transform: none; }
body.lms-mode .button.secondary { background: #fff; color: #40414e; border-color: #d9dae2; }
body.lms-mode .button.secondary:hover { background: #f8f6f8; border-color: #b899a4; color: #871b36; }
body.lms-mode .button.small { min-height: 34px; font-size: 11px; padding: 7px 11px; }
body.lms-mode .button.yellow, body.lms-mode .button.light { background: #f2e5ce; border-color: #e5d2b5; color: #583f24; }
body.lms-mode .button.danger { background: #fff0f2; color: #9b2c42; border-color: #eac5ce; }
body.lms-mode .button:disabled { background: #ececf1; border-color: #dedee5; color: #747581; cursor: not-allowed; }
body.lms-mode .text-button, body.lms-mode .form-note a, body.lms-mode .back-link { color: #8e2640; }
body.lms-mode .back-link { font-size: 11px; margin-bottom: 15px; }
body.lms-mode .text-button:hover { color: #66172a; }
body.lms-mode .panel, body.lms-mode .stat, body.lms-mode .count, body.lms-mode .auth-panel,
body.lms-mode .course-card, body.lms-mode .table-wrap, body.lms-mode .syllabus details,
body.lms-mode .enrollment-row, body.lms-mode .quiz-question { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
body.lms-mode .panel { padding: 23px; margin: 0 0 22px; }
body.lms-mode .panel h2 { margin: 0 0 16px; font-size: 16px; }
body.lms-mode .panel p { font-size: 12px; }
body.lms-mode .dashboard-head, body.lms-mode .lms-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
body.lms-mode .dashboard-head p { margin: 4px 0 0; font-size: 13px; }
body.lms-mode .lms-welcome { padding: 25px 27px; border: 1px solid #eadde2; border-radius: 14px; background: linear-gradient(110deg, #fff, #f7edf0); margin-bottom: 24px; }
body.lms-mode .lms-welcome .page-title { font-size: 28px; }
body.lms-mode .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 28px; }
body.lms-mode .stat { padding: 18px 20px; color: var(--muted); font-size: 11px; }
body.lms-mode .stat b, body.lms-mode .count b { color: var(--ink); font-size: 26px; font-weight: 800; }
.lms-stat-icon { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #f6edf0; color: #9d3b55; margin-bottom: 9px; }
.lms-stat-icon .icon { width: 17px; height: 17px; }
body.lms-mode .dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 24px; align-items: start; }
body.lms-mode .section-head { align-items: center; gap: 16px; margin-bottom: 17px; }
body.lms-mode .section-head h2 { margin: 0; }
body.lms-mode .course-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 18px; }
body.lms-mode .dashboard-layout .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.lms-mode .course-card:hover { transform: none; border-color: #c9b6c1; box-shadow: 0 6px 18px #2716250b; }
body.lms-mode .course-art { height: 134px; min-height: 134px; padding: 20px; background: linear-gradient(125deg, #6a2038, #321f35); color: #ffedda; }
body.lms-mode .course-art.alt { background: linear-gradient(125deg, #364054, #242738); }
body.lms-mode .course-art.gold { background: #e9ddc7; color: #614b2e; }
body.lms-mode .course-art strong { font-size: 21px; line-height: 1.2; }
body.lms-mode .course-art:after { content: ''; width: 130px; height: 130px; border: 22px solid #ffffff15; border-radius: 50%; right: -28px; top: -24px; opacity: 1; }
body.lms-mode .course-body { padding: 20px; }
body.lms-mode .course-body .eyebrow { color: #8a5364; font-size: 9px; margin-bottom: 9px; }
body.lms-mode .course-body h3 { font-size: 16px; line-height: 1.45; }
body.lms-mode .course-body h3 a, body.lms-mode .course-art { text-decoration: none; }
.lms-course-art-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #ffffff15; position: absolute; top: 18px; left: 20px; }
.lms-course-art-icon .icon { width: 20px; height: 20px; }
.lms-course-badge { position: absolute; right: 15px; top: 17px; border-radius: 5px; padding: 4px 8px; background: #ffffff24; font-size: 9px; font-weight: 700; color: #fff; letter-spacing: 0; }
.lms-course-access { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #6f7b71; }
.lms-course-access .icon { width: 13px; height: 13px; }
body.lms-mode .course-body p { font-size: 12px; margin: 7px 0 16px; line-height: 1.7; color: var(--muted); }
body.lms-mode .course-body .tier-label { color: #8a2640; font-size: 10px; background: #faf0f3; display: block; padding: 5px 8px; border-radius: 5px; margin-bottom: 8px; align-self: flex-start; }
body.lms-mode .course-meta { padding-top: 14px; }
body.lms-mode .course-meta .price { font-size: 13px; }
.lms-course-progress { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 7px 0 13px; font-size: 10px; color: #7d6675; }
.lms-course-progress .icon { width: 14px; height: 14px; }
.lms-course-progress .progress-label { margin: 0 0 4px; font-size: 10px; }
body.lms-mode progress { height: 6px; accent-color: #a3324d; }
body.lms-mode progress::-webkit-progress-bar { background: #e9e9ee; border-radius: 8px; }
body.lms-mode progress::-webkit-progress-value { background: #a3324d; border-radius: 8px; }
body.lms-mode progress::-moz-progress-bar { background: #a3324d; }
body.lms-mode .empty { background: #fff; border: 1px dashed #d2cbd7; border-radius: 12px; padding: 38px 24px; }
body.lms-mode .empty h2 { font-size: 19px; margin: 0 0 10px; }
body.lms-mode .empty p { font-size: 12px; max-width: 430px; }
body.lms-mode .empty-icon { background: #f7edf1; color: #9f3650; border: 0; }
body.lms-mode .announcement h3 { font-size: 13px; }
body.lms-mode .announcement p { font-size: 12px; color: var(--muted); }
body.lms-mode .announcement small { font-size: 10px; }
body.lms-mode .enrollment-row { padding: 16px; align-items: flex-start; }
body.lms-mode .enrollment-row p { color: var(--muted); }
body.lms-mode .status, body.lms-mode .tag { background: #efedf3; color: #67616f; border-radius: 5px; font-size: 9px; letter-spacing: .04em; padding: 5px 8px; }
body.lms-mode .status.published, body.lms-mode .status.confirmed, body.lms-mode .status.active { background: #e9f4ed; color: #2d7049; }
body.lms-mode .status.pending, body.lms-mode .tag.pinned { background: #fff4d9; color: #86641f; }
body.lms-mode .status.rejected, body.lms-mode .status.revoked, body.lms-mode .status.archived { background: #fbeaec; color: #a03a4b; }
body.lms-mode .data-table { color: var(--ink); font-size: 12px; }
body.lms-mode .data-table th { background: #f8f8fb; color: #73717f; font-size: 9px; }
body.lms-mode .data-table th, body.lms-mode .data-table td { padding: 15px 18px; border-color: var(--line); }
body.lms-mode .data-table tbody tr:hover { background: #faf9fc; }
body.lms-mode .data-table td a:not(.button) { color: #8e2640; }
body.lms-mode label { color: #41414e; font-size: 12px; }
body.lms-mode input, body.lms-mode select, body.lms-mode textarea { background: #fff; color: #2b2a34; border-color: #d5d7e0; border-radius: 7px; min-height: 43px; font-size: 13px; }
body.lms-mode input::placeholder, body.lms-mode textarea::placeholder { color: #9695a1; }
body.lms-mode input:focus, body.lms-mode select:focus, body.lms-mode textarea:focus { border-color: #ac6177; box-shadow: 0 0 0 3px #a83a5610; }
body.lms-mode select option, body.lms-mode select optgroup { background: #fff; color: #2b2a34; }
body.lms-mode input:disabled, body.lms-mode textarea:disabled, body.lms-mode select:disabled { color: #747580; background: #f0f0f5; }
body.lms-mode input:-webkit-autofill { -webkit-text-fill-color: #2b2a34; box-shadow: 0 0 0 1000px #fff inset; caret-color: #2b2a34; }
body.lms-mode input[type=file]::file-selector-button { color: #7e2940; background: #faf1f4; border-color: #dcc5ce; }
body.lms-mode .check input, body.lms-mode .option input { min-height: 17px; accent-color: #991d38; }
body.lms-mode .error-box { background: #fff0f2; color: #963148; border-color: #efcbd4; }
body.lms-mode .success-box { background: #edf7f1; color: #2e6849; border-color: #c8e4d3; }
body.lms-mode .info-box { background: #faf5e9; color: #6e592c; border-color: #eaddbd; }
body.lms-mode .form-note { font-size: 11px; color: var(--muted); }
body.lms-mode dialog { background: #fff; color: var(--ink); border: 1px solid #e1dee6; border-radius: 14px; box-shadow: 0 25px 90px #20152340; }
body.lms-mode dialog::backdrop { background: #211c2c80; backdrop-filter: blur(3px); }
body.lms-mode .dialog-close { background: #f2eff4; color: #61586a; }
body.lms-mode #dialog-body h2 { font-size: 23px; }
body.lms-mode .toast { background: #2a2230; color: #fff; border: 1px solid #6a4a64; border-radius: 9px; }
body.lms-mode :is(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid #ad677b; outline-offset: 3px; }
/* Course player: outline and learning canvas remain visually distinct. */
body.lms-mode .learn-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100dvh - 76px); align-items: start; }
body.lms-mode .learn-nav { position: sticky; top: 76px; height: calc(100dvh - 76px); max-height: none; padding: 22px 14px; overflow-y: auto; background: #fff; color: var(--ink); border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #d7cedd transparent; }
body.lms-mode .learn-nav .back-link { color: #707080; padding-left: 10px; font-size: 11px; }
body.lms-mode .learn-course-heading > .back-link { display: block; padding-left: 0; margin-bottom: 13px; }
.learn-course-heading { padding: 0 10px 17px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
body.lms-mode .learn-nav h2 { font-size: 15px; line-height: 1.5; margin: 0 0 10px; font-weight: 800; letter-spacing: -.02em; }
body.lms-mode .learn-nav small { color: var(--muted); font-size: 10px; }
.learn-outline > summary { font-size: 12px; font-weight: 800; cursor: pointer; padding: 8px 10px; }
.learn-outline > summary > span { float: right; color: var(--muted); font-size: 9px; font-weight: 500; margin-top: 2px; }
.learn-progress-copy { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.learn-progress-copy > strong { font-size: 11px; color: #8e2640; }
.learn-outline-empty { font-size: 11px; padding: 0 10px; color: var(--muted); }
.learn-subject-title { display: flex; align-items: flex-start; gap: 8px; list-style: none; }
.learn-subject-title::after { content: '+'; margin-left: auto; color: #a198a9; }
.learn-subject[open] > .learn-subject-title::after { content: '−'; }
.learn-subject-title small { display: block; margin-top: 3px; }
.learn-subject { border-bottom: 1px solid #eeedf2; padding-bottom: 10px; margin-bottom: 10px; }
.learn-subject > summary, .learn-subject-title { font-size: 11px; font-weight: 750; padding: 12px 10px; cursor: pointer; color: #555461; }
.learn-subject-title strong { color: #41404d; font-size: 12px; }
body.lms-mode .learn-nav .group { color: #8a8291; font-size: 9px; padding: 0 10px; margin: 18px 0 8px; }
body.lms-mode .learn-nav .group strong { color: #44404e; }
body.lms-mode .learn-nav button { display: flex; width: 100%; align-items: flex-start; padding: 11px 10px; gap: 9px; border: 0; border-radius: 7px; color: #64616e; background: transparent; text-align: left; font-size: 11px; margin: 3px 0; line-height: 1.5; }
body.lms-mode .learn-nav button .icon { width: 17px; height: 17px; margin-top: 2px; flex: none; }
body.lms-mode .learn-nav button:hover { background: #f5f3f7; color: #5f273d; }
body.lms-mode .learn-nav button.active { background: #f8edf1; color: #8e2540; box-shadow: inset 3px 0 #a93653; }
.learn-activity-copy { flex: 1; min-width: 0; }
.learn-activity-copy strong { display: block; font-weight: 650; overflow-wrap: anywhere; }
.learn-activity-copy small { display: block; margin-top: 3px; }
.learn-step { font-size: 10px; color: #96919e; width: 18px; flex: none; padding-top: 2px; }
body.lms-mode .lesson-check { color: #397957; margin-left: auto; }
body.lms-mode .learn-content { max-width: 1120px; width: 100%; padding: 30px clamp(24px, 3vw, 48px) 60px; scroll-margin-top: 96px; }
body.lms-mode .learn-content h1 { font-size: clamp(24px, 2.7vw, 33px); font-weight: 800; line-height: 1.3; letter-spacing: -.035em; margin: 10px 0 20px; overflow-wrap: anywhere; }
.lesson-header { margin-bottom: 22px; }
.lesson-type { display: inline-flex; align-items: center; gap: 7px; color: #8e2943; background: #f5e8ee; padding: 4px 9px; border-radius: 5px; font-size: 10px; font-weight: 750; }
.lesson-position, body.lms-mode .lesson-topline { color: #807888; font-size: 10px; line-height: 1.5; }
body.lms-mode .lesson-topline { border-bottom: 1px solid #e3e1e8; padding-bottom: 14px; margin-bottom: 22px; }
body.lms-mode .video-frame { border-radius: 10px; border: 1px solid #282430; background: #15131b; margin: 0 0 25px; box-shadow: 0 6px 22px #24132413; }
body.lms-mode .lecture-body, .lesson-reading { background: #fff; color: #383744; border: 1px solid #e6e4eb; border-radius: 10px; padding: clamp(24px, 3vw, 38px); font-size: 15px; line-height: 1.9; }
body.lms-mode .lecture-body p { margin: 0 0 1.25em; }
body.lms-mode .lecture-body h2 { font-size: 22px; margin: 1.6em 0 .7em; }
body.lms-mode .lecture-body h3 { font-size: 18px; margin: 1.5em 0 .7em; }
body.lms-mode .lecture-body a { color: #982d49; text-decoration: underline; }
body.lms-mode .lecture-body blockquote { border-left-color: #ac6b80; color: #726577; background: #faf5f7; padding: 14px 20px; }
body.lms-mode .lecture-body code, body.lms-mode .lecture-body pre { background: #f2eef5; color: #70334f; }
body.lms-mode .lecture-body img { max-width: 100%; height: auto; }

/* Comfortable reading and scientific notation on every screen size. */
.rich-content { min-width: 0; overflow-wrap: anywhere; }
.rich-content .katex { font-size: 1.08em; overflow-wrap: normal; }
.rich-content .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: .65rem .15rem; margin: 1.1rem 0; }
.rich-content .katex-error { white-space: pre-wrap; overflow-wrap: anywhere; }
.rich-content img { display: block; max-width: 100%; height: auto; margin: 1rem auto; object-fit: contain; }
.rich-content .rich-inline-image { max-height: 420px; }
.rich-content figure { margin: 1.5rem 0; padding: 16px; border: 1px solid #e6e4eb; border-radius: 12px; background: #faf9f7; text-align: center; }
.rich-content figcaption { margin-top: .6rem; font-size: 13px; color: #645a63; line-height: 1.6; }
.rich-content .lecture-body h2, .rich-content .lecture-body h3 { scroll-margin-top: 110px; }
.rich-table-scroll { max-width: 100%; overflow-x: auto; margin: 1.25rem 0; border: 1px solid #e6e4eb; border-radius: 8px; }
.rich-table-scroll table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rich-table-scroll th, .rich-table-scroll td { border-bottom: 1px solid #e6e4eb; padding: 11px 14px; text-align: left; min-width: 110px; }
.rich-table-scroll th { background: #f5f0e6; font-weight: 700; }
.rich-image-expand { display: block; margin: .5rem auto; border: 1px solid #cdbdc4; border-radius: 6px; padding: 7px 11px; color: #842d46; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.rich-image-expand:focus-visible, .lesson-toc button:focus-visible { outline: 3px solid #b65b76; outline-offset: 3px; }
.rich-image-dialog { width: min(1100px, 94vw); max-width: 94vw; max-height: 92vh; padding: 20px; border: 0; border-radius: 14px; color: #302b33; background: #fff; }
.rich-image-dialog::backdrop { background: rgb(18 15 21 / 75%); }
.rich-image-dialog img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; margin: 16px auto; object-fit: contain; }
.rich-image-dialog p { font-size: 14px; text-align: center; }
.lesson-toc { padding: 16px 20px; margin: 18px 0 24px; background: #faf7f0; border: 1px solid #e9dfcc; border-radius: 10px; }
.lesson-toc summary { color: #743044; font-weight: 700; cursor: pointer; }
.lesson-toc nav { display: grid; gap: 4px; margin-top: 10px; }
.lesson-toc button { text-align: left; color: #51434c; font: inherit; font-size: 14px; border: 0; background: transparent; padding: 6px 0; cursor: pointer; }
.lesson-toc button.is-subheading { padding-left: 14px; font-size: 13px; }
body.lms-mode .quiz-question, body.lms-mode .option > span:last-child, body.lms-mode .review-question { min-width: 0; }
body.lms-mode .quiz-question legend { max-width: 100%; }
body.lms-mode .flashcard > div { min-width: 0; width: 100%; }
@media (max-width: 600px) { .rich-content figure { padding: 10px; } .lesson-toc { padding: 14px; } .rich-content .katex { font-size: 1em; } }
body.lms-mode .lesson-reading > .lecture-body { border: 0; padding: 0; border-radius: 0; margin-top: 18px; box-shadow: none; }
body.lms-mode .lesson-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 22px 0 0; margin-top: 24px; border-top: 1px solid var(--line); }
.lesson-actions > div { display: flex; flex-wrap: wrap; gap: 9px; }
.assessment-mark { display: grid; place-items: center; width: 42px; height: 42px; background: #f6edf2; color: #9c3c59; border-radius: 10px; margin-bottom: 18px; }
body.lms-mode .assessment-intro { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.assessment-metrics { display: flex; gap: 30px; padding: 20px 0; margin: 16px 0; border-block: 1px solid var(--line); }
.assessment-metrics strong { display: block; font-size: 21px; }
.assessment-metrics span, .assessment-metrics small { color: var(--muted); font-size: 11px; }
body.lms-mode .exam-bar { background: #fff; border: 1px solid var(--line); border-radius: 9px; top: 88px; font-size: 12px; padding: 13px 18px; }
body.lms-mode .exam-timer, body.lms-mode .score-number { color: #9d2e49; }
body.lms-mode .quiz-question { padding: 22px; margin: 12px 0; }
body.lms-mode .quiz-question legend { color: #34323d; font-size: 14px; }
.question-number { display: block; color: #96869a; font-size: 10px; font-weight: 600; margin-bottom: 8px; }
.option-letter { display: grid; place-items: center; width: 25px; height: 25px; flex: none; background: #f3eff6; border-radius: 5px; color: #86718d; font-size: 11px; font-weight: 700; }
body.lms-mode .option { background: #fff; border-color: #e0dce6; border-radius: 7px; font-size: 13px; }
body.lms-mode .option:hover { background: #faf7fa; }
body.lms-mode .option:has(input:checked) { background: #faf0f4; border-color: #b95b76; }
body.lms-mode .flashcard { background: #fff; color: #443143; border: 1px solid #dfd4e0; box-shadow: var(--shadow); border-radius: 12px; min-height: 280px; }
body.lms-mode .flashcard small { color: #88768a; }
body.lms-mode .flashcard p { font-size: 25px; }
body.lms-mode .preview { gap: 28px; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr); }
body.lms-mode .purchase-card { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #a52f4e; border-radius: 12px; box-shadow: var(--shadow); padding: 24px; }
body.lms-mode .purchase-card p, body.lms-mode .purchase-card li { color: var(--muted); font-size: 12px; }
body.lms-mode .purchase-card .price { color: #89223e; font-size: 30px; }
body.lms-mode .purchase-card .button.secondary { color: #63384b; border-color: #d4c4ce; }
body.lms-mode .syllabus details { padding: 17px 20px; margin-bottom: 10px; box-shadow: none; }
body.lms-mode .count-grid { gap: 10px; margin: 24px 0; }
body.lms-mode .count { padding: 15px; font-size: 10px; }
body.lms-mode .auth-wrap { max-width: 1000px; min-height: auto; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding: 36px 32px; }
body.lms-mode .auth-story { top: 110px; padding: 16px 0; }
body.lms-mode .auth-story h2 { font-size: 30px; }
body.lms-mode .auth-story h2 span { color: #9b304c; }
body.lms-mode .auth-mark { display: none; }
body.lms-mode .auth-panel { padding: 28px; }
body.lms-mode .auth-panel h1 { font-size: 26px; }
.lms-profile-layout { display: grid; grid-template-columns: 270px minmax(0, 650px); gap: 24px; align-items: start; }
.lms-profile-summary { text-align: center; overflow-wrap: anywhere; }
.lms-profile-summary .lms-avatar { margin: 5px auto 18px; width: 65px; height: 65px; font-size: 23px; }
.lms-profile-summary h2 { margin-bottom: 7px!important; }
.lms-profile-summary .form-note { margin-top: 25px; }
.lms-form-footer { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 6px; }
.preview-cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; margin-bottom: 22px; }
body:not(.lms-mode) .lms-course-art-icon { display: none; }
body:not(.lms-mode) .course-art, body:not(.lms-mode) .course-body h3 a { text-decoration: none; }
@media (max-height: 700px) and (min-width: 901px) {
  .lms-sidebar-help { display: none; }
  .lms-sidebar-help + .lms-sidebar-account { margin-top: auto; }
  body.lms-mode .lms-sidebar { padding-top: 20px; }
  .lms-sidebar .lms-brand { padding-bottom: 14px; }
}
@media (max-width: 1200px) {
  body.lms-mode .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  body.lms-mode .side-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 1100px) {
  body.lms-mode { --lms-sidebar-width: 208px; }
  body.lms-mode .page, body.lms-mode .section { padding: 26px 24px 40px; }
  body.lms-mode .lms-topbar { padding-inline: 24px; }
  body.lms-mode .learn-layout { grid-template-columns: 232px minmax(0, 1fr); }
  body.lms-mode .learn-content { padding: 25px 24px 45px; }
  body.lms-mode .stats { gap: 10px; }
  body.lms-mode .stat { padding: 15px; }
}
@media (max-width: 900px) {
  body.lms-mode #app, body.lms-mode .lms-topbar, body.lms-mode #network-status:not([hidden]) { margin-left: 0; }
  body.lms-mode .lms-sidebar { position: static; width: 100%; height: auto; padding: 8px 16px; overflow-x: auto; border: 0; }
  .lms-sidebar .lms-brand, .lms-sidebar > a:first-child, .lms-sidebar-section, .lms-sidebar-account, .lms-sidebar-help { display: none; }
  .lms-nav { display: flex; flex-wrap: nowrap; gap: 5px; }
  .lms-nav-link { white-space: nowrap; padding: 10px 12px; min-height: 40px; font-size: 11px; }
  .lms-nav-link .icon { width: 16px; height: 16px; }
  body.lms-mode .lms-topbar { height: 64px; padding: 12px 22px; }
  body.lms-mode .learn-nav { top: 64px; height: calc(100dvh - 64px); }
  body.lms-mode .exam-bar { top: 76px; }
}
@media (max-width: 760px) {
  body.lms-mode .learn-layout { grid-template-columns: minmax(0, 1fr); }
  body.lms-mode .learn-nav { position: static; height: auto; max-height: none; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .learn-course-heading { padding: 0 0 12px; margin-bottom: 10px; }
  body.lms-mode .learn-nav .back-link { display: none; }
  .learn-outline[open] { max-height: 310px; overflow-y: auto; }
  body.lms-mode .learn-content { padding: 25px 20px 40px; scroll-margin-top: 80px; }
  body.lms-mode .preview { grid-template-columns: 1fr; }
  body.lms-mode .purchase-card { position: static; }
  body.lms-mode .auth-wrap { grid-template-columns: 1fr; gap: 16px; }
  body.lms-mode .auth-story { position: static; }
  .lms-profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.lms-mode .page, body.lms-mode .section { padding: 23px 18px 35px; }
  body.lms-mode .lms-topbar { padding-inline: 18px; }
  .lms-topbar-actions { gap: 8px; }
  .lms-topbar-actions > .lms-help-link { display: none; }
  body.lms-mode .lms-topbar-actions .button { min-height: 32px; padding: 7px 10px; font-size: 10px; }
  body.lms-mode .lms-welcome { padding: 20px; }
  body.lms-mode .lms-welcome .page-title { font-size: 24px; }
  body.lms-mode .dashboard-head, body.lms-mode .lms-page-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  body.lms-mode .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.lms-mode .dashboard-layout .course-grid, body.lms-mode .side-stack { grid-template-columns: minmax(0, 1fr); }
  body.lms-mode .course-art { height: 146px; }
  body.lms-mode .section-head { flex-direction: row; align-items: center; }
  body.lms-mode .panel { padding: 20px; }
  body.lms-mode .learn-content h1 { font-size: 25px; }
  body.lms-mode .lecture-body { padding: 23px 20px; font-size: 14px; }
  body.lms-mode .lesson-actions { flex-direction: column; align-items: stretch; }
  body.lms-mode .lesson-actions .button { width: 100%; }
  body.lms-mode .quiz-question { padding: 18px 14px; }
  body.lms-mode input, body.lms-mode textarea, body.lms-mode select { font-size: 16px; }
  body.lms-mode .auth-wrap { padding: 24px 18px; }
}
