@charset "UTF-8";
/* ============================================================================
   DoSight · ws4「1:1 对照参考图」
   参考：freelancer 个人工作台截图（1599×1016）
   结构：左导航(200) ｜ 顶栏搜索+通知+主按钮 ｜ 指标行 ｜ 列表(300) 对话 详情(268) ｜ 时间轴
   ========================================================================= */

/* ---------------------------------------------------------------- 顶栏：搜索胶囊 + 通知 + 主按钮 */
.topbar {
  height: 60px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
}
.tb-search {
  display: flex; align-items: center; gap: 8px;
  width: min(420px, 46%);
  height: 32px; padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-4);
  cursor: text;
}
.tb-search svg { width: 14px; height: 14px; flex: none; }
.tb-search input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--ink); font-size: 12px; font-family: inherit;
}
.tb-search input::placeholder { color: var(--ink-5); }
.tb-search input::-webkit-search-cancel-button { display: none; }
.tb-search:focus-within { border-color: var(--brand); }
.tb-search kbd {
  flex: none; padding: 1px 5px;
  border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--mono); font-size: 9px; color: var(--ink-5);
}
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-icon {
  position: relative; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-3);
}
.tb-icon svg { width: 15px; height: 15px; }
.tb-icon:hover { color: var(--ink); border-color: var(--line-strong); }
.tb-dot {
  position: absolute; top: 6px; right: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #e5534b;
}
.tb-cta { height: 30px; padding: 0 13px !important; font-size: 11.5px !important; }

/* ---------------------------------------------------------------- 侧栏：logo + 图标导航 */
.sidebar { padding: 14px 12px 12px !important; gap: 16px !important; }
.sidebar .brand {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px !important; font-size: 13.5px !important; font-weight: 650;
}
.sidebar .brand img {
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(23, 174, 94, 0.15);
  padding: 3px;
}
.nav { gap: 1px !important; }
.nav-item {
  height: 34px; padding: 0 9px !important;
  display: flex; align-items: center; gap: 9px;
  font-size: 12px !important; border-radius: 8px !important;
  color: var(--night-dim) !important;
}
.nav-symbol { width: 16px; font-size: 13px; opacity: 0.7; }
.side-label { font-size: 9px; letter-spacing: 0.16em; padding: 0 8px; margin-bottom: 6px; }

/* ---------------------------------------------------------------- 工作台三栏 */
.ws-page { gap: 10px !important; }
.ws-layout {
  grid-template-columns: 296px minmax(0, 1fr) 268px !important;
  gap: 10px !important;
}

/* 左栏：对话列表 */
.ws-list {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.ws-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 9px 10px; border-bottom: 1px solid var(--line);
}
.ws-tabs { display: flex; gap: 4px; }
.ws-tab {
  height: 22px; padding: 0 9px;
  border: 1px solid transparent; border-radius: 999px;
  background: none; color: var(--ink-4);
  font-size: 10.5px; font-family: inherit; cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.ws-tab:hover { color: var(--ink-2); }
.ws-tab.on { background: var(--card-3); border-color: var(--line-strong); color: var(--ink); }
.ws-list-tools { flex: none; }
.ws-list-tools .ws-chip { height: 20px; font-size: 9.5px; }

.ws-groups { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 6px 6px; }
.ws-group { margin-bottom: 6px; }
.ws-group-head {
  display: flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 6px;
  font-size: 10.5px; color: var(--ink-3);
}
.ws-group-head i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.ws-group-head b {
  margin-left: auto;
  min-width: 16px; height: 15px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--card-3);
  color: var(--ink-3); font-size: 9px; font-weight: 500; font-family: var(--mono);
}
.ws-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 34px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--ink-2);
  font-size: 11.5px; font-family: inherit; text-align: left; cursor: pointer;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease);
}
.ws-row:hover { background: var(--card-2); }
.ws-row.on { background: rgba(23, 174, 94, 0.09); border-color: rgba(23, 174, 94, 0.28); color: var(--ink); }
.ws-row-id { flex: none; font-family: var(--mono); font-size: 9px; color: var(--ink-5); }
.ws-row-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-row-meta { flex: none; font-family: var(--mono); font-size: 9px; color: var(--ink-5); }
.ws-list-empty { padding: 26px 12px; text-align: center; font-size: 11px; color: var(--ink-4); line-height: 1.9; }
.ws-list-foot { padding: 8px 10px; border-top: 1px solid var(--line); }
.ws-list-foot .btn { width: 100%; justify-content: center; }

