﻿:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --panel: #eef3f8;
  --ink: #162033;
  --muted: #526075;
  --line: #d9e1ec;
  --navy: #12324d;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 16px 42px rgba(20, 35, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

button,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(920px, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #10273d;
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #19a7ce;
  color: #fff;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
}

.brand-block p,
.source-note,
.product-nav button span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.product-nav {
  display: grid;
  gap: 8px;
}

.nav-group {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.nav-group summary {
  padding: 10px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary strong,
.nav-group summary span {
  display: block;
}

.nav-group summary strong {
  font-size: 14px;
}

.nav-group summary span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.nav-group-items,
.nav-other-items {
  display: grid;
  gap: 6px;
}

.nav-group-items {
  padding: 7px;
  max-height: 360px;
  overflow: auto;
}

.nav-group-items button {
  height: 40px;
}

.product-nav button {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.product-nav button.active {
  background: #ffffff;
  color: var(--navy);
}

.product-nav strong {
  display: block;
  font-size: 14px;
}

.source-note {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.source-note strong {
  color: #fff;
  font-size: 13px;
}

.dashboard {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h2 {
  margin-top: 6px;
  font-size: 28px;
}

.toolbar {
  display: flex;
  gap: 10px;
}

.comparison-controls {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.comparison-controls.active {
  display: grid;
}

/* 仅“4个云市场”独立页使用：日期、快捷范围、配色和更新动作在同一阅读路径内。 */
.comparison-controls.four-cloud-trend-controls {
  grid-template-columns: repeat(5, minmax(132px, 1fr));
}

.four-cloud-trend-color-control select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

/* 这项选择器只服务于 4 个云市场独立趋势页；模块切换前后的 hidden 状态也必须
   直接从布局中移除，不能被通用 .comparison-controls label 规则重新显示。 */
.four-cloud-trend-color-control[hidden],
.four-cloud-trend-color-control[aria-hidden="true"] {
  display: none !important;
}

/* 四云市场把强调区间独立成第二行，避免挤占日期、快捷范围和配色的主操作行。
   这组控件只保存浏览器阅读偏好，模块切换时必须完全从普通页面布局中移除。 */
.four-cloud-trend-highlight-controls {
  margin-top: -2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.four-cloud-trend-highlight-controls[hidden],
.four-cloud-trend-highlight-controls[aria-hidden="true"] {
  display: none !important;
}

.four-cloud-trend-highlight-details {
  padding: 0;
}

.four-cloud-trend-highlight-details > summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.four-cloud-trend-highlight-details > summary::-webkit-details-marker {
  display: none;
}

.four-cloud-trend-highlight-details > summary::before {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #557086;
  border-bottom: 1.5px solid #557086;
  transform: rotate(45deg) translateY(-2px);
  content: "";
}

.four-cloud-trend-highlight-details:not([open]) > summary::before {
  transform: rotate(-45deg) translate(-2px, 1px);
}

.four-cloud-trend-highlight-details > summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.four-cloud-trend-highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 12px;
  padding: 2px 14px 14px;
  border-top: 1px solid #edf2f6;
}

.four-cloud-trend-highlight-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.four-cloud-trend-highlight-grid input {
  height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.four-cloud-trend-highlight-grid button {
  align-self: end;
  min-height: 38px;
}

.comparison-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.comparison-controls input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
}

.comparison-controls button {
  align-self: end;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.compare-series-picker {
  position: relative;
  align-self: end;
}

.compare-series-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.compare-series-picker summary::-webkit-details-marker {
  display: none;
}

.compare-series-picker summary::after {
  content: "⌄";
  margin-left: 12px;
}

.compare-series-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 180px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-series-menu label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}

.compare-series-menu label:hover {
  background: #f1f5f9;
}

.comparison-controls .compare-series-menu input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--navy);
}

.icon-button,
.text-button,
select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.icon-button {
  width: 38px;
  cursor: pointer;
  font-size: 18px;
}

.text-button {
  min-width: 76px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

select {
  padding: 0 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.1;
}

.kpi em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.period-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.period-card header {
  padding: 12px 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.period-card dl {
  margin: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  font-size: 13px;
}

.monthly-stats-panel {
  display: none;
}

.monthly-stats-panel.active {
  display: block;
}

.monthly-stats-panel .panel-header {
  align-items: flex-end;
}

.monthly-stats-panel .panel-header > div:first-child {
  display: grid;
  gap: 4px;
}

.monthly-stats-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.monthly-stats-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.monthly-stats-controls input,
.monthly-stats-controls select,
.monthly-stats-controls button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.monthly-stats-controls select {
  min-width: 104px;
}

.monthly-stats-controls button {
  min-width: 88px;
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
}

.rank-table {
  width: 100%;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 26px;
  border-radius: 999px;
  background: #e8f7fb;
  color: #047891;
  font-weight: 700;
}

.rank-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: auto;
  overflow: auto;
}

.rank-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.rank-card strong {
  font-size: 15px;
}

.rank-card span {
  color: var(--muted);
  font-size: 12px;
}

.daily-change {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef3f8;
  color: #617184;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.daily-change.is-up {
  background: #e8f7f0;
  color: #087a50;
}

.daily-change.is-down {
  background: #fff0f0;
  color: #bd3030;
}

.daily-change.is-flat {
  background: #eef3f8;
  color: #526579;
}

.daily-change.is-missing {
  background: #f5f7fa;
  color: #7b8794;
  white-space: normal;
}

.factor-guide {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.factor-guide table {
  font-size: 13px;
}

.factor-guide th,
.factor-guide td {
  height: 28px;
  border-color: #1f2937;
  white-space: normal;
  text-align: center;
  font-weight: 500;
  background: #f8fbff;
}

.factor-guide th {
  font-weight: 800;
}

.factor-guide td:first-child {
  width: 180px;
  font-weight: 700;
  background: #f8fbff;
}

.factor-guide .factor-highlight {
  background: #f1f7fd;
}

.factor-guide .factor-json-field {
  font-weight: 800;
}

.factor-json-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid #b8d4e8;
  border-radius: 5px;
  color: #2d6f96;
  background: #edf6fc;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
}

.factor-guide p {
  margin: 0;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.period-card dt {
  color: var(--muted);
}

.period-card dd {
  margin: 0;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.content-grid.with-side {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  min-height: 52px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-header h3 {
  font-size: 16px;
  flex: 0 0 auto;
}

.panel-header span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.chart-wrap {
  min-height: 330px;
  padding: 12px 16px 16px;
}

.summary-strip {
  overflow: hidden;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}

#summaryPanel .summary-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#summaryPanel .market-stats-summary {
  grid-column: 1 / -1;
}

#summaryPanel .all-cloud-order-summary {
  grid-column: 1 / -1;
}

.all-cloud-order-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c7dfec;
  border-left: 4px solid #1679aa;
  border-radius: 10px;
  background:
    linear-gradient(104deg, rgba(234, 247, 252, 0.96), rgba(255, 255, 255, 0.98) 54%, rgba(255, 249, 239, 0.92));
  box-shadow: 0 8px 20px rgba(26, 87, 122, 0.07);
}

.all-cloud-order-summary.is-unavailable {
  border-left-color: #9aaabd;
  background: #f8fafc;
}

.all-cloud-summary-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 2.14fr);
  align-items: end;
  gap: 18px;
}

.all-cloud-summary-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dff2fb;
  color: #0d638e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.all-cloud-summary-heading h4 {
  margin: 5px 0 3px;
  color: #12344e;
  font-size: 18px;
}

.all-cloud-summary-heading p,
.all-cloud-summary-footnote {
  margin: 0;
  color: #5b6f80;
  font-size: 12px;
  line-height: 1.55;
}

.all-cloud-summary-heading .all-cloud-summary-scope {
  max-width: 920px;
  justify-self: end;
  text-align: right;
}

.all-cloud-summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  margin: 0;
}

.all-cloud-summary-metric {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #d8e6ee;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
}

.all-cloud-summary-metric dt {
  color: #607487;
  font-size: 12px;
  font-weight: 700;
}

.all-cloud-summary-metric dd {
  margin: 0;
  color: #12344e;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.all-cloud-summary-metric small {
  color: #6d7f8f;
  font-size: 10px;
  line-height: 1.4;
}

.all-cloud-summary-footnote {
  padding-top: 10px;
  border-top: 1px dashed #cbdde8;
}

/* 四云市场为独立侧栏模块；总览和同比分别使用各自的日期控件。 */
.four-cloud-surface {
  display: block;
  min-width: 0;
}

.four-cloud-surface[hidden] {
  display: none !important;
}

.four-cloud-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.four-cloud-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #c7dfec;
  border-left: 4px solid #2188be;
  border-radius: 9px;
  background: linear-gradient(104deg, #eef8fd, #fff 64%, #fffaf3);
  box-shadow: 0 8px 20px rgba(26, 87, 122, 0.06);
}

.four-cloud-page-header > div {
  min-width: 0;
}

.four-cloud-page-header h2 {
  margin: 4px 0 5px;
  color: #153951;
  font-size: 22px;
}

.four-cloud-page-header p,
.four-cloud-page-header > span {
  margin: 0;
  color: #607789;
  font-size: 12px;
  line-height: 1.55;
}

.four-cloud-page-header > span {
  max-width: 46%;
  text-align: right;
}

.four-cloud-page-kicker {
  color: #167eaa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.four-cloud-report-link {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid #82bdd7;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #17678c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.four-cloud-report-link:hover {
  border-color: #2188be;
  background: #eff9fd;
}

.four-cloud-unavailable {
  padding: 18px;
  color: #687d8e;
}

.four-cloud-unavailable > p {
  margin: 4px 0 0;
}

.four-cloud-yoy-panel {
  overflow: hidden;
  border-color: #c7dfec;
}

.four-cloud-yoy-table-wrap {
  overflow: auto;
}

.four-cloud-yoy-table {
  width: 100%;
  min-width: 770px;
  border-collapse: collapse;
  font-size: 12px;
}

.four-cloud-yoy-table th,
.four-cloud-yoy-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #dbe7ef;
  text-align: right;
  vertical-align: middle;
}

.four-cloud-yoy-table thead th {
  color: #173a55;
  background: #edf6fb;
  font-size: 11px;
  font-weight: 800;
}

.four-cloud-yoy-table th:first-child,
.four-cloud-yoy-table tbody th {
  text-align: left;
}

.four-cloud-yoy-table tbody th {
  color: #26465d;
  font-weight: 800;
}

.four-cloud-yoy-table tbody tr:last-child > * {
  border-bottom: 0;
}

.four-cloud-yoy-coverage {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-top: 1px dashed #cbdde8;
  background: #fbfdff;
  color: #5d7283;
  font-size: 11px;
  line-height: 1.6;
}

.four-cloud-yoy-coverage p {
  margin: 0;
}

/* 四云市场按所选日期逐月展示；蓝橙配色只改变这组月度数据的视觉标记。 */
.all-cloud-trend-panel {
  --all-cloud-trend-current: #0082ff;
  --all-cloud-trend-current-soft: rgba(0, 130, 255, 0.12);
  overflow: hidden;
  border-color: #c7dfec;
  background: linear-gradient(114deg, #f4fbff 0%, #fff 44%, #fffaf4 100%);
}

.all-cloud-trend-panel[data-chart-color="orange"] {
  --all-cloud-trend-current: #e19000;
  --all-cloud-trend-current-soft: rgba(225, 144, 0, 0.14);
}

.all-cloud-trend-panel[hidden] {
  display: none !important;
}

.all-cloud-trend-panel-header {
  align-items: flex-end;
  border-bottom-color: #d5e5ef;
}

.all-cloud-trend-panel-header > div {
  display: grid;
  gap: 4px;
}

.all-cloud-trend-panel-header > span {
  max-width: 52%;
  line-height: 1.5;
}

.all-cloud-trend-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 10px;
}

.all-cloud-trend-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5e4ee;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
}

.all-cloud-trend-card.is-wide {
  grid-column: 1 / -1;
}

.all-cloud-trend-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e0ebf2;
}

.all-cloud-trend-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.all-cloud-trend-header-actions .chart-download-button {
  position: static;
  flex: 0 0 auto;
  min-width: 72px;
  height: 26px;
}

.all-cloud-trend-card h5 {
  margin: 0;
  color: #153951;
  font-size: 13px;
}

.all-cloud-trend-card header > div:first-child > span {
  display: block;
  margin: 4px 0 0;
  color: #64798b;
  font-size: 12px;
  line-height: 1.45;
}

.all-cloud-trend-plot {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 2px;
  scrollbar-color: #b8cbd8 transparent;
  scrollbar-width: thin;
}

.all-cloud-trend-plot:focus-visible {
  outline: 2px solid #7fc6e7;
  outline-offset: -2px;
}

.all-cloud-trend-svg {
  display: block;
  width: 100%;
  min-width: var(--all-cloud-trend-min-width, 620px);
  height: 268px;
  overflow: visible;
}

.all-cloud-trend-grid-line {
  stroke: #dce9f1;
  stroke-dasharray: 3 5;
}

.all-cloud-trend-axis {
  stroke: #b9cfdd;
}

.all-cloud-trend-axis-label,
.all-cloud-trend-month-label {
  fill: #73889a;
  font-family: "Segoe UI Variable", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.all-cloud-trend-line {
  fill: none;
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
}

.all-cloud-trend-line.is-current {
  stroke: var(--all-cloud-trend-current);
}

.all-cloud-trend-point {
  fill: #fff;
  stroke-width: 2.2;
}

.all-cloud-trend-point.is-current {
  stroke: var(--all-cloud-trend-current);
}

.all-cloud-trend-highlight {
  fill: var(--all-cloud-trend-current);
  opacity: 0.08;
}

.all-cloud-trend-highlight.is-range-2 {
  opacity: 0.14;
}

.all-cloud-trend-highlight-guide {
  stroke: var(--all-cloud-trend-current);
  stroke-width: 1.1;
  stroke-dasharray: 4 4;
  opacity: 0.74;
}

.all-cloud-trend-value-label {
  fill: #102f47;
  font-family: "Segoe UI Variable", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
  stroke: #fff;
  stroke-width: 3px;
  paint-order: stroke;
}

.all-cloud-trend-value-label.is-current {
  fill: var(--all-cloud-trend-current);
}

.all-cloud-trend-value-callout rect,
.all-cloud-trend-value-callout path {
  stroke: var(--all-cloud-trend-current);
  stroke-width: 1.35px;
}

.all-cloud-trend-value-callout text {
  fill: var(--all-cloud-trend-current);
  font-family: "Segoe UI Variable", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.all-cloud-trend-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  color: #6d7f8f;
  font-size: 12px;
  text-align: center;
}

.all-cloud-trend-footnote {
  margin: 0 16px 14px;
  padding-top: 10px;
  border-top: 1px dashed #cbdde8;
  color: #5b7081;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .comparison-controls.four-cloud-trend-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .four-cloud-trend-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .four-cloud-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .four-cloud-page-header > span {
    max-width: none;
    text-align: left;
  }

  .all-cloud-trend-charts {
    grid-template-columns: minmax(0, 1fr);
  }

  .all-cloud-trend-card.is-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .comparison-controls.four-cloud-trend-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .four-cloud-trend-highlight-details > summary {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 11px 14px 11px 28px;
  }

  .four-cloud-trend-highlight-details > summary::before {
    position: absolute;
    top: 18px;
    left: 14px;
    margin: 0;
  }

  .four-cloud-trend-highlight-details > summary span {
    padding-left: 0;
  }

  .four-cloud-trend-highlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .all-cloud-trend-header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
  }

  .four-cloud-page {
    gap: 12px;
  }

  .four-cloud-page-header {
    gap: 10px;
    padding: 14px;
  }

  .four-cloud-page-header h2 {
    font-size: 19px;
  }

  .four-cloud-report-link {
    width: 100%;
  }

  .four-cloud-yoy-table {
    min-width: 680px;
    font-size: 11px;
  }

  .four-cloud-yoy-table th,
  .four-cloud-yoy-table td {
    padding: 9px 10px;
  }

  .all-cloud-summary-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .all-cloud-summary-heading .all-cloud-summary-scope {
    justify-self: start;
    text-align: left;
  }

  .all-cloud-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .all-cloud-trend-panel-header {
    align-items: flex-start;
  }

  .all-cloud-trend-panel-header > span {
    max-width: none;
    text-align: left;
  }

  .all-cloud-trend-charts {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .all-cloud-trend-svg {
    height: 228px;
  }

  .all-cloud-trend-footnote {
    margin: 0 10px 10px;
  }
}

