:root {
  color-scheme: light;
  --forest: #153f34;
  --forest-deep: #10352c;
  --green: #287452;
  --green-hover: #1e5f42;
  --mint: #eaf3eb;
  --lime: #d7efb4;
  --ink: #20352d;
  --text: #31473d;
  --muted: #78857e;
  --line: #e5ebe5;
  --bg: #f5f7f4;
  --radius: 16px;
  --shadow: 0 4px 22px rgba(22, 54, 40, .035);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9bca9a; outline-offset: 3px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.4; }
h1 { margin-bottom: 0; font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 650; letter-spacing: -.04em; }
h2 { font-size: 1.2rem; font-weight: 650; margin-bottom: 8px; }
h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: 8px; }
small { font-size: .8125rem; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 240px; padding: 34px 20px 18px; color: #e0eee4; background: var(--forest); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; color: white; padding: 0 12px; text-decoration: none !important; }
.brand-mark { color: var(--lime); width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #a9d1b13d; border-radius: 11px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 1.7rem; line-height: 1.25; letter-spacing: .1em; font-weight: 650; }
.brand-copy small { font-size: .75rem; color: #b3ccbd; letter-spacing: .1em; margin-top: 2px; }
.brand-dot { color: var(--lime); letter-spacing: 0; }
.workspace-label { display: flex; align-items: center; gap: 10px; margin: 37px 8px 29px; padding: 14px 0; border-top: 1px solid #ffffff16; border-bottom: 1px solid #ffffff16; }
.workspace-symbol { background: #ffffff10; width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; color: #c8e3ce; }
.workspace-label strong { display: block; font-size: .875rem; font-weight: 500; }
.workspace-label small { display: block; font-size: .69rem; color: #a2bfae; margin-top: 2px; }
.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-label { font-size: .75rem; color: #90af9b; margin: 0 16px 9px; letter-spacing: .06em; }
.nav-label-second { margin-top: 28px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; padding: 13px 15px; width: 100%; color: #b9d0c1; background: none; border: 0; border-radius: 9px; text-align: left; font-size: .9rem; line-height: 1.4; transition: background .15s, color .15s; }
.nav-item svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: #ffffff0b; color: white; }
.nav-item.active { background: var(--lime); color: #21432c; font-weight: 600; }
.nav-item.active:after { content: ""; position: absolute; right: 16px; width: 5px; height: 5px; background: #3b6946; border-radius: 50%; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.growth-note { position: relative; padding: 18px 13px 17px; border: 1px solid #ffffff19; border-radius: 12px; background: linear-gradient(120deg, #ffffff06, #ffffff00); overflow: hidden; }
.growth-note strong { font-size: .8125rem; font-weight: 500; display: block; margin-top: 3px; }
.growth-note p { margin: 3px 0 0; color: #97b3a0; font-size: .69rem; }
.growth-icon { color: #accd9f; display: block; width: 44px; height: 44px; }
.growth-icon svg { width: 44px; height: 44px; }
.sidebar-footnote { display: flex; justify-content: space-between; gap: 6px; color: #7c9e8a; font-size: .65rem; margin: 19px 3px 0; }
.main-shell { margin-left: 240px; }
.topbar { height: 83px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #ffffff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: .8125rem; white-space: nowrap; }
.breadcrumb-home, .breadcrumb-divider { color: #8b988f; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-divider { display: block; width: 1px; height: 28px; background: var(--line); }
.identity { display: flex; align-items: center; gap: 10px; font-size: .8125rem; }
.identity strong { font-weight: 550; display: block; line-height: 1.5; }
.identity small { color: var(--muted); font-size: .69rem; display: block; }
.main-content { max-width: 1530px; margin: 0 auto; padding: 31px 38px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 29px; }
.eyebrow { color: #8c9b8e; font-size: .64rem; letter-spacing: .16em; font-weight: 600; margin-bottom: 9px; }
.workspace-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; color: #6f8174; border: 1px solid #dee7de; border-radius: 20px; padding: 6px 12px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6a9d6d; }
.content-footer { display: flex; justify-content: space-between; gap: 16px; font-size: .75rem; color: #94a097; border-top: 1px solid var(--line); padding: 20px 0; margin-top: 30px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 22px; }
.card.no-padding { padding: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid > .card + .card, .stats > .card + .card { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-1 { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.text-green { color: var(--green); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { position: relative; min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 23px 19px; box-shadow: var(--shadow); }
.stat .stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.stat-label, .metric-label { color: #758479; font-size: .8125rem; margin-bottom: 12px; }
.stat-value, .metric-value { font-size: 2rem; color: #213e2c; font-weight: 600; letter-spacing: -.05em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-value small, .metric-value small { font-size: .8125rem; font-weight: 400; letter-spacing: 0; color: #8b968d; margin-left: 6px; }
.stat p { margin: 12px 0 0; font-size: .75rem; color: #8a978c; }
.stat-icon { width: 35px; height: 35px; background: #f1f6ec; border-radius: 10px; display: grid; place-items: center; color: #7c9b67; }
.stat-icon svg { width: 18px; height: 18px; }
.stat.highlight { background: var(--forest); border-color: var(--forest); color: #f2f8ed; }
.stat.highlight .stat-label, .stat.highlight .metric-label, .stat.highlight p { color: #bad0bc; }
.stat.highlight .stat-value, .stat.highlight .metric-value { color: white; }
.stat.highlight .stat-icon { background: #ffffff13; color: var(--lime); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2, .section-heading h3, .section-heading p { margin-bottom: 0; }
.section-heading .muted { margin-top: 5px; font-size: .8125rem; }
.section-title { display: flex; align-items: center; gap: 9px; }
.section-title:before { content: ""; display: block; width: 3px; height: 15px; border-radius: 2px; background: #79996d; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.toolbar-group, .actions, .filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.search { position: relative; max-width: 340px; width: 100%; }
.search input { width: 100%; padding-left: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #91a092; pointer-events: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px; border-radius: 8px; padding: 9px 15px; border: 1px solid var(--line); background: white; color: var(--text); font-size: .8125rem; font-weight: 500; line-height: 1.45; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: #f3f7f1; border-color: #c9d6c7; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; }
.btn-primary { color: #fff; background: var(--green); border-color: var(--green); }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-soft { color: #47734a; background: #eff5e9; border-color: transparent; }
.btn-soft:hover { background: #e5efdc; border-color: transparent; }
.btn-danger { color: #b6574b; background: #fff7f5; border-color: #f0dcd7; }
.btn-danger:hover { background: #fbeae5; border-color: #e2bfb4; }
.btn-ghost, .btn-link { color: var(--green); border-color: transparent; background: transparent; padding-left: 6px; padding-right: 6px; }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: .75rem; border-radius: 6px; }
.btn-icon { width: 36px; min-height: 36px; padding: 7px; }
.btn-block { display: flex; width: 100%; }
.tabs { display: flex; align-items: center; gap: 4px; padding: 4px; background: #eaf0e6; border-radius: 9px; width: fit-content; }
.tab { padding: 7px 15px; color: #75836f; border: 0; background: transparent; border-radius: 6px; font-size: .8125rem; }
.tab.active { color: #315433; background: white; box-shadow: 0 1px 4px #2f482313; font-weight: 550; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 5px; padding: 3px 8px; color: #58704e; background: #eff5e9; font-size: .75rem; font-weight: 400; white-space: nowrap; line-height: 1.6; }
.badge-green, .badge.success { color: #397854; background: #ebf5ee; }
.badge-orange, .badge.warning { color: #b18132; background: #fbf3df; }
.badge-gray, .badge.neutral { color: #8a938b; background: #f0f2ef; }
.badge-red, .badge.danger { color: #b56558; background: #fff0eb; }
.badge-blue { color: #5d7b9b; background: #edf2f8; }
.notice, .callout { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #dce8d8; background: #eef5e9; border-radius: 10px; padding: 14px 18px; font-size: .8125rem; color: #5f7956; margin-bottom: 24px; }
.notice p, .callout p { margin: 0; }
.notice.warning { border-color: #eddfbe; background: #fcf7e9; color: #99793d; }
.notice svg { width: 18px; height: 18px; margin-top: 2px; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.course-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; transition: box-shadow .18s, transform .18s; min-width: 0; }
.course-card:hover { box-shadow: 0 10px 25px #273f2910; transform: translateY(-2px); }
.cover { position: relative; min-height: 150px; padding: 21px 23px; background: #e3eddc; color: #2b4b31; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.cover:before { content: ""; position: absolute; z-index: -1; width: 190px; height: 190px; right: -55px; top: -29px; border: 26px solid #ffffff39; border-radius: 50%; }
.cover:after { content: ""; position: absolute; z-index: -1; width: 105px; height: 105px; right: -20px; bottom: -58px; border-radius: 22px; background: #b6ceaa66; transform: rotate(38deg); }
.cover .cover-kicker, .cover small { color: #688261; letter-spacing: .1em; font-size: .65rem; font-weight: 550; text-transform: uppercase; margin-bottom: 9px; }
.cover h3, .cover-title { max-width: 78%; font-size: 1.2rem; font-weight: 600; line-height: 1.5; margin: 0; color: inherit; letter-spacing: .015em; }
.cover .cover-icon { position: absolute; right: 23px; bottom: 28px; color: #6b93677d; font-size: 2.8rem; }
.cover.blue, .cover-1 { background: #e5ebf1; color: #35526c; }
.cover.blue small, .cover-1 small { color: #7c8ea0; }
.cover.blue:after, .cover-1:after { background: #b4c6d466; }
.cover.orange, .cover-2 { background: #f2e7d6; color: #7a6240; }
.cover.orange small, .cover-2 small { color: #aa8e67; }
.cover.orange:after, .cover-2:after { background: #dfc9a766; }
.cover.purple, .cover-3 { background: #eae5ee; color: #675279; }
.cover.purple small, .cover-3 small { color: #94879d; }
.cover.purple:after, .cover-3:after { background: #cdbbd666; }
.cover.dark, .cover-4 { background: #244e40; color: #d9e8d4; }
.cover.dark small, .cover-4 small { color: #a3b89a; }
.cover-5 { background: #e3edec; color: #416f6c; }
.course-body, .course-info { padding: 19px 20px 18px; }
.course-body h3, .course-info h3 { font-size: 1rem; margin: 0 0 9px; }
.course-meta { display: flex; align-items: center; gap: 10px; color: #909b92; font-size: .75rem; margin: 9px 0 14px; flex-wrap: wrap; }
.course-meta span + span:before { content: "·"; margin-right: 10px; color: #b0bab0; }
.course-desc { color: #829080; font-size: .8125rem; line-height: 1.8; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #f0f2ed; font-size: .75rem; color: #879181; }
.progress { display: block; height: 6px; background: #eef1eb; border-radius: 20px; overflow: hidden; min-width: 60px; }
.progress > span, .progress > div { display: block; height: 100%; width: var(--progress, 0%); background: #7eaa6b; border-radius: inherit; transition: width .25s; }
.progress.big { height: 8px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; color: #83917e; font-size: .75rem; margin-bottom: 8px; }
.progress-cell { display: flex; align-items: center; gap: 12px; }
.progress-cell .progress { width: 100px; }
.progress-cell > span { font-size: .8125rem; min-width: 36px; color: #63765d; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; width: 100%; border-radius: 10px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .8125rem; white-space: nowrap; }
th { background: #f7f9f5; color: #8a9586; font-weight: 400; padding: 13px 16px; font-size: .75rem; }
td { padding: 17px 16px; border-bottom: 1px solid #edf0e9; color: #53654c; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf9; }
th:first-child { border-radius: 7px 0 0 7px; }
th:last-child { border-radius: 0 7px 7px 0; }
td .btn + .btn { margin-left: 4px; }
.avatar { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 11px; background: #e7eddf; color: #6b855c; font-size: .8125rem; font-weight: 550; flex-shrink: 0; }
.avatar-small { width: 34px; height: 34px; border-radius: 50%; }
.avatar.blue { background: #e5edf2; color: #718ea0; }
.avatar.orange { background: #f3ecdd; color: #ad956b; }
.avatar.purple { background: #eee9f1; color: #9a88a5; }
.member-cell { display: flex; align-items: center; gap: 11px; }
.member-cell strong { font-weight: 550; display: block; color: #3b4e34; }
.member-cell small { display: block; color: #97a08e; font-size: .69rem; margin-top: 2px; }
.empty { padding: 55px 25px; text-align: center; color: #8c9885; }
.empty .empty-icon { display: grid; place-items: center; margin: 0 auto 17px; width: 65px; height: 65px; background: #f0f5eb; border-radius: 50%; color: #9db38e; }
.empty h3 { color: #5b7051; font-size: 1.1rem; margin-bottom: 8px; }
.empty p { max-width: 440px; margin: 0 auto 20px; font-size: .875rem; line-height: 1.9; }
.empty .btn { margin-top: 2px; }

.hero { position: relative; background: #eaf2e2; padding: 27px 30px; border: 1px solid #dee9d5; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero h2 { font-size: 1.4rem; margin-bottom: 10px; }
.hero p { color: #7b8b70; font-size: .875rem; margin-bottom: 18px; max-width: 580px; }
.hero .hero-label { font-size: .65rem; letter-spacing: .16em; color: #86a074; margin: 0 0 9px; }
.hero-art { width: 130px; height: 120px; flex: 0 0 130px; position: relative; }
.hero-art:before { content: ""; position: absolute; width: 93px; height: 93px; right: 0; top: 0; border-radius: 50%; background: #d4e4be; }
.hero-art:after { content: ""; position: absolute; width: 72px; height: 95px; right: 33px; top: 22px; border: 2px solid #8fa976; border-radius: 4px 15px 15px 4px; background: linear-gradient(90deg, #c5dbb2 12%, #dce9ca 12%); transform: rotate(-14deg); box-shadow: 8px 6px 0 #b2c89b77; }
.chart-bars { display: flex; align-items: flex-end; gap: 15px; min-height: 150px; height: 160px; padding-top: 14px; border-bottom: 1px solid #e9eee4; }
.chart-bar { flex: 1; height: var(--height, 50%); min-height: 3px; border-radius: 5px 5px 0 0; background: #dfeacb; position: relative; }
.chart-bar.active { background: #88a86f; }
.chart-labels { display: flex; justify-content: space-around; color: #9ba78f; font-size: .69rem; padding-top: 10px; }
.activity-list { display: flex; flex-direction: column; }
.activity { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf1e7; }
.activity:last-child { border-bottom: 0; padding-bottom: 0; }
.activity p { font-size: .8125rem; margin: 0; }
.activity small { display: block; color: #9ca592; font-size: .69rem; margin-top: 3px; }
.activity-icon { width: 31px; height: 31px; border-radius: 9px; background: #f0f5e7; color: #91ab77; display: grid; place-items: center; flex-shrink: 0; }
.activity-icon svg { width: 16px; height: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step strong { display: block; color: #506d43; font-size: .875rem; margin-bottom: 8px; }
.step p { font-size: .8125rem; color: #8d9b80; margin-bottom: 0; line-height: 1.9; }

.modal-overlay { position: fixed; inset: 0; z-index: 100; background: #112c2499; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 26px; overflow: auto; }
.modal { background: white; width: 100%; max-width: 640px; max-height: calc(100dvh - 52px); border-radius: 18px; box-shadow: 0 25px 100px #10251b44; padding: 29px; overflow: auto; }
.modal.wide, .modal-lg { max-width: 960px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.modal-header h2 { margin-bottom: 0; font-size: 1.25rem; }
.modal-close { display: grid; place-items: center; width: 32px; height: 32px; color: #89977f; background: #f1f5eb; border: 0; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.form-grid .full, .field.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, label.field-label { display: block; font-size: .8125rem; color: #5e7351; font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { padding: 10px 12px; border: 1px solid #dfe6d9; border-radius: 8px; color: #405338; background: #fff; font-size: .875rem; min-height: 43px; min-width: 0; max-width: 100%; }
input::placeholder, textarea::placeholder { color: #a5af9c; }
input:hover, textarea:hover, select:hover { border-color: #c3d0b9; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); width: 16px; height: 16px; }
select { appearance: none; padding-right: 35px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m5 6 3 3 3-3' fill='none' stroke='%23839476' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 11px center; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 95px; }
.field small, .field-help { color: #97a18c; font-size: .75rem; line-height: 1.75; }
.field-error { color: #ba6659; font-size: .75rem; }
.checkbox-field { display: flex; align-items: center; gap: 9px; font-size: .8125rem; color: #6e7e61; }
.upload-area { padding: 25px 20px; border: 1px dashed #c5d4b7; border-radius: 10px; background: #fafcf7; text-align: center; color: #8d9f7b; }
.upload-area strong { display: block; color: #6d8558; font-size: .875rem; margin: 10px 0 3px; }
.upload-area p { font-size: .75rem; color: #a1ad92; margin-bottom: 15px; }
.upload-area input[type="file"] { width: 100%; font-size: .75rem; background: white; }
.upload-area.dragover { background: #edf5e5; border-color: #7c9f5d; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 200; max-width: min(90vw, 550px); transform: translate(-50%, 18px); padding: 12px 20px; border-radius: 10px; color: white; background: #224638f2; box-shadow: 0 8px 30px #0f382e26; font-size: .875rem; opacity: 0; visibility: hidden; transition: .2s; pointer-events: none; }
.toast.show, .toast.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.error { background: #9b5047f2; }

.login-screen { min-height: 65vh; display: grid; place-items: center; padding: 36px 18px; }
.login-card { width: 100%; max-width: 440px; padding: 36px; }
.login-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.login-card .form-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.login-card .brand-mark { margin-bottom: 22px; color: var(--green); border-color: #dbe7d4; width: 48px; height: 48px; background: #f2f7ee; }
.login-card .btn { margin-top: 5px; }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.video-main { min-width: 0; }
.video-player { position: relative; aspect-ratio: 16 / 9; background: #14251d; border-radius: 13px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #abc098; }
.video-player video, video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #16251e; border-radius: 11px; }
.video-placeholder { text-align: center; padding: 30px; }
.video-placeholder p { font-size: .875rem; color: #91a77f; margin: 12px 0 0; }
.video-description { margin-top: 22px; }
.video-description p { color: #8b9882; font-size: .875rem; line-height: 1.9; }
.lesson-list { display: flex; flex-direction: column; gap: 7px; }
.lesson { display: flex; gap: 11px; align-items: center; background: transparent; border: 1px solid transparent; padding: 12px; border-radius: 8px; color: #7b8d6b; width: 100%; text-align: left; font-size: .8125rem; }
.lesson:hover { background: #f6f9f1; }
.lesson.active { background: #edf4e5; color: #4c7440; border-color: #dce8d1; }
.lesson-index { color: #9ba98c; font-size: .75rem; }
.lesson span:last-child { flex: 1; }
.lesson small { display: block; color: #a0ab92; font-size: .69rem; margin-top: 3px; }
.lesson-done { color: #6e9959; }
.learn-progress { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.definition-list { margin: 0; }
.definition-list > div { padding: 15px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; font-size: .875rem; }
.definition-list dt { color: #8d9a80; }
.definition-list dd { margin: 0; color: #5a704b; }
.definition-list > div:last-child { border-bottom: 0; }
.loading-state { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #94a284; font-size: .875rem; }
.loading-state p { margin: 0; }
.loading-spinner { width: 28px; height: 28px; border: 2px solid #e2ebd8; border-top-color: #789c60; border-radius: 50%; animation: spin .8s linear infinite; }
.welcome-card { display: flex; justify-content: space-between; align-items: center; gap: 25px; position: relative; overflow: hidden; background: #e7efdf; border: 1px solid #dfe7d5; border-radius: 16px; padding: 27px 34px 28px; margin-bottom: 25px; }
.welcome-card h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 12px; }
.welcome-card p { color: #7a8b6b; font-size: .8125rem; line-height: 1.85; margin-bottom: 21px; }
.welcome-card .eyebrow { color: #8b9c7c; }
.welcome-card .btn { min-height: 38px; padding: 8px 14px; font-size: .75rem; }
.welcome-art { position: relative; height: 182px; width: 250px; flex: 0 0 250px; margin-right: 25px; }
.welcome-art:before { content: ""; position: absolute; inset: 0 0 0 auto; width: 180px; height: 180px; background: #d4e1c1; border-radius: 50%; }
.art-card { position: absolute; width: 138px; height: 163px; top: 10px; border: 1px solid #b4c79c; border-radius: 11px; }
.art-back { background: #c2d2ad; left: 52px; transform: rotate(-14deg); }
.art-front { top: 23px; left: 78px; transform: rotate(8deg); background: #f5f8ef; box-shadow: 6px 8px 0 #b8cba677; padding: 17px; color: #7a9561; }
.art-book { display: grid; place-items: center; width: 34px; height: 37px; color: #6d8e50; background: #e4edd5; border-radius: 7px; font-size: 1.6rem; margin-bottom: 11px; }
.art-front > span:last-of-type { font-size: .7rem; line-height: 1.8; display: block; }
.art-front strong { font-size: 1rem; font-weight: 550; }
.art-front i { display: grid; place-items: center; position: absolute; right: -15px; bottom: 17px; width: 36px; height: 36px; background: #8ba667; color: white; border: 4px solid #e7efdf; border-radius: 50%; font-size: 1rem; font-style: normal; transform: rotate(-8deg); }
.art-circle { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #c0d2a9; left: 4px; bottom: 8px; }
.art-circle:before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #b6c99e; top: -126px; left: 12px; }
.stat > .metric-label { display: block; margin-bottom: 17px; }
.stat > div:not(.stat-top) { display: flex; align-items: center; gap: 7px; min-height: 39px; margin-bottom: 10px; }
.stat > div > strong { color: #30492b; font-size: 2rem; line-height: 1.2; letter-spacing: -.04em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat > div > strong em { font-style: normal; font-size: 1rem; margin-left: 3px; }
.stat > div > span { color: #96a28a; font-size: .75rem; margin-top: 10px; }
.stat > div > .stat-icon { margin-left: auto; font-style: normal; font-size: 1.15rem; font-weight: 400; }
.stat > small { font-size: .69rem; }
.stat-icon.peach, .mini-cover.peach, .guide-icon.peach { background: #f7eee0; color: #c6a777; }
.stat-icon.blue, .mini-cover.blue, .guide-icon.blue { background: #eaf0f5; color: #88a0b6; }
.stat-icon.violet, .mini-cover.violet { background: #f0ebf5; color: #ad97bd; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; align-items: stretch; }
.dashboard-columns > .card { margin: 0; }
.panel { padding: 24px; }
.text-btn { border: 0; background: transparent; color: #6a8a57; padding: 5px 0; font-size: .75rem; line-height: 1.6; white-space: nowrap; cursor: pointer; }
.text-btn:hover { color: #2e633e; text-decoration: underline; text-underline-offset: 3px; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.filter-row select { min-width: 136px; }
.search-box { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid #dfe6d9; border-radius: 8px; padding: 0 12px; color: #8b9d7d; min-width: 245px; }
.search-box > span { font-size: 1.4rem; line-height: 1; transform: rotate(-15deg); }
.search-box input { border: 0 !important; background: transparent !important; border-radius: 0 !important; width: 100%; min-height: 42px !important; padding-left: 2px !important; padding-right: 0 !important; }
.search-box:focus-within { outline: 2px solid #b2c79b; outline-offset: 2px; }
.search-box input:focus-visible { outline: 0; }
.course-card.card { padding: 0; margin: 0; }
.course-card .cover { border: 0; width: 100%; text-align: left; align-items: flex-start; justify-content: center; border-radius: 0; padding: 24px; height: 160px; }
.cover.mint { background: #e3eddc; color: #48633d; }
.cover.peach { background: #f2e7d6; color: #8d7150; }
.cover.violet { background: #eae5ee; color: #79648c; }
.cover strong { max-width: 80%; font-size: 1.2rem; font-weight: 600; line-height: 1.5; display: block; position: relative; z-index: 1; }
.cover-label { font-size: .65rem; margin-bottom: 9px; opacity: .65; letter-spacing: .1em; }
.cover-art { position: absolute; right: 22px; bottom: 24px; font-size: 3rem; line-height: 1; opacity: .35; z-index: 0; }
.cover-number { font-size: .55rem; letter-spacing: .13em; margin-top: 14px; opacity: .5; }
.course-body > p { font-size: .75rem; color: #96a08c; line-height: 1.9; min-height: 2.85em; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-body .course-meta { justify-content: space-between; gap: 5px; margin: 0 0 9px; font-size: .65rem; }
.course-body .course-meta span + span:before { display: none; }
.course-body .course-meta > span:first-child { color: #92a178; background: #f4f7ef; border-radius: 4px; padding: 2px 5px; }
.course-body > .btn.full { margin-top: 16px; }
.course-body .course-footer { margin-top: 0; }
.full { width: 100%; }
.person { display: flex; align-items: center; gap: 10px; }
.person strong { display: block; font-weight: 500; font-size: .8125rem; }
.person small { display: block; font-size: .65rem; color: #9ba88e; margin-top: 1px; }
.table-progress { display: flex; align-items: center; gap: 10px; min-width: 110px; }
.table-progress .progress { width: 80px; height: 5px; }
.table-progress > span { color: #80936e; font-size: .75rem; min-width: 32px; font-variant-numeric: tabular-nums; }
.recent-course { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; text-align: left; border: 0; padding: 0; color: var(--text); }
.recent-course > span:nth-child(2) { flex: 1; min-width: 0; }
.recent-course strong { font-size: .8125rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-course small { display: block; color: #9da88f; font-size: .65rem; margin-top: 3px; }
.recent-course > span:last-child { font-size: .65rem; }
.recent-course:hover strong { color: #67914d; }
.mini-cover { width: 48px; height: 48px; border-radius: 9px; background: #eaf1df; color: #8da974; display: grid; place-items: center; font-size: 1.45rem; flex-shrink: 0; }
.tip-box { padding: 16px 17px; background: #f4f7ee; border-radius: 9px; margin-top: 25px; }
.tip-box strong { font-size: .75rem; font-weight: 500; color: #788f65; }
.tip-box p { font-size: .69rem; color: #9aa78b; line-height: 1.9; margin: 6px 0 0; }
.badge.green { color: #66905c; background: #edf5e7; }
.learning-intro { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px; padding: 4px 0; }
.learning-intro h2 { font-size: 1.4rem; margin: 8px 0 9px; }
.learning-intro p { font-size: .8125rem; margin-bottom: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; padding-top: 25px; }
.guide-grid h3 { margin: 16px 0 10px; font-size: 1rem; font-weight: 500; }
.guide-grid p, .guide > p { font-size: .8125rem; line-height: 2; color: #8c9c7c; }
.guide > h2 { margin-bottom: 18px; }
.guide > p:last-child { margin-bottom: 0; }
.guide-icon { width: 44px; height: 44px; border-radius: 11px; background: #eaf1df; color: #8da974; display: grid; place-items: center; font-size: 1.6rem; }
.empty-symbol { display: grid; place-items: center; width: 60px; height: 60px; background: #eff4e8; color: #b2c29c; border-radius: 50%; margin: 0 auto 17px; font-size: 1.8rem; }
.modal-wide { max-width: 850px; }
.modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.modal-heading h2 { margin-bottom: 0; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: #f1f5eb; color: #8fa17c; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.icon-btn:hover { background: #e7eedc; }
.modal-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-actions .btn-danger:first-child { margin-right: auto; }
.field > span { color: #71855f; font-size: .8125rem; font-weight: 500; }
form > .field { margin-bottom: 17px; }
form > .form-grid { margin-bottom: 17px; }
.field textarea { width: 100%; }
.field input[type="file"] { font-size: .75rem; }
.field input[type="file"]::file-selector-button { color: #64844b; background: #eef4e6; border: 0; border-radius: 4px; padding: 5px 9px; margin-right: 12px; font: inherit; cursor: pointer; }
.form-error { color: #b66453; font-size: .8125rem; margin: 10px 0; }
.form-error:empty { margin: 0; }
.modal form > .muted, .modal > .muted { font-size: .8125rem; }
.member-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 24px; max-height: 380px; overflow-y: auto; }
.member-choice { display: flex; align-items: center; gap: 10px; background: #fafcf7; color: #6d835b; text-align: left; border: 1px solid #e7edde; border-radius: 8px; padding: 11px; cursor: pointer; font-size: .8125rem; }
.member-choice:hover { background: #f2f7eb; border-color: #c5d6b5; }
.member-choice:has(input:checked) { background: #edf5e5; border-color: #bbd0a7; }
.member-choice small { display: block; font-size: .65rem; margin-top: 2px; }
.member-choice .avatar { width: 32px; height: 32px; border-radius: 8px; font-size: .7rem; }
.detail-header { display: flex; align-items: center; gap: 13px; padding: 4px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.detail-header > div { flex: 1; }
.detail-header p { margin: 3px 0 0; font-size: .8125rem; }
.detail-header > strong { font-weight: 500; }
.member-course { border: 1px solid #e7edde; border-radius: 10px; padding: 18px; }
.member-course .progress-label { margin-bottom: 9px; }
.member-course .progress-label strong { font-weight: 500; font-size: .875rem; color: #5d784b; }
.member-course > small { display: block; margin-top: 10px; font-size: .75rem; }
.member-course details { font-size: .75rem; padding-top: 12px; margin-top: 12px; border-top: 1px solid #edf1e7; }
.member-course summary { cursor: pointer; color: #76925f; }
.member-course details p { margin: 13px 0 0; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #ecf0e6; }
.lesson-row:last-child { border: 0; }
.lesson-row > div { flex: 1; }
.lesson-row strong { display: block; font-weight: 500; font-size: .875rem; }
.lesson-row small { display: block; font-size: .75rem; margin-top: 3px; }
.lesson-row .lesson-index { background: #eff4e7; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; }
.back-link { margin-bottom: 18px; display: inline-block; }
.video-card { padding: 0; overflow: hidden; }
.video-card > video { border-radius: 0; }
.video-card .panel { padding: 25px; }
.video-card .panel h2 { font-size: 1.2rem; margin: 8px 0 12px; }
.video-card .panel > .muted { font-size: .8125rem; line-height: 1.9; }
.player-save { background: #f3f7ec; border-radius: 6px; padding: 8px 11px; font-size: .69rem; color: #8b9d76; margin: 18px 0 0; }
.video-placeholder { aspect-ratio: 16 / 9; background: #162a20; color: #e0ead9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.video-placeholder > span { font-size: 3rem; line-height: 1; color: #9eb18c; }
.video-placeholder h3 { color: #d4dfcb; margin: 2px 0 0; font-weight: 500; }
.video-placeholder p { font-size: .75rem; margin: 0 0 4px; color: #8f9f82; }
.video-placeholder .btn { border-color: #506841; color: #adc199; background: #263e2a; font-size: .75rem; min-height: 35px; }
.video-layout > aside h3 { font-weight: 550; margin: 0 0 20px; font-size: 1rem; }
.video-layout > aside > .lesson-list { margin-top: 24px; gap: 7px; }
.lesson-button { display: flex; align-items: center; gap: 10px; width: 100%; background: #fafcf7; border: 1px solid #edf1e5; border-radius: 8px; color: #839570; text-align: left; padding: 12px 11px; }
.lesson-button:hover { background: #f4f8ee; }
.lesson-button.selected { border-color: #d8e5cb; background: #eef5e6; color: #67884d; }
.lesson-button .lesson-index { color: #a6b595; font-size: .65rem; }
.lesson-button strong { font-size: .75rem; font-weight: 500; display: block; }
.lesson-button small { font-size: .65rem; color: #a3b092; display: block; margin-top: 3px; }
.login-card .eyebrow { display: block; }
.login-card .brand-mark { font-size: 1.8rem; }
.login-card form { margin-top: 25px; }
.login-help { font-size: .69rem; color: #a1ad91; margin: 21px 0 0; line-height: 1.9; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (min-width: 1550px) { .main-content { padding-top: 38px; } .stats { gap: 22px; } .course-grid { gap: 24px; } .cover { min-height: 170px; } }
@media (max-width: 1200px) {
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .dashboard-columns > .panel:last-child > .stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent-course { gap: 10px; }
  .recent-course > span:last-child { display: none; }
  .welcome-art { margin-right: 0; flex-basis: 210px; }
  .sidebar { width: 218px; padding-left: 16px; padding-right: 16px; }
  .main-shell { margin-left: 218px; }
  .topbar { padding: 0 26px; }
  .main-content { padding-left: 26px; padding-right: 26px; }
  .stats { gap: 13px; }
  .stat { padding: 19px 17px; }
  .stat-value { font-size: 1.8rem; }
  .course-grid { gap: 16px; }
  .cover { padding: 18px; min-height: 145px; }
  .cover h3, .cover-title { font-size: 1.1rem; }
  .video-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; }
}
@media (max-width: 1050px) {
  .welcome-card { padding: 26px; }
  .welcome-card h2 { font-size: 1.4rem; }
  .welcome-art { flex-basis: 165px; width: 165px; transform: scale(.85); transform-origin: right center; }
  .art-back { left: 0; }
  .art-front { left: 25px; }
  .dashboard-columns > .panel:last-child > .stack { display: flex; }
  .sidebar { width: 200px; }
  .main-shell { margin-left: 200px; }
  .brand { padding-left: 7px; }
  .brand-copy strong { font-size: 1.5rem; }
  .brand-copy small { font-size: .65rem; }
  .workspace-label small { font-size: .65rem; }
  .main-content { padding: 26px 24px 0; }
  .topbar { padding: 0 24px; }
  .topbar-actions { gap: 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .workspace-tag { display: none; }
  .video-layout { grid-template-columns: 1fr; }
  .lesson-list { max-height: 350px; overflow-y: auto; }
}
@media (max-width: 760px) {
  .welcome-card { padding: 24px; gap: 0; }
  .welcome-card h2 { font-size: 1.25rem; }
  .welcome-card p { font-size: .75rem; }
  .welcome-art { flex-basis: 150px; width: 150px; transform: scale(.8); margin-left: -25px; }
  .stat > div > strong { font-size: 1.8rem; }
  .stat > .metric-label { margin-bottom: 12px; }
  .stat > div:not(.stat-top) { margin-bottom: 6px; }
  .stat > div > .stat-icon { width: 29px; height: 29px; font-size: 1rem; }
  .stat > small { font-size: .65rem; }
  .panel { padding: 20px; }
  .dashboard-columns { gap: 20px; }
  .course-card .cover { height: 145px; padding: 20px; }
  .cover strong { font-size: 1.1rem; }
  .cover-art { font-size: 2.5rem; right: 18px; bottom: 20px; }
  .cover-number { font-size: .5rem; margin-top: 12px; }
  .toolbar > .filter-row { width: 100%; flex-wrap: nowrap; }
  .filter-row .search-box { flex: 1; min-width: 0; }
  .filter-row select { min-width: 117px; max-width: 130px; font-size: .75rem; }
  .search-box { min-width: 0; max-width: 100%; }
  .search-box input { font-size: .75rem !important; }
  .toolbar > .search-box { width: 100%; }
  .learning-intro { flex-direction: column; align-items: flex-start; gap: 13px; }
  .learning-intro h2 { font-size: 1.2rem; }
  .guide-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 17px; }
  .guide-grid > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .guide-grid .guide-icon { grid-row: span 2; align-self: start; }
  .guide-grid h3 { margin: 0 0 6px; font-size: .875rem; }
  .guide-grid p { margin: 0; font-size: .75rem; }
  .modal-heading { margin-bottom: 21px; }
  .modal-heading h2 { font-size: 1.15rem; }
  .member-choices { gap: 9px; }
  .member-choice { padding: 9px; gap: 8px; }
  .member-choice .avatar { width: 29px; height: 29px; font-size: .65rem; }
  .member-choice small { font-size: .6rem; }
  .video-card .panel { padding: 21px; }
  .video-placeholder { padding: 25px 18px; min-height: 210px; aspect-ratio: auto; }
  .video-placeholder > span { font-size: 2.5rem; }
  .video-placeholder h3 { font-size: .875rem; }
  .video-placeholder p { font-size: .69rem; }
  .sidebar { position: static; width: 100%; padding: 16px 20px 0; overflow: visible; }
  .brand { padding: 0; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-copy { display: flex; flex-direction: row; align-items: center; gap: 13px; }
  .brand-copy strong { font-size: 1.45rem; }
  .brand-copy small { font-size: .7rem; border-left: 1px solid #ffffff35; padding-left: 13px; margin-top: 0; letter-spacing: .05em; }
  .workspace-label, .sidebar-bottom, .nav-label { display: none; }
  .nav-list { display: flex; flex-direction: row; overflow-x: auto; gap: 6px; padding: 16px 0 12px; margin-top: 2px; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { padding: 10px 13px; width: auto; flex-shrink: 0; font-size: .8125rem; gap: 7px; border-radius: 7px; }
  .nav-item svg { width: 16px; height: 16px; }
  .nav-item.active:after { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 68px; padding: 0 20px; gap: 12px; }
  .topbar-actions { gap: 12px; }
  .topbar-divider { display: none; }
  .identity { gap: 7px; }
  .identity small { display: none; }
  .identity strong { font-size: .75rem; max-width: 80px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
  .avatar-small { width: 29px; height: 29px; font-size: .7rem; }
  .breadcrumb-home, .breadcrumb-divider { display: none; }
  .role-switch { min-height: 33px; padding: 6px 10px; font-size: .7rem; }
  .main-content { padding: 24px 20px 0; }
  .page-heading { margin-bottom: 23px; }
  h1 { font-size: 1.4rem; }
  .eyebrow { font-size: .6rem; margin-bottom: 7px; }
  .content-footer { flex-direction: column; gap: 4px; font-size: .69rem; padding: 18px 0; margin-top: 25px; }
  .card { padding: 20px; border-radius: 13px; }
  .stats { gap: 12px; margin-bottom: 22px; }
  .stat { padding: 17px 17px 15px; border-radius: 13px; }
  .stat-label, .metric-label { font-size: .75rem; margin-bottom: 10px; }
  .stat-value, .metric-value { font-size: 1.75rem; }
  .stat p { font-size: .65rem; margin-top: 9px; }
  .stat .stat-top { margin-bottom: 12px; }
  .stat-icon { width: 30px; height: 30px; border-radius: 8px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .hero { padding: 23px; gap: 10px; }
  .hero h2 { font-size: 1.15rem; }
  .hero p { font-size: .8125rem; }
  .hero-art { flex-basis: 75px; width: 75px; height: 100px; opacity: .8; }
  .hero-art:before { width: 75px; height: 75px; }
  .hero-art:after { width: 50px; height: 70px; top: 17px; right: 13px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .course-grid { gap: 16px; }
  .cover { min-height: 135px; padding: 18px; }
  .cover h3, .cover-title { font-size: 1.05rem; max-width: 90%; }
  .course-body, .course-info { padding: 17px; }
  .course-desc { font-size: .75rem; }
  .course-footer { flex-wrap: wrap; gap: 8px; }
  .toolbar { gap: 13px; }
  .toolbar > * { max-width: 100%; }
  .search { max-width: none; }
  .toolbar-group { flex-wrap: wrap; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 1.05rem; }
  .notice, .callout { font-size: .75rem; padding: 13px 15px; margin-bottom: 20px; }
  .modal-overlay { padding: 15px; align-items: center; }
  .modal { max-height: calc(100dvh - 30px); border-radius: 14px; padding: 23px; }
  .modal-header { margin-bottom: 20px; }
  .modal-header h2 { font-size: 1.15rem; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-grid .full, .field.full { grid-column: auto; }
  .modal-footer { margin-top: 20px; padding-top: 18px; }
  .definition-list > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  th, td { padding-left: 13px; padding-right: 13px; }
  .login-screen { padding: 18px 0; min-height: 55vh; }
  .login-card { padding: 28px; }
}
@media (max-width: 460px) {
  .welcome-art { display: none; }
  .welcome-card { padding: 23px; }
  .welcome-card h2 { font-size: 1.3rem; }
  .stat > div > strong { font-size: 1.65rem; }
  .stat > div > .stat-icon { display: none; }
  .course-card .cover { height: 165px; padding: 24px; }
  .cover strong { font-size: 1.25rem; }
  .cover-art { font-size: 3rem; right: 24px; bottom: 26px; }
  .cover-number { font-size: .55rem; margin-top: 14px; }
  .member-choices { grid-template-columns: 1fr; }
  .member-choice small { font-size: .69rem; }
  .modal-actions .btn-danger:first-child { margin-right: 0; }
  .video-placeholder { padding: 24px 16px; }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .main-content { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar-actions { gap: 9px; }
  .identity > span:last-child { display: none; }
  .course-grid { grid-template-columns: 1fr; gap: 18px; }
  .cover { min-height: 155px; padding: 24px; }
  .cover h3, .cover-title { font-size: 1.25rem; }
  .course-body, .course-info { padding: 20px; }
  .hero { padding: 22px; }
  .hero-art { display: none; }
  .stat { padding: 16px 15px; }
  .stat-value, .metric-value { font-size: 1.6rem; }
  .stat-icon { display: none; }
  .modal { padding: 21px; }
  .toolbar .actions { width: 100%; }
}
