@charset "UTF-8";
/* ============================================================================
   DoSight · design system v3「深色经营终端」
   参考：Freelancer 个人工作台（抖音 7671227086895451444，23 帧取样）
   原则：近黑底 + 单一绿 + 1px 描边 + 零阴影零渐变 + 数字等宽 + 高密度
   落地方式：覆盖令牌（让所有 var(--x) 消费者自动换肤）+ 少量组件级兜底，
   不动 DOM / class / 接口。删掉 index.html 里的 <link href="/ds.css"> 即完整回退。
   ========================================================================= */

/* ------------------------------------------------------------------ 令牌：深色（默认） */
:root,
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0b0b;
  --bg-sub: #0c0d0d;
  --card: #131414;
  --card-2: #181a1a;
  --card-3: #222424;

  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.13);

  --ink: #eef2ef;
  --ink-2: #b3b9b5;
  --ink-3: #828a85;
  --ink-4: #6b746f;
  --ink-5: #565f5a;

  /* 单一强调色：绿 */
  --brand: #22c55e;
  --brand-deep: #16a34a;
  --brand-bright: #5be39a;
  --brand-soft: rgba(34, 197, 94, 0.12);
  --accent: #14b8a6;
  --accent-soft: rgba(20, 184, 166, 0.12);
  --indigo: #3b82f6;
  --indigo-soft: rgba(59, 130, 246, 0.12);
  --green: #22c55e;
  --muted: #828a85;

  --night: #0a0b0b;
  --night-1: #101212;
  --night-2: #151717;
  --night-line: rgba(255, 255, 255, 0.07);
  --night-text: #eef2ef;
  --night-dim: rgba(238, 242, 239, 0.52);
  --night-faint: rgba(238, 242, 239, 0.32);

  --sh-1: none;
  --sh-2: none;
  --sh-3: 0 24px 48px -32px rgba(0, 0, 0, 0.8);

  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 8px;

  /* 语义色：只表达状态 */
  --ok: #22c55e;
  --run: #3b82f6;
  --wait: #f59e0b;
  --bad: #e5534b;
}

/* ------------------------------------------------------------ 令牌：浅色（派生，非反色） */
html[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f6f4;
  --bg-sub: #edf0ed;
  --card: #ffffff;
  --card-2: #f7f9f7;
  --card-3: #edf0ed;

  --line: #e2e6e2;
  --line-soft: #eef1ee;
  --line-strong: #cfd6cf;

  --ink: #14201a;
  --ink-2: #2c3a32;
  --ink-3: #55635a;
  --ink-4: #77827b;
  --ink-5: #98a29b;

  --brand: #16a34a;
  --brand-deep: #15803d;
  --brand-bright: #22c55e;
  --brand-soft: #e7f6ed;
  --accent: #0f766e;
  --accent-soft: #e3f4f2;
  --indigo: #2563eb;
  --indigo-soft: #eaf1fe;
  --green: #16a34a;
  --muted: #77827b;

  --night: #0f1512;
  --night-1: #141b17;
  --night-2: #1a221d;
  --night-text: #eef2ef;
  --night-dim: rgba(238, 242, 239, 0.55);
  --night-faint: rgba(238, 242, 239, 0.35);

  --sh-1: 0 1px 2px rgba(16, 28, 22, 0.04);
  --sh-2: 0 1px 2px rgba(16, 28, 22, 0.05);
  --sh-3: 0 24px 48px -34px rgba(16, 28, 22, 0.28);

  --ok: #16a34a;
  --run: #2563eb;
  --wait: #b45309;
  --bad: #c2413a;
}

/* ------------------------------------------------------------ 全局底座 */
html, body {
  background: var(--bg);
  color: var(--ink-2);
}
body { font-size: 13px; }

/* 装饰清零：蓝色晕染、天际线插画、玻璃、发光，全部撤掉 */
.main-content::before { display: none !important; }
.topbar-art { display: none !important; }
.topbar::after { display: none !important; }
.sidebar::after { display: none !important; }
.page-glow, .top-glow { display: none !important; }
.panel, .stat, .card, .service-card, .info-panel, .password-panel,
.report-card, .news-card, .calc-panel, .rp-detail, dialog {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* ------------------------------------------------------------ 侧栏 */
.shell { background: var(--bg); }
.sidebar {
  background: var(--night) !important;
  border-right: 1px solid var(--line) !important;
  padding: 14px 10px 10px !important;
  gap: 14px !important;
}
.sidebar .brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 0 8px;
}
.sidebar .brand img { width: 20px; height: 20px; border-radius: 6px; }
.side-label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-faint);
  padding: 0 8px;
  margin-bottom: 6px;
}
.nav { gap: 2px; }
.nav-item {
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--night-dim);
  font-size: 12.5px;
  font-weight: 450;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--night-text); }
