/* 经营概览专属布局。仅使用 dashboard-overview-*，避免影响其他管理页。 */
html[data-admin-theme="graphite"] .dashboard-overview-shell {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 20px;
  color: var(--g-text-2);
}

html[data-admin-theme="graphite"] .dashboard-overview-summary,
html[data-admin-theme="graphite"] .dashboard-overview-insights {
  min-width: 0;
  display: grid;
}

html[data-admin-theme="graphite"] .dashboard-overview-summary {
  gap: 16px;
}

html[data-admin-theme="graphite"] .dashboard-overview-insights {
  gap: 16px;
}

html[data-admin-theme="graphite"] .dashboard-overview-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

html[data-admin-theme="graphite"] .dashboard-overview-header h2 {
  margin: 0;
  color: var(--g-text-1);
  font-size: 24px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

html[data-admin-theme="graphite"] .dashboard-overview-header p {
  margin: 4px 0 0;
  color: var(--g-text-3);
  font-size: 13px;
  line-height: 1.5;
}

html[data-admin-theme="graphite"] .dashboard-overview-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

html[data-admin-theme="graphite"] .dashboard-overview-header-actions .btn {
  min-height: 36px;
  padding-inline: 14px;
  font-size: 13px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-bar {
  min-width: 0;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  background: var(--g-surface-1);
}

html[data-admin-theme="graphite"] .dashboard-overview-report-shortcuts {
  min-width: 0;
  display: grid;
  gap: 6px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-label {
  color: var(--g-text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-presets {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-preset {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--g-line);
  border-radius: 8px;
  color: var(--g-text-2);
  background: var(--g-surface-2);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-preset:hover {
  border-color: var(--g-line-strong);
  color: var(--g-text-1);
  background: var(--g-surface-3);
}

html[data-admin-theme="graphite"] .dashboard-overview-report-preset:focus-visible {
  outline: 2px solid var(--g-accent-hover);
  outline-offset: 2px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-preset.is-active,
html[data-admin-theme="graphite"] .dashboard-overview-report-preset[aria-pressed="true"] {
  border-color: var(--g-accent);
  color: var(--g-accent-ink);
  background: var(--g-accent);
}

html[data-admin-theme="graphite"] .dashboard-overview-custom-range {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

html[data-admin-theme="graphite"] .dashboard-overview-custom-range[hidden] {
  display: none;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 190px) auto minmax(150px, 190px) auto;
  align-items: end;
  gap: 10px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--g-text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-field .form-control {
  width: 100%;
  min-height: 38px;
  padding-inline: 11px;
  color: var(--g-text-1);
  background: var(--g-surface-2);
  color-scheme: dark;
  font-size: 13px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-separator {
  padding-bottom: 10px;
  color: var(--g-text-3);
  font-size: 12px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-form .btn {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 13px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-error {
  max-width: 320px;
  padding-bottom: 9px;
  color: var(--g-danger);
  font-size: 12px;
  line-height: 1.4;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-error:empty {
  display: none;
}

html[data-admin-theme="graphite"] .dashboard-overview-today {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  background: var(--g-surface-1);
  box-shadow: inset 0 2px 0 rgba(76, 141, 255, 0.34);
}

html[data-admin-theme="graphite"] .dashboard-overview-metric.is-revenue {
  background:
    linear-gradient(120deg, rgba(76, 141, 255, 0.12), transparent 68%),
    var(--g-surface-1);
  box-shadow: inset 0 2px 0 var(--g-accent);
}

html[data-admin-theme="graphite"] .dashboard-overview-metric-label {
  color: var(--g-text-2);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric-value {
  min-width: 0;
  color: var(--g-text-1);
  font-size: 30px;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric-note {
  color: var(--g-text-3);
  font-size: 12px;
  line-height: 1.4;
}

html[data-admin-theme="graphite"] .dashboard-overview-main-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  gap: 14px;
}

html[data-admin-theme="graphite"] .dashboard-overview-main-grid--secondary {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
}

html[data-admin-theme="graphite"] .dashboard-overview-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  background: var(--g-surface-1);
}

html[data-admin-theme="graphite"] .dashboard-overview-panel-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--g-line-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-panel-header h3 {
  margin: 0;
  color: var(--g-text-1);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.4;
}

html[data-admin-theme="graphite"] .dashboard-overview-panel-header p,
html[data-admin-theme="graphite"] .dashboard-overview-panel-header time {
  margin: 2px 0 0;
  color: var(--g-text-3);
  font-size: 12px;
  line-height: 1.4;
}

html[data-admin-theme="graphite"] .dashboard-overview-chart {
  position: relative;
  height: 300px;
  padding: 14px 16px 12px;
}

html[data-admin-theme="graphite"] .dashboard-overview-chart--compact {
  height: 250px;
}

html[data-admin-theme="graphite"] .dashboard-overview-chart--waterfall {
  padding-inline: 12px;
}

html[data-admin-theme="graphite"] .dashboard-overview-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

html[data-admin-theme="graphite"] .dashboard-overview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--g-text-3);
  font-size: 13px;
  text-align: center;
}

html[data-admin-theme="graphite"] .dashboard-overview-empty[hidden] {
  display: none;
}

html[data-admin-theme="graphite"] .dashboard-overview-state {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--g-info);
  background: var(--g-info-soft);
  font-size: 12px;
  font-weight: 650;
}

html[data-admin-theme="graphite"] .dashboard-overview-state.is-warning {
  color: var(--g-warning);
  background: var(--g-warning-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-state.is-error {
  color: var(--g-danger);
  background: var(--g-danger-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list {
  margin: 0;
  padding: 0 18px;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list > div {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--g-line-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list > div:last-child {
  border-bottom: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list dt {
  color: var(--g-text-2);
  font-size: 13px;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list dd {
  margin: 0;
  color: var(--g-text-1);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list dd small {
  display: block;
  margin-top: 2px;
  color: var(--g-text-3);
  font-size: 11px;
  font-weight: 500;
}

html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

html[data-admin-theme="graphite"] .dashboard-overview-scale-panel .dashboard-overview-panel-header {
  min-height: 52px;
  padding: 12px 20px;
}

html[data-admin-theme="graphite"] .dashboard-overview-scale-panel .dashboard-overview-panel-header h3,
html[data-admin-theme="graphite"] .dashboard-overview-scale-panel .dashboard-overview-panel-header time {
  margin: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric {
  min-height: 92px;
  align-items: center;
  padding: 16px 20px;
  border: 0;
  border-right: 1px solid var(--g-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:last-child {
  border-right: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric-value {
  font-size: 23px;
}

@media (max-width: 1180px) {
  html[data-admin-theme="graphite"] .dashboard-overview-today {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .dashboard-overview-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-child(3n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-child(-n + 3) {
    border-bottom: 1px solid var(--g-line-soft);
  }
}

@media (max-width: 920px) {
  html[data-admin-theme="graphite"] .dashboard-overview-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  html[data-admin-theme="graphite"] .dashboard-overview-shell {
    gap: 12px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-header {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-header h2 {
    font-size: 22px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-header-actions {
    justify-content: flex-start;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-header-actions .btn {
    flex: 1 1 140px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-report-bar {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-custom-range {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-report-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .dashboard-overview-report-separator {
    display: none;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-report-form .btn {
    grid-column: 1 / -1;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-report-error {
    padding: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-metric {
    min-height: 102px;
    padding: 15px 16px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-chart {
    height: 236px;
    padding-inline: 10px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-metric-value {
    font-size: 26px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric,
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-child(3n) {
    border-right: 1px solid var(--g-line-soft);
    border-bottom: 1px solid var(--g-line-soft);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-child(2n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

}

@media (max-width: 430px) {
  html[data-admin-theme="graphite"] .dashboard-overview-report-form {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-report-form .btn {
    grid-column: auto;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-today {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-result-list > div {
    min-height: 58px;
  }
}

html[data-admin-theme="graphite"] .dashboard-overview-main-grid--secondary {
  align-items: start;
}

html[data-admin-theme="graphite"] .dashboard-overview-trend-panel {
  display: block;
}

html[data-admin-theme="graphite"] .dashboard-overview-trend-panel .dashboard-overview-panel-header {
  flex: 0 0 auto;
}

html[data-admin-theme="graphite"] .dashboard-overview-trend-panel .dashboard-overview-chart {
  height: 356px;
  min-height: 0;
  flex: none;
}

@media (max-width: 1180px) {
  html[data-admin-theme="graphite"] .dashboard-overview-trend-panel .dashboard-overview-chart {
    height: 276px;
  }
}

@media (max-width: 700px) {
  html[data-admin-theme="graphite"] .dashboard-overview-trend-panel .dashboard-overview-chart {
    height: 226px;
  }
}

/* 2026-08-18 经营首页重构：Apple 式层级、单一表面和低噪声数据密度。 */
html[data-admin-theme="graphite"] .dashboard-overview-shell {
  gap: 18px;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .dashboard-overview-header {
  min-height: 52px;
  gap: 24px;
}

html[data-admin-theme="graphite"] .dashboard-overview-header h2 {
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -.025em;
  font-optical-sizing: auto;
}

html[data-admin-theme="graphite"] .dashboard-overview-header p {
  margin-top: 5px;
  font-size: 12px;
}

html[data-admin-theme="graphite"] .dashboard-overview-header-actions .btn {
  min-height: 36px;
  border-radius: 9px;
  transition: background-color 160ms ease-out, border-color 160ms ease-out,
    color 160ms ease-out, transform 100ms ease-out;
}

html[data-admin-theme="graphite"] .dashboard-overview-header-actions .btn:active,
html[data-admin-theme="graphite"] .dashboard-overview-report-preset:active {
  transform: scale(.975);
}

html[data-admin-theme="graphite"] .dashboard-overview-report-bar {
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(17, 25, 40, .74);
}

html[data-admin-theme="graphite"] .dashboard-overview-report-shortcuts {
  display: flex;
  align-items: center;
  gap: 14px;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-label {
  flex: 0 0 auto;
  color: var(--g-text-3);
}

html[data-admin-theme="graphite"] .dashboard-overview-report-presets {
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-presets::-webkit-scrollbar {
  display: none;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-preset {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 13px;
  border-color: transparent;
  background: transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out,
    background-color 160ms ease-out, transform 100ms ease-out;
}

html[data-admin-theme="graphite"] .dashboard-overview-report-preset:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, .045);
}

html[data-admin-theme="graphite"] .dashboard-overview-report-preset.is-active,
html[data-admin-theme="graphite"] .dashboard-overview-report-preset[aria-pressed="true"] {
  border-color: rgba(76, 141, 255, .68);
}

html[data-admin-theme="graphite"] .dashboard-overview-custom-range {
  padding-top: 10px;
  border-top: 1px solid var(--g-line-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-insights {
  gap: 14px;
}

html[data-admin-theme="graphite"] .dashboard-overview-panel {
  border-radius: 15px;
  background: rgba(17, 25, 40, .82);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .13);
}

html[data-admin-theme="graphite"] .dashboard-overview-panel-header {
  min-height: 62px;
  padding: 12px 18px;
}

html[data-admin-theme="graphite"] .dashboard-overview-panel-header h3,
html[data-admin-theme="graphite"] .dashboard-overview-secondary-header h3 {
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.01em;
}

html[data-admin-theme="graphite"] .dashboard-overview-panel-header p,
html[data-admin-theme="graphite"] .dashboard-overview-panel-header time,
html[data-admin-theme="graphite"] .dashboard-overview-secondary-header p {
  margin-top: 3px;
  font-size: 11px;
}

html[data-admin-theme="graphite"] .dashboard-overview-period-panel {
  background: rgba(18, 27, 44, .94);
}

html[data-admin-theme="graphite"] .dashboard-overview-period-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[data-admin-theme="graphite"] .dashboard-overview-metric {
  min-width: 0;
  min-height: 0;
  padding: 18px 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric {
  min-height: 118px;
  border-right: 1px solid var(--g-line-soft);
  border-bottom: 1px solid var(--g-line-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-child(4n) {
  border-right: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-last-child(-n + 4) {
  border-bottom: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric-label {
  font-size: 12px;
  font-weight: 580;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric-value {
  font-size: 28px;
  font-weight: 710;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric-note {
  min-height: 17px;
  font-size: 11px;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric.is-revenue {
  background: transparent;
  box-shadow: none;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric.is-revenue .dashboard-overview-metric-value {
  color: #76a9ff;
}

html[data-admin-theme="graphite"] .dashboard-overview-metric.is-warning {
  background: rgba(245, 158, 11, .045);
}

html[data-admin-theme="graphite"] .dashboard-overview-metric.is-warning .dashboard-overview-metric-value {
  color: #f5bd61;
}

html[data-admin-theme="graphite"] .dashboard-overview-main-grid,
html[data-admin-theme="graphite"] .dashboard-overview-main-grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

html[data-admin-theme="graphite"] .dashboard-overview-main-grid--secondary {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
}

html[data-admin-theme="graphite"] .dashboard-overview-chart {
  height: 286px;
  padding: 15px 16px 13px;
}

html[data-admin-theme="graphite"] .dashboard-overview-chart--compact {
  height: 276px;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list > div {
  min-height: 51px;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list dt {
  font-size: 12px;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list dd {
  font-size: 16px;
  font-weight: 690;
}

html[data-admin-theme="graphite"] .dashboard-overview-result-list dd small {
  max-width: 220px;
  font-size: 10px;
}

html[data-admin-theme="graphite"] .dashboard-overview-secondary-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--g-line);
  border-radius: 15px;
  background: rgba(14, 21, 34, .58);
}

html[data-admin-theme="graphite"] .dashboard-overview-secondary-group {
  min-width: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-secondary-group + .dashboard-overview-secondary-group {
  padding-left: 14px;
  border-left: 1px solid var(--g-line-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-secondary-header {
  min-height: 41px;
  padding: 1px 4px 10px;
}

html[data-admin-theme="graphite"] .dashboard-overview-today,
html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--g-line-soft);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, .012);
}

html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric,
html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric {
  min-height: 82px;
  padding: 13px 14px;
  border-right: 1px solid var(--g-line-soft);
  border-bottom: 1px solid var(--g-line-soft);
}

html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric:nth-child(2n),
html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-child(3n) {
  border-right: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric:nth-last-child(-n + 2),
html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-last-child(-n + 3) {
  border-bottom: 0;
}

html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric-value,
html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric-value {
  font-size: 19px;
}

@media (max-width: 1180px) {
  html[data-admin-theme="graphite"] .dashboard-overview-period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-child(4n) {
    border-right: 1px solid var(--g-line-soft);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-child(2n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--g-line-soft);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-main-grid,
  html[data-admin-theme="graphite"] .dashboard-overview-main-grid--secondary,
  html[data-admin-theme="graphite"] .dashboard-overview-secondary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-secondary-group + .dashboard-overview-secondary-group {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--g-line-soft);
    border-left: 0;
  }
}

@media (max-width: 700px) {
  html[data-admin-theme="graphite"] .dashboard-overview-report-bar {
    position: sticky;
    top: 64px;
    z-index: 8;
    padding: 9px;
    background: rgba(14, 21, 34, .94);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-report-shortcuts {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric {
    min-height: 105px;
    padding: 15px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-metric-value {
    font-size: 24px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-chart,
  html[data-admin-theme="graphite"] .dashboard-overview-chart--compact {
    height: 226px;
    padding: 10px 8px 9px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  html[data-admin-theme="graphite"] .dashboard-overview-period-grid,
  html[data-admin-theme="graphite"] .dashboard-overview-today,
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric,
  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-child(2n),
  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-child(4n),
  html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric,
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid var(--g-line-soft);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:last-child,
  html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric:last-child,
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:last-child {
    border-bottom: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-result-list > div {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding-block: 10px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-result-list dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-admin-theme="graphite"] .dashboard-overview-header-actions .btn,
  html[data-admin-theme="graphite"] .dashboard-overview-report-preset {
    transition: none;
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  html[data-admin-theme="graphite"] .dashboard-overview-panel,
  html[data-admin-theme="graphite"] .dashboard-overview-report-bar,
  html[data-admin-theme="graphite"] .dashboard-overview-secondary-strip {
    background: var(--g-surface-1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  html[data-admin-theme="graphite"] .dashboard-overview-panel,
  html[data-admin-theme="graphite"] .dashboard-overview-report-bar,
  html[data-admin-theme="graphite"] .dashboard-overview-secondary-strip {
    border-color: var(--g-line-strong);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-metric-note,
  html[data-admin-theme="graphite"] .dashboard-overview-panel-header p,
  html[data-admin-theme="graphite"] .dashboard-overview-secondary-header p {
    color: var(--g-text-2);
  }
}

html[data-admin-theme="graphite"] .dashboard-overview-header-filter {
  flex: 0 0 auto;
}

html[data-admin-theme="graphite"] .dashboard-overview-range-select {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--g-text-3);
  font-size: 12px;
  font-weight: 620;
}

html[data-admin-theme="graphite"] .dashboard-overview-range-select .form-control {
  width: 166px;
  min-height: 38px;
  padding: 7px 34px 7px 11px;
  border: 1px solid var(--g-line);
  border-radius: 9px;
  color: var(--g-text-1);
  background-color: var(--g-surface-2);
  color-scheme: dark;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
}

html[data-admin-theme="graphite"] .dashboard-overview-range-select .form-control:hover {
  border-color: var(--g-line-strong);
}

html[data-admin-theme="graphite"] .dashboard-overview-range-select .form-control:focus-visible {
  outline: 2px solid var(--g-accent-hover);
  outline-offset: 2px;
}

html[data-admin-theme="graphite"] .dashboard-overview-custom-range {
  width: fit-content;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--g-line);
  border-radius: 13px;
  background: rgba(17, 25, 40, .74);
}

@media (max-width: 700px) {
  html[data-admin-theme="graphite"] .dashboard-overview-header-filter,
  html[data-admin-theme="graphite"] .dashboard-overview-range-select,
  html[data-admin-theme="graphite"] .dashboard-overview-range-select .form-control {
    width: 100%;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-range-select {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-custom-range {
    width: 100%;
  }
}

@media (max-width: 430px) {
  html[data-admin-theme="graphite"] .dashboard-overview-period-grid,
  html[data-admin-theme="graphite"] .dashboard-overview-today,
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric,
  html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric,
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric {
    min-height: 96px;
    padding: 13px;
    border-right: 1px solid var(--g-line-soft);
    border-bottom: 1px solid var(--g-line-soft);
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-child(2n),
  html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric:nth-child(2n),
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-child(2n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-period-grid .dashboard-overview-metric:nth-last-child(-n + 2),
  html[data-admin-theme="graphite"] .dashboard-overview-today .dashboard-overview-metric:nth-last-child(-n + 2),
  html[data-admin-theme="graphite"] .dashboard-overview-scale-grid .dashboard-overview-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-metric-value {
    font-size: 21px;
  }

  html[data-admin-theme="graphite"] .dashboard-overview-metric-note {
    font-size: 10px;
  }
}
