/* ============ 设计令牌 ============ */
:root {
  /* 夜间：航天深蓝 + 青蓝紫渐变（与官网统一） */
  color-scheme: dark;
  --bg-0: #060912;
  --bg-1: #0a0f1e;
  --bg-2: #11182c;
  --app-bg-1: #0c1428;
  --app-bg-2: #0a0f1e;
  --panel: rgba(14, 20, 38, 0.55);
  --panel-solid: #0e1426;
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(56, 189, 248, 0.40);
  --text: #e9eef9;
  --text-strong: #f5f8ff;
  --text-dim: #a3b2cc;
  --muted: #61708c;
  --hover: rgba(120, 170, 255, 0.06);
  --hover-2: rgba(120, 170, 255, 0.10);
  --surface-soft: rgba(120, 170, 255, 0.04);
  --input-bg: rgba(6, 10, 22, 0.6);
  --input-bg-focus: rgba(6, 10, 22, 0.88);
  --inset: rgba(0, 0, 0, 0.28);
  --grid-line: rgba(120, 160, 220, 0.06);
  --glow-1: #38bdf8;
  --glow-2: #7c3aed;
  --glow-opacity: 0.32;
  --brand-grad: linear-gradient(115deg, #22d3ee, #3b82f6, #a78bfa);
  --bubble-mine-text: #eaf2ff;
  --cyan: #22d3ee;
  --cyan-2: #38bdf8;
  --violet: #a78bfa;
  --violet-2: #8b5cf6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 0 24px rgba(56, 189, 248, 0.22);
  --font-display: -apple-system, "Segoe UI", "Microsoft YaHei", Inter, Roboto, sans-serif;
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
}

/* 浅色主题（白天） */
html[data-theme="light"] {
  /* 白天：洁净浅蓝灰 + 青蓝紫渐变（与官网统一） */
  color-scheme: light;
  --bg-0: #f6f8fc;
  --app-bg-1: #eef2f9;
  --app-bg-2: #f9fbfe;
  --panel: rgba(255, 255, 255, 0.80);
  --panel-solid: #ffffff;
  --stroke: rgba(10, 17, 36, 0.10);
  --stroke-strong: rgba(37, 99, 235, 0.30);
  --text: #0a1124;
  --text-strong: #0a1124;
  --text-dim: #4a576e;
  --muted: #8a96ac;
  --hover: rgba(37, 99, 235, 0.05);
  --hover-2: rgba(37, 99, 235, 0.09);
  --surface-soft: rgba(37, 99, 235, 0.035);
  --input-bg: rgba(255, 255, 255, 0.85);
  --input-bg-focus: #ffffff;
  --inset: rgba(10, 17, 36, 0.06);
  --grid-line: rgba(10, 17, 36, 0.06);
  --glow-1: #7dd3fc;
  --glow-2: #c4b5fd;
  --glow-opacity: 0.5;
  --brand-grad: linear-gradient(115deg, #06b6d4, #3b82f6, #7c3aed);
  --bubble-mine-text: #1e335c;
  --cyan: #0891b2;
  --cyan-2: #2563eb;
  --violet: #7c3aed;
  --violet-2: #6d28d9;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --blue: #2563eb;
  --shadow: 0 18px 40px rgba(30, 50, 90, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--app-bg-1) 0%, transparent 55%),
    radial-gradient(1000px 600px at 0% 110%, var(--app-bg-2) 0%, transparent 50%),
    var(--bg-0);
  color: var(--text);
  transition: background-color .3s, color .3s;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ 背景装饰 ============ */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}
.bg-glow {
  position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: var(--glow-opacity);
}
.glow-a { width: 460px; height: 460px; background: var(--glow-1); top: -120px; right: -80px; animation: float1 14s ease-in-out infinite; }
.glow-b { width: 420px; height: 420px; background: var(--glow-2); bottom: -140px; left: -100px; animation: float2 16s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translateY(40px) translateX(-30px); } }
@keyframes float2 { 50% { transform: translateY(-40px) translateX(30px); } }

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.hidden { display: none !important; }
.muted { color: var(--text-dim); }

