/* ============================================================
   FUN4YEAH · Design Tokens（设计交付包 v2 · 唯一事实来源）
   赛博柔和风 · 深色主题
   ============================================================ */

:root {
  --bg-0: #131116;
  --bg-1: #191620;
  --bg-2: #201C28;
  --bg-3: #2B2534;

  --fg-1: #F8F5F2;
  --fg-2: #A79FB0;
  --fg-3: #6C6478;

  --line-1: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.20);

  --brand: #5FD46F;
  --sky:   #57C7FF;
  --violet:#9B8CFF;
  --yellow:#FFC94A;
  --coral: #FF7A5C;
  --pink:  #FF7EB6;

  --brand-soft: rgba(95,212,111,0.14);
  --sky-soft:   rgba(87,199,255,0.14);
  --violet-soft:rgba(155,140,255,0.14);
  --yellow-soft:rgba(255,201,74,0.14);
  --coral-soft: rgba(255,122,92,0.14);
  --pink-soft:  rgba(255,126,182,0.14);

  --grad-brand: linear-gradient(120deg, #5FD46F 0%, #57C7FF 50%, #9B8CFF 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(95,212,111,0.3), rgba(87,199,255,0.3), rgba(155,140,255,0.3));
  --grad-warm: linear-gradient(120deg, #FFC94A, #FF7A5C, #FF7EB6);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 56px; --sp-10: 80px;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 6px 24px rgba(0,0,0,0.35);
  --shadow-3: 0 20px 60px rgba(0,0,0,0.45);
  --glow-brand: 0 0 40px rgba(95,212,111,0.35);
  --glow-sky:   0 0 40px rgba(87,199,255,0.35);
  --glow-violet:0 0 40px rgba(155,140,255,0.35);
  --glow-yellow:0 0 40px rgba(255,201,74,0.35);
  --glow-coral: 0 0 40px rgba(255,122,92,0.35);
  --glow-pink:  0 0 40px rgba(255,126,182,0.35);

  --font-display: "Smiley Sans Oblique", "得意黑", "PingFang SC", -apple-system, sans-serif;
  --font-body: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============ 字体阶梯 ============ */
.t-display { font-family: var(--font-display); font-weight: 400; font-size: 72px; line-height: 0.95; letter-spacing: -0.02em; color: var(--fg-1); }
.t-h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.01em; color: var(--fg-1); }
.t-h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--fg-1); }
.t-h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--fg-1); }
.t-h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--fg-1); }
.t-body { font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.t-body-lg { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.65; color: var(--fg-1); }
.t-caption { font-family: var(--font-body); font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: 0.01em; color: var(--fg-2); }
.t-mono { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.02em; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.t-num { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -0.02em; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.t-num-lg { font-size: 88px; } .t-num-md { font-size: 44px; } .t-num-sm { font-size: 32px; }

/* ============ Base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--fg-1); font-family: var(--font-body); font-size: 14px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: var(--font-body); }
::selection { background: rgba(155,140,255,0.3); }

.app-shell { width: 100%; height: 100vh; background: var(--bg-0); color: var(--fg-1); display: grid; grid-template-columns: 240px 1fr; font-family: var(--font-body); overflow: hidden; position: relative; }

.ambient-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.18; pointer-events: none; z-index: 0; }
.ambient-glow.top-right { top: -200px; right: -200px; }
.ambient-glow.bottom-left { bottom: -200px; left: 200px; }

/* ============ 侧边栏 ============ */
.sidebar { background: var(--bg-1); border-right: 1px solid var(--line-1); padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 2; height: 100vh; overflow-y: auto; }
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; border-bottom: 1px dashed var(--line-1); }
.sidebar-logo .brand-logo { height: 22px; width: auto; max-width: 100%; object-fit: contain; }
.sidebar-team { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-2); border-radius: var(--r-md); border: 1px solid var(--line-1); cursor: pointer; transition: all 0.2s var(--ease-out); }
.sidebar-team:hover { border-color: var(--line-2); }
.sidebar-team-avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #131116; font-family: var(--font-display); font-size: 16px; flex-shrink: 0; }
.sidebar-team-name { font-weight: 600; color: var(--fg-1); font-size: 13px; }
.sidebar-team-role { font-size: 11px; color: var(--fg-2); margin-top: 2px; font-family: var(--font-mono); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.15em; padding: 12px 12px 6px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--fg-2); font-size: 13px; font-weight: 500; cursor: pointer; position: relative; transition: all 0.2s var(--ease-out); }
.nav-item:hover { background: var(--bg-2); color: var(--fg-1); }
.nav-item.active { background: var(--bg-2); color: var(--fg-1); }
.nav-item.active::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 3px; background: var(--nav-color, var(--brand)); box-shadow: 0 0 12px var(--nav-color, var(--brand)); }
.nav-item .nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: var(--r-pill); background: var(--nav-color, var(--coral)); color: #131116; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sidebar-slogan { margin-top: auto; padding: 14px 12px; background: linear-gradient(135deg, rgba(95,212,111,0.08), rgba(155,140,255,0.08)); border: 1px solid var(--line-1); border-radius: var(--r-md); position: relative; overflow: hidden; }
.sidebar-slogan::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(87,199,255,0.18), transparent 60%); pointer-events: none; }
.sidebar-slogan-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.15em; margin-bottom: 6px; }
.sidebar-slogan-text { font-family: var(--font-display); font-size: 15px; color: var(--fg-1); line-height: 1.4; position: relative; }

