/* =========================================================
   数智·班小知 — Design System (light)
   ========================================================= */
:root {
  --bg: #F4F6FB;
  --bg-2: #EEF1F8;
  --card: #FFFFFF;
  --line: rgba(17, 24, 39, .07);
  --line-2: rgba(17, 24, 39, .12);
  --text: #0F172A;
  --text-2: #475467;
  --text-3: #98A2B3;
  --indigo: #6366F1;
  --violet: #8B5CF6;
  --grad: linear-gradient(135deg, #6366F1 0%, #8B5CF6 55%, #D946EF 100%);
  --grad-aurora: linear-gradient(120deg, #6366F1, #8B5CF6, #EC4899, #06B6D4);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .03);
  --sh-2: 0 10px 28px -12px rgba(16, 24, 40, .16), 0 2px 6px -2px rgba(16, 24, 40, .05);
  --sh-3: 0 30px 60px -20px rgba(16, 24, 40, .28);
  --sh-brand: 0 10px 26px -10px rgba(99, 102, 241, .6);
  --sb-w: 232px;
  --top-h: 60px;
  --ease: cubic-bezier(.2, .9, .25, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --num: "DIN Alternate", "SF Pro Display", "Segoe UI", -apple-system, "PingFang SC", sans-serif;
  --c: #6366F1; --c-2: #8B5CF6; --c-soft: rgba(99, 102, 241, .1);
}

/* tones */
.t-indigo { --c: #6366F1; --c-2: #8B5CF6; --c-soft: rgba(99, 102, 241, .1); }
.t-blue { --c: #3B82F6; --c-2: #6366F1; --c-soft: rgba(59, 130, 246, .1); }
.t-sky { --c: #0EA5E9; --c-2: #06B6D4; --c-soft: rgba(14, 165, 233, .1); }
.t-cyan { --c: #06B6D4; --c-2: #14B8A6; --c-soft: rgba(6, 182, 212, .1); }
.t-emerald { --c: #10B981; --c-2: #14B8A6; --c-soft: rgba(16, 185, 129, .1); }
.t-teal { --c: #14B8A6; --c-2: #06B6D4; --c-soft: rgba(20, 184, 166, .1); }
.t-violet { --c: #8B5CF6; --c-2: #D946EF; --c-soft: rgba(139, 92, 246, .1); }
.t-amber { --c: #F59E0B; --c-2: #F97316; --c-soft: rgba(245, 158, 11, .12); }
.t-orange { --c: #F97316; --c-2: #F43F5E; --c-soft: rgba(249, 115, 22, .1); }
.t-rose { --c: #F43F5E; --c-2: #EC4899; --c-soft: rgba(244, 63, 94, .1); }
.t-pink { --c: #EC4899; --c-2: #8B5CF6; --c-soft: rgba(236, 72, 153, .1); }
.t-slate { --c: #64748B; --c-2: #475569; --c-soft: rgba(100, 116, 139, .1); }
.t-green { --c: #16A34A; --c-2: #10B981; --c-soft: rgba(22, 163, 74, .1); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: rgba(99, 102, 241, .18); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .25); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .4); }
::-webkit-scrollbar-track { background: transparent; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.9; flex: none; }
svg.lucide { flex: none; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.grad-text { background: var(--grad-aurora); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-col { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fw-6 { font-weight: 600; }

/* ---------- background ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.bg-aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -22vw; background: radial-gradient(circle, #C7D2FE 0%, transparent 68%); animation: drift1 26s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(2) { width: 44vw; height: 44vw; right: -14vw; top: 6vh; background: radial-gradient(circle, #F5D0FE 0%, transparent 68%); animation: drift2 30s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(3) { width: 48vw; height: 48vw; left: 26vw; bottom: -30vw; background: radial-gradient(circle, #A5F3FC 0%, transparent 68%); animation: drift3 34s ease-in-out infinite alternate; }
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(99, 102, 241, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, .045) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, .62); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-right: 1px solid var(--line); z-index: 50; overflow-y: auto; overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .02em; line-height: 1.15; }
.brand-name small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .04em; margin-top: 2px; }
.nav-label { font-size: 11px; color: var(--text-3); padding: 12px 12px 4px; letter-spacing: .1em; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 12px; color: var(--text-2);
  text-decoration: none; font-weight: 550; position: relative; transition: background .2s, color .2s, box-shadow .25s; margin: 1px 0;
}
.nav a .ni { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); transition: .25s var(--ease); }
.nav a .ni svg { width: 15px; height: 15px; }
.nav a:hover { background: rgba(99, 102, 241, .06); color: var(--text); }
.nav a:hover .ni { transform: scale(1.08) rotate(-6deg); }
.nav a.active { color: #fff; background: linear-gradient(135deg, var(--c), var(--c-2)); box-shadow: 0 10px 22px -10px var(--c); }
.nav a.active .ni { background: rgba(255, 255, 255, .22); color: #fff; }
.nav a .nb { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--grad); color: #fff; }
.nav a.active .nb { background: rgba(255, 255, 255, .28); }
.sb-agent {
  margin-top: auto; padding: 12px; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(99, 102, 241, .1), rgba(236, 72, 153, .08) 60%, rgba(6, 182, 212, .1)); border: 1px solid rgba(99, 102, 241, .14);
}
.sb-agent .flex { gap: 10px; }
.sb-agent b { font-size: 13px; }
.sb-agent .status { font-size: 11px; color: #10B981; display: flex; align-items: center; gap: 5px; }
.sb-agent .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); animation: pulse 2s infinite; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 10px; }
.eq i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #8B5CF6, #6366F1); opacity: .75; animation: eq 1.4s ease-in-out infinite; }
.eq i:nth-child(odd) { background: linear-gradient(180deg, #22D3EE, #6366F1); }
.sb-agent .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); margin-top: 8px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; margin-top: 8px; border-top: 1px dashed var(--line-2); }
.sb-user .who { min-width: 0; flex: 1; }
.sb-user .who b { display: block; font-size: 13px; }
.sb-user .who span { font-size: 11px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 24px;
  background: rgba(244, 246, 251, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line);
}
.topbar .crumb { min-width: 0; }
.topbar .crumb b { font-size: 16px; font-weight: 700; display: block; line-height: 1.2; }
.topbar .crumb span { font-size: 12px; color: var(--text-3); }
.cmdk-btn {
  flex: 1; max-width: 520px; margin: 0 auto; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .85); color: var(--text-3); cursor: pointer; font: inherit; transition: .2s;
}
.cmdk-btn:hover { border-color: rgba(99, 102, 241, .45); box-shadow: 0 0 0 4px rgba(99, 102, 241, .08); }
.cmdk-btn .sp { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmdk-btn kbd { font: 600 11px var(--num); padding: 2px 6px; border-radius: 6px; background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line); }
.top-right { display: flex; align-items: center; gap: 8px; }
.week-chip { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.week-chip b { color: var(--indigo); font-family: var(--num); }
.icon-btn { position: relative; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); cursor: pointer; color: var(--text-2); transition: .2s; }
.icon-btn:hover { color: var(--indigo); border-color: rgba(99, 102, 241, .35); }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: linear-gradient(135deg, #F43F5E, #EC4899); color: #fff; font: 700 10.5px/18px var(--num); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.menu-btn { display: none; }
.page { padding: 18px 24px 40px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1720px; margin: 0 auto; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.grid.g-12 { gap: 12px; }
.s1 { grid-column: span 1; } .s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; }
.s9 { grid-column: span 9; } .s10 { grid-column: span 10; } .s12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------- card ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px 18px; position: relative; min-width: 0; }
.card.pad-0 { padding: 0; }
.card.lift { transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card.glass { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 28px; }
.card-h h3 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.card-h .sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-h .act { margin-left: auto; display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 0; overflow: visible; }
.ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); flex: none; }
.ic svg { width: 16px; height: 16px; }
.ic.lg { width: 40px; height: 40px; border-radius: 12px; }
.ic.lg svg { width: 20px; height: 20px; }
.ic.grad { background: linear-gradient(135deg, var(--c), var(--c-2)); color: #fff; box-shadow: 0 8px 18px -8px var(--c); }
.link { color: var(--indigo); text-decoration: none; font-size: 12.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 2px; }
.link:hover { text-decoration: underline; }
.link svg { width: 14px; height: 14px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: transform .18s, box-shadow .2s, border-color .2s, background .2s, color .2s, filter .2s; white-space: nowrap; text-decoration: none; user-select: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: rgba(99, 102, 241, .45); color: var(--indigo); }
.btn:active { transform: scale(.97); }
.btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--c), var(--c-2)); box-shadow: 0 8px 20px -10px var(--c); }
.btn-primary:hover { color: #fff; filter: brightness(1.07) saturate(1.05); box-shadow: 0 12px 26px -10px var(--c); transform: translateY(-1px); }
.btn-ai { border: 0; color: #fff; background: linear-gradient(110deg, #6366F1, #8B5CF6, #EC4899, #8B5CF6, #6366F1); background-size: 300% 100%; animation: shine 5s linear infinite; box-shadow: 0 8px 22px -10px rgba(139, 92, 246, .8); }
.btn-ai:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-soft { background: var(--c-soft); color: var(--c); border-color: transparent; }
.btn-soft:hover { color: var(--c); border-color: transparent; filter: brightness(.97); box-shadow: 0 6px 16px -10px var(--c); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(99, 102, 241, .07); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 8px; gap: 4px; }
.btn-xs svg, .btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 13px; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn.done { background: rgba(16, 185, 129, .1); color: #059669; border-color: transparent; }

/* ---------- tags & chips ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--c-soft); color: var(--c); white-space: nowrap; line-height: 1; }
.tag svg { width: 12px; height: 12px; }
.tag.plain { background: var(--bg-2); color: var(--text-2); font-weight: 500; }
.tag.outline { background: transparent; border: 1px solid currentColor; }
.tag.solid { background: linear-gradient(135deg, var(--c), var(--c-2)); color: #fff; }
.tag.lg { height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .9);
  font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: .2s var(--ease); white-space: nowrap; font-family: inherit;
}
.chip svg { width: 14px; height: 14px; color: var(--c, var(--indigo)); }
.chip:hover { color: var(--indigo); border-color: rgba(99, 102, 241, .5); box-shadow: 0 6px 16px -8px rgba(99, 102, 241, .45); transform: translateY(-1px); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.chip.active svg { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-badge { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); letter-spacing: .03em; }
.ai-badge svg { width: 11px; height: 11px; }
.dot-s { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 1.8s infinite; display: inline-block; flex: none; }
.pri-紧急 { --c: #F43F5E; --c-2: #EC4899; --c-soft: rgba(244, 63, 94, .1); }
.pri-重要 { --c: #F59E0B; --c-2: #F97316; --c-soft: rgba(245, 158, 11, .12); }
.pri-普通 { --c: #64748B; --c-2: #475569; --c-soft: rgba(100, 116, 139, .1); }

/* ---------- avatar ---------- */
.av { --z: 30px; width: var(--z); height: var(--z); border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: calc(var(--z) * .36); font-weight: 650; flex: none; letter-spacing: -.5px; box-shadow: 0 0 0 2px #fff; }
.av.sm { --z: 24px; } .av.lg { --z: 44px; } .av.xl { --z: 72px; font-size: 24px; }
.av-0 { background: linear-gradient(135deg, #6366F1, #8B5CF6); } .av-1 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.av-2 { background: linear-gradient(135deg, #10B981, #14B8A6); } .av-3 { background: linear-gradient(135deg, #F59E0B, #F97316); }
.av-4 { background: linear-gradient(135deg, #EC4899, #F43F5E); } .av-5 { background: linear-gradient(135deg, #8B5CF6, #D946EF); }
.av-6 { background: linear-gradient(135deg, #0EA5E9, #6366F1); } .av-7 { background: linear-gradient(135deg, #14B8A6, #84CC16); }
.av-8 { background: linear-gradient(135deg, #F97316, #EF4444); } .av-9 { background: linear-gradient(135deg, #64748B, #334155); }
.av-ai { background: var(--grad); }
.av-stack { display: flex; align-items: center; }
.av-stack .av + .av { margin-left: -8px; }
.av-stack .more { margin-left: 4px; font-size: 12px; color: var(--text-3); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field > label { font-size: 12.5px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.input, .select, .textarea {
  height: 38px; border: 1px solid var(--line-2); border-radius: 11px; padding: 0 12px; font: inherit; font-size: 13.5px; background: #fff; color: var(--text);
  transition: border-color .18s, box-shadow .18s; outline: none; width: 100%; min-width: 0;
}
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus { border-color: #818CF8; box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
.input::placeholder, .textarea::placeholder { color: #B4BCCB; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-2); gap: 2px; }
.seg button, .seg label { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; font-weight: 550; transition: .2s; white-space: nowrap; }
.seg button.active, .seg input:checked + label { background: #fff; color: var(--text); box-shadow: var(--sh-1); }
.seg input { display: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--p, 30%), var(--bg-2) var(--p, 30%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-shadow: 0 4px 10px -2px var(--c); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--c); cursor: pointer; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 34px; }

/* ---------- lists / tables ---------- */
.li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line-2); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .t { font-weight: 600; font-size: 13.5px; }
.li .d { font-size: 12px; color: var(--text-3); }
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { font-weight: 600; color: var(--text-3); text-align: left; padding: 9px 12px; font-size: 12px; background: #F8FAFD; position: sticky; top: 0; z-index: 1; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: rgba(99, 102, 241, .035); }

/* progress */
.bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c), var(--c-2)); width: 0; transition: width 1.4s var(--ease); position: relative; }
.bar.thick { height: 9px; }
.bar.shine > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: barshine 2.4s infinite; }
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .bg { stroke: var(--bg-2); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.5s var(--ease); }
.ring .lbl { position: absolute; text-align: center; line-height: 1.1; }
.ring .lbl b { font: 700 16px var(--num); display: block; }
.ring .lbl span { font-size: 10.5px; color: var(--text-3); }

/* ---------- KPI ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; overflow: hidden; }
.kpi::before { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px; border-radius: 50%; background: radial-gradient(circle, var(--c-soft), transparent 70%); transform: scale(1.6); pointer-events: none; }
.kpi .k-top { display: flex; align-items: center; gap: 8px; }
.kpi .k-label { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.kpi .k-val { font: 700 26px/1.15 var(--num); letter-spacing: -.02em; margin-top: 4px; }
.kpi .k-val small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 3px; letter-spacing: 0; font-family: var(--font); }
.kpi .k-foot { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.kpi .k-foot .up { color: #10B981; font-weight: 600; }
.kpi .spark { height: 36px; margin: 2px -4px -6px; }
.kpi .k-ic { margin-left: auto; }

/* ---------- Orb (班小知形象) ---------- */
.orb { --s: 44px; position: relative; width: var(--s); height: var(--s); flex: none; }
.orb .o-glow { position: absolute; inset: -22%; border-radius: 50%; background: conic-gradient(from 0deg, #6366F1, #EC4899, #22D3EE, #8B5CF6, #6366F1); filter: blur(calc(var(--s) * .22)); opacity: .5; animation: spin 7s linear infinite; }
.orb .o-core { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate; box-shadow: inset 0 -6px 14px rgba(49, 46, 129, .32), 0 6px 18px -6px rgba(99, 102, 241, .7); }
.orb .o-core::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 0deg, #6366F1, #A855F7, #EC4899, #22D3EE, #6366F1); animation: spin 5s linear infinite; }
.orb .o-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, .35) 20%, transparent 44%), radial-gradient(circle at 72% 88%, rgba(30, 27, 75, .35), transparent 55%); }
.orb .o-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: calc(var(--s) * .15); z-index: 2; padding-top: calc(var(--s) * .04); }
.orb .o-face i { width: calc(var(--s) * .1); height: calc(var(--s) * .21); background: #fff; border-radius: 99px; box-shadow: 0 0 calc(var(--s) * .12) rgba(255, 255, 255, .9); animation: blink 5s infinite; }
.orb .o-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(139, 92, 246, .5); animation: ripple 3s ease-out infinite; pointer-events: none; }
.orb .o-ring.r2 { animation-delay: 1.5s; }
.orb.busy .o-core::before { animation-duration: 1.1s; }
.orb.busy .o-face i { animation: look 1.1s ease-in-out infinite; }
.orb.busy .o-glow { opacity: .8; animation-duration: 2s; }
.orb.sm { --s: 28px; } .orb.md { --s: 36px; } .orb.lg { --s: 72px; } .orb.xl { --s: 108px; } .orb.xxl { --s: 150px; }
.orb.float { animation: float 5s ease-in-out infinite; }

/* ---------- module head ---------- */
.mhead {
  position: relative; border-radius: 22px; padding: 18px 20px 0; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 9%, #fff) 0%, #fff 48%, color-mix(in srgb, var(--c-2) 8%, #fff) 100%);
  box-shadow: var(--sh-1);
}
.mhead::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%); animation: breathe 7s ease-in-out infinite; }
.mhead::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--c) 18%, transparent) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 90%); mask-image: linear-gradient(100deg, transparent 40%, #000 90%); opacity: .55; pointer-events: none; }
.mh-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.5fr) minmax(220px, .9fr); gap: 18px; align-items: center; }
.mh-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mh-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), var(--c-2)); box-shadow: 0 14px 28px -12px var(--c); flex: none; position: relative; }
.mh-icon svg { width: 26px; height: 26px; }
.mh-icon::after { content: ""; position: absolute; inset: -5px; border-radius: 20px; border: 1.5px dashed color-mix(in srgb, var(--c) 45%, transparent); animation: spin 18s linear infinite; }
.mh-kicker { font-size: 11.5px; font-weight: 700; color: var(--c); letter-spacing: .12em; }
.mh-main h1 { font-size: 24px; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.mh-main p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.mh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mh-kpi { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px -10px rgba(16, 24, 40, .3); backdrop-filter: blur(8px); min-width: 0; }
.mh-kpi b { font: 700 21px/1.1 var(--num); letter-spacing: -.02em; }
.mh-kpi b.txt { font-family: var(--font); font-size: 16px; }
.mh-kpi small { font-size: 12px; color: var(--text-3); margin-left: 2px; }
.mh-kpi em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-ai { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(8px); min-width: 0; }
.mh-ai .say { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.mh-ai .say b { color: var(--text); }
.mh-ai .chips { gap: 6px; margin-top: 6px; }
.mh-ai .chip { padding: 3px 9px; font-size: 11.5px; }
.mh-tabs { position: relative; z-index: 1; display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.mh-tabs::-webkit-scrollbar { display: none; }
.mh-tabs a { display: flex; align-items: center; gap: 7px; padding: 10px 14px 12px; font-weight: 600; font-size: 13.5px; color: var(--text-2); text-decoration: none; position: relative; white-space: nowrap; border-radius: 12px 12px 0 0; transition: .2s; }
.mh-tabs a svg { width: 16px; height: 16px; }
.mh-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .55); }
.mh-tabs a.active { color: var(--c); background: rgba(255, 255, 255, .9); }
.mh-tabs a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--c), var(--c-2)); animation: grow .5s var(--ease); }

/* ---------- hub hero ---------- */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hero {
  position: relative; border-radius: 24px; padding: 20px 22px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--ang), #6366F1, #EC4899, #22D3EE, #8B5CF6, #6366F1) border-box;
  border: 1.5px solid transparent; animation: rotang 8s linear infinite; box-shadow: var(--sh-2);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.hero-deco i { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.hero-deco i:nth-child(1) { width: 300px; height: 300px; left: -80px; top: -140px; background: #E0E7FF; }
.hero-deco i:nth-child(2) { width: 260px; height: 260px; right: 20%; top: -160px; background: #FCE7F3; }
.hero-deco i:nth-child(3) { width: 240px; height: 240px; right: -60px; bottom: -150px; background: #CFFAFE; }
.hero-deco canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 22px; }
.hero-in > * { min-width: 0; }
.hero-greet .flex { flex-wrap: wrap; }
.hero-greet { display: flex; gap: 16px; align-items: center; }
.hero-greet h2 { font-size: 23px; font-weight: 800; }
.hero-greet .lead { color: var(--text-2); font-size: 13.5px; margin-top: 4px; line-height: 1.6; }
.hero-greet .lead b { color: var(--indigo); }
.ask { margin-top: 16px; position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line-2); box-shadow: 0 10px 30px -18px rgba(99, 102, 241, .55); transition: .25s; }
.ask:focus-within { border-color: #A5B4FC; box-shadow: 0 0 0 5px rgba(99, 102, 241, .12), 0 14px 34px -18px rgba(99, 102, 241, .6); }
.ask > svg { color: #8B5CF6; width: 18px; height: 18px; }
.ask input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 14.5px; background: transparent; min-width: 0; height: 36px; }
.ask .btn { height: 38px; border-radius: 12px; }
.hero .chips { margin-top: 12px; }
.hero-foot { position: relative; z-index: 1; margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.hero-foot::before { content: ""; height: 1px; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .35), transparent); margin-bottom: 4px; }
.hf-title { font-size: 12px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 8px; letter-spacing: .04em; }
.hf-title .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-top: 0; }
.hf-title .eq i { flex: none; width: 3px; border-radius: 2px; background: linear-gradient(#8B5CF6, #EC4899); animation: eq 1s ease-in-out infinite; }
.hf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hf-stats div { display: flex; align-items: baseline; gap: 6px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(139, 92, 246, .14); backdrop-filter: blur(6px); flex-wrap: wrap; }
.hf-stats svg { width: 15px; height: 15px; color: #8B5CF6; align-self: center; }
.hf-stats b { font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hf-stats span { font-size: 11.5px; color: var(--text-3); }
.hf-skills .tk { animation-duration: 60s; }
.typing-ph { color: var(--text-3); }
.today-list { display: flex; flex-direction: column; gap: 8px; }
.today-h { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; margin-bottom: 2px; }
.cls { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); position: relative; overflow: hidden; transition: .25s; }
.cls::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--c), var(--c-2)); }
.cls.live { border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 8px 20px -14px var(--c); }
.cls.done { opacity: .62; }
.cls .tm { font: 600 12px var(--num); color: var(--text-2); width: 76px; flex: none; line-height: 1.3; }
.cls .tm small { display: block; color: var(--text-3); font-weight: 500; font-family: var(--font); }
.cls .nm { font-weight: 650; font-size: 13.5px; }
.cls .rm { font-size: 11.5px; color: var(--text-3); }

/* module entry cards */
.mod-card { padding: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.mod-card .mc-bg { position: absolute; right: -18px; bottom: -22px; color: var(--c); opacity: .07; transition: .6s var(--ease); }
.mod-card .mc-bg svg { width: 120px; height: 120px; stroke-width: 1.2; }
.mod-card:hover .mc-bg { transform: rotate(-12deg) scale(1.12); opacity: .12; }
.mod-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c), var(--c-2)); }
.mod-card .mc-top { display: flex; align-items: center; gap: 10px; }
.mod-card h4 { font-size: 16px; font-weight: 750; }
.mod-card .mc-desc { font-size: 12px; color: var(--text-2); }
.mod-card .mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: relative; }
.mod-card .mc-stats div { padding: 7px 8px; border-radius: 10px; background: var(--c-soft); }
.mod-card .mc-stats b { display: block; font: 700 15px var(--num); color: var(--text); }
.mod-card .mc-stats span { font-size: 11px; color: var(--text-2); }
.mod-card .mc-go { position: absolute; right: 14px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--c); transition: .3s var(--ease); }
.mod-card:hover .mc-go { background: var(--c); color: #fff; transform: rotate(-45deg); }
.mod-card .mc-skills { display: flex; flex-wrap: wrap; gap: 5px; position: relative; }
.mod-card .mc-skills span { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--text-2); }

/* agent feed */
.feed { position: relative; display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.feed-item { display: flex; gap: 10px; padding: 7px 0; position: relative; animation: slideIn .5s var(--ease) both; }
.feed-item .fi-dot { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); flex: none; }
.feed-item .fi-dot svg { width: 14px; height: 14px; }
.feed-item .fi-t { font-size: 12.5px; line-height: 1.45; }
.feed-item .fi-t b { font-weight: 650; }
.feed-item .fi-m { font-size: 11px; color: var(--text-3); }

.rec { display: flex; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); transition: .2s; text-decoration: none; align-items: flex-start; }
.rec:hover { border-color: rgba(99, 102, 241, .35); background: rgba(99, 102, 241, .03); }
.rec .t { font-weight: 600; font-size: 13px; }
.rec .d { font-size: 11.5px; color: var(--text-3); }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px 18px 8px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; margin-bottom: 16px; animation: fadeUp .4s var(--ease) both; }
.msg.user { flex-direction: row-reverse; }
.msg .body { max-width: min(760px, 86%); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.msg.user .body { align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.72; word-break: break-word; }
.msg.user .bubble { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; border-bottom-right-radius: 6px; box-shadow: var(--sh-brand); white-space: pre-wrap; }
.msg.bot .bubble { background: #fff; border: 1px solid var(--line); border-top-left-radius: 6px; box-shadow: var(--sh-1); }
.msg.bot .bubble:empty { display: none; }
.msg .who { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.steps { display: flex; flex-direction: column; gap: 5px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 10px; border-radius: 11px; background: rgba(255, 255, 255, .85); color: var(--text-2); border: 1px solid var(--line); animation: fadeUp .35s var(--ease) both; max-width: 100%; }
.step .s-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); flex: none; }
.step .s-ic svg { width: 13px; height: 13px; }
.step .s-lb { font-weight: 650; color: var(--text); white-space: nowrap; }
.step .s-sm { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.step .s-st { margin-left: auto; flex: none; display: grid; place-items: center; }
.step .s-st svg { width: 15px; height: 15px; }
.step.ok .s-st { color: #10B981; }
.step.err .s-st { color: #F43F5E; }
.step.thought { background: transparent; border: 0; padding: 2px 4px; color: var(--text-3); font-size: 12.5px; }
.step.thought svg { width: 13px; height: 13px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-soft); border-top-color: var(--c); animation: spin .7s linear infinite; }
.think-box { font-size: 12px; color: var(--text-3); border-left: 2px solid #DDD6FE; padding: 4px 10px; max-height: 120px; overflow: auto; white-space: pre-wrap; }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #A5B4FC; animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; background: #C4B5FD; }
.typing i:nth-child(3) { animation-delay: .3s; background: #F9A8D4; }
.cursor::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: linear-gradient(#6366F1, #EC4899); border-radius: 2px; animation: caret 1s steps(2) infinite; }
.composer { padding: 10px 14px 14px; }
.composer-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 30px -20px rgba(99, 102, 241, .6); transition: .2s; }
.composer-box:focus-within { border-color: #A5B4FC; box-shadow: 0 0 0 5px rgba(99, 102, 241, .1), 0 10px 30px -20px rgba(99, 102, 241, .6); }
.composer-box textarea { flex: 1; border: 0; outline: 0; resize: none; font: inherit; font-size: 14px; line-height: 1.6; max-height: 160px; min-height: 24px; padding: 6px 0; background: transparent; }
.composer .hint { font-size: 11px; color: var(--text-3); margin-top: 6px; text-align: center; }
.offline-tag { font-size: 11px; color: #B45309; background: #FEF3C7; padding: 1px 6px; border-radius: 6px; }

/* markdown */
.md { font-size: 14px; line-height: 1.75; color: var(--text); }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 0 0 8px; }
.md h1, .md h2 { font-size: 17px; margin: 16px 0 8px; font-weight: 750; }
.md h3 { font-size: 15px; margin: 14px 0 6px; font-weight: 700; }
.md h4 { font-size: 14px; margin: 12px 0 6px; }
.md ul, .md ol { margin: 4px 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md li::marker { color: #8B5CF6; }
.md a { color: var(--indigo); text-decoration: none; font-weight: 550; border-bottom: 1px dashed rgba(99, 102, 241, .5); }
.md a:hover { border-bottom-style: solid; }
.md strong { font-weight: 700; color: #1E1B4B; }
.md code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; background: #F1F0FF; color: #5B21B6; padding: 1px 5px; border-radius: 5px; }
.md pre { background: #0F172A; color: #E2E8F0; padding: 12px 14px; border-radius: 12px; overflow: auto; margin: 8px 0 10px; }
.md pre code { background: none; color: inherit; padding: 0; font-size: 12.5px; }
.md blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid #C4B5FD; background: #FAF5FF; border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 13px; }
.md table { border-collapse: collapse; margin: 8px 0 12px; font-size: 13px; width: 100%; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line-2); padding: 6px 10px; text-align: left; }
.md th { background: #F8FAFD; font-weight: 650; }
.md hr { border: 0; border-top: 1px dashed var(--line-2); margin: 12px 0; }

/* ---------- drawer & fab ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none; padding: 0; }
.fab .fab-tip { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 12.5px; font-weight: 600; color: var(--text); opacity: 0; transform: translateX(8px); transition: .3s var(--ease); pointer-events: none; white-space: nowrap; }
.fab:hover .fab-tip { opacity: 1; transform: none; }
.fab .orb { --s: 58px; transition: transform .3s var(--ease); }
.fab:hover .orb { transform: scale(1.06); }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); background: rgba(250, 251, 255, .94); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-3); transform: translateX(calc(100% + 30px)); transition: transform .5s var(--ease); z-index: 85; display: flex; flex-direction: column; overflow: hidden; }
.drawer.open { transform: none; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(99, 102, 241, .08), rgba(236, 72, 153, .06), rgba(6, 182, 212, .07)); }
.drawer-h b { font-size: 15px; }
.drawer-h .st { font-size: 11.5px; color: var(--text-3); }
.drawer .chat-scroll { padding: 14px; }
.drawer .msg .body { max-width: 92%; }
.welcome { text-align: center; padding: 26px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.welcome h3 { font-size: 18px; font-weight: 800; }
.welcome p { font-size: 13px; color: var(--text-2); max-width: 420px; }
.sugg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 6px; }
.sugg { text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .25s var(--ease); font: inherit; display: flex; gap: 10px; align-items: flex-start; }
.sugg:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 10px 22px -16px var(--c); transform: translateY(-2px); }
.sugg .ic { width: 26px; height: 26px; border-radius: 8px; }
.sugg b { display: block; font-size: 13px; font-weight: 650; }
.sugg span { font-size: 11.5px; color: var(--text-3); }

/* ---------- modal / toast / cmdk / lightbox ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-wrap.open { opacity: 1; pointer-events: auto; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: var(--sh-3); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease); overflow: hidden; }
.modal.wide { width: min(960px, 100%); }
.modal.narrow { width: min(480px, 100%); }
.modal-wrap.open .modal { transform: none; }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex: none; }
.modal-h h3 { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; }
.modal-b { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex: none; background: #FCFCFE; flex-wrap: wrap; }
.toasts { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; background: rgba(15, 23, 42, .92); color: #fff; font-size: 13.5px; box-shadow: var(--sh-3); animation: toastIn .45s var(--ease) both; backdrop-filter: blur(10px); max-width: 90vw; }
.toast .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #10B981; flex: none; }
.toast .ti svg { width: 14px; height: 14px; }
.toast.err .ti { background: #F43F5E; }
.toast.ai .ti { background: var(--grad); }
.toast.out { animation: toastOut .3s ease both; }
.cmdk { width: min(640px, 100%); align-self: start; margin-top: 10vh; }
.cmdk .cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmdk .cmdk-in input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; }
.cmdk .cmdk-res { max-height: 60vh; overflow: auto; padding: 8px; }
.cmdk .grp { font-size: 11.5px; color: var(--text-3); padding: 8px 10px 4px; font-weight: 600; letter-spacing: .06em; }
.cmdk .it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; cursor: pointer; text-decoration: none; color: var(--text); }
.cmdk .it:hover, .cmdk .it.sel { background: rgba(99, 102, 241, .08); }
.cmdk .it .d { font-size: 12px; color: var(--text-3); margin-left: auto; white-space: nowrap; }
.cmdk .it.ask-it { background: linear-gradient(120deg, rgba(99, 102, 241, .09), rgba(236, 72, 153, .07)); }
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(8, 10, 22, .9); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.96); transition: .4s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: 13px; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; border: 0; }
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-prev { left: 22px; } .lightbox .lb-next { right: 22px; }
.lightbox .lb-close { top: 22px; right: 22px; transform: none; }
.dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .25s var(--ease); z-index: 60; overflow: hidden; }
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown .dd-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 650; }
.dropdown .dd-b { max-height: 420px; overflow: auto; }
.inbox-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: .15s; position: relative; }
.inbox-item:hover { background: #F8FAFD; }
.inbox-item.unread::after { content: ""; position: absolute; right: 14px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #F43F5E; }
.inbox-item .t { font-size: 13px; font-weight: 600; padding-right: 14px; }
.inbox-item .d { font-size: 12px; color: var(--text-3); }

/* ---------- empty / skeleton ---------- */
.empty { text-align: center; padding: 28px 12px; color: var(--text-3); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty svg { width: 36px; height: 36px; color: #CBD5E1; }
.skel { background: linear-gradient(90deg, #EEF1F7 25%, #F7F8FC 37%, #EEF1F7 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: 8px; height: 12px; margin: 8px 0; }

/* ---------- attendance ---------- */
.sess { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(110deg, color-mix(in srgb, var(--c) 5%, #fff), #fff 55%); position: relative; overflow: hidden; }
.sess.live { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.sess .s-time { font: 700 14px var(--num); width: 92px; flex: none; }
.sess .s-time small { display: block; font: 500 11.5px var(--font); color: var(--text-3); }
.sess .s-info { flex: 1; min-width: 0; }
.sess .s-info b { font-size: 14.5px; }
.sess .s-info .d { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sess .s-act { display: flex; align-items: center; gap: 12px; }
.radar-scan { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(15, 23, 42, .35); backdrop-filter: blur(4px); }
.radar-scan .rs { width: 220px; height: 220px; border-radius: 50%; position: relative; background: radial-gradient(circle, rgba(99, 102, 241, .14), rgba(99, 102, 241, .04) 60%, transparent 70%); border: 1px solid rgba(255, 255, 255, .35); }
.radar-scan .rs::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(139, 92, 246, .55), transparent 25%); animation: spin 1.1s linear infinite; }
.radar-scan .rs i { position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .5); }
.radar-scan .rs i:nth-child(2) { inset: 40%; }
.radar-scan .rs-txt { position: absolute; bottom: -54px; left: 50%; transform: translateX(-50%); color: #fff; white-space: nowrap; font-weight: 600; text-align: center; font-size: 14px; }
.radar-scan .ok-burst { position: absolute; inset: 0; display: grid; place-items: center; }
.radar-scan .ok-burst span { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, #10B981, #14B8A6); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 12px rgba(16, 185, 129, .25), 0 20px 40px -10px rgba(16, 185, 129, .7); animation: pop .5s var(--ease) both; }
.radar-scan .ok-burst svg { width: 46px; height: 46px; stroke-width: 2.6; }
.code-box { font: 800 34px var(--num); letter-spacing: .3em; text-align: center; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(236, 72, 153, .08)); color: var(--indigo); }
.insight { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(120deg, rgba(99, 102, 241, .07), rgba(6, 182, 212, .06)); border: 1px solid rgba(99, 102, 241, .12); font-size: 13px; line-height: 1.6; }
.insight + .insight { margin-top: 8px; }
.insight svg { color: var(--indigo); margin-top: 2px; }

/* notices */
.notice { display: flex; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .25s var(--ease); position: relative; }
.notice:hover { border-color: rgba(99, 102, 241, .35); box-shadow: var(--sh-2); transform: translateY(-1px); }
.notice.unread::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(#F43F5E, #EC4899); }
.notice .n-body { flex: 1; min-width: 0; }
.notice .n-title { font-weight: 650; font-size: 14.5px; }
.notice .n-ex { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.notice .n-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.notice .n-side { width: 120px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--text-3); }

/* tasks */
.task { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.task .t-top { display: flex; align-items: flex-start; gap: 10px; }
.task .t-title { font-weight: 650; font-size: 14.5px; line-height: 1.4; }
.task .t-desc { font-size: 12.5px; color: var(--text-2); }
.task .t-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.task.is-done { background: linear-gradient(120deg, rgba(16, 185, 129, .05), #fff 60%); }
.lvl-danger { --c: #F43F5E; --c-2: #EC4899; --c-soft: rgba(244, 63, 94, .1); }
.lvl-warn { --c: #F59E0B; --c-2: #F97316; --c-soft: rgba(245, 158, 11, .12); }
.lvl-ok { --c: #10B981; --c-2: #14B8A6; --c-soft: rgba(16, 185, 129, .1); }
.lvl-muted { --c: #94A3B8; --c-2: #64748B; --c-soft: rgba(148, 163, 184, .14); }

/* timetable */
.tt { display: grid; grid-template-columns: 58px repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .5fr)); grid-template-rows: 46px repeat(8, 50px); gap: 4px; position: relative; }
.tt .th { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; font-size: 13px; font-weight: 650; background: #F8FAFD; }
.tt .th small { font: 500 11px var(--num); color: var(--text-3); }
.tt .th.today { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; box-shadow: var(--sh-brand); }
.tt .th.today small { color: rgba(255, 255, 255, .8); }
.tt .pl { display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 13px var(--num); color: var(--text-2); border-radius: 10px; background: #FAFBFD; }
.tt .pl small { font: 500 10px var(--num); color: var(--text-3); }
.tt .cell { border-radius: 10px; background: rgba(248, 250, 253, .6); border: 1px dashed rgba(17, 24, 39, .05); }
.tt .cell.today { background: rgba(99, 102, 241, .04); }
.tt .blk { border-radius: 12px; padding: 7px 9px; position: relative; overflow: hidden; z-index: 1; cursor: pointer; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, #fff), color-mix(in srgb, var(--c-2) 8%, #fff)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); transition: .25s var(--ease); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt .blk:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 26px -14px var(--c); }
.tt .blk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--c), var(--c-2)); }
.tt .blk b { font-size: 13px; line-height: 1.3; color: color-mix(in srgb, var(--c) 70%, #0F172A); }
.tt .blk span { font-size: 11px; color: var(--text-2); }
.tt .blk .ty { position: absolute; right: 6px; top: 6px; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .8); color: var(--c); }
.tt .blk.live { box-shadow: 0 0 0 2px var(--c), 0 12px 26px -12px var(--c); animation: livePulse 2s infinite; }
.tt .blk.done { filter: saturate(.55); opacity: .75; }
.tt .noon { grid-column: 1 / -1; height: 0; border-top: 1px dashed var(--line-2); }

/* resource browser */
.rb { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.rb-side { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; transition: .15s; }
.cat-list button:hover { background: rgba(99, 102, 241, .06); color: var(--text); }
.cat-list button.active { background: var(--c-soft); color: var(--c); font-weight: 650; }
.cat-list button .n { margin-left: auto; font: 600 11.5px var(--num); color: var(--text-3); }
.cat-list button.active .n { color: var(--c); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.res { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: .28s var(--ease); position: relative; animation: fadeUp .45s var(--ease) both; min-width: 0; }
.res:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.res .r-top { display: flex; align-items: center; gap: 6px; }
.res .r-id { font: 600 11px var(--num); color: var(--text-3); margin-left: auto; }
.res .r-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.res .r-prov { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.res .r-act { font-size: 12.5px; color: var(--text-2); line-height: 1.55; padding: 8px 10px; border-radius: 10px; background: #F8FAFD; }
.res .r-act b { color: var(--c); font-weight: 650; }
.res .r-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.res .r-acc { font-size: 11.5px; color: var(--text-3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text-3); transition: .2s; }
.star svg { width: 15px; height: 15px; }
.star:hover { color: #F59E0B; border-color: #FDE68A; }
.star.on { color: #F59E0B; background: #FFFBEB; border-color: #FDE68A; }
.star.on svg { fill: #F59E0B; }
.mark-sel { height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12px; padding: 0 6px; color: var(--text-2); cursor: pointer; }
.pri-优先 { --c: #F43F5E; --c-2: #F97316; --c-soft: rgba(244, 63, 94, .1); }
.pri-按需 { --c: #6366F1; --c-2: #8B5CF6; --c-soft: rgba(99, 102, 241, .1); }
.pri-拓展 { --c: #14B8A6; --c-2: #06B6D4; --c-soft: rgba(20, 184, 166, .1); }
.rb-tool { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rb-tool .input-icon { flex: 1; min-width: 200px; }
.rb-count { font-size: 12.5px; color: var(--text-3); }

/* files */
.file { display: flex; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: .25s var(--ease); align-items: flex-start; }
.file:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.file .ext { width: 42px; height: 50px; border-radius: 10px; display: grid; place-items: center; font: 800 11px var(--num); color: #fff; background: linear-gradient(160deg, var(--c), var(--c-2)); text-transform: uppercase; flex: none; position: relative; box-shadow: 0 8px 16px -10px var(--c); }
.file .ext::after { content: ""; position: absolute; right: 0; top: 0; width: 12px; height: 12px; background: linear-gradient(225deg, var(--bg) 50%, rgba(255, 255, 255, .45) 50%); border-bottom-left-radius: 4px; }
.file .f-body { flex: 1; min-width: 0; }
.file .f-title { font-weight: 650; font-size: 14px; }
.file .f-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.file .f-sum { margin-top: 8px; font-size: 12.5px; color: var(--text-2); padding: 8px 10px; border-radius: 10px; background: linear-gradient(120deg, rgba(99, 102, 241, .06), rgba(236, 72, 153, .04)); max-height: 66px; overflow: hidden; position: relative; }
.file .f-sum::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: linear-gradient(transparent, #fbfaff); }
.file .f-act { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.drop { border: 2px dashed rgba(99, 102, 241, .3); border-radius: 18px; padding: 22px 14px; text-align: center; background: linear-gradient(120deg, rgba(99, 102, 241, .04), rgba(16, 185, 129, .04)); cursor: pointer; transition: .25s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop:hover, .drop.over { border-color: #6366F1; background: rgba(99, 102, 241, .07); }
.drop svg { width: 32px; height: 32px; color: var(--indigo); }
.drop b { font-size: 14px; }
.drop span { font-size: 12px; color: var(--text-3); }

/* checkin */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-auto-columns: minmax(11px, 1fr); gap: 3px; overflow-x: auto; padding: 2px 2px 4px; }
.heat i { width: 100%; aspect-ratio: 1; max-height: 26px; border-radius: 4px; background: #EEF1F7; transition: transform .2s; }
.heat i:hover { transform: scale(1.35); outline: 2px solid #fff; }
.heat i.l1 { background: #A7F3D0; } .heat i.l2 { background: #6EE7B7; } .heat i.l3 { background: #34D399; } .heat i.l4 { background: #059669; }
.heat i.today { outline: 2px solid #6366F1; outline-offset: 1px; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.streak { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #FFF7ED, #FEF3C7 50%, #FFE4E6); border: 1px solid #FED7AA; }
.streak .fire { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #F97316, #F43F5E); color: #fff; box-shadow: 0 12px 24px -10px #F97316; animation: flame 1.6s ease-in-out infinite; }
.streak .fire svg { width: 28px; height: 28px; }
.streak b { font: 800 30px/1 var(--num); color: #C2410C; }
.rank { display: flex; align-items: center; gap: 10px; padding: 7px 4px; }
.rank .no { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 700 12px var(--num); background: var(--bg-2); color: var(--text-2); flex: none; }
.rank:nth-child(1) .no { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #fff; }
.rank:nth-child(2) .no { background: linear-gradient(135deg, #CBD5E1, #94A3B8); color: #fff; }
.rank:nth-child(3) .no { background: linear-gradient(135deg, #FDBA74, #EA580C); color: #fff; }
.rank .grow .bar { margin-top: 4px; height: 5px; }

/* posts */
.post { display: flex; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .25s var(--ease); }
.post:hover { box-shadow: var(--sh-2); border-color: rgba(99, 102, 241, .3); transform: translateY(-2px); }
.post .p-body { flex: 1; min-width: 0; }
.post .p-title { font-weight: 650; font-size: 14.5px; line-height: 1.4; }
.post .p-ex { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.post .p-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.post .p-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post .p-meta svg { width: 13px; height: 13px; }
.share-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; cursor: pointer; }
.share-card .sc-cover { height: 86px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c), var(--c-2)); }
.share-card .sc-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 14px 14px; }
.share-card .sc-cover svg { position: absolute; right: 14px; bottom: -10px; width: 82px; height: 82px; color: rgba(255, 255, 255, .35); transition: .5s var(--ease); }
.share-card:hover .sc-cover svg { transform: rotate(-10deg) scale(1.1); }
.share-card .sc-cover .tag { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); }
.share-card .sc-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.comment:last-child { border-bottom: 0; }
.comment.ai { background: linear-gradient(120deg, rgba(99, 102, 241, .06), rgba(236, 72, 153, .04)); border-radius: 16px; padding: 12px; border: 1px solid rgba(139, 92, 246, .15); margin-bottom: 8px; }

/* teams */
.team { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.team .tm-h { display: flex; align-items: flex-start; gap: 10px; }
.team .tm-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.team .tm-comp { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.team .tm-desc { font-size: 12.5px; color: var(--text-2); }
.team .tm-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.team .tm-skills .tag.hit { background: linear-gradient(135deg, #10B981, #14B8A6); color: #fff; }
.team .tm-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.slots { display: flex; gap: 4px; }
.slots i { width: 18px; height: 6px; border-radius: 99px; background: var(--bg-2); }
.slots i.on { background: linear-gradient(90deg, var(--c), var(--c-2)); }
.fit { font: 700 11.5px var(--num); padding: 3px 9px; border-radius: 99px; color: #047857; background: rgba(16, 185, 129, .12); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.fit svg { width: 12px; height: 12px; }
.fit.mid { color: #B45309; background: rgba(245, 158, 11, .13); }
.fit.lo { color: var(--text-3); background: var(--bg-2); }
.cand { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; animation: fadeUp .4s var(--ease) both; }
.cand .score { font: 800 18px var(--num); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: 48px; text-align: right; }

/* honors */
.lv-国家级 { --c: #F43F5E; --c-2: #F59E0B; --c-soft: rgba(244, 63, 94, .1); }
.lv-省级 { --c: #8B5CF6; --c-2: #6366F1; --c-soft: rgba(139, 92, 246, .1); }
.lv-市级 { --c: #0EA5E9; --c-2: #06B6D4; --c-soft: rgba(14, 165, 233, .1); }
.lv-校级 { --c: #10B981; --c-2: #14B8A6; --c-soft: rgba(16, 185, 129, .1); }
.lv-院级 { --c: #64748B; --c-2: #475569; --c-soft: rgba(100, 116, 139, .1); }
.trophy { padding: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 10%, #fff), #fff 60%); }
.trophy .tr-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), var(--c-2)); box-shadow: 0 10px 20px -10px var(--c); }
.trophy .tr-ic svg { width: 22px; height: 22px; }
.trophy b { font-size: 14px; line-height: 1.4; }
.trophy::after { content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: rotate(20deg); animation: sweep 5s ease-in-out infinite; }
.aw-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line-2); }
.aw-row:last-child { border-bottom: 0; }
.aw-row .aw-d { font: 600 12px var(--num); color: var(--text-3); width: 92px; flex: none; }
.aw-row .aw-n { flex: 1; min-width: 0; font-size: 13px; font-weight: 550; }
.aw-row .aw-o { font-size: 11.5px; color: var(--text-3); max-width: 200px; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.photo-strip img, .gallery img { border-radius: 12px; cursor: zoom-in; transition: .35s var(--ease); width: 100%; object-fit: cover; }
.photo-strip img { aspect-ratio: 4 / 3; }
.photo-strip img:hover, .gallery img:hover { transform: scale(1.03); box-shadow: var(--sh-2); }

/* showcase */
.act { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.act .a-cover { height: 168px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c), var(--c-2)); }
.act .a-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.act:hover .a-cover img { transform: scale(1.07); }
.act .a-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, .65)); }
.act .a-cover .a-cat { position: absolute; left: 12px; top: 12px; z-index: 1; }
.act .a-cover .a-date { position: absolute; left: 14px; bottom: 10px; z-index: 1; color: #fff; font: 600 12.5px var(--num); display: flex; align-items: center; gap: 6px; }
.act .a-cover .a-pics { position: absolute; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.act .a-cover .a-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.act .a-cover .a-ph svg { width: 64px; height: 64px; }
.act .a-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.act .a-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.act .a-sum { font-size: 12.5px; color: var(--text-2); }
.act .a-agent { font-size: 12px; color: var(--text-2); display: flex; gap: 6px; padding: 7px 9px; border-radius: 10px; background: linear-gradient(120deg, rgba(99, 102, 241, .07), rgba(236, 72, 153, .05)); }
.act .a-agent svg { width: 14px; height: 14px; color: #8B5CF6; margin-top: 2px; }
.act .a-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.tl-item { position: relative; padding: 0 10px; text-align: center; }
.tl-item::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 3px; background: var(--bg-2); }
.tl-item.done::before { background: linear-gradient(90deg, #6366F1, #8B5CF6); }
.tl-item.live::before { background: linear-gradient(90deg, #8B5CF6, var(--bg-2)); }
.tl-item:first-child::before { left: 50%; } .tl-item:last-child::before { right: 50%; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: #fff; border: 2px solid var(--bg-2); position: relative; z-index: 1; color: var(--text-3); }
.tl-dot svg { width: 16px; height: 16px; }
.tl-item.done .tl-dot { background: linear-gradient(135deg, #6366F1, #8B5CF6); border-color: transparent; color: #fff; }
.tl-item.live .tl-dot { border-color: #8B5CF6; color: #8B5CF6; box-shadow: 0 0 0 6px rgba(139, 92, 246, .14); animation: livePulse 2s infinite; }
.tl-item .w { font: 700 12px var(--num); color: var(--indigo); }
.tl-item .n { font-weight: 700; font-size: 14px; margin-top: 2px; }
.tl-item .d { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.target { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.target .tg-h { display: flex; justify-content: space-between; align-items: baseline; }
.target .tg-v { font: 800 22px var(--num); }
.target .tg-v small { font-size: 12px; color: var(--text-3); font-weight: 600; margin-left: 2px; }
.target .tg-goal { font-size: 12px; color: var(--text-3); }
.target .ok { color: #10B981; font-size: 12px; font-weight: 650; display: flex; align-items: center; gap: 3px; }
.target .ok svg { width: 14px; height: 14px; }
.gallery { columns: 5 200px; column-gap: 10px; }
.gallery figure { margin: 0 0 10px; break-inside: avoid; position: relative; border-radius: 12px; overflow: hidden; }
.gallery figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(15, 23, 42, .6)); opacity: 0; transition: .3s; }
.gallery figure:hover figcaption { opacity: 1; }
.doc-card { display: flex; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: .25s var(--ease); cursor: pointer; align-items: center; }
.doc-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.doc-card .t { font-weight: 650; font-size: 14px; }
.doc-card .d { font-size: 12px; color: var(--text-3); }

/* profile */
.pf-card { overflow: hidden; padding: 0; }
.pf-cover { height: 92px; background: linear-gradient(120deg, #6366F1, #8B5CF6 45%, #EC4899 80%, #F59E0B); position: relative; overflow: hidden; }
.pf-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .28) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.pf-body { padding: 0 18px 18px; margin-top: -36px; position: relative; }
.pf-body .av.xl { box-shadow: 0 0 0 4px #fff, 0 12px 26px -10px rgba(99, 102, 241, .7); }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-stats div { padding: 10px; border-radius: 12px; background: #F8FAFD; text-align: center; }
.mini-stats b { display: block; font: 700 18px var(--num); }
.mini-stats span { font-size: 11.5px; color: var(--text-3); }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, .9fr); }
.auth-show { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.auth-show canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.auth-show > * { position: relative; z-index: 1; }
.auth-show .brand-big { display: flex; align-items: center; gap: 18px; }
.auth-show h1 { font-size: 44px; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.auth-show .sub { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.auth-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 680px; }
.auth-feat { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: var(--sh-1); animation: fadeUp .7s var(--ease) both; }
.auth-feat b { font-size: 14.5px; }
.auth-feat p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.auth-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.auth-stats div b { font: 800 28px var(--num); display: block; }
.auth-stats div span { font-size: 12.5px; color: var(--text-3); }
.demo-chat { max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.demo-chat .dc { padding: 10px 14px; border-radius: 16px; font-size: 13.5px; max-width: 86%; box-shadow: var(--sh-1); animation: fadeUp .5s var(--ease) both; }
.demo-chat .dc.u { align-self: flex-end; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; border-bottom-right-radius: 6px; }
.demo-chat .dc.b { background: #fff; border: 1px solid var(--line); border-top-left-radius: 6px; }
.auth-form-wrap { display: grid; place-items: center; padding: 30px; background: rgba(255, 255, 255, .45); backdrop-filter: blur(20px); border-left: 1px solid var(--line); }
.auth-form { width: min(400px, 100%); }
.auth-form h2 { font-size: 26px; font-weight: 800; }
.auth-form .seg { width: 100%; margin: 18px 0; }
.auth-form .seg button { flex: 1; padding: 9px; font-size: 14px; }
.auth-form .input { height: 44px; border-radius: 13px; font-size: 14.5px; }
.auth-form .btn-lg { width: 100%; margin-top: 6px; }
.demo-tip { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(99, 102, 241, .08), rgba(236, 72, 153, .06)); border: 1px dashed rgba(99, 102, 241, .3); font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: .2s; }
.demo-tip:hover { border-style: solid; }
.form-err { color: #E11D48; font-size: 13px; min-height: 20px; margin-top: 4px; }
.shake { animation: shake .4s; }

/* misc */
.reveal { animation: fadeUp .6s var(--ease) both; animation-delay: var(--d, 0ms); }
.chart { width: 100%; height: 240px; }
.chart.sm { height: 180px; } .chart.lg { height: 300px; } .chart.xs { height: 120px; }
.legend-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend-row span { display: inline-flex; align-items: center; gap: 5px; }
.legend-row i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--text-3); }
.ticker { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .tk { display: inline-flex; gap: 28px; animation: marquee 40s linear infinite; padding-left: 100%; }
.ticker .tk span { font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.ticker .tk span b { color: var(--text); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 2px 0 -4px; }
.section-title h2 { font-size: 17px; font-weight: 800; }
.section-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.manual-sec { scroll-margin-top: 80px; }
.toc a { display: block; padding: 6px 10px; border-radius: 9px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.toc a:hover { background: rgba(99, 102, 241, .07); color: var(--indigo); }


/* post modal */
.pm-title { font-size: 19px; font-weight: 750; line-height: 1.4; }
.pm-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-3); flex-wrap: wrap; margin: 8px 0 12px; }
.pm-meta span { display: inline-flex; align-items: center; gap: 3px; }
.pm-meta svg { width: 13px; height: 13px; }
.pm-meta b { color: var(--text); font-size: 13px; }
.pm-content { padding: 12px 14px; border-radius: 14px; background: #F8FAFD; border: 1px solid var(--line); }
.pm-bar { display: flex; gap: 8px; margin: 12px 0 6px; align-items: center; flex-wrap: wrap; }
.pm-sec { font-size: 13px; font-weight: 700; margin: 10px 0 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.pm-reply { align-items: flex-end; flex-wrap: nowrap; }
.pm-reply .textarea { min-height: 38px; height: 38px; resize: none; }
.pm-reply .textarea:focus { height: 76px; }
.c-h { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; font-size: 13px; }
.comment .grow { min-width: 0; }
.comment.ai .md { font-size: 13.5px; }
.btn.liked { color: #F43F5E; border-color: rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .06); }
.btn.liked svg { fill: #F43F5E; }
/* confetti */
.confetti { position: fixed; width: 8px; height: 12px; border-radius: 2px; z-index: 200; pointer-events: none; animation: confetti 1.3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { 0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 160px)) rotate(var(--r)); opacity: 0; } }


/* misc additions */
.step.run { border-color: color-mix(in srgb, var(--c) 40%, transparent); background: var(--c-soft); }
.rec.on { border-color: color-mix(in srgb, var(--c, #6366F1) 45%, transparent); background: var(--c-soft, rgba(99, 102, 241, .06)); }
.rank.me { background: rgba(99, 102, 241, .06); border-radius: 10px; }
/* dashboard */
.dash-hero { display: flex; align-items: center; gap: 18px; padding: 18px 22px; overflow: hidden; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(99, 102, 241, .11), rgba(236, 72, 153, .06) 48%, rgba(6, 182, 212, .09)), #fff; }
.dash-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(99, 102, 241, .16) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.dash-hero .dh-sub { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.dh-targets { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.dh-t { display: flex; align-items: center; gap: 10px; }
.dh-t .k { font-size: 12px; color: var(--text-2); font-weight: 600; }
.dh-t .g { font-size: 11.5px; color: var(--text-3); }
.dh-t .ok { color: #10B981; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.dh-t .ok svg { width: 13px; height: 13px; }
.dh-t .ring .lbl b { font-size: 12.5px; }


/* showcase hero */
.sc-hero { padding: 26px 28px; overflow: hidden; background: linear-gradient(125deg, #EEF2FF, #FDF2F8 45%, #ECFEFF); border: 1px solid rgba(99, 102, 241, .18); }
.sc-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc-hero-in { position: relative; z-index: 1; display: flex; gap: 28px; align-items: center; }
.sc-hero h1 { font-size: 30px; font-weight: 850; letter-spacing: -.02em; line-height: 1.25; margin-top: 6px; }
.sc-hero p { font-size: 14px; color: var(--text-2); margin-top: 8px; max-width: 780px; line-height: 1.7; }
.sc-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; max-width: 860px; }
.sc-stats div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); backdrop-filter: blur(8px); box-shadow: var(--sh-1); }
.sc-stats b { display: block; font: 800 22px var(--num); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-stats b small { font-size: 12px; margin-left: 2px; }
.sc-stats span { font-size: 11.5px; color: var(--text-3); }
.sc-orb { position: relative; width: 280px; height: 240px; display: grid; place-items: center; flex: none; }
.sc-orb-tags span { position: absolute; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-2); color: var(--text-2); animation: float 5s ease-in-out infinite; white-space: nowrap; }
.sc-orb-tags span::before { content: "✦ "; color: #8B5CF6; }
.sc-orb-tags span:nth-child(1) { left: 0; top: 22px; }
.sc-orb-tags span:nth-child(2) { right: 0; top: 8px; animation-delay: -1s; }
.sc-orb-tags span:nth-child(3) { left: -8px; top: 112px; animation-delay: -2s; }
.sc-orb-tags span:nth-child(4) { right: -6px; top: 104px; animation-delay: -3s; }
.sc-orb-tags span:nth-child(5) { left: 22px; bottom: 6px; animation-delay: -4s; }
.sc-orb-tags span:nth-child(6) { right: 24px; bottom: 16px; animation-delay: -2.5s; }
@media (max-width: 1280px) { .sc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .sc-orb { display: none; } }
@media (max-width: 768px) { .sc-hero { padding: 18px 16px; } .sc-hero h1 { font-size: 22px; } .sc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dh-targets { margin-left: 0; } }

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rotang { to { --ang: 360deg; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.85); opacity: 0; } }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@keyframes look { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shine { to { background-position: 300% center; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .6; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .6; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes barshine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 2px var(--c, #8B5CF6), 0 0 0 6px color-mix(in srgb, var(--c, #8B5CF6) 15%, transparent); } 50% { box-shadow: 0 0 0 2px var(--c, #8B5CF6), 0 0 0 10px transparent; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes flame { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.05); } }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -6vh) scale(1.08); } }

/* ---------- responsive ---------- */
.sb-mask { display: none; }
@media (max-width: 1440px) {
  .mh-top { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); }
  .mh-ai { display: none; }
}
@media (max-width: 1280px) {
  .xl-s4 { grid-column: span 4; } .xl-s6 { grid-column: span 6; } .xl-s8 { grid-column: span 8; } .xl-s12 { grid-column: span 12; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); }
  .gallery { columns: 4 180px; }
}
@media (max-width: 1180px) {
  :root { --sb-w: 76px; }
  .sidebar { padding: 14px 10px; align-items: center; }
  .brand-name, .nav-label, .nav a span.lb, .nav a .nb, .sb-agent, .sb-user .who, .sb-user .btn { display: none; }
  .brand { padding: 4px 0 12px; justify-content: center; }
  .nav a { width: 50px; justify-content: center; padding: 0; }
  .nav a .ni { width: 30px; height: 30px; }
  .nav a.active { box-shadow: 0 8px 18px -8px var(--c); }
  .sb-user { justify-content: center; border-top: 0; margin-top: auto; }
  .mh-top { grid-template-columns: 1fr; gap: 12px; }
  .rb { grid-template-columns: 1fr; }
  .rb-side { position: static; }
  .cat-list { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1024px) {
  .s3, .s4 { grid-column: span 6; }
  .s5, .s6, .s7, .s8, .s9, .s10 { grid-column: span 12; }
  .lg-s3 { grid-column: span 3; } .lg-s4 { grid-column: span 4; } .lg-s6 { grid-column: span 6; } .lg-s8 { grid-column: span 8; } .lg-s12 { grid-column: span 12; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-show { padding: 30px 24px 10px; }
  .auth-show h1 { font-size: 34px; }
  .auth-form-wrap { border-left: 0; }
  .timeline { grid-template-columns: 1fr; gap: 12px; }
  .tl-item { text-align: left; display: grid; grid-template-columns: 32px 1fr; gap: 0 12px; padding: 0; }
  .tl-item::before { display: none; }
  .tl-dot { margin: 0; grid-row: span 3; }
  .week-chip span.wk-date { display: none; }
}
@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .hf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-h { flex-wrap: wrap; row-gap: 8px; }
  .card-h h3 { white-space: normal; }
  .card-h .act { flex-wrap: wrap; max-width: 100%; }
  .card-h .tag { white-space: normal; height: auto; min-height: 22px; padding: 3px 8px; line-height: 1.4; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .hero { padding: 16px 14px; }
  .hero-greet { gap: 12px; align-items: flex-start; }
  .hero-greet .orb { --s: 52px; }
  .hero-greet h2 { font-size: 19px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; transform: translateX(-105%); transition: transform .35s var(--ease); align-items: stretch; padding: 14px 12px; }
  .sidebar.open { transform: none; box-shadow: var(--sh-3); }
  .sidebar .brand-name, .sidebar .nav-label, .sidebar .nav a span.lb, .sidebar .nav a .nb, .sidebar .sb-user .who { display: initial; }
  .sidebar .nav a { width: auto; justify-content: flex-start; padding: 0 10px; }
  .sidebar .brand { justify-content: flex-start; padding: 4px 8px 12px; }
  .sb-mask { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .3); z-index: 45; opacity: 0; pointer-events: none; transition: .3s; }
  .sb-mask.open { opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .crumb span { display: none; }
  .cmdk-btn .sp, .cmdk-btn kbd { display: none; }
  .cmdk-btn { flex: none; width: 36px; padding: 0; justify-content: center; margin: 0 0 0 auto; }
  .week-chip { display: none; }
  .page { padding: 14px 12px 90px; gap: 12px; }
  .grid { gap: 12px; }
  .s1, .s2, .s3, .s4, .s5, .s6, .s7, .s8, .s9, .s10, .s12, .lg-s3, .lg-s4, .lg-s6, .lg-s8, .lg-s12, .xl-s4, .xl-s6, .xl-s8 { grid-column: span 12; }
  .m-s6 { grid-column: span 6 !important; }
  .mh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mhead { padding: 14px 14px 0; border-radius: 18px; }
  .mh-main h1 { font-size: 20px; }
  .auth-feats { grid-template-columns: 1fr; }
  .auth-show .demo-chat { display: none; }
  .sugg-grid { grid-template-columns: 1fr; }
  .tt { grid-template-columns: 40px repeat(5, minmax(64px, 1fr)) repeat(2, minmax(36px, .5fr)); overflow-x: auto; }
  .notice .n-side { display: none; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { columns: 2 140px; }
  .fab { right: 14px; bottom: 14px; }
  .fab .orb { --s: 52px; }
  .row { flex-wrap: wrap; }
  .row > * { flex: 1 1 140px; }
  .dropdown { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   管理端（教师 / 辅导员）与审批闭环
   ===================================================================== */
.sidebar.admin-sb { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(244, 246, 255, .7)); }
.brand .role-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0EA5E9, #6366F1); vertical-align: 2px; letter-spacing: .04em; }
.nav a .nb.warn { background: linear-gradient(135deg, #F43F5E, #F97316); }
.sb-balance { margin-top: auto; padding: 12px; border-radius: 16px; border: 1px solid rgba(99, 102, 241, .14); background: linear-gradient(140deg, rgba(14, 165, 233, .09), rgba(99, 102, 241, .08) 60%, rgba(16, 185, 129, .08)); text-decoration: none; color: inherit; display: block; transition: .2s; }
.sb-balance:hover { border-color: rgba(99, 102, 241, .35); box-shadow: var(--sh-2); }
.sb-balance .bl-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.sb-balance .bl-top svg { width: 15px; height: 15px; color: var(--indigo); }
.sb-balance .bl-val { font: 700 22px/1.2 var(--num); margin-top: 6px; letter-spacing: -.01em; }
.sb-balance .bl-val small { font: 600 12px var(--font); color: var(--text-3); margin-left: 4px; }
.sb-balance .bl-foot { font-size: 11px; color: var(--text-3); margin-top: 2px; display: flex; justify-content: space-between; }
.sb-balance.low { background: linear-gradient(140deg, rgba(244, 63, 94, .1), rgba(249, 115, 22, .08)); border-color: rgba(244, 63, 94, .25); }
.sb-balance.low .bl-val { color: #E11D48; }
.admin-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 11px; font-size: 12.5px; font-weight: 650; color: #fff; background: linear-gradient(135deg, #0EA5E9, #6366F1); box-shadow: 0 8px 18px -10px #6366F1; white-space: nowrap; }
.admin-chip svg { width: 15px; height: 15px; }
.fi-admin { color: #4F46E5; }
.fi-admin::after { content: "管理端"; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 5px; margin-left: 4px; background: rgba(99, 102, 241, .1); color: #6366F1; vertical-align: 1px; }

/* 页面头 */
.ahead { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .8); background: linear-gradient(115deg, color-mix(in srgb, var(--c) 10%, #fff), #fff 46%, color-mix(in srgb, var(--c-2) 8%, #fff)); box-shadow: var(--sh-1); }
.ahead::before { content: ""; position: absolute; right: -60px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 20%, transparent), transparent 65%); pointer-events: none; }
.ahead .ah-in { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ahead .ah-main { display: flex; align-items: center; gap: 14px; min-width: 240px; flex: 1; }
.ahead h1 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.ahead p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.ahead .mh-kpis { flex: 1.4; min-width: 280px; }
.ahead .ah-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* 待办/审批卡 */
.admin-home > .home-pending { contain: size; display: flex; flex-direction: column; min-height: 0; }
.home-pending > .card-h { flex-shrink: 0; }
.home-pending #pendList { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: 2px 4px 4px 0; }
.home-pending #pendList:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 12px; }
.home-pending .appr { flex: none; }
@media (max-width: 1024px) {
  .admin-home > .home-pending { contain: none; grid-column: 1 / -1; max-height: min(560px, 75vh); }
}
.appr { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; transition: .25s var(--ease); position: relative; }
.appr:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.appr.flash { animation: flashBorder 1.6s 2; }
.appr .ap-top { display: flex; align-items: center; gap: 10px; }
.appr .ap-top b { font-size: 14.5px; }
.appr .ap-top .d { font-size: 12px; color: var(--text-3); }
.appr .ap-body { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.appr .ap-ai { display: flex; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.55; background: linear-gradient(120deg, rgba(99, 102, 241, .07), rgba(236, 72, 153, .05)); border: 1px dashed rgba(139, 92, 246, .3); }
.appr .ap-ai svg { color: #8B5CF6; width: 15px; height: 15px; margin-top: 2px; }
.appr .ap-ai.warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); }
.appr .ap-ai.warn svg { color: #F59E0B; }
.appr .ap-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.appr .ap-foot .input { flex: 1; min-width: 160px; height: 32px; font-size: 12.5px; }
.appr.done { opacity: .55; pointer-events: none; transform: scale(.98); }
.appr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
@keyframes flashBorder { 0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } 50% { box-shadow: 0 0 0 4px rgba(99, 102, 241, .25); } }

/* 签到场次（管理端） */
.asess { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(110deg, color-mix(in srgb, var(--c) 5%, #fff), #fff 55%); }
.asess + .asess { margin-top: 8px; }
.asess.live { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 10px 26px -18px var(--c); }
.asess .s-time { font: 700 14px var(--num); }
.asess .s-time small { display: block; font: 500 11.5px var(--font); color: var(--text-3); }
.asess .s-info b { font-size: 14px; }
.asess .s-info .d { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.asess .s-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.live-code { font: 800 22px/1 var(--num); letter-spacing: .22em; padding: 6px 10px 6px 14px; border-radius: 11px; color: var(--c); background: var(--c-soft); }
.cd { font: 600 12px var(--num); color: var(--text-3); }
.code-xl { font: 800 64px/1 var(--num); letter-spacing: .28em; text-align: center; padding: 22px 10px 22px 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(99, 102, 241, .08)); color: #059669; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.rs-it { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; cursor: pointer; transition: .15s; user-select: none; min-width: 0; }
.rs-it b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-it .st { font-size: 11px; font-weight: 650; color: var(--text-3); }
.rs-it.s-出勤 { background: rgba(16, 185, 129, .07); border-color: rgba(16, 185, 129, .25); } .rs-it.s-出勤 .st { color: #059669; }
.rs-it.s-迟到 { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); } .rs-it.s-迟到 .st { color: #D97706; }
.rs-it.s-请假 { background: rgba(14, 165, 233, .07); border-color: rgba(14, 165, 233, .25); } .rs-it.s-请假 .st { color: #0284C7; }
.rs-it.s-缺勤 { background: rgba(244, 63, 94, .07); border-color: rgba(244, 63, 94, .3); } .rs-it.s-缺勤 .st { color: #E11D48; }
.rs-it.sel { box-shadow: 0 0 0 2px #6366F1; }
.rs-it:hover { border-color: rgba(99, 102, 241, .4); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: 0; }

/* 签到码输入 */
.otp { display: flex; justify-content: center; gap: 10px; }
.otp input { width: 56px; height: 64px; border-radius: 16px; border: 1.5px solid var(--line-2); text-align: center; font: 800 28px var(--num); color: var(--text); background: #fff; outline: none; transition: .2s; }
.otp input:focus { border-color: #10B981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.otp-err { text-align: center; color: #E11D48; font-size: 12.5px; min-height: 20px; margin-top: 10px; }

/* 申请状态 */
.st-待审批, .st-待审核 { --c: #F59E0B; --c-2: #F97316; --c-soft: rgba(245, 158, 11, .12); }
.st-已批准, .st-已认定, .st-已提交, .st-正常 { --c: #10B981; --c-2: #14B8A6; --c-soft: rgba(16, 185, 129, .1); }
.st-已驳回, .st-已退回, .st-停用 { --c: #F43F5E; --c-2: #EC4899; --c-soft: rgba(244, 63, 94, .1); }
.st-已撤回 { --c: #64748B; --c-2: #475569; --c-soft: rgba(100, 116, 139, .1); }
.app-it { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.app-it:last-child { border-bottom: 0; }
.app-it .t { font-size: 13.5px; font-weight: 600; }
.app-it .d { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.app-it .rv { font-size: 12px; color: var(--text-2); margin-top: 4px; padding: 6px 9px; border-radius: 9px; background: var(--bg); }

/* 表格内操作、筛选条 */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input { height: 34px; max-width: 260px; }
.table td.act { text-align: right; }
.table td .btn + .btn { margin-left: 4px; }
.table tr.off td { opacity: .5; }
.pct { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.pct .bar { flex: 1; }
.pct b { font: 600 12px var(--num); color: var(--text-2); width: 36px; text-align: right; }
.name-list { display: flex; flex-wrap: wrap; gap: 6px; }
.name-list span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 99px; background: var(--bg); font-size: 12.5px; }
.bal-big { font: 800 40px/1.1 var(--num); letter-spacing: -.02em; }
.bal-big small { font: 600 15px var(--font); color: var(--text-3); margin-left: 4px; }
.health { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 10px; border-radius: 11px; background: var(--bg); }
.health + .health { margin-top: 6px; }
.health .ok { color: #10B981; } .health .bad { color: #F43F5E; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-grid .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid .ph button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; border: 0; background: rgba(15, 23, 42, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-grid .ph button svg { width: 13px; height: 13px; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 14px; text-align: center; font-size: 12.5px; color: var(--text-3); cursor: pointer; transition: .2s; }
.drop:hover { border-color: #8B5CF6; color: #8B5CF6; background: rgba(139, 92, 246, .04); }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg-2); gap: 4px; margin-bottom: 16px; }
.role-switch button { height: 38px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 650; font-size: 13.5px; color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: .2s; }
.role-switch button svg { width: 16px; height: 16px; }
.role-switch button.active { background: #fff; color: var(--text); box-shadow: var(--sh-1); }
.role-switch button.active[data-role="admin"] { color: #4F46E5; }
@media (max-width: 1180px) { .sb-balance { display: none; } .brand .role-pill { display: none; } }
@media (max-width: 768px) {
  .asess { grid-template-columns: 1fr; gap: 8px; }
  .asess .s-act { justify-content: flex-start; }
  .appr-grid { grid-template-columns: 1fr; }
  .ahead .mh-kpis { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-chip span { display: none; }
  .code-xl { font-size: 48px; }
  .otp input { width: 50px; height: 58px; }
}
