.admin-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 10px 64px;
  color: #111827;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-kicker {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.admin-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}

.admin-subtitle {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.96rem;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-metric,
.admin-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.admin-metric {
  padding: 18px;
}

.admin-metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.admin-metric-label {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-inline-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-inline-stat {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.admin-inline-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.admin-inline-stat-label {
  margin-top: 7px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel {
  padding: 18px;
  margin-bottom: 16px;
}

.admin-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}

@media (max-width: 900px) {
  .admin-metric-grid,
  .admin-grid-2,
  .admin-inline-stat-grid {
    grid-template-columns: 1fr;
  }
}

.admin-graph-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.admin-graph-frame--traffic {
  height: 320px;
}

.admin-graph-frame--pages {
  height: 360px;
}

.admin-graph-frame--compact {
  height: 260px;
}

.admin-graph-frame--flow {
  height: 420px;
}

.admin-graph-frame .admin-graph,
.admin-graph-frame .js-plotly-plot,
.admin-graph-frame .plotly,
.admin-graph-frame .plot-container,
.admin-graph-frame .svg-container {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.admin-graph-frame .main-svg {
  height: 100% !important;
  max-height: 100% !important;
}

.admin-graph-frame svg {
  max-height: 100% !important;
}

.admin-report-filters {
  display: grid;
  grid-template-columns: 160px minmax(200px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  margin: 16px 0;
  align-items: center;
}
.admin-report-filters input,
.admin-report-filters button {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
}
#admin-report-status {
  margin: 12px 0;
  color: #64748b;
}
@media (max-width: 900px) {
  .admin-report-filters { grid-template-columns: 1fr; }
}
