.ansico-stat-admin-page,
.ansico-stat-admin-wrap { color:#1e293b; }
.ansico-stat-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:16px;
  margin:20px 0 24px;
}
.ansico-stat-card {
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
  padding:20px;
}
.ansico-stat-card-header {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}
.ansico-stat-card-header h2,
.ansico-stat-card-header h3,
.ansico-stat-card h2,
.ansico-stat-card h3 { margin:0 0 4px; }
.ansico-stat-card-header p { margin:0; color:#64748b; }
.ansico-stat-card-value {
  margin:0;
  font-size:28px;
  line-height:1.2;
  font-weight:700;
  color:#0f172a;
}
.ansico-stat-chart-wrap,
.ansico-stat-bar-chart,
.ansico-stat-pie-chart,
.ansico-stat-grouped-bar-chart {
  position:relative;
  overflow:visible;
}
.ansico-stat-line-chart,
.ansico-stat-pie-chart-shell { overflow:visible; }
.ansico-stat-chart-tooltip {
  position:absolute;
  z-index:9999;
  pointer-events:none;
  max-width:260px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(15,23,42,.94);
  color:#fff;
  font-size:12px;
  line-height:1.35;
  box-shadow:0 10px 30px rgba(2,6,23,.28);
  white-space:normal;
}
.ansico-stat-chart-wrap svg,
.ansico-stat-line-chart svg { overflow:visible; }
.ansico-single-page-shell {
  max-width:1280px;
  margin-right:24px;
}
.ansico-single-page-hero {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin:16px 0 18px;
}
.ansico-single-page-hero h1 { margin:0 0 8px; font-size:30px; line-height:1.2; }
.ansico-single-page-hero .description { margin:0; color:#64748b; font-size:14px; }
.ansico-single-page-toolbar,
.ansico-single-page-target-card {
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  padding:18px 20px;
  margin-bottom:18px;
}
.ansico-single-filter-form {
  display:grid;
  grid-template-columns:minmax(320px,2.4fr) repeat(2,minmax(140px,1fr)) auto;
  gap:14px;
  align-items:end;
}
.ansico-single-filter-field { display:flex; flex-direction:column; gap:6px; }
.ansico-single-filter-field label {
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#475569;
}
.ansico-single-filter-field input[type="url"],
.ansico-single-filter-field input[type="date"] {
  width:100%;
  min-height:42px;
  border-radius:10px;
}
.ansico-single-filter-field-url input[type="url"] { min-width:0; }
.ansico-single-filter-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.ansico-single-page-target-meta h2 {
  margin:10px 0 6px;
  font-size:22px;
}
.ansico-single-page-target-meta a {
  color:#2271b1;
  text-decoration:none;
  word-break:break-all;
}
.ansico-single-page-target-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#e8f1fb;
  color:#0f5b9a;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.ansico-single-page-grid {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px;
}
.ansico-single-chart-card { padding:20px; }
.ansico-single-chart-card-wide { grid-column:1 / -1; }
@media (max-width: 980px) {
  .ansico-single-filter-form { grid-template-columns:1fr 1fr; }
  .ansico-single-filter-field-url,
  .ansico-single-filter-actions { grid-column:1 / -1; }
}
@media (max-width: 640px) {
  .ansico-single-page-shell { margin-right:0; }
  .ansico-single-filter-form { grid-template-columns:1fr; }
  .ansico-single-filter-field-url,
  .ansico-single-filter-actions { grid-column:auto; }
}


.ansico-stat-admin-page > .ansico-stat-card {
  margin: 0 0 24px;
}
.ansico-stat-admin-page > .ansico-stat-card:last-of-type {
  margin-bottom: 0;
}
.ansico-stat-two-column {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
  align-items:start;
}
.ansico-stat-pie-wrap,
.ansico-stat-pie-chart-shell {
  position:relative;
}
.ansico-stat-pie-wrap {
  display:grid;
  gap:16px;
}
.ansico-stat-pie-chart-shell {
  min-height:180px;
}
.ansico-stat-pie-chart-shell svg {
  display:block;
  overflow:visible;
}
.ansico-stat-pie-legend {
  display:grid;
  gap:8px;
}
.ansico-stat-legend-item {
  display:flex;
  align-items:flex-start;
  gap:8px;
}
.ansico-stat-legend-swatch {
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:999px;
  flex:0 0 12px;
  margin-top:3px;
}