.summary-item {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.summary-item span {
  color: var(--muted);
  font-size: 12px;
}

.summary-item strong {
  font-size: 18px;
}

.summary-item .summary-note {
  color: #52667a;
  font-size: 11px;
  line-height: 1.45;
}

.compare-summary-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.compare-summary-card dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.metric-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.metric-card header {
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  position: relative;
  padding-right: 112px;
}

.metric-card header strong {
  font-size: 14px;
}

.metric-card header span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card svg {
  height: 230px;
  padding: 8px;
}

.monthly-stats-panel .chart-wrap {
  padding: 16px;
}

.monthly-stats-panel .metric-charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.monthly-metric-card {
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 32, 56, 0.06);
}

.monthly-metric-card header {
  min-height: 72px;
  padding: 14px 124px 12px 16px;
  background: #fff;
}

.monthly-metric-card header strong {
  color: #101828;
  font-size: 17px;
}

.monthly-metric-card header span {
  font-size: 13px;
}

.monthly-metric-card header b {
  color: var(--monthly-accent);
}

.monthly-metric-card svg {
  height: 330px;
  padding: 4px 10px 12px;
}

.side-chart-wrap {
  display: none;
  height: 278px;
  padding: 12px 16px 16px;
}

.manual-entry {
  display: none;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.manual-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.manual-form h3 {
  font-size: 15px;
}

.manual-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.manual-form input,
.manual-form select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.manual-form button,
.manual-actions button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

.manual-cloud-weekly-form {
  grid-column: 1 / -1;
  border-left: 4px solid #2878aa;
  background: linear-gradient(110deg, rgba(40, 120, 170, 0.08), #fbfdff 42%);
}

.manual-cloud-weekly-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.manual-cloud-weekly-heading h3 {
  margin: 0;
}

.manual-cloud-weekly-heading .manual-form-note {
  margin: 7px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.manual-cloud-weekly-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.manual-rating-form {
  grid-column: 1 / -1;
  border-left: 4px solid #ef8b18;
  background: linear-gradient(110deg, rgba(239, 139, 24, 0.08), #fbfdff 42%);
}

.manual-rating-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.manual-rating-heading h3,
.manual-rating-heading .manual-form-note {
  margin: 0;
}

.manual-rating-heading .manual-form-note {
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.manual-rating-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.manual-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.manual-actions button.secondary {
  border: 1px solid #c8d7e5;
  background: #fff;
  color: #29445c;
}

.manual-actions {
  padding: 0 16px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.manual-data-sync-card {
  margin: 10px 16px 0;
  padding: 12px;
  border: 1px solid #b9dced;
  border-radius: 10px;
  background: #f5fbfe;
}

.manual-data-sync-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.manual-data-sync-copy h4 {
  flex: 0 0 auto;
  margin: 0;
  color: #17324a;
  font-size: 13px;
}

.manual-data-sync-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.manual-data-sync-copy code {
  color: #087f9c;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-weight: 700;
}

.manual-data-sync-card .manual-actions {
  padding: 10px 0 0;
}

#manualSyncStatus {
  flex: 1 1 420px;
  line-height: 1.5;
}

#manualSyncStatus.is-success {
  color: #177b57;
  font-weight: 700;
}

#manualSyncStatus.is-error {
  color: #b42318;
}

#manualSyncStatus.is-warning {
  color: #a15c24;
  font-weight: 700;
}

.manual-save-status {
  min-height: 18px;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 12px;
}

#manualStatus,
#manualSyncStatus {
  min-height: 18px;
}

@media (max-width: 760px) {
  .manual-data-sync-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.manual-detail-panel {
  margin-top: 18px;
}

.manual-detail-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) minmax(180px, 240px);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.manual-detail-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.manual-detail-controls input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.manual-detail-controls button {
  align-self: end;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.manual-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.manual-detail-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.manual-detail-card h4 {
  padding: 12px 14px;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.manual-detail-table {
  max-height: 300px;
  overflow: auto;
}

.manual-detail-table table {
  font-size: 12px;
}

.manual-detail-table th,
.manual-detail-table td {
  height: 32px;
}

@keyframes manual-order-update-flash {
  0%, 45% {
    background-color: #dbeafe;
  }

  100% {
    background-color: transparent;
  }
}

.manual-detail-table tbody tr.manual-order-just-edited > td {
  animation: manual-order-update-flash 1.6s ease-out;
}

.manual-delete-btn {
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #b91c1c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.manual-delete-btn:hover {
  background: #ffe4e6;
}

.manual-detail-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  min-width: 92px;
  white-space: nowrap;
}

.manual-detail-order-actions > button {
  min-width: 0;
  padding: 4px 5px;
}

.manual-detail-table--orders .manual-order-action-head,
.manual-detail-table--orders .manual-order-action-cell {
  position: sticky;
  right: 0;
  min-width: 108px;
  padding-inline: 8px;
  box-shadow: -8px 0 12px -10px rgba(15, 47, 73, 0.5);
}

.manual-detail-table--orders .manual-order-action-head {
  z-index: 4;
  background: #edf6ff;
}

.manual-detail-table--orders .manual-order-action-cell {
  z-index: 2;
  background: #fff;
}

.manual-order-edit-btn {
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.manual-order-edit-btn:hover {
  background: #dbeafe;
}

.manual-order-edit-dialog {
  width: min(540px, calc(100vw - 32px));
  border: 1px solid #cbd9e7;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 55, 0.28);
}

.manual-order-edit-shell {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.manual-order-edit-shell > header,
.manual-order-edit-shell > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.manual-order-edit-shell h2,
.manual-order-edit-shell p {
  margin: 0;
}

.manual-order-edit-shell h2 {
  margin-top: 3px;
  font-size: 21px;
}

.manual-order-edit-kicker {
  color: #2471ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.manual-order-edit-shell header p:not(.manual-order-edit-kicker),
.manual-order-edit-shell > label,
.manual-order-edit-shell small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.manual-order-edit-shell > label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-weight: 700;
}

.manual-order-edit-shell input {
  height: 42px;
  border: 1px solid #cbd9e7;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.manual-order-edit-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #d8e5f1;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.manual-order-edit-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.manual-order-edit-summary span {
  color: #64748b;
  font-size: 12px;
}

.manual-order-edit-summary strong {
  overflow: hidden;
  color: #17324c;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-order-edit-shell > footer {
  align-items: center;
  justify-content: flex-end;
}

.manual-order-edit-shell button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.manual-order-edit-close,
.manual-order-edit-cancel {
  border: 1px solid #cbd9e7;
  background: #fff;
  color: #475569;
}

.manual-order-edit-save {
  border: 1px solid #12324d;
  background: #12324d;
  color: #fff;
}

.manual-order-edit-save:hover {
  background: #0e2941;
}

svg {
  width: 100%;
  height: 100%;
  display: block;
}

.axis,
.grid-line {
  stroke: #d8e0ea;
  stroke-width: 1;
}

.chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.interactive-line-chart .chart-label,
.interactive-line-chart .chart-value-label {
  pointer-events: none;
}

.interactive-line-point {
  cursor: pointer;
  outline: none;
}

.interactive-line-hit {
  fill: transparent;
  pointer-events: all;
}

.interactive-line-dot {
  opacity: 0;
  transition: opacity 0.16s ease, r 0.16s ease;
  pointer-events: none;
}

.interactive-line-point:hover .interactive-line-dot,
.interactive-line-point:focus-visible .interactive-line-dot,
.interactive-line-point.is-selected .interactive-line-dot {
  opacity: 1;
}

.interactive-line-selection {
  pointer-events: none;
}

.interactive-selection-line {
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  opacity: 0.68;
}

.interactive-selection-dot {
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 4px 7px rgba(32, 58, 83, 0.22));
}

.interactive-selection-box {
  fill: rgba(255, 255, 255, 0.96);
  stroke: #cfe0ef;
  stroke-width: 1;
  filter: drop-shadow(0 8px 14px rgba(32, 58, 83, 0.14));
}

.interactive-selection-date {
  fill: #526176;
  font-size: 11px;
  font-weight: 700;
}

.interactive-selection-value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.series-orders {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
}

.series-new {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 2.5;
}

.series-repeat {
  fill: none;
  stroke: #0f766e;
  stroke-width: 2.5;
}

.series-uv {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
}

.series-pv {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
}

.series-revenue {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
}

.series-rate {
  fill: none;
  stroke: #dc2626;
  stroke-width: 2.5;
}

.series-conversion {
  fill: none;
  stroke: #9333ea;
  stroke-width: 2.5;
}

.series-aov {
  fill: none;
  stroke: #0891b2;
  stroke-width: 2.5;
}

.series-orders-dot {
  fill: var(--blue);
}

.series-new-dot {
  fill: #7c3aed;
}

.series-repeat-dot {
  fill: #0f766e;
}

.series-uv-dot {
  fill: var(--green);
}

.series-pv-dot {
  fill: var(--amber);
}

.series-revenue-dot {
  fill: var(--blue);
}

.series-rate-dot {
  fill: #dc2626;
}

.series-conversion-dot {
  fill: #9333ea;
}

.series-aov-dot {
  fill: #0891b2;
}

.bar-current {
  fill: #8fa2ff;
}

.bar-period {
  fill: #b8efc0;
}

.bar-yoy {
  fill: #0b0f14;
}

.bar-yoy-period {
  fill: #9edff7;
}

.compare-bar-group {
  cursor: default;
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.compare-bar-hit {
  fill: transparent;
  pointer-events: all;
}

.compare-bar-rect {
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.compare-bar-value,
.compare-bar-label {
  transition: fill 0.18s ease, font-weight 0.18s ease;
  pointer-events: none;
}

.compare-bar-group:hover,
.compare-bar-group:focus-visible {
  transform: translateY(-5px) scale(1.06);
}

.compare-bar-group:hover .compare-bar-rect,
.compare-bar-group:focus-visible .compare-bar-rect {
  filter: drop-shadow(0 8px 10px rgba(32, 58, 83, 0.22));
}

.compare-bar-group:hover .compare-bar-value,
.compare-bar-group:focus-visible .compare-bar-value,
.compare-bar-group:hover .compare-bar-label,
.compare-bar-group:focus-visible .compare-bar-label {
  fill: var(--ink);
  font-weight: 800;
}

.chart-value-label {
  font-weight: 700;
  fill: var(--ink);
}

.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.compare-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.compare-item {
  display: grid;
  gap: 8px;
}

.content-grid.power-overview-layout {
  grid-template-columns: minmax(0, 1fr);
}

.power-overview-summary-panel {
  order: -1;
}

.power-overview-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: stretch;
}

.power-overview-summary-grid .compare-item {
  min-width: 0;
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
}

.power-overview-summary-grid .compare-top > span:last-child {
  text-align: right;
}

.power-overview-summary-grid .daily-change {
  justify-content: flex-end;
  width: auto;
}

.power-json-daily-alert {
  display: grid;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #f1d39d;
  border-left: 3px solid #d99118;
  border-radius: 6px;
  background: #fffaf1;
}

.power-json-daily-alert-title,
.power-json-daily-alert-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.power-json-daily-alert-title strong {
  color: #8a5a10;
  font-size: 11px;
}

.power-json-daily-alert-title span,
.power-json-daily-alert-label span {
  color: #8a7454;
  font-size: 10px;
  text-align: right;
}

.power-json-daily-alert-row {
  display: grid;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px dashed #ead7b5;
}

.power-json-daily-alert-label strong {
  color: #5f4a2a;
  font-size: 11px;
}

.power-json-daily-alert-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.power-json-daily-alert-values span {
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.power-json-daily-alert-values .is-up {
  background: #e8f7f0;
  color: #087a50;
}

.power-json-daily-alert-values .is-down {
  background: #fff0f0;
  color: #bd3030;
}

.compare-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.power-total-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

.power-total-trend-section {
  display: grid;
  gap: 4px;
  padding-top: 16px;
}

.power-total-chart {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.power-total-chart header {
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding-right: 112px;
}

.power-total-chart header strong {
  font-size: 13px;
}

.power-total-chart header span {
  color: var(--muted);
  font-size: 12px;
}

.power-total-chart svg {
  height: 180px;
  padding: 8px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
}

.table-wrap {
  max-height: 430px;
  overflow: auto;
}

.order-detail-panel {
  display: none;
  border-top: 1px solid var(--line);
}

.order-detail-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 620px);
  gap: 16px;
  align-items: end;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.order-detail-header h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.order-detail-header span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.order-detail-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 96px 96px;
  gap: 10px;
  align-items: end;
}

.order-detail-search label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-detail-search input,
.order-detail-search button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  font: inherit;
}

.order-detail-search button {
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.order-detail-search button + button {
  background: #fff;
  color: var(--navy);
}

.order-detail-table-wrap {
  max-height: 460px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: right;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #fff;
}

tbody tr:hover {
  background: #f0f7ff;
}

.market-detail-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.ranking-trend-panel {
  display: none;
  border-bottom: 1px solid var(--line);
}

.ranking-trend-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) minmax(180px, 240px);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-right: 112px;
}

.ranking-trend-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.ranking-trend-controls input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ranking-trend-controls button {
  align-self: end;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.ranking-trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
  padding: 16px;
}

.ranking-trend-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ranking-trend-card header {
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding-right: 112px;
}

.ranking-trend-card header strong {
  font-size: 13px;
}

.ranking-trend-card header span {
  color: var(--muted);
  font-size: 12px;
}

.ranking-trend-card svg {
  height: 210px;
  padding: 8px;
}

.market-stats-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px)) minmax(520px, 1fr);
  gap: 12px;
  align-items: start;
}

.market-stats-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 300px;
  overflow: auto;
  background: #fff;
}

.keyword-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.keyword-table h4 {
  padding: 12px 14px;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
}

.keyword-table table {
  font-size: 12px;
}

.keyword-table th,
.keyword-table td {
  height: 32px;
}

