/* =========================================================
   标讯雷达 · 视觉系统
   深墨蓝侧栏 + 暖纸色工作区 + 信号橙强调色
   ========================================================= */

:root {
  --bg: #f4f1eb;
  --bg-deep: #eeeae1;
  --surface: #fffdfa;
  --surface-2: #f8f5ef;
  --surface-3: #f1ede5;
  --ink: #152033;
  --ink-2: #354156;
  --muted: #7c818c;
  --muted-2: #9b9da4;
  --line: #e6dfd3;
  --line-strong: #d8cfc0;
  --accent: #e35d35;
  --accent-dark: #c84a26;
  --accent-soft: #fbe8df;
  --teal: #217268;
  --teal-soft: #e2f2ee;
  --amber: #bd8322;
  --amber-soft: #f8eed8;
  --red: #bf493e;
  --red-soft: #f9e7e3;
  --blue: #3d6fae;
  --blue-soft: #e8f0fa;
  --sidebar: #111a2a;
  --sidebar-2: #0c1422;
  --shadow-sm: 0 1px 2px rgba(28, 32, 40, .04), 0 4px 14px rgba(28, 32, 40, .035);
  --shadow-md: 0 12px 34px rgba(24, 29, 40, .10);
  --shadow-lg: 0 28px 70px rgba(17, 24, 36, .20);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI", var(--font);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(227, 93, 53, .055), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(33, 114, 104, .045), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }

::selection { background: #f5c4b1; color: #3a1a0f; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d3cbbd; border: 3px solid transparent; background-clip: content-box; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #bdb3a3; border: 3px solid transparent; background-clip: content-box; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 23px; height: 23px; }

/* =========================================================
   布局
   ========================================================= */

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(227, 93, 53, .13), transparent 34%),
    linear-gradient(165deg, #142034 0%, var(--sidebar) 46%, var(--sidebar-2) 100%);
  color: #d9e1ee;
  border-right: 1px solid rgba(255, 255, 255, .045);
  overflow-y: auto;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(rgba(255, 255, 255, .45) .6px, transparent .6px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to bottom, #000, transparent 42%);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1px 8px 21px;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(227, 93, 53, .18), rgba(227, 93, 53, .04));
  border: 1px solid rgba(240, 138, 99, .32);
  box-shadow: inset 0 0 18px rgba(227, 93, 53, .13);
}
.radar-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(246, 168, 138, .55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.radar-ring.r1 { width: 26px; height: 26px; opacity: .9; }
.radar-ring.r2 { width: 15px; height: 15px; opacity: .7; }
.radar-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f6a886;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px #f6a886;
}
.radar-dot::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 16px;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(246, 168, 138, .9), transparent);
  animation: sweep 3.6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-text strong { color: #fff; font-size: 17px; letter-spacing: 1.2px; font-weight: 700; }
.brand-text span { margin-top: 4px; color: rgba(208, 219, 236, .48); font-size: 9px; letter-spacing: 1.25px; font-family: var(--num); }

.workspace-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 21px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035);
}
.workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: #5cc6a7; box-shadow: 0 0 0 3px rgba(92, 198, 167, .1); }
.workspace-pill div { display: flex; flex-direction: column; line-height: 1.35; }
.workspace-pill span { font-size: 9.5px; color: rgba(210, 221, 236, .48); letter-spacing: .5px; }
.workspace-pill strong { font-size: 11.5px; color: rgba(235, 241, 249, .86); font-weight: 500; }

.nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  padding: 13px 11px 6px;
  color: rgba(186, 200, 220, .36);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  font-weight: 600;
}
.nav-label:first-child { padding-top: 0; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(219, 228, 241, .68);
  font-size: 13px;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .2s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .065); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035); }
