/* ==========================================================================
   中建钢构北非公司项目周报系统 · 4 套旗舰 UI 主题皮肤 + 页面设置弹窗 + 测试服横幅 + 副驾驶停靠与草案卡 (E652b2)
   基于 Google Stitch 旗舰多主题视觉体系 + ChatGPT 原创 Q 版萌猫/萌娃插画全面重塑
   严格 CSP 合规：0 外链、纯 Hex/RGBA、零内联样式、不影响 Word/PDF 正式版排版
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 测试预览服常驻醒目顶部横幅 & 元气可爱专属插画默认隐藏（仅 kawaii 皮肤显现）
   -------------------------------------------------------------------------- */
.beta-env-banner {
  position: sticky;
  top: 0;
  z-index: 9550;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 14px;
  background: linear-gradient(90deg, #9a3412 0%, #c2410c 50%, #9a3412 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.35;
  box-shadow: 0 2px 10px rgba(154, 52, 18, 0.32);
  text-align: center;
  flex-wrap: wrap;
}

.beta-env-banner[hidden] {
  display: none !important;
}

.beta-env-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 600;
}

/* 有测试预览服顶部橙条时，按真实测得高度 --beta-banner-h 自动避让，绝不产生空档或遮压 */
body.has-beta-banner .app-header,
body.has-beta-banner .cfg-topbar {
  top: var(--beta-banner-h, 32px);
}

body.has-beta-banner .sidebar {
  top: var(--beta-banner-h, 32px);
  height: calc(100vh - var(--beta-banner-h, 32px));
}

/* 元气可爱专属插画位点：默认在晴空海蓝 / 极简云白 / 深空科技下完全隐藏，零干扰 */
.kawaii-login-art,
.kawaii-card-peek,
.kawaii-sidebar-charm,
.ai-fab-kawaii-cat,
.ai-head-kawaii-cat,
.ai-welcome-kawaii-hero {
  display: none;
}