.market-detail-grid.ranking-detail-single {
  grid-template-columns: minmax(0, 1fr);
}

.ranking-detail-picker {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.ranking-detail-picker label {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ranking-detail-picker select {
  width: 100%;
}

.ranking-detail-picker span {
  color: var(--muted);
  font-size: 12px;
}

.keyword-table.ranking-detail-selected {
  min-width: 0;
}

.ranking-detail-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.ranking-detail-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 720px) {
  .ranking-detail-picker {
    align-items: stretch;
    flex-direction: column;
  }
}

.customer-analysis-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.customer-analysis-card h4 {
  padding: 12px 14px;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.customer-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.customer-table-wrap table {
  font-size: 12px;
  min-width: 0;
}

.customer-table-wrap th,
.customer-table-wrap td {
  height: 32px;
}

.market-detail-grid.api-usage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.market-detail-grid.segmentation-grid,
.market-detail-grid.promotion-grid {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  gap: 0;
}

.seg-page,
.promotion-page {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.daily-manual-task-card {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border: 1px solid #d8e4ee;
  border-radius: 9px;
  background: #f8fbfe;
}

.daily-manual-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.daily-manual-task-header h4 {
  margin: 0;
  color: #17324a;
  font-size: 13px;
}

.daily-manual-task-header span {
  color: #667085;
  font-size: 11px;
  white-space: nowrap;
}

.daily-manual-task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
}

.daily-manual-task-list label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #334a60;
  font-size: 12px;
  cursor: pointer;
}

.daily-manual-task-list label:hover {
  background: #eef5fa;
}

.daily-manual-task-list input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #0794b5;
}

.daily-manual-task-card.is-complete {
  border-color: #9ed6c0;
  background: #f3fbf7;
}

.daily-manual-task-card.is-complete .daily-manual-task-header span {
  color: #177b57;
  font-weight: 700;
}

@media (max-width: 900px) {
  .daily-manual-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .daily-manual-task-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .daily-manual-task-list {
    grid-template-columns: 1fr;
  }
}

.seg-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.seg-count-grid button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.seg-count-grid button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.seg-count-grid span,
.seg-count-grid strong {
  display: block;
}

.seg-count-grid span {
  font-size: 13px;
}

.seg-count-grid strong {
  margin-top: 6px;
  font-size: 24px;
}

.seg-definition,
.seg-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seg-definition header {
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.seg-definition dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  margin: 0;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.75;
}

.seg-definition dt {
  font-weight: 700;
  color: var(--navy);
}

.seg-definition dd {
  margin: 0;
}

.seg-definition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.seg-definition-grid dl {
  align-content: start;
}

.seg-definition-grid dl + dl {
  border-left: 1px solid var(--line);
}

.seg-api-lookup-panel {
  overflow: visible;
}

.seg-expiring-panel {
  overflow: hidden;
}

.seg-expiring-table-wrap {
  max-height: 330px;
  overflow: auto;
}

.seg-expiring-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 12px;
}

.seg-expiring-table th,
.seg-expiring-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.seg-expiring-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #fff;
}

.seg-expiring-empty {
  min-height: 76px;
  color: var(--muted);
  text-align: center !important;
}

.seg-weekly-renewal-panel {
  border-color: #c9dff3;
}

.seg-weekly-renewal-head {
  align-items: flex-start;
  background: linear-gradient(90deg, #f7fbff 0%, #fff 66%);
}

.seg-weekly-renewal-head-copy {
  min-width: 0;
}

.seg-weekly-renewal-head-copy p {
  margin: 4px 0 0;
  color: #617187;
  font-size: 12px;
  line-height: 1.5;
}

.seg-weekly-renewal-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #b8d8f4;
  border-radius: 999px;
  background: #eef8ff;
  color: #16638f;
  font-size: 12px;
  font-weight: 800;
}

.seg-weekly-renewal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #dfeaf4;
  background: #fbfdff;
}

.seg-weekly-renewal-summary article {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e0ebf5;
  border-radius: 8px;
  background: #fff;
}

.seg-weekly-renewal-summary span,
.seg-weekly-renewal-summary small {
  display: block;
  color: #66768a;
  font-size: 12px;
}

.seg-weekly-renewal-summary strong {
  display: block;
  margin: 6px 0 3px;
  color: #153e62;
  font-size: 20px;
  line-height: 1.1;
}

.seg-weekly-renewal-summary .seg-weekly-renewal-total {
  border-color: #a8d5f5;
  background: linear-gradient(135deg, #edf8ff 0%, #fff 100%);
}

.seg-weekly-renewal-summary .seg-weekly-renewal-total strong {
  color: #0878b9;
}

.seg-weekly-renewal-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.seg-weekly-renewal-table {
  width: 100%;
  min-width: 1440px;
  border-collapse: collapse;
  font-size: 12px;
}

.seg-weekly-renewal-table th,
.seg-weekly-renewal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.seg-weekly-renewal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #fff;
}

.seg-weekly-renewal-empty {
  min-height: 76px;
  color: var(--muted);
  text-align: center !important;
}

.seg-weekly-renewal-note {
  margin: 0;
  padding: 11px 16px;
  border-top: 1px dashed #cfdfee;
  color: #627286;
  font-size: 12px;
  line-height: 1.65;
}

.seg-api-lookup-summary {
  min-width: 0;
  color: #52667a;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.seg-api-lookup-average {
  color: #126d9b;
  font-weight: 800;
  white-space: nowrap;
}

.seg-api-lookup-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(120px, 0.5fr);
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.seg-api-lookup-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.seg-api-lookup-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.seg-api-lookup-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  background: var(--navy);
}

.seg-detail-locate-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 88px;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.seg-detail-locate-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.seg-detail-locate-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.seg-detail-locate-form button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  background: var(--navy);
  cursor: pointer;
}

.seg-detail-locate-form span {
  grid-column: 1 / -1;
  min-height: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg-api-lookup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  gap: 0;
}

.seg-api-chart-wrap {
  min-width: 0;
  padding: 14px;
}

.seg-api-chart {
  height: 310px;
}

.seg-api-line {
  fill: none;
  stroke: #0799b5;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seg-api-dot {
  fill: #0799b5;
  stroke: #fff;
  stroke-width: 3;
}

.seg-api-value-bg {
  fill: #fff;
  stroke: #b8dbe5;
  stroke-width: 1;
}

.seg-api-value-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.seg-api-table-wrap {
  max-height: 350px;
  overflow: auto;
  border-left: 1px solid var(--line);
}

.seg-api-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
}

.seg-api-table-wrap th,
.seg-api-table-wrap td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.seg-api-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fff;
  background: var(--navy);
}

.seg-api-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background: #f8fbff;
}

.manual-tool-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  background: #fbfdff;
}

.manual-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.manual-tool-header h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 15px;
}

.manual-tool-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.manual-tool-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #b9dced;
  border-radius: 999px;
  background: #edf8fc;
  color: #087b9a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.manual-tool-date {
  display: grid;
  flex: 0 0 190px;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manual-pvuv-date-controls {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(280px, 1.5fr);
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe6f0;
  border-radius: 9px;
  background: #f5f9fc;
}

.manual-pvuv-date-controls label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.manual-tool-date input,
.manual-pvuv-date-controls input,
.manual-pvuv-date-controls select {
  width: 100%;
  height: 36px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.manual-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manual-tool-actions button,
.manual-tool-import-row button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #12324d;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.manual-tool-actions button.secondary {
  border: 1px solid #cdd8e5;
  background: #fff;
  color: #334a60;
  box-shadow: none;
}

.manual-tool-field {
  display: grid;
  gap: 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.manual-tool-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: 12px/1.55 Consolas, "SFMono-Regular", monospace;
  resize: vertical;
}

.manual-script-textarea {
  min-height: 150px;
}

.manual-result-textarea {
  min-height: 120px;
}

.manual-tool-import-row {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.manual-tool-import-row button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.manual-tool-preview {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #dbe6f0;
  border-radius: 9px;
  color: #52677b;
  background: #f5f9fc;
  font-size: 12px;
  line-height: 1.65;
}

.manual-tool-preview.is-error {
  border-color: #f3c0b8;
  color: #b42318;
  background: #fff7f6;
}

.manual-tool-preview.is-warning {
  border-color: #f1d59e;
  color: #8a5a00;
  background: #fffaf0;
}

.manual-tool-preview strong {
  color: #12324d;
}

.manual-tool-preview ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
}

.manual-tool-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.manual-tool-status.is-error {
  color: #b42318;
}

@media (max-width: 900px) {
  .manual-tool-header {
    display: grid;
  }

  .manual-tool-date {
    width: 100%;
  }

  .manual-pvuv-date-controls {
    grid-template-columns: 1fr;
  }

  .manual-tool-import-row {
    grid-template-columns: 1fr;
  }
}

.seg-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(10, minmax(116px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seg-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.seg-filter-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.seg-toolbar input,
.seg-toolbar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.seg-multi-filter {
  position: relative;
  min-width: 0;
}

.seg-multi-filter summary {
  position: relative;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 28px 8px 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg-multi-filter summary::-webkit-details-marker {
  display: none;
}

.seg-multi-filter summary::after {
  content: "⌄";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.seg-multi-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: max(220px, 100%);
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.seg-multi-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.seg-multi-menu label:hover {
  background: #f3f7fb;
}

.seg-multi-menu input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
}

.seg-toolbar button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.seg-toolbar .seg-filter-clear {
  width: 100%;
  min-height: 30px;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--navy);
}

.seg-table-wrap {
  max-height: 660px;
  overflow: auto;
}

.seg-label-change-panel {
  overflow: hidden;
}

.seg-label-change-wrap {
  max-height: 320px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.seg-label-change-wrap table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 12px;
}

.seg-label-change-wrap th,
.seg-label-change-wrap td {
  height: 34px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.seg-label-change-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f6fb;
  color: var(--muted);
  font-weight: 800;
}

.seg-top-api-panel {
  overflow: hidden;
}

.seg-top-api-wrap {
  max-height: 430px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.seg-top-api-wrap table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  font-size: 12px;
}

.seg-top-api-wrap th,
.seg-top-api-wrap td {
  height: 34px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.seg-top-api-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf4fb;
  color: #17324c;
  font-weight: 800;
}

.seg-top-api-wrap td[rowspan] {
  background: #f8fbff;
  color: #17324c;
  font-weight: 800;
}

.seg-top-api-conclusion {
  min-width: 280px;
  white-space: normal;
  line-height: 1.5;
}

.seg-label-change-query-button {
  min-height: 28px;
  border: 1px solid #b7d7ef;
  border-radius: 6px;
  padding: 4px 10px;
  background: #eef8fc;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.seg-table-wrap table {
  min-width: 3560px;
  font-size: 12px;
}

.seg-table-wrap table.seg-table-without-product {
  min-width: 3380px;
}

.seg-table-wrap th,
.seg-table-wrap td {
  height: 34px;
  padding: 0 9px;
}

.seg-table-wrap th:first-child,
.seg-table-wrap td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  background: #fff;
  text-align: left;
  box-shadow: 1px 0 0 var(--line);
}

.seg-table-wrap th:nth-child(2),
.seg-table-wrap td:nth-child(2) {
  position: sticky;
  left: 132px;
  z-index: 3;
  min-width: 180px;
  max-width: 220px;
  background: #fff;
  text-align: left;
  box-shadow: 1px 0 0 var(--line);
}

.seg-table-wrap .seg-table-with-product th:nth-child(2),
.seg-table-wrap .seg-table-with-product td:nth-child(2) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}