.nav-item.active::before { height: 20px; }
.nav-item.active .icon { color: #f49a78; }
.nav-item .icon { color: rgba(202, 214, 232, .52); transition: color .18s ease; }
.nav-item span { flex: 1; }
.nav-badge {
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  color: #dfe8f4;
  font-style: normal;
  font-family: var(--num);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.nav-badge.accent { background: var(--accent); color: #fff; }

.sidebar-spacer { flex: 1; min-height: 28px; }

.sidebar-user {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}
.sidebar-user .avatar {
  width: 28px;
  height: 28px;
  background: rgba(227, 93, 53, .16);
  color: #f2a181;
  border: 1px solid rgba(242, 161, 129, .18);
  font-size: 11px;
}
.sidebar-user > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sidebar-user strong { overflow: hidden; color: rgba(240, 246, 253, .88); font-size: 10.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user span:last-child { margin-top: 2px; color: rgba(205, 219, 237, .38); font-size: 8.5px; }

/* 只读成员：隐藏所有会触发写操作或管理功能的入口 */
body.viewer #quickAddBtn,
body.viewer #sidebarCrawlBtn,
body.viewer .nav-item[data-view="settings"],
body.viewer [data-action="new-project"],
body.viewer [data-action="crawl"],
body.viewer [data-action="follow"],
body.viewer [data-action="ignore"],
body.viewer [data-action="restore"],
body.viewer [data-action="mark-all-read"],
body.viewer [data-action="read-all"],
body.viewer [data-action="save-settings"],
body.viewer [data-action="reload-settings"],
body.viewer [data-action="open-data"],
body.viewer [data-action="export-csv"],
body.viewer [data-action="export-json"],
body.viewer [data-action="shutdown-app"],
body.viewer [data-alert-read],
body.viewer [data-modal-action="follow"],
body.viewer [data-modal-action="ignore"],
body.viewer [data-modal-action="restore"],
body.viewer [data-drawer-save],
body.viewer [data-drawer-delete],
body.viewer [data-add-ms],
body.viewer [data-ms-edit],
body.viewer [data-ms-del] { display: none !important; }
body.viewer #drawer input,
body.viewer #drawer select,
body.viewer #drawer textarea { background: #f5f2ec; color: var(--ink-2); cursor: default; }
body.viewer .drawer-section-head .hint { visibility: hidden; }
body.viewer .notice-action-row:empty { display: none; }

.source-card {
  position: relative;
  z-index: 1;
  margin: 0 2px 14px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}
.source-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(224, 233, 245, .76); }
.status-dot { width: 6px; height: 6px; background: #5cc6a7; border-radius: 50%; box-shadow: 0 0 0 3px rgba(92, 198, 167, .1); }
.status-dot.busy { background: #f0a35f; box-shadow: 0 0 0 3px rgba(240, 163, 95, .1); animation: pulse 1.4s ease infinite; }
.status-dot.error { background: #e57866; box-shadow: 0 0 0 3px rgba(229, 120, 102, .1); }
@keyframes pulse { 50% { opacity: .35; } }
.source-state { margin-left: auto; color: rgba(205, 218, 236, .4); font-size: 9.5px; }
.source-card p {
  margin: 8px 0 9px;
  color: rgba(208, 220, 236, .46);
  font-size: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.source-progress { height: 2px; background: rgba(255, 255, 255, .07); border-radius: 2px; overflow: hidden; }
.source-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e35d35, #f2a37f); transition: width .35s ease; }
.source-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 31px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
  color: rgba(230, 238, 249, .8);
  font-size: 10.5px;
  transition: background .18s ease, border-color .18s ease;
}
.source-btn:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .14); }
.source-btn .icon { width: 13px; height: 13px; }
.source-btn:disabled { opacity: .5; cursor: not-allowed; }

.sidebar-foot { position: relative; z-index: 1; display: flex; justify-content: center; gap: 7px; padding: 2px 0; color: rgba(190, 204, 223, .3); font-size: 9px; letter-spacing: .35px; }
.dot-sep { opacity: .6; }

.main { min-height: 100vh; margin-left: 238px; }

/* =========================================================
   顶栏
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 34px 17px;
  background: rgba(244, 241, 235, .88);
  border-bottom: 1px solid rgba(216, 207, 192, .64);
  backdrop-filter: blur(14px);
}
.breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; color: var(--muted-2); font-size: 10px; letter-spacing: .35px; }
.breadcrumb .slash { opacity: .55; }
.breadcrumb span:last-child { color: var(--ink-2); }
.topbar h1 { font-size: 25px; line-height: 1.22; letter-spacing: .2px; font-weight: 700; color: var(--ink); }
.title-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.internal-badge {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border: 1px solid #ead8ca;
  border-radius: 5px;
  background: #fcf3ec;
  color: #a85a3d;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .4px;
  white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.today-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 250, .64);
  color: var(--ink-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.today-pill .icon { width: 15px; height: 15px; color: var(--muted); }
.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 268px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 250, .74);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.top-search:focus-within { border-color: #cbbfae; background: #fffdfa; box-shadow: 0 0 0 3px rgba(227, 93, 53, .07); }
.top-search .icon { width: 15px; height: 15px; color: var(--muted); }
.top-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 11.5px; }
.top-search input::placeholder { color: #aaa69f; }
.top-search kbd { padding: 2px 5px; border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 4px; color: #a6a098; font-family: var(--num); font-size: 8px; letter-spacing: .2px; background: #faf8f3; }

.view { max-width: 1480px; padding: 25px 34px 52px; }
.view > * { animation: rise .38s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.page-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; height: 46vh; color: var(--muted); font-size: 12px; }
.loader { width: 22px; height: 22px; border: 2px solid #ded6c9; border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   按钮与通用组件
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(200, 74, 38, .16); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #243149; }
.btn-ghost { border-color: var(--line); background: rgba(255, 253, 250, .72); color: var(--ink-2); }
.btn-ghost:hover { background: #fff; border-color: var(--line-strong); }
.btn-soft { background: var(--surface-3); color: var(--ink-2); }
.btn-soft:hover { background: #e9e4da; }
.btn-danger { border-color: #eccfc9; background: #fff8f6; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { height: 31px; padding: 0 10px; border-radius: 7px; font-size: 11px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 250, .64);
  color: var(--ink-2);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.icon-btn:hover { background: #fff; border-color: var(--line-strong); }
.icon-btn.spinning .icon { animation: spin .8s linear infinite; }
.icon-btn .icon { width: 16px; height: 16px; }

.text-btn { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 4px 2px; }
.text-btn:hover { color: var(--accent); }

.link { color: var(--accent-dark); font-weight: 600; }
.link:hover { text-decoration: underline; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 21px 0; }
.panel-head h2 { font-size: 15px; font-weight: 700; letter-spacing: .1px; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.panel-head .head-action { margin-top: -3px; }
.panel-body { padding: 15px 21px 20px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--surface-3);
  color: #756b5c;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .15px;
  white-space: nowrap;
}
.tag.accent { background: var(--accent-soft); color: #b04626; }
.tag.teal { background: var(--teal-soft); color: #1c655c; }
.tag.blue { background: var(--blue-soft); color: #386699; }
.tag.amber { background: var(--amber-soft); color: #91671d; }
.tag.ghost { border: 1px solid var(--line); background: transparent; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.pill .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill.normal { background: var(--teal-soft); color: #1c665c; }
.pill.soon { background: var(--amber-soft); color: #93651a; }
.pill.urgent { background: var(--red-soft); color: var(--red); }
.pill.overdue { background: var(--red); color: #fff; }
.pill.muted { background: var(--surface-3); color: var(--muted); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .9; }
.status-evaluating { background: #f4ecdd; color: #82642d; }
.status-preparing { background: var(--blue-soft); color: #346599; }
.status-submitted { background: #edecf7; color: #5d5b8d; }
.status-opened { background: #f6eee1; color: #805f2e; }
.status-won { background: var(--teal-soft); color: var(--teal); }
.status-lost { background: var(--red-soft); color: #975b55; }
.status-abandoned { background: #eeefef; color: #73777e; }
.status-new { background: var(--accent-soft); color: #b24727; }
.status-followed { background: var(--teal-soft); color: var(--teal); }
.status-ignored { background: #eeefef; color: #7e8187; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.empty h3 { margin: 14px 0 5px; color: var(--ink-2); font-size: 14px; }
.empty p { max-width: 390px; font-size: 11.5px; line-height: 1.7; }
.empty .btn { margin-top: 16px; }
.empty-art { position: relative; width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); }
.empty-art::before, .empty-art::after { content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid var(--line-strong); border-radius: 50%; transform: translate(-50%, -50%); }
.empty-art::before { width: 44px; height: 44px; }
.empty-art::after { width: 20px; height: 20px; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }

/* =========================================================
   概览
   ========================================================= */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr);
  gap: 26px;
  align-items: stretch;
  padding: 29px 31px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 26%, rgba(227, 93, 53, .22), transparent 34%),
    radial-gradient(circle at 6% 106%, rgba(58, 111, 174, .17), transparent 32%),
    linear-gradient(128deg, #172238 0%, #101a2a 64%, #172133 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(18, 25, 38, .14);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .24) .55px, transparent .55px);
  background-size: 18px 18px;
  opacity: .13;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -55px;
  bottom: -104px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .025), 0 0 0 52px rgba(255, 255, 255, .018);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-bottom: 13px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  color: rgba(224, 233, 245, .66);
  font-size: 9.5px;
  letter-spacing: .5px;
}
.hero-kicker .dot { width: 5px; height: 5px; border-radius: 50%; background: #f1a17e; box-shadow: 0 0 8px #f1a17e; }
.hero h2 { max-width: 620px; font-size: clamp(25px, 2.3vw, 35px); line-height: 1.3; letter-spacing: .5px; font-weight: 700; }
.hero h2 em { color: #f3a384; font-style: normal; }
.hero-desc { max-width: 570px; margin-top: 10px; color: rgba(214, 225, 240, .58); font-size: 11.5px; line-height: 1.65; }
.hero-actions { display: flex; gap: 9px; margin-top: 22px; }
.hero-actions .btn { height: 36px; font-size: 11px; }
.btn-on-dark { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #f0f4fa; }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); }
.btn-accent { border-color: #e66a43; background: #e66a43; color: #fff; }
.btn-accent:hover { background: #d05731; border-color: #d05731; }

.hero-focus {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(6px);
}
.hero-focus-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-focus-head span { color: rgba(221, 231, 244, .53); font-size: 9.5px; letter-spacing: 1px; }
.hero-focus-head .pill { background: rgba(255, 255, 255, .09); color: #f4b499; height: 20px; font-size: 9px; }
.hero-count { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 2px; }
.hero-count strong { font-family: var(--num); font-size: 43px; line-height: 1; letter-spacing: -1px; font-weight: 600; color: #fff; }
.hero-count span { color: rgba(218, 229, 244, .55); font-size: 10px; }
.hero-focus h3 { margin: 3px 0 4px; color: rgba(245, 248, 253, .94); font-size: 12.5px; line-height: 1.5; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-focus p { color: rgba(203, 216, 234, .46); font-size: 9.5px; }
.hero-focus .mini-line { height: 2px; margin-top: 13px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hero-focus .mini-line i { display: block; height: 100%; background: linear-gradient(90deg, #ee8b62, #f4b08f); border-radius: inherit; }
.hero-empty { display: flex; flex-direction: column; justify-content: center; min-height: 150px; }
.hero-empty strong { color: #fff; font-size: 17px; }
.hero-empty p { margin-top: 6px; color: rgba(210, 222, 238, .48); font-size: 10.5px; line-height: 1.6; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 124px;
  padding: 16px 17px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--stat-soft, var(--surface-3));
  opacity: .55;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: 10.5px; letter-spacing: .2px; }
.stat-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--stat-soft, var(--surface-3)); color: var(--stat-color, var(--ink-2)); }
.stat-icon .icon { width: 15px; height: 15px; }
.stat-value { position: relative; z-index: 1; margin-top: 8px; font-family: var(--num); font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -.6px; color: var(--ink); }
.stat-value small { margin-left: 3px; color: var(--muted); font-family: var(--font); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.stat-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 9.5px; }
.stat-foot .up { color: var(--accent); font-weight: 700; }
.stat-foot .warn { color: var(--red); font-weight: 600; }
.stat-card:nth-child(1) { --stat-color: #b44b2c; --stat-soft: #fbe9e1; }
.stat-card:nth-child(2) { --stat-color: #286e63; --stat-soft: #e2f1ed; }
.stat-card:nth-child(3) { --stat-color: #98681d; --stat-soft: #f8eed8; }
.stat-card:nth-child(4) { --stat-color: #426a9c; --stat-soft: #e9f0f9; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; margin-top: 16px; }
.dash-grid.equal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.deadline-list { padding: 5px 21px 12px; }
.deadline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 2px;
  border-bottom: 1px solid #f0ece4;
  cursor: pointer;
  transition: background .18s ease, padding .18s ease;
}
.deadline-item:last-child { border-bottom: 0; }
.deadline-item:hover { padding-left: 5px; padding-right: 5px; background: #fcfaf6; }
.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 51px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  line-height: 1;
}
.date-tile strong { font-family: var(--num); font-size: 20px; font-weight: 600; color: var(--ink); }
.date-tile span { margin-top: 4px; color: var(--muted); font-size: 8.5px; letter-spacing: .3px; }
.date-tile.urgent { border-color: #efc8bf; background: #fdf0ec; }
.date-tile.urgent strong { color: var(--red); }
.date-tile.overdue { border-color: var(--red); background: var(--red); }
.date-tile.overdue strong, .date-tile.overdue span { color: #fff; }
.deadline-info { min-width: 0; flex: 1; }
.deadline-line { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.deadline-line .kind { color: var(--accent-dark); font-size: 9px; font-weight: 700; letter-spacing: .45px; }
.deadline-info h4 { overflow: hidden; color: var(--ink); font-size: 12.5px; line-height: 1.45; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.deadline-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 9.5px; }
.deadline-meta .sep { color: #c9c3b9; }
.deadline-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.deadline-side .icon { width: 13px; height: 13px; color: #b9b1a4; }
.mini-owner { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }

.notice-mini-list { padding: 3px 21px 10px; }
.notice-mini { padding: 13px 1px; border-bottom: 1px solid #f0ece4; cursor: pointer; transition: opacity .18s ease, padding .18s ease; }
.notice-mini:last-child { border-bottom: 0; }
.notice-mini:hover { opacity: .82; padding-left: 4px; }
.notice-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.notice-mini-top time { color: var(--muted-2); font-family: var(--num); font-size: 9px; letter-spacing: .3px; }
.notice-mini h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: 11.5px; line-height: 1.55; font-weight: 600; }
.notice-mini-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.notice-mini-meta .sep { color: #cec6b9; }
.keyword-row { display: flex; flex-wrap: wrap; gap: 4px; }

.pipeline-body { padding: 17px 21px 19px; }
.pipeline-bar { display: flex; height: 9px; gap: 3px; margin: 10px 0 18px; border-radius: 9px; overflow: hidden; background: var(--surface-3); }
.pipeline-bar span { display: block; min-width: 3px; height: 100%; border-radius: 2px; transition: width .5s ease; }
.pipeline-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 13px; }
.legend-item { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 10px; }
.legend-item i { width: 6px; height: 6px; border-radius: 2px; background: var(--c, var(--line)); flex: 0 0 auto; }
.legend-item strong { margin-left: auto; color: var(--ink-2); font-family: var(--num); font-size: 11px; font-weight: 600; }

.week-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 130px; padding: 8px 4px 0; }
.week-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; height: 100%; gap: 6px; }
.week-bar-wrap { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 84px; }
.week-bar { width: 18px; min-height: 4px; border-radius: 4px 4px 2px 2px; background: #e4ddd1; transition: height .45s cubic-bezier(.2, .7, .3, 1); }
.week-col.today .week-bar { background: linear-gradient(180deg, #ef8c65, var(--accent)); box-shadow: 0 4px 9px rgba(227, 93, 53, .19); }
.week-col.has-load .week-bar { background: linear-gradient(180deg, #7fa99f, var(--teal)); }
.week-col.today.has-load .week-bar { background: linear-gradient(180deg, #ef8c65, var(--accent)); }
.week-day { color: var(--muted); font-size: 8.5px; }
.week-col.today .week-day { color: var(--accent-dark); font-weight: 700; }
.week-count { color: var(--muted-2); font-family: var(--num); font-size: 8.5px; }
.week-col.today .week-count { color: var(--accent); font-weight: 700; }

.insight-strip { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 250, .64); }
.insight-strip .insight-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); }
.insight-strip .insight-icon .icon { width: 14px; height: 14px; }
.insight-strip p { flex: 1; color: var(--ink-2); font-size: 10.5px; }
.insight-strip p strong { color: var(--ink); }
.insight-strip .text-btn { color: var(--accent-dark); font-weight: 600; }

/* =========================================================
   标讯雷达
   ========================================================= */

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.page-intro h2 { font-size: 17px; font-weight: 700; letter-spacing: .1px; }
.page-intro p { margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.page-intro .intro-actions { display: flex; gap: 8px; }

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 250, .66);
}
.segmented button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.segmented button:hover { color: var(--ink-2); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(20, 26, 36, .08); font-weight: 600; }
.segmented button em { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-style: normal; font-family: var(--num); font-size: 8.5px; line-height: 16px; text-align: center; }
.segmented button.active em { background: var(--accent-soft); color: var(--accent-dark); }

.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.filter-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 220px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.filter-search .icon { width: 14px; height: 14px; color: var(--muted); }
.filter-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10.5px; }
.filter-select {
  height: 35px;
  padding: 0 29px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c818c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--ink-2);
  font-size: 10.5px;
  outline: 0;
  appearance: none;
}
.filter-select:focus { border-color: #cbbfae; box-shadow: 0 0 0 3px rgba(227, 93, 53, .06); }

.notice-list { display: flex; flex-direction: column; gap: 9px; }
.notice-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.notice-row:hover { border-color: #d3c8b8; box-shadow: 0 7px 22px rgba(26, 31, 41, .06); transform: translateY(-1px); }
.notice-row.unread::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.notice-row.is-ignored { opacity: .62; }
.notice-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 52px; border-right: 1px solid #eee9df; }
.notice-date strong { color: var(--ink); font-family: var(--num); font-size: 19px; line-height: 1; font-weight: 600; }
.notice-date span { margin-top: 5px; color: var(--muted-2); font-size: 8.5px; letter-spacing: .3px; }
.notice-content { min-width: 0; }
.notice-title-line { display: flex; align-items: flex-start; gap: 8px; }
.notice-title-line h3 { min-width: 0; flex: 1; color: var(--ink); font-size: 12.5px; line-height: 1.55; font-weight: 600; }
.notice-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 5px; color: var(--muted); font-size: 9.5px; }
.notice-sub .sep { color: #cec7bb; }
.notice-summary { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; color: #8a877f; font-size: 10px; line-height: 1.55; }
.notice-keywords { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.notice-actions-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 116px; }
.notice-action-row { display: flex; gap: 6px; }
.notice-open-link { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 9px; }
.notice-open-link:hover { color: var(--accent-dark); }
.notice-open-link .icon { width: 11px; height: 11px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 17px; }
.pagination button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
}
.pagination button:hover { border-color: var(--line-strong); color: var(--ink); }
.pagination button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .page-info { margin-left: 7px; color: var(--muted-2); font-size: 9.5px; }

/* =========================================================
   项目台账
   ========================================================= */

.projects-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 17px; }
.mini-stat { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 253, 250, .7); }
.mini-stat .mini-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--mini-soft, var(--surface-3)); color: var(--mini-color, var(--ink-2)); }
.mini-stat .mini-icon .icon { width: 14px; height: 14px; }
.mini-stat div { display: flex; flex-direction: column; line-height: 1.3; }
.mini-stat strong { font-family: var(--num); font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.mini-stat span { color: var(--muted); font-size: 9.5px; }

.table-panel { overflow: hidden; }
.project-table-wrap { overflow-x: auto; }
.project-table { width: 100%; min-width: 840px; border-collapse: collapse; }
.project-table th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: #fbf9f4;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  text-align: left;
  white-space: nowrap;
}
.project-table td { padding: 13px; border-bottom: 1px solid #f1ece3; vertical-align: middle; }
.project-table tbody tr { cursor: pointer; transition: background .16s ease; }
.project-table tbody tr:hover { background: #fcfaf6; }
.project-table tbody tr:last-child td { border-bottom: 0; }
.proj-cell { display: flex; align-items: flex-start; gap: 9px; min-width: 250px; }
.proj-main { min-width: 0; }
.proj-main h4 { overflow: hidden; max-width: 390px; color: var(--ink); font-size: 11.5px; line-height: 1.5; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.proj-main p { overflow: hidden; max-width: 360px; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.priority-dot { width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: #c8bfb1; flex: 0 0 auto; }
.priority-dot.high { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.priority-dot.low { background: #b9c5c0; }
.cell-main { color: var(--ink-2); font-size: 10px; }
.cell-sub { margin-top: 3px; color: var(--muted-2); font-size: 8.5px; }
.cell-days { font-family: var(--num); font-size: 11px; font-weight: 600; white-space: nowrap; }
.cell-days.overdue { color: var(--red); }
.cell-days.soon { color: var(--amber); }
.cell-days.normal { color: var(--teal); }
.cell-days.muted { color: var(--muted-2); font-weight: 400; }
.row-action { border: 0; background: transparent; color: var(--muted-2); padding: 4px; border-radius: 5px; }
.row-action:hover { background: var(--surface-3); color: var(--ink); }
.row-action .icon { width: 14px; height: 14px; }
.owner-cell { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 10px; }
.owner-pin { width: 5px; height: 5px; border-radius: 50%; background: #6fa89b; box-shadow: 0 0 0 3px #e8f2ee; flex: 0 0 auto; }
.avatar { display: flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%; background: var(--surface-3); color: #766d60; font-size: 8px; font-weight: 700; }
.owner-empty { color: var(--muted-2); font-size: 9.5px; }

/* =========================================================
   提醒中心
   ========================================================= */

.alert-hero { position: relative; display: flex; align-items: center; gap: 17px; margin-bottom: 17px; padding: 20px 22px; border-radius: 15px; background: linear-gradient(118deg, #172238, #101a2b); color: #fff; overflow: hidden; }
.alert-hero::after { content: ""; position: absolute; right: -32px; top: -62px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 93, 53, .28), transparent 68%); pointer-events: none; }
.alert-hero-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(227, 93, 53, .18); border: 1px solid rgba(244, 161, 128, .2); color: #f3a384; }
.alert-hero-icon .icon { width: 21px; height: 21px; }
.alert-hero-copy { flex: 1; }
.alert-hero-copy h2 { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.alert-hero-copy p { margin-top: 4px; color: rgba(211, 223, 240, .52); font-size: 10.5px; }
.alert-hero .btn { position: relative; z-index: 1; }

.alert-group { margin-bottom: 17px; }
.alert-group-title { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .4px; }
.alert-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.alert-card::before { content: ""; position: absolute; left: -1px; top: 13px; bottom: 13px; width: 3px; border-radius: 0 3px 3px 0; background: #c9c1b4; }
.alert-card.level-urgent::before { background: var(--red); }
.alert-card.level-warning::before { background: var(--amber); }
.alert-card.level-info::before { background: var(--teal); }
.alert-card.is-read { opacity: .65; box-shadow: none; }
.alert-card-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); color: var(--muted); }
.alert-card.level-urgent .alert-card-icon { background: var(--red-soft); color: var(--red); }
.alert-card.level-warning .alert-card-icon { background: var(--amber-soft); color: var(--amber); }
.alert-card.level-info .alert-card-icon { background: var(--teal-soft); color: var(--teal); }
.alert-card-icon .icon { width: 14px; height: 14px; }
.alert-card-body { flex: 1; min-width: 0; }
.alert-card-meta { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 9px; }
.alert-card-meta .unread-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.alert-card-body h3 { margin-top: 4px; color: var(--ink); font-size: 12px; line-height: 1.5; font-weight: 600; }
.alert-card-body p { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.alert-card-actions { display: flex; align-items: center; gap: 6px; }

/* =========================================================
   设置
   ========================================================= */

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.settings-card { padding: 21px 22px; }
.settings-card .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.settings-card .card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.settings-card .card-head h2 .icon { width: 16px; height: 16px; color: var(--accent); }
.settings-card .card-head p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.settings-card.full { grid-column: 1 / -1; }

.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--ink-2); font-size: 10.5px; font-weight: 600; }
.field label .hint { color: var(--muted-2); font-size: 9px; font-weight: 400; }
.input, .select, .textarea {
  width: 100%;
  min-height: 37px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  font-size: 11px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: #cbbfae; background: #fff; box-shadow: 0 0 0 3px rgba(227, 93, 53, .065); }
.input::placeholder, .textarea::placeholder { color: #b0aaa0; }
.textarea { min-height: 76px; resize: vertical; line-height: 1.65; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c818c' 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; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

.chip-editor { display: flex; flex-wrap: wrap; gap: 6px; min-height: 38px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 6px 0 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 500;
}
.chip.accent { background: var(--accent-soft); color: #a74626; }
.chip button { display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .05); color: inherit; padding: 0; }
.chip button:hover { background: rgba(0, 0, 0, .11); }
.chip button .icon { width: 9px; height: 9px; }
.chip-input { flex: 1; min-width: 105px; height: 25px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.chip-input::placeholder { color: #b1aba0; }

.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f0ebe2; }
.switch-row:last-child { border-bottom: 0; }
.source-toggle-list { margin-top: 4px; border-top: 1px solid #f0ebe2; }
.source-toggle { padding: 9px 0; }
.source-toggle .switch-copy strong { font-size: 10.5px; }
.source-toggle .switch-copy span { font-size: 9px; }
.switch-copy strong { display: block; color: var(--ink-2); font-size: 11px; font-weight: 600; }
.switch-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 36px; height: 20px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: #d8d1c5; transition: background .2s ease; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: transform .2s ease; }
.switch input:checked + i { background: var(--teal); }
.switch input:checked + i::after { transform: translateX(16px); }

.reminder-days { display: flex; gap: 6px; flex-wrap: wrap; }
.day-check { position: relative; }
.day-check input { position: absolute; opacity: 0; }
.day-check span { display: flex; align-items: center; justify-content: center; width: 38px; height: 31px; border: 1px solid var(--line); border-radius: 7px; background: #fffefa; color: var(--muted); font-family: var(--num); font-size: 11px; cursor: pointer; transition: all .16s ease; }
.day-check input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.day-check span:hover { border-color: var(--line-strong); }

.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 250, .65); }
.settings-foot p { color: var(--muted); font-size: 9.5px; }
.settings-foot .actions { display: flex; gap: 8px; }

.data-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.user-list { display: flex; flex-direction: column; border-top: 1px solid #f0ebe2; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid #f0ebe2; }
.user-row:last-child { border-bottom: 0; }
.user-row-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.user-row-main .avatar { background: var(--accent-soft); color: var(--accent-dark); }
.user-row-main > div { display: flex; flex-direction: column; min-width: 0; }
.user-row-main strong { color: var(--ink-2); font-size: 11px; font-weight: 600; }
.user-row-main span:last-child { margin-top: 2px; color: var(--muted); font-size: 9px; }
.user-row-actions { display: flex; gap: 6px; }
.login-log-list { border-top: 1px solid #f0ebe2; }
.login-log-head, .login-log-row { display: grid; grid-template-columns: 1.1fr .8fr .55fr .45fr 1.8fr; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #f0ebe2; font-size: 9.5px; }
.login-log-head { color: var(--muted-2); font-size: 8.5px; letter-spacing: .3px; background: #fbf9f4; }
.login-log-row { color: var(--ink-2); }
.login-log-row:last-child { border-bottom: 0; }
.login-log-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-result { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-style: normal; font-size: 8.5px; }
.login-result.ok { background: var(--teal-soft); color: var(--teal); }
.login-result.fail { background: var(--red-soft); color: var(--red); }
@media (max-width: 720px) {
  .login-log-head { display: none; }
  .login-log-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 2px; }
  .login-log-row span:nth-child(1) { grid-column: 1; color: var(--muted); font-size: 8.5px; }
  .login-log-row span:nth-child(4) { grid-column: 2; grid-row: 1; }
  .login-log-row span:nth-child(2) { grid-column: 1; font-weight: 600; }
  .login-log-row span:nth-child(3) { grid-column: 2; text-align: right; color: var(--muted); }
  .login-log-row span:nth-child(5) { grid-column: 1 / -1; color: var(--muted); font-size: 8.5px; }
}
@media (max-width: 640px) {
  .user-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .user-row-actions { width: 100%; }
  .user-row-actions .btn { flex: 1; }
}
.data-path { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--muted); font-family: var(--num); font-size: 9px; word-break: break-all; }
.data-path .icon { width: 13px; height: 13px; flex: 0 0 auto; }
.note-box { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #eadfc9; border-radius: 8px; background: #fbf5e9; color: #7e6b45; font-size: 9.5px; line-height: 1.6; }
.note-box .icon { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: #a58038; }

/* =========================================================
   抽屉 / 弹窗
   ========================================================= */

.drawer-overlay, .modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(17, 24, 36, .42); backdrop-filter: blur(2px); opacity: 0; transition: opacity .24s ease; }
.drawer-overlay.open, .modal-overlay.open { opacity: 1; }

.drawer {
  position: fixed;
  z-index: 55;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(590px, 94vw);
  background: #fbf9f4;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2, .75, .3, 1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); background: rgba(251, 249, 244, .92); backdrop-filter: blur(10px); }
.drawer-head-main { flex: 1; min-width: 0; }
.drawer-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 9px; letter-spacing: .4px; }
.drawer-head h2 { color: var(--ink); font-size: 17px; line-height: 1.5; font-weight: 700; letter-spacing: .1px; }
.drawer-head-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: 9.5px; }
.drawer-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.drawer-close:hover { color: var(--ink); border-color: var(--line-strong); }
.drawer-close .icon { width: 14px; height: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 17px 22px 28px; }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line); background: rgba(251, 249, 244, .96); }

.focus-card { position: relative; margin-bottom: 15px; padding: 16px 17px; border-radius: 12px; background: linear-gradient(125deg, #172238, #101a2b); color: #fff; overflow: hidden; }
.focus-card::after { content: ""; position: absolute; right: -24px; top: -36px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 93, 53, .24), transparent 68%); }
.focus-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.focus-card-top span { color: rgba(210, 222, 238, .5); font-size: 9px; letter-spacing: .6px; }
.focus-card-main { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.focus-days { display: flex; align-items: baseline; gap: 5px; }
.focus-days strong { font-family: var(--num); font-size: 35px; line-height: 1; font-weight: 600; letter-spacing: -1px; }
.focus-days span { color: rgba(214, 226, 242, .5); font-size: 9.5px; }
.focus-card h3 { margin-top: 6px; color: rgba(245, 249, 255, .92); font-size: 12px; font-weight: 600; }
.focus-card p { margin-top: 3px; color: rgba(203, 216, 234, .44); font-size: 9px; }
.focus-date { color: rgba(244, 181, 154, .85); font-family: var(--num); font-size: 10px; }

.drawer-section { margin-bottom: 17px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.drawer-section:last-child { margin-bottom: 0; }
.drawer-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.drawer-section-head h3 { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.drawer-section-head h3 .icon { width: 14px; height: 14px; color: var(--muted); }
.drawer-section-head .hint { color: var(--muted-2); font-size: 9px; }
.drawer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-form .span-2 { grid-column: 1 / -1; }
.drawer-form .field { margin: 0; }
.drawer-form .field label { font-size: 9.5px; }
.drawer-form .input, .drawer-form .select, .drawer-form .textarea { font-size: 10.5px; min-height: 34px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.meta-item { min-width: 0; }
.meta-item span { display: block; color: var(--muted-2); font-size: 8.5px; letter-spacing: .3px; }
.meta-item strong { display: block; margin-top: 2px; overflow: hidden; color: var(--ink-2); font-size: 10.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.meta-item a { color: var(--accent-dark); font-size: 10px; }

.milestone-list { display: flex; flex-direction: column; gap: 2px; }
.milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 3px;
  border-bottom: 1px solid #f1ece3;
}
.milestone:last-child { border-bottom: 0; }
.ms-check { position: relative; flex: 0 0 auto; }
.ms-check input { position: absolute; opacity: 0; }
.ms-check span { display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1.5px solid #d6cec1; border-radius: 5px; background: #fff; color: transparent; cursor: pointer; transition: all .16s ease; }
.ms-check input:checked + span { border-color: var(--teal); background: var(--teal); color: #fff; }
.ms-check span .icon { width: 10px; height: 10px; stroke-width: 2.6; }
.ms-main { flex: 1; min-width: 0; }
.ms-main strong { display: block; color: var(--ink-2); font-size: 10.5px; font-weight: 600; }
.ms-main span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.ms-main span.overdue { color: var(--red); }
.ms-main span.urgent { color: var(--accent-dark); }
.ms-done .ms-main strong { color: var(--muted-2); text-decoration: line-through; }
.ms-actions { display: flex; gap: 2px; }
.ms-actions button { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-2); }
.ms-actions button:hover { background: var(--surface-3); color: var(--ink); }
.ms-actions button .icon { width: 12px; height: 12px; }
.add-ms-btn { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 33px; margin-top: 7px; border: 1px dashed var(--line-strong); border-radius: 7px; background: transparent; color: var(--muted); font-size: 9.5px; }
.add-ms-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: #fffaf7; }
.add-ms-btn .icon { width: 12px; height: 12px; }

.danger-link { border: 0; background: none; color: var(--red); font-size: 9.5px; padding: 4px; }
.danger-link:hover { text-decoration: underline; }

.modal {
  position: fixed;
  z-index: 55;
  left: 50%;
  top: 50%;
  width: min(690px, 93vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -47%) scale(.985);
  opacity: 0;
  transition: transform .24s cubic-bezier(.2, .75, .3, 1), opacity .2s ease;
}
.modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head-main { flex: 1; min-width: 0; }
.modal-kicker { margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: .45px; }
.modal-head h2 { color: var(--ink); font-size: 17px; line-height: 1.45; font-weight: 700; }
.modal-head .drawer-close { margin-top: 1px; }
.modal-body { flex: 1; overflow-y: auto; padding: 17px 22px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--line); background: #fcfaf6; border-radius: 0 0 16px 16px; }
.modal-foot .left { margin-right: auto; display: flex; gap: 8px; }

.notice-detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 18px; padding: 13px 14px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.notice-detail-summary { padding: 13px 14px; border-left: 2px solid var(--accent); background: #fdf8f4; color: var(--ink-2); font-size: 10.5px; line-height: 1.75; border-radius: 0 8px 8px 0; }
.notice-detail-content { max-height: 250px; overflow-y: auto; margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fffdfa; color: #5e5e5b; font-size: 10px; line-height: 1.9; white-space: pre-line; }

.form-help { margin-top: 5px; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.form-error { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--red-soft); color: var(--red); font-size: 10px; }

/* =========================================================
   Toast / 全局采集条
   ========================================================= */

.toast-stack { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 44px)); }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: #172033;
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: toastIn .28s cubic-bezier(.2, .75, .3, 1) both;
}
.toast.out { animation: toastOut .22s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(7px); } }
.toast-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(92, 198, 167, .13); color: #6fd1b4; flex: 0 0 auto; }
.toast.error .toast-icon { background: rgba(229, 120, 102, .14); color: #f29a89; }
.toast-icon .icon { width: 12px; height: 12px; }
.toast-body { flex: 1; min-width: 0; }
.toast-body strong { display: block; font-size: 10.5px; line-height: 1.5; font-weight: 600; }
.toast-body p { margin-top: 2px; color: rgba(219, 228, 241, .58); font-size: 9.5px; line-height: 1.55; }
.toast-close { border: 0; background: none; color: rgba(255, 255, 255, .38); padding: 1px; }
.toast-close .icon { width: 11px; height: 11px; }

.crawl-banner {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 330px;
  max-width: 520px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: rgba(19, 29, 45, .94);
  color: #fff;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  animation: rise .25s ease both;
}
.crawl-banner .spinner { width: 14px; height: 14px; border: 1.5px solid rgba(255, 255, 255, .22); border-top-color: #f3a384; border-radius: 50%; animation: spin .7s linear infinite; flex: 0 0 auto; }
.crawl-banner .crawl-copy { flex: 1; min-width: 0; }
.crawl-banner strong { display: block; font-size: 10px; font-weight: 600; }
.crawl-banner p { margin-top: 2px; color: rgba(214, 226, 242, .5); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crawl-banner .crawl-count { font-family: var(--num); font-size: 10px; color: #f3a384; white-space: nowrap; }

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1280px) {
  .view { padding-left: 26px; padding-right: 26px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .top-search { width: 220px; }
  .stat-card { min-height: 116px; }
  .deadline-info h4 { max-width: 370px; }
}

@media (max-width: 1120px) {
  .sidebar { width: 204px; }
  .main { margin-left: 204px; }
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(235px, .8fr); }
  .dash-grid { grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr); }
  .top-search { width: 190px; }
  .today-pill { display: none; }
  .projects-overview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .sidebar { width: 72px; padding: 18px 9px 12px; align-items: center; }
  .brand { padding: 0 0 18px; }
  .brand-text, .workspace-pill, .nav-label, .nav-item span, .nav-badge, .source-card, .sidebar-foot { display: none; }
  .sidebar-user { display: none; }
  .nav { width: 100%; gap: 5px; }
  .nav-item { justify-content: center; padding: 0; height: 43px; }
  .nav-item::before { left: -9px; }
  .main { margin-left: 72px; }
  .top-search { display: none; }
  .topbar { padding: 18px 20px 14px; }
  .view { padding: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-focus { max-width: 380px; }
  .dash-grid, .dash-grid.equal { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card.full { grid-column: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main { margin-left: 0; }
  .sidebar { display: none; }
  .topbar { position: relative; flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar-actions { width: 100%; }
  .topbar-actions .btn { flex: 1; }
  .view { padding: 16px 14px 38px; }
  .hero { padding: 22px 19px; }
  .hero h2 { font-size: 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 13px; min-height: 108px; }
  .stat-value { font-size: 25px; }
  .segmented { overflow-x: auto; max-width: 100%; }
  .toolbar-row { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .filter-search { width: 100%; }
  .notice-row { grid-template-columns: 41px 1fr; padding: 13px; gap: 11px; }
  .notice-date { width: 40px; height: 45px; }
  .notice-actions-col { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
  .projects-overview { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini-stat { padding: 10px; }
  .mini-stat .mini-icon { display: none; }
  .drawer { width: 100vw; }
  .drawer-form, .form-row, .form-row.three, .meta-grid, .notice-detail-meta { grid-template-columns: 1fr; }
  .drawer-form .span-2 { grid-column: auto; }
  .settings-foot { flex-direction: column; align-items: flex-start; }
  .settings-foot .actions { width: 100%; }
  .settings-foot .actions .btn { flex: 1; }
  .alert-hero { align-items: flex-start; flex-wrap: wrap; }
  .alert-hero .btn { margin-left: 61px; }
  .alert-card-actions { flex-direction: column; }
}
