:root, :root[data-theme] {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --soft: #f5f8f5;
  --ink: #202c28;
  --muted: #59675f;
  --line: #dce4de;
  --primary: #246746;
  --hover: #1b5037;
  --tint: #edf4ed;
  --sidebar: #24382e;
  --nav: #355443;
  --accent: #d7e8bc;
  --success: #246746;
  --success-bg: #edf5ef;
  --danger: #a13835;
  --danger-bg: #fff0ef;
  --warning: #795918;
  --warning-bg: #fbf3df;
  background: #fff;
  font: 14px/1.7 "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
html { background: #fff; scroll-padding-top: 24px; }
body { background: #fff; animation: none; }
body.page-leaving { animation: none; }
h1, h2, h3, .eyebrow, .brand b, .brand small, .stat strong { letter-spacing: 0; overflow-wrap: anywhere; }
h1 { font-size: 30px; font-weight: 650; }
h2 { font-size: 21px; font-weight: 650; }
h3 { font-size: 16px; }
p { line-height: 1.8; }
.app-frame.community-frame { margin: 0; min-width: 0; min-height: 100vh; min-height: 100dvh; background: #fff; }
.community-header { position: relative; z-index: 30; width: 100%; max-width: 1424px; min-height: 91px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); background: #fff; }
.community-wordmark { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.community-symbol { color: #275d3f; font: 700 43px/1 "Segoe UI", sans-serif; }
.community-symbol > span { color: #daaa38; }
.community-wordmark b { display: block; font-size: 19px; font-weight: 650; line-height: 1.35; }
.community-wordmark small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.community-nav { display: flex; align-items: stretch; align-self: stretch; gap: 23px; }
.community-nav > a { display: flex; align-items: center; position: relative; gap: 8px; white-space: nowrap; font-size: 14px; }
.community-nav > a > .icon { display: none; }
.community-nav > a:hover, .community-more summary:hover { color: var(--primary); }
.community-nav > a.active { font-weight: 650; color: var(--primary); }
.community-nav > a.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--primary); }
.community-more { position: relative; display: flex; align-content: center; }
.community-more summary { padding: 28px 0; cursor: pointer; white-space: nowrap; font-size: 14px; }
.community-more summary.active { color: var(--primary); font-weight: 650; }
.community-more-links { position: absolute; top: calc(100% - 10px); right: 0; min-width: 185px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 10px 30px #12332216; }
.community-more-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 4px; font-size: 14px; }
.community-more-links a:hover, .community-more-links a.active { color: var(--primary); background: var(--tint); }
.community-more-links .icon { width: 18px; height: 18px; }
.community-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.community-actions .icon-button { border-color: transparent; border-radius: 4px; background: transparent; color: var(--ink); width: 40px; height: 40px; }
.community-actions .icon-button:hover { background: var(--tint); }
.community-actions .account-trigger { border: 0; padding: 0; gap: 10px; max-width: 170px; }
.community-actions .avatar { background: #f0e2c9; color: #6a512a; border: 0; width: 36px; height: 36px; flex-shrink: 0; font-size: 14px; }
.community-actions .account-label { max-width: 100px; font-size: 13px; }
.community-actions .account-label small { font-size: 12px; }
.community-actions .community-menu { display: none; }
.page-content { padding: 32px 48px 48px; max-width: 1424px; min-width: 0; }
.page-heading { margin: 4px 0 28px; align-items: flex-start; }
.page-heading p { font-size: 14px; line-height: 1.8; max-width: 780px; }
.eyebrow { font-size: 12px; margin-bottom: 8px; }
.community-footer { width: 100%; max-width: 1424px; padding: 22px 48px; margin: 0 auto; font-size: 12px; flex-wrap: wrap; }
.community-footer b { color: var(--ink); font-weight: 600; }
.community-footer a:hover { color: var(--primary); }
.button { min-height: 42px; font-size: 14px; padding: 9px 16px; border-radius: 4px; white-space: normal; text-align: center; }
.button.small { min-height: 36px; font-size: 12px; padding: 6px 11px; }
.button.subtle { min-height: 34px; padding: 4px 0; }
.icon-button { border-radius: 4px; width: 40px; height: 40px; }
.badge { font-size: 12px; border-radius: 4px; max-width: 100%; white-space: normal; }
.text-link { font-size: 14px; min-height: 34px; }
.text-link .icon { width: 17px; height: 17px; }
.panel { padding: 22px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.panel-head { margin-bottom: 20px; }
.panel-head p, .section-title p, .help-text, .field-help, .results-count, .detail-list, .endpoint-value { font-size: 13px; }
.panel-head h2 { font-size: 20px; }
.notice { font-size: 14px; padding: 16px 18px; border: 0; border-left: 3px solid var(--primary); border-radius: 0; }
.notice p { font-size: 13px; }
.stats { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 22px 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-label { font-size: 13px; }
.stat small { font-size: 12px; }
.stat strong { font-size: 28px; }
.stat strong.word-value { font-size: 22px; }
.detail-list > div { font-size: 14px; }
.compact-list p { font-size: 13px; }
.step-no { min-width: 28px; height: 28px; font-size: 13px; border-radius: 4px; }
.quick-link { border-radius: 6px; }
.quick-link p { font-size: 13px; }
.tile-icon { border-radius: 6px; }
.feature-panel { padding: 25px; color: #fff; background: #284535; border: 0; }
.feature-panel p { font-size: 14px; color: #e0ebe0; }
.feature-panel .feature-meta { font-size: 12px; }
.empty-state { padding: 30px 20px; border: 1px dashed var(--line); border-radius: 4px; }
.empty-state h3 { font-size: 15px; }
.empty-state p, .loading-state, .load-error p { font-size: 14px; }
.load-error { border-radius: 4px; }
.table-wrap { border-radius: 5px; }
table { font-size: 14px; }
th { font-size: 12px; }
th, td { padding: 13px 16px; }
td small { font-size: 12px; }
.toolbar { padding-bottom: 18px; border-bottom: 1px solid var(--line); gap: 14px; }
.search-field { border-radius: 4px; }
.search-field input { font-size: 14px; }
.filter-button { font-size: 14px; min-height: 40px; border-radius: 4px; }
.results-count { margin-bottom: 18px; }
.tab-links { gap: 26px; }
.tab-links a { font-size: 14px; }
.lesson-group { margin-bottom: 26px; }
.group-head { gap: 20px; padding-bottom: 18px; }
.group-head p { font-size: 14px; }
.stage-number { color: var(--primary); opacity: 1; font-size: 28px; }
.lesson-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.lesson-link { display: flex; flex-direction: column; align-items: stretch; min-height: 175px; border-radius: 6px; padding: 20px; }
.lesson-link h3 { font-size: 15px; }
.lesson-meta { font-size: 12px; display: flex; justify-content: space-between; }
.download-label { display: flex; justify-content: space-between; margin-top: auto; font-size: 12px; max-width: none; flex-wrap: nowrap; }
.lesson-group:nth-child(2) .stage-number { color: #a74932; }
.lesson-group:nth-child(3) .stage-number { color: #385d93; }
.resource-strip { border-radius: 0; padding: 22px; }
.resource-strip p { font-size: 14px; }
.task-card { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.task-card > p { font-size: 14px; }
.task-deliverable { font-size: 14px; }
.task-deliverable b, .task-foot .text-link { font-size: 12px; }
.task-foot .button { min-height: 40px; }
.practice-step h3 { font-size: 15px; }
.practice-step p { font-size: 14px; }
.about-intro { border-radius: 0; background: #edf4ed; color: var(--ink); padding: 30px; }
.about-intro .eyebrow, .about-intro h2 { color: var(--primary); }
.about-intro p, .about-aside span { font-size: 14px; color: var(--muted); }
.about-aside { border-color: #cbdacd; }
.about-aside b { font-size: 15px; }
.principle-grid { border-bottom: 1px solid var(--line); }
.principle-grid p { font-size: 14px; }
label { font-size: 14px; }
input:not([type="checkbox"]), textarea, select { border-radius: 4px; border-color: #b8c6bd; font-size: 14px; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #68796d; }
.form-message { border-radius: 4px; font-size: 14px; }
.account-dialog, .confirm-dialog { border-radius: 8px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
.dialog-head p, .confirm-dialog p, .dialog-foot > span { font-size: 14px; }
.toast { font-size: 14px; border-radius: 6px; }
.admin-meta, .admin-summary { font-size: 13px; }
.admin-toolbar select { font-size: 14px; }
.invitation-result, .org-page .secret-result { border-radius: 6px; }
.invitation-result h3 { font-size: 16px; }
.invitation-result p, .copy-row input { font-size: 13px; }
.org-page .department-tile { border-radius: 6px; border-top: 3px solid #87af92; }
.org-page .department-tile:nth-child(2) { border-top-color: #d29784; }
.org-page .department-tile:nth-child(3) { border-top-color: #89a6cd; }
.org-page .department-tile:nth-child(4) { border-top-color: #cbb76b; }
.org-page .department-tile p, .org-page ul.responsibilities, .org-page .org-note, .org-page .org-form legend { font-size: 14px; }
.org-page .presidium-seats dt { font-size: 14px; }
.org-page .entry-meta, .org-page details > summary { font-size: 13px; }
.org-page .entry-body { font-size: 14px; }
.org-page .own-account p { font-size: 14px; }
.org-page .own-account strong { font-size: 28px; }
.org-page .toolbar label { min-width: 0; }
.limits-grid .limit-item { border-radius: 4px; }
.limit-item span, .model-header small { font-size: 12px; }
@media (max-width: 1250px) {
  .community-header { padding: 0 28px; gap: 24px; }
  .community-nav { gap: 18px; }
  .community-actions .account-label { display: none; }
  .page-content { padding: 28px; }
  .community-footer { padding: 22px 28px; }
}
@media (max-width: 1000px) {
  .community-header { min-height: 80px; padding: 15px 28px; flex-wrap: wrap; gap: 0; }
  .community-actions .community-menu { display: inline-grid; }
  .community-nav { order: 3; flex: 1 0 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin-top: 16px; border-top: 1px solid var(--line); }
  .community-nav > a { min-height: 48px; padding: 8px 12px; }
  .community-nav > a > .icon { display: inline; width: 18px; height: 18px; }
  .community-nav > a.active { background: var(--tint); }
  .community-nav > a.active::after { display: none; }
  .community-more { grid-column: 1 / -1; display: block; border-top: 1px solid var(--line); }
  .community-more summary { padding: 13px 12px; }
  .community-more-links { position: static; border: 0; padding: 0 0 8px; box-shadow: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .lesson-list { grid-template-columns: 1fr; }
  .lesson-link { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 16px; }
  .lesson-link .lesson-meta { grid-column: 1; justify-content: flex-start; gap: 16px; }
  .lesson-link h3 { grid-column: 1; grid-row: 2; }
  .lesson-link .download-label { grid-column: 2; grid-row: 1 / 3; margin: auto 0; gap: 9px; }
}
@media (max-width: 600px) {
  .community-header { padding: 14px 20px; min-height: 76px; }
  .community-symbol { font-size: 36px; }
  .community-wordmark { gap: 10px; }
  .community-wordmark b { font-size: 17px; }
  .community-wordmark small { font-size: 12px; margin-top: 2px; }
  .community-actions { gap: 4px; }
  .community-actions > a { display: none; }
  .community-actions .avatar { width: 32px; height: 32px; }
  .page-content { padding: 24px 20px 32px; }
  h1 { font-size: 26px; }
  .page-heading { flex-wrap: wrap; gap: 16px; }
  .page-heading p { font-size: 14px; }
  .page-heading > .button { font-size: 14px; }
  .community-footer { padding: 20px; gap: 6px; font-size: 12px; }
  .community-footer > * { width: 100%; }
  .panel { padding: 20px 0; }
  .task-card { padding: 20px; }
  .feature-panel { padding: 22px; }
  .task-grid, .grid-two, .grid-equal { grid-template-columns: minmax(0,1fr); }
  .stats { grid-template-columns: minmax(0,1fr); }
  .stat, .stat:first-child { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 14px; }
  .stat:last-child { border-bottom: 0; }
  .stat strong, .stat strong.word-value { grid-row: 1 / 3; grid-column: 2; font-size: 24px; margin: 0; }
  .stat small { font-size: 12px; }
  .stat-label { font-size: 14px; }
  .stat-label .icon { display: none; }
  .button-row { gap: 10px; }
  .button { max-width: 100%; }
  .toolbar .search-field { flex-basis: 100%; min-width: 0; }
  .lesson-link { padding: 16px; }
  .lesson-link h3 { font-size: 14px; }
  .lesson-link .download-label { font-size: 12px; flex-direction: column; }
  .group-head { gap: 14px; }
  .group-head h2 { font-size: 20px; }
  .about-intro { padding: 24px; }
  .org-page .own-account strong { font-size: 24px; }
  .org-page .presidium-seats dd { font-size: 18px; }
  .account-dialog, .confirm-dialog { padding: 22px; }
  .dialog-foot { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
