:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #6f7d93;
  --line: #dfe6f2;
  --bg: #f3f6fb;
  --panel: #fff;
  --blue: #2f6bff;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #ef2d35;
  --violet: #5b6ee1;
  --navy: #111a2e;
  --navy2: #1f3f8f;
  --shadow: 0 12px 30px rgba(17, 24, 39, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: linear-gradient(180deg, #f6f8fc 0%, var(--bg) 260px, #f7f9fd 100%);
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.auth-locked {
  display: block;
}
body.auth-locked .sidebar,
body.auth-locked main {
  display: none;
}
body.auth-ready #loginScreen {
  display: none;
}
body.not-admin .adminOnly,
body.not-admin .restrictedOnly,
body.admin-user .userOnly {
  display: none !important;
}
body.person-user .sidebar > .dashboardNavGroup:not(.userOnly) {
  display: none !important;
}
body.person-user.my-dashboard-active .rechargeDashboardBlock {
  display: none;
}
body.person-user .targetOverviewBlock {
  display: none !important;
}
body.person-user .adminChangeView,
body.person-user .allChangeView,
body.admin-user .userChangeView,
body.team-user .userChangeView {
  display: none !important;
}
.loginScreen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #111a2e 0%, #1f3f8f 48%, #eff4ff 48%, #f8fbff 100%);
}
.loginCard {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 70px rgba(17, 24, 39, .2);
}
.loginCard h1 { margin: 0; font-size: 28px; }
.loginCard p { margin: 8px 0 22px; }
.loginCard label { margin-top: 14px; font-size: 13px; }
.loginCard input { min-height: 44px; font-size: 16px; }
.loginCard button {
  width: 100%;
  margin-top: 18px;
  min-height: 44px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #234fce);
}
.loginCard em {
  display: block;
  min-height: 20px;
  margin-top: 10px;
  color: var(--red);
  font-style: normal;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: linear-gradient(180deg, var(--navy), var(--navy2));
  color: #fff;
  box-shadow: 8px 0 28px rgba(17, 24, 39, .12);
}
.sidebar h1 { margin: 0 0 22px; font-size: 24px; letter-spacing: .2px; }
.navGroup { margin: 8px 0; }
.nav {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.76);
  text-align: left;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.navToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.navGroup .nav { margin: 0; }