.nav-symbol { width: 16px; font-size: 13px; opacity: 0.75; }
.nav-item.active,
.sidebar .nav-item.active {
  background: rgba(34, 197, 94, 0.1) !important;
  color: var(--brand-bright) !important;
  font-weight: 550;
  box-shadow: none !important;
}
.nav-item.active .nav-symbol { color: var(--brand-bright); opacity: 1; }
.sidebar .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--brand) !important;
  box-shadow: none !important;
}
.nav-item { position: relative; }
.sidebar .conversation-nav .side-label { display: none; }
.conversation-item { color: var(--night-dim); border-radius: 6px; font-size: 11.5px; }
.conversation-item:hover, .conversation-item.selected {
  background: rgba(255, 255, 255, 0.05); color: var(--night-text);
}
.new-chat {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--line) !important;
  color: var(--ink-2) !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
}
.new-chat:hover:not(:disabled) { background: rgba(34, 197, 94, 0.12) !important; color: var(--brand-bright) !important; }
.side-bottom { border-top: 1px solid var(--line); padding-top: 10px; }
.side-profile { color: var(--night-dim); font-size: 11px; }
.side-version { color: var(--night-faint); font-size: 9px; letter-spacing: 0.1em; }
.avatar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 6px;
  width: 24px; height: 24px;
  font-size: 10px;
}

/* ------------------------------------------------------------ 顶栏 */
.topbar {
  height: 56px !important;
  padding: 0 24px !important;
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
}
.breadcrumb { font-size: 11.5px; color: var(--ink-4); }
.breadcrumb b { color: var(--ink); font-weight: 550; }

/* ------------------------------------------------------------ 内容区 */
.main-content { padding: 24px !important; max-width: none !important; }
.footer-note { color: var(--ink-4); font-size: 10.5px; margin-top: 18px; }
.page-heading h1, h1 { letter-spacing: -0.02em; }
.page-heading h1 { font-size: 22px; }
.eyebrow { font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-4); }

/* ------------------------------------------------------------ 面板与卡片 */
.panel, .stat, .card, .service-card, .info-panel, .password-panel, .calc-panel, .rp-detail {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}
.panel-heading { border-bottom: 1px solid var(--line); padding: 14px 16px; }
.panel-heading h2 { font-size: 13px; font-weight: 600; color: var(--ink); }
.stat { padding: 14px 16px; }
.stat-label { font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-4); }
.stat-number {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-number span { color: var(--ink-4); font-size: 10px; }

/* ------------------------------------------------------------ 表格：36px 行高、无斑马纹 */
table { font-size: 12px; }
th {
  background: transparent !important;
  color: var(--ink-4) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--line) !important;
}
td {
  padding: 8px 12px !important;
  height: 36px;
  border-bottom: 1px solid var(--line-soft) !important;
  color: var(--ink-2) !important;
}
tr:hover td { background: rgba(255, 255, 255, 0.02); }
td strong { color: var(--ink); font-weight: 550; }
.table-wrap { background: transparent; }

/* ------------------------------------------------------------ 按钮 */
.btn {
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--card-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  box-shadow: none;
}
.btn:hover:not(:disabled) { background: var(--card-3); border-color: var(--ink-5); color: var(--ink); }
.btn.primary,
.btn.primary:hover:not(:disabled) {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #04140a !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: none !important;
}
.btn.primary:hover:not(:disabled) { background: var(--brand-bright) !important; }
.btn.primary::after { display: none !important; }
.btn.subtle { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn.danger { color: var(--bad); border-color: rgba(229, 83, 75, 0.35); }
.btn.small { padding: 5px 9px; font-size: 11px; }

/* ------------------------------------------------------------ 表单 */
.field > span { font-size: 10.5px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.02em; }
.field input, .field select, .field textarea, .search, .inline-input {
  background: var(--card-2) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  min-height: 34px;
  font-size: 12.5px;
  padding: 7px 10px;
}
.field input:focus, .field select:focus, .field textarea:focus, .search:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14) !important;
}
input::placeholder, textarea::placeholder { color: var(--ink-5); }

