/* ============================================================
   43school · 共享设计系统  styles.css
   一套 vanilla CSS 设计系统：design tokens (:root 变量) + 组件类。
   所有页面 <link rel="stylesheet" href="styles.css"> 复用。
   中文界面 · 系统/思源字体栈 · 主色靛蓝（可信 + 学习成长）。
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Primitive · 品牌与基础色 */
  --primitive-brand-700: #2D268B;
  --primitive-brand-600: #372FA8;
  --primitive-brand-500: #4338CA;
  --primitive-brand-100: #E4E0FF;
  --primitive-brand-50:  #F1EFFF;
  --primitive-yellow-500: #FFBB00;
  --primitive-green-500: #38CA5A;
  --primitive-red-400: #FF8383;
  --primitive-ink-100: #111111;
  --primitive-paper: #FFFFFF;

  /* Semantic · 品牌与交互 */
  --color-primary:        var(--primitive-brand-500); /* 品牌蓝：主按钮/链接/重点 */
  --color-primary-hover:  var(--primitive-brand-600);
  --color-primary-active: var(--primitive-brand-700);
  --color-primary-soft:   var(--primitive-brand-50);
  --color-primary-soft-2: var(--primitive-brand-100);
  --color-primary-fg:     var(--primitive-paper);
  --color-accent:         var(--primitive-yellow-500);
  --color-primary-03: rgba(67, 56, 202, .03);
  --color-primary-05: rgba(67, 56, 202, .05);
  --color-primary-08: rgba(67, 56, 202, .08);
  --color-primary-10: rgba(67, 56, 202, .1);
  --color-primary-18: rgba(67, 56, 202, .18);
  --color-primary-20: rgba(67, 56, 202, .2);
  --color-primary-30: rgba(67, 56, 202, .3);

  /* 语义色：体检 3 档 / 课程标签 复用同一组 */
  --color-success:        var(--primitive-green-500); /* 达标/免费 */
  --color-success-soft:   #dcfce7;
  --color-warning:        var(--primitive-yellow-500); /* 偏弱 */
  --color-warning-soft:   #fef3c7;
  --color-danger:         var(--primitive-red-400); /* 弱 */
  --color-danger-soft:    #fee2e2;
  --color-member:         #8A6500;   /* 会员/辅助强调 */
  --color-member-soft:    #FFF4CC;   /* 辅助黄浅底 */
  --color-info:           #0891b2;   /* 入门/信息（青） */
  --color-info-soft:      #cffafe;

  /* 中性色（产品页默认） */
  --color-bg:        #F7F8FC;
  --color-surface:   var(--primitive-paper);
  --color-surface-raised: var(--primitive-paper);
  --color-surface-2: #FAFAFC;
  --color-border:    #E6E8F0;
  --color-border-strong: #D8DBE6;
  --color-text:        var(--primitive-ink-100);
  --color-text-muted:  rgba(17, 17, 17, .6);
  --color-text-subtle: rgba(17, 17, 17, .3);
  --color-text-disabled: rgba(17, 17, 17, .3);
  --color-ink-10: rgba(17, 17, 17, .1);
  --color-ink-05: rgba(17, 17, 17, .05);
  --color-divider: var(--color-ink-10);
  --color-overlay: rgba(17, 17, 17, .35);
  --color-focus-ring: var(--color-primary);

  /* 字体栈：系统优先 + 思源/Noto 中文回退 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans SC", "Noto Sans SC", "WenQuanYi Micro Hei",
               sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas,
               "Courier New", monospace;

  /* 字号（rem · 16px 基准） */
  --text-xs:   0.75rem;   /* 12 标签/脚注 */
  --text-sm:   0.875rem;  /* 14 正文次级/表格 */
  --text-base: 1rem;      /* 16 正文 */
  --text-lg:   1.125rem;  /* 18 卡片标题 */
  --text-xl:   1.25rem;   /* 20 小节标题 */
  --text-section: 1.375rem; /* 22 产品页章节标题 */
  --text-2xl:  1.5rem;    /* 24 区块标题 */
  --text-3xl:  1.875rem;  /* 30 页面大标题 */
  --text-4xl:  2.25rem;   /* 36 hero 次级 */
  --text-5xl:  3rem;      /* 48 hero 主标题 */

  --leading-tight:  1.25;
  --leading-normal: 1.6;

  /* 间距（4px 栅格） */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-15: 60px;
  --space-16: 64px;
  --space-20: 80px;

  /* 圆角 */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .04);
  --shadow-md: 0 4px 12px rgba(17, 17, 17, .06);
  --shadow-lg: 0 12px 32px rgba(17, 17, 17, .1);
  --shadow-primary: 0 8px 24px rgba(67, 56, 202, .24);
  --shadow-dialog: 0 18px 40px -28px rgba(17, 17, 17, .28);
  --shadow-report: 0 10px 30px rgba(67, 56, 202, .2);

  /* 布局尺寸 */
  --container:    1200px;
  --topnav-h:     64px;
  --sidebar-w:    248px;
  --section-y-web: 90px;
  --section-y-h5: 56px;

  --transition: 160ms cubic-bezier(.4, 0, .2, 1);

  /* Component · controls, cards, dialogs, tables */
  --control-height-sm: 32px;
  --control-height-md: 40px;
  --control-height-lg: 48px;
  --control-radius: var(--radius-md);
  --control-border: var(--color-border-strong);
  --control-focus-ring: 0 0 0 3px var(--color-primary-08);
  --card-bg: var(--color-surface);
  --card-border: var(--color-primary-10);
  --card-padding: var(--space-6);
  --card-radius: var(--radius-lg);
  --dialog-bg: var(--color-surface);
  --dialog-overlay-bg: var(--color-overlay);
  --dialog-padding: var(--space-6);
  --dialog-radius: var(--radius-lg);
  --dialog-shadow: var(--shadow-dialog);
  --table-header-bg: var(--color-surface-2);
  --table-row-border: var(--color-border);
  --status-pass: var(--primitive-green-500);
  --status-weak: var(--primitive-yellow-500);
  --status-poor: var(--primitive-red-400);
  --opacity-disabled: .5;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0 0 var(--space-3); line-height: var(--leading-tight); font-weight: 700; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p  { margin: 0 0 var(--space-4); }