/* ============ 登录 / 注册 ============ */
.auth-screen {
  position: relative; z-index: 2;
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px; border-radius: 22px; padding: 34px 32px;
  box-shadow: var(--shadow);
  animation: rise .6s cubic-bezier(.2,.7,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.logo-mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  font-size: 24px; color: #00111a; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 8px 24px rgba(45, 226, 230, 0.35);
}
.logo-mark.sm { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; }
.auth-brand h1 { font-size: 22px; letter-spacing: .5px; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand p { font-size: 12.5px; margin-top: 2px; }

.auth-tabs { display: flex; gap: 6px; background: var(--inset); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.auth-tab {
  flex: 1; padding: 9px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--text-dim); font-size: 14px; font-weight: 600;
  transition: .2s;
}
.auth-tab.active { background: linear-gradient(135deg, rgba(45,226,230,.18), rgba(139,108,255,.18)); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--stroke-strong); }

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--text-dim); padding-left: 2px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--input-bg); color: var(--text); font-size: 14px;
  border: 1px solid var(--stroke); outline: none; transition: .18s;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 3px rgba(45, 211, 255, 0.14);
  background: var(--input-bg-focus);
}
select option { background: var(--panel-solid); }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .55; cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: .9; }

.hint { font-size: 11.5px; text-align: center; margin-top: 2px; }
.auth-back-row { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stroke); }
.auth-back { font-size: 13px; text-decoration: none; transition: color .15s; }
.auth-back:hover { color: var(--cyan); }
.form-msg { font-size: 13px; color: var(--red); min-height: 0; }
.form-msg.show { min-height: 18px; }
.form-msg.ok { color: var(--green); }

/* ============ 按钮 ============ */
.btn {
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 11px 18px; color: #fff;
  transition: transform .12s, box-shadow .2s, background .2s; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-2), var(--violet));
  box-shadow: 0 10px 24px rgba(80, 120, 255, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(80, 120, 255, 0.5); }
.btn-ghost { background: var(--hover-2); border: 1px solid var(--stroke); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text-strong); border-color: var(--stroke-strong); background: var(--hover-2); }
.btn-danger { background: rgba(255, 93, 115, 0.14); color: var(--red); border: 1px solid rgba(255,93,115,.3); }
.btn-danger:hover { background: rgba(255, 93, 115, 0.24); }
.btn-soft { background: rgba(120,160,255,.12); color: var(--blue); border: 1px solid var(--stroke); }
.btn-soft:hover { background: rgba(120,160,255,.2); }

/* ============ 应用外壳 ============ */
.app-screen { position: relative; z-index: 2; display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  margin: 14px; border-radius: var(--radius); padding: 18px 14px;
  display: flex; flex-direction: column; position: sticky; top: 14px; height: calc(100vh - 28px);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 6px 8px 18px; letter-spacing: .4px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: var(--stroke-strong); border-radius: 999px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
  color: var(--text-dim); cursor: pointer; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: .16s;
}
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; opacity: .9; }
.nav-item:hover { color: var(--text-strong); background: var(--hover); }
.nav-item.active {
  color: var(--text-strong); background: linear-gradient(135deg, rgba(45,226,230,.16), rgba(139,108,255,.16));
  border-color: var(--stroke-strong); box-shadow: inset 0 0 18px rgba(80,140,255,.1);
}
.nav-item.active .ico { color: var(--cyan); }

/* 菜单分组（二级菜单） */
.nav-group { display: flex; flex-direction: column; }
.nav-group-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none;
  padding: 9px 13px; margin-top: 4px; border-radius: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase; transition: .15s; }
.nav-group-head:hover { color: var(--text-dim); background: var(--hover); }
.nav-group-head .ng-arrow { font-size: 10px; opacity: .7; transition: transform .2s; }
.nav-group:not(.open) .ng-arrow { transform: rotate(-90deg); }
.nav-sub { display: none; flex-direction: column; gap: 4px; margin: 2px 0 2px 10px; padding-left: 8px; border-left: 1px solid var(--stroke); }
.nav-group.open .nav-sub { display: flex; }
.nav-sub .nav-item { font-size: 13.5px; padding: 9px 12px; }

/* 空状态/图标按钮里的自绘 SVG 尺寸 */
.empty .big svg { width: 46px; height: 46px; opacity: .55; }
#theme-toggle svg, #auth-theme svg, .icon-btn svg { width: 18px; height: 18px; display: block; }