/* 顶部页面设置入口按钮 */
.page-settings-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line-strong, #cbd5e4);
  background: var(--surface, #ffffff);
  color: var(--ink, #22384d);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.page-settings-btn:hover {
  background: var(--blue-soft, #eaf2ff);
  border-color: var(--blue, #1b56c6);
  color: var(--blue, #1b56c6);
}

.page-settings-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.page-settings-login-fab {
  position: fixed;
  top: 46px;
  right: 16px;
  z-index: 9400;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

body:not(.has-beta-banner) .page-settings-login-fab {
  top: 14px;
}

@media (max-width: 760px) {
  .beta-env-banner {
    font-size: 11.5px;
    padding: 5px 10px;
    gap: 6px;
  }
  .beta-env-pill {
    display: none;
  }
  /* 手机端顶栏本身在文档流（position:relative），橙条已占流内空间，顶栏归零避免空档 */
  body.has-beta-banner .app-header {
    top: 0;
  }
  /* 手机吸顶章节条按橙条真实高度避让，绝不被橙条遮住上沿 */
  body.has-beta-banner .mobile-chapter-selector {
    top: var(--beta-banner-h, 32px);
  }
  body.has-beta-banner .page-settings-login-fab,
  .page-settings-login-fab {
    top: auto;
    bottom: 18px;
    right: 14px;
  }
}

.sidebar-settings-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.sidebar-settings-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   1. 「页面设置」弹窗（界面皮肤 + AI 副驾驶性格）
   -------------------------------------------------------------------------- */
.ps-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(15, 23, 42, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ps-backdrop[hidden] {
  display: none !important;
}

.ps-modal {
  width: 680px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  background: #ffffff;
  color: #1e293b;
  border-radius: 18px;
  border: 1px solid #d5e2f0;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

.ps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #134c80 0%, #2276be 100%);
  color: #ffffff;
  flex-shrink: 0;
}

.ps-head-titles h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
}

.ps-head-titles p {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: rgba(224, 242, 254, 0.92);
}

.ps-close {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px 0 20px;
  border-bottom: 1px solid #e2e8f2;
  background: #f8fbfe;
  flex-shrink: 0;
}

.ps-tab {
  appearance: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 12px 11px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ps-tab:hover {
  color: #134c80;
}

.ps-tab.is-active {
  color: #134c80;
  border-bottom-color: #2276be;
}

.ps-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.ps-panel[hidden] {
  display: none !important;
}

.ps-section-tip {
  margin: 0 0 14px 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 12.5px;
  line-height: 1.5;
}

/* 4 套皮肤预览网格 */
.ps-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ps-theme-card {
  appearance: none;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid #dbe5f1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.ps-theme-card:hover {
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.08);
}

.ps-theme-card.is-active {
  border-color: #1d6eb5;
  box-shadow: 0 0 0 3px rgba(34, 118, 190, 0.16), 0 8px 20px rgba(19, 76, 128, 0.12);
}

.ps-theme-preview {
  height: 78px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-columns: 30% 70%;
}

.ps-prev-side {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-prev-bar {
  height: 6px;
  border-radius: 99px;
  opacity: 0.88;
}

.ps-prev-bar.is-short {
  width: 66%;
  opacity: 0.52;
}

.ps-prev-main {
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-prev-top {
  height: 11px;
  border-radius: 4px;
}

.ps-prev-box {
  flex: 1;
  border-radius: 7px;
  padding: 5px 7px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
}

.ps-prev-chip {
  width: 38px;
  height: 10px;
  border-radius: 99px;
}

.ps-prev-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.ps-prev-kawaii-cat {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin-bottom: -2px;
  filter: drop-shadow(0 2px 4px rgba(238, 93, 135, 0.22));
}

/* 4 套缩略图专属配色（真实反映重塑后的视觉风格） */
.ps-preview-sky-blue .ps-prev-side { background: linear-gradient(180deg, #154f85, #226fb2); }
.ps-preview-sky-blue .ps-prev-bar { background: #e0f2fe; }
.ps-preview-sky-blue .ps-prev-main { background: #f3f6fb; }
.ps-preview-sky-blue .ps-prev-top { background: #ffffff; border: 1px solid #dbe5f1; }
.ps-preview-sky-blue .ps-prev-box { background: #ffffff; border: 1px solid #dbe5f1; }
.ps-preview-sky-blue .ps-prev-chip { background: #0072b8; }
.ps-preview-sky-blue .ps-prev-dot { background: #2276be; }

.ps-preview-minimal .ps-prev-side { background: #ffffff; border-right: 1px solid #dce9f5; }
.ps-preview-minimal .ps-prev-bar { background: #5a9ee0; }
.ps-preview-minimal .ps-prev-main { background: #f5f9fd; }
.ps-preview-minimal .ps-prev-top { background: #ffffff; border: 1px solid #dce9f5; }
.ps-preview-minimal .ps-prev-box { background: #ffffff; border: 1px solid #dce9f5; }
.ps-preview-minimal .ps-prev-chip { background: #5a9ee0; }
.ps-preview-minimal .ps-prev-dot { background: #8ec1ee; }

.ps-preview-cyber-tech .ps-prev-side { background: #09111f; border-right: 1px solid rgba(76, 215, 246, 0.34); }
.ps-preview-cyber-tech .ps-prev-bar { background: #4cd7f6; }
.ps-preview-cyber-tech .ps-prev-main { background: #070e1a; }
.ps-preview-cyber-tech .ps-prev-top { background: #0e192d; border: 1px solid rgba(76, 215, 246, 0.28); }
.ps-preview-cyber-tech .ps-prev-box { background: #132238; border: 1px solid rgba(34, 211, 238, 0.42); }
.ps-preview-cyber-tech .ps-prev-chip { background: linear-gradient(90deg, #0284c7, #22d3ee); }
.ps-preview-cyber-tech .ps-prev-dot { background: #22d3ee; }

.ps-preview-kawaii .ps-prev-side { background: linear-gradient(180deg, #fff5f8, #ffe8f0); border-right: 1px solid #f7cde0; }
.ps-preview-kawaii .ps-prev-bar { background: #ee5d87; }
.ps-preview-kawaii .ps-prev-bar.is-short { background: #83d5c9; opacity: 0.9; }
.ps-preview-kawaii .ps-prev-main { background: linear-gradient(145deg, #fff9f7, #f2fbf9); }
.ps-preview-kawaii .ps-prev-top { background: #ffffff; border: 1px solid #f8d4e2; }
.ps-preview-kawaii .ps-prev-box { background: #ffffff; border: 1px solid #f7c7da; }
.ps-preview-kawaii .ps-prev-chip { background: linear-gradient(90deg, #ee5d87, #f784a5); }

.ps-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ps-card-title {
  font-size: 14px;
  font-weight: 700;
}

.ps-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.ps-theme-card.is-active .ps-card-badge,
.ps-persona-card.is-active .ps-card-badge {
  background: #1d6eb5;
  color: #ffffff;
}

.ps-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

/* 5 套性格卡片列表 */
.ps-persona-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-persona-card {
  appearance: none;
  text-align: left;
  padding: 12px 14px;
  border-radius: 13px;
  border: 2px solid #dbe5f1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ps-persona-card:hover {
  border-color: #60a5fa;
}

.ps-persona-card.is-active {
  border-color: #1d6eb5;
  background: #f5faff;
  box-shadow: 0 0 0 3px rgba(34, 118, 190, 0.14);
}

.ps-persona-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ps-persona-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-persona-tag {
  font-size: 11.5px;
  color: #475569;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.ps-persona-sample {
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border-left: 3px solid #93c5fd;
}

.ps-foot {
  padding: 12px 20px;
  border-top: 1px solid #e2e8f2;
  background: #f8fbfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.ps-sync-status {
  font-size: 12px;
  color: #0e7040;
  font-weight: 600;
}

.ps-done-btn {
  appearance: none;
  border: none;
  border-radius: 9px;
  padding: 8px 18px;
  background: #134c80;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ps-done-btn:hover {
  background: #0f3d69;
}

/* Tab 3: 预审自动提醒开关卡（4 套皮肤自适应） */
.ps-toggle-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid #d5e2f0;
  background: #f8fbff;
}

.ps-toggle-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.ps-toggle-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ps-toggle-desc {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.ps-toggle-desc.ps-toggle-note {
  margin-bottom: 0;
  font-size: 12px;
  color: #64748b;
}

.ps-switch-state {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
}

.ps-switch-state.is-on {
  background: #dcfce7;
  color: #166534;
}

.ps-switch {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #cbd5e1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  margin-top: 2px;
}

.ps-switch.is-on {
  background: #1368b4;
  border-color: #0f5696;
}

.ps-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}

.ps-switch.is-on .ps-switch-thumb {
  transform: translateX(22px);
}

html[data-theme="minimal"] .ps-toggle-card {
  background: #f7fbff;
  border-color: #d6e6f5;
}

html[data-theme="minimal"] .ps-switch.is-on {
  background: #1d5fa7;
  border-color: #174d89;
}

html[data-theme="cyber-tech"] .ps-toggle-card {
  background: #11223b;
  border-color: rgba(76, 215, 246, 0.3);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .ps-toggle-desc {
  color: #cbd5e1;
}

html[data-theme="cyber-tech"] .ps-toggle-desc.ps-toggle-note {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .ps-switch-state {
  background: #1e3556;
  color: #cbd5e1;
}

html[data-theme="cyber-tech"] .ps-switch-state.is-on {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

html[data-theme="cyber-tech"] .ps-switch {
  background: #1e3556;
  border-color: rgba(76, 215, 246, 0.35);
}

html[data-theme="cyber-tech"] .ps-switch.is-on {
  background: #0891b2;
  border-color: #22d3ee;
}

html[data-theme="kawaii"] .ps-toggle-card {
  background: #fff7fa;
  border-color: #f6cedd;
}

html[data-theme="kawaii"] .ps-switch.is-on {
  background: #c93262;
  border-color: #b92654;
}

html[data-theme="kawaii"] .ps-switch-state.is-on {
  background: #e5f8f2;
  color: #166534;
}

@media (max-width: 640px) {
  .ps-theme-grid {
    grid-template-columns: 1fr;
  }
  .ps-modal {
    border-radius: 14px;
  }
}

/* --------------------------------------------------------------------------
   2. 副驾驶「右侧停靠边栏」+「结构化草案卡」+「新话题轻提示」样式
   -------------------------------------------------------------------------- */
@media (min-width: 960px) {
  /* 仅由最外层容器为停靠副驾驶让出一次 428px，绝不对 .app-shell 内部的 main.workspace 重复叠宽 */
  body.has-ai-docked .app-shell,
  body.has-ai-docked .cfg-main,
  body.has-ai-docked .cfg-topbar,
  body.has-ai-docked > main.workspace {
    padding-right: 428px;
    transition: padding-right 0.2s ease;
  }

  /* 底部固定保存/检查栏同步避让停靠副驾驶，防止保存按钮被遮挡 */
  body.has-ai-docked .form-footer {
    right: 428px;
    transition: right 0.2s ease;
  }

  .ai-dialog-backdrop.is-docked {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 424px;
    padding: 8px 8px 8px 0;
    background: transparent;
    pointer-events: none;
    align-items: stretch;
    justify-content: flex-end;
  }

  body.has-beta-banner .ai-dialog-backdrop.is-docked {
    top: var(--beta-banner-h, 34px);
  }

  .ai-dialog-backdrop.is-docked .ai-dialog {
    pointer-events: auto;
    width: 416px;
    height: 100%;
    max-height: none;
    border-radius: 14px;
    box-shadow: -8px 0 32px rgba(15, 35, 66, 0.16);
  }
}

.ai-persona-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ai-persona-pill:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ai-topic-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #854d0e;
  font-size: 12px;
  line-height: 1.4;
}

.ai-topic-banner[hidden] {
  display: none !important;
}

.ai-topic-reset-btn {
  appearance: none;
  border: 1px solid #d97706;
  background: #ffffff;
  color: #b45309;
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-topic-reset-btn:hover {
  background: #fef3c7;
}

/* 副驾驶结构化草案卡片 */
.ai-sugg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.ai-sugg-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #1d6eb5;
  border-radius: 11px;
  padding: 10px 12px;
  box-shadow: 0 3px 10px rgba(19, 76, 128, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ai-sugg-card.is-applied {
  border-color: #86efac;
  border-left-color: #0e7040;
  background: #f0fdf4;
}

.ai-sugg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-sugg-target {
  font-size: 12.5px;
  font-weight: 700;
  color: #134c80;
}

.ai-sugg-action-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

.ai-sugg-value {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fbfe;
  border: 1px solid #dbe7f3;
  color: #0f172a;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}

.ai-sugg-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fbfe;
  border: 1px solid #dbe7f3;
  font-size: 12px;
}

.ai-sugg-row-kv {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.ai-sugg-row-k {
  color: #64748b;
  flex-shrink: 0;
}

.ai-sugg-row-v {
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}

.ai-sugg-reason {
  margin: 0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
}

.ai-sugg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ai-sugg-apply-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #134c80 0%, #2276be 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ai-sugg-apply-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.ai-sugg-apply-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ai-sugg-undo-btn {
  appearance: none;
  border: 1px solid #dc2626;
  background: #ffffff;
  color: #b91c1c;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ai-sugg-undo-btn:hover {
  background: #fef2f2;
}

.ai-sugg-copy-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.ai-sugg-copy-btn:hover {
  background: #f1f5f9;
}

.ai-sugg-status {
  font-size: 12px;
  font-weight: 600;
  color: #0e7040;
}

.ai-sugg-readonly {
  font-size: 11.5px;
  color: #64748b;
}

/* ==========================================================================
   3. 皮肤二：极简云白（html[data-theme="minimal"]）
   清风淡蓝云白风：极净纯白留白 + 柔和天空淡蓝点缀，清透舒展、彻底告别黑白压抑感
   ========================================================================== */
html[data-theme="minimal"] {
  --cscec-blue: #4f94d4;
  --p-blue-700: #2b6cb0;
  --p-blue-600: #4285c8;
  --p-blue-500: #5a9ee0;
  --p-blue-100: #edf6fe;
  --p-blue-050: #f7fbff;
  --flagship-navy: #4f94d4;
  --flagship-navy-deep: #3c7fc0;
  --flagship-navy-mid: #68aaea;
  --navy: #336da6;
  --navy-deep: #24578a;
  --navy-mid: #4f94d4;
  --navy-hover: #64a5e4;
  --blue: #4f94d4;
  --blue-hover: #3e82c4;
  --blue-strong: #2b6cb0;
  --blue-soft: #edf6fe;
  --blue-border: #c5dff6;
  --section-blue: #f0f7fe;
  --section-blue-border: #cde2f7;
  --bg: #f6fafe;
  --surface: #ffffff;
  --surface-subtle: #f9fcff;
  --ink: #243b53;
  --ink-secondary: #486581;
  --muted: #6e859c;
  --line: #e2ecf5;
  --line-strong: #cbdced;
  --shadow-xs: 0 1px 2px rgba(79, 148, 212, 0.05);
  --shadow-sm: 0 2px 8px rgba(79, 148, 212, 0.07);
  --shadow-md: 0 8px 22px rgba(79, 148, 212, 0.1);
}

html[data-theme="minimal"] body,
html[data-theme="minimal"] body.cfg-body,
html[data-theme="minimal"] body.ai-standalone-body {
  background: #f6fafe;
  color: #243b53;
}

html[data-theme="minimal"] :focus-visible {
  outline: 2.5px solid rgba(90, 158, 224, 0.5);
}

html[data-theme="minimal"] input:not([type=checkbox]):focus,
html[data-theme="minimal"] select:focus,
html[data-theme="minimal"] textarea:focus,
html[data-theme="minimal"] .fin-num-input:focus,
html[data-theme="minimal"] .scalar-text-grow:focus-within,
html[data-theme="minimal"] .photo-caption-grow:focus-within,
html[data-theme="minimal"] .field .table-scroll td .table-text-grow:focus-within,
html[data-theme="minimal"] .field .table-scroll td .table-combo:focus-within,
html[data-theme="minimal"] .issue-explain-box .issue-explain-grow:focus-within,
html[data-theme="minimal"] button.ns-trigger:focus-visible,
html[data-theme="minimal"] button.ns-trigger[aria-expanded="true"],
html[data-theme="minimal"] input.ns-search-input:focus,
html[data-theme="minimal"] .ai-textarea:focus,
html[data-theme="minimal"] .ai-auth-field input:focus,
html[data-theme="minimal"] .cfg-field input:focus,
html[data-theme="minimal"] .cfg-field select:focus,
html[data-theme="minimal"] .cfg-batch-names-input:focus,
html[data-theme="minimal"] .cfg-ba-input:focus,
html[data-theme="minimal"] .cfg-ba-select:focus {
  border-color: #5a9ee0;
  box-shadow: 0 0 0 3px rgba(90, 158, 224, 0.18);
}

/* 登录页与首次改密页：云白极净淡蓝光影 */
html[data-theme="minimal"] .login-intro {
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 88% 12%, rgba(142, 193, 238, 0.24) 0%, rgba(142, 193, 238, 0) 46%),
    linear-gradient(rgba(79, 148, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 148, 212, 0.045) 1px, transparent 1px),
    linear-gradient(155deg, #ffffff 0%, #f4f9fe 100%);
  background-size: auto, 28px 28px, 28px 28px, auto;
  color: #243b53;
  border: 1px solid #d9e8f6;
  box-shadow: 0 12px 32px rgba(79, 148, 212, 0.08);
}

html[data-theme="minimal"] .login-intro h1,
html[data-theme="minimal"] .login-intro .wordmark,
html[data-theme="minimal"] .login-intro .login-ci-group,
html[data-theme="minimal"] .login-highlights li b {
  color: #1f3a56;
}

html[data-theme="minimal"] .login-intro > p,
html[data-theme="minimal"] .login-highlights li span {
  color: #56708a;
}

html[data-theme="minimal"] .login-intro .brand-kicker {
  background: #edf6fe;
  border-color: #c6dff6;
  color: #2c68a2;
}

html[data-theme="minimal"] .login-highlights li {
  border-left-color: #9dc9f0;
}

html[data-theme="minimal"] .login-highlights li::before {
  background: #5a9ee0;
  box-shadow: 0 0 0 3px rgba(90, 158, 224, 0.18);
}

html[data-theme="minimal"] .login-card::before {
  background: linear-gradient(90deg, #5a9ee0 0%, #86bef0 100%);
}

/* 极简淡蓝全站按钮体系：用 :where(...) 保持零多余权重，彻底杜绝压垮侧栏或语义按钮 */
html[data-theme="minimal"] button:where(:not(.secondary):not(.quiet):not(.icon-button):not(.nav-scrim):not(.chapter-button):not(.subblock-btn):not(.chapter-picker-trigger):not(.group-toggle):not(.ui-scale-btn):not(.ui-scale-opt):not(.ns-trigger):not(.ns-option):not(.ps-tab):not(.ps-theme-card):not(.ps-persona-card):not(.ps-close):not(.ps-switch):not(.ai-fab):not(.ai-icon-btn):not(.ai-quick-btn):not(.ai-img-pick-btn):not(.ai-voice-btn):not(.ai-voice-mini-btn):not(.ai-img-voice-btn):not(.ai-img-remove):not(.ai-persona-pill):not(.ai-topic-reset-btn):not(.ai-precheck-action-btn):not(.ai-sugg-undo-btn):not(.ai-sugg-copy-btn):not(.page-settings-btn):not(.choice-pill):not(.num-chip):not(.num-chip-clear):not(.cfg-btn-danger):not(.cfg-btn-del):not(.cfg-btn-warn):not(.cfg-btn-ghost):not(.cfg-btn-outline):not(.cfg-btn-outline-sm):not(.cfg-btn-light):not(.cfg-pm-chip):not(.is-recording):not(.is-danger):not(.is-warn):not(.is-ok):not(.is-error):not(.save-complete)),
html[data-theme="minimal"] .login-card > button[type="submit"],
html[data-theme="minimal"] .login-card > button:not(.secondary):not(.quiet),
html[data-theme="minimal"] .footer-buttons .primary-save,
html[data-theme="minimal"] .sidebar-preview-btn,
html[data-theme="minimal"] .header-period .mobile-preview-btn,
html[data-theme="minimal"] .doc-preview-exit-btn,
html[data-theme="minimal"] .cfg-btn-primary,
html[data-theme="minimal"] .cfg-pm-rp-done,
html[data-theme="minimal"] .ai-send-btn,
html[data-theme="minimal"] .ai-auth-submit,
html[data-theme="minimal"] .ai-sugg-apply-btn,
html[data-theme="minimal"] .ps-done-btn {
  background: linear-gradient(135deg, #1d5fa7 0%, #2b73bf 100%);
  border-color: #1d5fa7;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(29, 95, 167, 0.24);
}

html[data-theme="minimal"] button:where(:not(.secondary):not(.quiet):not(.icon-button):not(.nav-scrim):not(.chapter-button):not(.subblock-btn):not(.chapter-picker-trigger):not(.group-toggle):not(.ui-scale-btn):not(.ui-scale-opt):not(.ns-trigger):not(.ns-option):not(.ps-tab):not(.ps-theme-card):not(.ps-persona-card):not(.ps-close):not(.ps-switch):not(.ai-fab):not(.ai-icon-btn):not(.ai-quick-btn):not(.ai-img-pick-btn):not(.ai-voice-btn):not(.ai-voice-mini-btn):not(.ai-img-voice-btn):not(.ai-img-remove):not(.ai-persona-pill):not(.ai-topic-reset-btn):not(.ai-precheck-action-btn):not(.ai-sugg-undo-btn):not(.ai-sugg-copy-btn):not(.page-settings-btn):not(.choice-pill):not(.num-chip):not(.num-chip-clear):not(.cfg-btn-danger):not(.cfg-btn-del):not(.cfg-btn-warn):not(.cfg-btn-ghost):not(.cfg-btn-outline):not(.cfg-btn-outline-sm):not(.cfg-btn-light):not(.cfg-pm-chip):not(.is-recording):not(.is-danger):not(.is-warn):not(.is-ok):not(.is-error):not(.save-complete)):hover:not(:disabled),
html[data-theme="minimal"] .login-card > button[type="submit"]:hover:not(:disabled),
html[data-theme="minimal"] .footer-buttons .primary-save:hover:not(:disabled),
html[data-theme="minimal"] .doc-preview-exit-btn:hover,
html[data-theme="minimal"] .cfg-btn-primary:hover:not(:disabled),
html[data-theme="minimal"] .cfg-pm-rp-done:hover,
html[data-theme="minimal"] .ps-done-btn:hover {
  background: linear-gradient(135deg, #174d89 0%, #225fa3 100%);
  border-color: #174d89;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(23, 77, 137, 0.3);
}

html[data-theme="minimal"] .report-list button,
html[data-theme="minimal"] .chapter-picker-trigger,
html[data-theme="minimal"] .group-toggle {
  background: #ffffff;
  border-color: #dce9f5;
  color: #243b53;
  box-shadow: none;
}

html[data-theme="minimal"] .report-list button:hover:not(:disabled) {
  background: #eff7fe;
  border-color: #a9cff2;
  color: #1f5c99;
}

html[data-theme="minimal"] .sidebar-preview-btn {
  background: linear-gradient(135deg, #1d5fa7 0%, #2b73bf 100%) !important;
  border-color: #1d5fa7 !important;
  color: #ffffff !important;
}

html[data-theme="minimal"] .footer-buttons .primary-save.save-complete {
  background: linear-gradient(135deg, #279976 0%, #42b591 100%);
  border-color: #279976;
  color: #ffffff;
}

html[data-theme="minimal"] button.secondary,
html[data-theme="minimal"] .page-settings-btn,
html[data-theme="minimal"] .ui-scale-btn,
html[data-theme="minimal"] .period-details summary,
html[data-theme="minimal"] .cfg-btn-outline,
html[data-theme="minimal"] .cfg-btn-outline-sm,
html[data-theme="minimal"] .cfg-btn-ghost,
html[data-theme="minimal"] .cfg-btn-light,
html[data-theme="minimal"] .ai-page-link,
html[data-theme="minimal"] .num-chip,
html[data-theme="minimal"] .num-chip-clear,
html[data-theme="minimal"] .ai-img-pick-btn,
html[data-theme="minimal"] .ai-img-voice-btn,
html[data-theme="minimal"] .ai-quick-btn,
html[data-theme="minimal"] .cfg-pm-chip {
  background: #ffffff;
  border-color: #cde0f2;
  color: #2b5c8a;
  box-shadow: none;
}

html[data-theme="minimal"] button.secondary:hover:not(:disabled),
html[data-theme="minimal"] .page-settings-btn:hover,
html[data-theme="minimal"] .ui-scale-btn:hover,
html[data-theme="minimal"] .period-details[open] summary,
html[data-theme="minimal"] .cfg-btn-outline:hover:not(:disabled),
html[data-theme="minimal"] .cfg-btn-ghost:hover:not(:disabled),
html[data-theme="minimal"] .num-chip:hover,
html[data-theme="minimal"] .ai-img-pick-btn:hover,
html[data-theme="minimal"] .ai-img-voice-btn:hover:not(:disabled),
html[data-theme="minimal"] .ai-quick-btn:hover,
html[data-theme="minimal"] .cfg-pm-chip:hover {
  background: #edf6fe;
  border-color: #84bae9;
  color: #1c538a;
  box-shadow: none;
}

html[data-theme="minimal"] .field-voice > button.voice-record-btn.secondary,
html[data-theme="minimal"] button.caption-voice-btn.secondary,
html[data-theme="minimal"] .ai-voice-btn {
  background: #edf6fe;
  border: 1.5px solid #b5d7f5;
  color: #225d96;
}

html[data-theme="minimal"] .field-voice > button.voice-record-btn.secondary:hover:not(:disabled),
html[data-theme="minimal"] button.caption-voice-btn.secondary:hover:not(:disabled),
html[data-theme="minimal"] .ai-voice-btn:hover {
  background: #dceefb;
  border-color: #6eaee6;
  color: #184a7a;
}

html[data-theme="minimal"] button.quiet,
html[data-theme="minimal"] .voice-ai-btn,
html[data-theme="minimal"] .icon-button {
  background: transparent;
  border-color: #dce9f5;
  color: #486581;
  box-shadow: none;
}

html[data-theme="minimal"] button.quiet:hover:not(:disabled),
html[data-theme="minimal"] .voice-ai-btn:hover:not(:disabled) {
  background: #edf6fe;
  border-color: #b7d8f5;
  color: #1f5c99;
  box-shadow: none;
}

html[data-theme="minimal"] .choice-pill,
html[data-theme="minimal"] .ns-trigger,
html[data-theme="minimal"] .ns-option,
html[data-theme="minimal"] .ui-scale-opt,
html[data-theme="minimal"] .ps-tab,
html[data-theme="minimal"] .ps-theme-card,
html[data-theme="minimal"] .ps-persona-card,
html[data-theme="minimal"] .ai-sugg-copy-btn,
html[data-theme="minimal"] .ai-sugg-undo-btn,
html[data-theme="minimal"] .ai-topic-reset-btn {
  background: #ffffff;
  color: #243b53;
  border-color: #d2e3f3;
  box-shadow: none;
}

html[data-theme="minimal"] .choice-pill.is-selected,
html[data-theme="minimal"] .choice-pills:not(.choice-pills-cards) .choice-pill.is-selected,
html[data-theme="minimal"] .ui-scale-opt.is-active,
html[data-theme="minimal"] .doc-preview-zoom-btn.is-active,
html[data-theme="minimal"] .cfg-pm-chip.is-active,
html[data-theme="minimal"] .ps-theme-card.is-active .ps-card-badge,
html[data-theme="minimal"] .ps-persona-card.is-active .ps-card-badge {
  background: linear-gradient(135deg, #5298de 0%, #71b2ec 100%);
  border-color: #5298de;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(82, 152, 222, 0.22);
}

html[data-theme="minimal"] .ui-scale-opt.is-active strong,
html[data-theme="minimal"] .ui-scale-opt.is-active span {
  color: #ffffff;
}

html[data-theme="minimal"] .choice-pills.choice-pills-cards .choice-pill.is-selected {
  background: #edf6fe;
  border-color: #5298de;
  color: #1c538a;
  box-shadow: 0 0 0 2px rgba(82, 152, 222, 0.16);
}

/* 极简淡蓝纯白侧边栏（清透柔和，未选中绝不变黑块！） */
html[data-theme="minimal"] .sidebar {
  background: #ffffff;
  border-right: 1px solid #e1ecf6;
  color: #243b53;
  box-shadow: none;
}

html[data-theme="minimal"] .sidebar-brand .wordmark,
html[data-theme="minimal"] .sidebar .main-navigation button,
html[data-theme="minimal"] .sidebar .chapter-button,
html[data-theme="minimal"] .sidebar .chapter-group > summary,
html[data-theme="minimal"] .sidebar .subblock-btn,
html[data-theme="minimal"] .sidebar-nav-link {
  background: transparent;
  border-color: transparent;
  color: #334e68;
  box-shadow: none;
}

html[data-theme="minimal"] .sidebar-brand .brand-subtitle,
html[data-theme="minimal"] .sidebar .chapter-navigation h2 {
  color: #7b93ab;
}

html[data-theme="minimal"] .sidebar .chapter-navigation h2 span {
  background: #edf6fe;
  color: #3474b0;
}

html[data-theme="minimal"] .sidebar .main-navigation button img,
html[data-theme="minimal"] .sidebar .chapter-group > summary img {
  filter: invert(35%) sepia(24%) saturate(850%) hue-rotate(175deg) brightness(92%) contrast(90%);
}

html[data-theme="minimal"] .sidebar .main-navigation button:hover:not(:disabled),
html[data-theme="minimal"] .sidebar .chapter-button:hover,
html[data-theme="minimal"] .sidebar .chapter-group > summary:hover,
html[data-theme="minimal"] .sidebar .subblock-btn:hover {
  background: #f0f7fe;
  color: #1e5c99;
}

html[data-theme="minimal"] .sidebar .main-navigation button.active,
html[data-theme="minimal"] .sidebar .chapter-navigation .chapter-button.active,
html[data-theme="minimal"] .sidebar .chapter-navigation .chapter-button.active:hover,
html[data-theme="minimal"] .sidebar .chapter-group button.subblock-btn.active {
  background: #e8f3fe !important;
  border-color: #b7d8f6 !important;
  color: #1b5894 !important;
  box-shadow: inset 3px 0 0 #5298de !important;
}

html[data-theme="minimal"] .sidebar .chapter-button > span:first-child,
html[data-theme="minimal"] .sidebar .chapter-group summary > span:first-child {
  background: #eef6fe;
  color: #3774ad;
}

html[data-theme="minimal"] .sidebar .chapter-navigation .chapter-button.active > span:first-child {
  background: #5298de !important;
  color: #ffffff !important;
}

html[data-theme="minimal"] .sidebar .chapter-button.is-tone-idle,
html[data-theme="minimal"] .sidebar .chapter-group.is-tone-idle > summary {
  background: #f9fcff;
  border-color: #e6f0f8;
}

html[data-theme="minimal"] .sidebar .chapter-status-tag,
html[data-theme="minimal"] .sidebar .subblock-tag {
  background: #f1f6fb;
  color: #56708a !important;
  border: 1px solid #dfeaf4;
}

html[data-theme="minimal"] .sidebar .chapter-status-tag.is-tone-info,
html[data-theme="minimal"] .sidebar .subblock-tag.is-tone-info {
  background: #e8f4fe;
  color: #2564a1 !important;
  border-color: #bddcf7;
}

html[data-theme="minimal"] .sidebar .chapter-status-tag.is-tone-error,
html[data-theme="minimal"] .sidebar .subblock-tag.is-tone-error {
  background: #fef2f2;
  color: #b91c1c !important;
  border-color: #fecaca;
}

html[data-theme="minimal"] .sidebar .chapter-status-tag.is-tone-warn,
html[data-theme="minimal"] .sidebar .subblock-tag.is-tone-warn {
  background: #fffbeb;
  color: #92400e !important;
  border-color: #fde68a;
}

html[data-theme="minimal"] .sidebar .chapter-status-tag.is-tone-done,
html[data-theme="minimal"] .sidebar .subblock-tag.is-tone-done,
html[data-theme="minimal"] .sidebar .chapter-status-tag.is-tone-success,
html[data-theme="minimal"] .sidebar .subblock-tag.is-tone-success {
  background: #ecfdf5;
  color: #065f46 !important;
  border-color: #a7f3d0;
}

/* 极简淡蓝顶栏、徽章、卡片、表格、财务与后台组件 */
html[data-theme="minimal"] .header-period b {
  background: linear-gradient(135deg, #5298de 0%, #71b2ec 100%);
  color: #ffffff;
}

html[data-theme="minimal"] .mobile-brand {
  background: #ffffff;
  color: #243b53;
  border-bottom: 1px solid #e1ecf6;
}

html[data-theme="minimal"] .cfg-topbar,
html[data-theme="minimal"] .ai-page-topbar {
  background: linear-gradient(135deg, #f3f9ff 0%, #e7f3fe 100%);
  color: #1f3a56;
  border-bottom: 1px solid #cde1f5;
  box-shadow: none;
}

html[data-theme="minimal"] .cfg-topbar h1,
html[data-theme="minimal"] .ai-page-topbar h1,
html[data-theme="minimal"] .period-popover-title,
html[data-theme="minimal"] .period-val,
html[data-theme="minimal"] .fin-computed-val,
html[data-theme="minimal"] .carry-fin-cell.is-computed .carry-fin-val,
html[data-theme="minimal"] .calc-summary-table .is-tone-accent,
html[data-theme="minimal"] .pending-upload-title-wrap strong,
html[data-theme="minimal"] .cfg-pm-tool-item,
html[data-theme="minimal"] .cfg-pm-rp-head strong,
html[data-theme="minimal"] .cfg-inline-title,
html[data-theme="minimal"] .ai-auth-title,
html[data-theme="minimal"] .ai-auth-foot a {
  color: #26649e;
}

html[data-theme="minimal"] .period-popover-title::before,
html[data-theme="minimal"] .calc-summary-head h3::before {
  background: linear-gradient(180deg, #5298de 0%, #86bef0 100%);
}

html[data-theme="minimal"] .cfg-brand-sub,
html[data-theme="minimal"] .ai-page-titles span {
  color: #5c7794;
}

html[data-theme="minimal"] .cfg-brand-tag,
html[data-theme="minimal"] .calc-summary-badge,
html[data-theme="minimal"] .fin-badge,
html[data-theme="minimal"] .pwd-rule-box,
html[data-theme="minimal"] .cfg-banner-info,
html[data-theme="minimal"] .cfg-pm-cov-bar,
html[data-theme="minimal"] .cfg-pm-th-count,
html[data-theme="minimal"] .cfg-pm-sel-tag,
html[data-theme="minimal"] .pending-upload-file-badge,
html[data-theme="minimal"] .caption-voice-status,
html[data-theme="minimal"] .ps-section-tip,
html[data-theme="minimal"] .ai-sugg-action-tag {
  background: #edf6fe;
  color: #256099;
  border-color: #c5dff6;
}

html[data-theme="minimal"] .pending-upload-panel {
  background: #f7fbff;
  border-color: #bddaf5;
}

html[data-theme="minimal"] thead th,
html[data-theme="minimal"] .finance-matrix .fin-group-th,
html[data-theme="minimal"] .carry-finance-table .carry-fin-group,
html[data-theme="minimal"] .cfg-pm-table thead th {
  background: #f2f8fe;
  color: #26598a;
  border-color: #d9e9f7;
}

html[data-theme="minimal"] .manager-progress-bar::-webkit-progress-value,
html[data-theme="minimal"] .manager-progress-bar::-moz-progress-bar {
  background: linear-gradient(90deg, #5298de 0%, #7ec0f2 100%);
}

html[data-theme="minimal"] .report-list button.selected {
  border-color: #5298de;
  background: #edf6fe;
  box-shadow: 0 0 0 2px rgba(82, 152, 222, 0.16);
}

html[data-theme="minimal"] .ai-fab,
html[data-theme="minimal"] .ai-fab.is-peek,
html[data-theme="minimal"] .ai-head,
html[data-theme="minimal"] .ps-head,
html[data-theme="minimal"] .ai-msg.is-user .ai-bubble {
  background: linear-gradient(135deg, #4e94da 0%, #70b2ec 100%);
  border-color: #5298de;
  color: #ffffff;
}

html[data-theme="minimal"] .ai-ctx-bar,
html[data-theme="minimal"] .ai-img-preview-bar,
html[data-theme="minimal"] .ai-voice-bar {
  background: #f0f7fe;
  border-color: #d7e8f7;
  color: #285d91;
}

html[data-theme="minimal"] .ai-sugg-card {
  border-color: #c5dff6;
  border-left-color: #5298de;
  box-shadow: 0 3px 10px rgba(82, 152, 222, 0.08);
}

html[data-theme="minimal"] .ai-sugg-target,
html[data-theme="minimal"] .ai-welcome-title,
html[data-theme="minimal"] .ps-tab.is-active {
  color: #256099;
}

html[data-theme="minimal"] .ps-tab.is-active {
  border-bottom-color: #5298de;
}

html[data-theme="minimal"] .ps-theme-card.is-active,
html[data-theme="minimal"] .ps-persona-card.is-active {
  border-color: #5298de;
  background: #f4fafe;
  box-shadow: 0 0 0 3px rgba(82, 152, 222, 0.14);
}

html[data-theme="minimal"] .ps-persona-sample {
  border-left-color: #71b2ec;
}

html[data-theme="minimal"] .ai-typing-dots span {
  background: #5298de;
}

html[data-theme="minimal"] .ai-bubble-code {
  background: #edf6fe;
  color: #256099;
}

html[data-theme="minimal"] .ai-precheck-bar {
  background: #fff5f5;
  border-bottom-color: #fed7d7;
  color: #991b1b;
}

html[data-theme="minimal"] .ai-precheck-action-btn {
  background: #ffffff;
  border-color: #fca5a5;
  color: #b91c1c;
}

html[data-theme="minimal"] .ai-precheck-action-btn:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #dc2626;
}

/* ==========================================================================
   4. 皮肤三：深空科技（html[data-theme="cyber-tech"]）
   基于 Google Stitch「极光指挥舱」视觉稿全面升级：哑光深海夜蓝 + 冰青微光 + 全控件暗色统一
   ========================================================================== */
html[data-theme="cyber-tech"] {
  color-scheme: dark;
  --cscec-blue: #22d3ee;
  --p-blue-700: #67e8f9;
  --p-blue-600: #22d3ee;
  --p-blue-500: #06b6d4;
  --p-blue-100: rgba(34, 211, 238, 0.14);
  --p-blue-050: rgba(14, 30, 54, 0.84);
  --flagship-navy: #0c192d;
  --flagship-navy-deep: #070e1a;
  --flagship-navy-mid: #132540;
  --navy: #38bdf8;
  --navy-deep: #0ea5e9;
  --navy-mid: #163252;
  --navy-hover: #1e426c;
  --blue: #22d3ee;
  --blue-hover: #06b6d4;
  --blue-strong: #67e8f9;
  --blue-soft: rgba(34, 211, 238, 0.13);
  --blue-border: rgba(76, 215, 246, 0.34);
  --section-blue: #0e1c32;
  --section-blue-border: rgba(76, 215, 246, 0.22);
  --section-mint: #0d1f30;
  --section-mint-border: rgba(45, 212, 191, 0.24);
  --section-amber: #1c1914;
  --section-amber-border: rgba(251, 191, 36, 0.28);
  --section-indigo: #141936;
  --section-indigo-border: rgba(129, 140, 248, 0.28);
  --section-slate: #101d30;
  --bg: #070e1a;
  --surface: #0e192d;
  --surface-subtle: #132238;
  --ink: #eaf4ff;
  --ink-secondary: #a8c5e2;
  --muted: #7c9cbf;
  --line: rgba(76, 215, 246, 0.16);
  --line-strong: rgba(76, 215, 246, 0.32);
  --green: #34d399;
  --green-soft: rgba(16, 185, 129, 0.16);
  --green-border: rgba(52, 211, 153, 0.36);
  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --amber-border: rgba(251, 191, 36, 0.38);
  --red: #f87171;
  --red-soft: rgba(239, 68, 68, 0.16);
  --red-border: rgba(248, 113, 113, 0.42);
  --indigo: #a5b4fc;
  --indigo-soft: rgba(99, 102, 241, 0.18);
  --indigo-border: rgba(129, 140, 248, 0.4);
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.38);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.46);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
}

html[data-theme="cyber-tech"] body,
html[data-theme="cyber-tech"] body.cfg-body,
html[data-theme="cyber-tech"] body.ai-standalone-body {
  background: radial-gradient(circle at 18% 8%, #0d213d 0%, #070e1a 56%, #050a14 100%);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] :focus-visible {
  outline: 2.5px solid rgba(76, 215, 246, 0.65);
}

html[data-theme="cyber-tech"] .login-intro {
  background-color: #091526;
  background-image:
    radial-gradient(circle at 82% 16%, rgba(76, 215, 246, 0.24) 0%, rgba(76, 215, 246, 0) 48%),
    linear-gradient(rgba(76, 215, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 215, 246, 0.07) 1px, transparent 1px),
    linear-gradient(155deg, #091526 0%, #0d2240 56%, #0c3158 100%);
  border: 1px solid rgba(76, 215, 246, 0.32);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(125, 211, 252, 0.18);
}

html[data-theme="cyber-tech"] .login-card,
html[data-theme="cyber-tech"] .panel,
html[data-theme="cyber-tech"] .cfg-card,
html[data-theme="cyber-tech"] .cfg-kpi-card,
html[data-theme="cyber-tech"] .ai-auth-card,
html[data-theme="cyber-tech"] .inbox-card,
html[data-theme="cyber-tech"] .period-popover,
html[data-theme="cyber-tech"] .ui-scale-menu,
html[data-theme="cyber-tech"] .ns-menu,
html[data-theme="cyber-tech"] .ns-sheet,
html[data-theme="cyber-tech"] .logout-modal,
html[data-theme="cyber-tech"] .carry-card,
html[data-theme="cyber-tech"] .carry-history-card,
html[data-theme="cyber-tech"] .calc-summary-card,
html[data-theme="cyber-tech"] .cfg-block-item {
  background: #0e192d;
  color: #eaf4ff;
  border-color: rgba(76, 215, 246, 0.24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="cyber-tech"] .pending-upload-panel {
  background: #0b182c;
  border-color: rgba(76, 215, 246, 0.42);
}

html[data-theme="cyber-tech"] .login-card::before {
  background: linear-gradient(90deg, #0284c7 0%, #22d3ee 55%, #818cf8 100%);
}

html[data-theme="cyber-tech"] .sidebar {
  background: linear-gradient(180deg, #08101d 0%, #0a1629 60%, #0d1d35 100%);
  border-right: 1px solid rgba(76, 215, 246, 0.22);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .sidebar .main-navigation button.active,
html[data-theme="cyber-tech"] .sidebar .chapter-navigation .chapter-button.active,
html[data-theme="cyber-tech"] .sidebar .chapter-navigation .chapter-button.active:hover,
html[data-theme="cyber-tech"] .sidebar .chapter-group button.subblock-btn.active {
  background: rgba(34, 211, 238, 0.16) !important;
  border-color: rgba(76, 215, 246, 0.58) !important;
  box-shadow: inset 3px 0 0 #22d3ee, 0 0 16px rgba(34, 211, 238, 0.18) !important;
  color: #ffffff !important;
}

html[data-theme="cyber-tech"] .sidebar .chapter-navigation .chapter-button.active > span:first-child {
  background: #06b6d4 !important;
  color: #061422 !important;
}

html[data-theme="cyber-tech"] .app-header,
html[data-theme="cyber-tech"] .mobile-brand,
html[data-theme="cyber-tech"] .cfg-topbar,
html[data-theme="cyber-tech"] .ai-page-topbar {
  background: rgba(10, 20, 38, 0.96);
  border-bottom: 1px solid rgba(76, 215, 246, 0.26);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .header-period b {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.28);
}

html[data-theme="cyber-tech"] .app-header a,
html[data-theme="cyber-tech"] .app-header .identity,
html[data-theme="cyber-tech"] .login-card h1,
html[data-theme="cyber-tech"] .login-card h2,
html[data-theme="cyber-tech"] .login-card h3,
html[data-theme="cyber-tech"] .panel h1,
html[data-theme="cyber-tech"] .panel h2,
html[data-theme="cyber-tech"] .panel h3,
html[data-theme="cyber-tech"] label,
html[data-theme="cyber-tech"] .cfg-kpi-num,
html[data-theme="cyber-tech"] .cfg-field > span,
html[data-theme="cyber-tech"] .cfg-check,
html[data-theme="cyber-tech"] .ns-trigger,
html[data-theme="cyber-tech"] .ns-option,
html[data-theme="cyber-tech"] .ui-scale-opt strong,
html[data-theme="cyber-tech"] .period-val,
html[data-theme="cyber-tech"] .pending-upload-title-wrap strong,
html[data-theme="cyber-tech"] .ai-auth-title {
  color: #f0f9ff;
}

html[data-theme="cyber-tech"] .period-popover-title,
html[data-theme="cyber-tech"] .fin-computed-val,
html[data-theme="cyber-tech"] .carry-fin-cell.is-computed .carry-fin-val,
html[data-theme="cyber-tech"] .calc-summary-table .is-tone-accent,
html[data-theme="cyber-tech"] .cfg-pm-tool-item,
html[data-theme="cyber-tech"] .cfg-pm-rp-head strong,
html[data-theme="cyber-tech"] .cfg-inline-title,
html[data-theme="cyber-tech"] .ai-auth-foot a {
  color: #4cd7f6;
}

html[data-theme="cyber-tech"] .period-popover-title::before,
html[data-theme="cyber-tech"] .calc-summary-head h3::before {
  background: linear-gradient(180deg, #22d3ee 0%, #0284c7 100%);
}

html[data-theme="cyber-tech"] .login-card .muted,
html[data-theme="cyber-tech"] .login-card p,
html[data-theme="cyber-tech"] .resume-entry .help {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="cyber-tech"] textarea,
html[data-theme="cyber-tech"] select,
html[data-theme="cyber-tech"] .ns-trigger,
html[data-theme="cyber-tech"] .ui-scale-btn,
html[data-theme="cyber-tech"] .page-settings-btn,
html[data-theme="cyber-tech"] .period-details summary,
html[data-theme="cyber-tech"] .cfg-pm-role-select,
html[data-theme="cyber-tech"] .ai-ctx-select {
  background: #091426;
  color: #eaf4ff;
  border-color: rgba(76, 215, 246, 0.3);
}

html[data-theme="cyber-tech"] input::placeholder,
html[data-theme="cyber-tech"] textarea::placeholder {
  color: #64748b;
}

html[data-theme="cyber-tech"] input:focus,
html[data-theme="cyber-tech"] textarea:focus,
html[data-theme="cyber-tech"] select:focus,
html[data-theme="cyber-tech"] .fin-num-input:focus,
html[data-theme="cyber-tech"] .scalar-text-grow:focus-within,
html[data-theme="cyber-tech"] .photo-caption-grow:focus-within,
html[data-theme="cyber-tech"] .field .table-scroll td .table-text-grow:focus-within,
html[data-theme="cyber-tech"] .field .table-scroll td .table-combo:focus-within,
html[data-theme="cyber-tech"] button.ns-trigger[aria-expanded="true"],
html[data-theme="cyber-tech"] .ai-textarea:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22);
}

html[data-theme="cyber-tech"] table,
html[data-theme="cyber-tech"] th,
html[data-theme="cyber-tech"] td {
  border-color: rgba(76, 215, 246, 0.2);
  color: #dbeafe;
}

html[data-theme="cyber-tech"] thead th,
html[data-theme="cyber-tech"] .finance-matrix .fin-group-th,
html[data-theme="cyber-tech"] .carry-finance-table .carry-fin-group,
html[data-theme="cyber-tech"] .cfg-pm-table thead th {
  background: #132540;
  color: #67e8f9;
  border-color: rgba(76, 215, 246, 0.26);
}

html[data-theme="cyber-tech"] tbody tr:nth-child(even) {
  background: rgba(14, 29, 52, 0.72);
}

html[data-theme="cyber-tech"] tbody tr:hover {
  background: rgba(34, 211, 238, 0.1);
}

/* 深空科技全站统一按钮体系：主按钮极光青、次按钮深琉璃、语音深青、AI电光紫（:where 零冗余权重） */
html[data-theme="cyber-tech"] button:where(:not(.secondary):not(.quiet):not(.icon-button):not(.nav-scrim):not(.chapter-button):not(.subblock-btn):not(.chapter-picker-trigger):not(.group-toggle):not(.ui-scale-btn):not(.ui-scale-opt):not(.ns-trigger):not(.ns-option):not(.ps-tab):not(.ps-theme-card):not(.ps-persona-card):not(.ps-close):not(.ps-switch):not(.ai-fab):not(.ai-icon-btn):not(.ai-quick-btn):not(.ai-img-pick-btn):not(.ai-voice-btn):not(.ai-voice-mini-btn):not(.ai-img-voice-btn):not(.ai-img-remove):not(.ai-persona-pill):not(.ai-topic-reset-btn):not(.ai-precheck-action-btn):not(.ai-sugg-undo-btn):not(.ai-sugg-copy-btn):not(.page-settings-btn):not(.choice-pill):not(.num-chip):not(.num-chip-clear):not(.cfg-btn-danger):not(.cfg-btn-del):not(.cfg-btn-warn):not(.cfg-btn-ghost):not(.cfg-btn-outline):not(.cfg-btn-outline-sm):not(.cfg-btn-light):not(.cfg-pm-chip):not(.is-recording):not(.is-danger):not(.is-warn):not(.is-ok):not(.is-error):not(.save-complete)),
html[data-theme="cyber-tech"] .login-card > button[type="submit"],
html[data-theme="cyber-tech"] .login-card > button:not(.secondary):not(.quiet),
html[data-theme="cyber-tech"] .footer-buttons .primary-save,
html[data-theme="cyber-tech"] .header-period .mobile-preview-btn,
html[data-theme="cyber-tech"] .doc-preview-exit-btn,
html[data-theme="cyber-tech"] .cfg-btn-primary,
html[data-theme="cyber-tech"] .cfg-pm-rp-done,
html[data-theme="cyber-tech"] .ai-fab,
html[data-theme="cyber-tech"] .ai-fab.is-peek,
html[data-theme="cyber-tech"] .ai-send-btn,
html[data-theme="cyber-tech"] .ai-auth-submit,
html[data-theme="cyber-tech"] .ai-sugg-apply-btn,
html[data-theme="cyber-tech"] .ps-done-btn {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.28);
}

html[data-theme="cyber-tech"] button:where(:not(.secondary):not(.quiet):not(.icon-button):not(.nav-scrim):not(.chapter-button):not(.subblock-btn):not(.chapter-picker-trigger):not(.group-toggle):not(.ui-scale-btn):not(.ui-scale-opt):not(.ns-trigger):not(.ns-option):not(.ps-tab):not(.ps-theme-card):not(.ps-persona-card):not(.ps-close):not(.ps-switch):not(.ai-fab):not(.ai-icon-btn):not(.ai-quick-btn):not(.ai-img-pick-btn):not(.ai-voice-btn):not(.ai-voice-mini-btn):not(.ai-img-voice-btn):not(.ai-img-remove):not(.ai-persona-pill):not(.ai-topic-reset-btn):not(.ai-precheck-action-btn):not(.ai-sugg-undo-btn):not(.ai-sugg-copy-btn):not(.page-settings-btn):not(.choice-pill):not(.num-chip):not(.num-chip-clear):not(.cfg-btn-danger):not(.cfg-btn-del):not(.cfg-btn-warn):not(.cfg-btn-ghost):not(.cfg-btn-outline):not(.cfg-btn-outline-sm):not(.cfg-btn-light):not(.cfg-pm-chip):not(.is-recording):not(.is-danger):not(.is-warn):not(.is-ok):not(.is-error):not(.save-complete)):hover:not(:disabled),
html[data-theme="cyber-tech"] .footer-buttons .primary-save:hover:not(:disabled),
html[data-theme="cyber-tech"] .doc-preview-exit-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  border-color: #67e8f9;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.36);
}

html[data-theme="cyber-tech"] .sidebar .main-navigation button:not(.active),
html[data-theme="cyber-tech"] .sidebar .chapter-button:not(.active),
html[data-theme="cyber-tech"] .sidebar .subblock-btn:not(.active) {
  background: rgba(14, 29, 52, 0.55);
  border-color: rgba(76, 215, 246, 0.16);
  color: #cbdff4;
  box-shadow: none;
}

html[data-theme="cyber-tech"] .sidebar .main-navigation button:not(.active):hover,
html[data-theme="cyber-tech"] .sidebar .chapter-button:not(.active):hover,
html[data-theme="cyber-tech"] .sidebar .subblock-btn:not(.active):hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(76, 215, 246, 0.36);
  color: #ffffff;
}

html[data-theme="cyber-tech"] .report-list button,
html[data-theme="cyber-tech"] .chapter-picker-trigger,
html[data-theme="cyber-tech"] .group-toggle {
  background: #102038;
  border-color: rgba(76, 215, 246, 0.26);
  color: #eaf4ff;
  box-shadow: none;
}

html[data-theme="cyber-tech"] .report-list button.selected {
  background: rgba(34, 211, 238, 0.16);
  border-color: #22d3ee;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.22);
}

html[data-theme="cyber-tech"] .ai-sugg-copy-btn {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.34);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .ai-sugg-undo-btn {
  background: rgba(239, 68, 68, 0.14);
  border-color: #f87171;
  color: #fca5a5;
}

html[data-theme="cyber-tech"] .sidebar-preview-btn {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

html[data-theme="cyber-tech"] .footer-buttons .primary-save.save-complete {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: #34d399;
}

html[data-theme="cyber-tech"] button.secondary,
html[data-theme="cyber-tech"] .cfg-btn-ghost,
html[data-theme="cyber-tech"] .cfg-btn-outline,
html[data-theme="cyber-tech"] .cfg-btn-outline-sm,
html[data-theme="cyber-tech"] .cfg-btn-light,
html[data-theme="cyber-tech"] .ai-page-link,
html[data-theme="cyber-tech"] .num-chip,
html[data-theme="cyber-tech"] .num-chip-clear,
html[data-theme="cyber-tech"] .cfg-pm-chip,
html[data-theme="cyber-tech"] .choice-pill {
  background: #132540;
  color: #bae6fd;
  border-color: rgba(76, 215, 246, 0.34);
  box-shadow: none;
}

html[data-theme="cyber-tech"] button.secondary:hover:not(:disabled),
html[data-theme="cyber-tech"] .period-details[open] summary,
html[data-theme="cyber-tech"] .ns-option:hover,
html[data-theme="cyber-tech"] .ui-scale-opt:hover,
html[data-theme="cyber-tech"] .cfg-pm-chip:hover,
html[data-theme="cyber-tech"] .num-chip:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #4cd7f6;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="cyber-tech"] button.quiet,
html[data-theme="cyber-tech"] .icon-button {
  background: rgba(15, 31, 54, 0.72);
  color: #93c5fd;
  border-color: rgba(76, 215, 246, 0.24);
  box-shadow: none;
}

html[data-theme="cyber-tech"] button.quiet:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.16);
  color: #ffffff;
  border-color: rgba(76, 215, 246, 0.45);
}

html[data-theme="cyber-tech"] .field-voice > button.voice-record-btn.secondary,
html[data-theme="cyber-tech"] button.caption-voice-btn.secondary,
html[data-theme="cyber-tech"] .ai-voice-btn,
html[data-theme="cyber-tech"] .ai-img-voice-btn {
  background: #0c2a3b;
  border: 1.5px solid #22d3ee;
  color: #67e8f9;
  box-shadow: none;
}

html[data-theme="cyber-tech"] .voice-ai-btn {
  background: #1e1f4b;
  border: 1.5px solid #818cf8;
  color: #c7d2fe;
  box-shadow: none;
}

html[data-theme="cyber-tech"] .voice-ai-btn:hover:not(:disabled) {
  background: #282a63;
  border-color: #a5b4fc;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .choice-pill.is-selected,
html[data-theme="cyber-tech"] .choice-pills:not(.choice-pills-cards) .choice-pill.is-selected,
html[data-theme="cyber-tech"] .ui-scale-opt.is-active,
html[data-theme="cyber-tech"] .doc-preview-zoom-btn.is-active,
html[data-theme="cyber-tech"] .cfg-pm-chip.is-active,
html[data-theme="cyber-tech"] .ps-theme-card.is-active .ps-card-badge,
html[data-theme="cyber-tech"] .ps-persona-card.is-active .ps-card-badge {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  border-color: #4cd7f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

html[data-theme="cyber-tech"] .pwd-rule-box,
html[data-theme="cyber-tech"] .fin-badge,
html[data-theme="cyber-tech"] .calc-summary-badge,
html[data-theme="cyber-tech"] .cfg-banner-info,
html[data-theme="cyber-tech"] .cfg-pm-cov-bar,
html[data-theme="cyber-tech"] .cfg-pm-th-count,
html[data-theme="cyber-tech"] .cfg-pm-sel-tag,
html[data-theme="cyber-tech"] .pending-upload-file-badge,
html[data-theme="cyber-tech"] .caption-voice-status,
html[data-theme="cyber-tech"] .ai-img-preview-bar,
html[data-theme="cyber-tech"] .ai-voice-bar,
html[data-theme="cyber-tech"] .ai-sugg-action-tag,
html[data-theme="cyber-tech"] .ps-section-tip {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(76, 215, 246, 0.34);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .ai-dialog,
html[data-theme="cyber-tech"] .ps-modal {
  background: #0b1628;
  color: #eaf4ff;
  border-color: rgba(76, 215, 246, 0.36);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(34, 211, 238, 0.2);
}

html[data-theme="cyber-tech"] .ai-head,
html[data-theme="cyber-tech"] .ps-head {
  background: linear-gradient(135deg, #0b2444 0%, #0e3a66 55%, #0c4a6e 100%);
  border-bottom: 1px solid rgba(76, 215, 246, 0.35);
}

html[data-theme="cyber-tech"] .ai-ctx-bar,
html[data-theme="cyber-tech"] .ps-tabs,
html[data-theme="cyber-tech"] .ps-foot,
html[data-theme="cyber-tech"] .ai-composer {
  background: #0e1c33;
  border-color: rgba(76, 215, 246, 0.22);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .ai-welcome-card,
html[data-theme="cyber-tech"] .ai-msg.is-assistant .ai-bubble,
html[data-theme="cyber-tech"] .ps-theme-card,
html[data-theme="cyber-tech"] .ps-persona-card,
html[data-theme="cyber-tech"] .ai-sugg-card {
  background: #11223b;
  border-color: rgba(76, 215, 246, 0.28);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .ps-persona-sample,
html[data-theme="cyber-tech"] .ai-sugg-value,
html[data-theme="cyber-tech"] .ai-sugg-row-grid {
  background: #081324;
  border-color: rgba(76, 215, 246, 0.22);
  color: #dbeafe;
}

html[data-theme="cyber-tech"] .ai-welcome-title,
html[data-theme="cyber-tech"] .ai-sugg-target,
html[data-theme="cyber-tech"] .ps-tab.is-active {
  color: #4cd7f6;
}

html[data-theme="cyber-tech"] .ps-tab.is-active {
  border-bottom-color: #22d3ee;
}

html[data-theme="cyber-tech"] .ai-quick-btn,
html[data-theme="cyber-tech"] .ai-img-pick-btn {
  background: #132946;
  border-color: rgba(76, 215, 246, 0.34);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .ai-msg.is-user .ai-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  color: #ffffff;
}

html[data-theme="cyber-tech"] .ai-textarea {
  background: #081322;
  color: #f1f5f9;
  border-color: rgba(76, 215, 246, 0.34);
}

html[data-theme="cyber-tech"] .ai-sugg-card.is-applied {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
}

html[data-theme="cyber-tech"] .ai-sugg-row-k,
html[data-theme="cyber-tech"] .ps-card-desc,
html[data-theme="cyber-tech"] .ai-welcome-desc,
html[data-theme="cyber-tech"] .ai-sugg-reason {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .ai-sugg-row-v {
  color: #f0f9ff;
}

html[data-theme="cyber-tech"] .ai-typing-dots span {
  background: #22d3ee;
}

html[data-theme="cyber-tech"] .ai-bubble-code {
  background: #09182d;
  color: #67e8f9;
}

/* 仿真 Word/PDF 纸面预览在暗色主题下仍保持纯白纸张，确保核对真实版面 */
html[data-theme="cyber-tech"] .doc-preview-page,
html[data-theme="cyber-tech"] .doc-preview-sheet {
  background: #ffffff;
  color: #111827;
}

/* ---------- 4.2 深空科技工作台全量暗色补全（彻底清零所有亮白贴片与白底白字） ---------- */
html[data-theme="cyber-tech"] .header-right .identity,
html[data-theme="cyber-tech"] .header-right > a,
html[data-theme="cyber-tech"] .header-right > a.history-entry,
html[data-theme="cyber-tech"] .header-right button.switch-role,
html[data-theme="cyber-tech"] .header-period .header-week-btn,
html[data-theme="cyber-tech"] .header-project button.ns-trigger-project,
html[data-theme="cyber-tech"] .header-project-kind {
  background: #132540;
  border: 1px solid rgba(76, 215, 246, 0.3);
  color: #e0f2fe;
}

html[data-theme="cyber-tech"] .header-right > a:hover,
html[data-theme="cyber-tech"] .header-right button.switch-role:hover,
html[data-theme="cyber-tech"] .header-period .header-week-btn:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.2);
  border-color: #4cd7f6;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .collab-bar {
  background: #0d1f32;
  border-color: rgba(52, 211, 153, 0.34);
  color: #a7f3d0;
}

html[data-theme="cyber-tech"] .editor-heading,
html[data-theme="cyber-tech"] .field-group,
html[data-theme="cyber-tech"] .editor > form > .field-group,
html[data-theme="cyber-tech"] .editor > form > .field-group:nth-of-type(even),
html[data-theme="cyber-tech"] .editor > form > .field-group:has(.finance-matrix) {
  background: #0d1a2e;
  border-color: rgba(76, 215, 246, 0.22);
  color: #eaf4ff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="cyber-tech"] .editor > form > .field-group:nth-of-type(even) {
  background: #102037;
}

html[data-theme="cyber-tech"] .editor > form > .field-group .group-toggle,
html[data-theme="cyber-tech"] .field-group > h2.group-title {
  background: #132744;
  border-color: rgba(76, 215, 246, 0.24);
  color: #7dd3fc;
}

html[data-theme="cyber-tech"] .field-voice,
html[data-theme="cyber-tech"] .editor > form > .field-group .field-voice {
  background: #0a1526;
  border-color: rgba(76, 215, 246, 0.22);
  color: #a8c5e2;
}

html[data-theme="cyber-tech"] .field.speaking .field-voice {
  background: rgba(14, 165, 233, 0.16);
  border-color: #22d3ee;
}

html[data-theme="cyber-tech"] .choice-pills:not(.choice-pills-cards) {
  background: #081324;
  border: 1px solid rgba(76, 215, 246, 0.26);
}

html[data-theme="cyber-tech"] .choice-pills:not(.choice-pills-cards) .choice-pill:not(.is-selected) {
  background: transparent;
  border-color: transparent;
  color: #a8c5e2;
}

html[data-theme="cyber-tech"] .choice-pills:not(.choice-pills-cards) .choice-pill:hover:not(:disabled):not(.is-selected) {
  background: rgba(56, 189, 248, 0.14);
  color: #ffffff;
}

html[data-theme="cyber-tech"] .checkbox-field,
html[data-theme="cyber-tech"] .chapter-checks label,
html[data-theme="cyber-tech"] .chapter-checks span {
  background: #0b182b;
  border-color: rgba(76, 215, 246, 0.22);
  color: #dbeafe;
}

/* 右侧「本周报送与版本」卡片 + 截止时间卡 + 版本卡 */
html[data-theme="cyber-tech"] .actions,
html[data-theme="cyber-tech"] .actions article,
html[data-theme="cyber-tech"] .version,
html[data-theme="cyber-tech"] .report-picker,
html[data-theme="cyber-tech"] .resume-entry,
html[data-theme="cyber-tech"] .reference,
html[data-theme="cyber-tech"] .prefill-bar,
html[data-theme="cyber-tech"] .plan-checklist-card,
html[data-theme="cyber-tech"] .plan-check-row,
html[data-theme="cyber-tech"] .plan-copy-preview,
html[data-theme="cyber-tech"] .photos article,
html[data-theme="cyber-tech"] .pending-upload-card,
html[data-theme="cyber-tech"] .manager-summary,
html[data-theme="cyber-tech"] .manager-facts,
html[data-theme="cyber-tech"] .manager-scope-card,
html[data-theme="cyber-tech"] .manager-progress summary,
html[data-theme="cyber-tech"] .manager-return summary,
html[data-theme="cyber-tech"] .manager-return[open],
html[data-theme="cyber-tech"] .task,
html[data-theme="cyber-tech"] .task-form,
html[data-theme="cyber-tech"] .appeals article,
html[data-theme="cyber-tech"] .appeals blockquote,
html[data-theme="cyber-tech"] .appointment-block,
html[data-theme="cyber-tech"] .new-report,
html[data-theme="cyber-tech"] .issues article,
html[data-theme="cyber-tech"] .issues blockquote {
  background: #0e1b30;
  border-color: rgba(76, 215, 246, 0.24);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .actions-body > p:first-of-type,
html[data-theme="cyber-tech"] .actions-deadline,
html[data-theme="cyber-tech"] .period-row.is-deadline {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fde68a;
}

html[data-theme="cyber-tech"] .actions-deadline b {
  color: #fbbf24;
}

html[data-theme="cyber-tech"] .version-dl-link {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.34);
  color: #bae6fd;
}

/* 底部固定保存栏 */
html[data-theme="cyber-tech"] .form-footer {
  background: rgba(9, 18, 34, 0.96);
  border-top: 1px solid rgba(76, 215, 246, 0.28);
  color: #dbeafe;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.48);
}

html[data-theme="cyber-tech"] .form-footer .save-status {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .form-footer .whole-review-short,
html[data-theme="cyber-tech"] .precheck-status-btn {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.36);
  color: #bae6fd;
}

/* 表格内部、财务矩阵、跨周沿用与自增高文本框容器 */
html[data-theme="cyber-tech"] .table-scroll,
html[data-theme="cyber-tech"] .finance-matrix-wrap,
html[data-theme="cyber-tech"] .carry-finance-wrap,
html[data-theme="cyber-tech"] .carry-table-scroll,
html[data-theme="cyber-tech"] .scalar-text-grow,
html[data-theme="cyber-tech"] .photo-caption-grow,
html[data-theme="cyber-tech"] .issue-explain-box .issue-explain-grow,
html[data-theme="cyber-tech"] .field .table-scroll td .table-combo,
html[data-theme="cyber-tech"] .field .table-scroll td .table-text-grow {
  background: #091426;
  border-color: rgba(76, 215, 246, 0.28);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .finance-matrix tr,
html[data-theme="cyber-tech"] .finance-matrix .fin-cell,
html[data-theme="cyber-tech"] .carry-finance-table tr,
html[data-theme="cyber-tech"] .carry-finance-table .carry-fin-cell,
html[data-theme="cyber-tech"] .field .table-scroll td:first-child,
html[data-theme="cyber-tech"] .field .table-scroll td[data-column="_ops"],
html[data-theme="cyber-tech"] .carry-col-check,
html[data-theme="cyber-tech"] .carry-col-reapply,
html[data-theme="cyber-tech"] .carry-check-row,
html[data-theme="cyber-tech"] .carry-preview-list {
  background: #0d1a2e;
  border-color: rgba(76, 215, 246, 0.2);
  color: #dbeafe;
}

html[data-theme="cyber-tech"] .finance-matrix .fin-cell.is-computed,
html[data-theme="cyber-tech"] .carry-finance-table .carry-fin-cell.is-computed,
html[data-theme="cyber-tech"] .field .table-scroll th:first-child,
html[data-theme="cyber-tech"] .field .table-scroll th[data-column="_ops"],
html[data-theme="cyber-tech"] thead th.carry-col-check,
html[data-theme="cyber-tech"] thead th.carry-col-reapply {
  background: #132540;
  color: #67e8f9;
}

html[data-theme="cyber-tech"] .fin-advance-done,
html[data-theme="cyber-tech"] .fin-advance-ask,
html[data-theme="cyber-tech"] .draft-limit-note {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

html[data-theme="cyber-tech"] .draft-limit-note.is-hard,
html[data-theme="cyber-tech"] .reference.precheck-panel.is-issue-alert {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.44);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .ns-overlay.is-desktop .ns-panel,
html[data-theme="cyber-tech"] .ns-overlay.is-mobile .ns-panel,
html[data-theme="cyber-tech"] .ns-search-wrap,
html[data-theme="cyber-tech"] .doc-preview-banner,
html[data-theme="cyber-tech"] .doc-preview-footer,
html[data-theme="cyber-tech"] .doc-preview-zoom-bar {
  background: #0e1c32;
  border-color: rgba(76, 215, 246, 0.32);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .field p,
html[data-theme="cyber-tech"] .field .help,
html[data-theme="cyber-tech"] .editor-heading p,
html[data-theme="cyber-tech"] .muted {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .field > label,
html[data-theme="cyber-tech"] .field-group label,
html[data-theme="cyber-tech"] .actions h2,
html[data-theme="cyber-tech"] .actions h3,
html[data-theme="cyber-tech"] .actions strong,
html[data-theme="cyber-tech"] .reference h2,
html[data-theme="cyber-tech"] .reference h3 {
  color: #e6f4ff;
}

/* 暗色侧栏五档状态徽章（通透暗底发光，绝不刺眼亮白） */
html[data-theme="cyber-tech"] .sidebar .chapter-status-tag,
html[data-theme="cyber-tech"] .sidebar .subblock-tag {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

html[data-theme="cyber-tech"] .sidebar .chapter-status-tag.is-tone-warn,
html[data-theme="cyber-tech"] .sidebar .subblock-tag.is-tone-warn {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d !important;
  border-color: rgba(251, 191, 36, 0.42);
}

html[data-theme="cyber-tech"] .sidebar .chapter-status-tag.is-tone-done,
html[data-theme="cyber-tech"] .sidebar .subblock-tag.is-tone-done,
html[data-theme="cyber-tech"] .sidebar .chapter-status-tag.is-tone-success,
html[data-theme="cyber-tech"] .sidebar .subblock-tag.is-tone-success {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7 !important;
  border-color: rgba(52, 211, 153, 0.42);
}

html[data-theme="cyber-tech"] .sidebar .chapter-status-tag.is-tone-danger,
html[data-theme="cyber-tech"] .sidebar .subblock-tag.is-tone-danger,
html[data-theme="cyber-tech"] .sidebar .chapter-status-tag.is-tone-error,
html[data-theme="cyber-tech"] .sidebar .subblock-tag.is-tone-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.45);
}

/* ---------- 4.3 深空科技高权重子表/预填框/禁用框/跨周核对表/管理后台全量清零 ---------- */
html[data-theme="cyber-tech"] .field textarea.is-prefill-preview,
html[data-theme="cyber-tech"] .field textarea.is-prefill-preview:focus {
  background: #0a172a;
  border-color: rgba(76, 215, 246, 0.32);
  color: #9bb8d6;
}

html[data-theme="cyber-tech"] .field textarea.is-prefill-preview:focus {
  color: #eaf4ff;
  border-color: #22d3ee;
}

html[data-theme="cyber-tech"] input:disabled,
html[data-theme="cyber-tech"] select:disabled,
html[data-theme="cyber-tech"] textarea:disabled,
html[data-theme="cyber-tech"] .fin-num-input:disabled,
html[data-theme="cyber-tech"] .scalar-text-grow.is-disabled,
html[data-theme="cyber-tech"] .photo-caption-grow.is-disabled,
html[data-theme="cyber-tech"] .field .table-scroll td .table-text-grow.is-disabled,
html[data-theme="cyber-tech"] .field .table-scroll td .table-combo.is-disabled,
html[data-theme="cyber-tech"] .field .table-scroll td .table-combo.is-disabled .table-combo-trigger,
html[data-theme="cyber-tech"] button.ns-trigger.is-disabled,
html[data-theme="cyber-tech"] button.ns-trigger:disabled,
html[data-theme="cyber-tech"] .editor.is-acquiring-lock input:disabled,
html[data-theme="cyber-tech"] .editor.is-acquiring-lock select:disabled,
html[data-theme="cyber-tech"] .editor.is-acquiring-lock textarea:disabled {
  background: #0b1627;
  color: #8aa7c7;
  border-color: rgba(76, 215, 246, 0.18);
}

/* 章底「本章自动汇总与核对」表格 + 所有跨周核对子表 */
html[data-theme="cyber-tech"] .reference.calc-summary-card,
html[data-theme="cyber-tech"] .calc-summary-table,
html[data-theme="cyber-tech"] .calc-summary-table tbody tr,
html[data-theme="cyber-tech"] .calc-summary-table tbody td,
html[data-theme="cyber-tech"] .carry-data-table tbody td,
html[data-theme="cyber-tech"] .carry-kv-table tbody td,
html[data-theme="cyber-tech"] .carry-history-table tbody td,
html[data-theme="cyber-tech"] .carry-cell-cur,
html[data-theme="cyber-tech"] .carry-finance-table .carry-fin-cell.is-period,
html[data-theme="cyber-tech"] .carry-finance-table .carry-fin-cell.is-matched {
  background: #0d1b30;
  color: #dbeafe;
  border-color: rgba(76, 215, 246, 0.22);
}

html[data-theme="cyber-tech"] .calc-summary-table thead th,
html[data-theme="cyber-tech"] .carry-data-table thead th,
html[data-theme="cyber-tech"] .carry-kv-table thead th {
  background: #132744;
  color: #7dd3fc;
  border-color: rgba(76, 215, 246, 0.28);
}

html[data-theme="cyber-tech"] .calc-summary-table tbody tr:nth-child(even) td,
html[data-theme="cyber-tech"] .carry-data-table tbody tr:nth-child(even) td,
html[data-theme="cyber-tech"] .carry-kv-table tbody tr:nth-child(even) td,
html[data-theme="cyber-tech"] tbody tr:nth-child(even) td.carry-col-check,
html[data-theme="cyber-tech"] .carry-history-table tbody tr:nth-child(even) td.carry-col-reapply {
  background: #10213a;
  color: #dbeafe;
}

html[data-theme="cyber-tech"] tbody tr:hover td,
html[data-theme="cyber-tech"] .calc-summary-table tbody tr:hover td,
html[data-theme="cyber-tech"] .carry-data-table tbody tr:hover td,
html[data-theme="cyber-tech"] .carry-kv-table tbody tr:hover td,
html[data-theme="cyber-tech"] tbody tr:hover td.carry-col-check,
html[data-theme="cyber-tech"] .carry-history-table tbody tr:hover td.carry-col-reapply,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr:hover td:first-child,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr:hover td[data-column="_ops"] {
  background: rgba(34, 211, 238, 0.14);
  color: #f0f9ff;
}

html[data-theme="cyber-tech"] .calc-summary-table td strong,
html[data-theme="cyber-tech"] .calc-summary-table .is-val,
html[data-theme="cyber-tech"] .calc-summary-table td:first-child {
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .calc-summary-table .is-tone-good {
  color: #34d399;
}

html[data-theme="cyber-tech"] .calc-summary-warn,
html[data-theme="cyber-tech"] .calc-summary-badge.is-stale,
html[data-theme="cyber-tech"] .fin-badge.is-warn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.38);
  color: #fde68a;
}

html[data-theme="cyber-tech"] .plan-check-idx,
html[data-theme="cyber-tech"] .plan-check-opt,
html[data-theme="cyber-tech"] .prefill-bar-restore,
html[data-theme="cyber-tech"] .table-num-pill,
html[data-theme="cyber-tech"] .mobile-table-tip,
html[data-theme="cyber-tech"] .carry-fin-tag,
html[data-theme="cyber-tech"] .carry-status-pill.is-keep,
html[data-theme="cyber-tech"] .carry-status-pill.is-archive,
html[data-theme="cyber-tech"] .pending-upload-tags span {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.28);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .fin-computed-val {
  background: transparent;
  color: #4cd7f6;
}

/* 管理后台 & 权限矩阵全暗色补全 */
html[data-theme="cyber-tech"] .cfg-table tbody tr,
html[data-theme="cyber-tech"] .cfg-table tbody td,
html[data-theme="cyber-tech"] .cfg-pm-table tbody td,
html[data-theme="cyber-tech"] .cfg-pm-table tbody td.cfg-pm-sticky-col,
html[data-theme="cyber-tech"] .cfg-pm-table tbody tr.cfg-pm-row-mgr td,
html[data-theme="cyber-tech"] .cfg-pm-table tbody tr.cfg-pm-row-mgr td.cfg-pm-sticky-col,
html[data-theme="cyber-tech"] .cfg-batch-acc-wrap,
html[data-theme="cyber-tech"] .cfg-batch-acc-table tbody,
html[data-theme="cyber-tech"] .cfg-batch-cred-table tbody,
html[data-theme="cyber-tech"] .cfg-batch-acc-table tr,
html[data-theme="cyber-tech"] .cfg-batch-cred-table tr,
html[data-theme="cyber-tech"] .cfg-pm-toolbar,
html[data-theme="cyber-tech"] .cfg-pm-footer,
html[data-theme="cyber-tech"] .cfg-pm-role-picker,
html[data-theme="cyber-tech"] .cfg-pm-role-popover,
html[data-theme="cyber-tech"] .cfg-rp-list-panel,
html[data-theme="cyber-tech"] .cfg-rp-editor-panel,
html[data-theme="cyber-tech"] .cfg-rp-item,
html[data-theme="cyber-tech"] .cfg-inline-box,
html[data-theme="cyber-tech"] .cfg-cred-box,
html[data-theme="cyber-tech"] .cfg-cred-secret,
html[data-theme="cyber-tech"] .cfg-file-row,
html[data-theme="cyber-tech"] .cfg-matrix-row,
html[data-theme="cyber-tech"] .cfg-batch-bar,
html[data-theme="cyber-tech"] .cfg-batch-summary {
  background: #0e1b30;
  color: #eaf4ff;
  border-color: rgba(76, 215, 246, 0.24);
}

html[data-theme="cyber-tech"] .cfg-table tbody tr:hover td,
html[data-theme="cyber-tech"] .cfg-pm-rp-opt:hover {
  background: rgba(34, 211, 238, 0.14);
  color: #ffffff;
}

/* ---------- 4.4 深空科技全量清零（查看日期/周次卡片/侧栏五档/预审告警/跨周/表单/管理后台/副驾驶/移动端） ---------- */
html[data-theme="cyber-tech"] ::selection {
  background: rgba(34, 211, 238, 0.34);
  color: #ffffff;
}

/* 1) 顶栏「查看日期」浮层（统计周期/填报窗口/截止时间）与触发按钮 */
html[data-theme="cyber-tech"] .period-row {
  background: #102138;
  border-color: rgba(76, 215, 246, 0.24);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .period-lbl {
  color: #93c5fd;
}

html[data-theme="cyber-tech"] .period-val {
  color: #f0f9ff;
}

html[data-theme="cyber-tech"] .period-row.is-deadline .period-lbl {
  color: #fcd34d;
}

html[data-theme="cyber-tech"] .period-row.is-deadline .period-val {
  color: #fef3c7;
}

html[data-theme="cyber-tech"] .period-details summary:hover,
html[data-theme="cyber-tech"] .header-period .period-details summary:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: #4cd7f6;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .header-period .period-details summary {
  background: #0d1d34;
  border-color: rgba(76, 215, 246, 0.32);
  color: #e0f2fe;
}

/* 2) 「本期周报」周次卡片与状态胶囊（彻底消灭白底浅字与悬停闪白） */
html[data-theme="cyber-tech"] .report-list button:hover:not(:disabled) {
  background: #162c4a;
  border-color: rgba(76, 215, 246, 0.56);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
}

html[data-theme="cyber-tech"] .report-list small {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(76, 215, 246, 0.3);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .report-list button.selected small {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
  border-color: #67e8f9;
  color: #041524;
  font-weight: 700;
}

/* 手机左上角菜单汉堡图标在暗色深蓝底上提亮（仅限定菜单按钮，绝不反色中国建筑 CI 标识） */
html[data-theme="cyber-tech"] .mobile-brand .icon-button img {
  filter: brightness(0) invert(1);
}

/* 3) 登录页外底与输入框、通用文件上传与表头/提示条 */
html[data-theme="cyber-tech"] body:has(.login) {
  background: radial-gradient(circle at 18% 8%, #0d213d 0%, #070e1a 56%, #050a14 100%);
}

html[data-theme="cyber-tech"] .login-card > label input,
html[data-theme="cyber-tech"] .login-card > label input:focus,
html[data-theme="cyber-tech"] input:not([type="checkbox"]),
html[data-theme="cyber-tech"] .fin-num-input,
html[data-theme="cyber-tech"] .plan-pending-note input,
html[data-theme="cyber-tech"] .photo-caption-grow:focus-within {
  background: #091426;
  color: #eaf4ff;
  border-color: rgba(76, 215, 246, 0.3);
}

html[data-theme="cyber-tech"] .login-card > label input:focus,
html[data-theme="cyber-tech"] .photo-caption-grow:focus-within {
  background: #0c1a30;
  border-color: #22d3ee;
}

html[data-theme="cyber-tech"] input[type="file"] {
  background: #0d1d34;
  color: #dbeafe;
  border-color: rgba(76, 215, 246, 0.32);
}

html[data-theme="cyber-tech"] input[type="file"]:hover:not(:disabled) {
  background: #132846;
  border-color: #4cd7f6;
}

html[data-theme="cyber-tech"] th {
  background: #132540;
  color: #7dd3fc;
}

html[data-theme="cyber-tech"] .mode,
html[data-theme="cyber-tech"] .brand-kicker,
html[data-theme="cyber-tech"] .chapter-scope {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(76, 215, 246, 0.32);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .manager-progress-bar,
html[data-theme="cyber-tech"] .manager-progress-bar::-webkit-progress-bar {
  background: #122540;
}

html[data-theme="cyber-tech"] .collab-alert,
html[data-theme="cyber-tech"] .read-only,
html[data-theme="cyber-tech"] .restore,
html[data-theme="cyber-tech"] .inline-notice,
html[data-theme="cyber-tech"] .num-status-pill {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

html[data-theme="cyber-tech"] .issues article b,
html[data-theme="cyber-tech"] .actions-body > p:first-of-type b {
  color: #fcd34d;
}

html[data-theme="cyber-tech"] .actions-body > p:first-of-type small.muted {
  color: #fde68a;
}

html[data-theme="cyber-tech"] .fin-computed-label,
html[data-theme="cyber-tech"] .fin-prev-hint,
html[data-theme="cyber-tech"] .carry-fin-label,
html[data-theme="cyber-tech"] .calc-summary-table .is-tone-muted,
html[data-theme="cyber-tech"] .calc-summary-notes,
html[data-theme="cyber-tech"] .pending-upload-sub,
html[data-theme="cyber-tech"] .pending-upload-tags {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .pending-upload-name {
  color: #f0f9ff;
}

html[data-theme="cyber-tech"] .pending-upload-thumb {
  background: #0a1628;
  border-color: rgba(76, 215, 246, 0.28);
}

html[data-theme="cyber-tech"] .calc-summary-table .is-tone-warn {
  color: #fbbf24;
}

html[data-theme="cyber-tech"] .calc-summary-table .is-tone-danger {
  color: #f87171;
}

html[data-theme="cyber-tech"] .fin-advance-ask-head strong {
  color: #fcd34d;
}

html[data-theme="cyber-tech"] .fin-advance-ask p {
  color: #fde68a;
}

html[data-theme="cyber-tech"] .fin-advance-ask.is-answered {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

html[data-theme="cyber-tech"] .fin-advance-ask.is-answered .fin-advance-ask-head strong {
  color: #6ee7b7;
}

html[data-theme="cyber-tech"] .fin-advance-ask.is-answered p {
  color: #a7f3d0;
}

html[data-theme="cyber-tech"] .plan-check-row.is-done .plan-check-idx {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

html[data-theme="cyber-tech"] .plan-check-row.is-pending .plan-check-idx {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd34d;
}

/* 4) 侧栏五档语义按钮/序号徽章/子板块（压过基础样式的浅底与 !important） */
html[data-theme="cyber-tech"] .chapter-navigation h2 span,
html[data-theme="cyber-tech"] .chapter-button > span:first-child,
html[data-theme="cyber-tech"] .chapter-group summary > span:first-child {
  background: #132540;
  color: #7dd3fc;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-danger,
html[data-theme="cyber-tech"] .chapter-group.is-tone-danger > summary,
html[data-theme="cyber-tech"] .chapter-group button.subblock-btn.is-tone-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.36);
  color: #fee2e2;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-danger > span:first-child,
html[data-theme="cyber-tech"] .chapter-group.is-tone-danger > summary > span:first-child {
  background: rgba(239, 68, 68, 0.24);
  color: #fca5a5;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-warn,
html[data-theme="cyber-tech"] .chapter-group.is-tone-warn > summary,
html[data-theme="cyber-tech"] .chapter-group button.subblock-btn.is-tone-warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.34);
  color: #fef3c7;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-warn > span:first-child,
html[data-theme="cyber-tech"] .chapter-group.is-tone-warn > summary > span:first-child {
  background: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-info,
html[data-theme="cyber-tech"] .chapter-group.is-tone-info > summary,
html[data-theme="cyber-tech"] .chapter-group button.subblock-btn.is-tone-info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(76, 215, 246, 0.32);
  color: #e0f2fe;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-info > span:first-child,
html[data-theme="cyber-tech"] .chapter-group.is-tone-info > summary > span:first-child {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-success,
html[data-theme="cyber-tech"] .chapter-group.is-tone-success > summary,
html[data-theme="cyber-tech"] .chapter-group button.subblock-btn.is-tone-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.34);
  color: #d1fae5;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-success > span:first-child,
html[data-theme="cyber-tech"] .chapter-group.is-tone-success > summary > span:first-child {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

html[data-theme="cyber-tech"] .chapter-button.is-tone-muted,
html[data-theme="cyber-tech"] .chapter-group.is-tone-muted > summary {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

html[data-theme="cyber-tech"] .chapter-status-tag.is-tone-info,
html[data-theme="cyber-tech"] .subblock-tag.is-tone-info {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(76, 215, 246, 0.4);
  color: #7dd3fc !important;
}

html[data-theme="cyber-tech"] .chapter-status-tag.is-tone-warn,
html[data-theme="cyber-tech"] .subblock-tag.is-tone-warn {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.42);
  color: #fcd34d !important;
}

html[data-theme="cyber-tech"] .chapter-status-tag.is-tone-success,
html[data-theme="cyber-tech"] .subblock-tag.is-tone-success {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.42);
  color: #6ee7b7 !important;
}

html[data-theme="cyber-tech"] .chapter-status-tag.is-tone-danger,
html[data-theme="cyber-tech"] .subblock-tag.is-tone-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5 !important;
}

html[data-theme="cyber-tech"] .chapter-status-tag.is-tone-muted,
html[data-theme="cyber-tech"] .subblock-tag.is-tone-muted {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1 !important;
}

html[data-theme="cyber-tech"] .chapter-button.active,
html[data-theme="cyber-tech"] .chapter-button.active.is-tone-danger,
html[data-theme="cyber-tech"] .chapter-button.active.is-tone-success,
html[data-theme="cyber-tech"] .chapter-group button.subblock-btn.active {
  background: rgba(34, 211, 238, 0.18) !important;
  border-color: rgba(76, 215, 246, 0.62) !important;
  color: #ffffff !important;
}

html[data-theme="cyber-tech"] .chapter-button.active.is-tone-danger {
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: rgba(248, 113, 113, 0.68) !important;
}

html[data-theme="cyber-tech"] .chapter-button.active.is-tone-success {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
}

html[data-theme="cyber-tech"] .main-navigation button:hover:not(:disabled),
html[data-theme="cyber-tech"] .chapter-navigation button:hover:not(.active),
html[data-theme="cyber-tech"] .chapter-group summary:hover,
html[data-theme="cyber-tech"] .sidebar-nav-link:hover {
  background: rgba(34, 211, 238, 0.14);
  color: #ffffff;
}

/* 5) 预审状态按钮、红底告警、内联问题卡、表格标红与财务异常格 */
html[data-theme="cyber-tech"] .precheck-status-btn:hover:not(:disabled),
html[data-theme="cyber-tech"] .precheck-status-btn.is-passed,
html[data-theme="cyber-tech"] .precheck-status-btn.is-checking {
  background: #162c4a;
  border-color: rgba(76, 215, 246, 0.46);
  color: #e0f2fe;
}

html[data-theme="cyber-tech"] .precheck-status-btn.is-issues:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.26);
  border-color: #f87171;
  color: #fecaca;
}

html[data-theme="cyber-tech"] .precheck-status-btn.is-failed:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.24);
  border-color: #fbbf24;
  color: #fde68a;
}

html[data-theme="cyber-tech"] .precheck-panel details.has-row-issues,
html[data-theme="cyber-tech"] .precheck-panel .precheck-issue-links li.is-issue-item,
html[data-theme="cyber-tech"] .field-review,
html[data-theme="cyber-tech"] .issues article.field-review,
html[data-theme="cyber-tech"] .editor > form > .field-group.has-block-issue,
html[data-theme="cyber-tech"] .editor > form > .field-group.has-block-issue:nth-of-type(even),
html[data-theme="cyber-tech"] .field.has-field-issue,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr.has-row-issue td,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr.has-row-issue:hover td,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr.has-row-issue td:first-child,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr.has-row-issue:hover td:first-child,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr td.has-cell-issue,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr:hover td.has-cell-issue,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr td.has-cell-issue:first-child,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr:hover td.has-cell-issue:first-child,
html[data-theme="cyber-tech"] .finance-matrix .fin-cell.has-cell-issue,
html[data-theme="cyber-tech"] .finance-matrix .fin-cell.is-highlighted {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.48);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .editor > form > .field-group.has-block-issue .table-scroll th {
  background: rgba(239, 68, 68, 0.24);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .field.has-field-issue > input:not([type="checkbox"]),
html[data-theme="cyber-tech"] .field.has-field-issue .field-label-row ~ input:not([type="checkbox"]),
html[data-theme="cyber-tech"] .field.has-field-issue > textarea,
html[data-theme="cyber-tech"] .field.has-field-issue > select,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr td.has-cell-issue input,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr td.has-cell-issue textarea,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr td.has-cell-issue select,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr td.has-cell-issue .table-combo,
html[data-theme="cyber-tech"] .field .table-scroll tbody tr td.has-cell-issue .table-combo-input,
html[data-theme="cyber-tech"] .finance-matrix .fin-cell.has-cell-issue .fin-num-input {
  background: #231118;
  border-color: rgba(248, 113, 113, 0.62);
  color: #fee2e2;
}

html[data-theme="cyber-tech"] .precheck-panel.is-issue-alert h3,
html[data-theme="cyber-tech"] .precheck-panel details.has-row-issues > summary,
html[data-theme="cyber-tech"] .precheck-panel .precheck-issue-links li.is-issue-item strong,
html[data-theme="cyber-tech"] .field-review b,
html[data-theme="cyber-tech"] .issues article.field-review b,
html[data-theme="cyber-tech"] .editor > form > .field-group.has-block-issue .group-title {
  color: #fca5a5;
}

html[data-theme="cyber-tech"] .precheck-panel.is-issue-alert > .help,
html[data-theme="cyber-tech"] .precheck-panel .precheck-issue-links li.is-issue-item p,
html[data-theme="cyber-tech"] .field-review p,
html[data-theme="cyber-tech"] .issues article.field-review p {
  color: #fecaca;
}

html[data-theme="cyber-tech"] .group-issue-count {
  background: rgba(239, 68, 68, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

/* 6) 跨周沿用核对表（覆盖基础样式 !important 与选中/悬停态） */
html[data-theme="cyber-tech"] thead th.carry-col-check,
html[data-theme="cyber-tech"] thead th.carry-col-reapply {
  background: #132540 !important;
  color: #67e8f9 !important;
}

html[data-theme="cyber-tech"] .carry-cell-cur {
  background: #16243a !important;
  color: #fde68a !important;
}

html[data-theme="cyber-tech"] .is-checked td.carry-cell-cur {
  background: rgba(34, 211, 238, 0.2) !important;
  color: #ffffff !important;
}

html[data-theme="cyber-tech"] .carry-check-row:hover,
html[data-theme="cyber-tech"] .carry-check-row.is-checked,
html[data-theme="cyber-tech"] .carry-data-table.is-selectable tbody tr.is-checked td,
html[data-theme="cyber-tech"] .carry-kv-table.is-selectable tbody tr.is-checked td,
html[data-theme="cyber-tech"] .carry-data-table.is-selectable tbody tr.is-checked:hover td,
html[data-theme="cyber-tech"] .carry-kv-table.is-selectable tbody tr.is-checked:hover td,
html[data-theme="cyber-tech"] tbody tr.is-checked td.carry-col-check,
html[data-theme="cyber-tech"] tbody tr.is-checked:hover td.carry-col-check,
html[data-theme="cyber-tech"] .carry-finance-table .carry-fin-cell.is-selectable-cell:hover,
html[data-theme="cyber-tech"] .carry-finance-table .carry-fin-cell.is-checked {
  background: rgba(34, 211, 238, 0.16);
  color: #f0f9ff;
}

html[data-theme="cyber-tech"] .carry-hint-chips button:hover:not(:disabled),
html[data-theme="cyber-tech"] .carry-reapply-btn:hover:not(:disabled),
html[data-theme="cyber-tech"] .carry-reapply-mini:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.22);
  border-color: #4cd7f6;
  color: #ffffff;
}

/* 7) 表格下拉组合框、数字态、语音/AI按钮、nice-select、预览加载态 */
html[data-theme="cyber-tech"] .field .table-scroll td select.table-num-state,
html[data-theme="cyber-tech"] .field .table-scroll td .table-combo-trigger,
html[data-theme="cyber-tech"] button.ns-combo-btn,
html[data-theme="cyber-tech"] button.ns-panel-close,
html[data-theme="cyber-tech"] input.ns-search-input {
  background: #102138;
  border-color: rgba(76, 215, 246, 0.3);
  color: #e0f2fe;
}

html[data-theme="cyber-tech"] .field .table-scroll td .table-combo:hover:not(.is-disabled) .table-combo-trigger,
html[data-theme="cyber-tech"] button.ns-combo-btn:hover:not(:disabled),
html[data-theme="cyber-tech"] button.ns-panel-close:hover,
html[data-theme="cyber-tech"] button.ns-trigger:hover:not(:disabled),
html[data-theme="cyber-tech"] .header-project button.ns-trigger-project:hover:not(:disabled),
html[data-theme="cyber-tech"] button.ns-option:hover:not(:disabled),
html[data-theme="cyber-tech"] button.ns-option.is-focused:not(:disabled),
html[data-theme="cyber-tech"] .choice-pill:hover:not(:disabled),
html[data-theme="cyber-tech"] .num-chip-clear:hover,
html[data-theme="cyber-tech"] .doc-preview-zoom-btn:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: #4cd7f6;
  color: #ffffff;
}

html[data-theme="cyber-tech"] button.ns-option.is-selected {
  background: rgba(34, 211, 238, 0.22);
  color: #67e8f9;
}

html[data-theme="cyber-tech"] .ns-sheet-handle {
  background: rgba(148, 163, 184, 0.45);
}

html[data-theme="cyber-tech"] .field-voice > button.voice-record-btn.secondary:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.22);
  border-color: #67e8f9;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .field-voice > button.voice-record-btn.is-recording {
  background: rgba(239, 68, 68, 0.24);
  border-color: #f87171;
  color: #fecaca;
}

html[data-theme="cyber-tech"] .field-voice > button.voice-ai-btn {
  background: #1e1f4b;
  border-color: #818cf8;
  color: #c7d2fe;
}

html[data-theme="cyber-tech"] .doc-preview-overlay {
  background: #071120;
}

html[data-theme="cyber-tech"] .doc-preview-loading {
  background: #0e1c32;
  color: #eaf4ff;
  border-color: rgba(76, 215, 246, 0.34);
}

/* 8) 手机端顶栏/章节抽屉/退出按钮残余白底 */
html[data-theme="cyber-tech"] .mobile-chapter-selector {
  background: rgba(10, 20, 38, 0.96);
  border-color: rgba(76, 215, 246, 0.24);
}

html[data-theme="cyber-tech"] .chapter-picker-badge,
html[data-theme="cyber-tech"] .chapter-picker-idx,
html[data-theme="cyber-tech"] .resume-blocks-brief,
html[data-theme="cyber-tech"] .table-add-bottom-btn {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.34);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .chapter-nav-arrow:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.18);
  color: #ffffff;
}

html[data-theme="cyber-tech"] .app-header .history-entry {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.34);
  color: #e0f2fe;
}

html[data-theme="cyber-tech"] .switch-role {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.38);
  color: #fca5a5;
}

@media (max-width: 760px) {
  html[data-theme="cyber-tech"] .header-period {
    background: #0e1c33;
    border-color: rgba(76, 215, 246, 0.24);
  }
}

/* 9) AI 副驾驶与页面设置弹窗残余白底与暗字 */
html[data-theme="cyber-tech"] .ai-textarea:focus {
  background: #0c1a30;
  color: #f8fafc;
}

html[data-theme="cyber-tech"] .ai-quick-btn:hover,
html[data-theme="cyber-tech"] .ai-img-pick-btn:hover,
html[data-theme="cyber-tech"] .ai-voice-btn:hover:not(:disabled),
html[data-theme="cyber-tech"] .ai-img-voice-btn:hover:not(:disabled),
html[data-theme="cyber-tech"] .ai-page-link:hover,
html[data-theme="cyber-tech"] .ai-sugg-copy-btn:hover,
html[data-theme="cyber-tech"] .page-settings-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #4cd7f6;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .ai-msg.is-error .ai-bubble,
html[data-theme="cyber-tech"] .ai-voice-bar.is-recording,
html[data-theme="cyber-tech"] .ai-auth-err,
html[data-theme="cyber-tech"] .ai-sugg-undo-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.48);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .ai-bubble-img,
html[data-theme="cyber-tech"] .ai-img-thumb {
  background: #0a1628;
  border-color: rgba(76, 215, 246, 0.28);
}

html[data-theme="cyber-tech"] .ai-img-remove {
  background: #1e3556;
  color: #e2e8f0;
}

html[data-theme="cyber-tech"] .ai-typing,
html[data-theme="cyber-tech"] .ai-img-tip,
html[data-theme="cyber-tech"] .ai-foot-hint,
html[data-theme="cyber-tech"] .ai-auth-desc,
html[data-theme="cyber-tech"] .ai-auth-foot,
html[data-theme="cyber-tech"] .ai-sugg-readonly {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .ai-img-meta,
html[data-theme="cyber-tech"] .ai-auth-field {
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .ai-toast,
html[data-theme="cyber-tech"] .ai-sugg-status,
html[data-theme="cyber-tech"] .ps-sync-status {
  color: #34d399;
}

html[data-theme="cyber-tech"] .ai-topic-banner {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

html[data-theme="cyber-tech"] .ai-topic-reset-btn {
  background: #132540;
  border-color: rgba(251, 191, 36, 0.42);
  color: #fcd34d;
}

html[data-theme="cyber-tech"] .ai-topic-reset-btn:hover {
  background: rgba(245, 158, 11, 0.24);
  color: #fef3c7;
}

html[data-theme="cyber-tech"] .ai-fab-badge {
  background: #dc2626;
  color: #ffffff;
  border-color: #091426;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.62);
}

html[data-theme="cyber-tech"] .ai-precheck-bar {
  background: rgba(220, 38, 38, 0.16);
  border-bottom-color: rgba(248, 113, 113, 0.36);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .ai-precheck-bar-count {
  background: #dc2626;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .ai-precheck-action-btn {
  background: #132540;
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .ai-precheck-action-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.28);
  border-color: #f87171;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .ps-tab {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .ps-tab:hover {
  color: #e0f2fe;
}

html[data-theme="cyber-tech"] .ps-card-badge,
html[data-theme="cyber-tech"] .ps-persona-tag {
  background: #152b4a;
  border: 1px solid rgba(76, 215, 246, 0.28);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .ps-persona-card.is-active {
  background: rgba(34, 211, 238, 0.14);
  border-color: #22d3ee;
}

/* 10) 管理后台（configuration.html）全量暗色补齐（ID 卡片、操作按钮、批量建号、权限矩阵） */
html[data-theme="cyber-tech"] #sec-projects,
html[data-theme="cyber-tech"] #sec-accounts,
html[data-theme="cyber-tech"] #sec-grants,
html[data-theme="cyber-tech"] .cfg-table-wrap,
html[data-theme="cyber-tech"] .cfg-pm-table-wrap {
  background: #0e192d;
  border-color: rgba(76, 215, 246, 0.24);
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] #sec-grants .cfg-section-number,
html[data-theme="cyber-tech"] .cfg-pm-th-ch,
html[data-theme="cyber-tech"] .cfg-pm-sel-x,
html[data-theme="cyber-tech"] .cfg-pm-rp-caret {
  color: #7dd3fc;
}

html[data-theme="cyber-tech"] .cfg-table thead th,
html[data-theme="cyber-tech"] .cfg-batch-acc-table th,
html[data-theme="cyber-tech"] .cfg-batch-cred-table th,
html[data-theme="cyber-tech"] .cfg-pm-table thead th.cfg-pm-sticky-col,
html[data-theme="cyber-tech"] .cfg-pm-rp-head {
  background: #132540;
  color: #67e8f9;
  border-color: rgba(76, 215, 246, 0.28);
}

html[data-theme="cyber-tech"] .cfg-field input,
html[data-theme="cyber-tech"] .cfg-field select,
html[data-theme="cyber-tech"] .cfg-batch-names-input,
html[data-theme="cyber-tech"] .cfg-ba-input,
html[data-theme="cyber-tech"] .cfg-ba-select {
  background: #091426;
  color: #eaf4ff;
  border-color: rgba(76, 215, 246, 0.3);
}

html[data-theme="cyber-tech"] .cfg-field input:disabled,
html[data-theme="cyber-tech"] .cfg-field select:disabled {
  background: #0b1627;
  color: #8aa7c7;
}

html[data-theme="cyber-tech"] .cfg-field-label > span,
html[data-theme="cyber-tech"] .cfg-pm-person-name strong,
html[data-theme="cyber-tech"] .cfg-pm-rp-opt {
  color: #eaf4ff;
}

html[data-theme="cyber-tech"] .cfg-block-meta,
html[data-theme="cyber-tech"] .cfg-pm-person-name small,
html[data-theme="cyber-tech"] .cfg-pm-person-foot,
html[data-theme="cyber-tech"] .cfg-pm-rp-meta,
html[data-theme="cyber-tech"] .cfg-pm-delegate-lbl,
html[data-theme="cyber-tech"] .cfg-pm-block-cnt {
  color: #94b4d4;
}

html[data-theme="cyber-tech"] .cfg-badge-slate,
html[data-theme="cyber-tech"] .cfg-badge-gray,
html[data-theme="cyber-tech"] .cfg-block-full,
html[data-theme="cyber-tech"] .cfg-pm-rp-meta,
html[data-theme="cyber-tech"] .cfg-banner:not(.cfg-banner-ok):not(.cfg-banner-error):not(.cfg-banner-empty) {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.26);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .cfg-btn-sm,
html[data-theme="cyber-tech"] .cfg-table tbody td.cfg-col-actions .cfg-ops .cfg-btn-sm,
html[data-theme="cyber-tech"] .cfg-btn-edit,
html[data-theme="cyber-tech"] .cfg-btn-batch,
html[data-theme="cyber-tech"] .cfg-modal-close {
  background: #132540;
  border-color: rgba(76, 215, 246, 0.34);
  color: #bae6fd;
}

html[data-theme="cyber-tech"] .cfg-btn-light:hover,
html[data-theme="cyber-tech"] .cfg-topbar .cfg-btn-light:hover,
html[data-theme="cyber-tech"] .cfg-btn-outline:hover:not(:disabled),
html[data-theme="cyber-tech"] .cfg-btn-outline-sm:hover:not(:disabled),
html[data-theme="cyber-tech"] .cfg-btn-edit:hover:not(:disabled),
html[data-theme="cyber-tech"] .cfg-btn-batch:hover:not(:disabled),
html[data-theme="cyber-tech"] .cfg-modal-close:hover,
html[data-theme="cyber-tech"] .cfg-pm-sel-x:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #4cd7f6;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .cfg-btn-grant,
html[data-theme="cyber-tech"] .cfg-pm-cov-bar.is-ok,
html[data-theme="cyber-tech"] .cfg-pm-mgr-banner {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

html[data-theme="cyber-tech"] .cfg-btn-grant:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.28);
  color: #d1fae5;
}

html[data-theme="cyber-tech"] .cfg-btn-warn,
html[data-theme="cyber-tech"] .cfg-matrix-row-warn,
html[data-theme="cyber-tech"] .cfg-pm-table thead th.cfg-pm-col-over {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

html[data-theme="cyber-tech"] .cfg-btn-warn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.26);
  color: #fef3c7;
}

html[data-theme="cyber-tech"] .cfg-ba-hint-warn {
  color: #fbbf24;
}

html[data-theme="cyber-tech"] .cfg-btn-del,
html[data-theme="cyber-tech"] .cfg-table tbody td.cfg-col-actions .cfg-ops .cfg-btn-del,
html[data-theme="cyber-tech"] .cfg-ba-row-err td,
html[data-theme="cyber-tech"] .cfg-pm-cov-bar.is-miss,
html[data-theme="cyber-tech"] .cfg-pm-miss-pill,
html[data-theme="cyber-tech"] .cfg-pm-table thead th.cfg-pm-col-missing,
html[data-theme="cyber-tech"] .cfg-pm-table tbody td.cfg-pm-col-missing,
html[data-theme="cyber-tech"] .cfg-pm-table tbody tr.cfg-pm-row-mgr td.cfg-pm-col-missing,
html[data-theme="cyber-tech"] .cfg-pm-remove-btn,
html[data-theme="cyber-tech"] .cfg-badge-red {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.44);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .cfg-ba-input-err {
  background: #231118 !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

html[data-theme="cyber-tech"] .cfg-btn-del:hover:not(:disabled),
html[data-theme="cyber-tech"] .cfg-table tbody td.cfg-col-actions .cfg-ops .cfg-btn-del:hover:not(:disabled),
html[data-theme="cyber-tech"] .cfg-pm-remove-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #f87171;
  color: #ffffff;
}

html[data-theme="cyber-tech"] .cfg-ba-hint-err {
  color: #fca5a5;
}

html[data-theme="cyber-tech"] .cfg-table tbody tr.cfg-row-selected td,
html[data-theme="cyber-tech"] .cfg-pm-rp-opt.is-selected {
  background: rgba(34, 211, 238, 0.18);
  color: #67e8f9;
}

/* ==========================================================================
   5. 皮肤四：元气可爱（html[data-theme="kawaii"]）
   基于 Google Stitch「日系草莓奶霜元气工作台」+ ChatGPT 4 张 Q 版萌猫/萌娃插画彻底重塑！
   告别刺眼芭比紫红，全站按钮/侧栏/卡片/表格/副驾驶 100% 马卡龙治愈系统一，零蓝色残留
   ========================================================================== */
html[data-theme="kawaii"] {
  --cscec-blue: #ee5d87;
  --p-blue-700: #b83360;
  --p-blue-600: #de4a77;
  --p-blue-500: #ee5d87;
  --p-blue-100: #fff0f5;
  --p-blue-050: #fff9fb;
  --flagship-navy: #ee5d87;
  --flagship-navy-deep: #d94673;
  --flagship-navy-mid: #f784a5;
  --navy: #c93d69;
  --navy-deep: #a83159;
  --navy-mid: #ee5d87;
  --navy-hover: #f784a5;
  --blue: #ee5d87;
  --blue-hover: #f26b92;
  --blue-strong: #b83360;
  --blue-soft: #fff0f5;
  --blue-border: #f7c5d8;
  --section-blue: #fff2f6;
  --section-blue-border: #f7c5d8;
  --bg: #fff9f7;
  --surface: #ffffff;
  --surface-subtle: #fff7f9;
  --ink: #4b2434;
  --ink-secondary: #6e3e52;
  --muted: #8f6374;
  --line: #f8d8e4;
  --line-strong: #f2bdd1;
  --green: #1b8a6b;
  --green-soft: #e5f8f2;
  --green-border: #9de2ce;
  --amber: #b36b0a;
  --amber-soft: #fef5d7;
  --amber-border: #f3d280;
  --red: #c92a55;
  --red-soft: #ffe8ef;
  --red-border: #f8b3c7;
  --radius-sm: 13px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-xs: 0 2px 6px rgba(238, 93, 135, 0.06);
  --shadow-sm: 0 5px 18px rgba(238, 93, 135, 0.08);
  --shadow-md: 0 12px 30px rgba(238, 93, 135, 0.12);
}

html[data-theme="kawaii"] body,
html[data-theme="kawaii"] body.cfg-body,
html[data-theme="kawaii"] body.ai-standalone-body {
  background: linear-gradient(155deg, #fff9f7 0%, #fff2f6 50%, #f1fbf9 100%);
  color: #4b2434;
}

html[data-theme="kawaii"] :focus-visible {
  outline: 3px solid rgba(238, 93, 135, 0.42);
}

html[data-theme="kawaii"] input:not([type=checkbox]):focus,
html[data-theme="kawaii"] select:focus,
html[data-theme="kawaii"] textarea:focus,
html[data-theme="kawaii"] .fin-num-input:focus,
html[data-theme="kawaii"] .scalar-text-grow:focus-within,
html[data-theme="kawaii"] .photo-caption-grow:focus-within,
html[data-theme="kawaii"] .field .table-scroll td .table-text-grow:focus-within,
html[data-theme="kawaii"] .field .table-scroll td .table-combo:focus-within,
html[data-theme="kawaii"] .issue-explain-box .issue-explain-grow:focus-within,
html[data-theme="kawaii"] button.ns-trigger:focus-visible,
html[data-theme="kawaii"] button.ns-trigger[aria-expanded="true"],
html[data-theme="kawaii"] input.ns-search-input:focus,
html[data-theme="kawaii"] .ai-textarea:focus,
html[data-theme="kawaii"] .ai-auth-field input:focus,
html[data-theme="kawaii"] .cfg-field input:focus,
html[data-theme="kawaii"] .cfg-field select:focus,
html[data-theme="kawaii"] .cfg-batch-names-input:focus,
html[data-theme="kawaii"] .cfg-ba-input:focus,
html[data-theme="kawaii"] .cfg-ba-select:focus {
  border-color: #ee5d87;
  box-shadow: 0 0 0 3px rgba(238, 93, 135, 0.18);
}

/* ---------- 5.1 登录页 & 首次改密页：奶油草莓云朵小猫+萌娃梦幻绘本 ---------- */
html[data-theme="kawaii"] .login-intro {
  background-color: #fff3f7;
  background-image:
    radial-gradient(circle at 86% 16%, rgba(156, 226, 218, 0.34) 0%, rgba(156, 226, 218, 0) 48%),
    radial-gradient(circle at 14% 88%, rgba(254, 232, 165, 0.34) 0%, rgba(254, 232, 165, 0) 46%),
    linear-gradient(155deg, #fff5f8 0%, #ffeaf1 54%, #eefaf7 100%);
  border: 1.5px solid #f7cddc;
  border-radius: 26px 0 0 26px;
  color: #4b2434;
  box-shadow: 0 14px 36px rgba(238, 93, 135, 0.1);
  padding: 26px 38px 28px;
}

html[data-theme="kawaii"] .login-intro::after {
  border-color: rgba(238, 93, 135, 0.06);
}

html[data-theme="kawaii"] .kawaii-login-art {
  display: block;
  margin: 0 0 14px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 26px rgba(238, 93, 135, 0.18);
  background: #fff8fa;
}

html[data-theme="kawaii"] .kawaii-login-art img {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  object-position: center 40%;
}

html[data-theme="kawaii"] .login-intro h1 {
  font-size: 29px;
  line-height: 1.24;
  margin: 6px 0 8px;
}

html[data-theme="kawaii"] .login-intro > p {
  margin-bottom: 12px;
  font-size: 13.5px;
}

html[data-theme="kawaii"] .login-highlights {
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

html[data-theme="kawaii"] .login-intro h1,
html[data-theme="kawaii"] .login-intro .wordmark,
html[data-theme="kawaii"] .login-intro .login-ci-group,
html[data-theme="kawaii"] .login-highlights li b {
  color: #4b2434;
}

html[data-theme="kawaii"] .login-intro > p,
html[data-theme="kawaii"] .login-highlights li span {
  color: #77475b;
}

html[data-theme="kawaii"] .login-intro .brand-kicker {
  background: #ffffff;
  border-color: #f6c4d7;
  color: #b83360;
}

html[data-theme="kawaii"] .login-intro .login-ci-sep {
  background: rgba(184, 51, 96, 0.24);
}

html[data-theme="kawaii"] .login-highlights li {
  border-left-color: #f59bb6;
}

html[data-theme="kawaii"] .login-highlights li::before {
  background: #ee5d87;
  box-shadow: 0 0 0 4px rgba(238, 93, 135, 0.16);
}

/* 登录白卡顶部：三只圆滚滚探头小猫趴框彩蛋！ */
html[data-theme="kawaii"] .login-card {
  position: relative;
  overflow: visible;
  border-radius: 0 26px 26px 0;
  border: 1.5px solid #f7d2e0;
  box-shadow: 0 14px 36px rgba(238, 93, 135, 0.1);
}

html[data-theme="kawaii"] .login-card::before {
  border-radius: 0 26px 0 0;
  background: linear-gradient(90deg, #ee5d87 0%, #f99eb8 50%, #7ad5c8 100%);
}

html[data-theme="kawaii"] .kawaii-card-peek {
  display: block;
  position: absolute;
  top: -66px;
  right: 26px;
  width: 210px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 6px 10px rgba(184, 51, 96, 0.14));
}

@media (max-width: 1024px) {
  html[data-theme="kawaii"] .login-intro {
    border-radius: 22px;
  }
  html[data-theme="kawaii"] .login-card {
    border-radius: 22px;
    margin-top: 66px;
  }
  html[data-theme="kawaii"] .login-card::before {
    border-radius: 22px 22px 0 0;
  }
  html[data-theme="kawaii"] .kawaii-card-peek {
    top: -54px;
    right: 18px;
    width: 174px;
  }
  html[data-theme="kawaii"] .kawaii-login-art img {
    height: 156px;
  }
}

/* ---------- 5.2 侧边栏：Google Stitch 柔奶油樱花牛奶底 + 珊瑚草莓胶囊 + 底部趴趴三小猫 ---------- */
html[data-theme="kawaii"] .sidebar {
  background: linear-gradient(180deg, #fff6f8 0%, #ffedf2 58%, #fff3f6 100%);
  border-right: 1.5px solid #f7d2e0;
  color: #4b2434;
  box-shadow: 4px 0 20px rgba(238, 93, 135, 0.06);
}

html[data-theme="kawaii"] .sidebar-brand .wordmark,
html[data-theme="kawaii"] .sidebar .main-navigation button,
html[data-theme="kawaii"] .sidebar .chapter-button,
html[data-theme="kawaii"] .sidebar .chapter-group > summary,
html[data-theme="kawaii"] .sidebar .subblock-btn,
html[data-theme="kawaii"] .sidebar-nav-link {
  color: #4b2434;
  border-radius: 15px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="kawaii"] .sidebar-brand .brand-subtitle,
html[data-theme="kawaii"] .sidebar .chapter-navigation h2 {
  color: #9c6278;
}

html[data-theme="kawaii"] .sidebar .chapter-navigation h2 span {
  background: #ffe3ec;
  color: #b83360;
}

html[data-theme="kawaii"] .sidebar .main-navigation button img,
html[data-theme="kawaii"] .sidebar .chapter-group > summary img {
  filter: invert(22%) sepia(32%) saturate(1350%) hue-rotate(306deg) brightness(86%) contrast(92%);
}

html[data-theme="kawaii"] .sidebar > .mode {
  background: #ffe6ef;
  color: #b83360;
  border: 1px solid #f7bfd4;
}

html[data-theme="kawaii"] .sidebar .chapter-button,
html[data-theme="kawaii"] .sidebar .chapter-group > summary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #f8dbe6;
  margin-bottom: 4px;
}

html[data-theme="kawaii"] .sidebar .chapter-button > span:first-child,
html[data-theme="kawaii"] .sidebar .chapter-group summary > span:first-child {
  background: #ffe5ee;
  color: #b83360;
  border-radius: 8px;
}

html[data-theme="kawaii"] .sidebar .main-navigation button:hover:not(:disabled),
html[data-theme="kawaii"] .sidebar .chapter-button:hover,
html[data-theme="kawaii"] .sidebar .chapter-group > summary:hover,
html[data-theme="kawaii"] .sidebar .subblock-btn:hover {
  background: #ffe6ef;
  border-color: #f4b7ce;
  color: #8f224b;
}

/* 选中章：Stitch 珊瑚草莓粉柔光大胶囊！ */
html[data-theme="kawaii"] .sidebar .main-navigation button.active,
html[data-theme="kawaii"] .sidebar .chapter-navigation .chapter-button.active,
html[data-theme="kawaii"] .sidebar .chapter-navigation .chapter-button.active:hover,
html[data-theme="kawaii"] .sidebar .chapter-group button.subblock-btn.active {
  background: linear-gradient(135deg, #ee5d87 0%, #f683a4 100%) !important;
  border-color: #ee5d87 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(238, 93, 135, 0.28) !important;
}

html[data-theme="kawaii"] .sidebar .main-navigation button.active img {
  filter: brightness(0) invert(1);
}

html[data-theme="kawaii"] .sidebar .chapter-navigation .chapter-button.active > span:first-child {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

html[data-theme="kawaii"] .sidebar .chapter-button.active small,
html[data-theme="kawaii"] .sidebar .subblock-btn.active small {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #b83360 !important;
  border-color: transparent !important;
}

/* 侧栏五档马卡龙柔和状态标签 */
html[data-theme="kawaii"] .sidebar .chapter-status-tag,
html[data-theme="kawaii"] .sidebar .subblock-tag {
  background: #f8ecf0;
  color: #7d5364 !important;
  border: 1px solid #eed5df;
  border-radius: 999px;
}

html[data-theme="kawaii"] .sidebar .chapter-status-tag.is-tone-info,
html[data-theme="kawaii"] .sidebar .subblock-tag.is-tone-info {
  background: #e3f7f3;
  color: #0e6e64 !important;
  border-color: #9be0d4;
}

html[data-theme="kawaii"] .sidebar .chapter-status-tag.is-tone-warn,
html[data-theme="kawaii"] .sidebar .subblock-tag.is-tone-warn {
  background: #fef6d5;
  color: #8f5a08 !important;
  border-color: #f3d586;
}

html[data-theme="kawaii"] .sidebar .chapter-status-tag.is-tone-done,
html[data-theme="kawaii"] .sidebar .subblock-tag.is-tone-done,
html[data-theme="kawaii"] .sidebar .chapter-status-tag.is-tone-success,
html[data-theme="kawaii"] .sidebar .subblock-tag.is-tone-success {
  background: #e5f8ee;
  color: #1b7a49 !important;
  border-color: #a3e7c1;
}

html[data-theme="kawaii"] .sidebar .chapter-status-tag.is-tone-error,
html[data-theme="kawaii"] .sidebar .subblock-tag.is-tone-error {
  background: #ffe4ec;
  color: #b82352 !important;
  border-color: #f7afc5;
}

html[data-theme="kawaii"] .sidebar .chapter-group button.subblock-btn.is-tone-info {
  background: #f2fbf9;
  border-left-color: #46bfa9;
}

html[data-theme="kawaii"] .sidebar .chapter-group button.subblock-btn.is-tone-success {
  background: #f0faf4;
  border-left-color: #34b37a;
}

/* 侧栏底部萌猫今日小签挂件 */
html[data-theme="kawaii"] .kawaii-sidebar-charm {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 4px 6px 4px;
  padding-top: 4px;
}

html[data-theme="kawaii"] .kawaii-sidebar-cats {
  width: 176px;
  max-width: 92%;
  height: auto;
  display: block;
  margin-bottom: -4px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(184, 51, 96, 0.14));
}

html[data-theme="kawaii"] .kawaii-sidebar-note {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fff4f8 100%);
  border: 1.5px solid #f7c7da;
  box-shadow: 0 4px 12px rgba(238, 93, 135, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

html[data-theme="kawaii"] .kawaii-sidebar-note strong {
  font-size: 12px;
  font-weight: 700;
  color: #c83b68;
}

html[data-theme="kawaii"] .kawaii-sidebar-note span {
  font-size: 11.5px;
  color: #7c495e;
  line-height: 1.4;
}

/* ---------- 5.3 顶栏、卡片、表格、财务矩阵、待上传区 ---------- */
html[data-theme="kawaii"] .app-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1.5px solid #f8d4e2;
  box-shadow: 0 4px 14px rgba(238, 93, 135, 0.05);
}

html[data-theme="kawaii"] .mobile-brand {
  background: linear-gradient(135deg, #fff3f7 0%, #ffe6ef 100%);
  color: #4b2434;
  border-bottom: 1px solid #f7cadb;
}

html[data-theme="kawaii"] .header-period b {
  background: linear-gradient(135deg, #ee5d87 0%, #f683a4 100%);
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(238, 93, 135, 0.24);
}

html[data-theme="kawaii"] .panel,
html[data-theme="kawaii"] .cfg-card,
html[data-theme="kawaii"] .cfg-kpi-card,
html[data-theme="kawaii"] .inbox-card,
html[data-theme="kawaii"] .carry-card,
html[data-theme="kawaii"] .carry-history-card,
html[data-theme="kawaii"] .calc-summary-card,
html[data-theme="kawaii"] .ai-auth-card,
html[data-theme="kawaii"] .period-popover,
html[data-theme="kawaii"] .ui-scale-menu,
html[data-theme="kawaii"] .ns-menu,
html[data-theme="kawaii"] .ns-sheet,
html[data-theme="kawaii"] .logout-modal {
  border-radius: 20px;
  border-color: #f8d4e2;
  box-shadow: 0 8px 24px rgba(238, 93, 135, 0.08);
}

html[data-theme="kawaii"] .cfg-topbar,
html[data-theme="kawaii"] .ai-page-topbar,
html[data-theme="kawaii"] .ai-head,
html[data-theme="kawaii"] .ps-head {
  background: linear-gradient(135deg, #ee5d87 0%, #f57da0 56%, #ffa6ba 100%);
  color: #ffffff;
}

html[data-theme="kawaii"] .ps-head-titles p {
  color: rgba(255, 245, 248, 0.94);
}

html[data-theme="kawaii"] thead th,
html[data-theme="kawaii"] .finance-matrix .fin-group-th,
html[data-theme="kawaii"] .carry-finance-table .carry-fin-group,
html[data-theme="kawaii"] .cfg-pm-table thead th {
  background: #fff2f6;
  color: #7d2b49;
  border-color: #f6cedd;
}

html[data-theme="kawaii"] tbody tr:nth-child(even) {
  background: #fffbfd;
}

html[data-theme="kawaii"] tbody tr:hover {
  background: #fff3f7;
}

html[data-theme="kawaii"] .period-popover-title,
html[data-theme="kawaii"] .period-val,
html[data-theme="kawaii"] .fin-computed-val,
html[data-theme="kawaii"] .carry-fin-cell.is-computed .carry-fin-val,
html[data-theme="kawaii"] .calc-summary-table .is-tone-accent,
html[data-theme="kawaii"] .pending-upload-title-wrap strong,
html[data-theme="kawaii"] .cfg-pm-tool-item,
html[data-theme="kawaii"] .cfg-pm-rp-head strong,
html[data-theme="kawaii"] .cfg-inline-title,
html[data-theme="kawaii"] .ai-auth-title,
html[data-theme="kawaii"] .ai-auth-foot a {
  color: #c83b68;
}

html[data-theme="kawaii"] .period-popover-title::before,
html[data-theme="kawaii"] .calc-summary-head h3::before {
  background: linear-gradient(180deg, #ee5d87 0%, #83d5c9 100%);
}

html[data-theme="kawaii"] .pwd-rule-box,
html[data-theme="kawaii"] .fin-badge,
html[data-theme="kawaii"] .calc-summary-badge,
html[data-theme="kawaii"] .cfg-banner-info,
html[data-theme="kawaii"] .cfg-pm-cov-bar,
html[data-theme="kawaii"] .cfg-pm-th-count,
html[data-theme="kawaii"] .cfg-pm-sel-tag,
html[data-theme="kawaii"] .pending-upload-file-badge,
html[data-theme="kawaii"] .caption-voice-status,
html[data-theme="kawaii"] .ps-section-tip,
html[data-theme="kawaii"] .ai-sugg-action-tag {
  background: #fff0f5;
  border-color: #f6c2d6;
  color: #9e2d55;
}

html[data-theme="kawaii"] .pending-upload-panel {
  background: #fff7fa;
  border: 1.5px dashed #f3a6c2;
  border-radius: 16px;
}

html[data-theme="kawaii"] .manager-progress-bar::-webkit-progress-value,
html[data-theme="kawaii"] .manager-progress-bar::-moz-progress-bar {
  background: linear-gradient(90deg, #ee5d87 0%, #56c9b4 100%);
}

html[data-theme="kawaii"] .report-list button.selected {
  border-color: #ee5d87;
  background: #fff0f5;
  box-shadow: 0 0 0 2px rgba(238, 93, 135, 0.16);
}

html[data-theme="kawaii"] .cfg-pm-cell-lbl input[type="checkbox"],
html[data-theme="kawaii"] .cfg-pm-rp-opt input[type="checkbox"].cfg-pm-rp-cb {
  accent-color: #ee5d87;
}

html[data-theme="kawaii"] .cfg-pm-rp-opt.is-selected {
  background: #fff0f5;
  color: #9e2d55;
}

html[data-theme="kawaii"] .cfg-pm-table thead th.cfg-pm-th-ch8 {
  box-shadow: inset 0 3px 0 #ee5d87;
}

html[data-theme="kawaii"] .cfg-pm-table thead th.cfg-pm-th-ch9 {
  box-shadow: inset 0 3px 0 #46bfa9;
}

/* ---------- 5.4 全站统一马卡龙按钮配色体系（:where 零冗余权重，彻底保护侧栏/图标/语义按钮） ---------- */
/* 主按钮：珊瑚草莓奶霜渐变 + 柔和胶囊圆角 */
html[data-theme="kawaii"] button:where(:not(.secondary):not(.quiet):not(.icon-button):not(.nav-scrim):not(.chapter-button):not(.subblock-btn):not(.chapter-picker-trigger):not(.group-toggle):not(.ui-scale-btn):not(.ui-scale-opt):not(.ns-trigger):not(.ns-option):not(.ps-tab):not(.ps-theme-card):not(.ps-persona-card):not(.ps-close):not(.ps-switch):not(.ai-fab):not(.ai-icon-btn):not(.ai-quick-btn):not(.ai-img-pick-btn):not(.ai-voice-btn):not(.ai-voice-mini-btn):not(.ai-img-voice-btn):not(.ai-img-remove):not(.ai-persona-pill):not(.ai-topic-reset-btn):not(.ai-precheck-action-btn):not(.ai-sugg-undo-btn):not(.ai-sugg-copy-btn):not(.page-settings-btn):not(.choice-pill):not(.num-chip):not(.num-chip-clear):not(.cfg-btn-danger):not(.cfg-btn-del):not(.cfg-btn-warn):not(.cfg-btn-ghost):not(.cfg-btn-outline):not(.cfg-btn-outline-sm):not(.cfg-btn-light):not(.cfg-pm-chip):not(.is-recording):not(.is-danger):not(.is-warn):not(.is-ok):not(.is-error):not(.save-complete)),
html[data-theme="kawaii"] .login-card > button[type="submit"],
html[data-theme="kawaii"] .login-card > button:not(.secondary):not(.quiet),
html[data-theme="kawaii"] .footer-buttons .primary-save,
html[data-theme="kawaii"] .header-period .mobile-preview-btn,
html[data-theme="kawaii"] .doc-preview-exit-btn,
html[data-theme="kawaii"] .cfg-btn-primary,
html[data-theme="kawaii"] .cfg-pm-rp-done,
html[data-theme="kawaii"] .ai-send-btn,
html[data-theme="kawaii"] .ai-auth-submit,
html[data-theme="kawaii"] .ai-sugg-apply-btn,
html[data-theme="kawaii"] .ps-done-btn {
  background: linear-gradient(135deg, #b92654 0%, #c93262 100%);
  border-color: #b92654;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(185, 38, 84, 0.26);
}

html[data-theme="kawaii"] button:where(:not(.secondary):not(.quiet):not(.icon-button):not(.nav-scrim):not(.chapter-button):not(.subblock-btn):not(.chapter-picker-trigger):not(.group-toggle):not(.ui-scale-btn):not(.ui-scale-opt):not(.ns-trigger):not(.ns-option):not(.ps-tab):not(.ps-theme-card):not(.ps-persona-card):not(.ps-close):not(.ps-switch):not(.ai-fab):not(.ai-icon-btn):not(.ai-quick-btn):not(.ai-img-pick-btn):not(.ai-voice-btn):not(.ai-voice-mini-btn):not(.ai-img-voice-btn):not(.ai-img-remove):not(.ai-persona-pill):not(.ai-topic-reset-btn):not(.ai-precheck-action-btn):not(.ai-sugg-undo-btn):not(.ai-sugg-copy-btn):not(.page-settings-btn):not(.choice-pill):not(.num-chip):not(.num-chip-clear):not(.cfg-btn-danger):not(.cfg-btn-del):not(.cfg-btn-warn):not(.cfg-btn-ghost):not(.cfg-btn-outline):not(.cfg-btn-outline-sm):not(.cfg-btn-light):not(.cfg-pm-chip):not(.is-recording):not(.is-danger):not(.is-warn):not(.is-ok):not(.is-error):not(.save-complete)):hover:not(:disabled),
html[data-theme="kawaii"] .login-card > button[type="submit"]:hover:not(:disabled),
html[data-theme="kawaii"] .login-card > button:not(.secondary):not(.quiet):hover:not(:disabled),
html[data-theme="kawaii"] .footer-buttons .primary-save:hover:not(:disabled),
html[data-theme="kawaii"] .doc-preview-exit-btn:hover,
html[data-theme="kawaii"] .cfg-btn-primary:hover:not(:disabled),
html[data-theme="kawaii"] .cfg-pm-rp-done:hover,
html[data-theme="kawaii"] .ps-done-btn:hover {
  background: linear-gradient(135deg, #9f1e46 0%, #b52754 100%);
  border-color: #9f1e46;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(159, 30, 70, 0.32);
}

html[data-theme="kawaii"] .report-list button,
html[data-theme="kawaii"] .chapter-picker-trigger,
html[data-theme="kawaii"] .group-toggle {
  background: #ffffff;
  border-color: #f6cedd;
  color: #4b2434;
  border-radius: 14px;
  box-shadow: none;
}

html[data-theme="kawaii"] .report-list button:hover:not(:disabled) {
  background: #fff3f7;
  border-color: #c93262;
  color: #8f224b;
}

html[data-theme="kawaii"] .sidebar-preview-btn {
  background: linear-gradient(135deg, #b92654 0%, #c93262 100%) !important;
  border-color: #b92654 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}

/* 保存成功按钮：马卡龙薄荷绿 */
html[data-theme="kawaii"] .footer-buttons .primary-save.save-complete {
  background: linear-gradient(135deg, #2ba584 0%, #4ac2a2 100%);
  border-color: #2ba584;
  box-shadow: 0 4px 14px rgba(43, 165, 132, 0.24);
}

/* 次按钮：柔樱花奶白 + 莓果可可字 */
html[data-theme="kawaii"] button.secondary,
html[data-theme="kawaii"] .page-settings-btn,
html[data-theme="kawaii"] .ui-scale-btn,
html[data-theme="kawaii"] .period-details summary,
html[data-theme="kawaii"] .cfg-btn-outline,
html[data-theme="kawaii"] .cfg-btn-outline-sm,
html[data-theme="kawaii"] .cfg-btn-ghost,
html[data-theme="kawaii"] .cfg-btn-light,
html[data-theme="kawaii"] .ai-page-link,
html[data-theme="kawaii"] .num-chip,
html[data-theme="kawaii"] .num-chip-clear,
html[data-theme="kawaii"] .cfg-pm-chip,
html[data-theme="kawaii"] .ai-img-pick-btn,
html[data-theme="kawaii"] .ai-quick-btn,
html[data-theme="kawaii"] .ai-sugg-copy-btn {
  background: #fff4f8;
  border: 1px solid #f5bfd3;
  color: #8f284e;
  border-radius: 999px;
  box-shadow: none;
}

html[data-theme="kawaii"] button.secondary:hover:not(:disabled),
html[data-theme="kawaii"] .page-settings-btn:hover,
html[data-theme="kawaii"] .ui-scale-btn:hover,
html[data-theme="kawaii"] .period-details[open] summary,
html[data-theme="kawaii"] .cfg-btn-outline:hover:not(:disabled),
html[data-theme="kawaii"] .cfg-btn-ghost:hover:not(:disabled),
html[data-theme="kawaii"] .num-chip:hover,
html[data-theme="kawaii"] .cfg-pm-chip:hover,
html[data-theme="kawaii"] .ai-img-pick-btn:hover,
html[data-theme="kawaii"] .ai-quick-btn:hover {
  background: #ffe4ee;
  border-color: #ee668e;
  color: #7d1d42;
  box-shadow: 0 3px 10px rgba(238, 93, 135, 0.14);
}

/* 语音按钮（Stitch 招牌薄荷苏打绿！） */
html[data-theme="kawaii"] .field-voice > button.voice-record-btn.secondary,
html[data-theme="kawaii"] button.caption-voice-btn.secondary,
html[data-theme="kawaii"] .ai-voice-btn,
html[data-theme="kawaii"] .ai-img-voice-btn {
  background: #e3f7f3;
  border: 1.5px solid #83d5c9;
  color: #0d6b62;
  border-radius: 999px;
  box-shadow: none;
}

html[data-theme="kawaii"] .field-voice > button.voice-record-btn.secondary:hover:not(:disabled),
html[data-theme="kawaii"] button.caption-voice-btn.secondary:hover:not(:disabled),
html[data-theme="kawaii"] .ai-voice-btn:hover,
html[data-theme="kawaii"] .ai-img-voice-btn:hover:not(:disabled) {
  background: #cef2ea;
  border-color: #46bfa9;
  color: #085049;
  box-shadow: 0 3px 10px rgba(70, 191, 169, 0.18);
}

/* AI 整理按钮（Stitch 招牌蜂蜜奶油杏黄！） */
html[data-theme="kawaii"] .voice-ai-btn {
  background: #fef4d5;
  border: 1.5px solid #f1ce79;
  color: #8a530b;
  border-radius: 999px;
  box-shadow: none;
}

html[data-theme="kawaii"] .voice-ai-btn:hover:not(:disabled) {
  background: #fde9b0;
  border-color: #dfa938;
  color: #6b3d05;
  box-shadow: 0 3px 10px rgba(223, 169, 56, 0.2);
}

/* 静默按钮：柔雾樱白 */
html[data-theme="kawaii"] button.quiet,
html[data-theme="kawaii"] .icon-button {
  background: #fff9fb;
  border: 1px solid #f6d4e1;
  color: #7c3b55;
  border-radius: 999px;
  box-shadow: none;
}

html[data-theme="kawaii"] button.quiet:hover:not(:disabled) {
  background: #ffebf2;
  border-color: #f2a9c4;
  color: #a83159;
  box-shadow: none;
}

/* 分段胶囊 / 缩放项 / 后台多选 / 设置弹窗选项卡 */
html[data-theme="kawaii"] .choice-pill,
html[data-theme="kawaii"] .ns-trigger,
html[data-theme="kawaii"] .ns-option,
html[data-theme="kawaii"] .ui-scale-opt,
html[data-theme="kawaii"] .ps-tab,
html[data-theme="kawaii"] .ps-theme-card,
html[data-theme="kawaii"] .ps-persona-card {
  background: #ffffff;
  color: #4b2434;
  border-color: #f6cedd;
  border-radius: 14px;
  box-shadow: none;
}

html[data-theme="kawaii"] .choice-pill.is-selected,
html[data-theme="kawaii"] .choice-pills:not(.choice-pills-cards) .choice-pill.is-selected,
html[data-theme="kawaii"] .ui-scale-opt.is-active,
html[data-theme="kawaii"] .doc-preview-zoom-btn.is-active,
html[data-theme="kawaii"] .cfg-pm-chip.is-active,
html[data-theme="kawaii"] .ps-theme-card.is-active .ps-card-badge,
html[data-theme="kawaii"] .ps-persona-card.is-active .ps-card-badge {
  background: linear-gradient(135deg, #ee5d87 0%, #f683a4 100%);
  border-color: #ee5d87;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(238, 93, 135, 0.24);
}

html[data-theme="kawaii"] .ui-scale-opt.is-active strong,
html[data-theme="kawaii"] .ui-scale-opt.is-active span {
  color: #ffffff;
}

html[data-theme="kawaii"] .choice-pills.choice-pills-cards .choice-pill.is-selected {
  background: #fff2f6;
  border-color: #ee5d87;
  color: #8f224b;
  box-shadow: 0 0 0 2px rgba(238, 93, 135, 0.16);
}

html[data-theme="kawaii"] .ps-tab {
  border-radius: 0;
  border-color: transparent;
  background: transparent;
}

html[data-theme="kawaii"] .ps-tab.is-active {
  color: #c83b68;
  border-bottom-color: #ee5d87;
}

html[data-theme="kawaii"] .ps-tabs,
html[data-theme="kawaii"] .ps-foot {
  background: #fff7fa;
  border-color: #f8d4e2;
}

html[data-theme="kawaii"] .ps-theme-card.is-active,
html[data-theme="kawaii"] .ps-persona-card.is-active {
  background: #fff3f7;
  color: #4b2434;
  border-color: #ee5d87;
  box-shadow: 0 0 0 3px rgba(238, 93, 135, 0.16);
}

html[data-theme="kawaii"] .ps-theme-card.is-active .ps-card-title,
html[data-theme="kawaii"] .ps-persona-card.is-active .ps-card-title {
  color: #b83360;
}

html[data-theme="kawaii"] .ps-persona-card.is-active .ps-persona-sample {
  background: #ffffff;
  color: #4b2434;
  border-left-color: #ee5d87;
}

/* ---------- 5.5 AI 副驾驶萌宠化：布偶小猫悬浮球 + 顶栏头像 + 萌娃小猫欢迎卡 ---------- */
html[data-theme="kawaii"] .ai-fab {
  width: 54px;
  height: 54px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #ffe8f0 100%);
  border: 2.5px solid #f48fb1;
  box-shadow: 0 8px 22px rgba(238, 93, 135, 0.34), 0 0 0 3px rgba(255, 255, 255, 0.82);
  overflow: visible;
}

html[data-theme="kawaii"] .ai-fab .ai-fab-icon {
  display: none;
}

html[data-theme="kawaii"] .ai-fab .ai-fab-kawaii-cat {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(184, 51, 96, 0.18));
  transition: transform 0.2s ease;
}

html[data-theme="kawaii"] .ai-fab:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 28px rgba(238, 93, 135, 0.42), 0 0 0 3px rgba(255, 255, 255, 0.92);
}

html[data-theme="kawaii"] .ai-fab:hover .ai-fab-kawaii-cat {
  transform: rotate(-5deg) scale(1.05);
}

html[data-theme="kawaii"] .ai-fab.is-peek {
  width: auto;
  min-width: 126px;
  height: 52px;
  padding: 0 16px 0 8px;
  gap: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ee5d87 0%, #f683a4 100%);
  border: 2px solid #ffffff;
  color: #ffffff;
}

html[data-theme="kawaii"] .ai-fab.is-peek .ai-fab-kawaii-cat {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
}

html[data-theme="kawaii"] .ai-fab-badge {
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.44);
}

html[data-theme="kawaii"] .ai-fab.is-peek .ai-fab-badge {
  top: -6px;
  right: -4px;
}

html[data-theme="kawaii"] .ai-precheck-bar {
  background: #fff1f2;
  border-bottom-color: #fecdd3;
  color: #9f1239;
}

html[data-theme="kawaii"] .ai-precheck-bar-count {
  background: #dc2626;
  color: #ffffff;
}

html[data-theme="kawaii"] .ai-precheck-action-btn {
  background: #ffffff;
  border-color: #fda4af;
  color: #be123c;
  border-radius: 999px;
}

html[data-theme="kawaii"] .ai-precheck-action-btn:hover:not(:disabled) {
  background: #ffe4e6;
  border-color: #e11d48;
  color: #9f1239;
}

html[data-theme="kawaii"] .ai-head-logo {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(184, 51, 96, 0.22);
}

html[data-theme="kawaii"] .ai-head-logo .ai-head-sparkle {
  display: none;
}

html[data-theme="kawaii"] .ai-head-logo .ai-head-kawaii-cat {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-theme="kawaii"] .ai-welcome-kawaii-hero {
  display: flex;
  justify-content: center;
  margin: -4px 0 8px 0;
  padding: 8px 6px 2px 6px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff5f8 0%, #eefaf7 100%);
  border: 1px dashed #f5c3d6;
}

html[data-theme="kawaii"] .ai-welcome-kawaii-hero img {
  height: 128px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(238, 93, 135, 0.14));
}

html[data-theme="kawaii"] .ai-dialog {
  border-radius: 20px;
  border: 1.5px solid #f7cddc;
  background: #fffafc;
}

html[data-theme="kawaii"] .ai-ctx-bar,
html[data-theme="kawaii"] .ai-img-preview-bar,
html[data-theme="kawaii"] .ai-voice-bar {
  background: #fff2f6;
  border-color: #f7cde0;
  color: #8f284e;
}

html[data-theme="kawaii"] .ai-ctx-select {
  border-color: #f4b7ce;
  color: #8f284e;
}

html[data-theme="kawaii"] .ai-welcome-card {
  background: #ffffff;
  border: 1.5px solid #f7d2e0;
  border-radius: 16px;
}

html[data-theme="kawaii"] .ai-welcome-title,
html[data-theme="kawaii"] .ai-sugg-target {
  color: #c83b68;
}

html[data-theme="kawaii"] .ai-msg.is-user .ai-bubble {
  background: linear-gradient(135deg, #c63e6c 0%, #e4618d 100%);
  color: #ffffff;
  border-radius: 18px 18px 6px 18px;
}

html[data-theme="kawaii"] .ai-msg.is-assistant .ai-bubble {
  background: #ffffff;
  border: 1px solid #f7d5e2;
  color: #4b2434;
  border-radius: 18px 18px 18px 6px;
}

html[data-theme="kawaii"] .ai-sugg-card {
  background: #ffffff;
  border: 1.5px solid #f6c4d7;
  border-left: 4px solid #ee5d87;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(238, 93, 135, 0.09);
}

html[data-theme="kawaii"] .ai-sugg-value,
html[data-theme="kawaii"] .ai-sugg-row-grid {
  background: #fff9fb;
  border-color: #f8d8e4;
  color: #4b2434;
}

html[data-theme="kawaii"] .ai-typing-dots span {
  background: #ee5d87;
}

html[data-theme="kawaii"] .ai-bubble-code {
  background: #fff0f5;
  color: #b83360;
}

html[data-theme="kawaii"] .ai-composer {
  background: #fff6f9;
  border-top: 1px solid #f8d4e2;
}

html[data-theme="kawaii"] .ai-textarea {
  border-color: #f5c3d6;
  border-radius: 14px;
}

html[data-theme="kawaii"] .ai-head .ai-icon-btn,
html[data-theme="kawaii"] .ps-head .ps-close {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="kawaii"] .ai-head .ai-icon-btn:hover,
html[data-theme="kawaii"] .ps-head .ps-close:hover {
  background: rgba(255, 255, 255, 0.36);
}

/* === E651U7_BETA8_THEMES_START === */
/* 1. Minimal (极简云白) */
html[data-theme="minimal"] .cfg-mobile-nav-btn {
  border-color: #d4d8df;
  background: #f5f6f8;
  color: #18181b;
}

html[data-theme="minimal"] .cfg-sidebar {
  background: #ffffff;
  border-color: #e4e4e7;
  box-shadow: 0 2px 10px rgba(24, 24, 27, 0.04);
}

html[data-theme="minimal"] .cfg-nav-item:hover {
  background: #f4f4f5;
  color: #18181b;
}

html[data-theme="minimal"] .cfg-nav-item.is-active {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #111827;
}

html[data-theme="minimal"] .cfg-nav-item.is-active::before,
html[data-theme="minimal"] .cfg-nav-item.is-active .cfg-nav-dot,
html[data-theme="minimal"] .cfg-nav-item.is-active .cfg-nav-badge,
html[data-theme="minimal"] .cfg-seg-tab.is-active {
  background: #18181b;
  color: #ffffff;
}

html[data-theme="minimal"] .cfg-quick-tile,
html[data-theme="minimal"] .cfg-filter-bar,
html[data-theme="minimal"] .cfg-seg-tabs,
html[data-theme="minimal"] .cfg-diff-item-head {
  background: #fafafa;
  border-color: #e4e4e7;
}

html[data-theme="minimal"] .cfg-quick-tile strong {
  color: #18181b;
}

html[data-theme="minimal"] .cfg-quick-tile:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
}

/* 2. Cyber-Tech (深空科技 - 全量暗色分层 0 残留白块 / 0 暗字) */
html[data-theme="cyber-tech"] .cfg-mobile-nav-btn {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
}

html[data-theme="cyber-tech"] .cfg-sidebar {
  background: #0f172a;
  border-color: #24344d;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.52);
}

html[data-theme="cyber-tech"] .cfg-sidebar-head,
html[data-theme="cyber-tech"] .cfg-sidebar-foot,
html[data-theme="cyber-tech"] .cfg-pager,
html[data-theme="cyber-tech"] .cfg-diff-item-head {
  border-color: #24344d;
}

html[data-theme="cyber-tech"] .cfg-sidebar-title,
html[data-theme="cyber-tech"] .cfg-sidebar-note,
html[data-theme="cyber-tech"] .cfg-cell-sub,
html[data-theme="cyber-tech"] .cfg-pager-info,
html[data-theme="cyber-tech"] .cfg-history-status,
html[data-theme="cyber-tech"] .cfg-filter-field > span {
  color: #94a3b8;
}

html[data-theme="cyber-tech"] .cfg-sidebar-close {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

html[data-theme="cyber-tech"] .cfg-nav-item {
  color: #cbd5e1;
}

html[data-theme="cyber-tech"] .cfg-nav-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #f8fafc;
}

html[data-theme="cyber-tech"] .cfg-nav-item.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(56, 189, 248, 0.1) 100%);
  color: #f8fafc;
}

html[data-theme="cyber-tech"] .cfg-nav-item.is-active::before,
html[data-theme="cyber-tech"] .cfg-nav-item.is-active .cfg-nav-dot {
  background: #38bdf8;
}

html[data-theme="cyber-tech"] .cfg-nav-dot {
  background: #475569;
}

html[data-theme="cyber-tech"] .cfg-nav-badge {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="cyber-tech"] .cfg-nav-badge-accent {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

html[data-theme="cyber-tech"] .cfg-nav-item.is-active .cfg-nav-badge {
  background: #0284c7;
  color: #f8fafc;
}

html[data-theme="cyber-tech"] .cfg-nav-badge-warn {
  background: rgba(245, 158, 11, 0.24) !important;
  color: #fcd34d !important;
}

html[data-theme="cyber-tech"] .cfg-quick-tile,
html[data-theme="cyber-tech"] .cfg-quick-tile-accent {
  background: #132038;
  border-color: #243652;
  color: #e2e8f0;
}

html[data-theme="cyber-tech"] .cfg-quick-tile strong,
html[data-theme="cyber-tech"] .cfg-cell-strong,
html[data-theme="cyber-tech"] .cfg-pager-page,
html[data-theme="cyber-tech"] .cfg-diff-item-head strong {
  color: #f1f5f9;
}

html[data-theme="cyber-tech"] .cfg-quick-tile span {
  color: #94a3b8;
}

html[data-theme="cyber-tech"] .cfg-quick-tile:hover {
  background: #1a2c4a;
  border-color: #38bdf8;
}

html[data-theme="cyber-tech"] .cfg-seg-tabs {
  background: #0b1220;
  border-color: #24344d;
}

html[data-theme="cyber-tech"] .cfg-seg-tab {
  color: #94a3b8;
}

html[data-theme="cyber-tech"] .cfg-seg-tab.is-active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

html[data-theme="cyber-tech"] .cfg-filter-bar {
  background: #0d1628;
  border-color: #24344d;
}

html[data-theme="cyber-tech"] .cfg-search-inline,
html[data-theme="cyber-tech"] .cfg-filter-field input,
html[data-theme="cyber-tech"] .cfg-filter-field select {
  background: #132038;
  border-color: #334766;
  color: #f1f5f9;
}

html[data-theme="cyber-tech"] .cfg-search-inline::placeholder,
html[data-theme="cyber-tech"] .cfg-filter-field input::placeholder {
  color: #94a3b8;
}

html[data-theme="cyber-tech"] .cfg-filter-check {
  background: rgba(185, 28, 28, 0.22);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fca5a5;
}

html[data-theme="cyber-tech"] .cfg-row-conflict td {
  background: rgba(153, 27, 27, 0.22) !important;
}

html[data-theme="cyber-tech"] .cfg-diff-item {
  background: #0f172a;
  border-color: #263854;
}

html[data-theme="cyber-tech"] .cfg-diff-item-head {
  background: #16233b;
}

html[data-theme="cyber-tech"] .cfg-diff-conflict {
  background: rgba(153, 27, 27, 0.28);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

html[data-theme="cyber-tech"] .cfg-diff-before {
  background: #2b141a;
  border-color: #7f1d1d;
}

html[data-theme="cyber-tech"] .cfg-diff-before .cfg-diff-col-label {
  color: #fca5a5;
}

html[data-theme="cyber-tech"] .cfg-diff-after {
  background: #0e2920;
  border-color: #065f46;
}

html[data-theme="cyber-tech"] .cfg-diff-after .cfg-diff-col-label {
  color: #6ee7b7;
}

html[data-theme="cyber-tech"] .cfg-diff-pre {
  color: #e2e8f0;
}

html[data-theme="cyber-tech"] .cfg-history-status.is-error {
  color: #f87171;
}

/* 3. Kawaii (元气可爱 - 草莓莓果奶霜) */
html[data-theme="kawaii"] .cfg-mobile-nav-btn {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-radius: 999px;
}

html[data-theme="kawaii"] .cfg-sidebar {
  background: linear-gradient(180deg, #fffafd 0%, #fff2f7 100%);
  border-color: #f8c6da;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.08);
}

html[data-theme="kawaii"] .cfg-sidebar-head,
html[data-theme="kawaii"] .cfg-sidebar-foot,
html[data-theme="kawaii"] .cfg-pager {
  border-color: #f8d4e3;
}

html[data-theme="kawaii"] .cfg-nav-item {
  border-radius: 13px;
  color: #703b54;
}

html[data-theme="kawaii"] .cfg-nav-item:hover {
  background: #ffe9f2;
  color: #be185d;
}

html[data-theme="kawaii"] .cfg-nav-item.is-active {
  border-color: #db2777;
  background: linear-gradient(135deg, #e11d74 0%, #db2777 100%);
  color: #ffffff;
}

html[data-theme="kawaii"] .cfg-nav-item.is-active::before {
  display: none;
}

html[data-theme="kawaii"] .cfg-nav-item.is-active .cfg-nav-dot {
  background: #ffffff;
}

html[data-theme="kawaii"] .cfg-nav-dot {
  background: #f5a6c7;
}

html[data-theme="kawaii"] .cfg-nav-badge {
  background: #ffe4ef;
  color: #be185d;
}

html[data-theme="kawaii"] .cfg-nav-item.is-active .cfg-nav-badge {
  background: rgba(131, 24, 67, 0.42);
  color: #ffffff;
}

html[data-theme="kawaii"] .cfg-quick-tile,
html[data-theme="kawaii"] .cfg-quick-tile-accent {
  background: #fff8fb;
  border-color: #f8cde0;
  border-radius: 16px;
}

html[data-theme="kawaii"] .cfg-quick-tile strong {
  color: #be185d;
}

html[data-theme="kawaii"] .cfg-quick-tile:hover {
  background: #ffedf5;
  border-color: #f472b6;
}

html[data-theme="kawaii"] .cfg-seg-tabs {
  background: #ffeaf3;
  border-color: #f8c6da;
  border-radius: 999px;
}

html[data-theme="kawaii"] .cfg-seg-tab {
  border-radius: 999px;
  color: #8b4666;
}

html[data-theme="kawaii"] .cfg-seg-tab.is-active {
  background: linear-gradient(135deg, #e11d74 0%, #db2777 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(219, 39, 119, 0.3);
}

html[data-theme="kawaii"] .cfg-filter-bar {
  background: #fff7fa;
  border-color: #f8cde0;
  border-radius: 16px;
}

html[data-theme="kawaii"] .cfg-search-inline,
html[data-theme="kawaii"] .cfg-filter-field input,
html[data-theme="kawaii"] .cfg-filter-field select {
  border-color: #f5bed6;
  border-radius: 12px;
  background: #ffffff;
}

html[data-theme="kawaii"] .cfg-diff-item {
  border-color: #f8cde0;
  border-radius: 16px;
}

html[data-theme="kawaii"] .cfg-diff-item-head {
  background: #fff4f8;
  border-color: #f8d4e3;
}

html[data-theme="kawaii"] .cfg-diff-before {
  background: #fff2f4;
  border-color: #fbc5d1;
}

html[data-theme="kawaii"] .cfg-diff-after {
  background: #f0fdf7;
  border-color: #a7f3d0;
}
/* === E651U7_BETA8_THEMES_END === */