.seg-table-wrap .seg-table-without-product th:nth-child(2),
.seg-table-wrap .seg-table-without-product td:nth-child(2) {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

.seg-table-wrap th:first-child,
.seg-table-wrap th:nth-child(2) {
  z-index: 5;
  background: var(--navy);
}

.seg-table-wrap .seg-table-with-product th:nth-child(3),
.seg-table-wrap .seg-table-with-product td:nth-child(3) {
  position: sticky;
  left: 312px;
  z-index: 3;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  background: #fff;
  text-align: left;
  box-shadow: 1px 0 0 var(--line);
}

.seg-table-wrap .seg-table-with-product th:nth-child(3) {
  z-index: 5;
  background: var(--navy);
}

.seg-private-offer-button {
  min-height: 28px;
  border: 1px solid #b7d7ef;
  border-radius: 6px;
  padding: 4px 8px;
  background: #eef8fc;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.seg-private-offer-status {
  display: inline-block;
  min-width: 190px;
  line-height: 1.55;
  white-space: normal;
}

.seg-table-wrap th:nth-child(9),
.seg-table-wrap td:nth-child(9) {
  width: 220px;
  min-width: 220px;
  max-width: 260px;
}

.seg-table-wrap tr.seg-located-row td {
  background: #fff7d6;
  box-shadow: inset 0 0 0 1px #f3d47a;
}

.seg-table-p3 th:nth-child(9),
.seg-table-p3 td:nth-child(9) {
  width: 220px;
  min-width: 220px;
  max-width: 260px;
}

.seg-table-p3 th:nth-child(11),
.seg-table-p3 td:nth-child(11) {
  width: 150px;
  min-width: 150px;
  max-width: 180px;
}

.seg-table-p3 th:nth-child(12),
.seg-table-p3 td:nth-child(12),
.seg-table-p3 th:nth-child(21),
.seg-table-p3 td:nth-child(21) {
  width: 126px;
  min-width: 126px;
  max-width: 150px;
}

.seg-table-p3 th:nth-child(23),
.seg-table-p3 td:nth-child(23) {
  width: 140px;
  min-width: 140px;
  max-width: 160px;
  white-space: normal;
  line-height: 1.45;
}

.seg-table-p1 th:nth-child(24),
.seg-table-p1 td:nth-child(24),
.seg-table-p2 th:nth-child(28),
.seg-table-p2 td:nth-child(28),
.seg-table-p3 th:nth-child(26),
.seg-table-p3 td:nth-child(26) {
  width: 150px;
  min-width: 150px;
  max-width: 170px;
  white-space: normal;
  line-height: 1.45;
}

.seg-customer-card-button {
  width: 100%;
  min-height: 30px;
  border: 1px solid #cfe0f1;
  border-radius: 6px;
  padding: 5px 8px;
  background: #f8fbff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.seg-customer-card-button:hover {
  border-color: var(--cyan);
  background: #eef8fc;
}

.seg-customer-dialog h3 {
  padding-right: 34px;
}

.seg-card-grid article strong {
  overflow-wrap: anywhere;
}

.seg-api-detail {
  margin-top: 18px;
}

.seg-api-detail h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.seg-api-detail-table {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seg-api-detail-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.seg-api-detail-table th,
.seg-api-detail-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.seg-api-detail-table th {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
}

.seg-private-offer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.seg-private-offer-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.seg-private-offer-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.seg-private-offer-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.seg-hit {
  display: inline-block;
  min-width: 360px;
  max-width: 520px;
  white-space: normal;
  line-height: 1.5;
}

.business-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.business-count-grid button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.business-count-grid button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.business-count-grid span,
.business-count-grid strong {
  display: block;
}

.business-count-grid span {
  font-size: 13px;
}

.business-count-grid strong {
  margin-top: 6px;
  font-size: 24px;
}

.business-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(145px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.business-toolbar label,
.promotion-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.business-toolbar input,
.business-toolbar select,
.promotion-form input,
.promotion-form select,
.promotion-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.business-toolbar button,
.promotion-form button,
.promotion-section-head button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.business-continuity {
  padding: 11px 14px;
  border-left: 4px solid var(--amber);
  background: #fff8e8;
  color: #6f4d00;
  font-size: 12px;
  line-height: 1.6;
}

.business-definition,
.business-table-panel,
.promotion-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.business-definition h4,
.business-table-head,
.promotion-section-head {
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.business-definition dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  margin: 0;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.7;
}

.business-definition dt {
  font-weight: 700;
  color: var(--navy);
}

.business-definition dd {
  margin: 0;
}

.business-table-head,
.promotion-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.business-table-head h3,
.promotion-section-head h3 {
  font-size: 16px;
}

.promotion-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.promotion-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.promotion-filter label {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.promotion-filter input,
.promotion-filter select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.promotion-filter select {
  padding-right: 30px;
}

.promotion-filter button {
  min-height: 34px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 6px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.business-table-wrap,
.promotion-record-table {
  max-height: 620px;
}

.business-table-wrap table {
  min-width: 2900px;
  font-size: 12px;
}

.business-table-wrap th,
.business-table-wrap td {
  height: 34px;
  padding: 0 9px;
}

.business-hit-cell {
  min-width: 250px;
  white-space: normal;
  line-height: 1.5;
}

.business-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 240px;
  padding: 4px 0;
}

.business-tag {
  border-radius: 4px;
  padding: 2px 6px;
  background: #e8f6fb;
  color: #087e99;
  font-size: 11px;
}

.business-tag.main {
  background: #e8efff;
  color: #2558bd;
}

.business-customer-button,
.ops-customer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0876b9;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.business-issue-note,
.promotion-record-note,
.promotion-claimed-date {
  min-width: 130px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 7px;
}

.business-dialog {
  width: min(880px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  border: 0;
  border-radius: 8px;
  padding: 22px;
  color: var(--ink);
}

.business-dialog::backdrop {
  background: rgb(15 23 42 / 55%);
}

.business-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.business-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.business-detail-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.business-detail-grid span,
.business-detail-grid strong {
  display: block;
}

.business-detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.business-detail-grid strong {
  margin-top: 5px;
}

.promotion-kpis,
.promotion-attribution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding: 14px;
}

.promotion-kpis article,
.promotion-attribution-grid article {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.promotion-kpis span,
.promotion-kpis strong,
.promotion-kpis em,
.promotion-attribution-grid span,
.promotion-attribution-grid strong,
.promotion-attribution-grid em {
  display: block;
}

.promotion-kpis span,
.promotion-attribution-grid span {
  color: var(--muted);
  font-size: 12px;
}

.promotion-kpis strong,
.promotion-attribution-grid strong {
  margin: 6px 0 4px;
  font-size: 22px;
}

.promotion-kpis em,
.promotion-attribution-grid em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.promotion-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
}

.promotion-form-wide {
  grid-column: 1 / -1;
}

.promotion-form button {
  align-self: end;
}

#promotionFormStatus {
  align-self: center;
  grid-column: span 3;
  color: var(--muted);
  font-size: 12px;
}

.promotion-section .ops-table-wrap {
  max-height: 520px;
}

.promotion-record-table table {
  min-width: 2500px;
  font-size: 12px;
}

@media (max-width: 1280px) {
  .monthly-stats-panel .metric-charts {
    grid-template-columns: minmax(0, 1fr);
  }

  .monthly-stats-panel .panel-header {
    align-items: stretch;
  }

  .monthly-stats-controls {
    justify-content: flex-start;
  }

  .business-count-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .business-toolbar {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .promotion-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .seg-api-lookup-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seg-api-table-wrap {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

}

@media (max-width: 900px) {
  .seg-weekly-renewal-head {
    flex-direction: column;
  }

  .seg-weekly-renewal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seg-definition-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seg-api-lookup-panel .business-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .seg-api-lookup-summary {
    text-align: left;
  }

  .seg-definition-grid dl + dl {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .seg-api-lookup-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .seg-detail-locate-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .seg-weekly-renewal-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

.api-upload-card,
.api-chart-card,
.api-table-card,
.api-export-card,
.api-scraper-card,
.api-analysis-card,
.api-search-card,
.api-snapshot-cleaner-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.api-upload-card,
.api-export-card,
.api-scraper-card,
.api-analysis-card,
.api-search-card,
.api-snapshot-cleaner-card {
  grid-column: 1 / -1;
}

.api-table-card {
  grid-column: 1 / -1;
}

.api-upload-controls {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.api-upload-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.api-upload-controls input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.file-input-label input {
  padding-top: 10px;
}

.api-paste-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: end;
  padding: 0 16px 16px;
}

.api-paste-import label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.api-paste-import textarea {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  font: 12px/1.55 Consolas, "Microsoft YaHei", monospace;
  color: var(--ink);
  background: #fff;
}

.api-paste-import button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.api-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 16px 10px;
}

.api-export-actions button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

#apiCustomerExportText {
  display: block;
  width: calc(100% - 32px);
  min-height: 150px;
  margin: 0 16px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  font: 12px/1.55 Consolas, "Microsoft YaHei", monospace;
  color: var(--ink);
  background: #f8fbff;
}

#apiCustomerExportStatus {
  padding: 0 16px 16px;
}

.api-search-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 90px;
  gap: 10px;
  padding: 14px 16px;
}

.api-search-controls input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.api-search-controls button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

.api-snapshot-cleaner-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(120px, auto) minmax(180px, auto);
  gap: 10px;
  padding: 14px 16px;
  align-items: center;
}

.api-snapshot-cleaner-controls input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.api-snapshot-cleaner-controls button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.api-snapshot-cleaner-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.api-snapshot-cleaner-controls .api-snapshot-danger:not(:disabled) {
  background: #b42318;
}

.api-snapshot-cleaner-results {
  padding: 0 16px 16px;
}

.api-snapshot-cleaner-table {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.api-scraper-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.api-scraper-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(190px, auto) minmax(120px, auto) 1fr;
  gap: 12px;
  align-items: end;
}

.api-scraper-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.api-scraper-controls input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.api-scraper-controls button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

#apiUsageScraperScriptText {
  width: 100%;
  min-height: 120px;
  max-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  font: 12px/1.55 Consolas, "Microsoft YaHei", monospace;
  color: var(--ink);
  background: #f8fbff;
}

#apiUsageScraperStatus {
  line-height: 1.6;
}

.api-usage-stale {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
  padding: 8px 10px;
  margin: 8px 0;
}

.api-analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 10px;
}

.api-analysis-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.api-analysis-tabs button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.api-analysis-tabs b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  padding: 0 6px;
  background: rgba(8, 145, 178, 0.12);
  color: var(--cyan);
  font-size: 11px;
}