/* ============ 主内容区 ============ */
.main { padding: 28px 32px; overflow-y: auto; position: relative; z-index: 1; height: 100vh; }
.main::-webkit-scrollbar { width: 6px; }
.main::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 24px; }
.page-header-left { min-width: 0; }
.page-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.page-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }

/* ============ 卡片三档层次 ============ */
.card { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r-lg); padding: 20px; position: relative; overflow: hidden; transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out); }
.card.with-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-color, var(--brand)); opacity: 0.85; pointer-events: none; }
.card.hero { background: var(--bg-2); border-color: var(--line-2); }
.card.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px; background: linear-gradient(180deg, var(--card-color-soft, var(--brand-soft)), transparent); pointer-events: none; }
.card.hero::after { content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--card-color, var(--brand)); filter: blur(80px); opacity: 0.22; pointer-events: none; }
.card.hero > * { position: relative; z-index: 1; }
.card.glass { background: rgba(32, 28, 40, 0.65); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-color: var(--line-2); }
.card.interactive { cursor: pointer; }
.card.interactive:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* ============ 按钮 ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg-1); font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s var(--ease-out); white-space: nowrap; }
.btn:hover { background: var(--bg-3); border-color: var(--line-strong); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #0a1f0d; font-weight: 600; }
.btn.primary:hover { box-shadow: 0 0 24px rgba(95,212,111,0.5); }
.btn.gradient { background: var(--grad-brand); border: none; color: #131116; font-weight: 600; }
.btn.gradient:hover { box-shadow: 0 0 32px rgba(95,212,111,0.35); }
.btn.ghost { background: transparent; border-color: var(--line-1); color: var(--fg-2); }
.btn.ghost:hover { color: var(--fg-1); }
.btn.danger { background: transparent; border-color: var(--coral-soft); color: var(--coral); }
.btn.danger:hover { background: var(--coral-soft); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 14px; }
.btn.icon-only { width: 36px; padding: 0; }
.btn.icon-only.sm { width: 28px; height: 28px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ 徽章 / 芯片 ============ */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--bg-3); color: var(--fg-2); font-size: 11px; font-weight: 500; font-family: var(--font-body); border: 1px solid var(--line-1); white-space: nowrap; }
.chip.solid { background: var(--chip-color, var(--brand)); color: #131116; border: none; font-weight: 600; }
.chip.tint { background: var(--chip-soft, var(--brand-soft)); color: var(--chip-color, var(--brand)); border: 1px solid transparent; }
.chip.outline { background: transparent; border-color: var(--chip-color, var(--brand)); color: var(--chip-color, var(--brand)); }
.chip.mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; }
.chip.clickable { cursor: pointer; transition: all 0.2s var(--ease-out); }
.chip.clickable:hover { border-color: var(--line-strong); color: var(--fg-1); }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--bg-3); color: var(--fg-2); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-color, var(--brand)); box-shadow: 0 0 8px var(--dot-color, var(--brand)); flex-shrink: 0; }