a  { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
code, kbd { font-family: var(--font-mono); font-size: .9em; }
hr { border: 0; border-top: 1px dashed var(--color-divider); margin: var(--space-6) 0; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.container-narrow { max-width: 820px; }

.section { padding-block: var(--section-y-web); }
.section-sm { padding-block: var(--space-15); }
.section-head { text-align: left; max-width: 100%; margin: 0 0 var(--space-8); }
.section-title { font-size: var(--text-section); font-weight: 600; margin-bottom: var(--space-2); }
.section-sub { color: var(--color-text-muted); font-size: var(--text-base); margin: 0; }
.section-alt { background: var(--color-surface); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row   { display: flex; align-items: center; gap: var(--space-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.wrap  { flex-wrap: wrap; }
.spacer { flex: 1; }

/* 工具类 */
.text-center  { text-align: center; }
.muted   { color: var(--color-text-muted); }
.subtle  { color: var(--color-text-subtle); }
.small   { font-size: var(--text-sm); }
.tiny    { font-size: var(--text-xs); }
.strong  { font-weight: 700; }
.mono    { font-family: var(--font-mono); }
.nowrap  { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: inherit; font-size: var(--text-sm); font-weight: 600; line-height: 1;
  padding: 10px 18px; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }

.btn-primary { background: var(--color-primary); color: var(--color-primary-fg); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-primary-fg); box-shadow: var(--shadow-primary); }

.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-ghost:hover { background: var(--color-surface-2); color: var(--color-text); border-color: var(--color-border-strong); }

.btn-soft { background: var(--color-primary-soft); color: var(--color-primary); }
.btn-soft:hover { background: var(--color-primary-soft-2); color: var(--color-primary-hover); }

.btn-lg { font-size: var(--text-base); padding: 14px 26px; border-radius: var(--radius-full); }
.btn-sm { font-size: var(--text-xs); padding: 7px 13px; border-radius: var(--radius-full); }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; pointer-events: none; }

/* ---------- 5. Card ---------- */
.card {
  background: var(--card-bg); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); box-shadow: none;
  padding: var(--card-padding); transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card-hover:hover { box-shadow: var(--shadow-sm); border-color: var(--color-border-strong); transform: translateY(-1px); }
.card-pad-lg { padding: var(--space-8); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card-title { font-size: var(--text-lg); font-weight: 700; margin: 0; }
.card-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin: 2px 0 0; }
.card-foot { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px dashed var(--color-divider); }
.card-accent { border-top: 3px solid var(--color-primary); }
.card-feature { border: 2px solid var(--color-primary); box-shadow: var(--shadow-md); }

/* ---------- 6. Badge & variants ---------- */
.badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: var(--text-xs); font-weight: 600; line-height: 1;
  min-height: 22px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--color-surface-2); color: var(--color-text-muted);
  border: 1px solid transparent;
}
.badge-dot { gap: 5px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 收费维度 */
.badge-free    { background: var(--color-success-soft); color: var(--color-success); }
.badge-member  { background: var(--color-member-soft);  color: var(--color-member); }
/* 课程层级 */
.badge-intro    { background: var(--color-info-soft);     color: var(--color-info); }      /* 入门 */
.badge-advanced { background: var(--color-primary-soft);  color: var(--color-primary); }    /* 进阶 */
/* 必修体检 3 档 */
.badge-pass { background: var(--color-success-soft); color: var(--color-success); }  /* 达标 */
.badge-weak { background: var(--color-warning-soft); color: var(--color-warning); }  /* 偏弱 */
.badge-poor { background: var(--color-danger-soft);  color: var(--color-danger); }   /* 弱 */
/* 领域/中性 */
.badge-domain  { background: var(--color-primary-soft); color: var(--color-primary); }
.badge-neutral { background: var(--color-surface-2); color: var(--color-text-muted); border-color: var(--color-border); }

/* ---------- 7. Topnav（官网 + 学员中心共用） ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .6); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.topnav-inner {
  position: relative;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6);
  height: var(--topnav-h); display: flex; align-items: center; gap: var(--space-8);
}
.topnav-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 800; color: var(--color-text); font-size: var(--text-lg); }
.topnav-brand:hover { color: var(--color-text); }
.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}
.topnav-logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: var(--text-sm); font-weight: 800; color: #fff;
  background: var(--color-primary);
}
.topnav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--space-6); margin-left: 0;
}
.topnav-link { color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500; }
.topnav-link:hover, .topnav-link.active { color: var(--color-primary); }
.topnav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.topnav-actions .btn-ghost {
  width: 84px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
  color: #fff;
}
.topnav-actions .btn-ghost:hover {
  border-color: var(--color-primary-active);
  background: var(--color-primary-active);
  color: #fff;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 640px;
  padding-block: 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 420px at 78% -8%, var(--color-primary-soft-2), transparent 60%),
    radial-gradient(700px 360px at 8% 8%, #f3e8ff, transparent 55%),
    var(--color-bg);
}
.hero .container { width: 100%; }
.hero-inner {
  width: calc(100% - 480px);
  max-width: 660px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--space-5);
  padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--color-surface); border: 1px solid var(--color-border);
  font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); box-shadow: var(--shadow-sm);
}
.hero-title { font-size: var(--text-5xl); letter-spacing: -.02em; margin-bottom: var(--space-4); }
.hero-title .accent {
  background: var(--color-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title-image {
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin-bottom: var(--space-4);
}
.hero-copy {
  max-width: 540px;
  margin-bottom: var(--space-8);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  opacity: .6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-actions .btn-lg {
  height: 60px;
  padding: 0;
  border-radius: var(--radius-full);
}
.hero-actions .btn-primary { width: 200px; }
.hero-actions .btn-ghost {
  width: 150px;
  font-weight: 400;
}
/* ---------- 9. Steps（怎么用 3 步） ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding-top: var(--space-2); }
.step-num {
  width: 38px; height: 38px; border-radius: var(--radius-full); display: grid; place-items: center;
  font-weight: 800; color: #fff; margin-bottom: var(--space-3);
  background: var(--color-primary);
}
.step-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); }
.step-desc { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* ---------- 10. 学员中心布局：topnav + sidebar + main ---------- */
.member-layout { display: flex; align-items: flex-start; max-width: var(--container); margin-inline: auto; }
.sidebar {
  position: sticky; top: var(--topnav-h);
  width: var(--sidebar-w); flex-shrink: 0;
  height: calc(100vh - var(--topnav-h));
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--color-border);
  display: flex; flex-direction: column;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-label { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: .04em; padding: var(--space-2) var(--space-3); }
.sidebar-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 12px; border-radius: var(--radius-md);
  color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.sidebar-item:hover { background: var(--color-surface-2); color: var(--color-text); }
.sidebar-item.active { background: var(--color-primary-soft); color: var(--color-primary); font-weight: 600; }
.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-foot { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.sidebar-foot .sidebar-item { color: var(--color-text-subtle); }

.member-main { flex: 1; min-width: 0; padding: var(--space-8) var(--space-6); }
.member-head { margin-bottom: var(--space-6); }
.member-head h1 { font-size: var(--text-2xl); margin-bottom: var(--space-1); }

/* ---------- 11. Stat（会员 / 积分 数字块） ---------- */
.stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.stat-label { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.stat-value { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.stat-value .unit { font-size: var(--text-base); font-weight: 600; color: var(--color-text-muted); margin-left: 4px; }
.stat-foot { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-subtle); }

/* ---------- 12. Avatar ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: var(--radius-md); flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: var(--text-sm);
  background: var(--color-primary);
}
.avatar-lg { width: 52px; height: 52px; border-radius: var(--radius-lg); font-size: var(--text-lg); }
.avatar-cc     { background: var(--color-primary); }  /* Claude Code */
.avatar-codex  { background: rgba(67, 56, 202, .75); }  /* Codex */
.avatar-claw   { background: var(--color-accent); color: #111; }  /* claw 系 */

/* ---------- 13. Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--card-bg); }
.table thead th {
  text-align: left; font-weight: 600; color: var(--color-text-muted); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .03em;
  padding: var(--space-3) var(--space-4); background: var(--color-surface-2); border-bottom: 1px dashed var(--color-divider);
}
.table tbody td { padding: var(--space-3) var(--space-4); border-bottom: 1px dashed var(--color-divider); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--color-surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .pos { color: var(--color-success); font-weight: 600; }
.table .neg { color: var(--color-danger); font-weight: 600; }

/* ---------- 14. Progress（必修进度 X/6） + Meter（6维档位） ---------- */
.progress { height: 8px; border-radius: var(--radius-full); background: var(--color-surface-2); overflow: hidden; }
.progress-bar { height: 100%; border-radius: var(--radius-full); background: var(--color-primary); transition: width var(--transition); }
.progress-label { display: flex; justify-content: space-between; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.progress-label .strong { color: var(--color-text); }

/* 6维做事素养：一行一维 = 名 + 档位条 + 档位 badge */
.meter { display: flex; flex-direction: column; gap: var(--space-4); }
.meter-row { display: grid; grid-template-columns: 132px 1fr 64px; align-items: center; gap: var(--space-4); }
.meter-name { font-size: var(--text-sm); font-weight: 600; }
.meter-track { height: 8px; border-radius: var(--radius-full); background: var(--color-surface-2); overflow: hidden; }
.meter-track-segmented { display: flex; gap: 6px; overflow: visible; background: transparent; }
.meter-segment { flex: 1 1 0; height: 8px; border-radius: var(--radius-full); background: var(--color-surface-2); }
.meter-segment.pass.active { background: var(--color-success); }
.meter-segment.weak.active { background: var(--color-warning); }
.meter-segment.poor.active { background: var(--color-danger); }
.meter-fill { height: 100%; border-radius: var(--radius-full); }
.meter-fill.pass { width: 100%; background: var(--color-success); }
.meter-fill.weak { width: 60%;  background: var(--color-warning); }
.meter-fill.poor { width: 28%;  background: var(--color-danger); }
.meter-tier { text-align: right; }

/* ---------- 15. List rows（纠错 Top / 消耗记录 等） ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px dashed var(--color-divider); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.rank-num { width: 22px; height: 22px; border-radius: var(--radius-full); display: grid; place-items: center; font-size: var(--text-xs); font-weight: 700; background: var(--color-primary-soft); color: var(--color-primary); flex-shrink: 0; }

/* ---------- 16. Course card（课程目录 / 评估推荐） ---------- */
.course-card { display: flex; flex-direction: column; gap: var(--space-3); }
.course-card .card-title { font-size: var(--text-base); }
.course-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }

/* ---------- 17. Pricing ---------- */
.price { font-size: var(--text-4xl); font-weight: 800; letter-spacing: -.02em; }
.price .per { font-size: var(--text-base); font-weight: 600; color: var(--color-text-muted); }
.price-list { list-style: none; padding: 0; margin: var(--space-5) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.price-list li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text); }
.price-list li::before { content: "✓"; color: var(--color-success); font-weight: 800; flex-shrink: 0; }

/* ---------- 18. Index page refinement（非 hero） ---------- */
.home-flow,
.install-section,
.courses-section,
.pricing-section {
  --index-ink: #111111;
  --index-ink-60: rgba(17, 17, 17, .6);
  --index-ink-30: rgba(17, 17, 17, .3);
  --index-ink-10: rgba(17, 17, 17, .1);
  --index-ink-05: rgba(17, 17, 17, .05);
  --index-primary-10: rgba(67, 56, 202, .1);
  --index-primary-05: rgba(67, 56, 202, .05);
  --index-accent-10: var(--color-accent);
  --index-paper-60: rgba(255, 255, 255, .6);
  color: var(--index-ink);
}

.home-flow .section-head,
.install-section .section-head,
.courses-section .section-head,
.pricing-section .section-head {
  max-width: 680px;
  margin: 0 0 var(--space-6);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}
.home-flow .section-title,
.install-section .section-title,
.courses-section .section-title,
.pricing-section .section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0;
}
.home-flow .section-sub,
.install-section .section-sub,
.courses-section .section-sub,
.pricing-section .section-sub {
  color: var(--index-ink-60);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.home-flow .btn,
.install-section .btn,
.courses-section .btn,
.pricing-section .btn {
  border-radius: var(--radius-full);
}

.home-flow {
  padding-block: 90px;
  background: #fff;
}
.install-section,
.courses-section,
.pricing-section {
  padding-block: 90px;
}
.home-flow .steps {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--index-ink-10);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.home-flow .step {
  min-height: 176px;
  padding: var(--space-6);
  border-right: 1px solid var(--index-ink-10);
}
.home-flow .step:last-child { border-right: 0; }
.home-flow .step-num,
.install-section .step-num {
  width: 30px;
  height: 30px;
  margin-bottom: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.home-flow .step-title,
.install-section .step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--index-ink);
}
.home-flow .step-desc,
.install-section .step-desc {
  color: var(--index-ink-60);
  font-size: 14px;
  line-height: 1.55;
}

.install-section {
  background: rgba(67, 56, 202, .05);
}
.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 60px;
  align-items: stretch;
}
.install-section .section-head {
  max-width: 100%;
}
.install-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.install-left .section-head {
  margin-bottom: 0;
}
.install-command {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: 0;
  padding: var(--space-6);
  border-color: rgba(67, 56, 202, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px -34px rgba(17, 17, 17, .38);
}
.install-command::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  border-radius: 18px 0 0 18px;
  background: var(--color-primary);
}
.install-command-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.install-kicker {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.command-copy {
  color: var(--index-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}
.command-copy b {
  color: var(--color-primary);
  font-weight: 600;
}
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: space-between;
  border-top: 0;
}
.install-steps .step {
  padding: 0 0 var(--space-5);
  border-left: 0;
  border-bottom: 1px solid var(--index-ink-10);
}
.install-steps .step + .step {
  padding-top: var(--space-5);
  padding-left: 0;
  border-left: 0;
}
.install-steps .step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.install-note {
  border-color: var(--index-primary-10);
  border-radius: 18px;
  background: var(--index-primary-05);
  color: var(--index-ink-60);
  line-height: 1.55;
}

.courses-section {
  background: #fff;
}
.course-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 48px;
  min-height: 48px;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding: 0 18px;
  border-top: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}
.course-group-head:first-of-type {
  margin-top: 0;
}
.course-group-main {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.courses-section .course-group-head .badge {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.courses-section .course-group-head .badge-domain {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.course-group-head h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.course-group-head .muted {
  flex: 1 1 auto;
  color: rgba(255, 255, 255, .68);
  text-align: right;
}
.courses-section .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.courses-section .course-card {
  min-height: 150px;
  padding: var(--space-6);
  border-color: var(--index-ink-10);
  border-radius: 18px;
  background: rgba(67, 56, 202, .025);
  box-shadow: none;
}
.courses-section .course-card:hover {
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(17, 17, 17, .28);
  transform: translateY(-1px);
}
.courses-section .card-title {
  color: var(--index-ink);
  font-size: 16px;
  font-weight: 600;
}
.courses-section .card-sub {
  color: var(--index-ink-60);
  line-height: 1.55;
}
.courses-section .badge,
.pricing-section .badge {
  border-color: var(--index-ink-10);
  background: #fff;
  color: var(--index-ink-60);
}
.courses-section .badge-domain,
.pricing-section .badge-domain,
.courses-section .badge-advanced {
  border-color: var(--index-primary-10);
  background: var(--index-primary-05);
  color: var(--color-primary);
}
.courses-section .badge-free,
.pricing-section .badge-free {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--index-ink);
}
.courses-section .badge-member,
.pricing-section .badge-member {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--index-ink);
}
.courses-section .badge-intro {
  border-color: var(--index-primary-10);
  background: #fff;
  color: var(--color-primary);
}
.courses-section .text-center {
  margin-top: var(--space-6);
}
.courses-section .text-center .btn {
  border-radius: var(--radius-full);
}

.pricing-section {
  background: rgba(67, 56, 202, .05);
}
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.pricing-section .card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-color: var(--index-ink-10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
}
.pricing-section .card-feature {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.pricing-section .card-head {
  align-items: stretch;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 58px;
  margin-bottom: var(--space-5);
}
.pricing-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 0;
}
.pricing-section .card-head .badge {
  flex: 0 0 auto;
  width: fit-content;
}
.pricing-section .card-title {
  color: var(--index-ink);
  font-size: 18px;
  font-weight: 600;
}
.pricing-section .card-feature .card-title,
.pricing-section .card-feature .price {
  color: #fff;
}
.pricing-section .card-feature .card-sub,
.pricing-section .card-feature .price .per,
.pricing-section .card-feature .price-list li {
  color: rgba(255, 255, 255, .72);
}
.pricing-section .card-feature .badge {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.pricing-section .card-feature .price-list li::before {
  color: #fff;
}
.pricing-section .card-feature .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
  box-shadow: none;
}
.pricing-section .card-feature .btn-primary:hover {
  background: rgba(255, 255, 255, .88);
  color: var(--color-primary);
}
.pricing-section .card-sub,
.pricing-section .price .per {
  color: var(--index-ink-60);
}
.pricing-section .price {
  min-height: 48px;
  color: var(--index-ink);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
}
.pricing-section .price-list {
  margin-bottom: var(--space-6);
}
.pricing-section .price-list li {
  color: var(--index-ink-60);
}
.pricing-section .price-list li::before {
  color: var(--color-primary);
}
.credit-packs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-content: flex-start;
  min-height: 48px;
  margin: 0 0 var(--space-5);
}
.pricing-section .btn-block {
  margin-top: auto;
}

/* ---------- 18. Report share page hero（③④ 分享页顶） ---------- */
.report-page {
  min-width: 640px;
}
.report-page .report-container {
  width: 640px;
  max-width: none;
  padding-inline: 0;
}
.report-page .footer-bottom {
  width: 640px;
  max-width: none;
  padding-inline: 0;
}
.report-page .section-sm + .section-sm {
  padding-top: 0;
}
.report-stack {
  gap: var(--space-6);
}
.report-stack-loose {
  gap: var(--space-10);
}
.report-page .card,
.report-page .cert,
.report-page .cta-banner,
.report-page .notice {
  border-color: rgba(67, 56, 202, .1);
}
.report-page .card,
.report-page .cert,
.report-page .cta-banner {
  border-radius: var(--radius-lg);
}
.report-page .card {
  box-shadow: none;
}
.report-page .card-hover:hover {
  border-color: rgba(67, 56, 202, .3);
  box-shadow: none;
  transform: translateY(-1px);
}
.report-page .card-pad-lg {
  padding: var(--space-6);
}
.report-card-head {
  margin-bottom: var(--space-4);
}
.report-card-title {
  font-size: var(--text-xl);
}
.report-chip-row {
  gap: var(--space-2);
}
.report-section-head {
  margin-bottom: var(--space-4);
}
.report-section-head h2 {
  margin-bottom: var(--space-2);
}
.report-section-head p {
  margin: 0;
}
.report-course-title-row {
  align-items: flex-start;
  gap: var(--space-3);
}
.report-page .course-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.report-page .course-meta {
  margin-top: auto;
}
.report-cta-copy {
  max-width: 520px;
  margin: 0 auto var(--space-6);
}
.progress-67 {
  width: 67%;
}
.report-head {
  background: var(--color-primary);
  color: #fff; padding: var(--space-10) 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.report-head .badge { background: rgba(255,255,255,.2); color: #fff; }
.report-head h1 { color: #fff; }
.report-head .muted { color: rgba(255,255,255,.85); }

/* 底部固定 CTA（分享页拉新） */
.cta-banner {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-8); text-align: center; box-shadow: none;
}
.cta-banner h3 { font-size: var(--text-section); font-weight: 600; }

/* ---------- 19. Footer（官网页脚，全站复用） ---------- */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding-block: var(--space-12) var(--space-8); margin-top: var(--space-20); }
.footer-inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer-brand .topnav-brand { margin-bottom: var(--space-3); }
.footer-brand p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 280px; }
.footer-col h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-4); }
.footer-col a { display: block; color: var(--color-text-muted); font-size: var(--text-sm); padding: var(--space-1) 0; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { max-width: var(--container); margin: var(--space-10) auto 0; padding: var(--space-6) var(--space-6) 0; border-top: 1px solid var(--color-border); color: var(--color-text-subtle); font-size: var(--text-xs); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- 20. Misc ---------- */
.divider { height: 1px; background: var(--color-border); border: 0; margin: var(--space-6) 0; }
.kbd { font-family: var(--font-mono); font-size: var(--text-xs); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 2px 7px; color: var(--color-text); }
.code-block { font-family: var(--font-mono); font-size: var(--text-sm); background: #0f172a; color: #e2e8f0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); overflow-x: auto; }
.code-block .tok-cmd { color: #a5b4fc; }
.notice { background: var(--color-primary-soft); border: 1px solid var(--color-primary-soft-2); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); color: var(--color-text); }

/* ---------- 21. Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .install-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .courses-section .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-section .card-head { min-height: 0; }
  .credit-packs { min-height: 0; }
  .member-card { grid-column: auto; }
  .member-split { grid-template-columns: 1fr; gap: var(--space-5); }
  .member-right { padding-left: 0; border-left: 0; border-top: 1px dashed var(--color-divider); padding-top: var(--space-5); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .topnav-links { display: none; }
  .hero { height: auto; padding-block: var(--space-16); }
  .hero-inner { width: 100%; max-width: 820px; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .sidebar-foot { margin: 0; border: 0; padding: 0; }
  .member-layout { flex-direction: column; }
}
@media (max-width: 640px) {
  .container,
  .topnav-inner,
  .footer-inner,
  .footer-bottom {
    padding-inline: 18px;
  }
  .section,
  .section-sm {
    padding-block: var(--section-y-h5);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .courses-section .grid-3 { grid-template-columns: 1fr; }
  .course-group-head {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    min-height: 48px;
    padding: var(--space-3) 18px;
  }
  .course-group-head .muted {
    text-align: left;
  }
  .hero-title { font-size: var(--text-4xl); }
  .brand-logo { width: 132px; }
  .footer-inner { grid-template-columns: 1fr; }
  .meter-row { grid-template-columns: 96px 1fr 56px; gap: var(--space-2); }
  :root { --text-5xl: 2.25rem; }
}

/* ============================================================
   Dashboard UI parity with the approved static prototype
   ============================================================ */
.app-main .course-card {
  grid-template-columns: minmax(0, 1fr);
}
.app-main [data-section="courses-core"] .course-card > .summon .grow {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.app-main [data-section="billing"] .member-card,
.app-main [data-section="billing"] .bucket-card {
  padding: 24px;
}

.empty-state-agents {
  min-height: calc(100vh - var(--topbar-h) - 40px);
  padding: 32px;
  border-color: rgba(67, 56, 202, .1);
  border-radius: 18px;
}
.agents-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.agents-empty-icon {
  display: block;
  width: 178px;
  height: 50px;
  opacity: .6;
}
.agents-empty-content h2 {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
.agents-empty-content p {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}
.agents-empty-primary {
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.modal-scrim .modal:has(.add-agent-summon) {
  width: 480px;
}
.modal:has(.add-agent-summon) .modal-head {
  margin-bottom: var(--space-5);
}
.modal:has(.add-agent-summon) .add-agent-intro {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.modal:has(.add-agent-summon) .add-agent-action-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.modal:has(.add-agent-summon) .add-agent-summon .summon {
  flex: 1 1 auto;
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}
.modal:has(.add-agent-summon) .add-agent-summon .summon .grow {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}
.modal:has(.add-agent-summon) .add-agent-copy {
  flex: 0 0 88px;
  align-self: stretch;
  min-height: 64px;
  padding-inline: 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-primary);
  color: #fff;
}
.modal:has(.add-agent-summon) .steps-vertical {
  width: 362px;
  max-width: 100%;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: 0;
  border: 0;
  background: transparent;
}
.modal:has(.add-agent-summon) .steps-vertical .sv-item {
  align-items: flex-start;
  gap: var(--space-3);
}
.modal:has(.add-agent-summon) .steps-vertical .sv-num {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: transparent;
  color: var(--color-text-subtle);
  font-size: 11px;
  font-weight: 500;
}
.modal:has(.add-agent-summon) .steps-vertical .strong {
  font-size: var(--text-sm);
  font-weight: 500;
}
.modal:has(.add-agent-summon) .steps-vertical .small {
  font-size: 12px;
  line-height: 1.5;
}
.modal:has(.add-agent-summon) .card-foot {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 0;
}
.modal:has(.add-agent-summon) .card-foot .btn {
  width: 120px;
  min-height: 42px;
  height: 42px;
  background: rgba(67, 56, 202, .05);
  border-color: transparent;
  color: var(--color-primary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .topbar { padding-inline: 18px; }
  .app-shell { display: block; min-width: 0; padding-inline: 18px; }
  .app-main { width: 100%; padding-bottom: calc(var(--section-y-h5) + 76px + env(safe-area-inset-bottom)); }
  .app-sidebar {
    position: fixed;
    z-index: 80;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(68px + env(safe-area-inset-bottom));
    max-height: none;
    margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--app-border);
    border-radius: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .app-sidebar .sidebar-label,
  .app-sidebar .balance-mini { display: none; }
  .app-sidebar .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 56px;
    gap: 0;
  }
  .app-sidebar .sidebar-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    border-radius: var(--radius-md);
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .app-sidebar .sidebar-item svg { width: 20px; height: 20px; }
  .app-main .block-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .app-main [data-section="billing"] .grid-3 { gap: 14px; }
}
@media (max-width: 360px) {
  .app-main [data-section="billing"] .member-right .price-list { grid-template-columns: 1fr; }
}

/* ============================================================
   22. 成绩单卡 Cert（报告页顶）
   —— 延续 design token，保持产品报告感，避免过度奖状化。
   ============================================================ */

/* ---- 22a. 容器 ---- */
.cert {
  position: relative; overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-8);
}
.cert::before {
  content: ""; position: absolute; inset: 0;
  border-top: 4px solid var(--color-primary); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
}
.cert > * { position: relative; }   /* 内容抬到金框之上 */

/* ---- 22b. 顶眉：认证标语 ---- */
.cert-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary);
}
.cert-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--color-primary); }

/* ---- 22c. 身份行：头像 + Agent 名 + runtime ---- */
.cert-id { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-4) 0 var(--space-6); }
.cert-name { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.01em; margin: 0; }
.cert-meta { color: var(--color-text-muted); font-size: var(--text-sm); margin: 2px 0 0; }

