/* Ordo 管理台 · 经营简报
 * 只引用 tokens-light.css 的语义 token；不使用 --ink / --muted 等旧名。
 * 结构：顶栏 → 标题带 → 快照 → 五个业务区块 → 口径。
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.admin-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.admin-body [hidden] {
  display: none !important;
}

.admin-body a {
  color: var(--brand);
}

.admin-body button {
  font: inherit;
}

.admin-body a.admin-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
}

.admin-skip:focus {
  top: 12px;
}

/* ── 顶栏 ─────────────────────────────────────────────────────────── */

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 10px 32px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.admin-brand-mark {
  width: 32px;
  height: 20px;
  flex: none;
}

.admin-brand-name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
}

.admin-brand-slash {
  color: var(--text-muted);
}

.admin-brand-section {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.admin-updated {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-range {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  flex: none;
}

.admin-range-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.admin-range-btn:hover {
  color: var(--text);
  background: var(--surface2);
}

.admin-range-btn.is-active {
  color: var(--text);
  background: var(--surface2);
  font-weight: 600;
}

.admin-range-btn:focus-visible,
.admin-toplink:focus-visible,
.admin-refresh:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.admin-toplink {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.admin-toplink:hover {
  color: var(--text);
}

#logout {
  color: var(--text-muted);
}

#logout:hover {
  color: var(--danger);
}

/* ── 页面骨架 ─────────────────────────────────────────────────────── */

.admin-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 32px 72px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
}