.sidebar-foot { border-top: 1px solid var(--stroke); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 700; color: #04121a; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--violet-2));
}
.user-name { font-size: 14px; font-weight: 600; }
.user-role { font-size: 12px; }

/* ============ 主区域 ============ */
.main { padding: 18px 26px 40px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.topbar h2 { font-size: 24px; font-weight: 600; font-family: var(--font-display); letter-spacing: 0; }
.auth-brand h1 { font-family: var(--font-display); }
.topbar p { font-size: 13px; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
#theme-toggle { width: 38px; height: 38px; font-size: 17px; }
.clock { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--text-dim); padding: 8px 14px; border-radius: 10px; background: var(--hover); border: 1px solid var(--stroke); }

.view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ============ 卡片 / 网格 ============ */
.card {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 20px; backdrop-filter: blur(14px);
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* 统计卡 */
.stat {
  border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--stroke);
}
.stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; opacity: .18; filter: blur(8px); }
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: .5px; margin: 4px 0; }
.stat .lbl { font-size: 12.5px; color: var(--text-dim); }
.stat.c-cyan::after { background: var(--cyan); } .stat.c-cyan .num { color: var(--cyan); }
.stat.c-green::after { background: var(--green); } .stat.c-green .num { color: var(--green); }
.stat.c-amber::after { background: var(--amber); } .stat.c-amber .num { color: var(--amber); }
.stat.c-red::after { background: var(--red); } .stat.c-red .num { color: var(--red); }
.stat.c-violet::after { background: var(--violet-2); } .stat.c-violet .num { color: var(--violet-2); }

/* ============ 考勤打卡 ============ */
.punch-card { text-align: center; padding: 26px; }
.punch-time { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.punch-date { color: var(--text-dim); margin: 4px 0 18px; }
.punch-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.punch-status { display: flex; gap: 22px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.punch-slot { text-align: center; }
.punch-slot .t { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.punch-slot .l { font-size: 12px; color: var(--text-dim); }
.punch-slot.done .t { color: var(--green); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface-soft); }
td .name { font-weight: 600; }

/* ============ 徽章 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  border: 1px solid transparent;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.role-super_admin { background: rgba(180,107,255,.14); color: var(--violet-2); border-color: rgba(180,107,255,.3); }
.badge.role-director { background: rgba(77,141,255,.14); color: var(--blue); border-color: rgba(77,141,255,.3); }
.badge.role-leader { background: rgba(45,226,230,.13); color: var(--cyan); border-color: rgba(45,226,230,.3); }
.badge.role-programmer { background: rgba(120,140,180,.13); color: var(--text-dim); border-color: var(--stroke); }

.badge.st-todo { background: rgba(120,140,180,.13); color: var(--text-dim); }
.badge.st-doing { background: rgba(77,141,255,.15); color: var(--blue); }
.badge.st-done { background: rgba(54,224,160,.14); color: var(--green); }
.badge.st-paused { background: rgba(255,180,84,.15); color: var(--amber); }
.badge.st-blocked { background: rgba(255,93,115,.15); color: var(--red); }
.badge.on { background: rgba(54,224,160,.14); color: var(--green); }
.badge.off { background: rgba(120,140,180,.13); color: var(--text-dim); }

/* ============ 我的任务卡片 ============ */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 15px 16px; display: flex; gap: 14px; align-items: flex-start; transition: .18s;
  position: relative; overflow: hidden;
}
.task-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--text-dim); opacity: .8; }
.task-item.st-doing::before { background: var(--blue); }
.task-item.st-done::before { background: var(--green); }
.task-item.st-paused::before { background: var(--amber); }
.task-item.st-blocked::before { background: var(--red); }
.task-item.st-todo::before { background: #5b6a8c; }
.task-item:hover { border-color: var(--stroke-strong); transform: translateX(2px); }
.task-item.is-done .task-title { text-decoration: line-through; opacity: .6; }
.task-check {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--stroke-strong);
  cursor: pointer; flex-shrink: 0; margin-top: 2px; display: grid; place-items: center;
  transition: .15s; color: transparent; font-size: 13px;
}
.task-check.checked { background: var(--green); border-color: var(--green); color: #042; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.task-meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.task-detail { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.task-issue { margin-top: 8px; font-size: 12.5px; background: rgba(255,93,115,.08); border: 1px solid rgba(255,93,115,.22); color: var(--red); padding: 8px 10px; border-radius: 9px; }
.task-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.status-select { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; width: auto; }

/* ============ 任务树 ============ */
.tree { display: flex; flex-direction: column; gap: 6px; }
.tree-node { }
.tree-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--stroke); background: var(--panel); transition: .15s;
}
.tree-row:hover { border-color: var(--stroke-strong); background: var(--surface-soft); }
.tree-toggle { width: 18px; cursor: pointer; color: var(--text-dim); user-select: none; flex-shrink: 0; text-align: center; }
.tree-toggle.leaf { opacity: .25; cursor: default; }
.tree-main { flex: 1; min-width: 0; }
.tree-title { font-size: 14px; font-weight: 600; }
.tree-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.tree-ops { display: flex; gap: 6px; opacity: 0; transition: .15s; }
.tree-row:hover .tree-ops { opacity: 1; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--stroke);
  background: var(--hover); color: var(--text-dim); cursor: pointer; font-size: 14px;
  display: grid; place-items: center; transition: .15s;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--stroke-strong); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(255,93,115,.4); }