/* 中栏：对话面板 */
.ws-conv { background: var(--card); }
.ws-conv-head { padding: 8px 12px !important; }
.ws-conv .chat-feed { padding: 12px 14px 4px !important; }
.ws-conv .ws-composer { padding: 8px 10px 10px !important; }

/* 右栏：详情（保留 ws3 的合并面板，微调内距） */
.ws-detail .ws-card-head { padding: 9px 12px !important; }
.ws-detail .ws-card-body { padding: 8px 12px 10px; }

/* 指标卡：贴参考的 92px 高、14 圆角 */
.ws-kpi { min-height: 86px; }
.ws-kpi b { font-size: 22px !important; }

/* 时间轴：加粗到参考的视觉重量 */
.ws-timeline .ws-card-head { padding: 9px 12px; }
.tl-body { padding: 8px 12px 14px; }

@media (max-width: 1320px) {
  .ws-layout { grid-template-columns: 260px minmax(0, 1fr) 240px !important; }
}
@media (max-width: 1180px) {
  .ws-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .ws-list { max-height: 320px; }
  .ws-detail { flex-direction: row; }
}

/* 时间轴标记：竖线只穿泳道，标签放到轴下方，别压住第一行格子 */
.tl-today { top: 20px !important; bottom: 26px !important; }
.tl-today em { top: auto !important; bottom: -14px !important; left: 50% !important; transform: translateX(-50%); }
.tl-gap { top: 20px !important; bottom: 26px !important; }
.tl-gap em { top: auto !important; bottom: -14px !important; }
.tl-body { padding-bottom: 22px !important; }

/* 泳道改成连续色带（参考图是整条，不是一串小方块） */
.tl-track { gap: 0 !important; }
.tl-track i { border-radius: 0 !important; }
.tl-track i:first-child { border-radius: 3px 0 0 3px !important; }
.tl-track i:last-child { border-radius: 0 3px 3px 0 !important; }
.tl-lane > span { color: var(--ink-3) !important; }

/* 缺口与今天两个标记会撞在一起：缺口标签再往下放一行 */
.tl-gap em { bottom: -26px !important; }

/* ---------------------------------------------------------------- 图标去绿
   绿色在这套界面里只代表「可点的主操作」和数据本身（进度、回款泳道）。
   小图标不该染成品牌色——描边圆牌一律中性灰，logo 恢复原来的蓝图。
   ① 侧栏 logo：去掉绿底托，恢复正常比例
   ② 指标卡右上角的图标块：白 6% 底 + 中性字色（原来是绿色底 + 亮绿符号）
   ③ 指标卡副标题前的点、导航空心点、标题旁的状态点：改中性灰 */
.sidebar .brand img {
  width: 21px; height: 21px;
  border-radius: 6px;
  background: none;
  padding: 0;
}
.ws-kpi-top i {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ws-kpi small::before {
  background: rgba(255, 255, 255, 0.24);
}
.nav-item.active::after {
  background: rgba(255, 255, 255, 0.55);
}
.ws-dot { background: rgba(255, 255, 255, 0.3); }

/* 续：其余「当图标用」的徽标一并去绿——
   报告页步骤序号 01/02/03、对话里助手头像的方块，都属于标识而非操作，
   统一成中性灰白；绿色只留给主按钮与数据本身。 */
.rp-flow b {
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.message-avatar,
.from-user .message-avatar {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--ink-2) !important;
}

/* 浅色主题下同一批图标改深色底托，否则白 6% 的白底在浅卡上等于没画 */
/* 注意：指标卡在浅色主题下仍是深色卡面，所以它的图标不要跟着换深色底 */
html[data-theme="light"] .rp-flow b,
html[data-theme="light"] .message-avatar {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #4b5768 !important;
}
html[data-theme="light"] .ws-kpi small::before,
html[data-theme="light"] .ws-dot { background: rgba(15, 23, 42, 0.32); }
html[data-theme="light"] .nav-item.active::after { background: rgba(255, 255, 255, 0.55); }