/* ---- 22d. 主区：段位 + 大数字 并排 ---- */
.cert-body { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.cert-divider { width: 1px; align-self: stretch; min-height: 56px; background: var(--color-border); }

/* 段位 / 总评（也用于评估页的"专业方向"） */
.cert-grade { display: flex; flex-direction: column; gap: 3px; }
.cert-grade-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.cert-grade-tier { font-size: var(--text-3xl); font-weight: 800; line-height: 1.1; color: var(--color-primary); }
.cert-grade-note { font-size: var(--text-sm); color: var(--color-text-muted); }
/* 段位配色变体：优等生=金，新生=中性 */
.cert-grade.is-honor .cert-grade-tier { color: var(--color-primary); }
.cert-grade.is-new   .cert-grade-tier { color: var(--color-text-muted); }

/* 关键大数字 */
.cert-stat { display: flex; flex-direction: column; gap: 2px; }
.cert-stat-num {
  font-size: var(--text-5xl); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}
.cert-stat-unit { font-size: var(--text-2xl); font-weight: 800; -webkit-text-fill-color: var(--color-text-subtle); color: var(--color-text-subtle); margin-left: 2px; }
.cert-stat-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }

/* ---- 22e. 印章（右上角橡皮章感） ---- */
.cert-seal {
  position: absolute; top: var(--space-6); right: var(--space-6);
  width: 76px; height: 76px; border-radius: var(--radius-full);
  display: grid; place-items: center; text-align: center;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: none;
  transform: none; opacity: 1;
  font-size: 10px; font-weight: 800; line-height: 1.25; letter-spacing: .04em;
}
.cert-seal span { display: block; }
.cert-seal .seal-mark { font-size: var(--text-base); margin-bottom: 1px; }

/* ---- 22f. 分享条 ---- */
.share-bar {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.share-hint { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- 22g. Figma ticket report pages ---------- */
.report-ticket-page {
  min-width: 640px;
  background:
    linear-gradient(90deg, rgba(67, 56, 202, .05), rgba(67, 56, 202, .05)),
    #fff;
  color: #333;
}
.report-ticket-shell {
  width: 640px;
  margin-inline: auto;
  padding: 18px 0;
}
.report-meta {
  display: flex;
  align-items: flex-start;
  width: 640px;
  padding: 18px 0;
}
.report-meta div {
  flex: 1 1 auto;
  min-width: 0;
}
.report-meta p {
  margin: 0;
  font-size: 14px;
  line-height: normal;
}
.report-meta p:first-child {
  color: #333;
}
.report-meta p + p {
  color: rgba(51, 51, 51, .6);
}
.report-download {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 40px;
  background: rgba(67, 56, 202, .05);
  color: #333;
  cursor: pointer;
}
.report-download img {
  width: 10.889px;
  height: 14px;
  object-fit: contain;
}
.report-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 1000;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  transition: opacity .18s ease, transform .18s ease;
}
.report-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.report-ticket {
  position: relative;
  width: 640px;
  filter: drop-shadow(var(--shadow-report));
}
.ticket-edge {
  display: block;
  width: 640px;
  height: 24px;
}
.ticket-edge-bottom {
  transform: scaleY(-1);
}
.ticket-body {
  position: relative;
  width: 640px;
  background: #fff;
  padding: 24px;
}
.ticket-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.report-stamp {
  position: absolute;
  right: 22px;
  top: 17px;
  width: 202.578px;
  height: 94.684px;
  object-fit: contain;
  transform: rotate(10deg);
  pointer-events: none;
}
.ticket-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticket-logo {
  width: 142.205px;
  height: 24px;
  object-fit: contain;
}
.ticket-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px 12px 12px 0;
  background: rgba(67, 56, 202, .05);
  color: #4338ca;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.ticket-divider {
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(67, 56, 202, .22);
}
.ticket-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticket-avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #c07575;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.ticket-agent-name {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
}
.ticket-agent-meta {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 16px;
  line-height: normal;
}
.ticket-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ticket-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticket-stat-label,
.ticket-stat-note {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  line-height: normal;
}
.ticket-stat-card {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(51, 51, 51, .05);
  color: #333;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
}
.ticket-stat-card-image {
  background: rgba(51, 51, 51, .05) url("../images/report-assets/tile-bg-pro.png") center / cover no-repeat;
  font-weight: 600;
}
.report-checkup .ticket-stat-card {
  background: radial-gradient(circle at 50% 50%, #766cfa 0%, #6652e2 50%, #5538ca 100%);
  color: #fff;
}
.report-pro .ticket-stat-card {
  background: #fff url("../images/report-assets/pro-stat-bg.png") center / cover no-repeat;
  color: #333;
  font-weight: 600;
}
.ticket-grade-card {
  gap: 12px;
}
.ticket-grade-card img {
  width: 11.659px;
  height: 34.468px;
  object-fit: contain;
}
.report-checkup .ticket-grade-card img {
  filter: brightness(0) invert(1);
}
.ticket-grade-card img:last-child {
  transform: scaleX(-1);
}
.ticket-grade-card span {
  line-height: 1;
}
.is-hidden {
  opacity: 0;
}
.ticket-share {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ticket-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  padding: 0 18px;
  border: 0;
  border-radius: 30px;
  background: #4338ca;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.ticket-primary:hover {
  color: #fff;
  background: #372fa8;
}
.ticket-share span {
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  line-height: normal;
}
.ticket-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ticket-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ticket-section-head-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.ticket-section-head h2 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}
.ticket-section-head p {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 12px;
  line-height: normal;
}
.ticket-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ticket-chip-wrap span,
.ticket-chip-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 30px;
  background: rgba(67, 56, 202, .05);
  color: #4338ca;
  font-size: 14px;
}
.ticket-course-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticket-course-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 30px;
}
.ticket-course-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ticket-course-main img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
.ticket-course-main span {
  color: #111;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.ticket-course-main small {
  color: rgba(17, 17, 17, .6);
  font-size: 12px;
  white-space: nowrap;
}
.ticket-free {
  width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 36px;
  background: rgba(56, 202, 90, .1);
  color: #38ca5a;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}
.ticket-note-wrap {
  width: 640px;
  padding: 24px;
}
.ticket-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px dashed rgba(51, 51, 51, .2);
  border-radius: 12px;
}
.ticket-note-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 14px;
}
.ticket-note-title img {
  width: 24px;
  height: 24px;
}
.ticket-note p {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  line-height: normal;
}
.ticket-cta {
  width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}
.ticket-cta h2 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}
.ticket-cta p {
  margin: -12px 0 0;
  color: rgba(51, 51, 51, .6);
  font-size: 12px;
  line-height: normal;
}
.checkup-credit-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}
.credit-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.credit-item span {
  width: 100%;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 30px;
  background: rgba(67, 56, 202, .05);
}
.credit-item .is-done {
  border-color: #38ca5a;
  background: #38ca5a;
}
.credit-item img {
  width: 24px;
  height: 24px;
}
.credit-item p {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}
.ticket-legend {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ticket-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(51, 51, 51, .6);
  font-size: 12px;
}
.ticket-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.pass { background: #38ca5a; }
.weak { background: #ffbb00; }
.poor { background: #ff8383; }
.checkup-meter-list {
  display: flex;
  flex-direction: column;
}
.checkup-meter-row {
  height: 54px;
  display: grid;
  grid-template-columns: 96px 1fr 48px;
  align-items: center;
  gap: 12px;
}
.checkup-meter-row span,
.checkup-meter-row b {
  color: #111;
  font-size: 14px;
  font-weight: 500;
}
.checkup-meter-row b {
  text-align: right;
  font-weight: 400;
}
.checkup-meter-row .meter-segments {
  height: 8px;
  display: flex;
  gap: 6px;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.checkup-meter-row .meter-segments i {
  flex: 1 1 0;
  display: block;
  height: 8px;
  border-radius: 20px;
  background: rgba(67, 56, 202, .05);
}
.problem-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 40px;
  background: #4338ca;
  flex: 0 0 auto;
}
.problem-dot img {
  width: 16px;
  height: 16px;
}
.ticket-problem-row em {
  color: rgba(51, 51, 51, .6);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.ticket-problem-row {
  padding-right: 24px;
}

/* ---- 22h. Ticket report H5 ---- */
@media (max-width: 640px) {
  .report-ticket-page { min-width: 0; }
  .report-ticket-shell {
    width: 100%;
    max-width: 640px;
    padding: 12px;
  }
  .report-meta,
  .report-ticket,
  .ticket-edge,
  .ticket-body,
  .ticket-note-wrap,
  .ticket-cta { width: 100%; }
  .report-meta { padding: 12px 0; }
  .ticket-body { padding: 18px; }
  .ticket-hero { gap: 18px; }
  .report-stamp { display: none; }
  .ticket-agent { align-items: flex-start; }
  .ticket-agent > div { min-width: 0; }
  .ticket-avatar { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 13px; }
  .ticket-agent-name { font-size: 20px; }
  .ticket-agent-meta { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
  .ticket-stat-grid { gap: 8px; }
  .ticket-stat-card { height: 64px; font-size: 20px; }
  .ticket-stat-label,
  .ticket-stat-note { font-size: 12px; }
  .ticket-share { align-items: flex-start; gap: 12px; }
  .ticket-share span { min-width: 0; flex: 1 1 auto; line-height: 1.45; }
  .ticket-section { gap: 14px; }
  .ticket-section-head-row { flex-direction: column; align-items: flex-start; }
  .ticket-chip-wrap { gap: 8px; }
  .ticket-chip-wrap span,
  .ticket-chip-inline {
    max-width: 100%;
    height: auto;
    min-height: 34px;
    padding: 7px 14px;
    text-align: center;
  }
  .ticket-course-row { align-items: flex-start; padding: 10px; border-radius: 18px; }
  .ticket-course-main {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 3px;
  }
  .ticket-course-main > img,
  .ticket-course-main > .problem-dot { grid-row: 1 / span 2; }
  .ticket-course-main > span:not(.problem-dot),
  .ticket-course-main > small {
    grid-column: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ticket-free,
  .ticket-problem-row em { flex: 0 0 auto; }
  .ticket-note-wrap,
  .ticket-cta { padding: 18px; }
  .ticket-note { padding: 18px; }
  .ticket-note-title { flex-wrap: wrap; }
  .checkup-credit-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 6px;
  }
  .credit-item p { font-size: 12px; white-space: normal; }
  .ticket-legend { flex-wrap: wrap; gap: 12px; }
  .checkup-meter-row { grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 8px; }
  .ticket-problem-row { padding-right: 10px; }
}

@media (max-width: 360px) {
  .report-ticket-shell { padding: 8px; }
  .ticket-body { padding: 16px; }
  .ticket-brand-row { gap: 8px; }
  .ticket-logo { width: 126px; }
  .ticket-stat-card { font-size: 18px; }
}

/* ============================================================
   23. Loop strip（官网 hero · 体检→上课→复检→越用越强 可视化）
   ============================================================ */
.loop-strip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-1);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); box-shadow: var(--shadow-sm);
}
.loop-node {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
}
.loop-node .i {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
  background: var(--color-primary);
}
.loop-node.is-goal { background: var(--color-primary-soft); color: var(--color-primary); }
.loop-arrow { color: var(--color-text-subtle); font-weight: 700; padding: 0 2px; }
.loop-arrow.is-back { color: var(--color-accent); }   /* 收尾回环 ↻ */

/* ---- 成绩单 / loop strip 响应式 ---- */
@media (max-width: 640px) {
  .cert { padding: var(--space-6); }
  .cert-seal { width: 72px; height: 72px; top: var(--space-4); right: var(--space-4); font-size: 10px; }
  .cert-divider { display: none; }
  .cert-body { gap: var(--space-5); }
  .loop-strip { gap: 0; }
  .loop-node { padding: 5px 9px; }
}

/* ============================================================
   24. 学员中心 · 全宽 app 外壳（仿 Clawvard：左 sidebar + 右 main，两侧不留白）
   —— 追加段，延续上方设计系统 tokens，勿改前文。
   与官网 .topnav/.member-layout 并存：dashboard 用本段这套全宽壳。
   ============================================================ */
:root { --topbar-h: 72px; }

/* ---- 24a. 顶栏（logo 左 + 右上角工具区） ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h); display: flex; align-items: center; gap: var(--space-4);
  padding: 0 var(--space-6);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.topbar-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 800; font-size: var(--text-lg); color: var(--color-text); }
.topbar-brand:hover { color: var(--color-text); }
.topbar-brand .brand-logo { width: 142px; }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }

/* 积分余额 chip */
.points-chip {
  display: none; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff;
  font-size: var(--text-xs); font-weight: 500; font-variant-numeric: tabular-nums;
  border: 1px solid var(--color-primary); cursor: pointer;
}
.points-chip:hover { background: var(--color-primary-hover); }
.points-chip .sep { opacity: .45; }

/* 图标按钮（🔔 通知等） */
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--color-text-muted);
  background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-danger); border: 2px solid var(--color-surface); }