.tree-children { margin-left: 22px; padding-left: 12px; border-left: 1px dashed var(--stroke); margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }

/* ============ 弹窗 ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(4, 7, 16, 0.6);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px;
  animation: fade .2s ease;
}
.modal {
  width: 100%; max-width: 460px; border-radius: 18px; padding: 24px;
  background: var(--panel-solid); border: 1px solid var(--stroke-strong); box-shadow: var(--shadow);
  animation: rise .25s cubic-bezier(.2,.7,.2,1);
  max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
}
.modal::-webkit-scrollbar { width: 7px; }
.modal::-webkit-scrollbar-thumb { background: var(--stroke-strong); border-radius: 999px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal h3 { font-size: 17px; margin-bottom: 18px; position: sticky; top: -24px; z-index: 1;
  background: var(--panel-solid); margin-top: -24px; padding: 24px 0 14px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============ Toast ============ */
.toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 11px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--text-strong);
  background: var(--panel-solid); border: 1px solid var(--stroke-strong); box-shadow: var(--shadow);
  animation: rise .25s ease; max-width: 90vw;
}
.toast.ok { border-color: rgba(54,224,160,.5); }
.toast.err { border-color: rgba(255,93,115,.5); }

/* ============ 内部聊天 ============ */
.chat { display: grid; grid-template-columns: 210px 1fr; gap: 16px; height: calc(100vh - 156px); min-height: 460px; }
.chat-channels { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 14px; backdrop-filter: blur(14px); }
.chat-ch-title { font-size: 11.5px; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 10px; padding-left: 6px; }
.chat-ch { padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text-dim); font-size: 13.5px; font-weight: 500; transition: .15s; margin-bottom: 4px; border: 1px solid transparent; }
.chat-ch:hover { background: var(--hover); color: var(--text-strong); }
.chat-ch.active { background: linear-gradient(135deg, rgba(45,226,230,.16), rgba(139,108,255,.16)); color: var(--text-strong); border-color: var(--stroke-strong); }
.chat-main { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(14px); }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--stroke); font-weight: 600; font-size: 14.5px; flex-shrink: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 78%; }
.msg.mine { flex-direction: row-reverse; align-self: flex-end; }
.msg-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #04121a; flex-shrink: 0; background: linear-gradient(135deg, var(--cyan), var(--violet-2)); font-size: 14px; }
.msg-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-meta { font-size: 11.5px; color: var(--text-dim); padding: 0 2px; }
.msg-bubble { padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; background: var(--hover-2); border: 1px solid var(--stroke); border-top-left-radius: 3px; }
.msg.mine .msg-bubble { background: linear-gradient(135deg, rgba(45,211,255,.18), rgba(139,108,255,.18)); border-color: var(--stroke-strong); border-top-left-radius: 12px; border-top-right-radius: 3px; color: var(--bubble-mine-text); }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--stroke); flex-shrink: 0; align-items: center; }
.chat-input input[type="text"], .chat-input #chat-text { flex: 1; }
.chat-input .btn { flex-shrink: 0; }
.chat-input #chat-attach { flex-shrink: 0; width: 42px; height: 42px; font-size: 18px; }

