:root {
  --primary: #ff6b2c;
  --primary-hover: #eb5a1d;
  --primary-soft: #fff0e9;
  --primary-faint: #fff8f4;
  --ink: #1d2533;
  --text: #3d4655;
  --muted: #7a8493;
  --subtle: #a1a9b5;
  --line: #e7eaf0;
  --line-dark: #d8dde6;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --success: #13a371;
  --success-soft: #eaf8f2;
  --warning: #e89a21;
  --warning-soft: #fff5df;
  --danger: #e24a5f;
  --danger-soft: #fff0f2;
  --info: #3478f6;
  --info-soft: #edf4ff;
  --data-blue: #3478f6;
  --data-blue-soft: #edf4ff;
  --shadow-sm: 0 4px 14px rgba(25, 34, 50, .06);
  --shadow: 0 18px 46px rgba(25, 34, 50, .14);
  --radius: 9px;
  --sidebar: 244px;
  --topbar: 64px;
}

/* 词条管理页面：仅作用于项目内词条视图，避免改变其他模块的表格与工具栏。 */
.app-shell .queries-page .page-head { margin-bottom: 22px; }
.app-shell .queries-page .page-head h1 { font-size: 25px; font-weight: 780; }
.app-shell .queries-page .page-head p { margin-top: 7px; color: #a1a5ab; font-size: 12px; }
.app-shell .query-status-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; margin-bottom: 25px; padding: 8px 13px 8px 16px; border: 1px solid #f0f1f3; border-radius: 8px; color: #74777d; background: #fff; box-shadow: 0 3px 12px rgba(29, 37, 51, .035); font-size: 12px; }
.app-shell .query-status-group { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.app-shell .query-status-group > span:last-of-type { overflow: hidden; text-overflow: ellipsis; }
.app-shell .query-status-group strong { color: #343941; font-weight: 650; }
.app-shell .query-summary-group .tiny-dot { background: #8bb4ff; }
.app-shell .query-capture-group { justify-content: flex-end; }
.app-shell .query-capture-group .tiny-dot { background: var(--primary); }
.app-shell .query-run-button { min-width: 130px; margin-left: 8px; border-color: var(--primary); color: var(--primary); background: #fff; }
.app-shell .query-run-button:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.app-shell .query-toolbar { align-items: center; margin-bottom: 17px; }
.app-shell .query-create-actions, .app-shell .query-search-actions { gap: 32px; }
.app-shell .query-create-button, .app-shell .query-manual-button { min-height: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.app-shell .query-create-button { min-width: 132px; box-shadow: 0 6px 14px rgba(255, 107, 44, .16); }
.app-shell .query-create-button > span, .app-shell .query-manual-button > span { font-size: 19px; font-weight: 500; line-height: 1; }
.app-shell .query-manual-button { min-width: 157px; border-color: var(--primary); color: var(--primary); background: #fff; }
.app-shell .query-manual-button:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.app-shell .query-search-actions { gap: 9px; }
.app-shell .query-search-field { position: relative; width: min(480px, 38vw); min-width: 310px; background: transparent; box-shadow: none !important; filter: none; }
.app-shell .query-search-field::before { content: "词条内容"; position: absolute; z-index: 1; top: 0; left: 0; display: flex; align-items: center; width: 78px; height: 36px; padding-left: 14px; color: #343941; font-size: 12px; pointer-events: none; }
.app-shell .query-search-field input { width: 100%; min-height: 36px; padding: 7px 43px 7px 101px; border: 1px solid #e5e7eb; border-radius: 8px; color: #3f4650; background: #fff; box-shadow: none !important; filter: none; font-size: 12px; }
.app-shell .query-search-field::after { position: absolute; top: 0; left: 86px; width: 1px; height: 36px; content: ""; background: #e5e7eb; }
.app-shell .query-search-field input::placeholder { color: #a4a8ae; }
.app-shell .query-search-button { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 36px; padding: 0; border: 0; border-radius: 0 8px 8px 0; color: #252a31; background: transparent; cursor: pointer; }
.app-shell .query-search-button:hover, .app-shell .query-search-button:focus-visible { color: var(--primary); background: var(--primary-soft); outline: 0; }
.app-shell .query-search-field input:focus { border-color: #d7dadd; box-shadow: none; outline: 0; }
.app-shell .query-search-button svg { width: 17px; height: 17px; }
.app-shell .query-filter-button { min-height: 36px; height: 36px; padding: 0 13px; border-color: #e5e7eb; border-radius: 8px; color: #343941; background: #fff; box-shadow: none; font-size: 12px; }
.app-shell .query-filter-button:hover, .app-shell .query-filter-button:focus-visible { color: var(--primary); border-color: #ffb08f; background: #fff8f4; box-shadow: none; outline: 0; }
.app-shell .query-filter-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 5px; padding: 0 4px; border-radius: 9px; color: #fff; background: var(--primary); font-size: 10px; line-height: 1; }
.app-shell .query-table-card { border-color: #dcdfe4; border-radius: 8px; box-shadow: 0 5px 18px rgba(29, 37, 51, .04); }
.app-shell .query-table { min-width: 1320px; table-layout: fixed; }
.app-shell .query-table th, .app-shell .query-table td { height: 60px; padding: 10px 12px; font-size: 11px; }
.app-shell .query-table th { height: 49px; color: #343a43; background: #fffaf7; box-shadow: inset 0 -1px 0 #d9d9d9; font-size: 12px; font-weight: 650; }
.app-shell .query-table th:first-child, .app-shell .query-table td:first-child { width: 42px; }
.app-shell .query-table .query-title-head { width: 32%; }
.app-shell .query-table .query-approval-head { width: 7%; }
.app-shell .query-table .query-status-head { width: 7%; }
.app-shell .query-table .query-rate-head { width: 9%; }
.app-shell .query-table .query-target-head { width: 9%; }
.app-shell .query-table .query-first-hit-head { width: 7%; }
.app-shell .query-table .query-cycle-head { width: 9%; }
.app-shell .query-table .query-source-head { width: 7%; }
.app-shell .query-table .query-creator-head { width: 8%; }
.app-shell .query-table .query-action-head { width: 11%; }
.app-shell .query-table tbody tr:hover { background: #fffaf7; box-shadow: inset 3px 0 0 var(--primary); }
.app-shell .query-title-cell .query-link { max-width: 100%; color: #2d6cdf; font-size: 11px; font-weight: 700; }
.app-shell .query-title-cell .query-link:hover { color: #1f64df; }
.app-shell .query-title-cell .helper-text, .app-shell .query-creator-cell .helper-text { margin-top: 4px; color: #a2a7ad; font-size: 10px; }
.app-shell .query-table .tag { min-height: 19px; padding: 1px 8px; border-radius: 5px; font-size: 10px; font-weight: 550; }
.app-shell .query-table .rate-cell { min-width: 98px; }
.app-shell .query-table .rate-row { gap: 5px; }
.app-shell .query-table .rate-track { width: 68px; height: 5px; }
.app-shell .query-table .rate-cell strong { font-size: 10px; font-weight: 550; }
.app-shell .query-table .rate-cell .helper-text { margin-top: 3px; font-size: 9px; }
.app-shell .query-table .target-cell { min-width: 112px; }
.app-shell .query-table .target-copy { margin-bottom: 4px; font-size: 10px; }
.app-shell .query-table .target-copy strong { font-size: 10px; }
.app-shell .query-table .target-progress { width: 100%; height: 5px; }
.app-shell .query-cycle-cell, .app-shell .query-date-cell, .app-shell .query-creator-cell { color: #767d88; font-size: 10px; }
.app-shell .query-source-cell { text-align: center; }
.app-shell .query-actions { width: 142px; text-align: center; white-space: nowrap; }
.app-shell .query-icon-action, .app-shell .query-detail-action { display: inline-flex; align-items: center; justify-content: center; height: 25px; margin: 0 2px; border: 1px solid #ff9f78; border-radius: 5px; color: var(--primary); background: #fff; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; vertical-align: middle; }
.app-shell .query-icon-action { width: 25px; padding: 0; }
.app-shell .query-icon-action svg { width: 14px; height: 14px; }
.app-shell .query-detail-action { min-width: 42px; padding: 0 7px; font-size: 10px; }
.app-shell .query-icon-action:hover, .app-shell .query-icon-action:focus-visible, .app-shell .query-detail-action:hover, .app-shell .query-detail-action:focus-visible { color: #fff; border-color: var(--primary); background: var(--primary); outline: 0; }
.app-shell .query-icon-action:disabled { opacity: .42; cursor: not-allowed; }
.app-shell .query-icon-action:disabled:hover { color: var(--primary); background: #fff; }
.app-shell .query-empty-card { border-radius: 8px; }
.query-filter-dialog { width: min(620px, 94vw); border-radius: 9px; }
.query-filter-dialog .modal-header, .query-filter-dialog .modal-footer { padding: 14px 17px; }
.query-filter-dialog .modal-body { padding: 17px; }
.query-filter-dialog .modal-header h2 { font-size: 16px; }
.query-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.query-filter-field, .query-filter-date-field { display: block; min-width: 0; }
.query-filter-field > span, .query-filter-date-field > span, .query-filter-section-title { display: block; margin-bottom: 6px; color: #4b525b; font-size: 11px; font-weight: 700; }
.query-filter-field select { width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 7px; color: #4b525b; background: #fff; font-size: 12px; }
.query-filter-field select:focus, .query-filter-date-field input:focus { border-color: rgba(255, 107, 44, .68); box-shadow: 0 0 0 3px rgba(255, 107, 44, .1); outline: 0; }
.query-filter-date-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f1f3; }
.query-filter-section-title { grid-column: 1 / -1; margin-bottom: -3px; }
.query-filter-date-field .date-pair { gap: 6px; }
.query-filter-date-field .date-pair span { color: #9da2a9; font-size: 11px; }
.query-filter-date-field input { min-height: 34px; padding: 6px 8px; border-color: #e5e7eb; border-radius: 7px; font-size: 11px; }
@media (max-width: 1000px) { .app-shell .query-create-actions, .app-shell .query-search-actions { gap: 10px; } .app-shell .query-search-field { width: min(410px, 40vw); min-width: 250px; } }
@media (max-width: 760px) { .app-shell .query-status-band { align-items: flex-start; flex-direction: column; gap: 8px; padding: 11px 13px; } .app-shell .query-status-group { width: 100%; white-space: normal; } .app-shell .query-capture-group { justify-content: flex-start; flex-wrap: wrap; } .app-shell .query-run-button { margin-left: 15px; } .app-shell .query-toolbar { align-items: stretch; gap: 13px; } .app-shell .query-create-actions, .app-shell .query-search-actions { width: 100%; } .app-shell .query-create-actions { flex-wrap: wrap; } .app-shell .query-search-actions { align-items: stretch; } .app-shell .query-search-field { width: auto; min-width: 0; flex: 1; } .app-shell .query-filter-button { flex: 0 0 auto; } .query-filter-grid, .query-filter-date-section { grid-template-columns: 1fr; } .query-filter-section-title { grid-column: auto; } }
@media (max-width: 480px) { .app-shell .query-create-button, .app-shell .query-manual-button { flex: 1 1 auto; min-width: 0; } .app-shell .query-search-field input { padding-left: 92px; } .app-shell .query-search-field::after { left: 78px; } .app-shell .query-search-field::before { width: 70px; padding-left: 11px; } .app-shell .query-filter-button { padding-inline: 10px; } }

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font: 14px/1.55 "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(49, 88, 238, .18);
  outline-offset: 1px;
}
a { color: var(--primary); text-decoration: none; }
code { font-family: Consolas, "SFMono-Regular", monospace; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.danger-text { color: var(--danger) !important; }
.success-text { color: var(--success) !important; }
.warning-text { color: var(--warning) !important; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 登录 */
.auth-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0c1630;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(76, 107, 255, .48), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(43, 196, 176, .25), transparent 30%),
    linear-gradient(130deg, #111f44 0%, #0c1530 56%, #101b38 100%);
}
.auth-backdrop::before,
.auth-backdrop::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.auth-backdrop::before { width: 520px; height: 520px; left: -210px; bottom: -210px; }
.auth-backdrop::after { width: 720px; height: 720px; right: -340px; top: -370px; }
.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 70px;
  width: min(1160px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 0;
}
.auth-intro { color: #fff; max-width: 670px; }
.auth-brand, .mobile-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 31px;
  font-weight: 850;
  letter-spacing: -1.5px;
}
.brand-orbit, .mobile-brand span { color: #6c88ff; font-size: 19px; margin-left: 2px; }
.eyebrow {
  margin: 20px 0 12px;
  color: #819cff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2.2px;
}
.auth-intro h1 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 56px); line-height: 1.22; letter-spacing: -1.7px; }
.auth-intro > p:not(.eyebrow) { max-width: 610px; color: #b8c2d9; font-size: 16px; line-height: 1.8; }
.auth-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 38px; }
.auth-feature-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px 19px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
}
.auth-feature-grid strong { color: #f5f7ff; }
.auth-feature-grid span { color: #929eb8; font-size: 12px; }
.auth-card {
  padding: 40px 38px 32px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
}
.auth-card .eyebrow { margin-top: 0; color: var(--primary); }
.auth-card h2 { margin: 0 0 5px; color: var(--ink); font-size: 28px; }
.auth-card .muted { margin: 0 0 27px; }
.auth-card .field-label { margin-top: 17px; }
.auth-submit { width: 100%; height: 46px !important; margin-top: 24px; font-size: 15px; }
.auth-hint { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.mobile-brand { display: none; color: var(--primary); }
.password-field { position: relative; }
.password-field .text-input { padding-right: 50px; }
.password-field .icon-button { position: absolute; right: 6px; top: 5px; }
.form-error { margin: 12px 0 -8px; color: var(--danger); font-size: 13px; }

/* 主框架 */
.app-shell { min-height: 100vh; padding: var(--topbar) 0 0 var(--sidebar); }
.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px 0 34px;
  border-bottom: 1px solid #e7eaf1;
  background: rgba(246, 247, 251, .96);
  backdrop-filter: blur(12px);
}
.brand {
  width: 190px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.brand-word { color: var(--primary); font-size: 28px; font-weight: 850; letter-spacing: -1.4px; }
.brand-mark { color: #26304c; margin-left: 2px; font-size: 17px; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #5c6473;
  font-weight: 650;
}
button.topnav-item { cursor: pointer; }
.topnav-item.active { color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }
.muted-nav { color: #a2a8b4; }
.nav-icon { font-size: 17px; }
.global-search {
  display: flex;
  align-items: center;
  min-width: 290px;
  max-width: 470px;
  height: 39px;
  margin-left: auto;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}
.search-scope { padding: 0 15px; border-right: 1px solid var(--line); color: #606878; white-space: nowrap; }
.global-search select { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; outline: 0; color: #4a5364; background: transparent; }
.search-icon { padding-right: 14px; color: #8a91a0; font-size: 18px; }
.profile-wrap { position: relative; }
.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3158ee, #6c87ff);
  font-size: 15px;
  font-weight: 700;
}
.profile-menu {
  position: absolute;
  z-index: 75;
  top: 48px;
  right: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}
.profile-summary { display: flex; flex-direction: column; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.profile-summary span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.profile-menu button { width: 100%; padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.profile-menu button:hover { background: var(--canvas); }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: var(--topbar) auto 0 0;
  width: var(--sidebar);
  padding: 24px 18px 72px;
  border-right: 1px solid var(--line);
  background: #fff;
  overflow-y: auto;
}
.project-name {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 10px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #535d70;
  background: transparent;
  text-align: left;
  font-weight: 620;
  cursor: pointer;
}
.side-item:hover { color: var(--primary); background: #f6f8ff; }
.side-item.active { color: var(--primary); background: var(--primary-soft); }
.side-icon { width: 20px; color: #88909f; font-size: 17px; text-align: center; }
.side-item.active .side-icon { color: var(--primary); }
.mobile-admin-more { display: none; }
.side-label { padding: 14px 12px 6px; color: var(--subtle); font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.side-divider { height: 1px; margin: 12px 8px 0; background: var(--line); }
.core-state {
  position: fixed;
  z-index: 41;
  left: 28px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  color: var(--muted);
  font-size: 12px;
}
.state-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #afb5c0; }
.core-state.connected .state-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(18,169,119,.12); }
.core-state.warning .state-dot { background: var(--warning); box-shadow: 0 0 0 4px rgba(233,154,22,.12); }
.content { min-height: calc(100vh - var(--topbar)); padding: 28px 30px 46px; background: var(--canvas); }

/* 通用页面 */
.page-loading, .loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  color: var(--muted);
}
.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #d9dff1;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.5px; }
.page-head p { margin: 5px 0 0; color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.section-title { margin: 0 0 14px; color: var(--ink); font-size: 17px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(21,31,58,.02);
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; color: var(--ink); font-size: 16px; }
.card-body { padding: 20px; }
.soft-panel { padding: 14px 16px; border: 1px solid #dfe5ff; border-radius: 9px; color: #475474; background: var(--primary-faint); }
.info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
  margin-bottom: 16px;
  padding: 9px 14px;
  border: 1px solid #dfe4f5;
  border-radius: 9px;
  color: #4a5368;
  background: #fff;
}
.info-banner strong { color: var(--ink); }
.info-banner .state-copy { display: flex; align-items: center; gap: 9px; }
.tiny-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.button-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.primary-button, .secondary-button, .danger-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 650;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .08s;
}
.primary-button { border: 1px solid var(--primary); color: #fff; background: var(--primary); }
.primary-button:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.secondary-button { border: 1px solid var(--line-dark); color: #485163; background: #fff; }
.secondary-button:hover { color: var(--primary); border-color: #aebbf5; background: #fafbff; }
.danger-button { border: 1px solid var(--danger); color: #fff; background: var(--danger); }
.danger-button:hover { background: #d83a54; }
.ghost-button { border: 1px solid transparent; color: var(--primary); background: transparent; }
.ghost-button:hover { background: var(--primary-soft); }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled, .ghost-button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}
.small-button { min-height: 30px; padding: 0 10px; font-size: 12px; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { color: var(--primary); background: var(--primary-soft); }
.text-button, .action-link {
  padding: 2px 4px;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
}
.text-button:hover, .action-link:hover { text-decoration: underline; }
.action-link.danger { color: var(--danger); }
.answer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.answer-link.hit { color: #087658; background: var(--success-soft); }
.answer-link.partial { color: #855500; background: var(--warning-soft); }
.answer-link.disabled {
  color: #5f6878;
  background: #f0f2f6;
  cursor: not-allowed;
  user-select: none;
}
.answer-link.disabled:hover { text-decoration: none; }

/* 表单与工具条 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.toolbar-left, .toolbar-right, .filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.toolbar-right { margin-left: auto; justify-content: flex-end; }
.text-input, .select-input, .textarea-input, .filters input, .filters select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.text-input:focus, .select-input:focus, .textarea-input:focus, .filters input:focus, .filters select:focus {
  border-color: #8ba0fb;
  box-shadow: 0 0 0 3px rgba(49,88,238,.08);
}
.text-input.large { min-height: 44px; padding: 10px 12px; }
.textarea-input { min-height: 104px; resize: vertical; }
.create-textarea { min-height: 250px; font-family: "Microsoft YaHei", sans-serif; line-height: 1.7; }
.filters input { width: 220px; }
.filters select { width: auto; min-width: 126px; }
.search-field { position: relative; }
.search-field input { padding-left: 34px; }
.search-field::before { position: absolute; z-index: 1; left: 12px; top: 8px; content: "⌕"; color: #8b93a2; }
.field-label { display: block; margin: 0 0 6px; color: #424b5c; font-weight: 650; }
.required::after { content: " *"; color: var(--danger); }
.field-note, .helper-text { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.project-grant-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; max-height: 240px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.form-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section h3 { margin: 0 0 13px; color: var(--ink); font-size: 14px; }
.check-label, .radio-label { display: inline-flex; align-items: center; gap: 7px; color: #515a6a; cursor: pointer; }
.check-label input, .radio-label input { accent-color: var(--primary); }
.check-stack { display: flex; flex-direction: column; gap: 10px; }
.switch-label { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 38px; height: 21px; border-radius: 12px; background: #c9ced8; transition: .2s; }
.switch-track::after { position: absolute; content: ""; width: 17px; height: 17px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: .2s; }
.switch-label input:checked + .switch-track { background: var(--primary); }
.switch-label input:checked + .switch-track::after { transform: translateX(17px); }
.field-with-toggle { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; }
.field-with-toggle > input[type="checkbox"] { margin-top: 11px; accent-color: var(--primary); }
.field-with-toggle.disabled .field-content { opacity: .45; pointer-events: none; }
.date-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.date-pair span { color: var(--subtle); }
.field-inline { display: flex; align-items: center; gap: 9px; }
.field-inline > * { flex: 1; }

/* 项目 */
.project-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-tile { padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat-tile span { display: block; color: var(--muted); font-size: 12px; }
.stat-tile strong { display: block; margin-top: 6px; color: var(--ink); font-size: 25px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 15px; }
.project-card {
  position: relative;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(25,36,68,.03);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.project-card:hover { transform: translateY(-2px); border-color: #cdd6fb; box-shadow: var(--shadow-sm); }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-card h3 { margin: 0; color: var(--ink); font-size: 16px; }
.project-card p { height: 44px; margin: 11px 0 17px; overflow: hidden; color: var(--muted); font-size: 13px; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; color: #657084; font-size: 12px; }
.project-meta strong { color: #40495b; font-weight: 650; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.project-counts { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.status-pill, .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 13px;
  color: #657083;
  background: #f0f2f6;
  font-size: 12px;
  white-space: nowrap;
}
.status-pill.processing, .tag.info { color: var(--info); background: var(--info-soft); }
.status-pill.completed, .tag.hit, .tag.success { color: var(--success); background: var(--success-soft); }
.status-pill.paused, .tag.miss, .tag.danger { color: var(--danger); background: var(--danger-soft); }
.status-pill.pending, .tag.partial, .tag.warning { color: #b47407; background: var(--warning-soft); }
.tag.approved { color: var(--success); background: var(--success-soft); }
.tag.unapproved { color: #7b8495; background: #f1f2f5; }

/* 数据表格 */
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-scroll { width: 100%; overflow: auto; }
.data-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 12px 12px; border-bottom: 1px solid #eceef3; text-align: left; vertical-align: middle; }
.data-table th { position: sticky; z-index: 2; top: 0; color: #626b7b; background: #fafbfc; font-weight: 650; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfe; }
.data-table tbody tr.selected { background: #f4f6ff; }
.data-table .check-column { width: 42px; text-align: center; }
.data-table .action-column { width: 142px; white-space: nowrap; }
.data-table .query-column { min-width: 250px; max-width: 410px; }
.data-table input[type="checkbox"] { accent-color: var(--primary); }
.query-link { display: inline-block; max-width: 100%; padding: 0; overflow: hidden; border: 0; color: #303a4d; background: transparent; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.query-link:hover { color: var(--primary); }
.rate-cell { min-width: 108px; }
.rate-row { display: flex; align-items: center; gap: 8px; }
.rate-track { width: 58px; height: 6px; overflow: hidden; border-radius: 4px; background: #e9ecf2; }
.rate-fill { height: 100%; border-radius: inherit; background: var(--primary); }
.rate-fill.good { background: var(--success); }
.rate-fill.warn { background: var(--warning); }
.rate-fill.zero { background: #c8cdd7; }
.target-cell { min-width: 145px; }
.target-copy { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 4px; font-size: 12px; }
.target-copy strong { color: var(--ink); }
.target-progress { height: 5px; overflow: hidden; border-radius: 4px; background: #eaedf4; }
.target-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f70f4, #7d96ff); }
.target-progress.done span { background: var(--success); }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 35px;
  color: var(--muted);
  text-align: center;
}
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 13px; border-radius: 50%; color: #8d9ce5; background: var(--primary-soft); font-size: 26px; }
.empty-state h3 { margin: 0 0 5px; color: #4e5768; font-size: 15px; }
.empty-state p { max-width: 470px; margin: 0; }
.pagination-bar { display: flex; align-items: center; justify-content: flex-end; gap: 11px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination-bar select, .page-jump input { height: 30px; border: 1px solid var(--line-dark); border-radius: 5px; background: #fff; }
.page-buttons { display: flex; gap: 4px; }
.page-button { min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid var(--line-dark); border-radius: 5px; background: #fff; cursor: pointer; }
.page-button:hover:not(:disabled), .page-button.active { color: var(--primary); border-color: #9cacf2; background: var(--primary-soft); }
.page-button:disabled { opacity: .45; cursor: not-allowed; }
.batch-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid #d9e0ff; border-radius: 8px; color: #4d5b82; background: #f5f7ff; }
.batch-bar strong { color: var(--primary); }

/* 看板 */
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 13px; margin-bottom: 18px; }
.dashboard-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-card { position: relative; min-height: 120px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.summary-card::after { position: absolute; width: 70px; height: 70px; right: -26px; bottom: -28px; content: ""; border-radius: 50%; background: var(--primary-soft); }
.summary-card.success::after { background: var(--success-soft); }
.summary-card.warning::after { background: var(--warning-soft); }
.summary-label { color: var(--muted); font-size: 12px; }
.summary-value { display: block; margin: 9px 0 3px; color: var(--ink); font-size: 29px; line-height: 1; }
.summary-note { color: var(--subtle); font-size: 11px; }
.dashboard-scope-note {
  margin: -4px 0 16px;
  padding: 11px 14px;
  border: 1px solid #dce3fb;
  border-radius: 8px;
  color: #56627a;
  background: #f7f9ff;
  font-size: 12px;
  line-height: 1.6;
}
.dashboard-scope-note strong { color: #30446f; }
.dashboard-toolbar {
  display: grid;
  align-items: stretch;
  gap: 14px;
}
.dashboard-toolbar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.dashboard-filter-groups {
  display: grid;
  grid-template-columns: minmax(330px, 1.2fr) minmax(130px, .4fr) minmax(420px, 1.35fr);
  align-items: end;
  gap: 12px;
  width: 100%;
}
.dashboard-filter-group { min-width: 0; }
.dashboard-filter-label {
  display: block;
  margin-bottom: 7px;
  color: #687386;
  font-size: 11px;
  font-weight: 700;
}
.dashboard-date-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.dashboard-date-range > span { color: var(--muted); font-size: 12px; }
.dashboard-date-range .text-input,
.dashboard-granularity-group .select-input { width: 100%; min-width: 0; }
.dashboard-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dashboard-action-grid .secondary-button { min-width: 0; padding-inline: 12px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr); gap: 15px; margin-bottom: 16px; }
.chart-card { min-height: 360px; }
.chart-wrap { padding: 18px 18px 8px; overflow: hidden; }
.chart-svg { display: block; width: 100%; height: 280px; }
.chart-grid-line { stroke: #e8ebf1; stroke-width: 1; }
.chart-axis-label { fill: #8b93a3; font-size: 10px; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartGradient); }
.chart-point { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.chart-hover-zone { fill: transparent; pointer-events: all; }
.chart-legend { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.dashboard-detail-card { margin-bottom: 16px; }
.dashboard-detail-tabs {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}
.dashboard-detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.dashboard-detail-tab span {
  padding: 1px 7px;
  border-radius: 10px;
  background: #e9edf5;
  font-size: 11px;
}
.dashboard-detail-tab:hover { color: var(--text); background: rgba(255, 255, 255, .62); }
.dashboard-detail-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dashboard-detail-tab.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 4px 13px rgba(31, 48, 87, .09);
}
.dashboard-detail-tab.active span { color: #fff; background: var(--primary); }
.dashboard-detail-pagination { flex-wrap: wrap; }
.dashboard-detail-card .card-header > div { min-width: 0; }
.dashboard-detail-card .card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.dashboard-detail-card .table-scroll { max-height: 520px; }
.table-scroll-hint { display: none; }
.dashboard-table-scroll {
  position: relative;
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
}
.dashboard-table-scroll table { min-width: 860px; }
.query-dimension-scroll table { min-width: 920px; }
.dashboard-table-scroll th:first-child,
.dashboard-table-scroll td:first-child {
  position: sticky;
  left: 0;
  min-width: 142px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line), 8px 0 12px -12px rgba(26, 39, 68, .45);
}
.dashboard-table-scroll th:first-child { z-index: 3; background: #f7f9fc; }
.dashboard-table-scroll td:first-child { z-index: 1; }
.query-dimension-scroll th:first-child,
.query-dimension-scroll td:first-child { min-width: 210px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--primary); }
.legend-dot.green { background: var(--success); }
.distribution-list { display: flex; flex-direction: column; gap: 18px; padding: 23px 20px; }
.distribution-row { display: grid; grid-template-columns: 84px 1fr 45px; align-items: center; gap: 10px; }
.distribution-track { height: 9px; overflow: hidden; border-radius: 7px; background: #eceff4; }
.distribution-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.distribution-track .success { background: var(--success); }
.distribution-track .warning { background: var(--warning); }
.distribution-track .danger { background: var(--danger); }

/* 策略、设置 */
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(310px, 1fr)); gap: 15px; }
.policy-card { padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.policy-card-head { display: flex; justify-content: space-between; gap: 12px; }
.policy-card h3 { margin: 0; color: var(--ink); font-size: 16px; }
.policy-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.policy-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 17px 0; }
.policy-fact { padding: 10px; border-radius: 7px; background: var(--canvas); }
.policy-fact span { display: block; color: var(--muted); font-size: 11px; }
.policy-fact strong { display: block; margin-top: 2px; color: #465064; font-size: 13px; }
.policy-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 16px; }
.settings-card .card-body { padding: 24px; }
.setting-row { display: flex; justify-content: space-between; gap: 30px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.setting-row:first-child { padding-top: 0; }
.setting-row:last-child { padding-bottom: 0; border-bottom: 0; }
.setting-copy { max-width: 390px; }
.setting-copy strong { display: block; margin-bottom: 3px; color: var(--ink); }
.setting-copy span { color: var(--muted); font-size: 12px; }
.setting-control { width: min(330px, 48%); }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 8px; background: var(--canvas); }
.check-icon { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--success); background: var(--success-soft); font-size: 12px; font-weight: 800; }
.check-icon.warn { color: var(--warning); background: var(--warning-soft); }
.check-item strong { display: block; color: #4b5568; font-size: 13px; }
.check-item span { color: var(--muted); font-size: 11px; }
.role-badge { display: inline-flex; padding: 3px 9px; border-radius: 12px; color: #53627c; background: #edf0f6; font-size: 11px; }
.role-badge.admin { color: #6b4bd4; background: #f2edff; }
.role-badge.manager { color: var(--primary); background: var(--primary-soft); }

/* 弹窗、抽屉、预览 */
.overlay, .preview-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 24, 38, .46);
  backdrop-filter: blur(2px);
}
.modal {
  width: min(540px, 96vw);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.modal.wide { width: min(790px, 96vw); }
.modal.xwide { width: min(980px, 97vw); }
.modal-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 23px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-header h2 { margin: 0; color: var(--ink); font-size: 17px; }
.modal-body { padding: 22px 23px; }
.modal-footer { position: sticky; z-index: 2; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 15px 23px; border-top: 1px solid var(--line); background: #fff; }
.confirm-copy { margin: 0; color: #505a6d; line-height: 1.75; }
.warning-box { padding: 12px 14px; border: 1px solid #f4d79e; border-radius: 8px; color: #8b610f; background: var(--warning-soft); font-size: 12px; }
.error-panel { max-height: 200px; margin-top: 13px; padding: 11px 14px; overflow: auto; border: 1px solid #fac8d0; border-radius: 7px; color: #a42f43; background: var(--danger-soft); font-size: 12px; }
.drawer-backdrop { position: fixed; z-index: 80; inset: var(--topbar) 0 0; background: rgba(16,24,40,.24); }
.drawer {
  position: fixed;
  z-index: 81;
  inset: var(--topbar) 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(980px, calc(100vw - var(--sidebar)));
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -10px 0 40px rgba(20,31,60,.14);
}
.drawer-header { display: flex; align-items: flex-start; gap: 14px; padding: 22px 25px 17px; border-bottom: 1px solid var(--line); }
.drawer-title-area { flex: 1; min-width: 0; }
.drawer-title-line { display: flex; align-items: flex-start; gap: 10px; }
.drawer-title { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.4; }
.drawer-actions { display: flex; align-items: center; gap: 4px; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 11px; color: var(--muted); font-size: 12px; }
.drawer-meta strong { color: #515a6c; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 25px 30px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 19px; }
.detail-fact { padding: 12px; border-radius: 8px; background: var(--canvas); }
.detail-fact span { display: block; color: var(--muted); font-size: 11px; }
.detail-fact strong { display: block; margin-top: 3px; color: #465064; font-size: 13px; }
.history-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.history-filter input, .history-filter select { min-height: 34px; padding: 5px 9px; border: 1px solid var(--line-dark); border-radius: 5px; }
.response-content { max-height: 55vh; margin: 0; padding: 15px; overflow: auto; border-radius: 8px; color: #4c5668; background: #f7f8fa; white-space: pre-wrap; word-break: break-word; }
.url-list { display: flex; flex-direction: column; gap: 7px; }
.url-list a { overflow-wrap: anywhere; }
.upload-zone { display: grid; place-items: center; min-height: 135px; padding: 18px; border: 1px dashed #bfc7d8; border-radius: 8px; color: var(--muted); background: #fafbfc; text-align: center; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragging { color: var(--primary); border-color: var(--primary); background: var(--primary-faint); }
.upload-preview { display: block; max-width: 100%; max-height: 210px; margin: 10px auto 0; border-radius: 6px; }
.preview-modal { width: min(900px, 96vw); overflow: hidden; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.preview-stage { display: grid; place-items: center; min-height: 420px; max-height: 72vh; padding: 18px; background: #161b26; }
.preview-stage img { display: block; max-width: 100%; max-height: calc(72vh - 36px); object-fit: contain; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; }
.preview-nav { display: flex; gap: 8px; }
.image-error { color: #ccd2de; }

/* 通知 */
.toast-root { position: fixed; z-index: 200; top: 78px; right: 22px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 15px; border: 1px solid #bce8d8; border-radius: 8px; color: #24795d; background: #f0fbf7; box-shadow: var(--shadow-sm); animation: toast-in .2s ease-out; }
.toast.error { color: #a43246; border-color: #f5c5cd; background: #fff4f5; }
.toast.warning { color: #8c6210; border-color: #efd8aa; background: #fff9eb; }
.toast.info { color: #315c94; border-color: #c9dcf5; background: #f2f7ff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1250px) {
  :root { --sidebar: 220px; }
  .project-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .global-search { min-width: 230px; }
  .global-project-options { width: min(340px, 72vw); }
}

@media (max-width: 960px) {
  :root { --sidebar: 72px; }
  .topbar { padding-left: 18px; }
  .brand { width: 140px; }
  .sidebar { padding: 22px 10px 70px; }
  .project-name, .side-label, .side-item span:not(.side-icon), .core-state span:last-child { display: none; }
  .side-item { justify-content: center; padding: 0; }
  .side-icon { width: auto; }
  .core-state { left: 31px; }
  .auth-layout { grid-template-columns: 1fr 390px; gap: 35px; }
  .auth-feature-grid { display: none; }
  .dashboard-grid, .settings-layout { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: calc(100vw - var(--sidebar)); }
}

@media (max-width: 760px) {
  :root { --topbar: 58px; }
  .app-shell { padding-left: 0; }
  .topbar { gap: 8px; padding: 0 13px; }
  .brand { width: auto; }
  .brand-word { font-size: 23px; }
  .topnav, .global-search, .profile-button strong, .profile-button > span:last-child { display: none; }
  .profile-wrap { margin-left: auto; }
  .sidebar { inset: auto 0 0; z-index: 60; width: 100%; height: 60px; padding: 6px 8px; border-top: 1px solid var(--line); border-right: 0; overflow: hidden; }
  .side-nav { flex-direction: row; justify-content: space-around; }
  .side-item { flex: 1; min-width: 0; padding-inline: 2px; }
  .admin-side-item, .side-divider, .core-state { display: none; }
  .mobile-admin-more { display: flex; }
  .content { padding: 20px 14px 82px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .head-actions { justify-content: flex-start; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-right, .filters { margin-left: 0; justify-content: flex-start; }
  .filters input { width: 100%; }
  .filters select { flex: 1; }
  .project-center-search { min-width: 0; }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .project-grid, .policy-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .modal-body, .modal-header, .modal-footer { padding-left: 17px; padding-right: 17px; }
  .overlay { padding: 10px; }
  .drawer-backdrop { inset: var(--topbar) 0 60px; }
  .drawer { inset: var(--topbar) 0 60px; width: 100%; }
  .drawer-header, .drawer-body { padding-left: 16px; padding-right: 16px; }
  .auth-layout { display: block; width: min(430px, calc(100% - 28px)); padding: 24px 0; }
  .auth-intro { display: none; }
  .auth-card { margin-top: max(20px, calc(50vh - 300px)); padding: 31px 24px 27px; }
  .mobile-brand { display: inline-flex; margin-bottom: 10px; }
}

@media (max-width: 480px) {
  .summary-grid, .project-stats, .detail-grid { grid-template-columns: 1fr; }
  .date-pair { grid-template-columns: 1fr; }
  .date-pair span { display: none; }
  .policy-facts { grid-template-columns: 1fr 1fr; }
  .setting-row { flex-direction: column; gap: 10px; }
  .setting-control { width: 100%; }
  .pagination-bar { justify-content: center; flex-wrap: wrap; }
}

/* CSP-safe dynamic progress and spacing */
.empty-actions { margin-top: 16px; }
.approval-fields { margin-top: 16px; }
.approval-remove { margin-top: 8px; }
.detail-note { margin-bottom: 18px; }
.settings-actions { margin-top: 22px; }
.forced-warning { margin-bottom: 16px; }

progress.rate-track,
progress.target-progress,
progress.distribution-progress {
  overflow: hidden;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}
progress.rate-track { width: 58px; height: 6px; border-radius: 4px; background: #e9ecf2; }
progress.rate-track::-webkit-progress-bar { border-radius: 4px; background: #e9ecf2; }
progress.rate-track::-webkit-progress-value { border-radius: 4px; background: var(--primary); }
progress.rate-track::-moz-progress-bar { border-radius: 4px; background: var(--primary); }
progress.rate-track.good::-webkit-progress-value { background: var(--success); }
progress.rate-track.good::-moz-progress-bar { background: var(--success); }
progress.rate-track.warn::-webkit-progress-value { background: var(--warning); }
progress.rate-track.warn::-moz-progress-bar { background: var(--warning); }
progress.rate-track.zero::-webkit-progress-value { background: #c8cdd7; }
progress.rate-track.zero::-moz-progress-bar { background: #c8cdd7; }

progress.target-progress { display: block; width: 100%; height: 5px; border-radius: 4px; background: #eaedf4; }
progress.target-progress::-webkit-progress-bar { border-radius: 4px; background: #eaedf4; }
progress.target-progress::-webkit-progress-value { border-radius: 4px; background: linear-gradient(90deg, #4f70f4, #7d96ff); }
progress.target-progress::-moz-progress-bar { border-radius: 4px; background: #4f70f4; }
progress.target-progress.done::-webkit-progress-value { background: var(--success); }
progress.target-progress.done::-moz-progress-bar { background: var(--success); }

progress.distribution-progress { width: 100%; height: 9px; border-radius: 7px; background: #eceff4; }
progress.distribution-progress::-webkit-progress-bar { border-radius: 7px; background: #eceff4; }
progress.distribution-progress::-webkit-progress-value { border-radius: 7px; background: var(--primary); }
progress.distribution-progress::-moz-progress-bar { border-radius: 7px; background: var(--primary); }
progress.distribution-progress.success::-webkit-progress-value { background: var(--success); }
progress.distribution-progress.success::-moz-progress-bar { background: var(--success); }
progress.distribution-progress.warning::-webkit-progress-value { background: var(--warning); }
progress.distribution-progress.warning::-moz-progress-bar { background: var(--warning); }
progress.distribution-progress.danger::-webkit-progress-value { background: var(--danger); }
progress.distribution-progress.danger::-moz-progress-bar { background: var(--danger); }

body {
  letter-spacing: .01em;
  background:
    radial-gradient(circle at 82% 0, rgba(91, 117, 237, .08), transparent 26%),
    var(--canvas);
}

body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar,
.response-content::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb,
.response-content::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(116, 128, 151, .42);
  background-clip: padding-box;
}

.auth-view { background: #0a1228; }
.auth-backdrop {
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    radial-gradient(circle at 17% 12%, rgba(73, 101, 232, .58), transparent 35%),
    radial-gradient(circle at 84% 82%, rgba(27, 181, 176, .24), transparent 31%),
    linear-gradient(132deg, #122452 0%, #0b1531 53%, #0d1a37 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}
.auth-intro h1 { text-shadow: 0 8px 34px rgba(0,0,0,.2); }
.auth-feature-grid > div {
  border-color: rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.auth-card {
  border-color: rgba(255,255,255,.6);
  border-radius: 24px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 38px 100px rgba(0,0,0,.34), 0 2px 0 rgba(255,255,255,.6) inset;
}
.auth-card .text-input {
  border-radius: 10px;
  background: #fbfcff;
}
.auth-submit {
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(61,94,234,.25);
}

.topbar {
  padding-right: 30px;
  border-bottom-color: rgba(218, 225, 237, .8);
  background: rgba(255,255,255,.92);
  box-shadow: 0 5px 24px rgba(27, 41, 72, .055);
  backdrop-filter: blur(18px) saturate(150%);
}
.brand-word {
  background: linear-gradient(120deg, #2f50d8, #5b78f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark { color: #11a18a; }
.topnav-item { border-radius: 10px; }
.topnav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: none;
}
.global-search {
  border-color: #dce2ec;
  border-radius: 11px;
  background: #f8faff;
  box-shadow: inset 0 1px 2px rgba(26, 40, 70, .025);
}
.avatar {
  box-shadow: 0 6px 16px rgba(61,94,234,.22), 0 0 0 3px #f0f3ff;
}
.profile-menu { border-radius: 14px; box-shadow: 0 18px 48px rgba(24,37,69,.18); }

.sidebar {
  padding-top: 26px;
  border-right: 0;
  color: #dce4f5;
  background:
    radial-gradient(circle at 15% 0, rgba(83,108,232,.25), transparent 30%),
    linear-gradient(180deg, #17213e 0%, #10182f 55%, #0c1429 100%);
  box-shadow: 9px 0 28px rgba(17,28,54,.08);
}
.project-name {
  margin-bottom: 20px;
  color: #f5f7ff;
  font-size: 15px;
  letter-spacing: .01em;
}
.side-nav { gap: 5px; }
.side-item {
  min-height: 44px;
  border-radius: 10px;
  color: #b8c3d9;
  transition: color .16s, background .16s, transform .16s;
}
.side-item:hover {
  color: #fff;
  background: rgba(255,255,255,.075);
  transform: translateX(2px);
}
.side-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(76,103,232,.92), rgba(91,122,241,.78));
  box-shadow: 0 8px 20px rgba(40,65,174,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.side-icon { color: #7886a4; }
.side-item:hover .side-icon,
.side-item.active .side-icon { color: #fff; }
.side-label { color: #687794; }
.side-divider { background: rgba(255,255,255,.09); }
.core-state { color: #8f9db8; }

.content {
  position: relative;
  padding: 34px 36px 54px;
  background:
    radial-gradient(circle at 88% -10%, rgba(74, 103, 230, .09), transparent 26%),
    linear-gradient(180deg, #f5f7fc 0%, #f3f6fb 45%, #f7f9fc 100%);
}
.content::before {
  position: fixed;
  z-index: -1;
  inset: var(--topbar) 0 0 var(--sidebar);
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(76,99,171,.09) .7px, transparent .7px);
  background-size: 18px 18px;
  opacity: .32;
}

.page-head { margin-bottom: 25px; }
.page-head h1 {
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -.75px;
}
.page-head p { margin-top: 7px; color: #78849a; }
.section-title { font-weight: 740; }

.card,
.table-card,
.project-card,
.stat-tile,
.summary-card,
.policy-card {
  border-color: rgba(219, 226, 238, .95);
  box-shadow: 0 8px 24px rgba(28, 43, 75, .055), 0 1px 2px rgba(24,37,69,.035);
}
.card,
.table-card,
.project-card,
.stat-tile,
.summary-card,
.policy-card,
.info-banner,
.batch-bar { border-radius: var(--radius); }
.card-header { padding: 19px 22px; }
.card-body { padding: 22px; }

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  min-height: 38px;
  border-radius: 9px;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .1s;
}
.primary-button {
  background: linear-gradient(135deg, #4364ed, #3655df);
  box-shadow: 0 7px 16px rgba(61,94,234,.19);
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(61,94,234,.25);
}
.secondary-button:hover { box-shadow: 0 5px 14px rgba(30,45,78,.07); }
.small-button { min-height: 31px; border-radius: 8px; }

.text-input,
.select-input,
.textarea-input,
.filters input,
.filters select {
  min-height: 38px;
  border-radius: 9px;
  background: #fbfcfe;
}
.text-input:focus,
.select-input:focus,
.textarea-input:focus,
.filters input:focus,
.filters select:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61,94,234,.09);
}
.toolbar { margin-bottom: 17px; }
.info-banner {
  border-color: #dbe3f5;
  background: linear-gradient(100deg, #fff, #f8faff);
  box-shadow: 0 5px 16px rgba(31,46,81,.035);
}

.project-stats { gap: 16px; margin-bottom: 24px; }
.stat-tile {
  position: relative;
  min-height: 105px;
  padding: 20px 21px;
  overflow: hidden;
}
.stat-tile::after {
  position: absolute;
  right: -22px;
  bottom: -29px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  content: "";
  background: linear-gradient(135deg, rgba(66,96,234,.05), rgba(66,96,234,.13));
}
.stat-tile span { font-weight: 620; }
.stat-tile strong { margin-top: 9px; font-size: 29px; letter-spacing: -.6px; }
.project-grid { gap: 18px; }
.project-card {
  min-height: 222px;
  padding: 22px;
  overflow: hidden;
  border-radius: 15px;
}
.project-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #4262e9, #7690f7 65%, #25b49b);
  opacity: .72;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #c8d3f6;
  box-shadow: 0 16px 34px rgba(31,48,87,.11);
}
.project-card h3 { font-size: 16px; font-weight: 740; }
.project-meta { gap: 11px; }
.project-card-footer { margin-top: 20px; }

.table-card { border-radius: 14px; }
.data-table th,
.data-table td { padding: 14px 13px; }
.data-table th {
  color: #5e6a80;
  background: #f6f8fc;
  box-shadow: inset 0 -1px 0 #e2e7f0;
  font-size: 12px;
  letter-spacing: .025em;
}
.data-table tbody tr { transition: background .14s, box-shadow .14s; }
.data-table tbody tr:hover { background: #f7f9ff; box-shadow: inset 3px 0 0 #607bf0; }
.query-link { color: #27334b; font-weight: 680; }
.pagination-bar { padding: 15px 18px; background: #fbfcfe; }

.status-pill,
.tag { min-height: 25px; padding-inline: 10px; font-weight: 650; }
.summary-grid { gap: 15px; margin-bottom: 21px; }
.summary-card {
  min-height: 130px;
  padding: 20px;
  overflow: hidden;
  border-radius: 15px;
}
.summary-card::after { width: 86px; height: 86px; right: -28px; bottom: -33px; }
.summary-value { margin-top: 12px; font-size: 32px; letter-spacing: -.7px; }
.dashboard-grid { gap: 18px; }
.chart-card { min-height: 380px; }
.chart-wrap { padding: 22px 22px 10px; }
.chart-grid-line { stroke: #e5eaf2; }
.chart-line { stroke-width: 3; }

.policy-grid { gap: 18px; }
.policy-card { padding: 22px; border-radius: 15px; }
.policy-fact,
.check-item,
.detail-fact { border: 1px solid #e7ebf3; background: #f7f9fc; }

.overlay,
.preview-overlay { background: rgba(13,20,37,.54); backdrop-filter: blur(5px); }
.modal { border-radius: 17px; box-shadow: 0 28px 80px rgba(16,27,52,.28); }
.modal-header,
.modal-footer { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.drawer {
  border-left-color: #dde3ee;
  box-shadow: -18px 0 56px rgba(18,30,58,.17);
}
.drawer-header { background: linear-gradient(110deg, #fff, #f8faff); }
.response-content { border: 1px solid #e3e8f1; background: #f7f9fc; line-height: 1.7; }
.toast { border-radius: 12px; box-shadow: 0 12px 32px rgba(24,37,69,.14); }

.auth-brand,
.mobile-brand { gap: 9px; }
.auth-brand-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; box-shadow: 0 8px 20px rgba(36,70,181,.25); }
.mobile-brand .auth-brand-icon { width: 27px; height: 27px; border-radius: 8px; }
.brand { gap: 8px; }
.brand-icon { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 8px; box-shadow: 0 6px 15px rgba(47,80,216,.2); }
.brand-word { font-size: 26px; letter-spacing: -1.2px; }
.global-search:focus-within { border-color: #8da2ff; box-shadow: 0 0 0 3px rgba(74,103,230,.11); }
.global-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: #354056;
  background: transparent;
}
.global-search input::placeholder { color: #9aa4b6; }
.global-search-button {
  align-self: stretch;
  width: 43px;
  border: 0;
  color: #758198;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.global-search-button:hover { color: var(--primary); background: rgba(72,100,232,.07); }

.global-search { position: relative; overflow: visible; }
.global-project-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  width: min(360px, 44vw);
  max-height: 390px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(26, 40, 70, .16);
}
.global-project-group + .global-project-group { margin-top: 5px; }
.global-project-group-title {
  padding: 5px 9px 4px;
  color: #9aa4b6;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
}
.global-project-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  color: #354056;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.global-project-option:hover,
.global-project-option.active { color: var(--primary); background: #fff3ed; }
.global-project-option-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-project-option-meta { flex: 0 0 auto; color: #9aa4b6; font-size: 11px; }
.global-project-empty { padding: 22px 12px; color: #9aa4b6; font-size: 13px; text-align: center; }
.project-center-search { min-width: min(300px, 28vw); }

.project-hub-tabs {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 5px 18px rgba(26,40,70,.045);
}
.project-hub-tab {
  min-height: 36px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  color: #6d7890;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.project-hub-tab:hover { color: var(--primary); }
.project-hub-tab.active { color: #fff; background: linear-gradient(120deg, #4868ee, #617df2); box-shadow: 0 7px 17px rgba(57,84,206,.22); }

.overview-filter-panel {
  margin-bottom: 18px;
  padding: 17px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 7px 22px rgba(27,42,75,.05);
}
.overview-filter-grid { display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(4, minmax(135px, 1fr)) auto; align-items: end; gap: 12px; }
.overview-filter-grid label { min-width: 0; }
.overview-filter-grid label > span { display: block; margin-bottom: 7px; color: #68758d; font-size: 12px; font-weight: 650; }
.overview-filter-grid .text-input,
.overview-filter-grid .select-input { width: 100%; min-width: 0; }
.overview-filter-actions { display: flex; gap: 8px; }

.overview-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
.overview-metric {
  position: relative;
  min-height: 124px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28,43,75,.052);
}
.overview-metric::after { position: absolute; right: -30px; bottom: -38px; width: 96px; height: 96px; border-radius: 50%; content: ""; background: #f1f4ff; }
.overview-metric.primary { border-top: 3px solid #5572ee; }
.overview-metric.success { border-top: 3px solid #17a37a; }
.overview-metric.warning { border-top: 3px solid #d9931b; }
.overview-metric > span { position: relative; z-index: 1; color: #6e7a91; font-size: 12px; font-weight: 650; }
.overview-metric > strong { position: relative; z-index: 1; display: block; margin-top: 10px; color: #172033; font-size: 29px; letter-spacing: -.6px; }
.overview-metric > small { position: relative; z-index: 1; display: block; margin-top: 7px; color: #98a2b4; font-size: 11px; }

.overview-table-card { overflow: hidden; }
.overview-table-card .card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.overview-table-scroll { max-height: 610px; }
.overview-table { min-width: 1280px; }
.overview-table th { text-align: center; white-space: nowrap; }
.overview-table td { text-align: right; white-space: nowrap; }
.overview-table th:first-child,
.overview-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 250px; text-align: left; background: #fff; box-shadow: 1px 0 0 #e5eaf2; }
.overview-table thead th:first-child { z-index: 4; background: #f6f8fc; }
.overview-table tbody tr:hover td:first-child { background: #f7f9ff; }
.overview-group-head { color: #536179 !important; background: #eef2fb !important; }
.overview-group-head.monitoring { background: #edf8f5 !important; }
.overview-project-cell .query-link { max-width: 230px; color: #3158ee; }
.table-rate { color: #8c97aa; font-size: 11px; }
.table-hit { color: #087658; font-weight: 700; }
.table-partial { color: #855500; font-weight: 700; }

@media (max-width: 960px) {
  .content { padding: 28px 25px 48px; }
  .content::before { left: var(--sidebar); }
  .side-item:hover { transform: none; }
  .overview-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-filter-actions { justify-content: flex-end; }
  .overview-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .app-shell, .content { width: 100%; max-width: 100vw; min-width: 0; }
  .topbar { padding: 0 13px; }
  .content { padding: 22px 14px 84px; }
  .content::before { inset: var(--topbar) 0 60px; }
  .sidebar {
    padding: 6px 8px;
    border-top-color: rgba(255,255,255,.09);
    background: linear-gradient(100deg, #121c37, #0e1730);
  }
  .side-nav { align-items: stretch; }
  .side-item {
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    gap: 0;
    font-size: 10px;
    line-height: 1.15;
  }
  .side-item span:not(.side-icon) { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-icon { font-size: 16px; line-height: 20px; }
  .side-item.active { box-shadow: 0 5px 14px rgba(40,65,174,.22); }
  .page-head h1 { font-size: 24px; }
  .project-card { min-height: auto; }
  .project-stats,
  .summary-grid,
  .project-grid,
  .toolbar,
  .toolbar-left,
  .toolbar-right,
  .filters,
  .search-field,
  .project-card,
  .stat-tile,
  .summary-card { min-width: 0; max-width: 100%; }
  .search-field { flex: 1 1 100%; width: 100%; }
  .filters input,
  .filters select { min-width: 0; max-width: 100%; }
  .history-filter { flex-wrap: wrap; }
  .history-filter input { min-width: 0; flex: 1 1 135px; }
  .project-hub-tabs { width: 100%; }
  .project-hub-tab { flex: 1; }
  .overview-filter-grid { grid-template-columns: 1fr; }
  .overview-filter-actions { justify-content: stretch; }
  .overview-filter-actions button { flex: 1; }
}

@media (max-width: 480px) {
  .history-filter { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .history-filter span { display: none; }
  .history-filter .secondary-button { width: 100%; }
  .overview-summary-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.package-config-form {
  padding: 18px;
  border: 1px solid #dfe7f5;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8faff, #f5fbfa);
}
.package-config-heading,
.package-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.package-config-heading strong { color: var(--ink); font-size: 15px; }
.package-config-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.package-config-grid { margin-top: 16px; }
.package-parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.package-volume-note {
  display: grid;
  grid-template-columns: minmax(150px, .4fr) 1fr;
  align-items: center;
  gap: 4px 18px;
  padding: 15px 17px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e3e9f3;
}
.package-volume-note span,
.package-volume-note p { color: var(--muted); font-size: 12px; }
.package-volume-note strong { color: var(--primary); font-size: 19px; }
.package-volume-note p { grid-column: 1 / -1; margin: 3px 0 0; }
.package-tag { color: #315fd4; background: #edf3ff; border-color: #d7e3ff; }

.package-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 24px;
  border-color: #dce5f4;
  background: linear-gradient(135deg, #fff 0%, #f7f9ff 62%, #f2fbf8 100%);
}
.package-panel::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: rgba(72, 105, 239, .07);
  pointer-events: none;
}
.package-panel.completed { border-color: #bfe5d9; box-shadow: 0 13px 32px rgba(25, 143, 112, .08); }
.package-panel.unconfigured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-style: dashed;
}
.package-panel-copy h2,
.package-panel-header h2 { margin: 6px 0; color: var(--ink); font-size: 24px; letter-spacing: -.02em; }
.package-panel-copy p,
.package-panel-header p { margin: 0; color: var(--muted); font-size: 13px; }
.package-kicker {
  color: #3863d5;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.package-progress-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin: 23px 0 20px; }
progress.package-progress {
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #e6ebf4;
  appearance: none;
}
progress.package-progress::-webkit-progress-bar { border-radius: 10px; background: #e6ebf4; }
progress.package-progress::-webkit-progress-value { border-radius: 10px; background: linear-gradient(90deg, #4569ec, #6b8af5); }
progress.package-progress::-moz-progress-bar { border-radius: 10px; background: linear-gradient(90deg, #4569ec, #6b8af5); }
progress.package-progress.done::-webkit-progress-value { background: linear-gradient(90deg, #14a283, #42bea5); }
progress.package-progress.done::-moz-progress-bar { background: #14a283; }
.package-progress-row > strong { min-width: 50px; color: var(--ink); text-align: right; }
.package-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.package-metric-grid.volume-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.package-metric-grid > div {
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid rgba(218, 226, 240, .9);
  border-radius: 12px;
  background: rgba(255, 255, 255, .84);
}
.package-metric-grid span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.package-metric-grid strong { color: var(--ink); font-size: 18px; }
.package-metric-grid .package-metric-attention { border-color: #f0dfb8; background: rgba(255, 249, 235, .9); }
.package-metric-grid .package-metric-attention strong { color: #a56a0b; }
.package-rule-note { margin-top: 16px; color: #697386; font-size: 12px; line-height: 1.7; }
.package-warning-list { margin-top: 15px; }
.package-warning-list p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 7px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: #7a5a15;
  background: #fff8e7;
  font-size: 12px;
}
.package-warning-list p span { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #d69b24; font-weight: 800; }
.package-chart-card { margin-bottom: 18px; }
.package-chart-card .card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.package-chart-area { fill: url(#packageCurveGradient); }
.package-chart-line { fill: none; stroke: #13a58a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.package-chart-point { stroke: #13a58a; }
.package-threshold-line { fill: none; stroke: #e19c2c; stroke-width: 1.5; stroke-dasharray: 7 5; }
.package-threshold-label { fill: #ad7318; font-size: 10px; font-weight: 700; }
.package-verification-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}
.package-verification-result > div { min-width: 0; }
.package-verification-result span:first-child { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.package-verification-result strong { color: var(--ink); font-size: 13px; }
.package-verification-empty { margin-top: 18px; padding: 13px 15px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.7); font-size: 12px; }
.verification-cost { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 14px; padding: 15px 17px; border-radius: 12px; background: #f3f6ff; }
.verification-cost span { color: var(--muted); }
.verification-cost strong { color: var(--primary); font-size: 23px; }
.verification-confirm > p { color: var(--ink-secondary, #4d5668); line-height: 1.7; }
.mobile-admin-menu { display: grid; gap: 10px; }
.mobile-admin-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 11px 14px;
  border: 1px solid #e1e7f1;
  border-radius: 12px;
  color: var(--text);
  background: #fafbfe;
  text-align: left;
  cursor: pointer;
}
.mobile-admin-link:hover { color: var(--primary); border-color: #c8d4fb; background: #f4f7ff; }
.mobile-admin-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 18px; }
.mobile-admin-link strong,
.mobile-admin-link small { display: block; }
.mobile-admin-link small { margin-top: 3px; color: var(--muted); font-size: 11px; }

@media (max-width: 960px) {
  .package-metric-grid,
  .package-metric-grid.volume-metric-grid,
  .package-verification-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-panel-header { flex-direction: column; }
}

@media (max-width: 760px) {
  .package-config-form,
  .package-panel { padding: 17px; }
  .package-parameter-grid,
  .package-metric-grid,
  .package-metric-grid.volume-metric-grid,
  .package-verification-result { grid-template-columns: 1fr; }
  .package-panel.unconfigured,
  .package-config-heading { align-items: stretch; flex-direction: column; }
  .package-panel-header .button-row { width: 100%; }
  .package-panel-header .button-row > * { flex: 1 1 auto; }
  .package-volume-note { grid-template-columns: 1fr; }
  .package-volume-note p { grid-column: auto; }
}

@media (max-width: 1250px) {
  .dashboard-filter-groups { grid-template-columns: minmax(0, 1fr) 150px; }
  .dashboard-actions-group { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .dashboard-toolbar { gap: 12px; }
  .dashboard-toolbar-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dashboard-filter-groups { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-actions-group { grid-column: auto; }
  .dashboard-filter-group {
    padding: 10px;
    border: 1px solid #e3e8f2;
    border-radius: 10px;
    background: #fafbfe;
  }
  .dashboard-filter-label { margin-bottom: 6px; }
  .dashboard-action-grid .secondary-button { min-height: 42px; }
  .dashboard-detail-card .card-header { align-items: flex-start; flex-direction: column; }
  .table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 8px 14px 0;
    color: #768197;
    font-size: 11px;
  }
  .table-scroll-hint span { color: var(--primary); font-size: 15px; }
  .dashboard-table-scroll { max-height: 440px !important; touch-action: pan-x pan-y; }
  .dashboard-table-scroll th:first-child,
  .dashboard-table-scroll td:first-child { min-width: 125px; max-width: 160px; }
  .query-dimension-scroll th:first-child,
  .query-dimension-scroll td:first-child { min-width: 170px; max-width: 210px; }
  .chart-card { min-height: 315px; }
  .chart-wrap { padding: 14px 7px 7px; }
  .chart-svg { height: 235px; }
  .compact-chart .chart-axis-label { font-size: 12px; }
  .compact-chart .package-threshold-label { font-size: 11px; }
}

@media (max-width: 480px) {
  .dashboard-detail-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-detail-tab { min-width: 0; padding-inline: 8px; }
  .dashboard-detail-pagination { justify-content: center; }
  .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-summary-grid .summary-card { min-height: 112px; padding: 16px 13px; }
  .dashboard-summary-grid .summary-card:last-child { grid-column: 1 / -1; }
  .dashboard-summary-grid .summary-value { font-size: 25px; }
  .dashboard-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-apply-button { grid-column: 1 / -1; }
  .dashboard-date-range { gap: 6px; }
  .dashboard-date-range .text-input { padding-inline: 8px; font-size: 12px; }
  .dashboard-scope-note { margin-bottom: 14px; }
}

@media (max-width: 360px) {
  .dashboard-action-grid { grid-template-columns: 1fr; }
  .dashboard-apply-button { grid-column: auto; }
}

body {
  color: var(--text);
  background: var(--canvas);
  letter-spacing: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(255, 107, 44, .24);
}

a,
.text-button,
.action-link,
.query-link,
.overview-project-cell .query-link {
  color: var(--data-blue);
}

body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb,
.response-content::-webkit-scrollbar-thumb {
  background: rgba(125, 135, 151, .42);
  background-clip: padding-box;
}

.auth-view {
  background: var(--canvas);
}

.auth-backdrop {
  background:
    radial-gradient(circle at 12% 13%, rgba(255, 107, 44, .2), transparent 31%),
    radial-gradient(circle at 84% 83%, rgba(52, 120, 246, .1), transparent 28%),
    linear-gradient(135deg, #fff9f5 0%, #f5f6f8 56%, #f7f9fc 100%);
  background-size: auto;
}

.auth-backdrop::before,
.auth-backdrop::after {
  border-color: rgba(255, 107, 44, .12);
}

.auth-intro,
.auth-brand {
  color: var(--ink);
}

.auth-brand,
.mobile-brand {
  gap: 11px;
  font-size: 27px;
  letter-spacing: -.7px;
}

.auth-brand-icon {
  width: 43px;
  height: 43px;
  border-radius: 0;
  box-shadow: none;
}

.mobile-brand .auth-brand-icon {
  width: 35px;
  height: 35px;
  border-radius: 0;
}

.eyebrow,
.auth-card .eyebrow {
  color: var(--primary);
}

.auth-intro h1 {
  color: var(--ink);
  text-shadow: none;
}

.auth-intro > p:not(.eyebrow) {
  color: var(--muted);
}

.auth-feature-grid > div {
  border-color: var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 20px rgba(29, 37, 51, .045);
  backdrop-filter: none;
}

.auth-feature-grid strong { color: var(--ink); }
.auth-feature-grid span { color: var(--muted); }

.auth-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(29, 37, 51, .14);
}

.auth-card .text-input {
  border-radius: 8px;
  background: #fff;
}

.auth-submit {
  border-radius: 8px !important;
  box-shadow: 0 9px 20px rgba(255, 107, 44, .22);
}

.topbar {
  gap: 20px;
  padding: 0 24px 0 28px;
  border-bottom-color: var(--line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(29, 37, 51, .045);
  backdrop-filter: none;
}

.brand {
  width: 220px;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  box-shadow: none;
}

.brand-word {
  color: var(--ink);
  background: none;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.4px;
  white-space: nowrap;
  -webkit-text-fill-color: currentColor;
}

.topnav-item {
  border-radius: 7px;
  color: #606978;
}

.topnav-item:hover,
.topnav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: none;
}

.global-search {
  max-width: 460px;
  height: 38px;
  border-color: var(--line-dark);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.global-search:focus-within {
  border-color: rgba(255, 107, 44, .72);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .1);
}

.global-search-button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.search-scope {
  color: #626c7b;
  background: #fafbfc;
}

.avatar {
  background: linear-gradient(135deg, #ff7a40, #ff5f1f);
  box-shadow: 0 4px 13px rgba(255, 107, 44, .2), 0 0 0 3px #fff2ec;
}

.profile-menu {
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 22px 14px 72px;
  border-right: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  box-shadow: 2px 0 10px rgba(29, 37, 51, .035);
}

.project-name {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c84f1d;
  background: var(--primary-faint);
  font-size: 14px;
}

.side-nav { gap: 4px; }

.side-item {
  position: relative;
  min-height: 42px;
  border-radius: 7px;
  color: #566070;
  transition: color .16s, background .16s;
}

.side-item:hover {
  color: var(--primary);
  background: #fff8f4;
  transform: none;
}

.side-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
}

.side-icon,
.side-item:hover .side-icon,
.side-item.active .side-icon {
  color: currentColor;
}

.side-label { color: var(--subtle); }
.side-divider { background: var(--line); }
.core-state { color: var(--muted); }

.content {
  padding: 28px 30px 48px;
  background: var(--canvas);
}

.content::before { display: none; }

.page-head { margin-bottom: 20px; }
.page-head h1 { color: var(--ink); font-size: 24px; font-weight: 760; letter-spacing: -.45px; }
.page-head p { margin-top: 5px; color: var(--muted); }

.card,
.table-card,
.project-card,
.stat-tile,
.summary-card,
.policy-card,
.overview-metric {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 37, 51, .04);
}

.card-header { padding: 17px 20px; }
.card-body { padding: 20px; }

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  min-height: 36px;
  border-radius: 7px;
  box-shadow: none;
}

.primary-button {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(255, 107, 44, .16);
}

.primary-button:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(255, 107, 44, .2);
  transform: translateY(-1px);
}

.secondary-button {
  color: #4b5565;
  border-color: var(--line-dark);
  background: #fff;
}

.secondary-button:hover {
  color: var(--primary);
  border-color: rgba(255, 107, 44, .48);
  background: var(--primary-faint);
  box-shadow: none;
}

.ghost-button:hover,
.icon-button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.text-input,
.select-input,
.textarea-input,
.filters input,
.filters select {
  min-height: 36px;
  border-color: var(--line-dark);
  border-radius: 7px;
  background: #fff;
}

.text-input:hover,
.select-input:hover,
.textarea-input:hover,
.filters input:hover,
.filters select:hover {
  border-color: #c5cad3;
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus,
.filters input:focus,
.filters select:focus {
  border-color: rgba(255, 107, 44, .78);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .1);
}

.check-label input,
.radio-label input,
.field-with-toggle > input[type="checkbox"],
.data-table input[type="checkbox"] {
  accent-color: var(--primary);
}

.switch-label input:checked + .switch-track { background: var(--primary); }

.soft-panel,
.dashboard-scope-note {
  color: #3f5d8c;
  border-color: #d9e5fb;
  background: var(--data-blue-soft);
}

.info-banner,
.batch-bar {
  border-color: #ffd9c9;
  border-radius: var(--radius);
  background: #fffaf7;
  box-shadow: none;
}

.batch-bar,
.batch-bar strong { color: #b94b1e; }

.stat-tile {
  min-height: 104px;
  padding: 18px 19px;
}

.stat-tile::after,
.summary-card::after {
  background: var(--primary-soft);
}

.stat-tile strong,
.summary-value,
.overview-metric > strong {
  color: var(--data-blue);
}

.project-card {
  min-height: 214px;
  padding: 20px;
  border-radius: var(--radius);
}

.project-card::before {
  height: 3px;
  background: var(--primary);
  opacity: 1;
}

.project-card:hover {
  border-color: #ffc4ab;
  box-shadow: 0 12px 28px rgba(29, 37, 51, .09);
  transform: translateY(-3px);
}

.status-pill,
.tag {
  min-height: 24px;
  border-radius: 12px;
  font-weight: 650;
}

.table-card {
  border-radius: var(--radius);
}

.data-table th,
.data-table td {
  padding: 13px 12px;
  border-bottom-color: #eceef2;
}

.data-table th {
  color: #596474;
  background: #fafbfc;
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: 12px;
  letter-spacing: 0;
}

.data-table tbody tr:hover {
  background: #fff8f4;
  box-shadow: inset 3px 0 0 var(--primary);
}

.data-table tbody tr.selected { background: #fff3ed; }
.query-link { color: var(--data-blue); font-weight: 650; }
.query-link:hover { color: #1f64df; }

.pagination-bar {
  padding: 13px 16px;
  background: #fff;
}

.pagination-bar select,
.page-jump input,
.page-button {
  border-color: var(--line-dark);
  border-radius: 6px;
}

.page-button:hover:not(:disabled) {
  color: var(--primary);
  border-color: rgba(255, 107, 44, .5);
  background: var(--primary-soft);
}

.page-button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.project-hub-tabs,
.dashboard-detail-tabs {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: none;
}

.project-hub-tab,
.dashboard-detail-tab {
  border-radius: 6px;
}

.project-hub-tab:hover,
.dashboard-detail-tab:hover { color: var(--primary); }

.project-hub-tab.active,
.dashboard-detail-tab.active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: none;
}

.dashboard-detail-tab.active span {
  color: #fff;
  background: var(--primary);
}

.overview-filter-panel,
.overview-metric {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 37, 51, .04);
}

.overview-metric.primary { border-top-color: var(--primary); }
.overview-metric::after { background: var(--primary-soft); }
.overview-group-head { color: #4b5f80 !important; background: var(--data-blue-soft) !important; }
.overview-project-cell .query-link { color: var(--data-blue); }

.chart-line,
.package-chart-line {
  stroke: var(--data-blue);
}

.chart-point,
.package-chart-point {
  stroke: var(--data-blue);
}

.legend-dot,
.distribution-track span {
  background: var(--data-blue);
}

progress.rate-track::-webkit-progress-value,
progress.target-progress::-webkit-progress-value,
progress.distribution-progress::-webkit-progress-value,
progress.package-progress::-webkit-progress-value {
  background: var(--data-blue);
}

progress.rate-track::-moz-progress-bar,
progress.target-progress::-moz-progress-bar,
progress.distribution-progress::-moz-progress-bar,
progress.package-progress::-moz-progress-bar {
  background: var(--data-blue);
}

.package-config-form,
.package-panel {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.package-panel { box-shadow: 0 3px 12px rgba(29, 37, 51, .04); }
.package-panel::after { background: rgba(255, 107, 44, .08); }
.package-kicker { color: var(--primary); }
.package-tag { color: #be4b1b; border-color: #ffd4c2; background: var(--primary-soft); }
.package-volume-note,
.package-metric-grid > div,
.package-verification-result { border-color: var(--line); background: #fafbfc; }
.package-volume-note strong,
.package-metric-grid strong,
.verification-cost strong { color: var(--data-blue); }
.verification-cost { background: var(--data-blue-soft); }

.policy-fact,
.check-item,
.detail-fact,
.response-content {
  border-color: var(--line);
  background: #fafbfc;
}

.overlay,
.preview-overlay {
  background: rgba(29, 37, 51, .46);
  backdrop-filter: blur(3px);
}

.modal {
  border-color: var(--line);
  border-radius: 11px;
  box-shadow: 0 28px 74px rgba(29, 37, 51, .24);
}

.modal-header,
.modal-footer {
  background: #fff;
  backdrop-filter: none;
}

.drawer {
  border-left-color: var(--line);
  box-shadow: -18px 0 48px rgba(29, 37, 51, .14);
}

.drawer-header { background: #fff; }
.toast { border-radius: 8px; }
.empty-icon { color: var(--primary); background: var(--primary-soft); }
.spinner { border-top-color: var(--primary); }

@media (max-width: 1250px) {
  .brand { width: 194px; }
}

@media (max-width: 960px) {
  .topbar { padding-left: 18px; }
  .brand { width: 196px; }
  .sidebar { padding: 22px 10px 70px; }
  .project-name { padding-inline: 0; background: transparent; }
}

@media (max-width: 760px) {
  .topbar { gap: 8px; padding: 0 13px; }
  .brand { width: auto; gap: 8px; }
  .brand-icon { width: 31px; height: 31px; }
  .brand-word { font-size: 17px; letter-spacing: -.25px; }
  .sidebar {
    padding: 6px 8px;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: #fff;
    box-shadow: 0 -4px 14px rgba(29, 37, 51, .06);
  }
  .side-item { min-height: 48px; border-radius: 7px; }
  .side-item.active { box-shadow: inset 0 3px 0 var(--primary); }
  .content { padding: 20px 14px 82px; }
  .auth-card { border-radius: 11px; }
  .mobile-brand { color: var(--ink); font-size: 21px; }
  .card-header,
  .card-body { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .brand-word { font-size: 16px; }
  .auth-card { padding-inline: 22px; }
  .page-head h1 { font-size: 22px; }
  .pagination-bar { gap: 8px; }
}

/* Keep the source logo's natural ratio at every breakpoint. */
.auth-brand-icon,
.brand-icon {
  display: block;
  width: auto !important;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.auth-brand-icon {
  height: 44px !important;
  max-width: 64px;
}

.mobile-brand .auth-brand-icon {
  height: 34px !important;
  max-width: 50px;
}

.brand-icon {
  height: 32px !important;
  max-width: 47px;
}

@media (max-width: 760px) {
  .brand-icon { height: 29px !important; max-width: 43px; }
}

/* 全局与项目监测策略层级 */
.policy-priority {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #dce5f8;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #f7faff, #fff 66%);
}
.policy-priority-title span,
.global-policy-summary-copy > span,
.policy-scope-label {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.policy-priority-title strong { color: var(--ink); font-size: 15px; }
.policy-priority-steps { display: flex; align-items: stretch; gap: 10px; }
.policy-priority-step {
  display: flex;
  flex: 1 1 0;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.policy-priority-rank {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--data-blue);
  font-size: 12px;
  font-weight: 800;
}
.policy-priority-step strong { display: block; color: #354056; font-size: 13px; }
.policy-priority-step p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.policy-priority-arrow { align-self: center; color: #a5afbf; font-size: 25px; }
.policy-priority.compact { grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr); }

.policy-inheritance {
  display: grid;
  grid-template-columns: auto minmax(180px, .35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px 17px;
  border: 1px solid #d9e4f8;
  border-left: 4px solid var(--data-blue);
  border-radius: 8px;
  background: var(--data-blue-soft);
}
.policy-inheritance.active { border-color: #ffd8c7; border-left-color: var(--primary); background: var(--primary-soft); }
.policy-inheritance > span { color: var(--data-blue); font-size: 12px; font-weight: 750; }
.policy-inheritance.active > span { color: var(--primary); }
.policy-inheritance strong { color: var(--ink); font-size: 14px; }
.policy-inheritance p { margin: 0; color: var(--muted); font-size: 12px; }
.policy-section { margin-top: 22px; }
.policy-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.policy-section-head h2 { margin: 0; color: var(--ink); font-size: 17px; }
.policy-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.policy-section-head > span { color: var(--muted); font-size: 12px; }
.policy-grid.single { grid-template-columns: minmax(320px, 1fr); }
.policy-card { position: relative; overflow: hidden; }
.policy-card::before { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: var(--data-blue); }
.policy-card.global-policy-card::before { background: var(--primary); }
.policy-scope-label { margin: 2px 0 6px; }
.global-policy-card .policy-scope-label { color: var(--primary); }
.policy-form-notice { margin-bottom: 18px; }

.global-policy-summary {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 37, 51, .04);
}
.global-policy-summary-copy h2 { margin: 0 0 8px; color: var(--ink); font-size: 22px; }
.global-policy-summary-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.global-policy-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.global-policy-stat { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.global-policy-stat span { display: block; color: var(--muted); font-size: 11px; }
.global-policy-stat strong { display: block; margin: 6px 0 3px; color: var(--data-blue); font-size: 24px; }
.global-policy-stat p { margin: 0; color: #8a93a2; font-size: 10px; }
.global-policy-note { margin-top: 18px; line-height: 1.7; }

@media (max-width: 1100px) {
  .policy-priority,
  .policy-priority.compact,
  .global-policy-summary { grid-template-columns: 1fr; }
  .global-policy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .policy-priority-steps { display: grid; grid-template-columns: 1fr; }
  .policy-priority-arrow { display: none; }
  .policy-inheritance { grid-template-columns: 1fr; gap: 5px; }
  .policy-grid,
  .policy-grid.single { grid-template-columns: 1fr; }
  .policy-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-footer { align-items: flex-start; gap: 10px; flex-direction: column; }
}

@media (max-width: 480px) {
  .policy-priority,
  .global-policy-summary { padding: 15px; }
  .global-policy-stats { grid-template-columns: 1fr 1fr; }
  .policy-facts { grid-template-columns: 1fr; }
}

/* Hit tracking */
.hit-tracking-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hit-tracking-summary .summary-card { min-height: 108px; }
.summary-card.tracking-new::after { background: var(--primary-soft); }
.summary-card.tracking-all::after { background: var(--info-soft); }
.summary-card.tracking-seven::after { background: var(--success-soft); }
.summary-card.tracking-new .summary-value { color: var(--primary); }
.summary-card.tracking-all .summary-value { color: var(--info); }
.summary-card.tracking-seven .summary-value { color: var(--success); }
.hit-tracking-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
}
.hit-tracking-period { display: flex; flex-direction: column; gap: 3px; min-width: 180px; }
.hit-tracking-period strong { color: var(--ink); font-size: 13px; }
.hit-tracking-period span { color: var(--muted); font-size: 11px; }
.hit-tracking-filters { flex: 1; justify-content: flex-end; }
.hit-tracking-filters .search-field { min-width: min(240px, 25vw); }
.hit-tracking-refresh { flex: 0 0 auto; color: var(--primary); border: 1px solid #f1c9bc; background: #fff; }
.hit-tracking-refresh:hover { border-color: var(--primary); background: var(--primary-faint); }
.hit-tracking-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hit-tracking-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #fbfcfe; }
.hit-tracking-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 49px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid var(--line);
  color: #5d6778;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.hit-tracking-tab:last-child { border-right: 0; }
.hit-tracking-tab span { min-width: 22px; padding: 2px 7px; border-radius: 10px; color: #718097; background: #edf1f6; font-size: 11px; }
.hit-tracking-tab:hover { color: var(--primary); background: #fff8f5; }
.hit-tracking-tab.active { position: relative; color: #fff; background: var(--primary); }
.hit-tracking-tab.active::after { position: absolute; right: 50%; bottom: -6px; width: 10px; height: 10px; content: ""; background: var(--primary); transform: translateX(50%) rotate(45deg); }
.hit-tracking-tab.active span { color: var(--primary); background: rgba(255,255,255,.92); }
.hit-tracking-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 17px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 12px; }
.hit-tracking-caption span:last-child { color: #8490a2; white-space: nowrap; }
.hit-tracking-list { padding: 12px; background: #fafbfc; }
.hit-tracking-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  margin-bottom: 9px;
  padding: 13px 15px;
  border: 1px solid #e8ebf1;
  border-left: 3px solid #5c8df5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(30, 41, 59, .035);
}
.hit-tracking-item:last-child { margin-bottom: 0; }
.hit-tracking-item:hover { border-color: #d8e0ee; border-left-color: var(--primary); box-shadow: 0 5px 13px rgba(30, 41, 59, .07); }
.hit-tracking-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #4b9dea; font-size: 12px; font-weight: 800; }
.hit-tracking-main { min-width: 0; }
.hit-tracking-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hit-tracking-title-row h3 { min-width: 0; margin: 0; overflow: hidden; color: #253247; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.hit-tracking-meta, .hit-tracking-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-top: 5px; color: #7a8495; font-size: 11px; }
.hit-tracking-meta span::before { margin-right: 5px; color: #a3adbb; content: "•"; }
.hit-tracking-meta span:first-child::before { margin-right: 5px; content: "⌂"; }
.hit-tracking-meta time { color: #8c96a6; white-space: nowrap; }
.hit-tracking-sources { gap: 6px; }
.hit-tracking-sources > span { color: #9aa4b2; }
.hit-tracking-source { color: var(--info); text-decoration: none; }
.hit-tracking-source:hover { color: var(--primary); text-decoration: underline; }
.hit-tracking-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 210px; padding-left: 15px; border-left: 1px solid #edf0f4; }
.hit-tracking-count { padding: 4px 8px; border-radius: 12px; color: #9a7108; background: var(--warning-soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hit-tracking-share { min-width: 82px; text-align: center; white-space: nowrap; }
.hit-tracking-share.disabled { min-width: 82px; color: #9aa4b2; font-size: 11px; text-align: center; white-space: nowrap; }
.hit-tracking-date { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--success); font-size: 13px; font-weight: 750; }
.hit-tracking-date:first-child { margin-top: 1px; }
.hit-tracking-date i { height: 1px; flex: 1; background: #ccecdf; }
.hit-tracking-pagination { border-top: 1px solid var(--line); }
.pagination-ellipsis { display: inline-grid; place-items: center; min-width: 22px; color: #9aa4b2; }

/* Dispatch tracking */
.dispatch-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dispatch-runtime-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: -3px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  overflow: hidden;
}
.dispatch-runtime-strip > div { min-width: 0; padding: 11px 14px; border-right: 1px solid var(--line); }
.dispatch-runtime-strip > div:last-child { border-right: 0; }
.dispatch-runtime-strip span { display: block; overflow: hidden; color: #8490a2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-runtime-strip strong { display: block; margin-top: 4px; overflow: hidden; color: #2d3b50; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-section { margin-top: 21px; }
.dispatch-section > .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.dispatch-section > .section-head h2 { margin: 0; color: #26364d; font-size: 16px; line-height: 1.3; }
.dispatch-section > .section-head p { margin: 4px 0 0; color: #7f8b9c; font-size: 12px; line-height: 1.45; }
.dispatch-account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 10px; }
.dispatch-account-card { min-width: 0; padding: 13px 14px; border: 1px solid #e5eaf1; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(30, 41, 59, .035); }
.dispatch-account-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.dispatch-account-head strong { min-width: 0; overflow: hidden; color: #344156; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-account-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-top: 11px; color: #7d899b; font-size: 11px; }
.dispatch-account-metrics span:first-child { grid-column: 1 / -1; }
.dispatch-account-metrics b { display: block; margin-top: 2px; overflow: hidden; color: #48576d; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-account-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #eef1f5; color: #929dad; font-size: 10px; }
.dispatch-daily-table th, .dispatch-daily-table td { white-space: nowrap; }
.dispatch-term-section { padding-top: 1px; }
.dispatch-tracking-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 11px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.dispatch-date-filter { display: flex; flex-direction: column; gap: 4px; color: #7c8797; font-size: 11px; }
.dispatch-date-filter .text-input { min-width: 142px; height: 34px; }
.dispatch-tracking-filters { flex: 1; justify-content: flex-end; }
.dispatch-tracking-filters .search-field { min-width: min(200px, 21vw); }
.dispatch-term-table td { vertical-align: middle; }
.dispatch-project-cell, .dispatch-policy-cell, .dispatch-job-cell, .dispatch-overall-cell, .dispatch-capture-state { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dispatch-project-cell strong, .dispatch-policy-cell span { overflow: hidden; color: #344156; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-project-cell small, .dispatch-policy-cell small, .dispatch-job-cell small, .dispatch-overall-cell small, .dispatch-capture-state small { overflow: hidden; color: #8994a5; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-capture-state { min-width: 100px; }
.dispatch-overall-cell { min-width: 122px; }
.dispatch-job-cell { min-width: 112px; }

@media (max-width: 1100px) {
  .dispatch-runtime-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-runtime-strip > div:nth-child(2) { border-right: 0; }
  .dispatch-runtime-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .dispatch-tracking-toolbar { align-items: stretch; flex-direction: column; }
  .dispatch-tracking-filters { width: 100%; justify-content: flex-start; }
  .dispatch-tracking-filters .search-field { flex: 1; min-width: 180px; }
}

@media (max-width: 760px) {
  .dispatch-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-runtime-strip { grid-template-columns: 1fr; }
  .dispatch-runtime-strip > div, .dispatch-runtime-strip > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .dispatch-runtime-strip > div:last-child { border-bottom: 0; }
  .dispatch-section > .section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dispatch-tracking-filters { align-items: stretch; flex-direction: column; }
  .dispatch-tracking-filters .search-field { width: 100%; }
  .dispatch-tracking-filters .primary-button, .dispatch-tracking-filters .secondary-button { flex: 1; }
}

@media (max-width: 1100px) {
  .hit-tracking-toolbar { align-items: stretch; flex-direction: column; }
  .hit-tracking-filters { width: 100%; justify-content: flex-start; }
  .hit-tracking-filters .search-field { flex: 1; min-width: 190px; }
}

@media (max-width: 760px) {
  .hit-tracking-summary { grid-template-columns: 1fr; }
  .hit-tracking-tabs { grid-template-columns: 1fr; }
  .hit-tracking-tab { min-height: 44px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hit-tracking-tab:last-child { border-bottom: 0; }
  .hit-tracking-tab.active::after { display: none; }
  .hit-tracking-caption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hit-tracking-list { padding: 9px; }
  .hit-tracking-item { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .hit-tracking-actions { grid-column: 2; justify-content: flex-start; min-width: 0; padding: 8px 0 0; border-top: 1px solid #edf0f4; border-left: 0; }
  .hit-tracking-title-row h3 { white-space: normal; }
  .hit-tracking-filters { align-items: stretch; flex-direction: column; }
  .hit-tracking-filters .search-field { width: 100%; }
  .hit-tracking-filters .primary-button, .hit-tracking-filters .secondary-button { flex: 1; }
  .hit-tracking-pagination { align-items: flex-start; flex-direction: column; }
}

/* Keep dialog dismissal visible without competing with the primary action. */
.icon-button.dialog-close-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  color: #7a8495;
  background: #fff;
  box-shadow: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.modal-header .dialog-close-button { margin-left: 8px; }
.drawer-actions { gap: 8px; }
.drawer-actions .dialog-close-button { margin-left: 2px; }
.icon-button.dialog-close-button:hover,
.icon-button.dialog-close-button:focus-visible {
  border-color: rgba(255, 107, 44, .42);
  color: var(--primary);
  background: var(--primary-faint);
  box-shadow: none;
  outline: 3px solid rgba(255, 107, 44, .28);
  outline-offset: 2px;
}
.preview-stage { position: relative; }
.icon-button.preview-close-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  background: rgba(16, 24, 40, .64);
}
.icon-button.preview-close-button:hover,
.icon-button.preview-close-button:focus-visible {
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
  background: rgba(16, 24, 40, .9);
}

.achievement-board-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.achievement-board-tab {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.achievement-board-tab span { font-weight: 750; color: var(--ink); }
.achievement-board-tab strong { color: var(--primary); font-size: 24px; line-height: 1; }
.achievement-board-tab small { color: var(--muted); font-size: 12px; }
.achievement-board-tab.active { border-color: rgba(255, 107, 44, .55); background: var(--primary-faint); box-shadow: 0 0 0 2px rgba(255, 107, 44, .09); }
.achievement-board-tab:hover { border-color: rgba(255, 107, 44, .4); }
.project-card-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.achievement-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.achievement-pill.in-progress { color: #1f6fcb; background: #edf4ff; }
.achievement-pill.achieved { color: #16845f; background: #eaf8f2; }

@media (max-width: 640px) {
  .achievement-board-tabs { grid-template-columns: 1fr; }
  .achievement-board-tab { min-height: 68px; }
  .project-card-tags { justify-content: flex-start; }
}

/* Project dashboard: per-day distinct complete-hit details. */
.dashboard-daily-hit-link {
  padding: 2px 0;
  border: 0;
  color: var(--data-blue, #216fe5);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dashboard-daily-hit-link:hover,
.dashboard-daily-hit-link:focus-visible { color: var(--primary); text-decoration: underline; }
.dashboard-daily-hit-link:focus-visible { outline: 2px solid rgba(255, 107, 44, .24); outline-offset: 3px; }
.dashboard-daily-hit-disabled { white-space: nowrap; }
.dashboard-daily-hits-summary {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(190px, .9fr) minmax(360px, 2.4fr);
  align-items: stretch;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  overflow: hidden;
}
.dashboard-daily-hits-summary > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.dashboard-daily-hits-summary span { display: block; color: var(--muted); font-size: 11px; }
.dashboard-daily-hits-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: 20px; line-height: 1.2; }
.dashboard-daily-hits-summary p { align-self: center; margin: 0; padding: 13px 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dashboard-daily-hits-toolbar { align-items: center; }
.dashboard-daily-hits-toolbar .search-field { min-width: min(420px, 42vw); }
.dashboard-daily-hits-card .card-header > div { min-width: 0; }
.dashboard-daily-hits-card .card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.dashboard-daily-hits-scroll { max-height: min(620px, 68vh); }
.dashboard-daily-hits-scroll table { min-width: 1260px; }
.dashboard-daily-hits-scroll th,
.dashboard-daily-hits-scroll td { vertical-align: middle; }
.dashboard-daily-hits-scroll th:first-child,
.dashboard-daily-hits-scroll td:first-child { width: 64px; text-align: center; }
.dashboard-sequence-cell { color: var(--muted); font-variant-numeric: tabular-nums; }
.dashboard-daily-query-cell { min-width: 260px; max-width: 380px; }
.dashboard-daily-query-cell .query-link { white-space: normal; line-height: 1.45; }
.dashboard-share-link { white-space: nowrap; }
.dashboard-daily-sources { display: flex; max-width: 270px; flex-direction: column; align-items: flex-start; gap: 4px; }
.dashboard-daily-source { display: block; max-width: 100%; overflow: hidden; color: var(--data-blue, #216fe5); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-daily-source:hover { color: var(--primary); text-decoration: underline; }
.dashboard-source-more { color: var(--muted); font-size: 10px; }
.dashboard-entry-source { display: flex; min-width: 92px; flex-direction: column; align-items: flex-start; gap: 5px; }
.dashboard-entry-source small,
.dashboard-rate-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.dashboard-first-hit-no { color: var(--muted); font-size: 11px; white-space: nowrap; }
.dashboard-daily-hits-pagination { flex-wrap: wrap; }

/* Project-scoped navigation collapses into one discoverable entry until a
   project is selected, then expands automatically with the regular items. */
.project-scope-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: project-scope-expand .16s ease-out;
}
.project-scope-collapsed {
  min-height: 48px;
  border: 1px dashed #d5dce7;
  color: #7d8797;
  background: #f6f8fa;
  cursor: pointer;
}
.project-scope-collapsed:hover,
.project-scope-collapsed:focus-visible {
  border-color: #b9c5d5;
  color: #596980;
  background: #eef2f6;
  outline: 2px solid rgba(89, 105, 128, .16);
  outline-offset: 2px;
  transform: none;
}
.project-scope-collapsed .project-scope-chevron { color: #909cad; font-size: 22px; }
.project-scope-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.project-scope-copy strong { color: currentColor; font-size: 13px; line-height: 1.2; }
.project-scope-copy small { color: #9aa4b2; font-size: 10px; font-weight: 500; line-height: 1.2; }
.project-scope-collapsed .side-lock {
  margin-left: auto;
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}
@keyframes project-scope-expand {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .dashboard-daily-hits-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-daily-hits-summary > div:nth-child(2) { border-right: 0; }
  .dashboard-daily-hits-summary p { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .dashboard-daily-hits-toolbar { align-items: stretch; }
  .dashboard-daily-hits-toolbar .toolbar-left { width: 100%; }
  .dashboard-daily-hits-toolbar .search-field { flex: 1; min-width: 220px; }
}

@media (max-width: 640px) {
  .dashboard-daily-hits-summary { grid-template-columns: 1fr; }
  .dashboard-daily-hits-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-daily-hits-summary p { grid-column: auto; border-top: 0; }
  .dashboard-daily-hits-toolbar .toolbar-left { align-items: stretch; flex-direction: column; }
  .dashboard-daily-hits-toolbar .search-field { width: 100%; min-width: 0; }
  .dashboard-daily-hits-pagination { justify-content: center; }
}

@media (max-width: 900px) {
  .project-scope-collapsed { min-height: 42px; }
  .project-scope-collapsed .side-lock { display: none; }
}

/* 20260901 brand assets v2: preserve source aspect ratios at every breakpoint. */
.auth-brand-logo,
.login-brand-logo,
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}
.auth-brand-logo {
  width: min(300px, 100%);
  max-height: 82px;
  object-position: left center;
}
.auth-card-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 58px;
  margin: -8px 0 12px;
}
.login-brand-logo {
  width: min(205px, 100%);
  max-height: 74px;
}
.brand {
  width: 220px;
}
.brand-logo {
  width: min(202px, 100%);
  max-height: 58px;
  object-position: left center;
}
@media (max-width: 760px) {
  .brand { width: 158px; }
  .brand-logo { width: min(158px, 100%); max-height: 47px; }
  .auth-card-logo { justify-content: center; }
  .auth-brand-logo { width: min(250px, 100%); max-height: 72px; }
  .login-brand-logo { width: min(190px, 100%); max-height: 68px; }
}
@media (max-width: 480px) {
  .brand { width: 145px; }
  .brand-logo { width: min(145px, 100%); max-height: 43px; }
}

/* 20260901 topbar pairing: keep the icon and full logo crisp without distortion. */
.brand {
  width: 250px;
  gap: 8px;
}
.brand-icon {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  object-fit: contain;
}
.brand-logo {
  width: 190px;
  height: auto;
  max-width: calc(100% - 40px);
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 1250px) {
  .brand { width: 225px; }
  .brand-logo { width: 178px; }
}

/* 20260907 admin project center: visual alignment with the supplied board. */
.app-shell .sidebar {
  padding: 34px 7px 72px;
  border-right: 1px solid #eceff3;
  background: #fff;
  box-shadow: none;
}
.app-shell .project-name {
  margin: 0 12px 16px;
  padding: 0 6px;
  color: #8d929b;
  font-size: 12px;
  font-weight: 600;
}
.app-shell .project-name.project-name-current {
  display: flex;
  width: calc(100% - 24px);
  min-height: 58px;
  margin-bottom: 8px;
  padding: 9px 12px 10px;
  overflow: hidden;
  border: 1px solid #f2d8cc;
  border-radius: 8px;
  background: #fff8f4;
  color: #252a32;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.app-shell .project-name.project-name-current:hover {
  border-color: #efbca7;
  background: #fff3ed;
}
.app-shell .project-name-eyebrow {
  color: #a0a5ad;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.app-shell .project-name-value {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #252a32;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .side-nav { gap: 4px; }
.app-shell .side-item {
  min-height: 45px;
  padding: 0 17px;
  border-left: 4px solid transparent;
  border-radius: 0 8px 8px 0;
  color: #252a32;
  font-weight: 620;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.app-shell .side-item:hover {
  color: var(--primary);
  background: #fff7f3;
  transform: none;
}
.app-shell .side-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: #fff0e9;
  box-shadow: none;
}
.app-shell .side-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #1f2733;
  font-size: 16px;
}
.app-shell .side-item:hover .side-icon,
.app-shell .side-item.active .side-icon { color: var(--primary); }
.side-nav-svg { display: block; width: 20px; height: 20px; }
.app-shell .side-label {
  padding: 13px 18px 7px;
  color: #a0a5ad;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}
.app-shell .side-label-top { padding-top: 8px; }
.app-shell .side-divider { margin: 12px 14px 0; background: #eceff3; }
.app-shell .content {
  padding: 29px 37px 48px;
  background: #f7f7f8;
}
.app-shell .page-head { margin-bottom: 20px; }
.app-shell .page-head h1 { color: #171b21; font-size: 27px; font-weight: 780; }
.app-shell .page-head p { color: #a2a5ab; }
.app-shell .head-actions .primary-button {
  min-height: 36px;
  padding-inline: 20px;
  border-radius: 9px;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(255,107,44,.18);
}
.app-shell .head-actions .primary-button:hover { background: var(--primary-hover); }
.app-shell .achievement-board-tabs { gap: 19px; margin: 0 0 31px; }
.app-shell .achievement-board-tab {
  min-height: 136px;
  padding: 26px 24px;
  border: 1px solid #f0f0f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(29, 35, 44, .035);
}
.app-shell .achievement-board-tab span { color: #1b1f25; font-size: 19px; font-weight: 760; }
.app-shell .achievement-board-tab strong { color: var(--primary); font-size: 41px; font-weight: 740; letter-spacing: -.8px; }
.app-shell .achievement-board-tab small { color: #8d929a; font-size: 12px; }
.app-shell .achievement-board-tab.active { border-color: var(--primary); background: #fffaf7; box-shadow: 0 0 0 1px rgba(255,107,44,.08); }
.app-shell .achievement-board-tab:hover { border-color: #ffb69a; }
.app-shell .project-stats { gap: 24px; margin-bottom: 20px; }
.app-shell .stat-tile {
  min-height: 79px;
  padding: 14px 21px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(29, 35, 44, .035);
}
.app-shell .stat-tile strong { margin-top: 2px; color: #3977ee; font-size: 31px; }
.app-shell .stat-tile::after { right: -19px; bottom: -30px; width: 77px; height: 77px; background: #fff0e9; }
.app-shell .toolbar { margin-bottom: 17px; }
.app-shell .toolbar-left > strong { color: #171b21; font-size: 17px; }
.app-shell .filters input,
.app-shell .filters select { min-height: 34px; border-color: #eceff2; background: #fff; }
.app-shell .filters .secondary-button { min-height: 34px; color: var(--primary); border-color: var(--primary); background: #fff; }
.app-shell .project-grid { gap: 18px; }
.app-shell .project-card {
  min-height: 272px;
  padding: 19px 20px 0;
  border: 1px solid #eceef1;
  border-top: 3px solid var(--primary);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(29, 35, 44, .055);
}

/* 项目中心筛选下拉：与设计稿保持统一的轻量白色控件和橙色选中态。 */
.app-shell #projectStatus,
.app-shell #projectSearchType {
  width: 130px;
  min-width: 130px;
  height: 32px;
  min-height: 32px;
  padding: 5px 31px 5px 12px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  color: #2f343b;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 10px 6px;
  box-shadow: 0 2px 8px rgba(31, 40, 52, .035);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.app-shell #projectStatus,
.app-shell #projectSearchType {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23777b80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.app-shell #projectStatus:focus,
.app-shell #projectSearchType:focus,
.app-shell #projectStatus:focus-visible,
.app-shell #projectSearchType:focus-visible {
  border-color: rgba(255, 107, 44, .62);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 5l4-4 4 4' fill='none' stroke='%23ff6b2c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .09), 0 3px 10px rgba(31, 40, 52, .04);
  outline: 0;
}
.app-shell #projectStatus:hover,
.app-shell #projectSearchType:hover { border-color: #d9dde3; }
.app-shell #projectStatus option,
.app-shell #projectSearchType option { color: #2f343b; background: #fff; }
.app-shell #projectStatus option:checked,
.app-shell #projectSearchType option:checked { color: #ff6b2c; background: #fff0e9; }
.app-shell .project-card::before { display: none; }
.app-shell .project-card:hover { transform: translateY(-2px); border-color: #ffd1bf; box-shadow: 0 12px 24px rgba(29,35,44,.09); }
.app-shell .project-card-head { min-height: 49px; align-items: flex-start; }
.app-shell .project-card-title { min-width: 0; flex: 1; }
.app-shell .project-card h3 { color: #171b21; font-size: 16px; font-weight: 760; }
.app-shell .project-card-description {
  height: 20px;
  margin: 3px 0 0;
  color: #92969d;
  font-size: 11px;
  line-height: 1.6;
}
.app-shell .project-card-head-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 48%; }
.app-shell .project-card-head-tags .tag,
.app-shell .project-card-head-tags .status-pill { min-height: 22px; padding: 2px 9px; border-radius: 5px; font-size: 10px; font-weight: 650; }
.app-shell .project-card-head-tags .status-pill.processing { color: #216fe5; background: #e8f0ff; }
.app-shell .project-card-head-tags .status-pill.pending { color: #b57716; background: #fff5dd; }
.app-shell .project-card-monitoring-status { margin-top: 9px; }
.app-shell .project-card-monitoring-status .achievement-pill { min-height: 21px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 650; }
.app-shell .project-meta { gap: 11px; margin-top: 18px; color: #8d929a; }
.app-shell .project-meta span { line-height: 1.8; }
.app-shell .project-meta strong { color: #262b33; font-weight: 650; }
.app-shell .project-card-footer {
  min-height: 52px;
  margin: 18px -20px 0;
  padding: 10px 20px;
  border-top: 1px solid #eceef1;
}
.app-shell .project-counts { gap: 12px; color: #8d929a; font-size: 11px; }
.app-shell .project-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.app-shell .project-icon-button {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 5px;
  color: #68717c;
  background: #fff;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.app-shell .project-icon-button svg { width: 16px; height: 16px; }
.app-shell .project-icon-button:hover { color: var(--primary); border-color: #ffbca3; background: #fff8f4; }
.app-shell .project-icon-button.danger-text:hover { color: var(--danger); border-color: #f2b9c2; background: var(--danger-soft); }
.app-shell .project-enter-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  color: var(--primary);
  background: #fff0e9;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.app-shell .project-enter-button svg { width: 13px; height: 13px; }
.app-shell .project-enter-button:hover { color: #fff; background: var(--primary); transform: translateY(-1px); }

@media (max-width: 900px) {
  .app-shell .content { padding: 24px 22px 42px; }
  .app-shell .achievement-board-tab { min-height: 112px; padding: 21px; }
  .app-shell .achievement-board-tab strong { font-size: 34px; }
  .app-shell .project-card { min-height: 260px; }
}
@media (max-width: 640px) {
  .app-shell .achievement-board-tabs { grid-template-columns: 1fr; gap: 11px; margin-bottom: 20px; }
  .app-shell .achievement-board-tab { min-height: 90px; padding: 17px 19px; }
  .app-shell .achievement-board-tab span { font-size: 16px; }
  .app-shell .achievement-board-tab strong { font-size: 30px; }
  .app-shell .project-card-head { flex-direction: column; gap: 8px; }
  .app-shell .project-card-head-tags { justify-content: flex-start; max-width: 100%; }
  .app-shell .project-card-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .app-shell .project-card-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 960px) {
  .app-shell .project-name.project-name-current { display: none; }
}
@media (max-width: 760px) {
  .brand { width: 190px; gap: 7px; }
  .brand-icon { width: 29px !important; height: 29px !important; max-width: 29px !important; }
  .brand-logo { width: 150px; max-height: 45px; }
  .project-scope-nav { display: contents; }
  .project-context-global-item { display: none; }
}
@media (max-width: 480px) {
  .brand { width: 178px; }
  .brand-logo { width: 140px; max-height: 42px; }
}

/* 20260904 login UI: scoped to the authentication screen. */
.auth-view {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #f7f6f7;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "DengXian", "Segoe UI", sans-serif;
}
.auth-view .auth-backdrop {
  background:
    linear-gradient(112deg, rgba(255, 224, 201, .72) 0%, rgba(255, 240, 228, .34) 31%, transparent 54%),
    linear-gradient(286deg, rgba(214, 231, 252, .75) 0%, rgba(234, 242, 253, .38) 34%, transparent 59%),
    linear-gradient(108deg, #fff9f4 0%, #fcf7f3 34%, #f7f5f6 57%, #eef5fd 100%);
}
.auth-view .auth-backdrop::before,
.auth-view .auth-backdrop::after {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  pointer-events: none;
}
.auth-view .auth-backdrop::before {
  background:
    repeating-linear-gradient(0deg, rgba(45, 56, 75, .025) 0, rgba(45, 56, 75, .025) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0, rgba(255, 255, 255, .08) 1px, transparent 1px, transparent 5px);
  opacity: .28;
}
.auth-view .auth-backdrop::after {
  background: linear-gradient(102deg, transparent 19%, rgba(255, 255, 255, .42) 47%, rgba(255, 255, 255, .08) 66%, transparent 82%);
}
.auth-view .auth-layout {
  width: min(1264px, calc(100% - 64px));
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: 670px 448px;
  justify-content: start;
  gap: 96px;
  padding: 32px 0;
}
.auth-view .auth-intro {
  width: 670px;
  max-width: none;
  color: #121a29;
  transform: translateY(-22px);
}
.auth-view .auth-brand {
  display: flex;
  width: 365px;
}
.auth-view .auth-brand-logo {
  width: 365px;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.auth-view .eyebrow {
  margin: 11px 0 18px;
  color: #ff6428;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 4px;
}
.auth-view .auth-intro h1 {
  margin: 0 0 26px;
  color: #111827;
  font-size: 57px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0;
  white-space: nowrap;
}
.auth-view .auth-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin-top: 0;
}
.auth-view .auth-feature-grid > div {
  min-height: 94px;
  justify-content: center;
  gap: 1px;
  padding: 18px 21px;
  border: 1px solid rgba(228, 229, 233, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 20px rgba(37, 45, 58, .07);
}
.auth-view .auth-feature-grid strong {
  color: #161d2a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
.auth-view .auth-feature-grid span {
  color: #9297a0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.auth-view .auth-card {
  width: 448px;
  min-height: 488px;
  margin: 0;
  padding: 35px 47px 30px 33px;
  border: 1px solid rgba(234, 235, 238, .9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(29, 35, 48, .16);
}
.auth-view .auth-card h2 {
  margin: 0 0 25px;
  color: #0f1115;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.auth-view .auth-card .field-label {
  margin: 0 0 3px;
  color: #171a20;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}
.auth-view .auth-card #loginUsername + .field-label {
  margin-top: 29px;
}
.auth-view .auth-card .text-input.large {
  height: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border-color: #d9dadd;
  border-radius: 5px;
  color: #171a20;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .025);
}
.auth-view .auth-card .text-input.large:hover {
  border-color: #c7c9ce;
}
.auth-view .auth-card .text-input.large:focus {
  border-color: #ff7a42;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .11);
}
.auth-view .password-field .text-input {
  padding-right: 46px;
}
.auth-view .password-field .icon-button {
  top: 4px;
  right: 5px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #171a20;
}
.auth-view .password-eye {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-view .password-eye-open {
  display: none;
}
.auth-view .password-eye-off {
  display: block;
}
.auth-view .password-field.password-visible .password-eye-open {
  display: block;
}
.auth-view .password-field.password-visible .password-eye-off {
  display: none;
}
.auth-view .check-label {
  margin-top: 13px;
  gap: 8px;
  color: #555a63;
  font-size: 13px;
}
.auth-view .check-label input {
  width: 15px;
  height: 15px;
  margin: 0;
}
.auth-view .auth-submit {
  width: 100%;
  height: 62px !important;
  margin-top: 30px;
  border-radius: 8px !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}
.auth-view .auth-submit:hover {
  transform: none;
  box-shadow: none;
}
.auth-view .auth-hint {
  margin: 18px 0 0;
  color: #9a9da3;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
.auth-view .form-error {
  margin: 10px 0 -12px;
}

@media (max-width: 1320px) {
  .auth-view .auth-layout {
    width: min(1152px, calc(100% - 56px));
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 64px;
  }
  .auth-view .auth-intro { width: auto; }
  .auth-view .auth-intro h1 { font-size: 48px; }
  .auth-view .auth-card { width: 430px; }
  .auth-view .auth-feature-grid { gap-inline: 20px; }
}

@media (max-width: 1040px) {
  .auth-view .auth-layout {
    width: min(920px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
  }
  .auth-view .auth-brand,
  .auth-view .auth-brand-logo { width: 300px; }
  .auth-view .auth-intro h1 { font-size: 42px; }
  .auth-view .auth-feature-grid { gap: 12px; }
  .auth-view .auth-feature-grid > div { min-height: 86px; padding: 15px 17px; }
  .auth-view .auth-card { width: 400px; padding-inline: 30px; }
}

@media (max-width: 900px) {
  .auth-view {
    overflow: auto;
  }
  .auth-view .auth-layout {
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    place-content: center;
    padding: 28px 20px;
  }
  .auth-view .auth-intro { display: none; transform: none; }
  .auth-view .auth-card {
    width: 100%;
    max-width: 448px;
    min-height: 0;
    margin: 0;
    padding: 30px 34px 28px;
    justify-self: center;
  }
  .auth-view .mobile-brand {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
  }
  .auth-view .mobile-brand .auth-brand-logo {
    width: min(260px, 100%);
    max-height: none;
    object-position: center;
  }
  .auth-view .auth-card h2 {
    margin-bottom: 22px;
    font-size: 32px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .auth-view .auth-layout { padding: 20px 14px; }
  .auth-view .auth-card {
    padding: 27px 22px 24px;
    border-radius: 14px;
  }
  .auth-view .mobile-brand { margin-bottom: 17px; }
  .auth-view .mobile-brand .auth-brand-logo { width: min(230px, 100%); }
  .auth-view .auth-card h2 { font-size: 30px; }
  .auth-view .auth-submit { height: 54px !important; margin-top: 28px; }
  .auth-view .auth-hint {
    max-width: 290px;
    margin-inline: auto;
    white-space: normal;
  }
}

/* Scoped data-overview and project-filter controls. The native selects remain
   in the DOM as the value source for the existing filter handlers. */
.app-shell .custom-select {
  position: relative;
  display: block;
  min-width: 0;
}
.app-shell .custom-select.project-filter-select {
  flex: 0 0 130px;
  width: 130px;
}
.app-shell .custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.app-shell .custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 11px 0 12px;
  border: 1px solid #e5e8ed;
  border-radius: 8px;
  color: #424b58;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 40, 52, .035);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.app-shell .custom-select-trigger:hover,
.app-shell .custom-select.is-open .custom-select-trigger {
  border-color: rgba(255, 107, 44, .52);
  background: #fffaf7;
}
.app-shell .custom-select-trigger:focus-visible {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .11);
}
.app-shell .custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .custom-select-chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 7px;
  margin-left: 8px;
  stroke: #7d8591;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s, stroke .16s;
}
.app-shell .custom-select.is-open .custom-select-chevron {
  stroke: var(--primary);
  transform: rotate(180deg);
}
.app-shell .custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 100%;
  max-width: min(320px, calc(100vw - 28px));
  max-height: 260px;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e9ebef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 37, 51, .14);
}
.app-shell .custom-select-option {
  flex: 0 0 auto;
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: #4c5562;
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.app-shell .custom-select-option:hover,
.app-shell .custom-select-option:focus-visible,
.app-shell .custom-select-option.selected {
  color: var(--primary);
  background: var(--primary-soft);
  outline: 0;
}
.app-shell .custom-select-option.selected { font-weight: 700; }

.app-shell .overview-filter-panel {
  padding: 15px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(29, 37, 51, .045);
}
.app-shell .overview-filter-grid {
  grid-template-columns: minmax(175px, 1fr) minmax(175px, 1fr) minmax(135px, .8fr) minmax(135px, .8fr) minmax(220px, 1.65fr) auto;
  align-items: end;
  gap: 12px;
}
.app-shell .overview-filter-grid label { min-width: 0; }
.app-shell .overview-filter-grid label > span {
  margin-bottom: 6px;
  color: #7b8491;
  font-size: 11px;
  font-weight: 700;
}
.app-shell .overview-filter-grid .text-input,
.app-shell .overview-filter-grid .custom-select-trigger {
  min-height: 36px;
  height: 36px;
  border-color: #e5e8ed;
  border-radius: 8px;
  background: #fff;
}
.app-shell .overview-filter-grid .text-input:focus {
  border-color: rgba(255, 107, 44, .58);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .1);
}
.app-shell .overview-filter-select-field .custom-select { width: 100%; }
.app-shell .overview-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 36px;
}
.app-shell .overview-filter-actions .overview-refresh {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #f2c9b8;
  border-radius: 8px;
  color: var(--primary);
  background: #fff;
  font-size: 21px;
  line-height: 1;
}
.app-shell .overview-filter-actions .overview-refresh:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.app-shell .overview-filter-actions .secondary-button,
.app-shell .overview-filter-actions .primary-button {
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
}
.app-shell .overview-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.app-shell .overview-metric {
  min-height: 112px;
  padding: 17px 16px;
  border-radius: 9px;
  border-top: 3px solid transparent;
  box-shadow: 0 5px 16px rgba(29, 37, 51, .055);
}
.app-shell .overview-summary-grid .overview-metric:nth-child(odd) { border-top-color: var(--primary); }
.app-shell .overview-summary-grid .overview-metric:nth-child(even) { border-top-color: var(--data-blue); }
.app-shell .overview-summary-grid .overview-metric:nth-child(odd) > strong { color: var(--primary); }
.app-shell .overview-summary-grid .overview-metric:nth-child(even) > strong { color: var(--data-blue); }
.app-shell .overview-metric > strong { margin-top: 8px; font-size: 30px; letter-spacing: 0; }
.app-shell .overview-metric > small { margin-top: 5px; }
.app-shell .overview-table-card { border-radius: 9px; }
.app-shell .overview-table .overview-group-head:not(.monitoring) { background: #fff7f2 !important; }
.app-shell .overview-table .overview-group-head.monitoring { background: #edf3ff !important; }
.app-shell .overview-table thead th:first-child { background: #fff !important; }
.app-shell .overview-project-cell .query-link { color: var(--data-blue); font-weight: 700; }
.app-shell .overview-project-cell .helper-text { color: #a0a6af; font-size: 11px; }
.app-shell .search-scope { background: transparent; }

@media (max-width: 1240px) {
  .app-shell .overview-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .overview-filter-actions { justify-content: flex-end; }
}
@media (max-width: 960px) {
  .app-shell .overview-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .overview-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell .custom-select.project-filter-select { flex: 1 1 0; width: auto; min-width: 0; }
  .app-shell .overview-filter-grid { grid-template-columns: 1fr; }
  .app-shell .overview-filter-actions { justify-content: stretch; }
  .app-shell .overview-filter-actions > * { flex: 1 1 0; }
  .app-shell .overview-filter-actions .overview-refresh { flex: 0 0 36px; }
}
@media (max-width: 480px) {
  .app-shell .overview-summary-grid { grid-template-columns: 1fr; }
}

.app-shell .articles-page .page-head {
  margin-bottom: 28px;
}
.app-shell .articles-page .page-head h1 {
  font-size: 25px;
  font-weight: 780;
}
.app-shell .articles-page .page-head p {
  margin-top: 7px;
  color: #a1a5ab;
  font-size: 12px;
}
.app-shell .article-toolbar {
  min-height: 38px;
  margin-bottom: 18px;
}
.app-shell .article-create-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(255, 107, 44, .16);
  font-size: 13px;
}
.app-shell .article-create-button > span {
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}
.app-shell .article-search-field {
  width: min(420px, 34vw);
  min-width: 290px;
}
.app-shell .article-search-field::before {
  content: none;
}
.app-shell .article-search-field input {
  width: 100%;
  min-height: 36px;
  padding: 7px 42px 7px 14px;
  border-color: #e5e7eb;
  border-radius: 8px;
  color: #3f4650;
  background: #fff;
  font-size: 12px;
}
.app-shell .article-search-field input::placeholder {
  color: #a4a8ae;
}
.app-shell .article-search-button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 39px;
  height: 36px;
  padding: 0;
  border: 0;
  border-left: 1px solid transparent;
  border-radius: 0 8px 8px 0;
  color: #252a31;
  background: transparent;
  cursor: pointer;
}
.app-shell .article-search-button:hover,
.app-shell .article-search-button:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: 0;
}
.app-shell .article-search-button svg {
  width: 17px;
  height: 17px;
}
.app-shell .article-table-card {
  border-color: #dedede;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(29, 37, 51, .045);
}
.app-shell .article-table {
  min-width: 980px;
  table-layout: fixed;
}
.app-shell .article-table th,
.app-shell .article-table td {
  height: 67px;
  padding: 11px 14px;
}
.app-shell .article-table th {
  height: 48px;
  color: #343a43;
  background: #fffaf7;
  box-shadow: inset 0 -1px 0 #d9d9d9;
  font-size: 12px;
  font-weight: 650;
}
.app-shell .article-table .article-title-head { width: 48%; }
.app-shell .article-table .article-status-head { width: 12%; }
.app-shell .article-table .article-creator-head { width: 12%; }
.app-shell .article-table .article-time-head { width: 16%; }
.app-shell .article-table .action-column { width: 150px; text-align: center; }
.app-shell .article-table tbody tr:hover {
  background: #fffaf7;
  box-shadow: inset 3px 0 0 var(--primary);
}
.app-shell .article-title-cell strong {
  display: block;
  overflow: hidden;
  color: #252a31;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .article-title-cell .helper-text {
  margin-top: 4px;
  color: #a2a7ad;
  font-size: 10px;
}
.app-shell .article-fetch-status {
  min-width: 82px;
  min-height: 20px;
  padding: 1px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  background: transparent;
}
.app-shell .article-fetch-status.success {
  color: #377cf3;
  background: #eef4ff;
}
.app-shell .article-fetch-status.warning {
  color: var(--primary);
  background: #fff7f2;
}
.app-shell .article-actions {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
}
.app-shell .article-icon-action,
.app-shell .article-visit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  margin: 0 3px;
  border: 1px solid #ff9f78;
  border-radius: 5px;
  color: var(--primary);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
.app-shell .article-icon-action {
  width: 25px;
  padding: 0;
}
.app-shell .article-icon-action svg,
.app-shell .article-visit-action svg {
  width: 14px;
  height: 14px;
}
.app-shell .article-visit-action {
  gap: 4px;
  min-width: 50px;
  padding: 0 8px;
  font-size: 11px;
}
.app-shell .article-icon-action:hover,
.app-shell .article-icon-action:focus-visible,
.app-shell .article-visit-action:hover,
.app-shell .article-visit-action:focus-visible {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  outline: 0;
  text-decoration: none;
}
.app-shell .article-icon-action.danger {
  color: var(--primary);
}
.app-shell .article-table-card .pagination-bar {
  min-height: 43px;
  padding: 8px 14px;
  border-top-color: #ececec;
  color: #9ba0a7;
  background: #fff;
}
.app-shell .article-empty-card {
  border-radius: 8px;
}

@media (max-width: 760px) {
  .app-shell .article-toolbar { gap: 12px; }
  .app-shell .article-toolbar .toolbar-left,
  .app-shell .article-toolbar .toolbar-right { width: 100%; }
  .app-shell .article-search-field { width: 100%; min-width: 0; }
  .app-shell .article-create-button { width: auto; }
  .app-shell .article-table th,
  .app-shell .article-table td { height: 62px; }
}

/* 独立的时间维度命中明细页：使用页面级作用域，避免继承通用搜索框的伪元素。 */
.app-shell .dashboard-daily-hits-page .page-head { margin-bottom: 22px; }
.app-shell .dashboard-daily-hits-page .page-head h1 { font-size: 25px; font-weight: 780; }
.app-shell .dashboard-daily-hits-page .page-head p { margin-top: 7px; color: #a1a5ab; font-size: 12px; }
.app-shell .dashboard-daily-hits-page .head-actions { gap: 8px; }
.app-shell .dashboard-daily-hits-page .head-actions .secondary-button,
.app-shell .dashboard-daily-hits-page .head-actions .primary-button { min-height: 35px; height: 35px; border-radius: 8px; font-size: 12px; }
.app-shell .dashboard-daily-hits-page .head-actions .secondary-button { border-color: #e1e5eb; color: #5b6471; }
.app-shell .dashboard-daily-hits-page .head-actions .primary-button { box-shadow: 0 5px 12px rgba(255, 107, 44, .14); }
.app-shell .dashboard-daily-hits-summary { grid-template-columns: minmax(150px, .7fr) minmax(190px, .9fr) minmax(360px, 2.4fr); margin-bottom: 17px; border-color: #e1e4e8; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(29, 37, 51, .035); }
.app-shell .dashboard-daily-hits-summary > div { padding: 15px 17px; border-right-color: #edf0f3; }
.app-shell .dashboard-daily-hits-summary span { color: #8b929b; font-size: 11px; }
.app-shell .dashboard-daily-hits-summary strong { color: #252b34; font-size: 21px; }
.app-shell .dashboard-daily-hits-summary p { padding: 14px 17px; color: #858c95; font-size: 11px; }
.app-shell .dashboard-daily-hits-toolbar { align-items: center; min-height: 38px; margin-bottom: 17px; }
.app-shell .dashboard-daily-hits-filter-actions { gap: 8px; }
.app-shell .dashboard-daily-hits-search-field { position: relative; width: min(390px, 36vw); min-width: 280px; }
.app-shell .dashboard-daily-hits-search-field::before { content: none; }
.app-shell .dashboard-daily-hits-search-field > span { position: absolute; z-index: 1; top: 0; left: 0; display: grid; place-items: center; width: 38px; height: 36px; color: #9299a2; pointer-events: none; }
.app-shell .dashboard-daily-hits-search-field > span svg { width: 16px; height: 16px; }
.app-shell .dashboard-daily-hits-search-field .text-input { width: 100%; min-height: 36px; padding: 7px 12px 7px 38px; border-color: #e3e6eb; border-radius: 8px; color: #3f4650; background: #fff; box-shadow: none; font-size: 12px; }
.app-shell .dashboard-daily-hits-search-field .text-input:focus { border-color: rgba(255, 107, 44, .62); box-shadow: 0 0 0 3px rgba(255, 107, 44, .09); outline: 0; }
.app-shell .dashboard-daily-hits-search-button,
.app-shell .dashboard-daily-hits-reset-button { min-height: 36px; height: 36px; border-radius: 8px; font-size: 12px; }
.app-shell .dashboard-daily-hits-search-button { min-width: 62px; box-shadow: 0 5px 12px rgba(255, 107, 44, .13); }
.app-shell .dashboard-daily-hits-reset-button { border-color: #e3e6eb; color: #69727e; }
.app-shell .dashboard-daily-hits-scope { gap: 7px; color: #8a919a; font-size: 11px; }
.app-shell .dashboard-daily-hits-scope-dot { width: 6px; height: 6px; border-radius: 50%; background: #8bb4ff; }
.app-shell .dashboard-daily-hits-card { border-color: #dfe3e8; border-radius: 9px; box-shadow: 0 5px 18px rgba(29, 37, 51, .04); }
.app-shell .dashboard-daily-hits-card .card-header { min-height: 67px; padding: 14px 17px; border-bottom-color: #eceef1; }
.app-shell .dashboard-daily-hits-card .card-header h2 { color: #252b34; font-size: 15px; font-weight: 700; }
.app-shell .dashboard-daily-hits-card .card-header p { margin-top: 4px; color: #9aa0a8; font-size: 11px; }
.app-shell .dashboard-daily-hits-total { color: #8a919a; font-size: 11px; white-space: nowrap; }
.app-shell .dashboard-daily-hits-table { min-width: 1160px; table-layout: fixed; }
.app-shell .dashboard-daily-hits-table th,
.app-shell .dashboard-daily-hits-table td { height: 57px; padding: 10px 13px; font-size: 11px; }
.app-shell .dashboard-daily-hits-table th { height: 46px; color: #424952; background: #fffaf7; box-shadow: inset 0 -1px 0 #e0e2e5; font-size: 11px; font-weight: 700; }
.app-shell .dashboard-daily-hits-table tbody tr:hover { background: #fff8f4; box-shadow: inset 3px 0 0 var(--primary); }
.app-shell .dashboard-daily-hits-table th:first-child,
.app-shell .dashboard-daily-hits-table td:first-child { width: 56px; text-align: center; }
.app-shell .dashboard-daily-hits-table th:nth-child(2) { width: 29%; }
.app-shell .dashboard-daily-hits-table th:nth-child(3) { width: 12%; }
.app-shell .dashboard-daily-hits-table th:nth-child(4) { width: 12%; }
.app-shell .dashboard-daily-hits-table th:nth-child(5) { width: 16%; }
.app-shell .dashboard-daily-hits-table th:nth-child(6) { width: 11%; }
.app-shell .dashboard-daily-hits-table th:nth-child(7) { width: 9%; }
.app-shell .dashboard-daily-hits-table th:nth-child(8) { width: 10%; }
.app-shell .dashboard-daily-hits-table .dashboard-sequence-cell { color: #9ba1aa; font-size: 10px; }
.app-shell .dashboard-daily-hits-table .dashboard-daily-query-cell { min-width: 0; max-width: none; }
.app-shell .dashboard-daily-hits-table .dashboard-daily-query-cell .query-link { color: #2d6cdf; font-size: 11px; font-weight: 700; }
.app-shell .dashboard-daily-hits-table .dashboard-daily-query-cell .query-link:hover { color: #1f64df; }
.app-shell .dashboard-daily-hits-table .dashboard-share-link { color: var(--primary); font-size: 11px; font-weight: 650; }
.app-shell .dashboard-daily-hits-table .dashboard-share-link:hover { text-decoration: underline; }
.app-shell .dashboard-daily-hits-table .tag { min-height: 19px; padding: 1px 8px; border-radius: 5px; font-size: 10px; font-weight: 550; }
.app-shell .dashboard-daily-hits-table .dashboard-daily-sources { max-width: 250px; gap: 3px; }
.app-shell .dashboard-daily-hits-table .dashboard-daily-source { font-size: 10px; }
.app-shell .dashboard-daily-hits-table .dashboard-entry-source { min-width: 85px; gap: 3px; }
.app-shell .dashboard-daily-hits-table .dashboard-entry-source small,
.app-shell .dashboard-daily-hits-table .dashboard-rate-detail { margin-top: 3px; color: #9aa0a8; font-size: 9px; }
.app-shell .dashboard-daily-hits-table .dashboard-first-hit-no { color: #9299a2; font-size: 10px; }
.app-shell .dashboard-daily-hits-empty { padding: 16px; }
.app-shell .dashboard-daily-hits-pagination { min-height: 48px; padding: 9px 14px; border-top-color: #eceef1; color: #9299a2; background: #fff; }
.app-shell .dashboard-daily-hits-pagination select,
.app-shell .dashboard-daily-hits-pagination .page-button { border-color: #e1e5ea; border-radius: 6px; }
@media (max-width: 900px) {
  .app-shell .dashboard-daily-hits-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .dashboard-daily-hits-summary > div:nth-child(2) { border-right: 0; }
  .app-shell .dashboard-daily-hits-summary p { grid-column: 1 / -1; border-top: 1px solid #edf0f3; }
  .app-shell .dashboard-daily-hits-toolbar { align-items: stretch; flex-direction: column; }
  .app-shell .dashboard-daily-hits-filter-actions { width: 100%; }
  .app-shell .dashboard-daily-hits-search-field { flex: 1; min-width: 220px; }
  .app-shell .dashboard-daily-hits-scope { width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .app-shell .dashboard-daily-hits-summary { grid-template-columns: 1fr; }
  .app-shell .dashboard-daily-hits-summary > div { border-right: 0; border-bottom: 1px solid #edf0f3; }
  .app-shell .dashboard-daily-hits-summary p { grid-column: auto; border-top: 0; }
  .app-shell .dashboard-daily-hits-filter-actions { align-items: stretch; flex-direction: column; }
  .app-shell .dashboard-daily-hits-search-field { width: 100%; min-width: 0; }
}

/* 全局监测策略页：只作用于管理员全局策略视图，保持策略接口与其他页面不变。 */
.global-policy-page {
  max-width: 1540px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.global-policy-page .page-head { align-items: flex-start; margin-bottom: 19px; }
.global-policy-page .page-head h1 { color: #111827; font-size: 27px; font-weight: 780; letter-spacing: -.65px; }
.global-policy-page .page-head p { margin-top: 4px; color: #a2a7af; font-size: 12px; }
.global-policy-page .global-policy-page-action {
  min-width: 122px;
  min-height: 35px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 5px 12px rgba(255, 107, 44, .16);
}
.global-policy-page .global-policy-page-action:hover { border-color: var(--primary-hover); background: var(--primary-hover); box-shadow: 0 7px 16px rgba(255, 107, 44, .2); }
.global-policy-page .policy-priority {
  grid-template-columns: minmax(180px, .37fr) minmax(0, 1.63fr);
  gap: 20px;
  margin-bottom: 20px;
  padding: 11px 18px;
  border-color: #eef0f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(28, 43, 75, .035);
}
.global-policy-page .policy-priority-title { padding-left: 1px; }
.global-policy-page .policy-priority-title span { margin-bottom: 4px; color: #4b5565; font-size: 12px; letter-spacing: 0; text-transform: none; }
.global-policy-page .policy-priority-title strong { display: block; color: #1f2937; font-size: 14px; line-height: 1.5; }
.global-policy-page .policy-priority-steps { gap: 10px; align-items: stretch; }
.global-policy-page .policy-priority-step { min-height: 54px; padding: 9px 12px; border-color: #f8e9e1; border-radius: 5px; background: #fff9f6; }
.global-policy-page .policy-priority-step strong { color: #303640; font-size: 13px; }
.global-policy-page .policy-priority-step p { margin-top: 2px; color: #a0a5ac; font-size: 10px; line-height: 1.35; }
.global-policy-page .policy-priority-rank { width: 23px; height: 23px; margin-top: 1px; color: var(--primary); border: 1px solid #ffb08e; background: transparent; font-size: 11px; }
.global-policy-page .policy-priority-step:nth-child(1) .policy-priority-rank { color: #fff; border-color: var(--primary); background: var(--primary); }
.global-policy-page .policy-priority-step:nth-child(5) .policy-priority-rank { color: #737b86; border-color: #c9cdd3; }
.global-policy-page .policy-priority-arrow { color: var(--primary); font-size: 31px; font-weight: 300; line-height: 1; }
.global-policy-page .global-policy-summary {
  grid-template-columns: minmax(275px, .58fr) minmax(0, 1.42fr);
  gap: 23px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px 22px;
  border-color: #eef0f3;
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(28, 43, 75, .035);
}
.global-policy-page .global-policy-summary-copy > span { margin-bottom: 4px; color: #525b68; font-size: 12px; letter-spacing: 0; text-transform: none; }
.global-policy-page .global-policy-coverage { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.global-policy-page .global-policy-coverage strong { color: var(--primary); font-size: 39px; font-weight: 790; line-height: 1; letter-spacing: -1px; }
.global-policy-page .global-policy-coverage span { color: #3f4650; font-size: 12px; font-weight: 600; }
.global-policy-page .global-policy-summary-copy p { max-width: 360px; margin-top: 8px; color: #a5aab1; font-size: 11px; line-height: 1.55; }
.global-policy-page .global-policy-stats { gap: 12px; }
.global-policy-page .global-policy-stat { min-height: 73px; padding: 11px 14px; border-color: #e6e8eb; border-radius: 5px; background: #fff; }
.global-policy-page .global-policy-stat span { color: #4e5660; font-size: 11px; font-weight: 650; }
.global-policy-page .global-policy-stat strong { margin: 4px 0 2px; color: var(--data-blue); font-size: 24px; font-weight: 520; line-height: 1; }
.global-policy-page .global-policy-stat p { color: #a7acb3; font-size: 10px; line-height: 1.2; }
.global-policy-page .global-policy-alert .warning-box { margin: -3px 0 20px; }
.global-policy-page .global-policy-rule-section { margin-top: 0; }
.global-policy-page .global-policy-rule-section .policy-section-head { align-items: end; margin-bottom: 11px; }
.global-policy-page .global-policy-rule-section .policy-section-head h2 { color: #263449; font-size: 20px; font-weight: 760; }
.global-policy-page .global-policy-rule-section .policy-section-head p { margin-top: 3px; color: #b0b4bb; font-size: 11px; }
.global-policy-page .global-policy-rule-count { color: #9ea5af; font-size: 11px; }
.global-policy-page .global-policy-card { padding: 19px 17px 14px; border-color: #e5e7eb; border-radius: 16px; box-shadow: 0 8px 18px rgba(28, 43, 75, .09), 0 1px 2px rgba(28, 43, 75, .04); }
.global-policy-page .global-policy-card::before { height: 5px; border-radius: 16px 16px 0 0; background: var(--primary); }
.global-policy-page .global-policy-card .policy-card-head { padding-top: 2px; }
.global-policy-page .global-policy-card .policy-scope-label { margin-bottom: 5px; color: var(--primary); font-size: 12px; letter-spacing: 0; text-transform: none; }
.global-policy-page .global-policy-card h3 { color: #202a39; font-size: 17px; font-weight: 760; }
.global-policy-page .global-policy-card .policy-card-head p { margin-top: 3px; color: #9fa6af; font-size: 11px; }
.global-policy-page .global-policy-card .tag.success { min-height: 21px; padding: 2px 10px; border-radius: 11px; color: #2a9387; background: #e6f7f4; font-size: 11px; }
.global-policy-page .global-policy-card .tag.warning { min-height: 21px; padding: 2px 10px; border-radius: 11px; font-size: 11px; }
.global-policy-page .global-policy-card .policy-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 72px; margin: 19px 0 22px; }
.global-policy-page .global-policy-card .policy-fact { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 51px; padding: 10px 14px; border-color: #eceef1; border-radius: 2px; background: #fbfbfc; }
.global-policy-page .global-policy-card .policy-fact span { color: #707780; font-size: 11px; white-space: nowrap; }
.global-policy-page .global-policy-card .policy-fact strong { margin-top: 0; color: var(--data-blue); font-size: 15px; font-weight: 740; text-align: right; white-space: nowrap; }
.global-policy-page .global-policy-card .policy-footer { min-height: 37px; padding-top: 11px; border-top-color: #e8eaed; }
.global-policy-page .global-policy-card .policy-footer .muted { color: #a7adb5; font-size: 11px; }
.global-policy-page .global-policy-card .policy-footer .action-link { min-height: 27px; padding: 4px 13px; border: 1px solid #ffac8b; border-radius: 8px; color: var(--primary); background: #fff; font-size: 11px; }
.global-policy-page .global-policy-card .policy-footer .action-link:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.global-policy-page .global-policy-note { margin-top: 12px; padding: 10px 15px; border-color: #e4edf9; border-radius: 5px; color: #8ca2c1; background: #f4f8fe; font-size: 11px; line-height: 1.55; }
.global-policy-page .global-policy-note strong { color: #6e88af; }
@media (max-width: 1120px) {
  .global-policy-page .policy-priority,
  .global-policy-page .global-policy-summary { grid-template-columns: 1fr; }
  .global-policy-page .global-policy-summary-copy p { max-width: none; }
  .global-policy-page .global-policy-card .policy-facts { gap: 10px 20px; }
}
@media (max-width: 760px) {
  .global-policy-page .page-head { gap: 12px; }
  .global-policy-page .policy-priority { padding: 14px; }
  .global-policy-page .policy-priority-steps { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .global-policy-page .policy-priority-arrow { display: none; }
  .global-policy-page .global-policy-summary { padding: 16px; }
  .global-policy-page .global-policy-coverage strong { font-size: 34px; }
  .global-policy-page .global-policy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-policy-page .global-policy-card .policy-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .global-policy-page .global-policy-card .policy-footer { align-items: flex-start; gap: 10px; flex-direction: column; }
}
@media (max-width: 480px) {
  .global-policy-page .global-policy-stats,
  .global-policy-page .global-policy-card .policy-facts { grid-template-columns: 1fr; }
  .global-policy-page .global-policy-card .policy-fact strong { font-size: 14px; }
}

/* Dashboard visual refresh: shared by administrator, operator, and customer views. */
#contentRoot:has(.dashboard-toolbar) .page-head,
#contentRoot:has(.dashboard-toolbar) .dashboard-toolbar {
  margin-bottom: 18px;
}
#contentRoot:has(.dashboard-toolbar) .page-head h1 {
  color: #172033;
  font-size: 26px;
  font-weight: 780;
  letter-spacing: 0;
}
#contentRoot:has(.dashboard-toolbar) .page-head p {
  margin-top: 6px;
  color: #8993a5;
  font-size: 12px;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-toolbar {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 5px 17px rgba(38, 57, 94, .045);
}
#contentRoot:has(.dashboard-toolbar) .dashboard-toolbar-heading {
  align-items: center;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-toolbar-heading strong {
  color: #27334a;
  font-size: 13px;
  font-weight: 760;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-toolbar-heading .muted {
  color: #98a2b3;
  font-size: 11px;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-filter-label {
  color: #707b8f;
  font-size: 11px;
  font-weight: 700;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-date-range .text-input,
#contentRoot:has(.dashboard-toolbar) .dashboard-granularity-group .select-input {
  border-color: #dfe5ee;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-date-range .text-input:focus,
#contentRoot:has(.dashboard-toolbar) .dashboard-granularity-group .select-input:focus {
  border-color: #90a9f5;
  box-shadow: 0 0 0 3px rgba(72, 105, 239, .12);
}
#contentRoot:has(.dashboard-toolbar) .dashboard-action-grid .secondary-button {
  min-height: 38px;
  border-color: #dce4f4;
  border-radius: 9px;
  color: #4763b7;
  background: #f8faff;
  box-shadow: none;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-action-grid .secondary-button:hover {
  border-color: #aec0f4;
  color: #3158d7;
  background: #eef3ff;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-scope-note {
  margin: -2px 0 18px;
  padding: 12px 15px;
  border-color: #e0e7f3;
  border-radius: 10px;
  color: #78849a;
  background: #f8faff;
  line-height: 1.65;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-scope-note strong {
  color: #4d659e;
}
#contentRoot:has(.dashboard-toolbar) .package-panel {
  margin-bottom: 18px;
  padding: 22px;
  border-color: #e0e6f1;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 64%, #f5fbfa 100%);
  box-shadow: 0 7px 22px rgba(36, 56, 91, .055);
}
#contentRoot:has(.dashboard-toolbar) .package-panel::after {
  width: 230px;
  height: 230px;
  right: -110px;
  top: -135px;
  background: rgba(79, 116, 238, .055);
}
#contentRoot:has(.dashboard-toolbar) .package-panel-header {
  align-items: center;
}
#contentRoot:has(.dashboard-toolbar) .package-kicker {
  color: #4d6dd4;
  font-size: 12px;
  letter-spacing: .02em;
}
#contentRoot:has(.dashboard-toolbar) .package-panel-header h2 {
  margin: 7px 0 4px;
  color: #1d2940;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: 0;
}
#contentRoot:has(.dashboard-toolbar) .package-panel-header p {
  color: #929bad;
  font-size: 11px;
  line-height: 1.55;
}
#contentRoot:has(.dashboard-toolbar) .package-progress-row {
  margin: 21px 0 18px;
}
#contentRoot:has(.dashboard-toolbar) progress.package-progress {
  height: 10px;
  background: #e8edf5;
}
#contentRoot:has(.dashboard-toolbar) progress.package-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #4a75ed, #83a4ff);
}
#contentRoot:has(.dashboard-toolbar) .package-progress-row > strong {
  color: #4569d2;
  font-size: 13px;
  font-weight: 760;
}
#contentRoot:has(.dashboard-toolbar) .package-metric-grid {
  gap: 10px;
}
#contentRoot:has(.dashboard-toolbar) .package-metric-grid > div {
  min-height: 72px;
  padding: 13px 14px;
  border-color: #e4e9f1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}
#contentRoot:has(.dashboard-toolbar) .package-metric-grid span {
  color: #7c8799;
  font-size: 11px;
}
#contentRoot:has(.dashboard-toolbar) .package-metric-grid strong {
  color: #26344d;
  font-size: 19px;
  font-weight: 760;
}
#contentRoot:has(.dashboard-toolbar) .package-metric-grid .package-metric-attention {
  border-color: #f0d9bc;
  background: #fff9f1;
}
#contentRoot:has(.dashboard-toolbar) .package-metric-grid .package-metric-attention strong {
  color: #c17725;
}
#contentRoot:has(.dashboard-toolbar) .package-chart-card,
#contentRoot:has(.dashboard-toolbar) .chart-card,
#contentRoot:has(.dashboard-toolbar) .dashboard-grid > .card {
  overflow: hidden;
  border-color: #e2e7ef;
  border-radius: 15px;
  box-shadow: 0 7px 22px rgba(36, 56, 91, .05);
}
#contentRoot:has(.dashboard-toolbar) .package-chart-card .card-header,
#contentRoot:has(.dashboard-toolbar) .chart-card .card-header,
#contentRoot:has(.dashboard-toolbar) .dashboard-grid > .card .card-header {
  padding: 18px 20px 15px;
  border-bottom-color: #edf0f5;
}
#contentRoot:has(.dashboard-toolbar) .package-chart-card .card-header h2,
#contentRoot:has(.dashboard-toolbar) .chart-card .card-header h2,
#contentRoot:has(.dashboard-toolbar) .dashboard-grid > .card .card-header h2 {
  color: #202c42;
  font-size: 16px;
  font-weight: 760;
}
#contentRoot:has(.dashboard-toolbar) .package-chart-card .card-header p,
#contentRoot:has(.dashboard-toolbar) .chart-legend {
  color: #99a2b1;
  font-size: 11px;
}
#contentRoot:has(.dashboard-toolbar) .chart-wrap {
  padding: 18px 18px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}
#contentRoot:has(.dashboard-toolbar) .chart-grid-line {
  stroke: #e8ecf3;
  stroke-dasharray: 3 4;
}
#contentRoot:has(.dashboard-toolbar) .chart-axis-label {
  fill: #929bad;
  font-size: 10px;
}
#contentRoot:has(.dashboard-toolbar) .chart-line {
  stroke: #4d80ed;
  stroke-width: 2.7;
}
#contentRoot:has(.dashboard-toolbar) .chart-area {
  fill: url(#chartGradient);
  opacity: .9;
}
#contentRoot:has(.dashboard-toolbar) .chart-point {
  stroke: #4d80ed;
  stroke-width: 1.8;
}
#contentRoot:has(.dashboard-toolbar) .package-chart-line {
  stroke: #18a58d;
  stroke-width: 2.8;
}
#contentRoot:has(.dashboard-toolbar) .package-threshold-line {
  stroke: #ef9b53;
  stroke-width: 1.4;
  stroke-dasharray: 6 5;
}
#contentRoot:has(.dashboard-toolbar) .summary-grid {
  gap: 12px;
  margin-bottom: 18px;
}
#contentRoot:has(.dashboard-toolbar) .summary-card {
  min-height: 108px;
  padding: 16px 17px;
  border-color: #e2e7ef;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(36, 56, 91, .035);
}
#contentRoot:has(.dashboard-toolbar) .summary-card::after {
  width: 82px;
  height: 82px;
  right: -27px;
  bottom: -35px;
  background: #eef3ff;
}
#contentRoot:has(.dashboard-toolbar) .summary-card.success::after {
  background: #e6f7f3;
}
#contentRoot:has(.dashboard-toolbar) .summary-card.warning::after {
  background: #fff2e8;
}
#contentRoot:has(.dashboard-toolbar) .summary-label {
  color: #788398;
  font-size: 11px;
  font-weight: 650;
}
#contentRoot:has(.dashboard-toolbar) .summary-value {
  margin: 10px 0 4px;
  color: #27344c;
  font-size: 28px;
  font-weight: 780;
}
#contentRoot:has(.dashboard-toolbar) .summary-note {
  color: #a0a8b6;
  font-size: 10px;
}
#contentRoot:has(.dashboard-toolbar) .distribution-list {
  gap: 17px;
  padding: 21px 20px;
}
#contentRoot:has(.dashboard-toolbar) .distribution-row {
  grid-template-columns: 78px 1fr 52px;
  gap: 10px;
  color: #707b8f;
  font-size: 11px;
}
#contentRoot:has(.dashboard-toolbar) .distribution-progress {
  height: 9px;
  border-radius: 8px;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-detail-card {
  overflow: hidden;
  border-color: #e2e7ef;
  border-radius: 15px;
  box-shadow: 0 7px 22px rgba(36, 56, 91, .045);
}
#contentRoot:has(.dashboard-toolbar) .dashboard-detail-tabs {
  padding: 7px;
  border-bottom-color: #e7ebf2;
  background: #f8faff;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-detail-tab {
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-detail-tab.active {
  color: #3e63d2;
  box-shadow: 0 3px 10px rgba(44, 67, 117, .09);
}
#contentRoot:has(.dashboard-toolbar) .dashboard-detail-card .card-header {
  padding: 17px 20px;
  border-bottom-color: #edf0f5;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-table-scroll {
  background: #fff;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-table-scroll th {
  color: #647087;
  background: #f8faff;
  font-size: 11px;
}
#contentRoot:has(.dashboard-toolbar) .dashboard-table-scroll td {
  color: #4f5c73;
  font-size: 12px;
}
@media (max-width: 760px) {
  #contentRoot:has(.dashboard-toolbar) .dashboard-toolbar,
  #contentRoot:has(.dashboard-toolbar) .package-panel { padding: 16px; }
  #contentRoot:has(.dashboard-toolbar) .package-panel-header h2 { font-size: 21px; }
  #contentRoot:has(.dashboard-toolbar) .summary-card { min-height: 104px; }
}

/* Customer dashboard compatibility: the read-only bundle omits the filter toolbar,
   so its chart card is the stable dashboard marker. */
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .page-head { margin-bottom: 20px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .page-head h1 {
  color: #172033;
  font-size: 26px;
  font-weight: 780;
  letter-spacing: 0;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .page-head p {
  margin-top: 6px;
  color: #8993a5;
  font-size: 12px;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-chart-card,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-card,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .dashboard-grid > .card,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) > .card:last-child {
  overflow: hidden;
  border-color: #e2e7ef;
  border-radius: 15px;
  box-shadow: 0 7px 22px rgba(36, 56, 91, .05);
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel {
  margin-bottom: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 64%, #f5fbfa 100%);
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel::after {
  width: 230px;
  height: 230px;
  right: -110px;
  top: -135px;
  background: rgba(79, 116, 238, .055);
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel-header { align-items: center; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-kicker {
  color: #4d6dd4;
  font-size: 12px;
  letter-spacing: .02em;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel-header h2 {
  margin: 7px 0 4px;
  color: #1d2940;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: 0;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-progress-row { margin: 21px 0 18px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) progress.package-progress { height: 10px; background: #e8edf5; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) progress.package-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #4a75ed, #83a4ff);
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-progress-row > strong {
  color: #4569d2;
  font-size: 13px;
  font-weight: 760;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-metric-grid { gap: 10px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-metric-grid > div {
  min-height: 72px;
  padding: 13px 14px;
  border-color: #e4e9f1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-metric-grid span { color: #7c8799; font-size: 11px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-metric-grid strong {
  color: #26344d;
  font-size: 19px;
  font-weight: 760;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-metric-grid .package-metric-attention {
  border-color: #f0d9bc;
  background: #fff9f1;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-metric-grid .package-metric-attention strong { color: #c17725; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-chart-card { margin-bottom: 18px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-chart-card .card-header,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-card .card-header,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) > .card:last-child .card-header {
  padding: 18px 20px 15px;
  border-bottom-color: #edf0f5;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-chart-card .card-header h2,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-card .card-header h2,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .dashboard-grid > .card .card-header h2,
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) > .card:last-child .card-header h2 {
  color: #202c42;
  font-size: 16px;
  font-weight: 760;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-wrap {
  padding: 18px 18px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-grid-line { stroke: #e8ecf3; stroke-dasharray: 3 4; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-axis-label { fill: #929bad; font-size: 10px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-line { stroke: #4d80ed; stroke-width: 2.7; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-area { fill: url(#chartGradient); opacity: .9; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-point { stroke: #4d80ed; stroke-width: 1.8; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-chart-line { stroke: #18a58d; stroke-width: 2.8; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-threshold-line { stroke: #ef9b53; stroke-width: 1.4; stroke-dasharray: 6 5; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-grid { gap: 12px; margin-bottom: 18px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-card {
  min-height: 108px;
  padding: 16px 17px;
  border-color: #e2e7ef;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(36, 56, 91, .035);
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-card::after {
  width: 82px;
  height: 82px;
  right: -27px;
  bottom: -35px;
  background: #eef3ff;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-card.success::after { background: #e6f7f3; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-card.warning::after { background: #fff2e8; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-label { color: #788398; font-size: 11px; font-weight: 650; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-value {
  margin: 10px 0 4px;
  color: #27344c;
  font-size: 28px;
  font-weight: 780;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .distribution-list { gap: 17px; padding: 21px 20px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .distribution-row {
  grid-template-columns: 78px 1fr 52px;
  gap: 10px;
  color: #707b8f;
  font-size: 11px;
}
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .distribution-progress { height: 9px; border-radius: 8px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) > .card:last-child .table-scroll { background: #fff; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) > .card:last-child th { color: #647087; background: #f8faff; font-size: 11px; }
#contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) > .card:last-child td { color: #4f5c73; font-size: 12px; }
@media (max-width: 760px) {
  #contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel { padding: 16px; }
  #contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel-header { align-items: flex-start; flex-direction: column; }
  #contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .package-panel-header h2 { font-size: 21px; }
  #contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .summary-card { min-height: 104px; }
  #contentRoot:has(.chart-card):not(:has(.dashboard-toolbar)) .chart-wrap { padding: 14px 7px 7px; }
}

/* Customer project navigation and cards. Kept under the protected customer bundle scope. */
.app-shell.customer-app-active .customer-projects-page { max-width: 100%; }
.app-shell.customer-app-active .customer-project-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 520px));
  align-items: start;
  justify-content: start;
}
.app-shell.customer-app-active .customer-project-card {
  width: 100%;
  min-height: 0;
  padding: 18px 26px 0;
  border: 1px solid #e8eaed;
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(29, 37, 51, .065);
}
.app-shell.customer-app-active .customer-project-card::before { display: none; }
.app-shell.customer-app-active .customer-project-card:hover {
  transform: translateY(-2px);
  border-color: #ffd0bc;
  border-top-color: var(--primary);
  box-shadow: 0 12px 24px rgba(29, 37, 51, .09);
}
.app-shell.customer-app-active .customer-project-card .project-card-head {
  min-height: 32px;
  align-items: flex-start;
}
.app-shell.customer-app-active .customer-project-card h3 {
  min-width: 0;
  margin: 0;
  color: #20242a;
  font-size: 16px;
  font-weight: 760;
}
.app-shell.customer-app-active .customer-project-status {
  flex: 0 0 auto;
  min-height: 21px;
  padding: 2px 10px;
  border-radius: 5px;
  color: #266fd6;
  background: #eaf2ff;
  font-size: 10px;
  font-weight: 700;
}
.app-shell.customer-app-active .customer-project-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.app-shell.customer-app-active .customer-project-metrics > div { display: flex; flex-direction: column; gap: 5px; }
.app-shell.customer-app-active .customer-project-metrics span { color: #8d929a; font-size: 12px; }
.app-shell.customer-app-active .customer-project-metrics strong { color: #2c3139; font-size: 14px; font-weight: 720; }
.app-shell.customer-app-active .customer-project-card .project-card-footer {
  min-height: 50px;
  margin: 22px 0 0;
  padding: 9px 0 10px;
  border-top: 1px solid #e7e9ec;
}
.app-shell.customer-app-active .customer-project-readonly { color: #a0a5ad; font-size: 10px; }
.app-shell.customer-app-active .customer-project-enter {
  min-height: 29px;
  padding: 0 13px;
  border-radius: 6px;
  font-size: 11px;
}
.app-shell.customer-app-active .customer-project-enter svg { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .app-shell.customer-app-active .project-scope-nav { display: contents; padding: 0; }
  .app-shell.customer-app-active .customer-project-grid { grid-template-columns: 1fr; }
  .app-shell.customer-app-active .customer-project-card { padding-inline: 18px; }
  .app-shell.customer-app-active .customer-project-card .project-card-head { flex-direction: row; }
  .app-shell.customer-app-active .customer-project-card .project-card-footer { align-items: center; flex-direction: row; }
}
@media (max-width: 420px) {
  .app-shell.customer-app-active .customer-project-metrics { gap: 12px; }
  .app-shell.customer-app-active .customer-project-readonly { display: none; }
  .app-shell.customer-app-active .customer-project-card .project-card-footer { justify-content: flex-end; }
}
.demo-config-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: #12a58c;
  vertical-align: middle;
}

.demo-workspace-manager {
  display: grid;
  gap: 18px;
}

.demo-workspace-intro,
.demo-source-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #dfe5f2;
  border-radius: 8px;
  background: #f7f9fd;
}

.demo-workspace-intro p,
.demo-source-summary p {
  margin: 5px 0 0;
  color: #697386;
  font-size: 13px;
  line-height: 1.6;
}

.demo-source-summary {
  display: grid;
  justify-content: stretch;
  gap: 3px;
}

.demo-source-summary span,
.demo-source-name {
  display: block;
  color: #778196;
  font-size: 12px;
  font-weight: 400;
}

.demo-source-name {
  margin-top: 4px;
}

.demo-workspace-toolbar {
  display: grid;
  gap: 8px;
}

.demo-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.demo-package-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-project-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.demo-project-edit-button {
  width: 32px;
  height: 32px;
  border: 1px solid #d8dfed;
  background: #fff;
  color: #3158ee;
}

.demo-project-edit-button:hover {
  border-color: #9dafee;
  background: #f1f4ff;
}

.demo-project-edit-button svg {
  width: 16px;
  height: 16px;
}

.demo-customer-modal .modal-header > div p {
  margin: 4px 0 0;
  color: #697386;
  font-size: 13px;
}

/* Customer demo dashboard loading and query-volume package presentation. */
.app-shell.customer-app-active .customer-dashboard-loading {
  display: grid;
  place-items: center;
  min-height: 320px;
  gap: 9px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fff;
  color: #8792a5;
}

.app-shell.customer-app-active .customer-dashboard-loading .spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

.app-shell.customer-app-active .customer-dashboard-loading strong {
  color: #26344d;
  font-size: 14px;
}

.app-shell.customer-app-active .customer-dashboard-loading > span:last-child {
  font-size: 11px;
}

.app-shell.customer-app-active .volume-package {
  border-color: #dce5f4;
  background: linear-gradient(135deg, #fff 0%, #f7f9ff 68%, #f3faf8 100%);
}

.app-shell.customer-app-active .volume-package::after {
  background: rgba(73, 113, 226, .055);
}

.app-shell.customer-app-active .volume-package-header {
  position: relative;
  z-index: 1;
  align-items: flex-end;
}

.app-shell.customer-app-active .volume-package-total {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.app-shell.customer-app-active .volume-package-total strong {
  color: #315fc7;
  font-size: 32px;
  font-weight: 780;
  line-height: 1;
}

.app-shell.customer-app-active .volume-package-total span {
  color: #7c8799;
  font-size: 12px;
}

.app-shell.customer-app-active .volume-package-progress {
  position: relative;
  z-index: 1;
  margin: 20px 0 17px;
}

.app-shell.customer-app-active .volume-package-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-shell.customer-app-active .volume-package-metric {
  min-height: 78px;
  padding: 14px 15px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.app-shell.customer-app-active .volume-package-metric span {
  display: block;
  margin-bottom: 8px;
  color: #7c8799;
  font-size: 11px;
}

.app-shell.customer-app-active .volume-package-metric strong {
  color: #26344d;
  font-size: 21px;
  font-weight: 760;
}

.app-shell.customer-app-active .volume-package-metric.primary {
  border-color: #cfdcf7;
  background: #f2f6ff;
}

.app-shell.customer-app-active .volume-package-metric.primary strong { color: #315fc7; }

.app-shell.customer-app-active .volume-package-metric.attention {
  border-color: #f0d9bc;
  background: #fff9f1;
}

.app-shell.customer-app-active .volume-package-metric.attention strong { color: #bd7620; }

@media (max-width: 1100px) {
  .app-shell.customer-app-active .volume-package-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell.customer-app-active .volume-package-header { align-items: flex-start; }
  .app-shell.customer-app-active .volume-package-total strong { font-size: 27px; }
  .app-shell.customer-app-active .volume-package-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .demo-add-row,
  .demo-package-fields {
    grid-template-columns: 1fr;
  }

  .demo-workspace-intro {
    display: grid;
  }
}

/* 20260914 capture runtime health: admin-only read-only resource summary. */
.capture-health-section { margin-top: 21px; }
.capture-health-sync { color: #8c96a6; font-size: 11px; white-space: nowrap; }
.capture-health-panel {
  --health-color: var(--success);
  --health-soft: var(--success-soft);
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 2.2fr);
  gap: 17px 22px;
  padding: 16px 17px 13px;
  border: 1px solid #dcefe7;
  border-left: 3px solid var(--health-color);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(30, 41, 59, .035);
}
.capture-health-panel.watch { --health-color: var(--warning); --health-soft: var(--warning-soft); border-color: #f3e2bc; }
.capture-health-panel.alert { --health-color: var(--danger); --health-soft: var(--danger-soft); border-color: #f3d6db; }
.capture-health-panel.unknown { --health-color: #8b96a7; --health-soft: #f1f3f6; border-color: #e3e7ed; }
.capture-health-overall { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.capture-health-icon {
  display: inline-grid;
  flex: 0 0 31px;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--health-color);
  background: var(--health-soft);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.capture-health-overall strong { display: block; color: #26364d; font-size: 15px; line-height: 1.35; }
.capture-health-overall span:not(.capture-health-icon) { display: block; margin-top: 5px; color: #7d899b; font-size: 11px; line-height: 1.5; }
.capture-health-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.capture-health-metric, .capture-health-mini { min-width: 0; padding: 10px 11px; border: 1px solid #eef1f5; border-radius: 7px; background: #fbfcfe; }
.capture-health-metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #7b8798; font-size: 11px; }
.capture-health-metric-head strong { color: #344156; font-size: 13px; }
.capture-health-meter { height: 6px; margin: 9px 0 5px; overflow: hidden; border-radius: 4px; background: #e9edf2; }
.capture-health-meter i { display: block; height: 100%; border-radius: inherit; background: var(--success); transition: width .2s ease; }
.capture-health-meter.watch i { background: var(--warning); }
.capture-health-meter.alert i { background: var(--danger); }
.capture-health-meter.unknown i { background: #b7c0cb; }
.capture-health-metric-foot { display: flex; justify-content: space-between; gap: 6px; color: #8e99a8; font-size: 10px; }
.capture-health-metric small, .capture-health-mini small { display: block; margin-top: 6px; overflow: hidden; color: #8e99a8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.capture-health-mini { display: flex; flex-direction: column; justify-content: space-between; }
.capture-health-mini > span { color: #7b8798; font-size: 11px; }
.capture-health-mini strong { display: block; margin-top: 8px; overflow: hidden; color: #344156; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.capture-health-detail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 10px; border-top: 1px solid #eef1f5; color: #8c96a6; font-size: 10px; line-height: 1.45; }
.capture-health-detail span { min-width: 0; }

/* Independent, role-aware brand analysis workspace. */
.brand-analysis-toolbar { margin-bottom: 18px; }
.brand-analysis-toolbar .toolbar-right { display: flex; align-items: center; gap: 9px; }
.brand-analysis-toolbar input[type="date"] { width: 158px; }
.brand-analysis-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.customer-brand-analysis-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brand-analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.brand-analysis-grid .card { min-width: 0; }
.brand-analysis-grid .card-header p,
.brand-config-card .card-header p,
.brand-evidence-card .card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.brand-analysis-empty { display: flex; min-height: 150px; padding: 28px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--muted); text-align: center; }
.brand-analysis-empty strong { color: #465064; font-size: 14px; }
.brand-findings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.brand-finding { padding: 18px; border: 1px solid #e9edf4; border-radius: 12px; background: linear-gradient(145deg, #fff 0%, #f8faff 100%); box-shadow: 0 8px 20px rgba(35,49,75,.05); }
.brand-finding > span { display: inline-block; margin-bottom: 9px; padding: 3px 8px; border-radius: 999px; color: #315fc7; background: #edf3ff; font-size: 10px; font-weight: 700; }
.brand-finding strong { display: block; color: #273247; font-size: 14px; }
.brand-finding p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.brand-config-card,
.brand-evidence-card { margin-top: 18px; }
.brand-config-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.brand-anchor-cell { min-width: 280px; max-width: 520px; white-space: normal; line-height: 1.55; }

@media (max-width: 1100px) {
  .brand-analysis-summary,
  .customer-brand-analysis-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-findings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .brand-analysis-toolbar,
  .brand-analysis-toolbar .toolbar-right { align-items: stretch; flex-direction: column; }
  .brand-analysis-toolbar input[type="date"] { width: 100%; }
  .brand-analysis-summary,
  .customer-brand-analysis-summary,
  .brand-analysis-grid,
  .brand-findings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1250px) {
  .capture-health-panel { grid-template-columns: 1fr; }
  .capture-health-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .capture-health-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .capture-health-panel { padding: 13px; }
  .capture-health-metrics { grid-template-columns: 1fr; }
  .capture-health-sync { white-space: normal; }
}

/* 20260914 login UI v1: presentation-only skin over the existing auth hooks. */
#loginView.raggeo-login-view {
  --raggeo-login-ink: #191b22;
  --raggeo-login-muted: #6f6d70;
  --raggeo-login-soft: #a19b98;
  --raggeo-login-orange: #ff6a2b;
  --raggeo-login-orange-deep: #e95520;
  --raggeo-login-shadow: 0 28px 70px rgba(81, 59, 47, .14);
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  overflow: auto;
  isolation: isolate;
  color: var(--raggeo-login-ink);
  background-color: #f4eef0;
  background-image: url("/static/raggeo-background-reference.png?v=20260914-login-v1");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

#loginView.raggeo-login-view.hidden { display: none; }
#loginView.raggeo-login-view,
#loginView.raggeo-login-view * { box-sizing: border-box; }
#loginView.raggeo-login-view button,
#loginView.raggeo-login-view input { font: inherit; }
#loginView.raggeo-login-view button { cursor: pointer; }

#loginView.raggeo-login-view::before,
#loginView.raggeo-login-view::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(125deg, rgba(255, 255, 255, .27), rgba(255, 255, 255, 0));
  transform: rotate(-14deg);
}

#loginView.raggeo-login-view::before {
  width: 52vw;
  height: 31vw;
  top: -19vw;
  left: -8vw;
  border-radius: 70px;
}

#loginView.raggeo-login-view::after {
  width: 42vw;
  height: 25vw;
  right: -17vw;
  bottom: -12vw;
  border-radius: 80px;
  transform: rotate(15deg);
  opacity: .5;
}

.raggeo-login-view .raggeo-login-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .11;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.21'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.raggeo-login-view .raggeo-login-shell {
  width: min(85.5vw, calc(100% - 64px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  align-items: stretch;
  gap: clamp(52px, 7vw, 118px);
  padding: 54px 0;
  transform: scale(.78);
  transform-origin: center center;
}

.raggeo-login-view .raggeo-login-brand-panel {
  position: relative;
  left: -6.75vw;
  min-width: 0;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.raggeo-login-view .raggeo-login-brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--raggeo-login-ink);
}

.raggeo-login-view .raggeo-login-brand-logo {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.raggeo-login-view .raggeo-login-brand-copy {
  width: 710px;
  max-width: 710px;
  margin-top: 12.82px;
}

.raggeo-login-view .raggeo-login-brand-copy h1 {
  width: 710px;
  max-width: 710px;
  margin: 0;
  color: var(--raggeo-login-ink);
  font-size: clamp(64px, 4.5vw, 68px);
  font-weight: 730;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: left;
}

.raggeo-login-view .raggeo-login-brand-copy h1 span {
  display: block;
  white-space: nowrap;
}

.raggeo-login-view .raggeo-login-brand-copy h1 em {
  color: #ff8b27;
  font-style: normal;
}

.raggeo-login-view .raggeo-login-brand-copy > p {
  width: 710px;
  max-width: 710px;
  margin: 48px 0 0;
  color: var(--raggeo-login-muted);
  font-size: 17px;
  line-height: 1.75;
}

.raggeo-login-view .raggeo-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 784px;
  max-width: 784px;
  gap: 16px;
  margin-top: auto;
}

.raggeo-login-view .raggeo-capability {
  --glow-x: 22%;
  --glow-y: 18%;
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 14px 34px rgba(81, 59, 47, .08), inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(255, 255, 255, .24);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  transition: transform .3s ease, background .3s ease, filter .3s ease, box-shadow .3s ease;
}

.raggeo-login-view .raggeo-capability:hover {
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 18px 38px rgba(88, 64, 52, .14), inset 0 1px 0 rgba(255, 255, 255, .98);
  filter: brightness(1.1);
  transform: translateY(-4px);
}

.raggeo-login-view .raggeo-capability::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .72;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.92) 0, rgba(255,255,255,.32) 20%, transparent 48%), linear-gradient(118deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.12) 48%, rgba(255,190,151,.16) 100%);
  transition: opacity .28s ease;
}

.raggeo-login-view .raggeo-capability::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -45%;
  width: 36%;
  height: 260%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.74), transparent);
  transform: rotate(18deg) translateX(-220%);
  transition: transform .52s cubic-bezier(.22,.72,.25,1);
}

.raggeo-login-view .raggeo-capability:hover::before { opacity: 1; }
.raggeo-login-view .raggeo-capability:hover::after { transform: rotate(18deg) translateX(660%); }

.raggeo-login-view .raggeo-capability-emphasis {
  color: #fff;
  background: #7a2e0e;
  border-color: rgba(255, 255, 255, .38);
  box-shadow: 0 16px 34px rgba(122, 46, 14, .22), inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(53, 17, 5, .3);
}

.raggeo-login-view .raggeo-capability-emphasis:hover { background: #8c3814; }
.raggeo-login-view .raggeo-capability-emphasis .raggeo-capability-copy p { color: #e5e7eb; }
.raggeo-login-view .raggeo-capability-emphasis .raggeo-capability-art { color: #ffe0b2; }
.raggeo-login-view .raggeo-capability-emphasis .raggeo-capability-art::before { background: radial-gradient(circle, rgba(255, 224, 178, .62), rgba(255, 255, 255, .12) 48%, rgba(255, 224, 178, 0) 74%); }

.raggeo-login-view .raggeo-capability-copy {
  position: relative;
  z-index: 1;
  width: 66.6667%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.raggeo-login-view .raggeo-capability-copy h2 {
  margin: 0;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.raggeo-login-view .raggeo-capability-copy p {
  margin: 8px 0 0;
  color: var(--raggeo-login-muted);
  font-size: 15px;
  line-height: 1.5;
}

.raggeo-login-view .raggeo-capability-art {
  position: relative;
  z-index: 1;
  width: 33.3333%;
  min-height: 76px;
  display: grid;
  place-items: center;
  color: #ff8b27;
  opacity: .9;
  transform: translateZ(0);
  transition: transform .3s ease, opacity .3s ease, filter .3s ease;
}

.raggeo-login-view .raggeo-capability-art::before {
  content: "";
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,139,39,.24), rgba(255,139,39,0) 70%);
  filter: blur(1px);
}

.raggeo-login-view .raggeo-capability-art svg {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: visible;
  filter: drop-shadow(0 8px 12px rgba(255,139,39,.14));
}

.raggeo-login-view .raggeo-capability:hover .raggeo-capability-art {
  opacity: 1;
  filter: saturate(1.2) brightness(1.06);
  transform: translateY(-2px) scale(1.05) rotate(2deg);
}

.raggeo-login-view .raggeo-login-wrap {
  position: relative;
  width: 500px;
  min-width: 500px;
  min-height: 650px;
  display: flex;
  align-items: stretch;
}

.raggeo-login-view .raggeo-login-card {
  position: relative;
  width: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background: rgba(255, 255, 255, .58);
  box-shadow: var(--raggeo-login-shadow), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(28px) saturate(118%);
  -webkit-backdrop-filter: blur(28px) saturate(118%);
}

.raggeo-login-view .raggeo-login-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -54px;
  right: -42px;
  border-radius: 45% 55% 60% 40%;
  background: linear-gradient(140deg, rgba(255, 138, 82, .22), rgba(255, 138, 82, 0));
  transform: rotate(24deg);
  pointer-events: none;
}

.raggeo-login-view .raggeo-login-card h2 {
  margin: 0;
  transform: translateY(-2px);
  color: var(--raggeo-login-ink);
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 730;
  line-height: 1.12;
  letter-spacing: 0;
}

.raggeo-login-view .raggeo-login-lead {
  margin: 12px 0 30px;
  color: var(--raggeo-login-muted);
  font-size: 14px;
  line-height: 1.6;
}

.raggeo-login-view .raggeo-login-field { margin-top: 16px; }

.raggeo-login-view .raggeo-login-field > label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--raggeo-login-ink);
  font-size: 13px;
  font-weight: 650;
}

.raggeo-login-view .raggeo-input-shell {
  position: relative;
  min-height: 53px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(109, 96, 88, .16);
  border-radius: 17px;
  background: rgba(255,255,255,.7);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.raggeo-login-view .raggeo-input-shell:focus-within {
  border-color: rgba(255, 106, 43, .62);
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, .1);
}

.raggeo-login-view .raggeo-input-icon {
  width: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--raggeo-login-soft);
}

.raggeo-login-view .raggeo-input-shell input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 0 14px 0 0;
  color: var(--raggeo-login-ink);
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.raggeo-login-view .raggeo-input-shell input::placeholder { color: #aaa3a0; }

.raggeo-login-view .raggeo-password-toggle {
  width: 43px;
  height: 43px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-right: 5px;
  padding: 0;
  color: var(--raggeo-login-muted);
  border: 0;
  border-radius: 13px;
  background: transparent;
  transition: color .2s ease, background .2s ease;
}

.raggeo-login-view .raggeo-password-toggle:hover,
.raggeo-login-view .raggeo-password-toggle:focus-visible {
  color: var(--raggeo-login-ink);
  background: rgba(25,27,34,.07);
  outline: 0;
}

.raggeo-login-view .raggeo-eye {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.raggeo-login-view .raggeo-eye-open { display: none; }
.raggeo-login-view .password-field.password-visible .raggeo-eye-off,
.raggeo-login-view .password-field:has(#loginPassword[type="text"]) .raggeo-eye-off { display: none; }
.raggeo-login-view .password-field.password-visible .raggeo-eye-open,
.raggeo-login-view .password-field:has(#loginPassword[type="text"]) .raggeo-eye-open { display: block; }

.raggeo-login-view .raggeo-login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.raggeo-login-view .raggeo-login-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--raggeo-login-muted);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.raggeo-login-view .raggeo-login-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--raggeo-login-orange);
}

.raggeo-login-view .raggeo-forgot {
  padding: 0;
  color: var(--raggeo-login-ink);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(25, 27, 34, .24);
  text-underline-offset: 3px;
}

.raggeo-login-view .raggeo-forgot:hover { color: var(--raggeo-login-orange-deep); }

.raggeo-login-view .raggeo-login-submit {
  position: relative;
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding: 0 22px;
  color: #fff;
  border: 0;
  border-radius: 17px;
  background: var(--raggeo-login-ink);
  box-shadow: 0 15px 25px rgba(25, 27, 34, .16);
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.raggeo-login-view .raggeo-login-submit::after {
  content: "→";
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--raggeo-login-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1;
}

.raggeo-login-view .raggeo-login-submit:hover {
  background: var(--raggeo-login-orange-deep);
  box-shadow: 0 16px 28px rgba(233, 85, 32, .25);
  transform: translateY(-1px);
}

.raggeo-login-view .raggeo-login-submit:focus-visible {
  outline: 3px solid rgba(255, 106, 43, .28);
  outline-offset: 3px;
}

.raggeo-login-view .raggeo-login-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.raggeo-login-view .raggeo-login-helper {
  min-height: 18px;
  margin: 16px 0 0;
  color: var(--raggeo-login-soft);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.raggeo-login-view #loginError {
  margin: 14px 0 -12px;
  color: #c54d32;
}

.raggeo-login-view .raggeo-login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: var(--raggeo-login-soft);
  font-size: 11px;
}

.raggeo-login-view .raggeo-login-corner-note {
  position: absolute;
  right: 0;
  bottom: -35px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(25, 27, 34, .48);
  font-size: 11px;
}

.raggeo-login-view .raggeo-login-corner-note::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(25, 27, 34, .3);
}

@media (min-width: 821px) {
  .raggeo-login-view .raggeo-capability:nth-child(-n + 2) {
    top: -5.13px;
  }

  .raggeo-login-view .raggeo-login-brand-copy h1 {
    position: relative;
    top: 1.28px;
  }
}

/* GEO文章 · 信源文章贡献统计。仅展示只读关联结果，不作因果判断。 */
.app-shell .article-view-tabs {
  display: inline-flex;
  gap: 4px;
  margin: -10px 0 22px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #f7f8fa;
}
.app-shell .article-view-tab {
  min-height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #747b85;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.app-shell .article-view-tab:hover,
.app-shell .article-view-tab:focus-visible { color: var(--primary); outline: 0; }
.app-shell .article-view-tab.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 37, 51, .09);
}
.app-shell .source-contribution-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid #ffd4c2;
  border-radius: 9px;
  color: #6e5a50;
  background: #fff8f4;
  font-size: 12px;
  line-height: 1.65;
}
.app-shell .source-contribution-notice strong { flex: 0 0 auto; color: var(--primary); }
.app-shell .source-contribution-toolbar {
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
}
.app-shell .source-contribution-range { align-items: center; gap: 8px; }
.app-shell .source-contribution-range label { margin-right: 3px; color: #4e5661; font-size: 12px; font-weight: 650; }
.app-shell .source-contribution-range > span { color: #a0a5ac; font-size: 11px; }
.app-shell .source-contribution-range .text-input { width: 142px; min-height: 35px; font-size: 12px; }
.app-shell .source-contribution-range .primary-button,
.app-shell .source-contribution-range .secondary-button { min-height: 35px; height: 35px; border-radius: 9px; font-size: 12px; }
.app-shell .source-contribution-scope { color: #8a919a; font-size: 11px; }
.app-shell .source-contribution-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}
.app-shell .source-contribution-summary .summary-card { min-height: 100px; }
.app-shell .source-contribution-summary .summary-card.danger { border-color: #f4c6c6; }
.app-shell .source-contribution-summary .summary-card.danger::after { background: #fde8e8; }
.app-shell .source-contribution-summary .summary-card.danger .summary-value { color: #d64545; }
.app-shell .source-ranking-card,
.app-shell .source-zero-card { margin-bottom: 18px; border-radius: 9px; }
.app-shell .source-ranking-card .card-header,
.app-shell .source-zero-card .card-header { align-items: center; padding: 17px 18px; }
.app-shell .source-ranking-card .card-header p,
.app-shell .source-zero-card .card-header p { margin-top: 5px; color: #9298a0; font-size: 11px; }
.app-shell .source-contribution-table { min-width: 900px; table-layout: fixed; }
.app-shell .source-contribution-table th { color: #343a43; background: #fffaf7; }
.app-shell .source-contribution-table th:first-child { width: 48%; }
.app-shell .source-contribution-table th:nth-child(2) { width: 18%; }
.app-shell .source-contribution-table th:nth-child(3) { width: 34%; }
.app-shell .source-contribution-table td { vertical-align: top; }
.app-shell .source-contribution-zero-row { background: #fff7f7; }
.app-shell .source-contribution-zero-row:hover { background: #fff0f0; }
.app-shell .source-contribution-article { min-width: 0; }
.app-shell .source-contribution-article strong {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  color: #292f37;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .source-contribution-url {
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: #6e7783;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell a.source-contribution-url:hover { color: var(--primary); }
.app-shell .source-contribution-count { white-space: nowrap; }
.app-shell .source-contribution-count > strong { margin-right: 9px; color: #252b34; font-size: 18px; }
.app-shell .source-warning-badge,
.app-shell .source-warning-total {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #efb8b8;
  border-radius: 9px;
  color: #c93f3f;
  background: #fff0f0;
  font-size: 10px;
  font-weight: 650;
}
.app-shell .source-terms-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #ffbd9f;
  border-radius: 9px;
  color: var(--primary);
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}
.app-shell .source-terms-toggle:hover,
.app-shell .source-terms-toggle:focus-visible { border-color: var(--primary); background: var(--primary-soft); outline: 0; }
.app-shell .source-terms-chevron { width: 14px; height: 14px; transition: transform .16s ease; }
.app-shell .source-terms-toggle[aria-expanded="true"] > .source-terms-chevron { transform: rotate(180deg); }
.app-shell .source-terms-panel {
  max-height: 300px;
  margin-top: 9px;
  overflow: auto;
  border: 1px solid #eceef1;
  border-radius: 9px;
  background: #fafbfc;
}
.app-shell .source-terms-panel ul,
.app-shell .source-zero-list { margin: 0; padding: 0; list-style: none; }
.app-shell .source-terms-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border-bottom: 1px solid #eceef1;
  color: #4d5560;
  font-size: 11px;
}
.app-shell .source-terms-panel li:last-child { border-bottom: 0; }
.app-shell .source-terms-panel time { flex: 0 0 auto; color: #9298a1; }
.app-shell .source-zero-card { border-color: #f0caca; box-shadow: inset 3px 0 0 #dd4b4b; }
.app-shell .source-zero-list { padding: 0 18px 17px; }
.app-shell .source-zero-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 11px;
  border-bottom: 1px solid #f5dddd;
  border-radius: 7px;
}
.app-shell .source-zero-list li:hover { background: #fff6f6; }
.app-shell .source-warning-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #d64545; box-shadow: 0 0 0 4px #fde7e7; }
.app-shell .source-zero-list .source-contribution-url { color: #8b4343; }
.app-shell .source-zero-clear { display: flex; align-items: center; gap: 12px; padding: 4px 18px 20px; color: #4f645f; }
.app-shell .source-zero-clear > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #16866f; background: #e5f6f1; }
.app-shell .source-zero-clear-icon { width: 17px; height: 17px; }
.app-shell .source-zero-clear strong { font-size: 12px; }
.app-shell .source-zero-clear p { margin-top: 3px; color: #8d959d; font-size: 11px; }

@media (max-width: 900px) {
  .app-shell .source-contribution-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .source-contribution-toolbar,
  .app-shell .source-contribution-range { align-items: stretch; flex-direction: column; }
  .app-shell .source-contribution-range .text-input { width: 100%; }
}
@media (max-width: 520px) {
  .app-shell .article-view-tabs { display: flex; width: 100%; }
  .app-shell .article-view-tab { flex: 1 1 0; }
  .app-shell .source-contribution-summary { grid-template-columns: 1fr 1fr; }
  .app-shell .source-contribution-notice { flex-direction: column; gap: 3px; }
}

@media (max-width: 1050px) {
  .raggeo-login-view .raggeo-login-shell { gap: 54px; grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr); }
  .raggeo-login-view .raggeo-login-wrap { width: auto; min-width: 0; }
  .raggeo-login-view .raggeo-login-card { width: 100%; padding: clamp(30px, 4vw, 48px); }
  .raggeo-login-view .raggeo-capability-grid { width: 710px; max-width: 710px; }
  .raggeo-login-view .raggeo-login-brand-copy h1 { font-size: 48px; }
}

@media (max-width: 820px) {
  #loginView.raggeo-login-view { position: absolute; }
  .raggeo-login-view .raggeo-login-shell {
    width: min(620px, calc(100% - 40px));
    display: block;
    padding: 34px 0 58px;
    transform: none;
  }
  .raggeo-login-view .raggeo-login-brand-panel,
  .raggeo-login-view .raggeo-login-wrap { min-height: auto; }
  .raggeo-login-view .raggeo-login-brand-panel { left: 0; }
  .raggeo-login-view .raggeo-login-brand-copy { width: 100%; max-width: 620px; margin-top: 42px; }
  .raggeo-login-view .raggeo-login-brand-copy h1 { width: 100%; max-width: 620px; font-size: clamp(40px, 8vw, 54px); }
  .raggeo-login-view .raggeo-login-brand-copy h1 span { white-space: normal; }
  .raggeo-login-view .raggeo-login-brand-copy > p { width: 100%; max-width: 620px; margin-top: 24px; font-size: 15px; }
  .raggeo-login-view .raggeo-login-wrap { max-width: 560px; margin-top: 42px; display: block; }
  .raggeo-login-view .raggeo-login-card { height: auto; }
  .raggeo-login-view .raggeo-login-corner-note { right: 12px; }
}

@media (max-width: 500px) {
  .raggeo-login-view .raggeo-login-shell { width: min(calc(100% - 28px), 430px); padding-top: 24px; }
  .raggeo-login-view .raggeo-login-brand-logo { width: 305px; }
  .raggeo-login-view .raggeo-login-brand-copy h1 { font-size: 38px; }
  .raggeo-login-view .raggeo-login-brand-copy > p { margin-top: 18px; line-height: 1.6; }
  .raggeo-login-view .raggeo-capability-grid { width: 100%; max-width: 620px; gap: 10px; margin-top: 28px; }
  .raggeo-login-view .raggeo-capability { min-height: 106px; padding: 17px; }
  .raggeo-login-view .raggeo-capability-art { min-height: 68px; }
  .raggeo-login-view .raggeo-capability-art svg { width: 62px; height: 62px; }
  .raggeo-login-view .raggeo-capability-copy p { font-size: 11px; }
  .raggeo-login-view .raggeo-login-wrap { margin-top: 30px; }
  .raggeo-login-view .raggeo-login-card { padding: 28px 21px 24px; border-radius: 23px; }
  .raggeo-login-view .raggeo-login-card h2 { font-size: 32px; }
  .raggeo-login-view .raggeo-login-form-row { align-items: flex-start; flex-direction: column; gap: 11px; }
  .raggeo-login-view .raggeo-login-corner-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .raggeo-login-view *,
  .raggeo-login-view *::before,
  .raggeo-login-view *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
 
/* 项目中心复刻层：仅作用于本页，不改变其他路由的 app shell 或客户 Viewer 页面。 */
.app-shell .content:has(.project-center-page) { background: linear-gradient(118deg, #f8f6f8 0%, #f5f4f7 48%, #f1f6f5 100%); }
.app-shell .project-center-page { min-width: 0; --brand-deep: #c2410c; }
.app-shell .project-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  align-items: start;
}
.app-shell .project-center-main { min-width: 0; }
.app-shell .project-center-main > .page-head { margin-bottom: 24px; }
.app-shell .project-center-main > .page-head h1 { font-size: 32px; letter-spacing: -.02em; }
.app-shell .project-center-main > .page-head p { max-width: 680px; margin-top: 7px; color: var(--muted); }
.app-shell .project-center-main .head-actions .primary-button { min-height: 40px; }
.app-shell .project-center-page .achievement-board-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.app-shell .project-center-page .achievement-board-tab {
  position: relative;
  min-height: 136px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,245,240,.63));
  box-shadow: 0 12px 28px rgba(43,39,36,.06), inset 0 1px 0 rgba(255,255,255,.86);
  text-align: left;
}
.app-shell .project-center-page .achievement-board-tab::after { position: absolute; right: -24px; bottom: -42px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,107,44,.1); content: ""; }
.app-shell .project-center-page .achievement-board-tab.achieved { background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(239,249,245,.7)); }
.app-shell .project-center-page .achievement-board-tab.achieved::after { background: rgba(63,167,118,.1); }
.app-shell .project-center-page .achievement-board-tab span, .app-shell .project-center-page .achievement-board-tab strong, .app-shell .project-center-page .achievement-board-tab small { position: relative; z-index: 1; display: block; }
.app-shell .project-center-page .achievement-board-tab span { color: var(--ink); font-size: 18px; font-weight: 760; }
.app-shell .project-center-page .achievement-board-tab strong { margin-top: 15px; color: var(--primary); font-size: 38px; line-height: 1; }
.app-shell .project-center-page .achievement-board-tab.achieved strong { color: var(--success); }
.app-shell .project-center-page .achievement-board-tab small { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: var(--muted); font-size: 12px; }
.app-shell .project-center-page .achievement-board-tab small i, .app-shell .project-center-page .project-live-tag i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.app-shell .project-center-page .achievement-board-tab.active { border-color: rgba(255,107,44,.6); box-shadow: 0 0 0 2px rgba(255,107,44,.1), 0 12px 28px rgba(43,39,36,.06); }
.app-shell .project-center-page .achievement-board-tab.achieved.active { border-color: rgba(63,167,118,.52); box-shadow: 0 0 0 2px rgba(63,167,118,.09), 0 12px 28px rgba(43,39,36,.06); }
.app-shell .project-center-page .project-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.app-shell .project-center-page .stat-tile {
  position: relative;
  min-width: 0;
  min-height: 90px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 9px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 10px 24px rgba(43,39,36,.05), inset 0 1px 0 rgba(255,255,255,.84);
}
.app-shell .project-center-page .stat-copy { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 100%; }
.app-shell .project-center-page .stat-copy span { color: var(--muted); font-size: 12px; }
.app-shell .project-center-page .stat-copy strong { background: linear-gradient(180deg, var(--primary), var(--brand-deep, #c2410c)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 31px; line-height: 1; }
.app-shell .project-center-page .stat-watermark { position: absolute; right: -24px; bottom: -30px; width: 106px; height: 106px; color: var(--primary); opacity: .16; -webkit-mask-image: linear-gradient(315deg, #000 0%, #000 20%, transparent 64%); mask-image: linear-gradient(315deg, #000 0%, #000 20%, transparent 64%); pointer-events: none; }
.app-shell .project-board { overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 9px; background: rgba(255,255,255,.54); box-shadow: 0 12px 28px rgba(43,39,36,.05), inset 0 1px 0 rgba(255,255,255,.82); }
.app-shell .project-board .toolbar { margin: 0; padding: 18px 20px; border-bottom: 1px solid rgba(102,89,103,.13); background: rgba(255,255,255,.4); }
.app-shell .project-board .toolbar-left > strong { font-size: 20px; }
.app-shell .project-board .project-grid { padding: 18px; }
.app-shell .project-board .project-grid { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.app-shell .project-board .pagination-bar { border-top: 1px solid rgba(102,89,103,.13); }
.app-shell .project-center-page .project-card { min-height: 268px; padding: 20px 20px 0; border: 1px solid rgba(255,255,255,.82); border-radius: 9px; background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.54)); box-shadow: 0 10px 24px rgba(43,39,36,.05), inset 0 1px 0 rgba(255,255,255,.88); }
.app-shell .project-center-page .project-card:hover { transform: translateY(-2px); border-color: rgba(255,107,44,.38); box-shadow: 0 16px 32px rgba(43,39,36,.09), inset 0 1px 0 rgba(255,255,255,.92); }
.app-shell .project-center-page .project-card-head { gap: 14px; min-height: 64px; }
.app-shell .project-center-page .project-card-title { min-width: 0; flex: 1; }
.app-shell .project-center-page .project-card h3 { color: var(--ink); font-size: 17px; font-weight: 760; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.app-shell .project-center-page .project-card-description { height: auto; min-height: 20px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.app-shell .project-center-page .project-card-head-tags { flex: 0 0 auto; max-width: 48%; }
.app-shell .project-center-page .project-card-head-tags .tag, .app-shell .project-center-page .project-card-head-tags .status-pill { min-height: 23px; padding: 3px 8px; border-radius: 5px; font-size: 10px; }
.app-shell .project-center-page .project-card-head-tags .status-pill { color: var(--primary); background: var(--primary-soft); }
.app-shell .project-center-page .project-card-head-tags .status-pill.completed { color: var(--success); background: var(--success-soft); }
.app-shell .project-center-page .project-card-head-tags .status-pill.paused { color: var(--muted); background: var(--neutral-soft, #f2f2f3); }
.app-shell .project-center-page .project-card-monitoring-status { margin-top: 13px; }
.app-shell .project-center-page .project-package-state { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 3px 8px; border-radius: 5px; color: var(--muted); background: rgba(111,103,112,.1); font-size: 10px; font-weight: 700; }
.app-shell .project-center-page .project-package-state.configured { color: var(--success); background: var(--success-soft); }
.app-shell .project-center-page .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-top: 18px; color: var(--muted); }
.app-shell .project-center-page .project-meta span { min-width: 0; line-height: 1.65; }
.app-shell .project-center-page .project-meta strong { display: inline-block; max-width: 100%; margin-top: 2px; color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.app-shell .project-center-page .project-card-footer { min-height: 54px; margin: 18px -20px 0; padding: 10px 20px; border-top: 1px solid rgba(102,89,103,.13); }
.app-shell .project-center-page .project-counts { min-width: 0; flex: 1; gap: 12px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.app-shell .project-center-page .project-counts span { overflow: hidden; text-overflow: ellipsis; }
.app-shell .project-center-page .project-card-actions { flex-wrap: nowrap; gap: 7px; }
.app-shell .project-center-page .project-icon-button { transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease; }
.app-shell .project-center-page .project-icon-button:hover, .app-shell .project-center-page .project-enter-button:hover { transform: scale(1.05); }
.app-shell .project-center-page .project-icon-button:active, .app-shell .project-center-page .project-enter-button:active { transform: scale(.95); }
.app-shell .project-center-page .project-enter-button { padding-inline: 10px; }
.app-shell .project-center-page .project-enter-button svg { order: -1; }
.app-shell .project-center-aside { display: grid; gap: 16px; min-width: 0; }
.app-shell .project-insights-card, .app-shell .project-status-card, .app-shell .project-quick-card { padding: 20px; border: 1px solid rgba(255,255,255,.76); border-radius: 9px; background: rgba(255,255,255,.58); box-shadow: 0 12px 28px rgba(43,39,36,.05), inset 0 1px 0 rgba(255,255,255,.82); }
.app-shell .project-insights-card { color: #fff; background: linear-gradient(145deg, rgba(57,47,43,.94), rgba(75,56,48,.9)); }
.app-shell .project-aside-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-shell .project-aside-heading h2 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.3; }
.app-shell .project-insights-card .project-aside-heading span:first-child { color: rgba(255,255,255,.66); font-size: 11px; }
.app-shell .project-insights-card .project-aside-heading h2 { margin-top: 3px; color: #fff; }
.app-shell .project-live-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(255,143,85,.65); border-radius: 5px; color: #ffad7f; font-size: 10px; white-space: nowrap; }
.app-shell .project-aside-note { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: 11px; }
.app-shell .project-insight-list { display: grid; gap: 17px; margin: 20px 0 0; padding: 0; list-style: none; }
.app-shell .project-insight-item { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; }
.app-shell .project-insight-item:not(:last-child)::after { position: absolute; top: 14px; bottom: -16px; left: 5px; width: 1px; background: rgba(255,143,85,.42); content: ""; }
.app-shell .project-insight-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 5px; border: 2px solid #ff8f55; border-radius: 50%; background: #593c2f; }
.app-shell .project-insight-item strong { display: block; color: #fff; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.app-shell .project-insight-item p { margin: 4px 0 0; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.45; }
.app-shell .project-aside-empty { margin: 20px 0 0; color: rgba(255,255,255,.62); font-size: 12px; }
.app-shell .project-status-card .project-aside-heading > span { color: var(--muted); font-size: 11px; }
.app-shell .project-status-list { display: grid; gap: 14px; margin-top: 17px; }
.app-shell .project-status-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px 12px; align-items: center; }
.app-shell .project-status-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.app-shell .project-status-row strong { color: var(--ink); font-size: 13px; }
.app-shell .project-status-row b { grid-column: 2; grid-row: 1 / span 2; color: var(--primary); font-size: 12px; text-align: right; }
.app-shell .project-status-row.completed b { color: var(--success); }
.app-shell .project-status-track { grid-column: 1; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(31,29,27,.08); }
.app-shell .project-status-track i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.app-shell .project-status-row.pending .project-status-track i { background: #938c91; }
.app-shell .project-status-row.completed .project-status-track i { background: var(--success); }
.app-shell .project-quick-grid { display: grid; gap: 10px; margin-top: 16px; }
.app-shell .project-quick-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 12px 13px; border: 1px solid rgba(102,89,103,.15); border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.58); cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.app-shell .project-quick-action:hover, .app-shell .project-quick-action:focus-visible { border-color: rgba(255,107,44,.5); background: var(--primary-faint); transform: translateY(-1px); }
.app-shell .project-quick-action.primary { border-color: rgba(255,107,44,.25); background: var(--primary-soft); }
.app-shell .project-quick-action svg { flex: 0 0 auto; width: 21px; height: 21px; color: var(--primary); }
.app-shell .project-quick-action span { display: grid; gap: 3px; min-width: 0; }
.app-shell .project-quick-action strong { font-size: 12px; }
.app-shell .project-quick-action small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
@media (max-width: 1500px) and (min-width: 1200px) {
  .app-shell .project-board .toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .app-shell .project-board .toolbar-left { flex: 0 0 auto; white-space: nowrap; }
  .app-shell .project-board .toolbar-right { width: 100%; justify-content: flex-start; }
  .app-shell .project-board .project-center-search { flex: 1; min-width: 190px; }
}
@media (max-width: 1199px) {
  .app-shell .project-center-layout { grid-template-columns: minmax(0, 1fr); }
  .app-shell .project-center-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .project-quick-card { grid-column: 1 / -1; }
  .app-shell .project-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell .project-center-layout { gap: 18px; }
  .app-shell .project-center-page .achievement-board-tabs, .app-shell .project-center-page .project-stats { grid-template-columns: 1fr; }
  .app-shell .project-center-page .achievement-board-tab { min-height: 112px; }
  .app-shell .project-center-aside { grid-template-columns: 1fr; }
  .app-shell .project-quick-card { grid-column: auto; }
  .app-shell .project-quick-grid { grid-template-columns: 1fr; }
  .app-shell .project-board .toolbar { align-items: stretch; flex-direction: column; gap: 13px; }
  .app-shell .project-board .toolbar-right { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .app-shell .project-board .project-grid { padding: 12px; }
  .app-shell .project-center-page .project-card { min-height: 0; }
  .app-shell .project-center-page .project-card-head { flex-direction: column; }
  .app-shell .project-center-page .project-card-head-tags { justify-content: flex-start; max-width: 100%; }
  .app-shell .project-center-page .project-card-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .app-shell .project-center-page .project-card-actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .project-center-page .project-card, .app-shell .project-center-page .project-quick-action, .app-shell .project-center-page .project-icon-button, .app-shell .project-center-page .project-enter-button { transition: none; }
}