.drawer-close { color: #111; }
.drawer-close svg { width: 22px; height: 22px; stroke-width: 2.4; }

/* ---- 24b. 头像下拉（账号设置 / 退出，不在左菜单） ---- */
.avatar-menu { position: relative; }
.avatar-trigger { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: var(--radius-full); border: 1px solid transparent; background: transparent; cursor: pointer; transition: background var(--transition); }
.avatar-trigger:hover { background: var(--color-surface-2); }
.avatar-trigger .avatar { width: 32px; height: 32px; border-radius: var(--radius-full); font-size: var(--text-xs); }
.avatar-trigger .caret { color: var(--color-text-subtle); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-2); z-index: 60;
}
.dropdown[hidden] { display: none; }
.dropdown-head { padding: var(--space-3); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-1); }
.dropdown-head .name { font-weight: 700; font-size: var(--text-sm); }
.dropdown-head .sub { font-size: var(--text-xs); color: var(--color-text-muted); }
.dropdown-item { display: flex; align-items: center; gap: var(--space-3); padding: 9px 12px; border-radius: var(--radius-sm); color: var(--color-text); font-size: var(--text-sm); cursor: pointer; }
.dropdown-item:hover { background: var(--color-surface-2); color: var(--color-text); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--color-text-muted); }

/* ---- 24b-1. 通知浮层 ---- */
.notification-menu { position: relative; }
.notification-panel {
  position: absolute; top: 44px; right: 0; z-index: 90;
  width: min(360px, calc(100vw - 36px));
  max-height: min(420px, calc(100dvh - var(--topbar-h) - 24px));
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 4px 4px 12px; }
.notification-count { color: var(--color-text-muted); font-size: var(--text-xs); white-space: nowrap; }
.notification-item {
  display: grid; width: 100%; gap: 4px; padding: 12px;
  border: 0; border-top: 1px dashed var(--color-divider);
  background: transparent; color: var(--color-text); text-align: left;
  cursor: pointer; font: inherit;
}
.notification-item:hover { background: var(--color-surface-2); }
.notification-item.unread { background: var(--color-primary-soft); }
.notification-title { font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }
.notification-body { color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.55; overflow-wrap: anywhere; }
.notification-empty { margin: 0; padding: 28px 8px 32px; text-align: center; }

@media (max-width: 640px) {
  .notification-panel {
    position: fixed;
    top: calc(var(--topbar-h) + 8px);
    right: 18px;
    left: 18px;
    width: auto;
    max-height: calc(100dvh - var(--topbar-h) - 96px);
  }
}

/* ---- 24c. 外壳：全宽左 sidebar + 右 main（无留白） ---- */
.app-shell { display: flex; align-items: flex-start; width: 100%; min-width: var(--container); min-height: calc(100vh - var(--topbar-h)); margin-inline: auto; padding-inline: var(--space-6); gap: var(--space-5); }
.app-sidebar {
  position: sticky; top: calc(var(--topbar-h) + var(--space-5));
  width: var(--sidebar-w); flex-shrink: 0;
  height: calc(100vh - var(--topbar-h) - var(--space-10));
  max-height: calc(100vh - var(--topbar-h) - var(--space-10));
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-3) var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface);
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.app-main { flex: 1; min-width: 0; padding: var(--space-5) 0 var(--section-y-web); }
/* app-sidebar 复用 .sidebar-nav / .sidebar-item / .sidebar-label（见 §10） */

/* sidebar 底部余额小卡 */
.balance-mini { margin-top: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); background: var(--color-surface-2); }
.balance-mini .bm-title { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.balance-mini .bm-row { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); padding: 2px 0; }
.balance-mini .bm-num { font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; }

/* ---- 24d. 概览：状态条 ---- */
.status-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); margin-bottom: var(--space-6);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.status-copy {
  display: grid;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}
.status-bar .sb-greet { font-size: var(--text-section); font-weight: 600; margin: 0; }
.status-bar .sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); }
.status-bar .sb-meta .sep { opacity: .4; }
.status-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  max-width: 520px;
}
.status-kpi {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: var(--radius-md);
  background: rgba(67, 56, 202, .05);
}
.status-kpi span {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.2;
}
.status-kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1;
}
.status-bar .sb-actions { margin-left: auto; display: flex; gap: var(--space-2); align-self: flex-start; }

.empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}
.empty-state[hidden] {
  display: none;
}
.empty-visual {
  position: relative;
  width: 144px;
  height: 112px;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: var(--radius-lg);
  background: rgba(67, 56, 202, .03);
}
.empty-dot {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
}
.empty-line {
  position: absolute;
  left: 72px;
  top: 30px;
  width: 46px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(67, 56, 202, .18);
}
.empty-line.short {
  top: 48px;
  width: 34px;
  background: rgba(17, 17, 17, .1);
}
.empty-copy {
  display: grid;
  gap: var(--space-2);
  max-width: 420px;
}
.empty-copy h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
}
.empty-copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.empty-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}
.empty-actions .btn {
  min-width: 150px;
  min-height: 42px;
  font-size: 14px;
}
.empty-state-overview {
  min-height: calc(100vh - var(--topbar-h) - 44px);
  border-color: var(--app-border, var(--color-border));
  border-radius: 18px;
  background: #fff;
}
.overview-empty-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 272px;
  text-align: left;
}
.overview-empty-copy h2 {
  margin: 0 0 24px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.overview-empty-copy p {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.overview-empty-copy p + p {
  margin-top: 24px;
}
.overview-empty-primary {
  width: 136px;
  min-height: 36px;
  margin-top: 24px;
  padding: 8px 18px;
  font-size: 14px;
  line-height: 20px;
}
.overview-empty-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
}
.overview-empty-secondary span {
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.overview-empty-secondary .btn {
  width: 90px;
  min-height: 36px;
  padding: 8px 18px;
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  font-size: 14px;
  line-height: 20px;
}
.agent-checkup-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 659px;
  gap: 24px;
  background: var(--color-bg);
}
.agent-checkup-empty[hidden] {
  display: none;
}
.agent-checkup-empty img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.agent-checkup-empty p {
  margin: 0;
  color: rgba(51, 51, 51, .6);
  font-size: 14px;
  line-height: 20px;
}
.agent-checkup-empty .btn {
  width: 100px;
  min-height: 36px;
  padding: 8px 10px;
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

/* 区块小标题（概览各段） */
.block-head { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-8) 0 var(--space-4); }
.block-head:first-child { margin-top: 0; }
.block-head h2 { font-size: var(--text-section); font-weight: 600; margin: 0; }
.block-head .count { font-size: var(--text-sm); color: var(--color-text-subtle); }

/* ---- 24e. 概览：待办简报流 ---- */
.feed { display: flex; flex-direction: column; gap: var(--space-3); }
.feed-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); transition: box-shadow var(--transition), border-color var(--transition);
}
.feed-item:hover { box-shadow: var(--shadow-sm); border-color: var(--color-border-strong); }
.feed-icon { width: 36px; height: 36px; border-radius: var(--radius-md); flex-shrink: 0; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); }
.feed-icon svg { width: 18px; height: 18px; }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: var(--text-sm); font-weight: 600; margin: 0; }
.feed-sub { font-size: var(--text-xs); color: var(--color-text-muted); margin: 2px 0 0; }
.feed-cta { flex-shrink: 0; }
.feed-tag { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 22px; font-size: var(--text-xs); font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text-muted); }

/* ---- 24f. 概览：进步一览（每 Agent mini 卡） ---- */
.progress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: var(--space-4); }
.mini-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.mini-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); border-color: var(--color-border-strong); }
.mini-card .mc-head { display: flex; align-items: center; gap: var(--space-3); }
.mini-card .mc-name { font-weight: 700; font-size: var(--text-sm); margin: 0; }
.mini-card .mc-sub { font-size: var(--text-xs); color: var(--color-text-muted); margin: 1px 0 0; }
.mini-card .mc-foot { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); }
.delta-up { color: var(--color-success); font-weight: 700; font-size: var(--text-xs); }
.delta-flat { color: var(--color-text-subtle); font-weight: 600; font-size: var(--text-xs); }
.grad-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 700; padding: 3px 9px; border-radius: var(--radius-full); background: var(--color-member-soft); color: var(--color-member); }

/* ---- 24f-2. 概览：最新体检/评估报告卡（每报告一张 · 强调报告、引导分享） ---- */
.snap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); }
.report-card {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.report-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); border-color: var(--color-border-strong); }
.rc-head { display: flex; align-items: center; gap: var(--space-3); }
.rc-title { font-weight: 700; font-size: var(--text-base); margin: 0; line-height: 1.35; }
.rc-sub { font-size: var(--text-xs); color: var(--color-text-muted); margin: 1px 0 0; }
.rc-stat { display: flex; flex-direction: column; gap: var(--space-2); }
.rc-num { font-size: var(--text-lg); font-weight: 700; margin: 0; }
.rc-note { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0; }
.rc-foot { display: flex; gap: var(--space-2); margin-top: auto; padding-top: var(--space-1); }

/* ---- 24g. 我的 Agents：列表卡补强 + 添加卡 + 认领态 ---- */
.agent-card { position: relative; }
.agent-card.is-unclaimed { opacity: .72; }
.corner-badge { position: absolute; top: var(--space-4); right: var(--space-4); }
.claim-banner {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--color-warning-soft); color: var(--color-member);
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs); font-weight: 600; margin-top: var(--space-3);
}
.add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 168px; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg);
  color: var(--color-text-muted); cursor: pointer; background: transparent; text-align: center;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.add-card:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.add-card .plus { width: 40px; height: 40px; border-radius: var(--radius-full); display: grid; place-items: center; font-size: 22px; font-weight: 700; background: var(--color-surface-2); }
.add-card .plus svg { width: 20px; height: 20px; }
.add-card:hover .plus { background: var(--color-primary-soft-2); }

/* ---- 24h. 单 Agent 详情：头部 + sibling 下拉 + tabs ---- */
.agent-detail-head { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.agent-detail-head .ad-id { display: flex; align-items: center; gap: var(--space-4); }
.agent-detail-head .ad-name { font-size: var(--text-2xl); font-weight: 800; margin: 0; }
.agent-detail-head .ad-meta { color: var(--color-text-muted); font-size: var(--text-sm); margin: 2px 0 0; }
.back-link {
  min-height: 42px;
  padding: 0 16px;
  gap: 8px;
  font-size: 14px;
}
.back-link .back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}
.select {
  font-family: inherit; font-size: var(--text-sm); padding: 8px 36px 8px 12px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-text); cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 0;
  border-color: var(--color-focus-ring);
  box-shadow: var(--control-focus-ring);
}
.sibling-select { margin-left: auto; }
.sibling-switch {
  position: relative;
  margin-left: auto;
  min-width: 190px;
}
.sibling-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--app-border, rgba(67, 56, 202, .1));
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.sibling-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: .72;
}
.sibling-trigger:hover,
.sibling-switch.open .sibling-trigger {
  border-color: var(--app-border-strong, rgba(67, 56, 202, .3));
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
}
.sibling-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--app-border, rgba(67, 56, 202, .1));
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.sibling-menu[hidden] {
  display: none;
}
.sibling-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.sibling-option:hover,
.sibling-option.active {
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
}
.agent-info-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.agent-info-card .card-head {
  margin-bottom: var(--space-3);
}
.agent-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.agent-info-list .row-between {
  min-height: 34px;
  align-items: center;
  gap: var(--space-4);
  font-size: 14px;
}
.agent-info-list .nickname-row {
  min-height: 46px;
  align-items: center;
}
.info-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.info-label-title {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.info-label-sub {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}
.agent-info-list .muted {
  color: var(--app-ink-60, rgba(17, 17, 17, .6));
  font-size: var(--text-sm);
}
.agent-info-list .info-value {
  min-width: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-info-list .mono.info-value {
  font-size: var(--text-sm);
  letter-spacing: 0;
}
.editable-name {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.editable-name [data-agent-name] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editable-name .edit-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: .55;
}
.editable-name:hover,
.editable-name:focus-visible {
  border-color: var(--app-border, rgba(67, 56, 202, .1));
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  outline: 0;
}
.editable-name:hover .edit-icon,
.editable-name:focus-visible .edit-icon {
  opacity: 1;
}
.name-edit-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.name-edit-input {
  width: 128px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--app-border-strong, rgba(67, 56, 202, .3));
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: 0;
}
.name-edit-input:focus {
  box-shadow: 0 0 0 3px rgba(67, 56, 202, .08);
}
.name-edit-submit {
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}
.agent-info-card .card-foot {
  margin-top: auto;
  padding-top: var(--space-3);
}
.agent-info-card .card-foot .small {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-6); flex-wrap: wrap; }
.tab {
  padding: 10px 16px; font-family: inherit; font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-muted); border: 0; background: transparent; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.tab:hover { color: var(--color-text); }
.tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-panel[hidden] { display: none; }