/* ============ 进度条 ============ */
.progress { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: var(--r-pill); overflow: hidden; position: relative; }
.progress-fill { height: 100%; border-radius: var(--r-pill); background: var(--progress-color, var(--brand)); position: relative; transition: width 0.6s var(--ease-out); }
.progress-fill.gradient { background: var(--grad-brand); }

/* ============ 工具类 ============ */
.divider { height: 1px; background: var(--line-1); margin: 20px 0; border: none; }
.divider.dashed { background: none; border-top: 1px dashed var(--line-1); height: 0; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.scroll-y { overflow-y: auto; }
.scroll-y::-webkit-scrollbar { width: 6px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.scroll-y::-webkit-scrollbar-track { background: transparent; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 猫脸气泡 ============ */
.cat-float { position: fixed; bottom: 24px; right: 28px; display: flex; align-items: flex-end; gap: 10px; z-index: 50; pointer-events: none; }
.cat-bubble { background: rgba(32, 28, 40, 0.85); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border: 1px solid var(--line-2); border-radius: 18px 18px 4px 18px; padding: 10px 14px; color: var(--fg-1); font-size: 12px; line-height: 1.5; max-width: 200px; box-shadow: var(--shadow-2); }
.cat-avatar { width: 56px; height: 56px; border-radius: 18px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-brand); flex-shrink: 0; }

/* ============ 评分分布 ============ */
.rating-row { display: grid; grid-template-columns: 32px 1fr 40px; align-items: center; gap: 12px; padding: 6px 0; }
.rating-row .stars { color: var(--yellow); font-family: var(--font-mono); font-size: 12px; }
.rating-row .bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: var(--r-pill); overflow: hidden; }
.rating-row .bar-fill { height: 100%; background: var(--grad-warm); border-radius: var(--r-pill); }
.rating-row .val { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); text-align: right; }

/* ============ Segmented control ============ */
.seg { display: inline-flex; padding: 3px; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r-pill); gap: 2px; }
.seg-item { padding: 6px 14px; border-radius: var(--r-pill); font-size: 12px; color: var(--fg-2); cursor: pointer; font-weight: 500; transition: all 0.2s var(--ease-out); user-select: none; }
.seg-item.active { background: var(--bg-3); color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ============ 空状态 ============ */
.empty-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.015) 8px, rgba(255,255,255,0.015) 16px); }
.empty-block .title { font-family: var(--font-display); font-size: 18px; color: var(--fg-1); }
.empty-block .hint { font-size: 12px; color: var(--fg-2); }

/* ============ 模块色映射 ============ */
.mod-brand  { --card-color: var(--brand);  --card-color-soft: var(--brand-soft); }
.mod-sky    { --card-color: var(--sky);    --card-color-soft: var(--sky-soft); }
.mod-violet { --card-color: var(--violet); --card-color-soft: var(--violet-soft); }
.mod-yellow { --card-color: var(--yellow); --card-color-soft: var(--yellow-soft); }
.mod-coral  { --card-color: var(--coral);  --card-color-soft: var(--coral-soft); }
.mod-pink   { --card-color: var(--pink);   --card-color-soft: var(--pink-soft); }