/* ------------------------------------------------------------ 徽标 / 胶囊 */
.badge, .tag, .pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-2) !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  padding: 1px 7px !important;
  font-family: var(--mono);
}
.badge.amber { color: var(--wait) !important; border-color: rgba(245, 158, 11, 0.35) !important; }
.badge.red { color: var(--bad) !important; border-color: rgba(229, 83, 75, 0.35) !important; }
.badge.gray { color: var(--ink-3) !important; }

/* ------------------------------------------------------------ 工作台（对话） */
.ws-top h1 { font-size: 20px; }
.ws-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-3);
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 8px;
}
.ws-rail-toggle {
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
  border-radius: 6px;
  font-size: 11px;
}
.ws-rail-toggle b { background: rgba(255, 255, 255, 0.06); color: var(--ink-2); }
.chat-feed { background: transparent; }
.message-text { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.message-text strong { color: var(--ink); }
.from-user .message-text {
  background: var(--card-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px 10px 2px 10px !important;
  color: var(--ink) !important;
}
.message-avatar {
  background: var(--brand-soft) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
  color: var(--brand-bright) !important;
  border-radius: 6px !important;
}
.from-user .message-avatar { background: var(--card-3) !important; border-color: var(--line) !important; color: var(--ink-3) !important; }
.message-meta b { color: var(--ink-2); font-size: 11px; }
.message-meta span { color: var(--ink-4); font-size: 9.5px; }
.ws-composer .ws-box, .ws-box {
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.ws-box:focus-within { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important; }
.ws-box textarea { color: var(--ink) !important; background: transparent !important; }
.ws-send { background: var(--brand) !important; }
.ws-send:hover:not(:disabled) { background: var(--brand-bright) !important; }
.ws-send svg, .ws-send-arrow { fill: #04140a; }
.ws-orb { background: var(--card-3); border-color: var(--line-strong); color: var(--ink-2); }
.ws-model { color: var(--ink-3); font-size: 11px; }
.ws-model:hover { color: var(--ink); }
.ws-empty-head h3 { color: var(--ink); font-size: 16px; }
.ws-empty-head p { color: var(--ink-4); }
.ws-starter {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}
.ws-starter:hover:not(:disabled) { border-color: rgba(34, 197, 94, 0.4) !important; background: var(--card-2) !important; }
.ws-starter-label { color: var(--ink); }
.ws-starter-q { color: var(--ink-4); }
.ws-starter-no { color: var(--ink-5); }
.chat-generation { color: var(--ink-4); }

/* ------------------------------------------------------------ 报告 / 资讯 / 文案 / 计算器 */
.rp-row, .report-card, .news-card, .cp-card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.news-live-dot { background: var(--brand); box-shadow: none; }
.calc-page .calc-panel-presets,
.calc-page .calc-panel-inputs,
.calc-page .calc-panel-result,
.calc-page .calc-panel-adv {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
.calc-preset, .calc-chip {
  background: var(--card-2) !important;
  border: 1px solid var(--line-strong) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  color: var(--ink-3) !important;
}
.calc-preset { border-radius: 999px !important; }
.calc-preset.active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #04140a !important;
  font-weight: 600;
}
.calc-chip { border-radius: 999px !important; }
.calc-chip.on { background: rgba(34, 197, 94, 0.14) !important; border-color: rgba(34, 197, 94, 0.4) !important; color: var(--brand-bright) !important; }
.calc-chip.on::before { opacity: 1; }

/* ------------------------------------------------------------ 弹窗 / 提示 */
dialog, .modal {
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  box-shadow: var(--sh-3) !important;
}
.modal-heading h2 { color: var(--ink); font-size: 15px; }
.toast { background: var(--card-3); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 8px; }
.toast.error-toast { background: rgba(229, 83, 75, 0.16); border-color: rgba(229, 83, 75, 0.4); color: #ffb4ae; }

/* ------------------------------------------------------------ 演示角标 */
.demo-chip {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-size: 10px; font-family: var(--mono);
  box-shadow: none; backdrop-filter: none;
  pointer-events: none;
}

/* ------------------------------------------------------------ 滚动条（沿用细条，换色） */
html[data-theme="dark"] .is-scrolling::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.2); }
.sidebar.is-scrolling::-webkit-scrollbar-thumb,
.conversation-list.is-scrolling::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.22); }
.is-scrolling::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.18); }