/* X/6 进度环（conic） */
.ring { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: conic-gradient(var(--color-primary) calc(var(--val, 0) * 1%), var(--color-surface-2) 0); }
.ring::before { content: ""; position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--color-surface); }
.ring span { position: relative; font-weight: 800; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.ring.is-grad { background: conic-gradient(var(--color-member) 100%, var(--color-member) 0); }
.ring.is-grad span { color: var(--color-member); }
.agent-progress-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.progress-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: var(--space-5);
  min-height: 220px;
  padding: var(--space-5) 0;
  text-align: center;
}
.progress-summary .ring {
  margin: 0 auto;
}
.progress-summary-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}
.progress-summary-copy .strong {
  margin: 0;
}
.progress-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.compact-meta {
  gap: var(--space-2);
  margin-top: 0;
}
.compact-meta .row-between,
.tab-panel[data-tab="h"] .stack .row-between {
  min-height: 30px;
  font-size: 14px;
}
.compact-meta .meta-value,
.tab-panel[data-tab="h"] .stack .row-between > span:last-child {
  min-width: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend-head {
  justify-content: space-between;
  gap: var(--space-4);
}
.legend-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}
.legend-dots span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legend-dots span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}
.legend-dots .weak::before {
  background: var(--color-accent);
}
.legend-dots .poor::before {
  background: rgba(67, 56, 202, .3);
}
.course-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mini-course-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--app-border, rgba(67, 56, 202, .1));
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.mini-course-card .card-head {
  margin-bottom: 0;
  min-width: 0;
}
.mini-course-card .card-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mini-course-card .card-sub {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.course-tag-row,
.keyword-row,
.course-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.course-foot {
  color: var(--color-text-muted);
  font-size: 12px;
}
.mini-course-card .summon {
  margin-top: var(--space-1);
}
.cadence-select {
  min-width: 132px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

/* ---- 24i. 报告时间线（体检/评估报告史，多份连看进步） ---- */
.timeline { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding-left: var(--space-6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 18px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1 * var(--space-6) + 1px); top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-primary); transform: translateY(-50%); }
.timeline-item.is-latest::before { background: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.timeline-card { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.timeline-card .grow { flex: 1; min-width: 160px; }
.timeline-date { font-size: var(--text-sm); font-weight: 700; }
.timeline-meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

/* 6维 × N 次色块矩阵 */
.matrix { display: flex; flex-direction: column; gap: 4px; }
.matrix-row { display: grid; grid-template-columns: 124px repeat(var(--cols, 4), 1fr); gap: 4px; align-items: center; }
.matrix-row.is-head { font-size: var(--text-xs); color: var(--color-text-subtle); }
.matrix-label { font-size: var(--text-xs); font-weight: 600; }
.matrix-cell { height: 24px; border-radius: var(--radius-sm); }
.matrix-cell.pass { background: var(--color-success); }
.matrix-cell.weak { background: var(--color-warning); }
.matrix-cell.poor { background: var(--color-danger); }
.matrix-cell.na   { background: var(--color-surface-2); }

/* ---- 24j. 需求心愿单 + waitlist toggle ---- */
.wishlist { display: flex; flex-direction: column; gap: var(--space-3); }
.wish-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-surface); }
.wish-item .grow { flex: 1; min-width: 0; }
.toggle { position: relative; width: 42px; height: 24px; border-radius: var(--radius-full); background: var(--color-border-strong); border: 0; cursor: pointer; flex-shrink: 0; transition: background var(--transition); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--transition); }
.toggle.on { background: var(--color-primary); }
.toggle.on::after { transform: translateX(18px); }

/* ---- 24k. 课程页：筛选 + 搜索 + 网格 ---- */
.course-filter { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-chip { padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: border-color var(--transition), color var(--transition), background var(--transition); }
.filter-chip:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.filter-chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.search-box { display: flex; align-items: center; gap: var(--space-2); padding: 8px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-surface); margin-left: auto; }
.search-box svg { width: 16px; height: 16px; color: var(--color-text-subtle); flex-shrink: 0; }
.search-box input { border: 0; outline: 0; background: transparent; font-family: inherit; font-size: var(--text-sm); color: var(--color-text); width: 180px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: var(--space-5); }
.course-installed { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 700; color: var(--color-success); }