.navChevron {
  color: rgba(255,255,255,.64);
  font-size: 16px;
  line-height: 1;
  transition: transform .18s ease;
}
.navGroup.open .navChevron { transform: rotate(180deg); }
.navSubmenu {
  display: none;
  margin: 6px 0 10px;
  padding: 4px 0 4px 16px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.navGroup.open .navSubmenu { display: grid; gap: 4px; }
.navPeriodTitle {
  margin: 8px 0 4px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  font-weight: 800;
}
.navSubitem {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.72);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.navSubitem:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}
.navSubitem.active {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.20);
  box-shadow: inset 3px 0 0 var(--blue);
}
.nav.active, .nav:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 4px 0 0 var(--blue);
}
main { padding: 22px 28px 34px; min-width: 0; }
.topbar {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(115deg, var(--navy), var(--navy2));
  color: #fff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .14);
}
.userBox {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.76);
  font-weight: 700;
}
.userBox button {
  min-height: 32px;
  padding: 5px 12px;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.16);
  color: #fff;
}
.topbar h2 { margin: 0; font-size: 28px; }
p { margin: 6px 0 0; color: var(--muted); }
.topbar p { color: rgba(255,255,255,.72); }
.filters, .block, .card, .tableTools, .pager, .uploadBox, .targetEditor {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) 100px 100px;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,.96);
}
body.annual-overview-active .topbar {
  padding-bottom: 28px;
}
body.annual-overview-active .filters {
  display: none;
}
body.targets-active .topbar {
  display: none;
}
label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
input, select, button {
  min-height: 36px;
  border: 1px solid #d6deec;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
}
button { cursor: pointer; font-weight: 700; }
#applyFilters, #exportCsv, #saveNewLabels, #saveNewLabelsInChanges, #downloadBaseHistory, #downloadUploadedHistory, #saveTarget { background: var(--blue); color: #fff; border: 0; }
.panel { display: none; }
.panel.active { display: block; }
.timebox, .metricGrid, .bulletinGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.timebox article, .metric, .bulletin {
  min-height: 98px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.timebox strong, .metric strong { display: block; font-size: 26px; line-height: 1.1; }
.timebox span, .metric span, .bulletin span { display: block; margin-top: 8px; color: var(--muted); }
.timebox article.countdownCard { padding: 13px 12px; }
.timebox strong.countdownGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(34px, 1fr));
  gap: 7px;
  font-size: inherit;
}
.countUnit {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 3px 7px;
  border-radius: 12px;
  background: #f6f8fc;
}
.countUnit b {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countUnit i {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.timebox .countdownCard > span {
  margin-top: 9px;
  font-weight: 800;
}
.metric em { display: block; margin-top: 4px; color: #43516a; font-style: normal; font-size: 12px; }
.progressMetric { min-height: 132px; }
.metricProgressBar {
  position: relative;
  height: 10px;
  margin-top: 12px;
  overflow: visible;
  border-radius: 999px;
  background: #eaf0f8;
}
.metricProgressBar .fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4aa3ff);
}
.biz-recharge .metricProgressBar .fill { background: linear-gradient(90deg, var(--green), #35d3a0); }
.biz-operate .metricProgressBar .fill { background: linear-gradient(90deg, var(--orange), #ffbd4a); }
.metricProgressBar .timeMark {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 2px rgba(15,23,42,.08);
}
.metricGap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.metricGap b {
  white-space: nowrap;
  font-size: 13px;
}
.block { padding: 16px; margin-bottom: 14px; }
.block > h3 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #edf1f7; }
.annualBlock {
  position: relative;
  overflow: hidden;
  border-color: var(--annual-line, rgba(47,107,255,.22));
  background:
    radial-gradient(circle at 14% 0%, var(--annual-glow, rgba(47,107,255,.13)), transparent 32%),
    linear-gradient(110deg, var(--annual-soft, rgba(47,107,255,.07)) 0%, rgba(255,255,255,.97) 42%, #fff 100%);
}
.annualBlock::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--annual-theme, var(--blue));
}
.annualBlock > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #142039;
}
.annualBlock > h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--annual-theme, var(--blue));
  box-shadow: 0 0 0 6px var(--annual-soft, rgba(47,107,255,.1));
}
.annualBlock .card {
  border-color: var(--annual-line, var(--line));
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));
}
.annualBlock .card h4 {
  padding-left: 10px;
  border-left: 4px solid var(--annual-theme, var(--blue));
  color: #142039;
}
.annualSummary {
  --annual-theme: var(--blue);
  --annual-soft: rgba(47,107,255,.08);
  --annual-glow: rgba(47,107,255,.14);
  --annual-line: rgba(47,107,255,.24);
}
.annualSpend {
  --annual-theme: #0891b2;
  --annual-soft: rgba(8,145,178,.08);
  --annual-glow: rgba(8,145,178,.13);
  --annual-line: rgba(8,145,178,.22);
}
.annualOrg {
  --annual-theme: var(--green);
  --annual-soft: rgba(22,163,74,.08);
  --annual-glow: rgba(22,163,74,.13);
  --annual-line: rgba(22,163,74,.22);
}
.annualCustomer {
  --annual-theme: var(--amber);
  --annual-soft: rgba(245,158,11,.1);
  --annual-glow: rgba(245,158,11,.15);
  --annual-line: rgba(245,158,11,.24);
}
.annualTrend {
  --annual-theme: #7c3aed;
  --annual-soft: rgba(124,58,237,.07);
  --annual-glow: rgba(124,58,237,.12);
  --annual-line: rgba(124,58,237,.2);
}
#annualOverview .card {
  min-height: 360px;
}
#annualOverview .metric {
  border-left-width: 5px;
}
#annualOverview .metric strong {
  font-size: 28px;
}
.annualHeatmapCard {
  overflow: auto;
}
.annualSalesHeatmapGrid {
  margin-top: 14px;
  grid-template-columns: minmax(0, 1fr);
}
.annualSalesHeatmapGrid .annualHeatmapCard {
  min-height: 520px;
}
.annualSelfShareGrid,
.annualIndustryGrid {
  grid-template-columns: minmax(0, 1fr);
}
.annualSelfShareGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.annualIndustryGrid {
  margin-top: 14px;
}
.annualSelfShareCard {
  min-height: 430px;
}
.annualSelfShareCard canvas {
  height: 340px !important;
}
@media (max-width: 1200px) {
  .annualSelfShareGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.annualLeaderLine {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #3157b7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.annualHeatmap {
  min-width: 860px;
  display: grid;
  gap: 6px;
}
.annualHeatmapRow {
  display: grid;
  gap: 6px;
  align-items: stretch;
}
.annualHeatmapHead span,
.annualHeatmapRow > strong,
.annualHeatTotal,
.annualHeatCell {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.annualHeatmapHead span {
  min-height: 34px;
  background: #f4f7fb;
  color: #66758f;
  font-size: 12px;
  font-weight: 900;
}
.annualHeatmapRow > strong {
  justify-content: flex-start;
  padding: 0 10px;
  background: #f8fbff;
  color: #17213a;
  font-size: 13px;
}
.annualHeatCell {
  position: relative;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(47,107,255,.14);
  background: rgba(47,107,255, calc(.08 + var(--heat) * .34));
  color: #15306d;
  font-size: 12px;
  font-weight: 900;
}
.annualHeatCell em {
  color: #516179;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.annualHeatCell.top {
  border-color: rgba(245,158,11,.45);
  background: linear-gradient(135deg, rgba(245,158,11,.26), rgba(47,107,255, calc(.08 + var(--heat) * .24)));
  color: #8a4b00;
}
.annualHeatCell.top1 {
  border-color: rgba(245,158,11,.7);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.18);
}
.annualHeatCell.top2,
.annualHeatCell.top3 {
  border-color: rgba(245,158,11,.46);
}
.annualHeatCell.bottom {
  border-color: rgba(100,116,139,.32);
  background: linear-gradient(135deg, rgba(241,245,249,.96), rgba(148,163,184, calc(.08 + var(--heat) * .18)));
  color: #475569;
}
.annualHeatCell.inactive {
  opacity: .48;
  background: #f3f6fb;
  border-style: dashed;
}
.annualHeatCell i {
  position: absolute;
  top: 4px;
  right: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}
.annualHeatCell.bottom i {
  background: #64748b;
}
.annualHeatTotal {
  background: #eef6ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.annualIndustryCard {
  overflow: auto;
}
.annualIndustryChartCard {
  min-height: 360px;
}
.annualIndustryChartCard canvas {
  min-height: 300px;
}
.annualIndustryCard h4 {
  position: sticky;
  left: 0;
}
.annualIndustryRankMatrix {
  min-width: 980px;
  display: grid;
  gap: 8px;
}
.annualIndustryRankRow {
  display: grid;
  gap: 8px;
  align-items: center;
}
.annualIndustryRankHead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.annualIndustryRankHead span:first-child {
  text-align: left;
}
.annualIndustryRankRow strong {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d2a44;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
}
.annualIndustryRankRow strong i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}
.annualIndustryRankCell {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid #e5edf8;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
}
.annualIndustryRankCell b {
  color: #17213a;
  font-size: 15px;
  font-weight: 900;
}
.annualIndustryRankCell em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.annualIndustryRankCell i {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.annualIndustryRankCell.up {
  border-color: rgba(22, 163, 74, .24);
  background: rgba(22, 163, 74, .08);
}
.annualIndustryRankCell.up i {
  color: #15803d;
}
.annualIndustryRankCell.down {
  border-color: rgba(239, 45, 53, .22);
  background: rgba(239, 45, 53, .07);
}
.annualIndustryRankCell.down i {
  color: #dc2626;
}
.annualIndustryRankCell.flat i,
.annualIndustryRankCell.outsideTop {
  color: var(--muted);
}
.shareTrend {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.shareTrend.up {
  color: #16a34a;
  background: #eaf8ef;
}
.shareTrend.down {
  color: #ef2d35;
  background: #fff0f0;
}
.shareTrend.flat {
  color: #718096;
  background: #f1f5f9;
}
.dashBlock {
  position: relative;
  overflow: hidden;
  border-color: var(--theme-line, var(--line));
  background:
    linear-gradient(90deg, var(--theme-soft, rgba(47,107,255,.06)) 0%, rgba(255,255,255,.96) 34%, #fff 100%);
}
.dashBlock::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--theme, var(--blue));
}
.dashBlock > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #17213a;
}
.dashBlock > h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme, var(--blue));
  box-shadow: 0 0 0 5px var(--theme-soft, rgba(47,107,255,.1));
}
.dashBlock .card {
  border-color: var(--theme-line, var(--line));
  background: rgba(255,255,255,.94);
}
.dashBlock .card h4 {
  color: #17213a;
  padding-left: 10px;
  border-left: 4px solid var(--theme, var(--blue));
}
.dashSummary { --theme: var(--blue); --theme-soft: rgba(47,107,255,.08); --theme-line: rgba(47,107,255,.22); }
.dashYesterday { --theme: var(--red); --theme-soft: rgba(239,45,53,.07); --theme-line: rgba(239,45,53,.2); }
.dashDaily { --theme: #0891b2; --theme-soft: rgba(8,145,178,.08); --theme-line: rgba(8,145,178,.2); }
.dashWeekly { --theme: #7c3aed; --theme-soft: rgba(124,58,237,.07); --theme-line: rgba(124,58,237,.2); }
.dashOperate { --theme: var(--amber); --theme-soft: rgba(245,158,11,.1); --theme-line: rgba(245,158,11,.24); }
.dashRecharge { --theme: var(--green); --theme-soft: rgba(22,163,74,.08); --theme-line: rgba(22,163,74,.22); }
.dashTarget { --theme: #2563eb; --theme-soft: rgba(37,99,235,.07); --theme-line: rgba(37,99,235,.2); }
.dashIndustry { --theme: #0d9488; --theme-soft: rgba(13,148,136,.08); --theme-line: rgba(13,148,136,.2); }
.dashPort { --theme: #475569; --theme-soft: rgba(71,85,105,.08); --theme-line: rgba(71,85,105,.2); }
.block > h3 .inlineBtn {
  float: right;
  min-height: 30px;
  padding: 5px 12px;
  font-size: 13px;
}
.block > h3 small {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.subBlock {
  margin-top: 14px;
}
.subBlock h4 {
  margin: 0 0 10px;
  color: #1d2a44;
  font-size: 16px;
}
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customerFirstGrid { margin-top: 14px; }
.card { padding: 16px; min-height: 330px; }
.card.wide { grid-column: 1 / -1; }
.card h4 { margin: 0 0 10px; font-size: 16px; }
canvas { width: 100% !important; height: 280px !important; }
.miniChartGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}
.miniChart {
  min-height: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.miniChart h5 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink);
}
.miniChart canvas {
  height: 205px !important;
}
.biz-local, .biz-recharge, .biz-operate, .biz-new {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.biz-local { border-left: 5px solid var(--blue); }
.biz-recharge { border-left: 5px solid var(--green); }
.biz-operate { border-left: 5px solid var(--amber); }
.biz-new { border-left: 5px solid var(--red); }
.biz-local strong { color: var(--blue); }
.biz-recharge strong { color: var(--green); }
.biz-operate strong { color: var(--amber); }
.biz-new strong { color: var(--red); }
.publicBoard {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5fb 100%);
  box-shadow: var(--shadow);
}
.publicTop {
  display: grid;
  grid-template-columns: 1.1fr .9fr 2.2fr;
  gap: 14px;
  align-items: stretch;
}
.publicProgress, .publicCountdown, .publicTrend, .publicGoal, .publicRank {
  border: 1px solid #e2e9f5;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
}
.publicProgress, .publicCountdown, .publicGoal {
  padding: 20px 22px;
}
.publicProgress h3, .publicCountdown h3, .publicTrend h3, .publicGoal h3, .publicRank h3 {
  margin: 0 0 14px;
  color: #1d2a44;
  font-size: 16px;
}
.publicProgress h3, .publicCountdown h3, .publicCountdown strong {
  color: #ef5b63;
}
.publicProgress strong, .publicCountdown strong, .publicGoal strong {
  display: block;
  font-size: 34px;
  line-height: 1.05;
  text-align: center;
}
.publicProgress p, .publicGoal p {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  color: #43516a;
  font-weight: 700;
}
.publicProgress p b { color: #ef5b63; }
.publicCountdown {
  display: grid;
  place-items: center;
  text-align: center;
}
.publicCountdown strong {
  width: 74px;
  padding: 8px 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(239,91,99,.08);
}
.publicCountdown span {
  color: var(--muted);
  font-weight: 700;
}
.publicTrack {
  height: 14px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf6;
}
.publicTrack i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4aa3ff);
}
.publicProgress .publicTrack i { background: linear-gradient(90deg, #ef2d35, #ff7a7f); }
.publicGoal.green .publicTrack i { background: linear-gradient(90deg, var(--green), #2fd19c); }
.publicGoalGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.publicGoal.blue {
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
  border-color: #c8d8ff;
}
.publicGoal.green {
  background: linear-gradient(135deg, #ecfbf6, #f8fffd);
  border-color: #bfeee0;
}
.publicGoal.blue h3, .publicGoal.blue strong, .publicGoal.blue p b { color: var(--blue); }
.publicGoal.green h3, .publicGoal.green strong, .publicGoal.green p b { color: var(--green); }
.publicTrend, .publicRank {
  padding: 16px;
}
.publicTrend canvas { height: 280px !important; }
.publicRankGrid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 14px;
  margin-top: 14px;
}
.publicRank {
  min-height: 330px;
}
.publicRank canvas {
  height: 280px !important;
}
.publicRank.purple { background: linear-gradient(135deg, #f5efff, #fbf9ff); }
.publicRank.blue { background: linear-gradient(135deg, #f1f6ff, #fbfdff); }
.publicRank.amber { background: linear-gradient(135deg, #fff7e8, #fffdf8); }
.reportHero {
  padding: 22px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(115deg, var(--navy), var(--navy2));
  box-shadow: 0 16px 34px rgba(17, 24, 39, .14);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.reportHero h3 { margin: 0; font-size: 26px; }
.reportHero p { color: rgba(255,255,255,.86); }
.reportHero strong {
  font-size: 36px;
  line-height: 1;
  white-space: nowrap;
}
.reportGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reportCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reportCard h3 { margin: 0; padding: 14px 18px; color: var(--blue); background: #f1f5ff; }
.reportCard div { padding: 16px 18px; font-size: 18px; }
.reportCard p { color: var(--ink); margin: 8px 0; }
.reportCard h4 { margin: 0 0 8px; font-size: 16px; }
.reportCard hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.dailySection {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.dailySection h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.dailyBizGrid,
.dailyTeamGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dailyTeamGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}
.dailyBizCard {
  padding: 16px;
  border: 1px solid #dbe5f4;
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}
.dailyBizCard.recharge { border-left-color: var(--green); background: linear-gradient(135deg, #ffffff, #f3fcf7); }
.dailyBizCard.operate { border-left-color: var(--amber); background: linear-gradient(135deg, #ffffff, #fff9eb); }
.dailyBizCard > span {
  color: var(--muted);
  font-weight: 800;
}
.dailyBizCard > strong {
  display: block;
  margin: 8px 0;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.1;
}
.dailyBizCard.recharge > strong { color: var(--green); }
.dailyBizCard.operate > strong { color: var(--amber); }
.dailyBizCard > em {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
}
.dailyMeta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.dailyMeta b { color: var(--ink); }
.dailyMeta em { font-style: normal; }
.dailyDuoBar {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.dailyDuoBar p {
  display: grid;
  grid-template-columns: 42px 1fr 52px;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.dailyDuoBar i {
  height: 9px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
}
.dailyDuoBar i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #59a5ff);
}
.dailyDuoBar p:nth-child(2) i b { background: #95a0b4; }
.dailyDuoBar strong { text-align: right; color: var(--ink); }
.dailyTwoCol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dailyPanel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfdff;
}
.dailyPanel h4 {
  margin: 0 0 10px;
  font-size: 16px;
}
.dailyNewList {
  display: grid;
  gap: 8px;
}
.dailyNewList p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 72px;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef2f8;
}
.dailyNewList b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dailyNewList span,
.dailyNewList em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.dailyRankList {
  display: grid;
  gap: 9px;
}
.dailyRankList p {
  display: grid;
  grid-template-columns: 54px minmax(120px, 1fr) minmax(120px, 220px) 70px;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.dailyRankList span {
  width: 48px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.dailyRankList span.top1,
.topBadge.top1 { background: linear-gradient(135deg, #ffb020, #ff7a18); }
.dailyRankList span.top2,
.topBadge.top2 { background: linear-gradient(135deg, #7c8aa0, #aab6c7); }
.dailyRankList span.top3,
.topBadge.top3 { background: linear-gradient(135deg, #c17a36, #f0a45d); }
.dailyRankList b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dailyRankList i {
  height: 10px;
  border-radius: 999px;
  background: #edf2fb;
  overflow: hidden;
}
.dailyRankList i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #58a8ff);
}
.dailyRankList strong {
  text-align: right;
}
.empty.small {
  padding: 14px;
  font-size: 13px;
}
.progressCompare {
  display: grid;
  gap: 10px;
  margin: 14px 0 4px;
}
.progressRow {
  display: grid;
  grid-template-columns: 100px 54px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.progressRow strong {
  text-align: right;
}
.progressTrack {
  height: 10px;
  background: #edf1f8;
  border-radius: 999px;
  overflow: hidden;
}
.progressTrack i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}
.progressRow.time .progressTrack i { background: #8a97ad; }
.progressRow.ahead .progressTrack i { background: var(--green); }
.progressRow.behind .progressTrack i { background: var(--red); }
.good { color: #0f9f6e !important; font-weight: 700; }
.bad { color: #d64545 !important; font-weight: 700; }
.teamCompare {
  display: grid;
  gap: 8px;
}
.teamLine {
  display: grid;
  grid-template-columns: 72px repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
}
.teamLine span {
  color: var(--muted);
  font-weight: 700;
}
.tableTools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.tableTools input { flex: 1; }
.tableWrap {
  max-height: 640px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.tableWrap.compact { max-height: 430px; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #edf1f7; text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; background: #f6f8fc; cursor: pointer; color: #334155; }
.num { text-align: right; }
.projectSuggest {
  width: 220px;
  min-height: 34px;
}
.pager { display: flex; justify-content: center; gap: 18px; align-items: center; margin-top: 12px; padding: 10px; }
.rankList { display: grid; gap: 8px; }
.rankRow { display: grid; grid-template-columns: 1fr 70px 62px; gap: 8px; align-items: center; }
.rankRow em { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-style: normal; }
.topBadge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 44px;
  margin: 0 8px 0 0 !important;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 10px !important;
  font-style: normal;
  font-weight: 900;
  vertical-align: 1px;
}
.bar { height: 10px; border-radius: 999px; background: #edf1f8; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #58a8ff); }
.uploadBox {
  display: grid;
  grid-template-columns: 1fr 280px 140px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
}
.cloudTools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 120px 120px;
  gap: 10px;
  align-items: end;
}
.cloudTools button {
  min-height: 38px;
}
#saveGithubToken, #pullCloudData, #publishCloudData {
  background: var(--blue);
  color: #fff;
  border: 0;
}
#pullCloudData {
  background: var(--green);
}
#publishCloudData {
  background: var(--amber);
}
.cloudStatus {
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #f5f8ff;
  color: #44546d;
  font-weight: 700;
}
.cloudStatus.good {
  border-color: rgba(22, 163, 74, .24);
  background: #f0fdf4;
  color: #166534;
}
.cloudStatus.bad {
  border-color: rgba(239, 45, 53, .24);
  background: #fff5f5;
  color: #b91c1c;
}
.cloudStatus.warn {
  border-color: rgba(245, 158, 11, .3);
  background: #fffbeb;
  color: #92400e;
}
.targetEditor {
  display: grid;
  grid-template-columns: minmax(160px, 220px);
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
}
.targetEditor label:not(:first-child),
.targetEditor #saveTarget {
  display: none;
}
.targetManagerBlock > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.targetTableWrap.tableWrap.compact { max-height: 560px; }
.targetSectionRow td {
  position: sticky;
  top: 37px;
  z-index: 1;
  background: #eef5ff;
  color: #1d4ed8;
  font-weight: 800;
}
.targetSectionRow span {
  margin-left: 12px;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}
.targetInputCell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.targetInlineInput {
  width: 96px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cdd8ea;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: right;
}
.targetInlineInput.small { width: 72px; }
.targetInlineInput:focus {
  outline: 2px solid rgba(47, 107, 255, .18);
  border-color: var(--blue);
}
.targetRowSave {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #cdd8ea;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}
.targetRowSave:hover {
  border-color: var(--blue);
  background: #f3f7ff;
}
.dataActions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lookupTools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 96px 96px;
  gap: 10px;
  margin-bottom: 12px;
}
.lookupSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
  min-height: 32px;
  align-items: center;
}
.lookupSummary span {
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}
.lookupSummary b {
  color: var(--blue);
}
.lookupResult {
  margin-bottom: 12px;
  max-height: 260px;
}
.summaryLine {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.summaryLine b { color: var(--ink); }
.shareRows {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  max-height: 190px;
  overflow: auto;
}
.shareRow {
  display: grid;
  grid-template-columns: 76px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #edf2f8;
  border-radius: 8px;
  background: #fbfdff;
  font-size: 12px;
}
.shareRow b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shareRow span {
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
  text-align: center;
}
.shareRow .direct {
  color: var(--blue);
  background: #eef4ff;
}
.shareRow .channel {
  color: var(--green);
  background: #edfdf5;
}
.changeMetricGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.changeMetric {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.changeMetric.green { border-left-color: var(--green); }
.changeMetric.red { border-left-color: var(--red); }
.changeMetric.amber { border-left-color: var(--amber); }
.changeMetric strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}
.changeMetric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}
.changeMetric em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.changeList {
  display: grid;
  gap: 9px;
  max-height: 380px;
  overflow: auto;
}
.changeList.compact {
  max-height: 320px;
}
.changeItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 190px);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  background: #fbfdff;
}
.changeItem.lost {
  background: #fffafa;
}
.changeItem p {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.changeItem b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.changeItem em,
.changeItem small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.tag.direct { color: var(--blue); background: #edf4ff; }
.tag.channel { color: var(--green); background: #edfdf5; }
.tag.new { color: var(--green); background: #e9fbf2; }
.tag.lost { color: var(--red); background: #fff0f0; }
.changeValue {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.changeValue i {
  height: 8px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}
.changeValue u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4aa3ff);
}
.changeItem.lost .changeValue u {
  background: linear-gradient(90deg, var(--red), #fb7185);
}
.changeValue strong {
  font-size: 13px;
  white-space: nowrap;
}
.grade { display: inline-block; min-width: 28px; text-align: center; padding: 2px 6px; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 700; }
.grade.SS { background: var(--red); }
.grade.S { background: var(--amber); }
.grade.A { background: var(--blue); }
.grade.B { background: var(--green); }
.grade.C { background: #64748b; }
.customerGradeGrid { margin-top: 16px; }
.gradeRows {
  max-height: 170px;
  overflow: auto;
  margin-top: 10px;
  padding-right: 6px;
}
.gradeRow {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.gradeRow > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gradeRow > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 6px;
}
.gradeRow span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: help;
  transition: background .15s ease, transform .15s ease;
}
.gradeRow span:hover {
  background: #eaf1ff;
  transform: translateY(-1px);
}
.gradeRow span em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}
.empty { color: var(--muted); padding: 28px; text-align: center; }
@media (max-width: 1100px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; gap: 8px; overflow-x: auto; }
  .sidebar h1 { display: none; }
  .nav { width: auto; white-space: nowrap; }
  .filters, .timebox, .metricGrid, .bulletinGrid, .grid.two, .grid.three, .reportGrid, .dailyBizGrid, .dailyTeamGrid, .dailyTwoCol, .uploadBox, .targetEditor, .targetSummary, .lookupTools, .cloudTools, .changeMetricGrid { grid-template-columns: 1fr 1fr; }
  .publicTop, .publicGoalGrid, .publicRankGrid { grid-template-columns: 1fr; }
  .miniChartGrid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 680px) {
  main { padding: 16px; }
  .filters, .timebox, .metricGrid, .bulletinGrid, .grid.two, .grid.three, .reportGrid, .dailyBizGrid, .dailyTeamGrid, .dailyTwoCol, .uploadBox, .targetEditor, .targetSummary, .lookupTools, .cloudTools { grid-template-columns: 1fr; }
  .reportHero { align-items: flex-start; flex-direction: column; }
  .publicBoard { padding: 12px; }
  .miniChartGrid { grid-template-columns: 1fr; }
}

.loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg, #f3f6fb);
  gap: 20px;
}
.loadingSpinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--line, #dfe6f2);
  border-top-color: var(--blue, #2f6bff);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loadingScreen p {
  color: var(--muted, #6f7d93);
  font-size: 14px;
}