/* 聊天文件 / 图片 */
.msg-img { display: block; max-width: 240px; border-radius: 10px; overflow: hidden; }
.msg-img img { display: block; max-width: 100%; border-radius: 10px; }
.msg-bubble.bubble-media { padding: 4px; background: transparent; border: 0; }
.msg.mine .msg-bubble.bubble-media { background: transparent; }
.msg-file { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; min-width: 210px; }
.msg-file-ico { font-size: 24px; flex-shrink: 0; }
.msg-file-meta { display: flex; flex-direction: column; min-width: 0; }
.msg-file-name { font-size: 13px; font-weight: 600; color: var(--text-strong); word-break: break-all; }
.msg-file-size { font-size: 11px; color: var(--text-dim); }
.msg-file-dl { margin-left: auto; font-size: 12px; color: var(--cyan); flex-shrink: 0; font-weight: 600; }

/* ============ 杂项 ============ */
.empty { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.empty .big { font-size: 40px; opacity: .5; margin-bottom: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-gap { margin-top: 20px; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .app-screen { grid-template-columns: 1fr; }
  .sidebar {
    position: relative; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 10px; padding: 12px 14px;
  }
  .sidebar-brand { padding: 0; flex: 0 0 auto; }
  .nav { flex-direction: row; flex: 1 1 100%; order: 3; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav-item { white-space: nowrap; padding: 9px 13px; }
  /* 移动端：分组扁平化，所有菜单项横向铺开 */
  .nav-group, .nav-sub { display: contents; }
  .nav-group-head { display: none; }
  .sidebar-foot {
    border-top: 0; padding-top: 0; flex-direction: row; align-items: center;
    margin-left: auto; gap: 10px; order: 2;
  }
  .user-meta { white-space: nowrap; }
  .user-role { white-space: nowrap; }
  #logout-btn { width: auto; }
  .main { padding: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-channels { display: flex; gap: 6px; overflow-x: auto; }
  .chat-ch { white-space: nowrap; margin-bottom: 0; }
  .chat-ch-title { display: none; }
  .chat-msgs { min-height: 360px; max-height: 56vh; }
}

/* ============ C 阶段：视频会议 ============ */
.meet-setup { display: flex; gap: 14px; align-items: flex-end; }
.meet-setup .btn { flex-shrink: 0; }
.meet-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.meet-room-name { font-weight: 700; font-size: 15px; }
.meet-count { font-size: 13px; }
.meet-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.meet-grid[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.meet-grid[data-n="3"], .meet-grid[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.meet-grid[data-n="5"], .meet-grid[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.meet-tile {
  position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  background: #14110d; border: 1px solid var(--stroke); display: grid; place-items: center;
}
.meet-tile.mine { border-color: var(--stroke-strong); }
.meet-tile video { width: 100%; height: 100%; object-fit: cover; background: #14110d; }
.meet-tile .meet-novideo { position: absolute; font-size: 54px; opacity: .35; display: none; }
.meet-tile.audio-only video { display: none; }
.meet-tile.audio-only .meet-novideo { display: block; }
.meet-name {
  position: absolute; left: 10px; bottom: 9px; font-size: 12.5px; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.45); padding: 3px 10px; border-radius: 8px; backdrop-filter: blur(4px);
}
.meet-tip { font-size: 12.5px; margin-top: 12px; }

/* ============ C 阶段：协同文档 ============ */
.doc-card { position: relative; cursor: pointer; transition: .16s; }
.doc-card:hover { border-color: var(--stroke-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.doc-card-title { font-size: 15px; font-weight: 700; font-family: var(--font-display); margin-bottom: 8px; }
.doc-card-meta { font-size: 12.5px; }
.doc-online { color: var(--green); font-weight: 600; }
.doc-card-time { font-size: 11.5px; margin-top: 4px; }
.doc-del { position: absolute; top: 12px; right: 12px; opacity: 0; }
.doc-card:hover .doc-del { opacity: 1; }

.doc-presence { display: flex; align-items: center; gap: 6px; }
.pres-chip {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #04121a; margin-left: -8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet-2)); border: 2px solid var(--panel-solid);
}
.pres-chip.me { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.pres-label { margin-left: 8px; font-size: 12.5px; }

.doc-editor-card { padding: 0; overflow: hidden; }
.doc-editor-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--stroke); }
.doc-editor-title { font-weight: 700; font-size: 14.5px; }
.doc-status { font-size: 12.5px; }
.doc-editor {
  width: 100%; min-height: calc(100vh - 320px); border: 0; border-radius: 0; resize: vertical;
  padding: 20px; font-size: 14.5px; line-height: 1.8; background: transparent;
  font-family: "SF Mono", "Cascadia Code", "Consolas", "Microsoft YaHei", monospace;
}
.doc-editor:focus { box-shadow: none; background: var(--surface-soft); }
.doc-foot { padding: 10px 18px; border-top: 1px solid var(--stroke); font-size: 12.5px; min-height: 18px; }

@media (max-width: 720px) {
  .meet-setup { flex-direction: column; align-items: stretch; }
  .meet-grid[data-n] { grid-template-columns: 1fr !important; }
}

/* ============ 可注册名单（白名单）行 ============ */
.wl-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--stroke); }
.wl-row:last-child { border-bottom: 0; }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-idc { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.wl-main .muted { font-size: 12px; }

/* 员工多部门 */
.dept-checks { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.dept-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 6px 11px; border: 1px solid var(--stroke); border-radius: 9px; cursor: pointer; color: var(--text-dim); transition: .15s; }
.dept-check:hover { border-color: var(--stroke-strong); color: var(--text); }
.dept-check input { width: auto; }
.dept-check:has(input:checked) { background: rgba(184,92,52,.12); color: var(--cyan); border-color: var(--stroke-strong); }
.dept-main { font-size: 10.5px; color: var(--cyan); border: 1px solid var(--stroke-strong); border-radius: 5px; padding: 0 4px; margin-left: 3px; vertical-align: middle; }
.dept-dir { font-size: 10.5px; color: #c98a2e; border: 1px solid #c98a2e66; background: rgba(201,138,46,.12); border-radius: 5px; padding: 0 4px; margin-left: 3px; vertical-align: middle; }
.dir-flag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 11px; color: var(--text-dim); padding: 1px 6px; border-radius: 6px; border: 1px dashed var(--stroke); }
.dir-flag input { width: auto; }
.pos-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); background: var(--inset); border: 1px solid var(--stroke); border-radius: 6px; padding: 1px 8px; }
.pos-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pos-del { border: 0; background: transparent; color: var(--text-faint, #888); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.pos-del:hover { color: var(--danger, #e0533d); }
.pos-group { padding: 8px 0; border-top: 1px dashed var(--stroke); }
.pos-group:first-child { border-top: 0; }
.pos-group-h { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.sm { font-size: 12px; }

/* 危险提示框（删除确认/受限提示） */
.danger-note { display: flex; gap: 10px; align-items: flex-start; background: rgba(224,83,61,.08); border: 1px solid rgba(224,83,61,.3); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.6; color: var(--text); }
.danger-note .ico { color: #e0533d; flex: 0 0 auto; margin-top: 1px; }
.danger-note .ico svg { width: 20px; height: 20px; }
.dept-card { transition: border-color .15s, transform .1s; }
.dept-card:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.roster-wrap .table-wrap { max-height: 56vh; overflow: auto; }

/* 通讯录 / 好友 */
.ct-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .ct-cols { grid-template-columns: 1fr; } }
.ct-card { padding: 16px 18px; }
.card-h { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card-h .muted { font-weight: 500; }
.ct-list { display: flex; flex-direction: column; gap: 6px; }
.ct-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 10px; }
.ct-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ct-av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--brand-grad, linear-gradient(135deg,#22d3ee,#a78bfa)); flex: 0 0 auto; }
.ct-name { font-weight: 600; font-size: 13.5px; color: var(--text); }
.ct-search { width: 100%; margin-bottom: 10px; padding: 8px 11px; border: 1px solid var(--stroke); border-radius: 9px; background: var(--inset); color: var(--text); font-family: inherit; font-size: 13px; }
.badge.warn-b { background: rgba(201,138,46,.16); color: #c98a2e; border: 1px solid #c98a2e55; }

/* 代码主树 */
.repo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .repo-cols { grid-template-columns: 1fr; } }
.repo-pane { padding: 14px 16px; }
.tf-list { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow: auto; }
.tf-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: background .12s; }
.tf-row:hover { background: var(--inset); }
.tf-ico { color: var(--text-dim); display: inline-flex; }
.tf-ico svg { width: 15px; height: 15px; }
.tf-path { flex: 1; font-family: var(--font-mono, ui-monospace, monospace); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-list { display: flex; flex-direction: column; gap: 6px; }
.mr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--stroke); border-radius: 10px; }
.code-area { width: 100%; min-height: 320px; resize: vertical; font-family: var(--font-mono, ui-monospace, "Cascadia Code", Consolas, monospace); font-size: 12.5px; line-height: 1.55; tab-size: 2; background: var(--inset); color: var(--text); border: 1px solid var(--stroke); border-radius: 9px; padding: 12px; white-space: pre; overflow: auto; }
.att-bar { height: 8px; border-radius: 5px; background: var(--inset); overflow: hidden; margin-top: 5px; }
.att-bar > div { height: 100%; background: var(--brand-grad, linear-gradient(90deg,#22d3ee,#a78bfa)); border-radius: 5px; transition: width .3s; }
.punch-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.punch-timeline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: center; }
.pt-item { font-size: 11.5px; color: var(--text-dim); background: var(--inset); border: 1px solid var(--stroke); border-radius: 6px; padding: 2px 8px; }
.ar-grp .row-2 { margin-bottom: 0; }
.es-card { transition: border-color .15s, transform .1s; }
.es-card:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.es-info { border: 1px solid var(--stroke); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.es-chat { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--inset); border: 1px solid var(--stroke); border-radius: 10px; }
.es-msg { font-size: 13px; padding: 6px 9px; border-radius: 8px; background: var(--surface, rgba(127,127,127,.08)); align-self: flex-start; max-width: 88%; }
.es-msg.me { align-self: flex-end; background: rgba(34,211,238,.14); }
.verify-log { margin: 6px 0 0; padding: 8px 10px; background: var(--inset); border: 1px solid var(--stroke); border-radius: 8px; font-family: var(--font-mono, ui-monospace, Consolas, monospace); font-size: 11px; line-height: 1.5; max-height: 120px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--text-dim); }
.prereq-card { padding: 12px 16px; margin-bottom: 14px; border-left: 3px solid var(--cyan); }
.prereq-body { font-size: 13px; line-height: 1.6; color: var(--text-dim); }
.link-btn { color: var(--cyan); font-size: 12px; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.node-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.node-dot.on { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
.node-dot.off { background: var(--text-faint, #888); }
.tok-line { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.tok { font-family: var(--font-mono, ui-monospace, Consolas, monospace); font-size: 11.5px; background: var(--inset); border: 1px solid var(--stroke); border-radius: 6px; padding: 2px 7px; color: var(--text-dim); word-break: break-all; }
.agent-steps { margin: 4px 0 0; padding-left: 20px; font-size: 12.5px; line-height: 2; color: var(--text-dim); }
.agent-steps code.tok { font-size: 11px; }
/* AI 任务树预览 */
.ai-pv-h { font-size: 13px; font-weight: 700; color: var(--cyan); margin: 14px 0 8px; padding-top: 12px; border-top: 1px dashed var(--stroke); }
.ai-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--stroke); }
.ai-sub .ai-s-title { flex: 1 1 140px; }
.ai-sub .ai-s-detail { flex: 2 1 200px; }
.ai-sub .ai-s-assignee { flex: 0 0 auto; width: auto; }
.ai-sub input, .ai-sub select { padding: 6px 9px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--inset); color: var(--text); font-size: 12.5px; font-family: inherit; }

/* ============ 协作工单 ============ */
.seg { display: inline-flex; gap: 4px; background: var(--inset); padding: 4px; border-radius: 10px; }
.seg-btn { border: 0; background: transparent; color: var(--text-dim); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 7px; cursor: pointer; font-family: inherit; transition: .15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: var(--panel-solid); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--stroke-strong); }
.ticket-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-card { cursor: pointer; transition: .16s; padding: 16px 18px; }
.ticket-card:hover { border-color: var(--stroke-strong); transform: translateX(2px); }
.t-title { font-size: 15px; font-weight: 600; }
.t-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; margin-top: 8px; }
.t-type { padding: 2px 9px; border-radius: 999px; background: var(--hover-2); border: 1px solid var(--stroke); font-size: 11.5px; color: var(--text-dim); }

/* 工单详情 */
.td-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.td-title { font-size: 17px; font-weight: 700; font-family: var(--font-display); }
.td-route { font-size: 12.5px; margin-bottom: 12px; }
.td-content { background: var(--surface-soft); border: 1px solid var(--stroke); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; margin-bottom: 14px; }
.td-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.td-timeline { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 0; border-top: 1px solid var(--stroke); padding-top: 14px; }
.tl-sys { text-align: center; }
.tl-sys span { font-size: 11.5px; color: var(--muted); background: var(--hover); padding: 3px 12px; border-radius: 999px; }
.tl-msg { background: var(--hover-2); border: 1px solid var(--stroke); border-radius: 10px; padding: 9px 12px; }
.tl-head { font-size: 11.5px; color: var(--text-dim); margin-bottom: 3px; }
.tl-body { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.td-reply { display: flex; gap: 10px; margin-top: 14px; }
.td-reply input { flex: 1; }

/* ============ 客户与项目管理（CRM） ============ */
.crm-row { cursor: pointer; }
.progress { height: 7px; border-radius: 999px; background: var(--inset); overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--violet-2)); transition: width .4s; }
.crm-proj { padding: 14px 16px; }
.crm-delivs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.crm-deliv { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; background: var(--surface-soft); border: 1px solid var(--stroke); border-radius: 8px; padding: 6px 10px; }
.crm-deliv .muted { font-size: 11px; }
.crm-chat { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.crm-msg { max-width: 85%; }
.crm-msg.mine { align-self: flex-end; }
.crm-msg-name { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }
.crm-msg.mine .crm-msg-name { text-align: right; }
.crm-msg-bubble { display: inline-block; padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: var(--hover-2); border: 1px solid var(--stroke); white-space: pre-wrap; word-break: break-word; }
.crm-msg.mine .crm-msg-bubble { background: linear-gradient(135deg, rgba(45,211,255,.18), rgba(139,108,255,.18)); border-color: var(--stroke-strong); color: var(--bubble-mine-text); }

/* ============ 费用报销 ============ */
.reimb-review { margin-top: 8px; font-size: 12.5px; background: var(--surface-soft); border: 1px solid var(--stroke); border-radius: 8px; padding: 8px 10px; color: var(--text-dim); }
.reimb-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ============ 人事 · 招聘 ============ */
.hr-stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.cand-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.cand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border: 1px solid var(--stroke); border-radius: 9px; background: var(--surface-soft); }

/* ============ 售后 · SLA ============ */
.sla-over { color: var(--red); font-weight: 700; }

/* ============ 系统更新 ============ */
.sys-files { font-family: "SF Mono", Consolas, monospace; font-size: 11.5px; color: var(--text-dim); background: var(--surface-soft); border: 1px solid var(--stroke); border-radius: 8px; padding: 8px 10px; margin-top: 4px; max-height: 160px; overflow: auto; line-height: 1.7; }
.sys-files.ok-files { color: var(--green); }

/* ============ 数据报表 ============ */
.rep-bars { display: flex; flex-direction: column; gap: 10px; }
.rep-bar-row { display: grid; grid-template-columns: 64px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; }
.rep-bar-label { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-track { height: 10px; background: var(--inset); border-radius: 999px; overflow: hidden; }
.rep-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet-2)); border-radius: 999px; transition: width .5s; }
.rep-bar-num { text-align: right; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.rep-task { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.rep-task-row { display: flex; align-items: center; gap: 8px; }
.rep-task-num { margin-left: auto; font-weight: 700; }
.rep-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 14px; background: var(--inset); }
.rep-stack > div { height: 100%; }
.rep-mod { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 16px; }
.rep-mod-t { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.rep-mod-b { font-size: 12.5px; color: var(--text-dim); }
.rep-mod-b b { color: var(--text-strong); font-size: 15px; }