/* ---- 必修课程：6维总览 + 固定 3 列 ---- */
.creed-graduate { color: var(--color-primary); font-weight: 600; }
.core-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 204px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}
.core-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
}
.creed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
.creed-tile { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.creed-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); font-size: var(--text-sm); font-weight: 700; }
.creed-info { min-width: 0; }
.creed-name { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.creed-fix { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.course-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-main .course-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.app-main .course-card,
.app-main .course-card .card-head,
.app-main .course-card .card-title {
  min-width: 0;
}
.app-main .course-card .card-head {
  flex-wrap: wrap;
}
.app-main .course-card .card-title {
  overflow-wrap: anywhere;
}

/* ---- 专业课程：两级筛选（专业=一级 / 难度=二级）---- */
.filter-tier { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.filter-tier-sub { margin-top: var(--space-3); margin-bottom: var(--space-6); }
.filter-tier-label { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-subtle); letter-spacing: .03em; margin-right: var(--space-2); }
.filter-chip-sub { padding: 4px 12px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: border-color var(--transition), color var(--transition), background var(--transition); }
.filter-chip-sub:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.filter-chip-sub.active { background: var(--color-primary-soft); border-color: var(--color-primary-soft-2); color: var(--color-primary); }

/* ---- 24l. 会员与积分：双桶卡 + 支付抽屉 + 订单史 ---- */
.bucket-card .bucket-row { display: flex; align-items: baseline; justify-content: space-between; padding: var(--space-2) 0; }
.bucket-card .bucket-num { font-size: var(--text-2xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.bucket-note { font-size: var(--text-xs); color: var(--color-text-subtle); margin-top: var(--space-3); }

/* ---- 会员状态加宽（占 2 列）+ 右栏会员权益 ---- */
.member-card { grid-column: span 2; }
.member-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: start; }
.member-right { padding-left: var(--space-6); border-left: 1px dashed var(--color-divider); }
.member-perk-label { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); margin: 0 0 var(--space-4); }
.member-right .price-list { margin-top: 0; }
.member-cta-row {
  justify-content: center;
}

/* ---------- Toast（复制成功轻提示，替代系统 alert） ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  background: var(--color-text); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-lg, 12px);
  font-size: var(--text-sm, 14px); font-weight: 600; line-height: 1.4;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15,23,42,.18));
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 抽屉 */
.drawer-scrim { position: fixed; inset: 0; background: var(--dialog-overlay-bg); z-index: 90; opacity: 0; visibility: hidden; transition: opacity var(--transition); }
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 420px; max-width: 92vw; background: var(--dialog-bg); box-shadow: var(--dialog-shadow); z-index: 91; display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--transition); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px dashed var(--color-divider); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--space-6); }
.drawer-foot { padding: var(--space-5) var(--space-6); border-top: 1px dashed var(--color-divider); }
.pay-section-label { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: .04em; margin: var(--space-5) 0 var(--space-2); }
.pay-section-label:first-child { margin-top: 0; }
.pay-option { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4); margin-bottom: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--card-radius); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.pay-option:hover, .pay-option.selected { border-color: var(--color-primary); background: var(--color-primary-soft); }
.pay-option .po-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.drawer-title-checkout { display: none; align-items: center; gap: var(--space-2); }
.drawer-back { margin-left: -8px; }
.pay-drawer-body { overflow: hidden; padding: 0; }
.pay-stage { display: flex; width: 200%; height: 100%; transition: transform var(--transition); }
.pay-panel { width: 50%; min-width: 50%; overflow-y: auto; padding: var(--space-6); }
.drawer.is-checkout .drawer-title-select { display: none; }
.drawer.is-checkout .drawer-title-checkout { display: flex; }
.drawer.is-checkout .pay-stage { transform: translateX(-50%); }
.drawer.is-checkout .drawer-foot { display: none; }
.checkout-summary { padding-bottom: var(--space-5); }
.checkout-title { margin: var(--space-2) 0 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.checkout-amount { margin: var(--space-2) 0 0; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: var(--space-5) 0 0; }
.pay-method { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 1px solid rgba(67, 56, 202, .1); border-radius: 21px; background: var(--color-surface); color: #111; font-size: var(--text-sm); font-weight: 400; cursor: pointer; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.pay-method img { width: 18px; height: 18px; flex: 0 0 auto; object-fit: contain; transition: none; }
.pay-method[data-pay-method="wechat"] img { height: 15px; }
.pay-method .pay-icon-on { display: none; }
.pay-method .pay-icon-off { display: block; }
.pay-method.active .pay-icon-on { display: block; }
.pay-method.active .pay-icon-off { display: none; }
.pay-method.active { border-color: rgba(67, 56, 202, .1); color: #fff; font-weight: 600; }
.pay-method[data-pay-method="alipay"].active { background: #1677FC; }
.pay-method[data-pay-method="wechat"].active { background: #0AC160; }
.qr-card { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); text-align: center; }
.qr-box { width: 220px; height: 220px; border-radius: var(--radius-md); background: #EFEFEF; }
.qr-box span { display: none; }
.qr-title { margin: 0; font-size: var(--text-sm); font-weight: 600; }
.qr-note { margin: 0; color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.6; }

/* 认领指引 modal */
.modal-scrim { position: fixed; inset: 0; background: var(--dialog-overlay-bg); z-index: 90; display: grid; place-items: center; padding: var(--space-5); opacity: 0; visibility: hidden; transition: opacity var(--transition); }
.modal-scrim.open { opacity: 1; visibility: visible; }
.modal { width: 540px; max-width: 100%; background: var(--dialog-bg); border-radius: var(--dialog-radius); box-shadow: var(--dialog-shadow); padding: var(--dialog-padding); transform: translateY(8px); transition: transform var(--transition); }
.modal-scrim.open .modal { transform: translateY(0); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.modal .card-foot {
  display: flex;
  justify-content: center;
}
.modal .card-foot .btn {
  width: 150px;
  min-height: 42px;
  height: 42px;
  font-size: 14px;
}
.account-settings-modal { width: 540px; }
@media (max-width: 640px) {
  .account-settings-scrim { padding: 18px; }
  .account-settings-modal {
    width: 100%;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: var(--space-6);
  }
  .account-settings-modal .modal-head { margin-bottom: var(--space-5); }
  .account-settings-modal .stack,
  .account-settings-modal .row-between { min-width: 0; }
  .account-settings-modal .row-between { align-items: flex-start; }
  .account-settings-modal .row-between > :first-child { min-width: 0; flex: 1 1 auto; }
  .account-settings-modal .row-between > :last-child {
    min-width: 0;
    flex: 0 1 auto;
    text-align: right;
    overflow-wrap: anywhere;
  }
}
.steps-vertical { display: flex; flex-direction: column; gap: var(--space-4); }
.steps-vertical .sv-item { display: flex; gap: var(--space-3); }
.steps-vertical .sv-num { width: 26px; height: 26px; border-radius: var(--radius-full); flex-shrink: 0; display: grid; place-items: center; font-size: var(--text-xs); font-weight: 600; color: #fff; background: var(--color-primary); }

/* 可复制召唤语条（装课红线：网页只给召唤语、绝不一点就装） */
.summon { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text); }
.summon .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main .summon {
  align-items: flex-start;
}
.app-main .summon .grow {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.app-main .summon .btn {
  flex: 0 0 auto;
}

/* ---- 24m. 产品内页密度：全局降一级 ---- */
.app-shell {
  gap: var(--space-5);
  padding-inline: var(--space-5);
  max-width: none;
}
.app-sidebar {
  top: calc(var(--topbar-h) + var(--space-5));
  height: calc(100vh - var(--topbar-h) - var(--space-10));
  max-height: calc(100vh - var(--topbar-h) - var(--space-10));
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-3) var(--space-3);
}
.app-main {
  width: 100%;
  padding-top: var(--space-5);
}
.app-main .grid {
  gap: var(--space-5);
}
.app-main .card {
  padding: var(--space-5);
}
.app-main .card-pad-lg {
  padding: var(--space-6);
}
.app-main .card-head {
  margin-bottom: var(--space-3);
}
.app-main .card-foot {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
}
.status-bar {
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.block-head {
  margin: var(--space-6) 0 var(--space-3);
}
.feed {
  gap: var(--space-2);
}
.feed-item {
  gap: var(--space-2);
  padding: var(--space-3);
}
.progress-grid,
.snap-grid,
.course-grid {
  gap: var(--space-4);
}
.mini-card,
.report-card {
  gap: var(--space-3);
  padding: var(--space-4);
}
.agent-detail-head {
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.tabs {
  margin-bottom: var(--space-5);
}
.timeline,
.wishlist {
  gap: var(--space-3);
}
.timeline-card,
.wish-item {
  padding: var(--space-3);
}
.course-filter {
  margin-bottom: var(--space-5);
}
.creed-grid {
  margin-top: var(--space-4);
}
.summon {
  padding: var(--space-2) var(--space-3);
}
.member-split {
  gap: var(--space-5);
}
.member-right {
  padding-left: var(--space-5);
}
.drawer-head,
.drawer-foot {
  padding: var(--space-4) var(--space-5);
}
.drawer-body {
  padding: var(--space-5);
}
.modal {
  padding: var(--space-6);
}

/* ---- 24n. 产品内页 token 收敛：密度 / 字重 / 描边 / 课程卡一致性 ---- */
body:has(.app-shell) {
  --app-border: var(--color-primary-10);
  --app-border-strong: var(--color-primary-30);
  --app-fill: var(--color-primary-05);
  --app-fill-strong: var(--color-primary-10);
  --app-ink-60: var(--color-text-muted);
  --app-ink-30: var(--color-text-subtle);
  --app-ink-10: var(--color-ink-10);
  min-width: var(--container);
}
body:has(.app-shell) .topbar {
  border-bottom-color: var(--app-border);
}
body:has(.app-shell) .dropdown,
body:has(.app-shell) .table-wrap,
body:has(.app-shell) .drawer-head,
body:has(.app-shell) .drawer-foot,
body:has(.app-shell) .modal,
body:has(.app-shell) .pay-option,
body:has(.app-shell) .summon,
body:has(.app-shell) .notice,
body:has(.app-shell) .select,
body:has(.app-shell) .btn-ghost {
  border-color: var(--app-border);
}
.app-sidebar,
.app-main .card,
.app-main .feed-item,
.app-main .mini-card,
.app-main .report-card,
.app-main .timeline-card,
.app-main .wish-item,
.app-main .creed-tile,
.app-main .add-card,
.app-main .status-bar {
  border-color: var(--app-border);
}
.app-main .add-card {
  border-color: var(--app-border-strong);
}
.app-main .add-card .strong {
  color: rgba(17, 17, 17, .6);
  font-weight: 400;
}
.app-main .add-card .small.muted {
  color: rgba(17, 17, 17, .3);
}
.app-main .card-hover:hover,
.app-main .feed-item:hover,
.app-main .mini-card:hover,
.app-main .report-card:hover {
  border-color: var(--app-border-strong);
  box-shadow: none;
}
.app-main .card,
.app-main .status-bar {
  border-radius: var(--radius-lg);
}
.app-main .feed-item,
.app-main .mini-card,
.app-main .report-card,
.app-main .timeline-card,
.app-main .wish-item,
.app-main .creed-tile,
.app-main .summon,
.app-main .table-wrap,
.app-main .pay-option,
.app-main .select {
  border-radius: var(--radius-md);
}
.app-main .card {
  padding: var(--space-4);
}
.app-main .card-pad-lg {
  padding: var(--space-5);
}
.app-main .grid,
.app-main .progress-grid,
.app-main .snap-grid,
.app-main .course-grid {
  gap: var(--space-3);
}
.app-main .stack,
.app-main .feed,
.app-main .timeline,
.app-main .wishlist {
  gap: var(--space-3);
}
.app-main .card-head,
.app-main .card-foot,
.app-main .rc-foot {
  margin-top: 0;
}
.app-main .card-head {
  margin-bottom: var(--space-2);
  align-items: center;
}
.app-main .card-foot {
  padding-top: var(--space-3);
}
.app-main .divider {
  border-color: var(--app-border);
  margin: var(--space-3) 0;
}
.app-main .block-head {
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-6) 0 var(--space-3);
}
.app-main .block-head h2,
.app-main .status-bar .sb-greet,
.app-main .agent-detail-head .ad-name {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0;
}
.app-main .card-title,
.app-main .rc-title,
.app-main .feed-title,
.app-main .mini-card .mc-name,
.app-main .creed-name,
.app-main .timeline-date,
.app-main .member-perk-label,
.app-main .pay-section-label,
.app-main .filter-tier-label,
.app-main .strong {
  font-weight: 600;
}
.app-main .card-title,
.app-main .rc-num,
.app-main .price {
  font-size: var(--text-base);
}
.app-main .price {
  font-weight: 600;
  letter-spacing: 0;
}
.app-main .bucket-card .bucket-num,
.app-main .ring span,
.app-main .balance-mini .bm-num,
.app-main .pay-option .po-price,
.app-main .mini-card .mc-name,
.app-main .rc-num,
.app-main .timeline-date {
  font-weight: 600;
}
.app-main .course-installed,
.app-main .delta-up,
.app-main .grad-badge {
  font-weight: 600;
}
.app-main .delta-up,
.app-main .course-installed,
.app-main .table .pos,
.app-main .price-list li::before {
  color: var(--color-primary);
}
.app-main .table .neg {
  color: var(--app-ink-60);
}
.app-main .grad-badge,
.app-main .claim-banner {
  background: var(--color-accent);
  color: #111;
}
.app-main .badge,
.topbar .badge {
  border-color: transparent;
  justify-content: center;
  text-align: center;
}
.app-main .badge-pass,
.app-main .badge-free {
  background: var(--app-fill);
  color: var(--color-primary);
}
.app-main .badge-free,
.app-main .badge-member {
  background: var(--color-accent);
  color: #111;
}
.app-main .badge-weak,
.app-main .badge-neutral {
  background: var(--app-fill);
  color: var(--color-primary);
}
.app-main .badge-poor {
  background: var(--app-fill-strong);
  color: var(--color-primary);
}
.app-main .badge-domain,
.app-main .badge-intro,
.app-main .badge-advanced {
  background: var(--app-fill);
  color: var(--color-primary);
}
.app-main .badge {
  font-weight: 500;
}
.app-main .badge-dot::before {
  background: currentColor;
}
.app-main .feed-icon,
.app-main .add-card .plus,
.app-main .creed-no {
  background: var(--app-fill);
  color: var(--color-primary);
  font-weight: 600;
}
.app-main .add-card .plus {
  display: inline-grid;
  place-items: center;
  line-height: 1;
  text-align: center;
}
.app-main .avatar-lg {
  border-radius: var(--radius-md);
}
.app-main .matrix-cell.pass,
.app-main .meter-fill.pass {
  background: var(--color-primary);
}
.app-main .matrix-cell.weak,
.app-main .meter-fill.weak {
  background: var(--color-accent);
}
.app-main .matrix-cell.poor,
.app-main .meter-fill.poor {
  background: rgba(67, 56, 202, .3);
}
.app-main .ring.is-grad {
  background: conic-gradient(var(--color-primary) 100%, var(--color-primary) 0);
}
.app-main .ring.is-grad span {
  color: var(--color-primary);
}
.topbar .icon-btn .dot {
  background: var(--color-accent);
}
.app-main .course-grid,
.app-main .course-grid-3,
.app-main .course-grid-pro {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.app-main .course-grid-pro {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}
.app-main .course-card {
  display: grid;
  grid-template-rows: auto minmax(46px, auto) minmax(24px, auto) auto;
  align-content: start;
  gap: var(--space-3);
  min-height: 0;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.app-main [data-section="courses-core"] .course-card:hover,
.app-main [data-section="courses-pro"] .course-card:hover {
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(17, 17, 17, .28);
  transform: translateY(-1px);
}
.app-main .course-card .card-head {
  min-height: 24px;
  margin: 0;
}
.app-main .course-card .card-title {
  font-size: var(--text-base);
  line-height: 1.45;
}
.app-main .course-card .card-sub {
  margin: 0;
  color: var(--app-ink-60);
  line-height: 1.55;
}
.app-main .course-card > .row.wrap {
  align-items: center;
  min-height: 22px;
  gap: var(--space-2);
}
.app-main [data-section="courses-core"] .course-card .badge {
  min-height: 29px;
  padding: 6px 12px;
  border-radius: 36px;
  border-color: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}
.app-main [data-section="courses-core"] .course-card .badge-domain {
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
}
.app-main [data-section="courses-core"] .course-card .badge-free {
  background: rgba(56, 202, 90, .1);
  color: #38ca5a;
}
.app-main [data-section="courses-pro"] .course-card {
  height: 420px;
  grid-template-rows: 28px minmax(0, 1fr) 29px 35px 46px;
  align-content: stretch;
  gap: 12px;
  padding: 24px;
}
.app-main [data-section="courses-pro"] .course-card .card-head {
  min-height: 24px;
}
.app-main [data-section="courses-pro"] .course-card .card-sub {
  min-height: 0;
  height: 100%;
  color: rgba(17, 17, 17, .6);
  font-size: 14px;
  line-height: 1.55;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.app-main [data-section="courses-pro"] .course-card .card-sub:hover {
  scrollbar-color: var(--color-border-strong) transparent;
}
.app-main [data-section="courses-pro"] .course-card .card-sub::-webkit-scrollbar {
  width: 6px;
}
.app-main [data-section="courses-pro"] .course-card .card-sub::-webkit-scrollbar-track,
.app-main [data-section="courses-pro"] .course-card .card-sub::-webkit-scrollbar-thumb {
  background: transparent;
}
.app-main [data-section="courses-pro"] .course-card .card-sub::-webkit-scrollbar-thumb {
  border-radius: var(--radius-full);
}
.app-main [data-section="courses-pro"] .course-card .card-sub:hover::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
}
.app-main [data-section="courses-pro"] .course-tag-stack {
  display: contents;
}
.app-main [data-section="courses-pro"] .course-tag-stack .course-tag-row:first-child {
  grid-row: 3;
}
.app-main [data-section="courses-pro"] .course-tag-stack .course-tag-row:last-child {
  grid-row: 4;
  align-content: start;
  overflow: hidden;
}
.app-main [data-section="courses-pro"] .course-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  max-height: 35px;
}
.app-main [data-section="courses-pro"] .course-card .badge {
  min-height: 29px;
  padding: 6px 12px;
  border-radius: 36px;
  border-color: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}
.app-main [data-section="courses-pro"] .course-card .badge-domain,
.app-main [data-section="courses-pro"] .course-card .badge-intro,
.app-main [data-section="courses-pro"] .course-card .badge-advanced {
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
}
.app-main [data-section="courses-pro"] .course-card .badge-free {
  background: rgba(56, 202, 90, .1);
  color: #38ca5a;
}
.app-main [data-section="courses-pro"] .course-card .badge-muted {
  background: rgba(17, 17, 17, .03);
  color: rgba(17, 17, 17, .3);
  font-weight: 400;
}
.app-main [data-section="courses-pro"] .course-card > .summon {
  grid-row: 5;
  min-height: 40px;
  padding: 8px 12px;
  align-self: stretch;
}
.app-main [data-section="courses-pro"] .course-card > .summon .grow {
  min-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.app-main [data-section="courses-pro"] .course-card > .summon .btn {
  min-height: 28px;
  padding-inline: 12px;
}
.app-main .course-card > .summon {
  margin-top: 0;
  align-self: end;
  min-height: 44px;
}
.app-main .summon {
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--app-fill);
}
.app-main .summon .grow {
  display: flex;
  align-items: center;
  min-height: 22px;
}
.app-main .summon .btn {
  align-self: center;
  margin-left: auto;
}
.app-main [data-section="courses-pro"] .course-card {
  overflow: hidden;
}
.app-main [data-section="courses-pro"] .course-card .card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
  overflow: hidden;
}
.app-main [data-section="courses-pro"] .course-card .card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-main [data-section="courses-pro"] .course-installed {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-main [data-section="courses-pro"] .course-card > .summon {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
}
.app-main [data-section="courses-pro"] .course-card > .summon .grow {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.app-main [data-section="courses-pro"] .course-card > .summon .btn {
  flex: 0 0 auto;
  min-height: 28px;
  padding-inline: 12px;
}

/* ---- 24o. Agent 详情最终收敛：字号 / 间距 / 课程项一致性 ---- */
.app-main .agent-card .progress {
  background: rgba(67, 56, 202, .08);
}
.app-main .agent-detail .agent-info-card,
.app-main .agent-detail .agent-progress-card {
  height: 421px;
  min-height: 0;
}
.app-main .agent-detail .agent-info-card,
.app-main .agent-detail .agent-progress-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  padding-bottom: var(--space-6);
}
.app-main .agent-detail .agent-info-card .card-head {
  margin-bottom: var(--space-3);
}
.app-main .agent-detail .agent-info-list .row-between {
  min-height: 34px;
  font-size: 14px;
}
.app-main .agent-detail .agent-info-list {
  flex: 1;
}
.app-main .agent-detail .agent-info-list .nickname-row {
  flex: 1;
  min-height: 0;
  padding: 0;
}
.app-main .agent-detail .agent-info-list .nickname-row ~ .row-between {
  flex: 1;
  min-height: 0;
}
.app-main .agent-detail .info-label-title {
  font-size: 14px;
  font-weight: 600;
}
.app-main .agent-detail .info-label-sub {
  font-size: 12px;
}
.app-main .agent-detail .agent-info-card .card-foot {
  margin-top: auto;
  padding-top: 0;
}
.app-main .agent-detail .agent-info-card .card-foot .small {
  font-size: var(--text-sm);
  line-height: 1.55;
}
.app-main .agent-detail .agent-progress-card {
  display: flex;
  flex-direction: column;
}
.app-main .agent-detail .progress-summary {
  flex: 1;
  min-height: 200px;
  justify-content: center;
  padding: var(--space-3) 0;
}
.app-main .agent-detail .progress-summary-copy .strong {
  font-size: 14px;
  font-weight: 600;
}
.app-main .agent-detail .compact-meta .row-between {
  min-height: 30px;
  font-size: 14px;
}
.app-main .agent-detail .agent-progress-card .compact-meta {
  gap: 0;
  padding-top: 6px;
  border-top: 0;
}
.app-main .agent-detail .agent-progress-card .compact-meta > .row-between + .row-between {
  padding-top: 6px;
  border-top: 0;
}
.app-main .agent-detail .compact-meta .meta-value,
.app-main .agent-detail .tab-panel[data-tab="h"] .stack .row-between > span:last-child {
  font-size: 14px;
  font-weight: 500;
}
.app-main .agent-detail .legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.app-main .agent-detail .legend-head .card-title {
  font-size: 16px;
}
.app-main .agent-detail .legend-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 12px;
}
.app-main .agent-detail .legend-dots span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-main .agent-detail .legend-dots span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}
.app-main .agent-detail .legend-dots .weak::before {
  background: var(--color-accent);
}
.app-main .agent-detail .legend-dots .poor::before {
  background: rgba(67, 56, 202, .3);
}
.app-main .agent-detail [data-tab="c"] .meter-fill.pass,
.app-main .agent-detail [data-tab="c"] .meter-segment.pass.active,
.app-main .agent-detail [data-tab="c"] .matrix-cell.pass {
  background: #38ca5a;
}
.app-main .agent-detail [data-tab="c"] .meter-fill.weak,
.app-main .agent-detail [data-tab="c"] .meter-segment.weak.active,
.app-main .agent-detail [data-tab="c"] .matrix-cell.weak {
  background: #ffbb00;
}
.app-main .agent-detail [data-tab="c"] .meter-fill.poor,
.app-main .agent-detail [data-tab="c"] .meter-segment.poor.active,
.app-main .agent-detail [data-tab="c"] .matrix-cell.poor {
  background: #ff8383;
}
.app-main .agent-detail [data-tab="c"] .meter-tier .badge,
.app-main .agent-detail [data-tab="c"] .legend-dots .badge {
  background: transparent;
  color: #111111;
}
.app-main .agent-detail [data-tab="c"] .legend-dots .badge-pass::before {
  background: #38ca5a;
}
.app-main .agent-detail [data-tab="c"] .legend-dots .badge-weak::before {
  background: #ffbb00;
}
.app-main .agent-detail [data-tab="c"] .legend-dots .badge-poor::before {
  background: #ff8383;
}
.app-main .agent-detail .timeline {
  gap: var(--space-3);
  padding-left: var(--space-6);
}
.app-main .agent-detail .timeline::before {
  left: 7px;
  top: 24px;
  bottom: 24px;
}
.app-main .agent-detail .timeline-item::before {
  left: calc(-1 * var(--space-6) + 1px);
  top: 50%;
  transform: translateY(-50%);
}
.app-main .agent-detail .timeline-card {
  min-height: 54px;
  padding: var(--space-3);
}
.app-main .agent-detail .timeline-date {
  font-size: 14px;
}
.app-main .agent-detail .timeline-meta {
  font-size: 12px;
}
.app-main .agent-detail .course-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.app-main .agent-detail .mini-course-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.app-main .agent-detail .mini-course-card .card-head {
  min-height: 0;
  margin: 0;
}
.app-main .agent-detail .mini-course-card .card-title {
  font-size: 14px;
  line-height: 1.45;
}
.app-main .agent-detail .mini-course-card .card-sub {
  margin: 0;
  color: var(--app-ink-60);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.app-main .agent-detail .mini-course-card .course-tag-row,
.app-main .agent-detail .mini-course-card .keyword-row,
.app-main .agent-detail .mini-course-card .course-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.app-main .agent-detail .mini-course-card .badge {
  min-height: 25px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
}
.app-main .agent-detail .mini-course-card .badge-free {
  background: rgba(56, 202, 90, .1);
  color: #38ca5a;
}
.app-main .agent-detail .mini-course-card .badge-domain,
.app-main .agent-detail .mini-course-card .badge-muted {
  background: var(--app-fill);
  color: var(--color-primary);
}
.app-main .agent-detail .mini-course-card .course-foot {
  color: var(--color-text-muted);
  font-size: 12px;
}
.app-main .agent-detail .mini-course-card .course-foot > :last-child {
  margin-left: auto;
  text-align: right;
}
.app-main .agent-detail .mini-course-card .summon {
  margin-top: auto;
}

/* 产品内课程卡片：同集合等高，召唤语永远单行省略 */
.app-main .course-grid,
.app-main .agent-detail .course-list {
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.app-main .course-card,
.app-main .agent-detail .mini-course-card {
  height: 100%;
  min-width: 0;
}
.app-main .course-card .summon,
.app-main .agent-detail .mini-course-card .summon {
  width: 100%;
  min-width: 0;
  align-items: center;
}
.app-main .course-card .summon .grow,
.app-main .agent-detail .mini-course-card .summon .grow {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.app-main .course-card .summon .btn,
.app-main .agent-detail .mini-course-card .summon .btn {
  flex: 0 0 auto;
}
.app-main .agent-detail .cadence-select {
  min-width: 132px;
  height: 42px;
  padding-right: 38px;
  border-radius: var(--radius-md);
  font-size: 14px;
}
.app-main .agent-detail .cadence-row {
  min-height: 42px;
  border: 0;
}
.app-main .agent-detail .cadence-row + .cadence-row {
  border: 0;
}
.app-main .agent-detail .tab-panel[data-tab="h"] .grid .card .card-foot {
  border-top: 0;
  padding-top: var(--space-2);
}
.app-main .agent-detail .tab-panel[data-tab="h"] .card.mt-4 > .stack > .row-between:first-child .badge {
  font-size: 12px;
}
.cadence-menu {
  position: relative;
  min-width: 132px;
}
.cadence-trigger {
  position: relative;
  width: 100%;
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.cadence-trigger::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}
.cadence-trigger:hover,
.cadence-trigger:focus-visible,
.cadence-menu.open .cadence-trigger {
  border-color: var(--app-border-strong);
  background: var(--app-fill);
  color: var(--color-primary);
  box-shadow: none;
}
.cadence-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.cadence-options[hidden] {
  display: none;
}
.cadence-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.cadence-option:hover,
.cadence-option.active {
  background: var(--app-fill);
  color: var(--color-primary);
}
.app-main .btn-soft,
.app-main .btn-ghost {
  background: rgba(67, 56, 202, .05);
  border-color: transparent;
  color: var(--color-primary);
  font-weight: 500;
}
.app-main .btn-soft:hover,
.app-main .btn-ghost:hover {
  background: var(--app-fill-strong);
  border-color: transparent;
  color: var(--color-primary);
  transform: translateY(-1px);
}
.app-main .report-card .btn-soft,
.app-main .agent-card .btn-soft,
.app-main .timeline-card .btn-soft,
.app-main .feed-item .btn-soft {
  background: transparent;
  color: var(--app-ink-60);
  font-weight: 400;
  padding-inline: 0;
}
.app-main .report-card .btn-soft:hover,
.app-main .agent-card .btn-soft:hover,
.app-main .timeline-card .btn-soft:hover,
.app-main .feed-item .btn-soft:hover {
  background: transparent;
  color: var(--color-primary);
  transform: none;
}
.app-main .report-card .btn-soft {
  min-height: 32px;
  padding-inline: 12px;
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  border-color: transparent;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.app-main .report-card .btn-soft:hover {
  background: var(--app-fill-strong);
  color: var(--color-primary);
}
.app-main .status-bar {
  display: block;
  margin: var(--space-6) 0 var(--space-6);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.app-main .status-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-main .status-bar .sb-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.app-main .status-bar .sb-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.app-main .status-bar .sb-meta > span:not(.badge) {
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  font-weight: 500;
}
.app-main .status-kpis,
.app-main .status-bar .sb-actions {
  display: none;
}
.app-main .report-card {
  display: flex;
  flex-direction: column;
  min-height: 205px;
}
.app-main .report-card .rc-head {
  flex: 0 0 auto;
}
.app-main .report-card .rc-stat {
  flex: 1 1 auto;
  min-height: 69px;
}
.app-main .report-card .rc-foot {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 0;
}
.app-main .feed-item .feed-cta .btn-soft {
  min-height: 30px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: var(--radius-full);
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  font-weight: 500;
}
.app-main .feed-item .feed-cta .btn-soft:hover {
  background: rgba(67, 56, 202, .1);
  color: var(--color-primary);
}
.app-main .agent-card .card-foot {
  border-top: 0;
  padding-top: var(--space-2);
}
.app-main [data-open-drawer] {
  min-height: 48px;
  padding-inline: var(--space-6);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 600;
}
.drawer-foot .btn-primary {
  min-height: 60px;
  padding-inline: var(--space-6);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 600;
}
.pay-agreement-tip {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  text-align: center;
}
.pay-agreement-tip a { color: var(--color-primary); text-decoration: none; }
.pay-agreement-tip a:hover { text-decoration: underline; }
.app-main [data-open-drawer]:hover,
.drawer-foot .btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}
.balance-mini [data-open-drawer] {
  width: 100%;
  min-height: 42px;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
}
.balance-mini [data-open-drawer]:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}
.app-main .member-card .price {
  font-size: 44px;
  line-height: 1;
  margin-block: var(--space-5);
}
.app-main .member-card .price .per {
  font-size: var(--text-base);
  font-weight: 600;
}
.app-main [data-section="billing"] .member-split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  gap: var(--space-4);
}
.app-main [data-section="billing"] .member-card {
  display: flex;
  flex-direction: column;
}
.app-main [data-section="billing"] .member-left {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.app-main [data-section="billing"] .member-status-head,
.app-main [data-section="billing"] .member-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}
.app-main [data-section="billing"] .member-status-head .badge {
  margin-left: auto;
}
.app-main [data-section="billing"] .member-status-line {
  margin-top: var(--space-4);
}
.app-main [data-section="billing"] .member-status-line .price {
  margin: 0;
}
.app-main [data-section="billing"] .member-expire {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.app-main [data-section="billing"] .member-right {
  padding-left: 0;
  padding-top: 0;
  border-left: 0;
  border-top: 0;
}
.app-main [data-section="billing"] .member-right .price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
  margin: var(--space-3) 0 0;
}
.app-main [data-section="billing"] .member-right .price-list li {
  font-size: 14px;
  line-height: 1.5;
}
.app-main [data-section="billing"] .member-card .card-foot {
  border-top: 0;
  margin-top: auto;
}
.app-main [data-section="billing"] .bucket-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
}
.app-main [data-section="billing"] .bucket-card .card-head {
  margin-bottom: var(--space-2);
}
.app-main [data-section="billing"] .bucket-card .bucket-row {
  min-height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}
.app-main [data-section="billing"] .bucket-card .bucket-num {
  font-size: 28px;
  line-height: 1;
}
.app-main [data-section="billing"] .bucket-card .bucket-row-month .bucket-num {
  margin-bottom: 6px;
}
.app-main [data-section="billing"] .bucket-card .bucket-limit {
  color: var(--app-ink-30);
  font-size: 16px;
  font-weight: 600;
}
.app-main [data-section="billing"] .bucket-card .bucket-note {
  margin-top: 2px;
  line-height: 1.4;
}
.app-main [data-section="billing"] .bucket-card .bucket-note-month {
  margin-top: 6px;
  margin-bottom: 0;
}
.app-main [data-section="billing"] .bucket-card .divider {
  margin: var(--space-3) 0;
}
.app-main .member-card [data-open-drawer],
.app-main .bucket-card [data-open-drawer] {
  width: 100%;
}
.app-main .member-card [data-open-drawer] {
  width: 100%;
  max-width: 150px;
}
.app-main [data-section="billing"] .member-card [data-open-drawer],
.app-main [data-section="billing"] .bucket-card [data-open-drawer] {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  min-height: 42px;
  height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}
.app-main [data-section="billing"] .bucket-card .card-foot {
  display: flex;
  justify-content: center;
  border-top: 0;
  margin-top: auto;
  padding-top: 0;
}
.app-main .bucket-card [data-open-drawer] {
  background: rgba(67, 56, 202, .05);
  border-color: transparent;
  color: var(--color-primary);
}
.app-main .bucket-card [data-open-drawer]:hover {
  background: rgba(67, 56, 202, .1);
  border-color: transparent;
  color: var(--color-primary);
}
body:has(.app-shell) #payDrawer .pay-title,
body:has(.app-shell) #payDrawer .pay-points {
  color: var(--color-primary);
  font-weight: 600;
}
body:has(.app-shell) #payDrawer .po-price {
  font-weight: 600;
}
body:has(.app-shell) #payDrawer .po-price .small {
  font-weight: 600;
}
body:has(.app-shell) #payDrawer .pay-drawer-body {
  padding: 0;
  overflow: hidden;
}
body:has(.app-shell) #payDrawer .pay-panel {
  padding: var(--space-5);
}
body:has(.app-shell) #payDrawer.is-checkout .drawer-foot {
  display: none;
}
body:has(.app-shell) #payDrawer .drawer-title-checkout .icon-btn {
  flex: 0 0 auto;
}
.app-main [data-section="courses-core"] .course-card:hover,
.app-main [data-section="courses-core"] .course-card:focus-visible,
.app-main [data-section="courses-pro"] .course-card:hover,
.app-main [data-section="courses-pro"] .course-card:focus-visible {
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(17, 17, 17, .28);
  transform: translateY(-1px);
}
.app-main .pricing-row .btn:not([data-open-drawer]) {
  min-height: 44px;
  font-weight: 500;
}
.app-main .btn-primary:hover {
  background: var(--color-primary-hover);
}
.app-main .feed-item {
  align-items: center;
}
.app-main .feed-cta {
  display: flex;
  align-items: center;
}
.app-main .creed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.app-main .creed-tile {
  align-items: center;
  padding: var(--space-3);
}
.app-main .table th,
.app-main .table td {
  border-bottom-color: var(--app-border);
}
.drawer,
.dropdown {
  box-shadow: none;
}