/* ============ 应用补充 ============ */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 999px; padding: 8px 16px; width: 320px; position: relative; }
.search-box input { background: transparent; border: none; outline: none; color: var(--fg-1); font-size: 13px; flex: 1; font-family: inherit; }
.search-box input::placeholder { color: var(--fg-3); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: -100px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: 8px; z-index: 100; max-height: 400px; overflow-y: auto; }
.search-result-item { padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.search-result-item:hover { background: var(--bg-2); }

.avatar-block { width: 32px; height: 32px; border-radius: 10px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #131116; font-family: var(--font-display); font-size: 14px; flex-shrink: 0; }
.avatar-block.pink { background: linear-gradient(135deg, #FF7EB6, #9B8CFF); }
.avatar-block.sky { background: linear-gradient(135deg, #57C7FF, #5FD46F); }
.avatar-block.yellow { background: linear-gradient(135deg, #FFC94A, #FF7A5C); }
.avatar-block.coral { background: linear-gradient(135deg, #FF7A5C, #FF7EB6); }
.avatar-block.violet { background: linear-gradient(135deg, #9B8CFF, #57C7FF); }

.hero-title { font-family: var(--font-display); font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; color: var(--fg-1); margin: 6px 0 8px; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.warm-grad-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-item { background: var(--bg-1); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line-1); cursor: pointer; transition: all 0.2s var(--ease-out); }
.quick-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.form-input, .form-select, .form-textarea { width: 100%; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--fg-1); font-size: 13px; padding: 9px 12px; outline: none; transition: border-color 0.2s var(--ease-out); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(155,140,255,0.12); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-label { font-size: 12px; color: var(--fg-2); margin-bottom: 6px; display: block; font-weight: 500; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A79FB0' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }

.modal-mask { position: fixed; inset: 0; background: rgba(10,8,14,0.7); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 32px; }
.modal-card { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-3); width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line-1); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 10px 20px; box-shadow: var(--shadow-3); z-index: 300; font-size: 13px; display: flex; align-items: center; gap: 8px; animation: toast-in 0.3s var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; color: var(--fg-3); font-weight: 500; font-size: 11px; border-bottom: 1px solid var(--line-1); font-family: var(--font-mono); letter-spacing: 0.08em; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line-1); color: var(--fg-2); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table td .cell-main { color: var(--fg-1); font-weight: 500; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }

.timeline-item { display: grid; grid-template-columns: 84px 24px 1fr; gap: 12px; padding: 14px 0; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; margin: 3px auto 0; box-shadow: 0 0 10px currentColor; }
.timeline-line { width: 1px; background: var(--line-2); margin: 0 auto; flex: 1; }

.kw-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); font-weight: 500; }

.article-body p { font-size: 14px; line-height: 1.75; color: var(--fg-2); margin-bottom: 14px; }
.article-body p.lead { color: var(--fg-1); }
.quote-block { background: linear-gradient(120deg, rgba(155,140,255,0.08), rgba(87,199,255,0.08)); border: 1px solid var(--line-1); border-left: 3px solid var(--violet); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }

.md-body h2 { font-family: var(--font-display); font-size: 19px; color: var(--fg-1); margin: 22px 0 10px; font-weight: 400; }
.md-body p { font-size: 14px; line-height: 1.75; color: var(--fg-2); margin-bottom: 12px; }
.md-body strong { color: var(--fg-1); }
.md-body ol, .md-body ul { color: var(--fg-2); font-size: 14px; line-height: 1.75; padding-left: 20px; }
.md-body li { margin-bottom: 6px; }
.md-body code { font-family: var(--font-mono); background: var(--bg-3); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.login-card { width: 400px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 36px; position: relative; z-index: 2; box-shadow: var(--shadow-3); }

.trait-card { background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 14px 16px; position: relative; }
.endorse-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font-size: 11px; cursor: pointer; transition: all 0.2s var(--ease-out); font-family: var(--font-body); }
.endorse-btn:hover { border-color: var(--line-strong); color: var(--fg-1); }
.endorse-btn.active { background: var(--pink-soft); border-color: var(--pink); color: var(--pink); }
.endorse-btn.active.green { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

.admin-shell { width: 100%; height: 100vh; display: grid; grid-template-columns: 220px 1fr; overflow: hidden; background: var(--bg-0); }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--fg-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s var(--ease-out); }
.admin-nav-item:hover { background: var(--bg-2); color: var(--fg-1); }
.admin-nav-item.active { background: var(--bg-2); color: var(--fg-1); box-shadow: inset 2px 0 0 var(--brand); }

.stat-card { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 16px 18px; position: relative; overflow: hidden; }

.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fade-in { animation: fade-in 0.35s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 76px 1fr; }
  .sidebar { padding: 16px 10px; }
  .sidebar-logo .brand-logo, .sidebar-logo svg, .sidebar-team div, .nav-item span, .nav-badge, .sidebar-slogan, .nav-group-label { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 2; }
}
