:root {
  --paper: #f5f7f6; --surface: #fff; --forest: #163d32; --forest-2: #285747;
  --ink: #24352e; --muted: #708077; --gold: #956b2d; --line: #e0e7e2;
  --pale: #edf4ef; --danger: #a23f38; --radius: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px; color: var(--ink); background: var(--paper); font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; line-height: 1.6; padding-bottom: 110px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #79a58d; outline-offset: 3px; }
a { color: var(--forest); text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; width: 24px; height: 24px; flex: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
small, .small { font-size: 13px; } .muted { color: var(--muted); }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 50; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1180px; margin: auto; padding: 16px 28px; min-height: 82px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; gap: 11px; align-items: center; font-size: 21px; font-weight: 650; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--forest); color: #e9dbb6; }
.brand-mark svg { width: 30px; height: 30px; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); border-bottom: 2px solid transparent; }
.desktop-nav a.active { color: var(--forest); border-color: var(--forest); font-weight: 650; }
.account-button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 9px 15px; font-size: 14px; white-space: nowrap; }
.admin-entry { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
main { max-width: 1124px; min-height: 60vh; margin: auto; padding: 18px 28px 35px; }
.bottom-nav { display: none; }
.section-heading, .catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 16px; }
.section-heading p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.section-heading .aside { font-size: 13px; color: var(--muted); white-space: nowrap; }
.page-intro { margin-bottom: 22px; }
.page-intro p { margin-top: 7px; font-size: 15px; color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.course-card { display: flex; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.course-visual { position: relative; width: 152px; flex: none; min-height: 190px; background: #e9eee5; padding: 12px; display: flex; align-items: center; justify-content: center; }
.course-visual img { width: 100%; height: 100%; max-height: 215px; object-fit: contain; }
.life-cover { height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 8px; color: var(--forest); }
.life-cover svg { width: 50px; height: 50px; stroke-width: 1; }
.life-cover span { font-family: "Songti SC", "SimSun", serif; font-size: 18px; text-align: center; line-height: 1.8; }
.course-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.course-body h3 { font-size: 20px; }
.course-body .description { font-size: 14px; color: var(--muted); }
.course-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; font-size: 13px; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta svg { width: 15px; height: 15px; }
.course-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.course-price { color: var(--gold); font-size: 19px; font-weight: 650; }
.course-price small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.button { min-height: 46px; padding: 10px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; background: var(--forest); color: white; font-size: 15px; line-height: 1.5; font-weight: 550; text-align: center; }
.button:hover { background: var(--forest-2); }
.button.secondary { background: white; color: var(--forest); border-color: var(--line); }
.button.secondary:hover { background: var(--pale); }
.button.light { background: white; color: var(--forest); }
.button.subtle { background: var(--pale); color: var(--forest); }
.button.danger { background: #fff6f4; color: var(--danger); border-color: #efd5ce; }
.button.wide { width: 100%; } .button.small { font-size: 14px; min-height: 44px; padding: 9px 12px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.icon-button { height: 46px; width: 46px; min-width: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; padding: 0; background: transparent; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { min-height: 44px; display: flex; align-items: center; } .breadcrumbs svg { width: 14px; height: 14px; }
.detail-top { display: flex; gap: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.detail-cover { width: 165px; height: 195px; flex: none; display: flex; align-items: center; justify-content: center; background: #e9eee5; padding: 10px; border-radius: 10px; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.detail-copy h1 { font-size: 27px; } .detail-copy .description { font-size: 15px; color: var(--muted); }
.section-block { margin-top: 24px; }
.notice { border: 1px solid #e8dfc9; border-radius: 10px; background: #faf6eb; color: #796033; padding: 13px 15px; font-size: 14px; overflow-wrap: anywhere; }
.notice.demo { background: var(--pale); border-color: #dce8de; color: var(--forest); }
.notice.error { background: #fff5f2; border-color: #efd4cd; color: var(--danger); }
.lesson-list { list-style: none; padding: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.lesson-item + .lesson-item { border-top: 1px solid var(--line); }
.lesson-link { display: flex; gap: 13px; align-items: center; min-height: 80px; padding: 15px 18px; }
.lesson-link:hover { background: var(--pale); } .lesson-number { color: var(--muted); font-size: 13px; min-width: 28px; }
.lesson-info { flex: 1; min-width: 0; } .lesson-title { font-size: 17px; font-weight: 550; overflow-wrap: anywhere; }
.lesson-subtitle { margin-top: 4px; color: var(--muted); font-size: 13px; }
.lesson-tail { display: flex; align-items: center; gap: 6px; } .lesson-tail svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; background: var(--pale); color: var(--forest); font-size: 12px; padding: 3px 8px; line-height: 1.7; white-space: nowrap; }
.pill.gold { color: #856023; background: #f6eedc; } .pill.gray { color: #718078; background: #f0f3f1; } .pill.red { color: var(--danger); background: #fbece7; }
.player-layout { max-width: 730px; margin: auto; }
.player-card { border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 30px; text-align: center; }
.player-badge { margin-bottom: 14px; }
.player-disc { width: 108px; height: 108px; margin: 26px auto; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #d8c493; box-shadow: 0 0 0 8px var(--pale); }
.player-disc svg { width: 47px; height: 47px; } .player-course { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.player-card h1 { font-size: 24px; } .player-status { font-size: 13px; color: var(--muted); min-height: 22px; margin-top: 12px; }
.seek { width: 100%; height: 40px; margin: 15px 0 0; accent-color: var(--forest); cursor: pointer; }
.time-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.play-controls { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 21px 0; }
.skip-control { min-width: 60px; min-height: 62px; display: flex; align-items: center; flex-direction: column; gap: 4px; padding: 8px; background: none; border: 0; font-size: 12px; color: var(--muted); }
.skip-control svg { width: 25px; height: 25px; color: var(--forest); }
.big-play { width: 76px; height: 76px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--forest); color: white; }
.big-play svg { width: 32px; height: 32px; }
.speed-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.speed-button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 24px; background: transparent; font-size: 14px; }
.speed-button[aria-pressed=true] { background: var(--pale); border-color: #9ab7a1; color: var(--forest); }
.player-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.player-note { margin-top: 16px; text-align: left; }
.empty-state { max-width: 650px; margin: 24px auto; padding: 36px 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.empty-icon { margin: 0 auto 18px; width: 62px; height: 62px; display: grid; place-items: center; background: var(--pale); border-radius: 50%; }
.empty-icon svg { width: 29px; height: 29px; } .empty-state p { font-size: 15px; color: var(--muted); max-width: 460px; margin: 12px auto 20px; }
.empty-state .button-row { justify-content: center; }
.account-summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; margin-bottom: 20px; }
.account-avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pale); color: var(--forest); }
.account-summary strong { font-size: 18px; } .account-summary p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.account-summary .button { margin-left: auto; }
.my-course { display: flex; gap: 17px; align-items: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.my-cover { width: 64px; height: 85px; flex: none; padding: 5px; background: #e9eee5; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden; }
.my-cover img { width: 100%; height: 100%; object-fit: contain; } .my-cover svg { width: 35px; height: 35px; }
.my-course-copy { flex: 1; min-width: 0; } .my-course h2 { font-size: 20px; margin-bottom: 6px; }
.my-course p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.claim-card { max-width: 630px; margin: 12px auto; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.claim-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--pale); color: var(--forest); display: grid; place-items: center; margin-bottom: 20px; }
.claim-card h1 { font-size: 26px; } .claim-card > p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.claim-card .notice { margin-top: 18px; } .claim-courses { background: var(--pale); border-radius: 10px; margin: 20px 0; padding: 13px 16px; }
.claim-courses strong { display: block; font-size: 17px; } .claim-course-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.admin-heading h1 { font-size: 27px; }
.admin-nav { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; padding: 5px; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-nav button { flex: 1; min-height: 46px; padding: 10px 17px; border: 0; border-radius: 8px; white-space: nowrap; background: none; font-size: 15px; }
.admin-nav button.active { background: var(--forest); color: white; font-weight: 600; }
.admin-card { min-width: 0; padding: 22px; margin-bottom: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-card h2 { font-size: 21px; } .admin-card > .button-row { margin-top: 15px; }
.admin-grid, .admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.stat strong { display: block; font-size: 27px; color: var(--forest); } .stat span { font-size: 13px; color: var(--muted); }
.admin-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.admin-row:first-of-type { border-top: 0; } .admin-row > div:first-child { min-width: 0; flex: 1; }
.admin-row p { margin-top: 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.admin-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .admin-row-title strong { font-size: 17px; }
.admin-row-controls { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-course-block { padding: 5px 0 18px; border-bottom: 1px solid var(--line); } .admin-course-block:last-child { border-bottom: 0; }
.admin-lessons summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--forest); font-size: 14px; }
.admin-lesson-list { list-style: none; padding: 0; margin: 8px 0 0; }
.admin-lesson-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 15px 0; }
.admin-lesson-list li > div { min-width: 0; } .admin-lesson-list strong { font-size: 15px; overflow-wrap: anywhere; }
.admin-lesson-list p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.grant-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.grant-row:last-child { border: 0; } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; margin-bottom: 17px; } .form-field label { font-weight: 600; }
.form-field input, .form-field select, .form-field textarea, .copy-field, .admin-search, .admin-toolbar input, .admin-toolbar select, .admin-filters select, .recipient-fields input {
  min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ccd8ce; border-radius: 9px; background: white; color: var(--ink); font-size: 16px;
}
.form-field textarea { resize: vertical; min-height: 94px; } .form-field small { color: var(--muted); font-size: 12px; }
.form-field input[type=file] { overflow: hidden; } .form-error { color: var(--danger); font-size: 14px; margin-bottom: 14px; overflow-wrap: anywhere; }
.copy-field { margin: 14px 0 10px; font-size: 14px; } textarea.copy-field, .copy-message { width: 100%; min-height: 160px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; resize: vertical; }
.checkbox-line { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; font-size: 15px; cursor: pointer; }
input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--forest); cursor: pointer; }
.choice-fieldset { min-width: 0; padding: 12px 15px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.choice-fieldset legend { font-size: 15px; font-weight: 600; padding: 0 6px; } .choice-row { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.log-list { list-style: none; padding: 0; margin: 0; } .log-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.log-list time { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.admin-toolbar, .admin-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.admin-toolbar input, .admin-search { flex: 1; min-width: 200px; } .admin-toolbar select, .admin-filters select { width: auto; max-width: 100%; }
.bulk-toolbar, .selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid #dce7de; border-radius: 10px; background: var(--pale); margin: 14px 0; }
.bulk-toolbar .checkbox-line, .selection-bar .checkbox-line { margin-right: auto; padding: 0; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-record { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: white; }
.admin-record.is-selected { border-color: #7d9e88; background: #f7fbf7; }
.record-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.record-meta > * { min-width: 0; overflow-wrap: anywhere; }
.invite-output { border: 1px solid var(--line); padding: 16px; border-radius: 12px; margin: 14px 0; background: white; }
.selection-check { width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin: 0 4px 0 0; cursor: pointer; }
.admin-row-title { min-height: 36px; }
.admin-card > .section-heading:first-child { margin-top: 0; }
.admin-filters { margin: 0; }
.selection-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.selection-bar .checkbox-line { font-size: 13px; margin: 0; }
.selection-bar strong { font-size: 13px; white-space: nowrap; }
.selection-bar .button { font-size: 12px; padding: 8px; white-space: nowrap; }
.student-grants { display: grid; gap: 7px; margin-top: 12px; }
.admin-card details > summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: 14px; }
.recipient-list, .batch-edit-list { display: grid; gap: 14px; margin: 16px 0; }
.recipient-row, .batch-edit-row { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.recipient-fields { display: grid; gap: 0 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recipient-fields > .form-field:first-child { grid-column: 1 / -1; }
.recipient-fields > .form-field { min-width: 0; }
.recipient-row > .button { margin-top: 10px; }
.batch-edit-row .form-field:last-child { margin-bottom: 0; }
.modal { width: min(640px, calc(100% - 28px)); max-height: 88dvh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 22px 80px #10261f30; }
.modal::backdrop { background: #122b2266; backdrop-filter: blur(2px); } .modal-body { padding: 26px; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; } .modal-heading h2 { font-size: 23px; }
.modal-body > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; } .modal .notice { margin-top: 18px; }
.mini-player { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 10px; width: min(740px, calc(100% - 32px)); padding: 11px 13px; background: white; border: 1px solid #cddbcf; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px #163d3215; }
.mini-track { flex: 1; min-width: 0; min-height: 50px; text-align: left; background: none; border: 0; padding: 0 5px; }
.mini-track strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-label { display: block; color: var(--gold); font-size: 11px; } .mini-time { display: block; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.mini-play { background: var(--forest); color: white; border: 0; } .mini-close { border: 0; } .mini-close svg { width: 18px; height: 18px; }
.mini-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--pale); } .mini-progress span { display: block; width: 0; height: 100%; background: var(--forest); }
.toast { position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: min(500px, calc(100% - 28px)); border-radius: 10px; padding: 12px 17px; background: #19382f; color: white; font-size: 14px; text-align: center; }
.loading-state { text-align: center; padding: 60px 14px; color: var(--muted); } .noscript { padding: 24px; color: var(--danger); }
@media (max-width: 900px) { .course-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 72px; padding: 12px 16px; gap: 12px; }
  .brand { font-size: 18px; gap: 9px; margin-right: auto; } .brand-mark { width: 34px; height: 34px; border-radius: 10px; } .brand-mark svg { width: 26px; height: 26px; }
  .desktop-nav { display: none; } .account-button { padding: 9px 12px; font-size: 13px; } .admin-entry { font-size: 13px; }
  main { padding: 12px 16px 26px; } h1 { font-size: 25px; } h2 { font-size: 21px; } .page-intro { margin-bottom: 18px; }
  .section-heading { margin-top: 16px; } .section-heading .aside { font-size: 12px; }
  .bottom-nav { display: flex; align-items: center; justify-content: space-around; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(68px + env(safe-area-inset-bottom)); padding: 4px 14px calc(4px + env(safe-area-inset-bottom)); background: #fffffffa; border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .bottom-nav a { flex: 1; min-height: 58px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; color: var(--muted); font-size: 13px; }
  .bottom-nav svg { width: 22px; height: 22px; } .bottom-nav a.active { color: var(--forest); font-weight: 650; }
  .bottom-nav a.active > span:first-child { background: var(--pale); padding: 3px 18px; border-radius: 15px; margin-top: -6px; }
  .course-grid { gap: 13px; } .course-visual { width: 92px; min-height: 174px; padding: 7px; }
  .life-cover { padding: 3px; gap: 12px; } .life-cover svg { width: 37px; height: 37px; } .life-cover span { font-size: 15px; }
  .course-body { padding: 15px 13px; gap: 8px; } .course-body h3 { font-size: 18px; } .course-body .description { font-size: 14px; }
  .course-actions { gap: 7px; } .course-actions .button { font-size: 14px; padding: 10px 12px; } .course-price { font-size: 17px; } .course-meta { gap: 5px 9px; font-size: 12px; }
  .detail-top { gap: 16px; padding: 18px; } .detail-cover { width: 85px; height: 120px; padding: 6px; } .detail-copy h1 { font-size: 22px; } .detail-copy .description { font-size: 14px; }
  .detail-copy .button-row .button { padding: 10px 12px; font-size: 14px; } .lesson-link { padding: 14px 12px; gap: 8px; } .lesson-number { min-width: 24px; font-size: 12px; }
  .lesson-title { font-size: 16px; } .lesson-subtitle { font-size: 12px; } .lesson-tail .pill { font-size: 11px; padding: 3px 6px; } .lesson-tail svg { width: 13px; height: 13px; }
  .player-card { padding: 24px 18px; } .player-card h1 { font-size: 22px; } .play-controls { gap: 22px; } .speed-row { gap: 6px; } .speed-button { padding: 8px 12px; }
  .player-bottom .button { flex: 1; padding: 10px 12px; font-size: 14px; } .account-summary { padding: 16px; gap: 10px; } .account-summary strong { font-size: 16px; }
  .account-summary .button { padding: 9px 12px; font-size: 14px; } .my-course { padding: 16px; gap: 12px; flex-wrap: wrap; } .my-course h2 { font-size: 18px; } .my-course > .button { margin-left: 76px; }
  .claim-card { padding: 24px 18px; } .claim-card h1 { font-size: 24px; } .claim-course-line { flex-wrap: wrap; }
  .admin-heading h1 { font-size: 25px; } .admin-heading .button { font-size: 13px; padding: 10px 12px; }
  .admin-nav { gap: 3px; margin: 14px 0; } .admin-nav button { padding: 10px 12px; font-size: 14px; }
  .admin-card { padding: 16px; margin-bottom: 14px; } .admin-card h2 { font-size: 20px; }
  .admin-row { flex-wrap: wrap; gap: 12px; padding: 16px 0; } .admin-row > div:first-child { flex-basis: 100%; }
  .admin-row-controls { width: 100%; gap: 8px; } .admin-row-controls .button { flex: 1; font-size: 14px; min-width: 90px; }
  .admin-lesson-list li { flex-wrap: wrap; gap: 10px; } .admin-lesson-list li > div { flex: 1 1 210px; }
  .admin-grid, .admin-summary { gap: 8px; } .stat { padding: 12px 10px; } .stat strong { font-size: 24px; } .stat span { font-size: 12px; }
  .admin-toolbar { gap: 9px; } .admin-toolbar input, .admin-search { min-width: 0; flex-basis: 100%; } .admin-toolbar select { flex: 1; }
  .bulk-toolbar, .selection-bar { gap: 8px; padding: 10px; } .bulk-toolbar .button, .selection-bar .button { flex: 1 1 auto; font-size: 13px; padding: 10px; }
  .record-grid { grid-template-columns: 1fr; gap: 12px; } .admin-record { padding: 15px; } .record-meta { gap: 6px 10px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; } .modal { max-height: 88dvh; } .modal-body { padding: 21px 18px; } .modal-heading h2 { font-size: 22px; }
  .choice-fieldset { padding: 10px 12px; } .choice-row { gap: 4px 16px; } .grant-row { align-items: flex-start; flex-wrap: wrap; } .grant-row .button { font-size: 13px; padding: 9px 12px; }
  .mini-player { bottom: calc(78px + env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 10px; gap: 6px; } .mini-track strong { font-size: 14px; }
  .toast { bottom: calc(170px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .brand { font-size: 16px; gap: 7px; } .site-header { gap: 8px; padding-left: 12px; padding-right: 12px; } main { padding-left: 12px; padding-right: 12px; }
  .course-visual { width: 78px; } .course-body { padding: 13px 11px; } .detail-top { display: block; } .detail-cover { float: left; margin: 0 14px 10px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Learning progress and self-service account settings. */
.learning-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0 0 20px;
}
.learning-summary > div {
  min-width: 0;
  flex: 1;
}
.learning-summary strong { display: block; color: var(--forest); font-size: 25px; line-height: 1.4; }
.learning-summary span, .learning-summary small, .learning-summary p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.learning-summary > .button { flex: none; }
.learning-card {
  min-width: 0;
  padding: 22px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.learning-card h2 { font-size: 21px; }
.learning-card .button-row { margin-top: 16px; }
.course-progress { margin-top: 15px; }
.progress-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-caption strong { color: var(--forest); font-size: 17px; }
.progress-track { width: 100%; height: 8px; overflow: hidden; border-radius: 20px; background: #e7eee9; }
.progress-fill { display: block; height: 100%; background: var(--forest-2); border-radius: inherit; }
.learning-position { font-size: 14px; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; }
.learning-position strong { color: var(--ink); font-weight: 550; }
.account-profile { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; margin-bottom: 20px; }
.account-profile .account-avatar { width: 60px; height: 60px; }
.account-profile h2 { font-size: 23px; }
.account-profile p { font-size: 14px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.account-section { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; margin-bottom: 16px; }
.account-section h2 { font-size: 20px; margin-bottom: 16px; }
.account-details { min-width: 0; flex: 1; }
.account-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 54px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-row > span:first-child { color: var(--muted); font-size: 14px; }
.account-row strong, .account-row > span:last-child { overflow-wrap: anywhere; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.account-actions .button { min-width: 130px; }
.account-section .form-field:last-of-type { margin-bottom: 18px; }
@media (max-width: 700px) {
  .learning-summary { gap: 10px; margin-bottom: 16px; padding: 17px 16px; }
  .learning-summary strong { font-size: 23px; }
  .learning-summary span, .learning-summary small { font-size: 12px; }
  .learning-card { padding: 18px 16px; }
  .my-course.learning-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 12px 14px; }
  .my-course.learning-card > .button { grid-column: 2; margin-left: 0; justify-self: start; min-width: 130px; }
  .learning-card h2 { font-size: 19px; }
  .progress-caption { gap: 8px; font-size: 12px; }
  .progress-caption strong { font-size: 16px; }
  .learning-position { font-size: 13px; }
  .account-profile { padding: 20px 16px; gap: 13px; }
  .account-profile .account-avatar { width: 50px; height: 50px; }
  .account-profile h2 { font-size: 21px; }
  .account-section { padding: 18px 16px; }
  .account-section h2 { font-size: 19px; }
  .account-sections { grid-template-columns: 1fr; gap: 0; }
  .account-actions .button { flex: 1; }
  .account-row { gap: 10px; }
  .account-row > span:last-child, .account-row strong { text-align: right; }
  .account-button { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
}

/* The administration site has its own page and navigation. */
body.admin-page { padding-bottom: 32px; }
.admin-page .site-header { border-bottom: 1px solid var(--line); max-width: 1180px; background: white; }
.admin-page .site-header-inner { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 1124px; margin: auto; }
.admin-page .brand { margin-right: auto; }
.admin-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px; font-size: 12px; color: var(--forest); background: var(--pale); border-radius: 7px; white-space: nowrap; font-weight: 500; }
.admin-page main { padding-top: 26px; min-height: 70vh; }
.admin-page .admin-login { max-width: 440px; margin: 48px auto; }
.admin-page .admin-login h1 { font-size: 26px; margin-bottom: 24px; }
.admin-page .admin-login p { font-size: 14px; color: var(--muted); }
.admin-page .admin-login .form-error { color: var(--danger); }
.admin-page .admin-nav { position: sticky; top: 12px; z-index: 10; box-shadow: 0 5px 15px #163d3208; }
.admin-page .toast { bottom: 30px; }
.admin-page .admin-heading { margin-top: 0; }
.admin-page .admin-heading .eyebrow { font-size: 12px; }
.admin-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.admin-student-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
.admin-nav > a { display: inline-flex; justify-content: center; align-items: center; flex: 1; min-height: 46px; padding: 10px 17px; border-radius: 8px; white-space: nowrap; font-size: 15px; }
.admin-nav > a.active { background: var(--forest); color: white; font-weight: 600; }
@media (max-width: 700px) {
  body.admin-page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .admin-page .site-header { padding: 12px 16px; }
  .admin-page .site-header-inner { gap: 10px; }
  .admin-page .brand { font-size: 17px; gap: 8px; }
  .admin-page main { padding-top: 20px; }
  .admin-page .admin-login { margin-top: 25px; }
  .admin-page .admin-nav { top: 8px; }
  .admin-page .admin-badge { font-size: 11px; padding: 3px 7px; }
  .admin-page .toast { bottom: calc(28px + env(safe-area-inset-bottom)); }
  .admin-header-actions { gap: 10px; }
  .admin-student-link { font-size: 13px; }
  .admin-nav > a { padding: 10px 12px; font-size: 14px; }
  .admin-page .account-button { max-width: none; }
}
@media (max-width: 360px) {
  .admin-page .brand { font-size: 16px; }
  .admin-page .site-header { padding-left: 12px; padding-right: 12px; }
  .admin-page .admin-badge { padding: 3px 5px; }
  .admin-site-header { flex-wrap: wrap; gap: 0; }
  .admin-page .site-header-inner { flex-wrap: wrap; gap: 0 10px; }
  .admin-header-actions { flex-basis: 100%; justify-content: flex-end; }
}