.admin-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.admin-scope {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.admin-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.admin-lede {
  max-width: 42em;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.admin-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.admin-range-label {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-refresh {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12.5px;
  cursor: pointer;
}

.admin-refresh:hover {
  background: var(--surface2);
}

.admin-refresh[disabled] {
  cursor: wait;
  opacity: .55;
}

/* ── 加载 / 拒绝 / 错误 ───────────────────────────────────────────── */

.admin-skeleton {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-skeleton p {
  margin: 16px 0 0;
}

.admin-skeleton-line {
  height: 22px;
  width: 240px;
  margin-bottom: 20px;
  border-radius: 4px;
  background: var(--surface2);
  animation: admin-pulse 1.4s ease-in-out infinite;
}

.admin-skeleton-line.is-short {
  width: 160px;
}

.admin-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-skeleton-block {
  height: 108px;
  border-radius: 6px;
  background: var(--surface2);
  animation: admin-pulse 1.4s ease-in-out infinite;
}

@keyframes admin-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: .9; }
}

.admin-denied,
.admin-error {
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-denied strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.admin-denied p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-denied-link {
  display: inline-block;
  font-size: 13px;
}

.admin-error {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

/* ── 核心快照 ─────────────────────────────────────────────────────── */

.admin-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.admin-snapshot-item {
  min-width: 0;
  padding: 22px 22px 20px;
  border-left: 1px solid var(--line);
}

.admin-snapshot-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.admin-snapshot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 12px;
}

.admin-snapshot-value {
  display: block;
  color: var(--text);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.admin-snapshot-value.is-pending {
  color: var(--text-muted);
  font-size: 30px;
  letter-spacing: 0;
}

.admin-snapshot-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

.admin-delta.is-up {
  color: var(--ok);
}

.admin-delta.is-down {
  color: var(--danger);
}

.admin-delta.is-flat {
  color: var(--text-muted);
}

.admin-delta.is-na {
  color: var(--text-muted);
}

/* ── 区块 ─────────────────────────────────────────────────────────── */

.admin-section {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.admin-section-no {
  padding-top: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.admin-section-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.admin-section-title p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-section-meta {
  flex: none;
  padding-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: right;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 42px;
  align-items: start;
}

.admin-main-col,
.admin-rail {
  min-width: 0;
}

.admin-rail {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.admin-rail-block + .admin-rail-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.admin-rail-block h3,
.admin-chart-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.admin-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-legend {
  display: flex;
  gap: 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.admin-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-legend span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.admin-legend .legend-pv::before,
.admin-legend .legend-new::before {
  background: var(--brand-fill);
}

.admin-legend .legend-uv::before,
.admin-legend .legend-cumulative::before {
  background: var(--text);
}

.admin-chart {
  position: relative;
  width: 100%;
  min-height: 240px;
}

.admin-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.admin-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

.admin-chart-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.admin-chart-tooltip {
  position: fixed;
  z-index: 50;
  min-width: 108px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.admin-chart-tooltip strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.admin-data-details,
.admin-daily-details {
  margin-top: 16px;
}

.admin-data-details summary,
.admin-daily-details summary {
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.admin-detail-title {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.admin-detail-head {
  margin: 8px 0 8px;
}

.admin-detail-head .admin-micro {
  margin: 0;
}

.admin-detail-chart {
  min-height: 200px;
}

.admin-data-details summary:hover,
.admin-daily-details summary:hover {
  color: var(--text);
}

/* ── 分域名 / 来源 / 设备 ─────────────────────────────────────────── */

.admin-site-table {
  margin-top: 12px;
}

.admin-site-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  gap: 8px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.admin-site-row:first-child {
  padding-top: 0;
}

.admin-site-row:last-child {
  border-bottom: 0;
}

.admin-site-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-site-row strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-site-row .is-muted {
  color: var(--text-muted);
  font-weight: 400;
}

.admin-bar-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.admin-bar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: baseline;
  font-size: 13px;
}

.admin-bar-label {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bar-value {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.admin-bar-track {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface2);
}

.admin-bar-fill {
  height: 100%;
  min-width: 2px;
  border-radius: 2px;
  background: var(--brand-fill);
}

.admin-bar-item.is-muted .admin-bar-fill {
  background: var(--line-strong);
}

.admin-empty-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.admin-micro {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-micro code {
  font-size: 11.5px;
}

/* ── 使用强度 ─────────────────────────────────────────────────────── */

.admin-stat-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.admin-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.admin-stat-row:last-child {
  border-bottom: 0;
}

.admin-stat-row span {
  color: var(--text-muted);
}

.admin-stat-row strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.admin-pending-value {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.admin-rail-block.is-pending {
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
}

/* ── 漏斗 ─────────────────────────────────────────────────────────── */

.admin-funnel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.admin-funnel-panel {
  min-width: 0;
}

.admin-funnel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-funnel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

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

.admin-funnel {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.admin-funnel-step {
  min-width: 0;
}

.admin-funnel-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 5px;
  font-size: 12.5px;
}

.admin-funnel-label {
  color: var(--text-muted);
}

.admin-funnel-count {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-funnel-track {
  height: 8px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface2);
}

.admin-funnel-fill {
  height: 100%;
  min-width: 3px;
  border-radius: 2px;
  background: var(--brand-fill);
}

.admin-funnel-step:nth-child(2) .admin-funnel-fill { opacity: .82; }
.admin-funnel-step:nth-child(3) .admin-funnel-fill { opacity: .66; }
.admin-funnel-step:nth-child(4) .admin-funnel-fill { opacity: .5; }
.admin-funnel-step:nth-child(5) .admin-funnel-fill { opacity: .36; }

/* 聚合步骤（与上一步不是同一批人）：虚线分隔 + 斜纹填充，避免被读成漏斗下一层 */
.admin-funnel-step.is-aggregate {
  padding-top: 11px;
  border-top: 1px dashed var(--line-strong);
}
.admin-funnel-step.is-aggregate .admin-funnel-fill {
  opacity: 1;
  background: repeating-linear-gradient(135deg, var(--brand-fill) 0 4px, transparent 4px 7px);
}

.admin-funnel-rate {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.admin-funnel-rate strong {
  color: var(--text);
  font-weight: 600;
}

.admin-funnel-empty {
  padding: 18px 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ── 留存 ─────────────────────────────────────────────────────────── */

.admin-retention-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-retention-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-retention-stat span {
  color: var(--text-muted);
  font-size: 12px;
}

.admin-retention-stat strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-cohort-wrap {
  max-height: 420px;
  overflow: auto;
}

.admin-cohort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.admin-cohort-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.admin-cohort-table th:first-child,
.admin-cohort-table td:first-child {
  text-align: left;
}

.admin-cohort-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.admin-cohort-table td.is-cell {
  font-weight: 600;
}

.admin-cohort-table .is-immature {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── 表格 ─────────────────────────────────────────────────────────── */

.admin-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.admin-table caption {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: left;
}

.admin-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.admin-table th:first-child,
.admin-table td:first-child {
  text-align: left;
}

.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: var(--surface2);
}

.admin-table .is-empty {
  padding: 18px 10px;
  color: var(--text-muted);
  text-align: left;
}

/* ── 口径 ─────────────────────────────────────────────────────────── */

.admin-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 42px;
}

.admin-definition-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.admin-definition-grid strong {
  color: var(--text);
  font-weight: 600;
}

/* ── 底部 ─────────────────────────────────────────────────────────── */

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 32px 36px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
}

.admin-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.admin-footer a:hover {
  color: var(--text);
}

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 9px 14px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.admin-toast:not(:empty) {
  opacity: 1;
}

/* ── 响应式 ───────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .admin-topbar {
    padding: 10px 24px;
  }

  .admin-main {
    padding: 34px 24px 64px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .admin-rail {
    padding-left: 0;
    border-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
  }

  .admin-rail-block + .admin-rail-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .admin-funnel-grid {
    gap: 32px;
  }

  .admin-definition-grid {
    gap: 12px 28px;
  }
}

@media (max-width: 820px) {
  .admin-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .admin-updated {
    display: none;
  }

  .admin-main {
    padding: 28px 20px 56px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .admin-title {
    font-size: 38px;
  }

  .admin-hero-meta {
    width: 100%;
    justify-content: space-between;
  }

  .admin-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-snapshot-item {
    padding: 18px 18px 16px;
  }

  .admin-snapshot-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .admin-snapshot-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .admin-section {
    margin-top: 42px;
    padding-top: 24px;
  }

  .admin-section-head {
    flex-direction: column;
    gap: 8px;
  }

  .admin-section-meta {
    padding-top: 0;
    text-align: left;
  }

  .admin-rail {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .admin-funnel-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .admin-definition-grid {
    grid-template-columns: 1fr;
  }

  .admin-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 32px;
  }
}

@media (max-width: 560px) {
  .admin-brand-slash,
  .admin-brand-section {
    display: none;
  }

  .admin-topbar-actions {
    flex-wrap: wrap;
  }

  .admin-range {
    order: 3;
    width: 100%;
  }

  .admin-range-btn {
    flex: 1;
    padding: 6px 8px;
  }

  .admin-title {
    font-size: 34px;
  }

  .admin-snapshot-value {
    font-size: 30px;
  }

  .admin-section-title h2 {
    font-size: 23px;
  }

  .admin-funnel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-funnel-head span {
    text-align: left;
  }

  .admin-retention-summary {
    gap: 14px 22px;
  }

  .admin-cohort-wrap {
    max-height: 520px;
  }

  .admin-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