/* ---- 24m. app 壳响应式 ---- */
@media (max-width: 920px) {
  body:has(.app-shell) { min-width: 0; }
  .app-shell { flex-direction: column; min-width: 0; padding-inline: var(--space-6); }
  .app-sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: var(--space-4); padding: var(--space-3) var(--space-4); }
  .app-sidebar .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .balance-mini { display: none; }
  .progress-grid, .course-grid, .course-grid-3, .creed-grid, .app-main .course-grid-pro { grid-template-columns: 1fr; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .status-kpis { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 640px) {
  .topbar { padding-inline: 18px; }
  .app-shell { padding-inline: 18px; }
  .app-main { padding-bottom: var(--section-y-h5); }
  .drawer { width: 100vw; max-width: 100vw; }
  .status-bar .sb-actions { margin-left: 0; width: 100%; }
  .matrix-row { grid-template-columns: 88px repeat(var(--cols, 4), 1fr); }
}

/* ============================================================
   24o. 协议静态页
   ============================================================ */
.legal-page { min-height: 100vh; background: var(--color-primary-05); color: var(--color-text); }
.legal-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; width: 100%; height: 72px; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px);
}
.legal-brand { display: inline-flex; align-items: center; }
.legal-brand img { display: block; width: 166px; height: 28px; object-fit: contain; }
.legal-shell { width: min(920px, 100%); margin: 0 auto; padding: 40px 24px 64px; }
.legal-document {
  padding: 48px 56px; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.legal-document-head { padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.legal-document-head h1 { margin: 0; font-size: 30px; line-height: 1.3; }
.legal-document-head p { margin: 8px 0 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.legal-document-dates { display: flex; flex-wrap: wrap; gap: 0 24px; }
.legal-document-content { padding-top: 8px; overflow-wrap: anywhere; color: var(--color-text); font-size: 15px; line-height: 1.85; }
.legal-document-content h2 { margin: 34px 0 12px; font-size: 20px; line-height: 1.45; }
.legal-document-content a { color: var(--color-primary); text-underline-offset: 3px; }
.legal-attachment-title { padding-top: 28px; border-top: 1px solid var(--color-border); }
.legal-document-content h3 { margin: 24px 0 8px; font-size: 16px; line-height: 1.5; }
.legal-document-content p { margin: 12px 0; }
.legal-document-content ol,
.legal-document-content ul { margin: 12px 0; padding-left: 24px; }
.legal-numbered-list { list-style: none; counter-reset: legal-item; }
.legal-numbered-list li { position: relative; counter-increment: legal-item; }
.legal-numbered-list li::before { position: absolute; right: calc(100% + 4px); content: counter(legal-item) "、"; white-space: nowrap; }
.legal-dash-list { list-style: none; }
.legal-dash-list li { position: relative; }
.legal-dash-list li::before { position: absolute; right: calc(100% + 6px); content: "-"; }
.legal-document-content li + li { margin-top: 8px; }
.legal-table-wrap { width: 100%; margin: 16px 0; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.legal-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--color-surface); }
.legal-table-wrap th,
.legal-table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); border-right: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.legal-table-wrap th { background: var(--color-surface-2); font-size: var(--text-sm); font-weight: 600; }
.legal-table-wrap tr:last-child td { border-bottom: 0; }
.legal-table-wrap th:last-child,
.legal-table-wrap td:last-child { border-right: 0; }
.legal-note { display: block; margin-top: 32px; padding: 18px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }

@media (max-width: 640px) {
  .legal-topbar { height: 64px; padding: 0 18px; }
  .legal-brand img { width: 142px; height: 24px; }
  .legal-shell { padding: 18px 12px 36px; }
  .legal-document { padding: 28px 20px; border-radius: var(--radius-md); }
  .legal-document-head { padding-bottom: 20px; }
  .legal-document-head h1 { font-size: 24px; }
  .legal-document-dates { display: block; }
  .legal-document-content { font-size: 14px; line-height: 1.8; }
  .legal-document-content h2 { margin-top: 28px; font-size: 18px; }
  .legal-document-content h3 { font-size: 15px; }
  .legal-document-content ol,
  .legal-document-content ul { padding-left: 20px; }
}

/* ============================================================
   25. Figma home implementation
   Scoped to index.html so product pages keep their app-token layout.
   ============================================================ */
.home-page {
  background: #fff;
  color: #111;
  user-select: none;
  -webkit-user-select: none;
}
.home-page input,
.home-page textarea,
.home-page [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}
.home-page .topnav {
  height: 72px;
  background: rgba(255, 255, 255, .3);
  backdrop-filter: blur(20px);
  border-bottom: 0;
}
.home-page .topnav-inner {
  height: 72px;
  max-width: 1200px;
  padding-inline: 18px;
}
.home-page .brand-logo {
  width: 178px;
  height: 30px;
  aspect-ratio: 356 / 60;
  object-fit: contain;
}
.home-page .topnav-links {
  position: static;
  transform: none;
  margin-left: auto;
  gap: 24px;
}
.home-page .topnav-link {
  color: #111;
  font-size: 16px;
  font-weight: 600;
}
.home-page .topnav-actions .btn-ghost {
  width: 96px;
  height: 36px;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-size: 14px;
}
.home-page .topnav-actions {
  margin-left: 30px;
}
.home-page .container {
  max-width: 1200px;
  padding-inline: 18px;
}
.home-page .hero {
  height: 640px;
  padding-block: 0;
  position: relative;
  overflow: hidden;
  background: rgba(67, 56, 202, .03);
}
.home-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(67, 56, 202, .1);
}
.hero-animation-canvas {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 0;
  display: block;
  width: 1920px;
  height: 640px;
  transform: translateX(-50%);
  pointer-events: none;
}
.home-page .hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.home-page .hero-inner {
  width: 640px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  user-select: none;
  -webkit-user-select: none;
}
.home-page .hero-title-image {
  width: 640px;
  height: 85.691px;
  margin: 0;
}
.home-page .hero-copy {
  width: 640px;
  max-width: 640px;
  margin: 0;
  color: rgb(17, 17, 17);
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  opacity: 1;
  user-select: none;
  -webkit-user-select: none;
}
.home-page .hero-actions {
  gap: 12px;
}
.home-page .hero-actions .btn-lg {
  width: 180px;
  height: 60px;
  padding: 0;
  border-radius: 36px;
  font-size: 18px;
  font-weight: 400;
  box-shadow: 0 14px 30px -22px rgba(67, 56, 202, .55);
}
.home-page .hero-actions .btn-primary {
  width: 180px;
  background: var(--color-primary);
  font-weight: 600;
}
.home-page .hero-actions .btn-ghost {
  width: 180px;
  background: #fff;
  border-color: rgba(67, 56, 202, .1);
  color: #111;
}
.home-page .hero-actions .btn-ghost:hover {
  background: #fff;
  border-color: rgba(67, 56, 202, .1);
  color: #111;
  box-shadow: 0 18px 34px -22px rgba(67, 56, 202, .65);
  transform: translateY(-1px);
}
.home-page .hero-actions .btn-primary:hover {
  box-shadow: 0 18px 34px -22px rgba(67, 56, 202, .65);
  transform: translateY(-1px);
}
.hero-free-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding-right: 24px;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 36px;
  background: #fff;
  overflow: hidden;
}
.hero-free-pill .free-label {
  width: 72px;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 18px 0 0 18px;
  background: rgb(255, 187, 0);
  color: rgb(17, 17, 17);
  font-size: 14px;
  font-weight: 600;
}
.hero-free-pill .free-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(17, 17, 17);
  font-size: 14px;
  white-space: nowrap;
}
.hero-free-pill .free-item::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("images/figma-check-primary.svg") center / contain no-repeat;
}
.home-page .section-sm,
.home-page .section {
  padding-block: 120px;
}
.home-page .section-head {
  width: 100%;
  max-width: 100%;
  margin: 0 0 36px;
  gap: 12px;
}
.home-page .section-title {
  font-size: 24px;
  line-height: normal;
  font-weight: 600;
  margin: 0;
}
.home-page .section-sub {
  color: rgba(17, 17, 17, .6);
  font-size: 16px;
  line-height: normal;
}
.home-page .home-flow,
.home-page .courses-section {
  background: #fff;
}
.home-flow-layout {
  display: flex;
  align-items: center;
  gap: 56px;
}
.home-flow-copy {
  width: 480px;
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.home-flow-copy .section-head {
  margin-bottom: 0;
}
.home-step-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  padding: 24px;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 18px;
  background: #fff;
}
.home-flow-visual {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.home-flow-visual img {
  width: min(620px, 100%);
  height: auto;
  object-fit: contain;
}
.home-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-step .step-title {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 500;
}
.home-step .step-desc {
  margin: 0;
  color: rgba(17, 17, 17, .6);
  font-size: 14px;
  line-height: 1.5;
}
.home-page .install-section,
.home-page .pricing-section {
  background: rgba(67, 56, 202, .03);
}
.home-page .install-layout {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.home-page .install-left {
  display: block;
}
.home-page .install-command {
  height: 100%;
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr 108px max-content 1fr;
  grid-template-rows: minmax(0, 1fr) 48px;
  align-items: center;
  justify-content: center;
  column-gap: 24px;
  row-gap: 24px;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.home-page .install-command::before {
  display: none;
}
.install-command-figure {
  grid-column: 2;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}
.install-command-figure img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}
.home-page .install-command-main {
  grid-column: 3;
  width: max-content;
  max-width: 100%;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  color: #111;
  font-size: 16px;
  text-align: left;
}
.home-page .command-copy {
  color: #111;
  font-size: 16px;
  line-height: normal;
}
.home-page .command-copy b {
  color: var(--color-primary);
  font-weight: 600;
}
.home-page .install-command .btn {
  grid-column: 1 / -1;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}
.home-page .install-command .btn:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}
.home-page .install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.install-step {
  display: flex;
  flex: 1 1 0;
  min-height: 92px;
}
.install-step-num {
  width: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  border-radius: 12px 0 0 12px;
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 600;
}
.install-step-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border: 1px solid rgba(67, 56, 202, .1);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #fff;
}
.install-step-body h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
}
.install-step-body p {
  margin: 0;
  color: rgba(17, 17, 17, .6);
  font-size: 14px;
}
.home-page .install-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(17, 17, 17, .6);
  font-size: 16px;
  line-height: normal;
}
.home-page .install-note::before,
.price-note::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: url("images/figma-bulb.svg") center / contain no-repeat;
}
.course-section-block + .course-section-block {
  margin-top: 24px;
}
.home-page .course-group-head {
  height: auto;
  min-height: 84px;
  margin: 0 0 12px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  border-radius: 18px;
  background: var(--color-primary);
}
.home-page .course-group-head h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.home-page .course-group-head span {
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
}
.home-page .courses-section .grid-3 {
  gap: 12px;
}
.home-page .courses-section .course-section-block-tall .grid-3 {
  align-items: start;
}
.home-page .courses-section .course-meta {
  gap: 6px;
}
.home-page .courses-section .badge {
  min-height: 29px;
  padding: 6px 12px;
  border-radius: 36px;
  border-color: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}