.api-analysis-tabs button.active b {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.api-spec-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.api-spec-filter select {
  width: min(280px, 24vw);
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 30px 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.api-analysis-tabs .api-history-toggle {
  margin-left: auto;
  border-color: var(--cyan);
  color: #047891;
  background: #e8f7fb;
}

.api-analysis-tabs .api-history-toggle.active {
  background: var(--cyan);
  color: #fff;
}

.api-analysis-note {
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.api-analysis-table {
  display: none;
  max-height: 520px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.api-analysis-table.active {
  display: block;
}

.api-analysis-table table {
  min-width: 1100px;
  font-size: 12px;
}

.api-analysis-table th,
.api-analysis-table td {
  height: 34px;
}

.api-analysis-table .api-history-specs {
  min-width: 280px;
  max-width: 520px;
  padding-top: 8px;
  padding-bottom: 8px;
  white-space: normal;
  line-height: 1.55;
  text-align: left;
}

.api-analysis-card[data-api-analysis="repeat"]:not(.show-history-specs) .api-analysis-table th:last-child,
.api-analysis-card[data-api-analysis="repeat"]:not(.show-history-specs) .api-analysis-table td:last-child {
  display: none;
}

.api-rate-band {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  background: #e8f7fb;
  color: #047891;
  font-weight: 700;
}

.api-chart-card svg {
  height: 280px;
  padding: 12px;
}

.api-chart-card .panel-header {
  position: relative;
  padding-right: 112px;
}

.api-bar {
  fill: var(--cyan);
}

.api-bar-group {
  cursor: default;
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.api-bar-hit {
  fill: transparent;
  pointer-events: all;
}

.api-bar-group .api-bar {
  transition: fill 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.api-bar-name,
.api-bar-value {
  transition: fill 0.18s ease, font-weight 0.18s ease;
  pointer-events: none;
}

.api-bar-group:hover,
.api-bar-group:focus-visible {
  transform: translateX(4px) scaleX(1.018);
}

.api-bar-group:hover .api-bar,
.api-bar-group:focus-visible .api-bar {
  fill: #047f9a;
  filter: drop-shadow(0 5px 8px rgba(8, 145, 178, 0.22));
}

.api-bar-group:hover .api-bar-name,
.api-bar-group:focus-visible .api-bar-name,
.api-bar-group:hover .api-bar-value,
.api-bar-group:focus-visible .api-bar-value {
  fill: var(--ink);
  font-weight: 800;
}

.api-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.api-table-wrap table {
  font-size: 12px;
  min-width: 0;
}

.api-table-wrap th,
.api-table-wrap td {
  height: 32px;
}

.tencent-gateway-source-card {
  grid-column: 1 / -1;
}

.tencent-gateway-source-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.tencent-gateway-source-body p,
.tencent-gateway-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.tencent-gateway-source-body small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.tencent-gateway-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tencent-gateway-source-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.tencent-gateway-source-actions button:disabled {
  cursor: wait;
  opacity: .62;
}

.tencent-gateway-status {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}

.tencent-gateway-status.good {
  background: #e8f8ef;
  color: #087443;
}

.tencent-gateway-status.warn {
  background: #fff4df;
  color: #a85d00;
}

.tencent-gateway-status.bad {
  background: #fff0ee;
  color: #b5352f;
}

.tencent-gateway-status.neutral {
  background: #edf3f9;
  color: #52687c;
}

.tencent-gateway-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.tencent-gateway-kpi {
  min-width: 0;
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 15px;
  background: #fff;
}

.tencent-gateway-kpi span,
.tencent-gateway-kpi em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tencent-gateway-kpi strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tencent-gateway-validation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 8px 14px;
}

.tencent-gateway-validation-list div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-bottom: 1px dashed var(--line);
}

.tencent-gateway-validation-list span {
  color: var(--muted);
  font-size: 12px;
}

.tencent-gateway-validation-list strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tencent-gateway-summary-card .tencent-gateway-caption {
  padding: 0 14px 14px;
}

.tencent-gateway-empty {
  padding: 24px 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .tencent-gateway-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tencent-gateway-validation-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ops-section {
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ops-section-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.ops-section-head h3 {
  font-size: 17px;
}

.ops-section-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ops-section-head > span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}

.ops-kpi {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.ops-kpi span,
.ops-kpi em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ops-kpi strong {
  overflow-wrap: anywhere;
  font-size: 21px;
}

.ops-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}

.ops-chart-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ops-chart-card header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-right: 112px;
}

.ops-chart-card header strong {
  font-size: 14px;
}

.ops-chart-card header span {
  color: var(--muted);
  font-size: 11px;
}

.ops-chart-card svg {
  height: 250px;
  padding: 8px;
}

.ops-anomaly-block {
  margin: 0 18px 18px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  overflow: hidden;
}

.ops-anomaly-block h4 {
  padding: 11px 14px;
  border-bottom: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

.ops-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.ops-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.ops-filter-grid input,
.ops-filter-grid select,
.ops-filter-grid button {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ops-filter-grid button {
  align-self: end;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.ops-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.ops-table-wrap table {
  min-width: 100%;
  font-size: 12px;
}

.ops-customer-table table {
  width: max-content;
  min-width: 0;
}

.ops-customer-table th:first-child,
.ops-customer-table td:first-child {
  width: 210px;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-customer-table th:nth-child(4),
.ops-customer-table td:nth-child(4) {
  width: 104px;
  max-width: 104px;
  padding-left: 8px;
  padding-right: 8px;
}

.ops-customer-table th:nth-child(5),
.ops-customer-table td:nth-child(5) {
  width: 190px;
  max-width: 190px;
  padding-left: 8px;
  padding-right: 8px;
}

.ops-table-wrap th,
.ops-table-wrap td {
  height: 34px;
}

.ops-customer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0369a1;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ops-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
}

.ops-red {
  background: #fee2e2;
  color: #b91c1c;
}

.ops-orange {
  background: #ffedd5;
  color: #c2410c;
}

.ops-yellow {
  background: #fef9c3;
  color: #854d0e;
}

.ops-normal {
  background: #dcfce7;
  color: #047857;
}

.ops-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px;
}

.ops-mini-kpis article,
.ops-concentration-kpis article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.ops-mini-kpis span,
.ops-mini-kpis em,
.ops-concentration-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ops-mini-kpis strong,
.ops-concentration-kpis strong {
  font-size: 19px;
}

.ops-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 16px;
}

.ops-subcard {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.ops-subcard h4 {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  font-size: 14px;
}

.ops-tab-card {
  padding: 0 18px 18px;
}

.ops-recent-customer-card {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.ops-subcard-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.ops-subcard-title h4 {
  font-size: 15px;
}

.ops-subcard-title p,
.ops-subcard-title > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.ops-subcard-title > span {
  flex: 0 0 auto;
  text-align: right;
}

.ops-recent-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.ops-recent-range-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.ops-recent-range-tabs button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}

.ops-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.ops-tabs button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.ops-tab-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.ops-tab-panel.active {
  display: block;
}

.ops-concentration-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.market-power-detail {
  display: none;
  padding: 0 16px 16px;
}

.section-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  position: relative;
  padding-right: 112px;
}

.section-subhead h4 {
  margin: 0;
  font-size: 14px;
}

.section-subhead span,
.empty-note {
  color: var(--muted);
  font-size: 12px;
}

.power-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.power-trend-section {
  display: grid;
  gap: 18px;
  padding-top: 16px;
}

.power-trend-row {
  display: grid;
  gap: 10px;
}

.power-trend-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.power-trend-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.power-trend-card header {
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  padding-right: 112px;
}

.chart-download-button {
  position: absolute;
  top: 10px;
  right: 12px;
  min-width: 76px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.ranking-trend-controls .chart-download-button,
.section-subhead .chart-download-button {
  top: 18px;
}

.chart-download-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.png-picker::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.png-picker {
  width: min(620px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.png-picker form {
  display: grid;
  max-height: inherit;
}

.png-picker header,
.png-picker footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.png-picker header {
  border-bottom: 1px solid var(--line);
}

.png-picker footer {
  border-top: 1px solid var(--line);
}

.png-picker h3 {
  font-size: 16px;
}

.png-picker-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding: 14px 16px;
}

.png-picker label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  font-size: 13px;
}

.png-picker input {
  width: 16px;
  height: 16px;
}

.png-picker button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.png-picker .primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.power-trend-card svg {
  height: 190px;
  padding: 8px;
}

.power-detail-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.power-detail-card h4 {
  padding: 12px 14px;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
}

.power-detail-card table {
  width: 100%;
  font-size: 12px;
}

.power-data-tools {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.power-data-tools .section-subhead {
  padding-right: 0;
}

.power-data-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.power-script-tools,
.power-import-tools {
  min-width: 0;
}

.power-tool-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.power-tool-actions span,
.power-import-tools > span {
  color: var(--muted);
  font-size: 12px;
}

.power-tool-actions button,
.power-import-tools button {
  height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: #fff;
  background: #3f789c;
  font-weight: 800;
  cursor: pointer;
}

.power-tool-actions button:hover,
.power-import-tools button:hover {
  background: #326781;
}

.power-script-fallback > summary,
.power-json-details summary {
  color: #36566f;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.power-script-fallback {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.power-script-fallback .power-tool-actions {
  margin-top: 10px;
}

.power-script-fallback textarea {
  width: 100%;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  resize: vertical;
  font: 11px/1.5 Consolas, "Microsoft YaHei", monospace;
}

.power-import-tools {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.power-import-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.power-import-tools input,
.power-import-tools textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
}

.power-import-tools input {
  height: 38px;
  padding: 0 10px;
}

.power-import-tools textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
  font: 12px/1.5 Consolas, "Microsoft YaHei", monospace;
}

.power-import-tools > span {
  grid-column: 1 / -1;
}

.power-detail-card th,
.power-detail-card td {
  height: 31px;
}

.power-detail-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.power-detail-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.power-json-details {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.power-json-detail-wrap {
  max-height: 320px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.power-json-detail-wrap table {
  min-width: 1040px;
}

.power-json-detail-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.power-json-change-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: #617386;
  font-size: 12px;
}

.power-json-change-legend span,
.power-json-date span,
.power-json-change-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}

.power-json-change-legend .is-up,
.power-json-detail-item.is-up .power-json-change-badge {
  color: #087344;
  background: #dcfce7;
}

.power-json-change-legend .is-down,
.power-json-detail-item.is-down .power-json-change-badge {
  color: #b42318;
  background: #fee4e2;
}

.power-json-change-legend .change-count {
  padding: 2px 7px;
  color: #9a3412;
  background: #ffedd5;
}

.power-json-change-legend .change-dates {
  padding: 2px 7px;
  color: #075985;
  background: #e0f2fe;
}

.power-json-change-legend em {
  font-style: normal;
}

.power-json-detail-cell {
  display: grid;
  gap: 3px;
  min-width: 150px;
  padding: 3px 0;
}

.power-json-detail-cell span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #586a7d;
  white-space: nowrap;
}

.power-json-detail-cell strong {
  color: #17324c;
}

.power-json-date {
  display: grid;
  gap: 5px;
  min-width: 78px;
}

.power-json-date span {
  padding: 2px 6px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 11px;
}

.power-json-detail-cell > .power-json-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 24px;
  padding: 2px 0;
  border-radius: 4px;
}

.power-json-detail-cell > .power-json-detail-item.is-changed {
  padding: 4px 6px;
  border-left: 3px solid currentColor;
}

.power-json-detail-cell > .power-json-detail-item.is-up {
  color: #087344;
  background: #f0fdf4;
}

.power-json-detail-cell > .power-json-detail-item.is-down {
  color: #b42318;
  background: #fff5f4;
}

.power-json-detail-item .power-json-factor-name {
  min-width: 0;
  color: inherit;
}

.power-json-detail-item.is-changed strong {
  color: inherit;
  font-size: 14px;
}

.power-json-change-badge {
  grid-column: 1 / -1;
  padding: 2px 5px;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.power-factor-score-section {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.power-factor-products {
  display: grid;
  gap: 14px;
}

.power-factor-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.power-factor-product > header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  background: #f8fbff;
}

.power-factor-product > header > div:first-child {
  display: grid;
  gap: 3px;
}

.power-factor-product > header span {
  color: var(--muted);
  font-size: 11px;
}

.power-factor-product-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.power-factor-product-total strong {
  color: #17324c;
  font-size: 22px;
}

.power-factor-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.power-factor-dimension {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.power-factor-dimension > header {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--factor-color);
  background: #f8fbff;
}

.power-factor-dimension-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.power-factor-dimension-title code {
  color: #6b7a90;
  font: 10px/1.2 Consolas, monospace;
}

.power-factor-dimension-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}

.power-factor-dimension-total span {
  color: var(--muted);
  font-size: 11px;
}

.power-factor-dimension-total strong {
  color: #17324c;
  font-size: 17px;
}

.power-factor-dimension-delta {
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef3f8;
  color: #617184;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.power-factor-dimension-delta.is-up {
  color: #087344;
  background: #dcfce7;
}

.power-factor-dimension-delta.is-down {
  color: #b42318;
  background: #fee4e2;
}

.power-factor-dimension-delta.is-flat {
  color: #526477;
  background: #e9eff5;
}

.power-factor-dimension-delta.is-new {
  color: #075985;
  background: #e0f2fe;
}

.power-factor-score-head {
  min-height: 28px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 96px 34px 42px;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-top: 1px solid #e7eef5;
  background: #fbfdff;
  color: #708094;
  font-size: 10px;
}

.power-factor-score-head span:nth-child(n + 2) {
  text-align: right;
}

.power-factor-score-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 96px 34px 42px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-top: 1px solid #edf2f7;
}

.power-factor-name {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.power-factor-name strong {
  font-size: 12px;
  line-height: 1.35;
}

.power-factor-name code {
  overflow: hidden;
  color: #6b7a90;
  font: 10px/1.2 Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.power-factor-sparkline {
  display: block;
  width: 96px;
  height: 28px;
}

.power-factor-spark-empty {
  width: 96px;
  color: var(--muted);
  text-align: center;
}

.power-factor-current {
  color: #17324c;
  font-size: 15px;
  text-align: right;
}

.power-factor-delta {
  min-width: 38px;
  padding: 3px 4px;
  border-radius: 5px;
  background: #eef3f8;
  color: #617184;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.power-factor-delta.is-up {
  background: #e8f7f0;
  color: #087a50;
}

.power-factor-delta.is-down {
  background: #fff0f0;
  color: #bd3030;
}

.power-factor-delta.is-new {
  background: #eef4ff;
  color: #326781;
}

@media (max-width: 1100px) {
  .power-data-tools-grid {
    grid-template-columns: 1fr;
  }

  .power-import-tools {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  }

  .power-import-tools button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1760px) {
  .market-detail-grid {
    grid-template-columns: repeat(4, minmax(300px, 1fr));
  }

  .market-detail-grid.api-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-06-26 visual refresh: unified light admin dashboard style */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --panel: #f8fafd;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d8e2ee;
  --navy: #12324d;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
  --radius: 8px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.app-shell {
  grid-template-columns: 248px minmax(960px, 1fr);
}

.sidebar {
  padding: 20px 14px;
  gap: 18px;
  background: #0e2236;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  padding: 4px 6px 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #1d4ed8;
  box-shadow: inset 0 -10px 18px rgba(15, 23, 42, 0.16);
}

h1 {
  font-size: 16px;
}

.product-nav {
  gap: 7px;
}

.nav-group {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.nav-group summary {
  background: rgba(255, 255, 255, 0.06);
}

.nav-group-items,
.nav-other-items {
  gap: 5px;
}

.product-nav button {
  height: 40px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.product-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.product-nav button.active {
  background: #fff;
  color: #0f2840;
  box-shadow: var(--shadow-soft);
}

.product-nav strong {
  font-size: 13px;
}

.brand-block p,
.source-note,
.product-nav button span {
  font-size: 11px;
}

.source-note {
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard {
  gap: 16px;
  padding: 22px;
}

.topbar {
  min-height: 62px;
}

.eyebrow {
  color: #7b8798;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.15;
}

.toolbar {
  align-items: center;
}

.icon-button,
.text-button,
select,
.comparison-controls input,
.comparison-controls button,
.monthly-stats-controls input,
.monthly-stats-controls select,
.monthly-stats-controls button,
.manual-form input,
.manual-form select,
.manual-form button,
.manual-actions button,
.manual-detail-controls input,
.manual-detail-controls button,
.seg-api-lookup-form input,
.seg-api-lookup-form button,
.seg-detail-locate-form input,
.seg-detail-locate-form button,
.seg-toolbar input,
.seg-toolbar select,
.seg-toolbar button,
.seg-multi-filter summary,
.promotion-filter input,
.promotion-filter select,
.promotion-filter button,
.api-upload-controls input,
.api-paste-import textarea,
.api-paste-import button,
.api-search-controls input,
.api-search-controls button,
.api-snapshot-cleaner-controls input,
.api-snapshot-cleaner-controls button,
.api-scraper-controls input,
.api-scraper-controls button,
.api-export-actions button {
  border-radius: 7px;
}

.icon-button,
.text-button,
select {
  background: #fff;
  border-color: #d7e1ec;
  box-shadow: var(--shadow-soft);
}

.text-button {
  color: var(--navy);
}

.text-button:hover,
.icon-button:hover {
  border-color: #b8c7d9;
  background: #f8fbff;
}

.comparison-controls,
.panel,
.kpi,
.period-card,
.metric-card,
.monthly-metric-card,
.rank-card,
.summary-item,
.manual-form,
.manual-detail-card,
.seg-definition,
.seg-panel,
.seg-toolbar,
.promotion-section,
.api-upload-card,
.api-chart-card,
.api-table-card,
.api-export-card,
.api-scraper-card,
.api-analysis-card,
.api-search-card,
.api-snapshot-cleaner-card {
  border-color: #dbe4ef;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.panel-header,
.promotion-section-head,
.business-table-head,
.business-definition h4,
.manual-detail-card h4 {
  background: #fff;
  border-bottom-color: #e3eaf2;
}

.panel-header h3,
.promotion-section-head h3,
.business-table-head h3 {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.panel-header span,
.promotion-section-head p,
.rank-card span,
.summary-item span,
.metric-card header span,
.monthly-metric-card header span {
  color: #667085;
}

.kpi {
  min-height: 92px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.kpi::before,
.promotion-kpis article::before,
.summary-item::before {
  content: "";
  width: 3px;
  border-radius: 999px;
  background: #2563eb;
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
}

.kpi span,
.promotion-kpis span,
.promotion-attribution-grid span {
  font-weight: 700;
  color: #697586;
}

.kpi strong {
  margin-top: 8px;
  color: #101828;
  font-size: 23px;
}

.kpi em {
  margin-top: 7px;
}

.summary-list,
.promotion-kpis,
.promotion-attribution-grid {
  gap: 12px;
}

.summary-item,
.promotion-kpis article,
.promotion-attribution-grid article,
.business-detail-grid article {
  position: relative;
  background: #f8fafd;
  border-color: #e0e8f1;
  box-shadow: none;
}

.summary-item strong,
.promotion-kpis strong,
.promotion-attribution-grid strong {
  color: #111827;
}

.metric-card,
.monthly-metric-card {
  background: #fff;
}

.metric-card header,
.monthly-metric-card header {
  border-bottom-color: #e5ecf4;
}

.chart-wrap {
  background: #fff;
}

.manual-grid {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
}

.manual-form {
  gap: 11px;
  padding: 16px;
  background: #fbfdff;
  box-shadow: none;
}

.manual-form h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid #e4ebf3;
  color: #111827;
  font-size: 14px;
}

.manual-form label,
.manual-detail-controls label,
.comparison-controls label,
.monthly-stats-controls label,
.seg-toolbar label,
.seg-filter-field,
.promotion-filter label,
.api-upload-controls label,
.api-paste-import label,
.api-scraper-controls label {
  color: #667085;
  font-weight: 700;
}

.manual-form input,
.manual-form select,
.manual-detail-controls input,
.comparison-controls input,
.monthly-stats-controls input,
.monthly-stats-controls select,
.seg-toolbar input,
.seg-toolbar select,
.seg-api-lookup-form input,
.promotion-filter input,
.promotion-filter select,
.api-upload-controls input,
.api-paste-import textarea,
.api-search-controls input,
.api-snapshot-cleaner-controls input,
.api-scraper-controls input,
textarea {
  border-color: #d7e1ec;
  background: #fff;
}

.comparison-controls button,
.monthly-stats-controls button,
.manual-form button,
.manual-actions button,
.manual-detail-controls button,
.seg-api-lookup-form button,
.seg-toolbar button,
.promotion-filter button,
.business-toolbar button,
.promotion-form button,
.promotion-section-head button,
.api-paste-import button,
.api-export-actions button,
.api-search-controls button,
.api-snapshot-cleaner-controls button,
.api-scraper-controls button {
  background: #12324d;
  font-weight: 800;
  box-shadow: 0 6px 12px rgba(18, 50, 77, 0.12);
}

.comparison-controls button:hover,
.monthly-stats-controls button:hover,
.manual-form button:hover,
.manual-actions button:hover,
.manual-detail-controls button:hover,
.seg-api-lookup-form button:hover,
.seg-toolbar button:hover,
.promotion-filter button:hover,
.api-paste-import button:hover,
.api-export-actions button:hover,
.api-search-controls button:hover,
.api-snapshot-cleaner-controls button:hover:not(:disabled),
.api-scraper-controls button:hover {
  background: #0e2941;
}

.api-snapshot-cleaner-controls .api-snapshot-danger:hover:not(:disabled) {
  background: #912018;
}

table {
  font-size: 12px;
}

th,
td {
  height: 34px;
  border-bottom-color: #e5ecf4;
}

thead th,
.seg-api-table-wrap th {
  background: #12324d;
  color: #fff;
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody tr:hover {
  background: #edf5ff;
}

.table-wrap,
.manual-detail-table,
.seg-table-wrap,
.seg-api-table-wrap,
.api-table-wrap,
.api-analysis-table,
.ops-table-wrap,
.customer-table-wrap {
  scrollbar-color: #9aa9bc #eef3f8;
  scrollbar-width: thin;
}

.seg-count-grid {
  gap: 10px;
}

.seg-count-grid button {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.seg-count-grid button.active {
  background: #12324d;
  box-shadow: 0 10px 22px rgba(18, 50, 77, 0.16);
}

.seg-definition dl {
  line-height: 1.65;
}

.seg-definition dt,
.business-definition dt {
  color: #1d4ed8;
}

.seg-toolbar {
  background: #fbfdff;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.seg-toolbar > .seg-detail-locate-form {
  grid-column: span 2;
}

.seg-toolbar button {
  min-width: 92px;
}

.seg-multi-menu {
  border-color: #dbe4ef;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.seg-table-wrap {
  border-top: 1px solid #e5ecf4;
}

.seg-table-wrap th:first-child,
.seg-table-wrap th:nth-child(2) {
  background: #12324d;
}

.seg-table-wrap td:first-child,
.seg-table-wrap td:nth-child(2) {
  background: #fff;
}

.seg-private-offer-button,
.seg-label-change-query-button,
.seg-customer-card-button {
  border-color: #bfd5ec;
  background: #f3f8ff;
  color: #12324d;
}

.seg-private-offer-button:hover,
.seg-label-change-query-button:hover,
.seg-customer-card-button:hover {
  border-color: #2563eb;
  background: #eaf3ff;
}

.seg-hit,
.api-rate-band,
.score-pill,
.business-tag {
  border-radius: 6px;
}

.promotion-filter {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.promotion-kpis article,
.promotion-attribution-grid article {
  min-height: 82px;
}

.promotion-section .ops-table-wrap {
  border-top: 1px solid #e5ecf4;
}

.api-analysis-tabs button,
.ops-tabs button,
.ops-recent-range-tabs button {
  border-radius: 7px;
}

.api-analysis-tabs button.active,
.ops-tabs button.active,
.ops-recent-range-tabs button.active {
  background: #12324d;
}

.chart-download-button {
  border-color: #d7e1ec;
  border-radius: 7px;
  background: #fff;
  color: #12324d;
}

.chart-download-button:hover {
  border-color: #b8c7d9;
  background: #f8fbff;
}

/* 2026-06-26 light pass: soften sidebar, table headers, and primary actions */
:root {
  --bg: #f6f8fc;
  --panel: #fbfdff;
  --line: #dbe5f0;
  --navy: #3f789c;
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.sidebar {
  background: #f8fbff;
  color: #17324c;
  border-right: 1px solid #dbe5f0;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.035);
}

.brand-mark {
  background: #2563eb;
  color: #fff;
}

.brand-block p,
.source-note,
.product-nav button span {
  color: #667085;
}

.nav-group {
  border-color: #dce6f1;
  background: #fff;
}

.nav-group summary {
  background: #edf4fb;
}

.nav-group summary strong {
  color: #17324c;
}

.nav-group summary span {
  color: #6b7a90;
}

.product-nav button {
  color: #223b53;
  background: transparent;
}

.product-nav button:hover {
  background: #edf4fb;
}

.product-nav button.active {
  background: #e7f0fb;
  color: #17324c;
  border-color: #c7d9ec;
}

.nav-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 8px;
  align-items: center;
}

.nav-group-title {
  display: block;
  min-width: 0;
  margin-top: 0;
  color: inherit;
}

.nav-jump-select {
  width: 106px;
  height: 30px;
  border: 1px solid #cfe0ef;
  border-radius: 6px;
  padding: 0 24px 0 8px;
  background: #fbfdff;
  color: #17324c;
  font: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.nav-jump-select:focus {
  border-color: #8eb6d4;
  box-shadow: 0 0 0 3px rgba(63, 120, 156, 0.12);
}

.source-note {
  border-color: #d7e6f5;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  color: #506176;
}

.source-note span {
  color: #3b6f95;
  font-weight: 800;
}

.source-note strong {
  color: #17324c;
}

thead th,
.seg-api-table-wrap th,
.seg-table-wrap th:first-child,
.seg-table-wrap th:nth-child(2) {
  background: #edf4fb;
  color: #17324c;
  border-bottom-color: #c7d9ec;
}

.comparison-controls button,
.monthly-stats-controls button,
.manual-form button,
.manual-actions button,
.manual-detail-controls button,
.seg-api-lookup-form button,
.seg-toolbar button,
.promotion-filter button,
.business-toolbar button,
.promotion-form button,
.promotion-section-head button,
.api-export-actions button,
.api-search-controls button,
.api-scraper-controls button,
.api-analysis-tabs button.active,
.ops-tabs button.active,
.ops-recent-range-tabs button.active {
  background: #3f789c;
  box-shadow: 0 5px 12px rgba(47, 93, 124, 0.12);
}

.seg-count-grid button.active {
  background: #e7f0fb;
  color: #17324c;
  border-color: #b8d0e6;
  box-shadow: 0 5px 12px rgba(47, 93, 124, 0.08);
}

.seg-count-grid button.active span,
.seg-count-grid button.active strong {
  color: #17324c;
}

.comparison-controls button:hover,
.monthly-stats-controls button:hover,
.manual-form button:hover,
.manual-actions button:hover,
.manual-detail-controls button:hover,
.seg-api-lookup-form button:hover,
.seg-toolbar button:hover,
.promotion-filter button:hover,
.api-export-actions button:hover,
.api-search-controls button:hover,
.api-scraper-controls button:hover {
  background: #326781;
}

.kpi::before,
.promotion-kpis article::before,
.summary-item::before {
  background: #4f8fc0;
}

/* 2026-06-26 Twinkle clock: live sidebar clock */
.twinkle-clock-widget {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 10px 12px 12px;
  overflow: hidden;
  flex: none;
  margin-top: 0;
}

.sidebar:has(.twinkle-clock-widget) {
  overflow: hidden;
  max-height: 100vh;
}

.sidebar:has(.twinkle-clock-widget) .product-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scroll-padding: 8px;
}

.nav-group:not([open]) .nav-group-items {
  display: none;
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.twinkle-clock-face {
  position: relative;
  width: 146px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 7px 12px rgba(15, 23, 42, 0.14));
}

.twinkle-clock-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.twinkle-clock-time {
  color: #17324c;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}

@media (max-height: 820px) {
  .sidebar {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-block {
    padding-bottom: 6px;
  }

  .twinkle-clock-widget {
    min-height: 118px;
    padding: 6px 8px 8px;
  }

  .twinkle-clock-face {
    width: 88px;
  }

  .twinkle-clock-time {
    font-size: 16px;
  }

  .nav-group-items {
    max-height: 280px;
  }
}

@media (max-width: 1280px) {
  .order-detail-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* 2026-06-27 Twinkle figures: module-specific floating product charms */
.topbar {
  min-height: 108px;
  position: relative;
  overflow: hidden;
}

.twinkle-top-charms {
  position: absolute;
  top: 10px;
  right: clamp(236px, 22vw, 340px);
  bottom: 8px;
  left: 420px;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  padding-right: 0;
  pointer-events: none;
}

.topbar > div:not(.twinkle-top-charms) {
  position: relative;
  z-index: 1;
}

.twinkle-top-charm {
  --float: 0px;
  --tilt: 0deg;
  --scale: 1;
  position: relative;
  width: 76px;
  height: 88px;
  flex: 0 0 76px;
  display: grid;
  place-items: end center;
  opacity: 0.94;
  transform: translateY(var(--float)) rotate(var(--tilt)) scale(var(--scale));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 13px 16px rgba(35, 63, 92, 0.14));
}

.twinkle-top-charm::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  z-index: -1;
  width: 58px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(112, 156, 198, 0.18), rgba(112, 156, 198, 0));
  transform: translateX(-50%) rotate(-2deg);
}

.twinkle-top-charm img {
  width: auto;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.twinkle-top-charm-1 {
  --float: -2px;
  --tilt: -5deg;
  --scale: 0.92;
}

.twinkle-top-charm-2 {
  --float: 6px;
  --tilt: 4deg;
  --scale: 1;
}

.twinkle-top-charm-3 {
  --float: -4px;
  --tilt: 2deg;
  --scale: 0.96;
}

.twinkle-top-charm-4 {
  --float: 4px;
  --tilt: -3deg;
  --scale: 1.02;
}

.twinkle-top-charm-5 {
  --float: -1px;
  --tilt: 5deg;
  --scale: 0.9;
}

@media (max-width: 1180px) {
  .twinkle-top-charms {
    left: 430px;
    gap: 0;
  }

  .twinkle-top-charm {
    width: 66px;
    height: 78px;
  }
}

/* Final responsive overrides live after legacy report styles so they cannot be
   accidentally undone by older breakpoint blocks above. */
.dashboard {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.report-ai-settings {
  grid-template-columns:
    minmax(150px, 0.75fr)
    minmax(210px, 1.15fr)
    minmax(130px, 0.6fr)
    auto
    minmax(150px, 0.75fr);
}

.report-surface,
.report-control-panel,
.report-control-body,
.report-document,
.report-document > section,
.report-doc-cover {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.report-main-row,
.report-ai-settings {
  width: auto;
  max-width: none;
  min-width: 0;
}

.report-main-row > *,
.report-ai-settings > * {
  min-width: 0;
}

#reportKeyStatus {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .report-controls,
  .report-ai-settings,
  .report-kpi-grid,
  .report-pill-grid,
  .report-two-col,
  .report-action-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .report-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .report-doc-cover h2 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }
}

/* 2026-07-27 responsive, progressive disclosure and large-table safeguards */
body {
  min-width: 0;
  min-height: 100dvh;
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
}

.dashboard,
.topbar,
.content-grid > *,
.report-two-col > *,
.report-control-body,
.panel {
  min-width: 0;
}

.topbar {
  gap: 14px;
}

.toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.manual-detail-table,
.order-detail-table-wrap,
.api-table-wrap,
.api-analysis-table,
.ops-table-wrap,
.seg-api-table-wrap {
  max-height: min(640px, 72vh);
  overflow: auto;
  overscroll-behavior: contain;
}

.manual-detail-table thead th,
.order-detail-table-wrap thead th,
.api-table-wrap thead th,
.api-analysis-table thead th,
.ops-table-wrap thead th,
.seg-api-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.manual-detail-grid {
  align-items: start;
}

.manual-import-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.manual-data-quality-status {
  flex-basis: 100%;
  color: #2f6f58;
  font-size: 11px;
}

.manual-data-quality-status.is-warning {
  color: #a15c24;
}

.manual-detail-card-head,
.manual-detail-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-detail-card-head {
  justify-content: space-between;
  flex-wrap: wrap;
}

.manual-detail-pager {
  color: var(--muted);
  font-size: 12px;
}

.manual-detail-pager button {
  min-height: 30px;
  padding: 4px 10px;
}

.daily-task-health {
  display: block;
  margin-left: 22px;
  color: #4f6f61;
  font-size: 10px;
  font-weight: 500;
}

.daily-task-health.is-late {
  color: #a15c24;
}

.report-action-form {
  display: grid;
  grid-template-columns: 100px minmax(150px, 0.8fr) minmax(240px, 1.6fr) minmax(120px, 0.7fr) 150px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.report-action-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.report-action-form input,
.report-action-form select {
  width: 100%;
  min-width: 0;
}

.mobile-nav-toggle,
.mobile-nav-backdrop {
  display: none;
}

.has-horizontal-overflow {
  position: relative;
  box-shadow: inset -18px 0 18px -22px rgba(26, 58, 86, 0.55);
}

.has-horizontal-overflow:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.table-column-chooser {
  margin: 0 0 8px auto;
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
}

.table-column-chooser summary {
  cursor: pointer;
  color: #315879;
}

.table-column-chooser > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  max-width: min(820px, 92vw);
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-column-chooser label {
  white-space: nowrap;
}

@media (max-width: 1360px) {
  .twinkle-top-charms {
    opacity: 0.45;
    transform: scale(0.82);
    transform-origin: right center;
  }

  .report-action-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    width: min(320px, 86vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 18px 0 50px rgba(15, 35, 55, 0.24);
  }

  .mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-nav-toggle {
    display: inline-flex;
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 85;
    border: 1px solid #cbd9e7;
    border-radius: 8px;
    background: #fff;
    color: #17324c;
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(15, 35, 55, 0.12);
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    border: 0;
    background: rgba(15, 35, 55, 0.34);
  }

  .mobile-nav-backdrop:not([hidden]) {
    display: block;
  }

  .dashboard {
    width: 100%;
    padding-top: 48px;
  }

  .topbar,
  .comparison-controls,
  .report-main-row {
    flex-wrap: wrap;
  }

  .content-grid,
  .content-grid.with-side,
  .content-grid.power-overview-layout,
  .manual-grid,
  .report-two-col {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .report-controls,
  .report-ai-settings,
  .report-kpi-grid,
  .report-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .order-detail-search {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .order-detail-search label {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .order-detail-search input,
  .order-detail-search button {
    width: 100%;
    min-width: 0;
  }

  .dashboard {
    padding-inline: 10px;
  }

  .topbar {
    align-items: flex-start;
  }

  .twinkle-top-charms {
    display: none;
  }

  .toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .comparison-controls,
  .report-controls,
  .report-ai-settings,
  .report-kpi-grid,
  .report-pill-grid,
  .report-action-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .manual-actions {
    align-items: stretch;
  }

  .manual-actions > button,
  .manual-actions > label {
    width: 100%;
  }

  .manual-order-edit-shell {
    padding: 18px;
  }

  .manual-order-edit-shell > header {
    gap: 10px;
  }

  .manual-order-edit-shell h2 {
    font-size: 19px;
  }

  .manual-order-edit-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .twinkle-top-charms {
    display: none;
  }
}

/* 2026-06-28 Twinkle landing transition */
.dashboard-entry-curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(224, 240, 255, 0.95), transparent 32%),
    linear-gradient(135deg, #f7fbff, #eef5fb);
  color: #405872;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-entry-curtain[hidden] {
  display: none;
}

.dashboard-entry-curtain img {
  width: min(220px, 32vw);
  filter: drop-shadow(0 20px 28px rgba(44, 75, 102, 0.2));
}

/* 2026-06-27 Reports: weekly/monthly Word export */
.report-surface {
  display: none;
}

.report-control-panel {
  margin-bottom: 16px;
}

.report-control-panel .panel-header {
  align-items: flex-start;
}

.report-control-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.report-main-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: end;
}

.report-week-range-note {
  margin: -6px 0 0;
}

.report-ai-settings {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(260px, 1.2fr) minmax(180px, 0.7fr) auto minmax(240px, 0.9fr);
  gap: 12px;
  align-items: end;
  border-top: 1px solid #e6eef6;
  padding-top: 14px;
}

.report-controls label,
.report-ai-settings label {
  display: grid;
  gap: 6px;
  color: #526176;
  font-size: 12px;
}

.report-ai-settings .report-ai-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #304256;
  font-weight: 700;
}

.report-ai-settings .report-ai-toggle input {
  width: 38px;
  height: 22px;
  margin: 0;
  appearance: none;
  border: 1px solid #b8cbe0;
  border-radius: 999px;
  background: #e9f1f8;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.report-ai-settings .report-ai-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(44, 67, 89, 0.25);
  transition: transform 0.18s ease;
}

.report-ai-settings .report-ai-toggle input:checked {
  border-color: #4f8fc0;
  background: #4f8fc0;
}

.report-ai-settings .report-ai-toggle input:checked::after {
  transform: translateX(16px);
}

.report-controls input,
.report-controls select,
.report-ai-settings input,
.report-ai-settings select {
  width: 100%;
  height: 36px;
  border: 1px solid #cfe0ef;
  border-radius: 6px;
  background: #fff;
  color: #102033;
  padding: 0 10px;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.report-main-row .report-actions {
  grid-column: 1 / -1;
}

.report-actions button {
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #4f8fc0;
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}

.report-actions #reportExportPdf {
  background: #1d6d9e;
}

.report-actions #reportExportWord {
  background: #5b9aca;
}

.report-export-status {
  grid-column: 1 / -1;
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #5e7189;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-export-status:empty {
  display: none;
}

.report-export-status a {
  color: #2d78ae;
  font-weight: 700;
  text-decoration: none;
}

.report-document {
  display: grid;
  gap: 14px;
}

.report-document > section,
.report-doc-cover {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 50, 76, 0.04);
  padding: 18px;
}

.report-doc-cover {
  min-height: 132px;
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, #f4f9ff, #ffffff);
}

.report-doc-cover p {
  margin: 0;
  color: #7b8798;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.report-doc-cover h2 {
  margin: 6px 0;
  color: #102033;
  font-size: 28px;
}

.report-doc-cover span,
.report-muted {
  color: #6b7a90;
  font-size: 12px;
}

.report-document h3 {
  margin: 0 0 12px;
  color: #102033;
  font-size: 17px;
}

.report-document h4 {
  margin: 0 0 10px;
  color: #17324c;
  font-size: 14px;
}

.report-business-section > h3,
.report-business-section .report-section-intro > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.report-business-section > h3::before,
.report-business-section .report-section-intro > h3::before {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #2878aa;
  content: "";
}

.report-business-section .report-table-wrap + h4 {
  margin-top: 18px;
}

.report-summary {
  background: #f7fbff;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  padding: 12px;
  color: #17324c;
}

.report-summary-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 10px;
  padding: 3px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.report-summary-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  color: #526176;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.report-summary-switch button.is-active {
  color: #fff;
  background: #2878aa;
}

.report-summary-switch button:disabled {
  color: #9aabba;
  cursor: not-allowed;
}

.report-summary p {
  margin: 0 0 8px;
}

.report-summary p:last-child {
  margin-bottom: 0;
}

.report-kpi-grid,
.report-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-kpi,
.report-pill-grid span {
  min-width: 0;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px 12px;
}

.report-kpi span,
.report-kpi em,
.report-pill-grid b {
  display: block;
  color: #6b7a90;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.report-kpi strong {
  display: block;
  margin: 5px 0;
  color: #102033;
  font-size: 20px;
  line-height: 1.1;
}

.report-summary-wrap {
  margin-bottom: 12px;
}

.report-summary-matrix {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
}

.report-summary-cell {
  width: 25%;
  min-height: 76px;
  padding: 10px 12px !important;
  vertical-align: top;
  background: #f8fbff;
}

.report-summary-cell span,
.report-summary-cell em {
  display: block;
  color: #6b7a90;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
}

.report-summary-cell strong {
  display: block;
  margin: 5px 0;
  color: #102033;
  font-size: 18px;
  line-height: 1.2;
}

.report-summary-cell-empty {
  background: #fff;
}

.report-pill-grid {
  margin-bottom: 12px;
}

.report-pill-grid span {
  color: #102033;
  font-size: 16px;
  font-weight: 800;
}

.report-table-wrap {
  overflow: auto;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
}

.report-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}

.report-table-wrap th,
.report-table-wrap td {
  border-bottom: 1px solid #e5edf6;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.report-table-wrap th {
  background: #eaf2fb;
  color: #17324c;
  font-weight: 800;
}

.report-table-wrap tr:last-child td {
  border-bottom: 0;
}

.report-power-initial-date {
  color: #6b7a90;
  font-size: 11px;
  white-space: nowrap;
}

.report-empty {
  border: 1px dashed #cfe0ef;
  border-radius: 8px;
  color: #6b7a90;
  padding: 14px;
  text-align: center;
}

.report-trend-svg {
  display: block;
  width: 100%;
  max-height: 240px;
  margin-top: 12px;
}

.report-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-product-name {
  color: #17324c;
  white-space: nowrap;
}

.report-compare-current,
.report-power-current {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.report-compare-current strong,
.report-power-current strong {
  color: #102033;
  font-size: 14px;
  line-height: 1.15;
}

.report-compare-delta,
.report-power-current span {
  color: #60758b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.report-compare-delta.is-up {
  color: #177245;
}

.report-compare-delta.is-down {
  color: #b4473a;
}

.report-compare-delta.is-flat,
.report-compare-delta.is-unavailable {
  color: #60758b;
}

.report-product-metric {
  display: grid;
  min-width: 145px;
  gap: 5px;
}

.report-product-metric strong {
  color: #102033;
  font-size: 16px;
  line-height: 1.2;
}

.report-product-metric span {
  display: block;
  color: #6b7a90;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.report-product-metric em {
  color: #2f6f99;
  font-style: normal;
  font-weight: 800;
}

.report-product-metric em.is-up {
  color: #177245;
}

.report-product-metric em.is-down {
  color: #b4473a;
}

.report-product-metric em.is-flat,
.report-product-metric em.is-unavailable {
  color: #60758b;
}

.report-product-api-value {
  color: #17324c;
  font-size: 14px;
  white-space: nowrap;
}

.report-market-stack {
  display: grid;
  gap: 18px;
}

.report-market-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  background: #fbfdff;
}

.report-market-block h4 {
  margin: 0 0 8px;
  color: #17324c;
  font-size: 15px;
}

.report-market-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.report-market-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #d7e6f4;
  border-radius: 7px;
  background: #f3f8fd;
  color: #60758b;
  font-size: 11px;
  line-height: 1;
}

.report-market-stats strong {
  color: #17324c;
  font-size: 13px;
}

.report-market-note {
  margin: -2px 0 10px;
  color: #6b7a90;
  font-size: 11px;
  line-height: 1.5;
}

/* 2026-08-11 月报：经营总览、月度趋势、评论星级与参数附录 */
.report-document-monthly,
.report-document-monthly > section,
.report-document-monthly .report-section-intro,
.report-document-monthly .report-section-detail {
  min-width: 0;
  max-width: 100%;
}

.report-document-monthly {
  width: 100%;
  overflow-x: clip;
}

.report-overview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.report-overview-card {
  --report-overview-accent: #2878aa;
  grid-column: span 3;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5e4f1;
  border-top: 4px solid var(--report-overview-accent);
  border-radius: 10px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--report-overview-accent) 5%, #ffffff), #ffffff 70%);
  box-shadow: 0 7px 18px rgba(23, 50, 76, 0.045);
  padding: 15px 16px 16px;
}

.report-overview-card[data-group="order"] {
  --report-overview-accent: #ef8b18;
}

.report-overview-card[data-group="traffic"] {
  --report-overview-accent: #2878aa;
}

.report-overview-card[data-report-metric="test"],
.report-overview-card[data-report-metric="new"],
.report-overview-card[data-report-metric="repeat"] {
  grid-column: span 2;
}

.report-order-lifecycle-card {
  background:
    linear-gradient(145deg, #fff8ef, #ffffff 70%);
}

.report-overview-card > header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 13px;
}

.report-overview-card > header > span {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 36px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--report-overview-accent) 11%, #ffffff);
  color: var(--report-overview-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0 7px;
}

.report-overview-card > header > h4 {
  min-width: 0;
  margin: 0;
  color: #17324c;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.report-overview-metric {
  min-width: 0;
}

.report-overview-metric + .report-overview-metric {
  margin-top: 13px;
  border-top: 1px solid #dfeaf4;
  padding-top: 12px;
}

.report-overview-value-label {
  display: block;
  color: #6b7a90;
  font-size: 12px;
  font-weight: 700;
}

.report-overview-metric > strong {
  display: block;
  min-width: 0;
  margin: 6px 0 9px;
  color: #102f4a;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.report-overview-metric.is-secondary > strong {
  font-size: 22px;
}

.report-overview-comparisons {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.report-overview-compare-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}

.report-overview-compare-line b,
.report-overview-compare-line small {
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.report-overview-compare-line small {
  color: #6b7a90;
  font-size: 11px;
}

.report-monthly-overview .report-muted,
.report-monthly-trend-section > .report-section-intro > .report-muted {
  font-size: 13px;
  line-height: 1.6;
}

.report-monthly-trends {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin-top: 12px;
}

.report-trend-group {
  min-width: 0;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  background: #fbfdff;
  padding: 13px;
}

.report-trend-group-heading {
  margin-bottom: 11px;
  border-left: 4px solid #ef8b18;
  border-radius: 0 7px 7px 0;
  background: #fff8ee;
  padding: 8px 10px;
}

.report-trend-group[data-group="traffic"] .report-trend-group-heading {
  border-left-color: #2878aa;
  background: #f1f7fd;
}

.report-trend-group-heading h4 {
  margin: 0 0 3px;
  color: #17324c;
  font-size: 14px;
}

.report-trend-group-heading p {
  margin: 0;
  color: #6b7a90;
  font-size: 11px;
  line-height: 1.45;
}

.report-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.report-trend-card {
  --report-trend-accent: #ef8b18;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.report-trend-card:nth-child(odd):last-child {
  grid-column: 1 / -1;
}

.report-trend-card[data-group="traffic"] {
  --report-trend-accent: #2878aa;
}

.report-trend-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 4px;
}

.report-trend-card > header span {
  min-width: 0;
  color: #526176;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.report-trend-card > header strong {
  flex: 0 1 auto;
  min-width: 0;
  color: #102f4a;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
}

.report-monthly-trend-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.report-monthly-trend-svg polyline {
  stroke: var(--report-trend-accent);
  stroke-width: 2;
}

.report-monthly-trend-svg circle {
  fill: #ffffff;
  stroke: var(--report-trend-accent);
  stroke-width: 1.5;
}

.report-monthly-trend-svg circle.is-latest {
  fill: var(--report-trend-accent);
}

.report-monthly-trend-svg .report-trend-point-label {
  fill: var(--report-trend-accent);
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 3.2px;
}

.report-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.report-rating-grid article {
  min-width: 0;
  border: 1px solid #cfe0ef;
  border-left: 4px solid #2878aa;
  border-radius: 8px;
  background: linear-gradient(145deg, #f3f8fd, #ffffff);
  padding: 13px 14px;
}

.report-rating-grid span {
  display: block;
  color: #6b7a90;
  font-size: 11px;
  font-weight: 700;
}

.report-rating-grid strong {
  display: block;
  margin-top: 5px;
  color: #102f4a;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.report-rating-grid strong.is-missing {
  color: #7c91a5;
  font-family: inherit;
  font-size: 14px;
}

.report-rating-grid small {
  display: block;
  margin-top: 7px;
  color: #637a91;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.report-power-date {
  color: #6b7a90;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.report-monthly-appendix .report-table-wrap {
  max-width: 100%;
}

.report-monthly-appendix .report-table-wrap table {
  table-layout: fixed;
}

.report-monthly-appendix th:first-child,
.report-monthly-appendix td:first-child {
  width: 24%;
  color: #17324c;
  font-weight: 800;
}

.report-monthly-appendix td {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.report-document ol {
  margin: 0;
  padding-left: 22px;
  color: #17324c;
}

.report-document li + li {
  margin-top: 6px;
}

/* 2026-08-08 汇报版周报：面向周会的单页重点数据与行动清单 */
.report-briefing-document {
  gap: 16px;
}

.report-briefing-cover {
  background:
    linear-gradient(100deg, rgba(40, 120, 170, 0.12), rgba(255, 255, 255, 0.98) 46%),
    #ffffff;
}

.report-briefing-cover p {
  color: #2878aa;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.report-briefing-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-briefing-section-heading > span {
  display: inline-grid;
  width: 29px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #eaf4fc;
  color: #2878aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.report-briefing-source-note {
  border-left: 4px solid #2878aa;
  border-radius: 0 8px 8px 0;
  background: #f3f8fd;
  padding: 9px 11px;
}

.report-briefing-overview-grid {
  margin-top: 0;
}

.report-briefing-overview-card {
  min-height: 218px;
}

.report-briefing-month-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed #c9dceb;
}

.report-briefing-month-total span {
  color: #637a91;
  font-size: 10px;
  font-weight: 600;
}

.report-briefing-month-total strong {
  color: #173f5d;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.report-briefing-cloud-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #c9dceb;
}

.report-briefing-cloud-breakdown-title {
  grid-column: 1 / -1;
  color: #637a91;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.report-briefing-cloud-breakdown-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.report-briefing-cloud-breakdown-item b {
  min-width: 0;
  overflow: hidden;
  color: #526d84;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-briefing-cloud-breakdown-item strong {
  flex: 0 0 auto;
  color: #173f5d;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.report-briefing-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid #d8e5f2;
}

.report-briefing-definitions > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #d8e5f2;
  border-left: 3px solid #2878aa;
  background: #fbfdff;
  color: #4e6b84;
  font-size: 12px;
  line-height: 1.48;
}

.report-briefing-definitions > div[data-group="order"] {
  border-left-color: #ef8b18;
  background: #fffdf9;
}

.report-briefing-definitions strong {
  color: #173f5d;
  font-size: 12px;
  line-height: 1.35;
}

.report-briefing-definitions span {
  min-width: 0;
}

.report-briefing-products-section table {
  table-layout: fixed;
}

.report-briefing-products-section th:first-child,
.report-briefing-products-section td:first-child {
  width: 24%;
}

.report-briefing-product-table thead tr:first-child th {
  border-bottom-color: #b8d2e7;
  text-align: center;
}

.report-briefing-product-table thead tr:nth-child(2) th,
.report-briefing-product-table tbody td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-briefing-product-table tbody td > strong {
  color: #102f4a;
}

.report-briefing-products-section tr.is-unallocated td {
  background: #fff8ee;
}

.report-briefing-performance-block {
  margin-top: 18px;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  background: #fbfdff;
  overflow: hidden;
}

.report-briefing-subheading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #d8e5f2;
  background: linear-gradient(90deg, #f3f8fd, #ffffff);
}

.report-briefing-subheading h4 {
  margin: 0;
  color: #173f5d;
  font-size: 14px;
}

.report-briefing-subheading p {
  margin: 4px 0 0;
  color: #637a91;
  font-size: 11px;
  line-height: 1.45;
}

.report-briefing-subheading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf4fc;
  color: #2878aa;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.report-briefing-ranking-summary .report-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.report-briefing-ranking-matrix {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.report-briefing-ranking-matrix th,
.report-briefing-ranking-matrix td {
  min-width: 0;
  padding: 9px 7px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.report-briefing-ranking-matrix thead th {
  color: #173f5d;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-briefing-ranking-matrix th:first-child {
  width: 102px;
  background: #f3f8fd;
  color: #526d84;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.report-briefing-ranking-matrix td > strong {
  color: #173f5d;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

.report-briefing-ranking-matrix .report-compare-delta {
  display: inline-block;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.report-briefing-api-summary {
  background: #fff;
}

.report-briefing-api-table {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.report-briefing-api-table table {
  min-width: 0;
  table-layout: fixed;
  border: 0;
}

.report-briefing-api-table th,
.report-briefing-api-table td {
  width: 33.333%;
  padding: 11px 14px;
  text-align: center;
  vertical-align: middle;
}

.report-briefing-api-table th {
  color: #637a91;
  font-size: 11px;
}

.report-briefing-api-table small {
  color: #637a91;
  font-size: 11px;
  font-weight: 600;
}

.report-briefing-api-table strong {
  color: #173f5d;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.report-briefing-api-table strong.report-compare-delta {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.report-cloud-market-badge {
  display: inline-block;
  margin-left: 8px;
  border: 1px solid #f0c990;
  border-radius: 999px;
  background: #fff7eb;
  color: #b86205;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
}

.report-cloud-market-badge[data-cloud="other"] {
  border-color: #c9dceb;
  background: #f3f8fd;
  color: #536e86;
}

.report-briefing-process-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 11px 0 14px;
}

.report-briefing-process-card {
  min-width: 0;
  border: 1px solid #cfe0ef;
  border-left: 4px solid #2878aa;
  border-radius: 9px;
  background: linear-gradient(145deg, #f3f8fd, #ffffff);
  padding: 13px 14px;
}

.report-briefing-process-card > span,
.report-briefing-process-card > small,
.report-briefing-process-card > b {
  display: block;
}

.report-briefing-process-card > span {
  color: #637a91;
  font-size: 12px;
  font-weight: 800;
}

.report-briefing-process-card > strong {
  display: block;
  margin: 5px 0 6px;
  color: #102f4a;
  font-family: "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.report-briefing-process-card > small {
  color: #637a91;
  font-size: 11px;
}

.report-briefing-process-card > b {
  margin-top: 6px;
  font-size: 12px;
}

.report-briefing-process-power h4 {
  margin-top: 0;
}

.report-briefing-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-briefing-cloud-list {
  display: grid;
  gap: 12px;
}

.report-briefing-cloud-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-briefing-cloud {
  --report-cloud-accent: #2878aa;
  position: relative;
  overflow: hidden;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.report-briefing-cloud::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--report-cloud-accent);
  content: "";
}

.report-briefing-cloud[data-cloud="aliyun"] { --report-cloud-accent: #ef7b24; }
.report-briefing-cloud[data-cloud="huawei"] { --report-cloud-accent: #d74a4a; }
.report-briefing-cloud[data-cloud="tencent"] { --report-cloud-accent: #2878aa; }
.report-briefing-cloud[data-cloud="baidu"] { --report-cloud-accent: #7656c7; }

.report-briefing-cloud > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px;
  padding-left: 4px;
}

.report-briefing-cloud > header h4 {
  margin: 0;
  color: #17324c;
  font-size: 15px;
}

.report-briefing-cloud > header span {
  border: 1px solid color-mix(in srgb, var(--report-cloud-accent) 28%, #d8e5f2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--report-cloud-accent) 7%, #ffffff);
  color: var(--report-cloud-accent);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.report-briefing-kpi {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  background: linear-gradient(145deg, #f7fbff, #ffffff);
  padding: 13px 14px;
}

.report-briefing-kpi::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--report-cloud-accent, #2878aa);
  content: "";
}

.report-briefing-kpi span,
.report-briefing-kpi em,
.report-briefing-kpi b {
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

.report-briefing-kpi span,
.report-briefing-kpi em {
  color: #6b7a90;
  font-style: normal;
}

.report-briefing-kpi strong {
  display: block;
  margin: 5px 0;
  color: #102033;
  font-size: 24px;
  line-height: 1.1;
}

.report-briefing-kpi b {
  margin-top: 4px;
  color: #60758b;
}

.report-briefing-kpi b.is-up {
  color: #177245;
}

.report-briefing-kpi b.is-down {
  color: #b4473a;
}

.report-briefing-action-area {
  display: grid;
  gap: 12px;
}

.report-briefing-action-form {
  display: grid;
  grid-template-columns: 92px minmax(220px, 0.8fr) minmax(320px, 1.8fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px dashed #b9d2e6;
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.report-briefing-action-form label {
  display: grid;
  gap: 6px;
  color: #526176;
  font-size: 12px;
  font-weight: 700;
}

.report-briefing-action-form input,
.report-briefing-action-form textarea {
  width: 100%;
  border: 1px solid #cfe0ef;
  border-radius: 6px;
  background: #ffffff;
  color: #102033;
  font: inherit;
  padding: 8px 10px;
}

.report-briefing-action-form textarea {
  min-height: 84px;
  resize: vertical;
}

.report-briefing-action-form button,
.report-briefing-action-edit,
.report-briefing-action-delete {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: #2878aa;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.report-briefing-action-form button {
  padding: 0 14px;
}

.report-briefing-action-form-actions,
.report-briefing-action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-briefing-action-form-actions {
  align-items: end;
}

.report-briefing-action-cancel {
  background: #6b7a90 !important;
}

.report-briefing-action-status {
  margin: -2px 0 0;
  color: #177245;
  font-size: 12px;
  font-weight: 700;
}

.report-briefing-action-list {
  display: grid;
  gap: 9px;
}

.report-briefing-action-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.report-briefing-action-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #2878aa;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.report-briefing-action-item h4 {
  margin: 1px 0 5px;
  color: #17324c;
  font-size: 14px;
}

.report-briefing-action-item p {
  margin: 0;
  color: #526176;
  font-size: 12px;
  line-height: 1.65;
}

.report-briefing-action-edit,
.report-briefing-action-delete {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.report-briefing-action-edit {
  background: #2878aa;
}

.report-briefing-action-delete {
  background: #6b7a90;
}

@media (max-width: 1180px) {
  .report-controls,
  .report-ai-settings,
  .report-kpi-grid,
  .report-pill-grid,
  .report-two-col {
    grid-template-columns: 1fr 1fr;
  }

  .report-overview-grid,
  .report-trend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-overview-card,
  .report-overview-card[data-report-metric="test"],
  .report-overview-card[data-report-metric="new"],
  .report-overview-card[data-report-metric="repeat"] {
    grid-column: auto;
  }

  .report-briefing-action-form {
    grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr);
  }

  .report-briefing-kpis,
  .manual-cloud-weekly-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-briefing-action-form-actions {
    grid-column: 1 / -1;
  }

  .report-briefing-action-form button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .report-overview-grid,
  .report-trend-grid,
  .report-rating-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-trend-group {
    padding: 10px;
  }

  .report-product-metric {
    min-width: 132px;
  }

  .report-market-block {
    padding: 11px;
  }

  .report-briefing-kpis {
    grid-template-columns: 1fr;
  }

  .report-briefing-process-scores {
    grid-template-columns: 1fr;
  }

  .report-briefing-definitions {
    grid-template-columns: 1fr;
  }

  .report-briefing-definitions > div {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .report-briefing-cloud-row {
    grid-template-columns: 1fr;
  }

  .manual-cloud-weekly-metrics,
  .manual-rating-metrics {
    grid-template-columns: 1fr;
  }

  .report-briefing-action-form {
    grid-template-columns: 1fr;
  }

  .report-briefing-action-form-actions {
    width: 100%;
  }

  .report-briefing-action-form-actions button {
    flex: 1 1 auto;
  }

  .report-briefing-action-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .report-briefing-products-section th:first-child,
  .report-briefing-products-section td:first-child {
    width: auto;
  }

  .report-briefing-subheading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .report-briefing-ranking-matrix {
    min-width: 780px;
  }

  .report-briefing-api-table {
    overflow-x: auto;
  }

  .report-briefing-api-table table {
    min-width: 420px;
  }

  .report-briefing-action-delete {
    grid-column: auto;
  }

  .report-briefing-action-actions {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .report-document-monthly,
  .report-document-monthly > section,
  .report-document-monthly .report-section-intro,
  .report-document-monthly .report-section-detail,
  .report-overview-grid,
  .report-overview-card,
  .report-monthly-trends,
  .report-trend-group,
  .report-trend-grid,
  .report-trend-card,
  .report-rating-grid,
  .report-rating-grid article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .report-document-monthly > section,
  .report-document-monthly > .report-doc-cover {
    padding: 13px;
  }

  .report-document-monthly .report-section-intro > h3 {
    gap: 7px;
    font-size: 16px;
  }

  .report-overview-grid,
  .report-monthly-trends {
    gap: 10px;
  }

  .report-overview-card {
    padding: 12px;
  }

  .report-overview-card > header > h4 {
    font-size: 15px;
  }

  .report-overview-value-label {
    font-size: 11px;
  }

  .report-overview-metric > strong {
    font-size: 22px;
  }

  .report-overview-metric.is-secondary > strong {
    font-size: 18px;
  }

  .report-overview-compare-line {
    align-items: flex-start;
  }

  .report-overview-compare-line b {
    font-size: 11px;
  }

  .report-overview-compare-line small {
    font-size: 10px;
  }

  .report-trend-group {
    padding: 9px;
  }

  .report-trend-card > header {
    align-items: flex-start;
  }

  .report-monthly-trend-svg {
    min-height: 118px;
  }

  .report-monthly-trend-svg .report-trend-point-label {
    font-size: 15.5px;
  }

  .report-monthly-trend-svg .report-trend-point-label[data-mobile-hidden="true"] {
    display: none;
  }

  .report-rating-grid article {
    padding: 12px;
  }

  .report-monthly-appendix .report-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .report-monthly-appendix .report-table-wrap table {
    min-width: 620px;
  }
}

/* 2026-07-27 D/F/H: navigation, accessibility and data center */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: #10273d;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease;
}

.skip-link:focus { transform: translateY(0); }

.topbar h1 {
  margin: 6px 0 0;
  font-size: 28px;
}

.eyebrow,
.panel-header span,
.empty-note,
.manual-tool-status,
.operations-muted {
  color: var(--muted);
}

.nav-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.nav-group summary::before {
  content: "›";
  grid-column: 2;
  grid-row: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  transform: rotate(0);
  transition: transform 0.16s ease;
}

.nav-group summary .nav-jump-select {
  grid-column: 2;
  grid-row: 1;
  margin-right: 22px;
}

.nav-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #edf4fb;
}

.product-nav {
  align-content: start;
  grid-auto-rows: max-content;
}

.product-nav .nav-group-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 50px;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #17324c;
}

.product-nav .nav-group-toggle:hover {
  background: transparent;
}

.nav-group-toggle::before {
  content: "›";
  grid-column: 2;
  grid-row: 1;
  color: #5f7890;
  font-size: 18px;
  line-height: 1;
  transform: rotate(0);
  transition: transform 0.16s ease;
}

.nav-group.is-open .nav-group-toggle::before {
  transform: rotate(90deg);
}

.nav-group-toggle .nav-group-title {
  grid-column: 1;
  grid-row: 1;
}

.nav-group-toggle strong,
.nav-group-toggle span {
  display: block;
}

.nav-group-toggle strong {
  color: #17324c;
  font-size: 14px;
}

.nav-group-toggle span {
  margin-top: 3px;
  color: #6b7a90;
  font-size: 11px;
}

.nav-group-header .nav-jump-select {
  grid-column: 2;
  width: 106px;
  margin: 0;
}

.nav-group.is-open .nav-group-items {
  display: grid;
  max-height: 360px;
  padding: 7px;
  overflow: auto;
}

.nav-group .nav-group-items[hidden] {
  display: none;
}

@media (max-height: 820px) {
  .nav-group.is-open .nav-group-items {
    max-height: 280px;
  }
}

.product-nav button[aria-current="page"] {
  outline: 2px solid rgba(25, 167, 206, 0.34);
  outline-offset: -2px;
}

body.dashboard-view-switching {
  cursor: progress;
}

body.dashboard-view-switching::after {
  content: "正在切换…";
  position: fixed;
  z-index: 120;
  top: 14px;
  left: 272px;
  border: 1px solid #c7d9ec;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.96);
  color: #36566f;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.seg-pagination,
.api-daily-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid #e4eaf1;
  color: var(--muted);
  font-size: 12px;
}

.seg-pagination div,
.api-daily-pagination div {
  display: flex;
  gap: 8px;
}

.seg-pagination button,
.api-daily-pagination button {
  min-height: 32px;
  border: 1px solid #cbd9e7;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #17324c;
}

.seg-pagination button:disabled,
.api-daily-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 1100px) {
  body.dashboard-view-switching::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.toolbar kbd {
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 4px;
  background: #f8fafc;
  color: #526075;
  font: 10px/1.2 inherit;
}

.global-search-trigger {
  min-width: 108px;
  gap: 6px;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.global-search-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 40px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.global-search-shell {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.global-search-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.global-search-shell h2 {
  margin: 0;
  font-size: 22px;
}

.global-search-shell header p,
.global-search-help {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.global-search-close,
.global-search-results button,
.operations-card button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.global-search-close {
  min-height: 36px;
  padding: 0 12px;
}

.global-search-input-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#globalSearchInput {
  width: 100%;
  height: 48px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

#globalSearchInput:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.global-search-results {
  display: grid;
  gap: 5px;
  max-height: min(480px, calc(100dvh - 250px));
  overflow: auto;
}

.global-search-results button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 2px 10px;
  min-height: 60px;
  padding: 9px 12px;
  text-align: left;
}

.global-search-results button > span {
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  padding: 4px 7px;
  background: #eaf4fb;
  color: #24658d;
  font-size: 11px;
  text-align: center;
}

.global-search-results button strong { font-size: 14px; }
.global-search-results button small { color: var(--muted); font-size: 12px; }
.global-search-results button.is-selected { border-color: #79add0; background: #f1f8fc; }

.global-search-empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

.api-analysis-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operations-center-grid { display: block !important; }

.operations-center {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.operations-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.operations-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.operations-card-head p {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.operations-card-head h2 { margin: 0; font-size: 20px; }
.operations-card-head > span { color: var(--muted); font-size: 12px; text-align: right; }

.freshness-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.freshness-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #dbe5ef;
  border-top: 4px solid #8aa5b8;
  border-radius: 9px;
  padding: 12px;
  background: #fbfdff;
}

.freshness-item.is-fresh { border-top-color: var(--green); }
.freshness-item.is-watch { border-top-color: var(--amber); }
.freshness-item.is-stale,
.freshness-item.is-missing { border-top-color: var(--red); }
.freshness-item > div { display: grid; gap: 3px; }
.freshness-item strong,
.freshness-item b { overflow-wrap: anywhere; }
.freshness-item span,
.freshness-item em { color: var(--muted); font-size: 11px; font-style: normal; }

.operations-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.operations-table-wrap {
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.operations-table-wrap table {
  min-width: 1040px;
  width: 100%;
  border-collapse: collapse;
}

.operations-table-wrap th,
.operations-table-wrap td {
  border-bottom: 1px solid #e4eaf1;
  padding: 10px;
  vertical-align: top;
  text-align: left;
}

.operations-table-wrap thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #edf4fa;
}

.operations-table-wrap tbody th {
  position: sticky;
  z-index: 1;
  left: 0;
  background: #fff;
}

.operations-table-wrap tbody th small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.ops-signal {
  display: grid;
  gap: 3px;
  min-width: 112px;
  font-weight: 800;
}

.ops-signal small { color: var(--muted); font-size: 10px; font-weight: 400; }
.ops-signal.is-up { color: #047857; }
.ops-signal.is-down { color: #b42318; }
.ops-signal.is-missing,
.ops-signal.is-neutral { color: #526075; }

.ops-signal-summary {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-signal-summary.is-up { background: #dcfce7; color: #047857; }
.ops-signal-summary.is-down { background: #fee2e2; color: #b42318; }
.ops-signal-summary.is-mixed { background: #fff3d6; color: #9a5b00; }
.ops-signal-summary.is-single { background: #e9eff5; color: #526075; }

.operations-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.operations-agent-grid article {
  min-width: 0;
  border: 1px solid #dce6ef;
  border-radius: 9px;
  padding: 14px;
  background: #f8fbfd;
}

.operations-agent-grid code {
  display: block;
  margin: 9px 0;
  overflow-wrap: anywhere;
  color: #0f5f82;
  font-size: 12px;
}

.operations-agent-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.operations-agent-grid button,
.operations-version-content button {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 11px;
  color: #0f5f82;
}

.operations-empty {
  margin: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

@media (max-width: 1500px) {
  .freshness-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .freshness-grid,
  .operations-agent-grid { grid-template-columns: 1fr; }
  .operations-card-head { display: grid; }
  .operations-card-head > span { text-align: left; }
  .global-search-trigger kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