/* ------------------------------------------------------------ 数字统一等宽 */
.stat-number, .num, .kpi-value, .calc-hero-main strong, .calc-metric b,
td.num, .amount, .currency, .report-amount {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ 顶栏面包屑：去掉玻璃泡，纯文字 */
.breadcrumb {
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-size: 11.5px;
  color: var(--ink-4);
}
.breadcrumb b { color: var(--ink); font-weight: 550; }

/* ------------------------------------------------------------ 计算器：结果卡改成「读数卡」 */
.calc-hero {
  background: var(--card-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.calc-hero-main strong {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--brand-bright);
}
.calc-hero-main strong.is-neg { color: var(--bad); }
.calc-hero-side { border-left: 1px solid var(--line) !important; }
.calc-hero-side b { font-family: var(--mono); font-size: 17px; }
.calc-hero .is-neg,
.calc-table .is-neg,
.calc-derived .is-neg,
.calc-sku-table .is-neg { color: var(--bad) !important; }

/* ------------------------------------------------------------ 对话画布：给一层「面板」底色 */
.ws-conv {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.ws-conv .chat-feed { padding: 18px 20px 8px; }
.ws-conv .chat-feed.is-empty { padding: 24px 20px 16px; justify-content: flex-start; }
.ws-conv .ws-rail-toggle-row { padding: 10px 14px 0; }
.ws-conv .ws-composer {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: var(--card);
  border-radius: 0 0 10px 10px;
}
.ws-conv .ws-empty-head { margin-bottom: 14px; }
.ws-conv .ws-starters { gap: 8px; }
.ws-conv .ws-starter { padding: 10px 11px; }
.ws-conv .ws-starter-q {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------ 报告中心：列表收紧 */
.panel { min-height: 0 !important; }
.rp-list, .report-list { gap: 8px; }

/* 对话页撑满一屏：面板吃掉剩余高度，输入区常驻底部（只改尺寸，不动结构） */
@media (min-width: 761px) {
  .main-content:has(> .ws-grid) {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
  }
  .main-content:has(> .ws-grid) > .ws-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }
  .main-content:has(> .ws-grid) > .ws-grid > .ws-conv {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .main-content:has(> .ws-grid) .chat-feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .main-content:has(> .ws-grid) .ws-composer { flex: none; }
  .main-content:has(> .ws-grid) > .footer-note { flex: none; margin-top: 12px; }
}

/* 侧栏永远是「深色岛」：浅色主题下也必须用 night 系文字，否则深底压深字看不见 */
.sidebar .new-chat,
.sidebar .btn.new-chat {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--night-dim) !important;
}
.sidebar .btn.new-chat:hover:not(:disabled) { color: var(--brand-bright) !important; border-color: rgba(34, 197, 94, 0.4) !important; }
.sidebar .avatar { color: var(--night-text) !important; }
.sidebar .side-profile { color: var(--night-dim) !important; }
.sidebar .brand { color: var(--night-text) !important; }
.sidebar .conversation-item { color: var(--night-dim) !important; }
.sidebar .conversation-item:hover,
.sidebar .conversation-item.selected { color: var(--night-text) !important; }
.sidebar .conversation-empty { color: var(--night-faint) !important; }
.sidebar .btn.subtle { color: var(--night-dim) !important; }
.sidebar .nav-item { color: var(--night-dim) !important; }
.sidebar .nav-item:hover { color: var(--night-text) !important; }
.sidebar .nav-item.active { color: var(--brand-bright) !important; }

/* 登录卡：改成实心面板，去掉玻璃 */
.auth-form-wrap,
.auth-shell .auth-form-wrap {
  background: rgba(12, 14, 13, 0.94) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.auth-form-wrap h2 { color: var(--ink); }
.auth-intro, .auth-bottom, .auth-bottom .muted { color: var(--ink-3); }
.auth-demo-hint { color: var(--ink-4); }

/* ============================================================================
   v3.1 · 对齐参考图：窗口外框、抬高卡片、更深的绿、bold 数字
   取色来源：用户提供的参考截图（1599×1016）
   桌面底 #3A3A3A｜窗口 #0A0A0A｜侧栏 #050505｜卡 #131313 / #1C1C1C｜绿 #17AE5E
   ========================================================================= */

/* ---------------------------------------------------------------- 浮动窗口外框 */
body {
  background: #3a3a3a !important;
  padding: 16px;
}
.shell {
  height: calc(100vh - 32px) !important;
  height: calc(100dvh - 32px) !important;
  border-radius: 16px;
  border: 1px solid #262626;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  background: #0a0a0a !important;
}
@media (max-width: 760px) {
  body { padding: 0 !important; background: #0a0a0a !important; }
  .shell { height: 100dvh !important; border-radius: 0; border: 0; box-shadow: none; }
}

/* ---------------------------------------------------------------- 调色：抬高卡片、压暗侧栏 */
html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-sub: #0d0d0d;
  --card: #141414;
  --card-2: #1c1c1c;
  --card-3: #262626;
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f2f4f2;
  --ink-2: #c2c8c3;
  --ink-3: #8b928c;
  --ink-4: #6f766f;
  --ink-5: #565c56;

  --brand: #17ae5e;
  --brand-deep: #128f4c;
  --brand-bright: #2bd97f;
  --brand-soft: rgba(23, 174, 94, 0.14);
  --night: #050505;
  --night-1: #0b0b0b;
  --night-2: #121212;
  --green: #17ae5e;
}

.sidebar { background: #050505 !important; border-right: 1px solid rgba(255, 255, 255, 0.06) !important; }

/* KPI / 面板：卡面比底色亮一档，参考图的层次就是这么来的 */
.ws-kpi { background: #131313 !important; border-color: rgba(255, 255, 255, 0.07) !important; border-radius: 14px !important; }
.ws-conv, .ws-timeline, .ws-detail, .panel, .stat { border-radius: 14px !important; }
.ws-card { border-radius: 0 !important; }

/* 数字：参考图用粗体无衬线（不是等宽），字重 600、字距 -0.02em */
.ws-kpi b {
  font-family: var(--sans) !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.stat-number { font-family: var(--sans) !important; font-weight: 600 !important; letter-spacing: -0.03em; }

/* 侧栏宽度收到 196，贴近参考的比例 */
@media (min-width: 761px) {
  .shell { grid-template-columns: 196px minmax(0, 1fr) !important; }
  .sidebar { padding: 12px 10px 10px !important; }
  .nav-item { padding: 7px 8px !important; font-size: 12px !important; border-radius: 8px !important; }
  .sidebar .brand { font-size: 14px !important; padding: 0 6px !important; }
}

/* 主按钮：参考图的绿更沉，hover 只提亮一档 */
.btn.primary, .btn.primary:hover:not(:disabled) {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #04140a !important;
}
.btn.primary:hover:not(:disabled) { background: var(--brand-bright) !important; }

/* 品牌字被 theme.css 的 ::after 又画了一遍（叠成 DoSightDoSight），关掉 */
.sidebar .brand::after, .brand::after { content: none !important; }

/* 导航选中态按参考图：白字 + 右侧绿点，不再整块染色 */
.sidebar .nav-item.active,
.nav-item.active {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.sidebar .nav-item.active::before, .nav-item.active::before { display: none !important; }
.sidebar .nav-item.active::after,
.nav-item.active::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.sidebar .nav-item.active .nav-symbol { color: #ffffff !important; opacity: 0.9; }
.sidebar .nav-item { position: relative; }

/* KPI 副标题前的状态点 */
.ws-kpi small::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 2px;
}

/* 时间轴：泳道加厚、格子圆角，靠近参考图的条状感 */
.tl-track { height: 9px !important; gap: 2px !important; }
.tl-track i { border-radius: 3px !important; }

/* ---------------------------------------------------------------- 全屏：去掉浮动窗口外框
   用户要求「边界不要有空隙，主页和登录页都要全屏」——撤掉 v3.1 的桌面底 + 窗口圆角，
   应用直接贴满视口。 */
body {
  padding: 0 !important;
  background: #0a0a0a !important;
}
.shell {
  height: 100vh !important;
  height: 100dvh !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* 登录页同样贴满：auth 外壳吃掉整屏 */
.auth-shell {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.auth-main, .auth-story { border-radius: 0 !important; }