.home-page .courses-section .badge-domain,
.home-page .courses-section .badge-advanced,
.home-page .courses-section .badge-intro {
  background: rgba(67, 56, 202, .05);
  color: var(--color-primary);
}
.home-page .courses-section .badge-free {
  background: rgba(56, 202, 90, .1);
  color: #38ca5a;
}
.home-page .courses-section .badge-muted {
  background: rgba(17, 17, 17, .03);
  color: rgba(17, 17, 17, .3);
  font-weight: 400;
}
.home-page .courses-section .course-card {
  min-height: 150px;
  max-width: none;
  padding: 24px;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 18px;
  background: #fff;
}
.home-page .courses-section .course-section-block-tall .course-card {
  min-height: 0;
  gap: 12px;
}
.home-page .courses-section .card-title {
  font-size: 18px;
  font-weight: 500;
}
.home-page .courses-section .card-sub {
  margin-bottom: auto;
  color: rgba(17, 17, 17, .6);
  font-size: 16px;
}
.home-page .courses-section .course-section-block-tall .card-title {
  font-size: 16px;
}
.home-page .courses-section .course-section-block-tall .card-sub {
  min-height: calc(7 * 1.55em);
  max-height: none;
  overflow: visible;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.home-page .courses-section .course-section-block-tall .course-meta {
  flex-wrap: wrap;
  margin-top: 0;
}
.home-page .courses-section .text-center {
  margin-top: 24px;
  text-align: left;
}
.home-page .courses-section .text-center .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding-inline: 24px;
  border-radius: 36px;
  font-size: 16px;
  font-weight: 400;
}
.home-page .courses-section .text-center .btn img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}
.pricing-row {
  display: flex;
  align-items: center;
  width: 100%;
}
.pricing-card {
  flex: 1 1 0;
  height: 426px;
  justify-content: space-between;
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.pricing-card:first-child {
  border-radius: 18px 0 0 18px;
}
.pricing-card:last-child {
  border-radius: 0 18px 18px 0;
}
.home-page .pricing-section .card-feature {
  height: 462px;
  border-radius: 18px;
  background: var(--color-primary);
  box-shadow: 0 20px 20px rgba(67, 56, 202, .3);
  z-index: 1;
}
.home-page .pricing-section .card-head {
  min-height: auto;
  margin: 0;
}
.home-page .pricing-section .card-title {
  font-size: 24px;
  font-weight: 600;
}
.home-page .pricing-section .card-sub {
  font-size: 14px;
}
.home-page .pricing-section .badge {
  min-width: 60px;
  justify-content: center;
  background: var(--color-accent);
  border: 0;
  color: #111;
}
.home-page .pricing-section .card-feature .badge {
  background: var(--color-accent);
  color: var(--color-primary);
}
.home-page .pricing-section .is-hidden {
  opacity: 0;
}
.home-page .pricing-section .price {
  min-height: auto;
  color: #111;
  font-size: 36px;
  font-weight: 600;
}
.home-page .pricing-section .price .per {
  color: inherit;
}
.home-page .pricing-section .card-feature .price,
.home-page .pricing-section .card-feature .card-title {
  color: #fff;
}
.home-page .pricing-section .price-list {
  gap: 12px;
  margin: 0;
}
.home-page .pricing-section .price-list li {
  color: rgba(17, 17, 17, .6);
  font-size: 14px;
}
.home-page .pricing-section .price-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("images/figma-check-primary.svg") center / contain no-repeat;
}
.home-page .pricing-section .card-feature .price-list li {
  color: #fff;
}
.home-page .pricing-section .card-feature .price-list li::before {
  background-image: url("images/figma-check-white.svg");
}
.home-page .pricing-section .btn-block {
  height: 48px;
  margin: 0;
  border-radius: 36px;
  font-size: 16px;
  font-weight: 400;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.home-page .pricing-section .btn-ghost,
.home-page .pricing-section .btn-soft {
  background: rgba(67, 56, 202, .05);
  border-color: rgba(67, 56, 202, .1);
  color: #111;
}
.home-page .pricing-section .btn-ghost:hover,
.home-page .pricing-section .btn-soft:hover {
  background: rgba(67, 56, 202, .1);
  border-color: rgba(67, 56, 202, .22);
  color: var(--color-primary);
  box-shadow: 0 10px 24px -20px rgba(67, 56, 202, .55);
  transform: translateY(-1px);
}
.home-page .pricing-section .card-feature .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}
.home-page .pricing-section .card-feature .btn-primary:hover {
  background: #f7f6ff;
  border-color: #f7f6ff;
  color: var(--color-primary-hover);
  box-shadow: 0 14px 28px -22px rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}
.home-page .credit-packs {
  display: flex;
  gap: 12px;
  min-height: auto;
  margin: 0;
}
.home-page .credit-packs span {
  flex: 1 1 0;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(67, 56, 202, .05);
  color: #111;
}
.home-page .credit-packs b {
  font-size: 16px;
}
.home-page .credit-packs small {
  font-size: 14px;
}
.price-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  color: rgba(17, 17, 17, .6);
  font-size: 16px;
}
.home-footer {
  background: #111;
}
.home-footer .container {
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 24px;
}
.footer-logo-wrap {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
}
.footer-logo-wrap img {
  width: auto;
  height: 70px;
  object-fit: contain;
}
.home-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, .3);
  font-size: 16px;
}

@media (max-width: 920px) {
  .home-page .topnav-links {
    display: none;
  }
  .home-page .hero {
    height: auto;
    min-height: 560px;
    padding-block: 96px;
  }
  .home-page .hero-inner,
  .home-page .hero-copy,
  .home-page .hero-title-image {
    width: 100%;
    max-width: 640px;
  }
  .home-page .hero-title-image {
    height: auto;
  }
  .home-flow-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .home-flow-copy {
    width: 100%;
    flex-basis: auto;
  }
  .home-step-grid {
    width: 100%;
  }
  .home-flow-visual {
    width: 100%;
    justify-content: center;
  }
  .home-page .courses-section .grid-3 {
    grid-template-columns: 1fr;
  }
  .home-page .install-layout {
    grid-template-columns: 1fr;
  }
  .pricing-row {
    flex-direction: column;
    gap: 12px;
  }
  .pricing-card,
  .pricing-card:first-child,
  .pricing-card:last-child,
  .home-page .pricing-section .card-feature {
    width: 100%;
    height: auto;
    min-height: 426px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .home-page .topnav-inner,
  .home-page .container {
    padding-inline: 18px;
  }
  .home-page .topnav {
    height: 64px;
  }
  .home-page .topnav-inner {
    height: 64px;
  }
  .home-page .brand-logo {
    width: 142px;
    height: auto;
  }
  .home-page .topnav-actions .btn-ghost {
    width: 84px;
  }
  .home-page .hero {
    min-height: 520px;
    padding-block: 72px;
  }
  .hero-animation-canvas {
    top: 0;
    height: 640px;
    opacity: .72;
  }
  .home-page .hero-copy {
    font-size: 16px;
    line-height: 1.65;
  }
  .home-page .hero-actions {
    width: 100%;
  }
  .home-page .hero-actions .btn-lg {
    flex: 1 1 0;
    width: auto;
  }
  .hero-free-pill {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 0 12px 10px 0;
  }
  .hero-free-pill .free-label {
    height: 36px;
  }
  .home-page .section,
  .home-page .section-sm {
    padding-block: 72px;
  }
  .home-page .section-title {
    font-size: 22px;
  }
  .home-page .install-command {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 48px;
    min-height: 280px;
    justify-items: center;
  }
  .install-command-figure,
  .home-page .install-command-main,
  .home-page .install-command .btn {
    grid-column: 1;
  }
  .home-page .install-command-main {
    width: auto;
    text-align: center;
    align-items: center;
  }
  .install-step {
    min-height: 112px;
  }
  .install-step-num {
    width: 56px;
    flex-basis: 56px;
  }
  .install-step-body {
    padding-inline: 18px;
  }
  .home-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-page .course-group-head {
    min-height: 96px;
  }
  .home-page .credit-packs {
    flex-direction: column;
  }
  .home-footer .container {
    height: 320px;
  }
}

/* Final mobile dashboard override: must remain after legacy responsive rules. */
@media (min-width: 761px) {
  .app-sidebar {
    position: fixed;
    top: calc(var(--topbar-h) + var(--space-5));
    bottom: var(--space-5);
    height: auto;
    max-height: none;
    margin-top: 0;
  }
}

/* Agent list: prioritize readable cards; only expand to three columns on wide screens. */
.app-main .agent-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-main .agent-grid > .agent-card,
.app-main .agent-grid > .add-card {
  min-width: 0;
  width: 100%;
}
.app-main .agent-grid .agent-card .card-head .row > div:last-child {
  min-width: 0;
}
.app-main .agent-grid .agent-card .card-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .app-main .agent-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .app-main .agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body:has(.app-shell) { min-width: 0; }
  .app-shell { display: block; min-width: 0; padding-inline: 18px; }
  .app-main { width: 100%; padding-bottom: calc(var(--section-y-h5) + 76px + env(safe-area-inset-bottom)); }
  .app-sidebar {
    position: fixed;
    z-index: 80;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(68px + env(safe-area-inset-bottom));
    max-height: none;
    margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--app-border);
    border-radius: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .app-sidebar .sidebar-label,
  .app-sidebar .balance-mini { display: none; }
  .app-sidebar .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 56px;
    gap: 0;
    overflow: visible;
  }
  .app-sidebar .sidebar-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    border-radius: var(--radius-md);
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .app-sidebar .sidebar-item svg { width: 20px; height: 20px; }
  .app-main .block-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}
