/* Keep the established admin controls and responsive layout, matching React's theme. */
:root {
  --bg: oklch(0.973 0.004 85);
  --surface: oklch(0.993 0.002 85);
  --surface-strong: oklch(0.993 0.002 85);
  --line: oklch(0.9 0.008 85);
  --text: oklch(0.33 0.032 257);
  --muted: oklch(0.54 0.035 255);
  --accent: oklch(0.5 0.16 27);
  --accent-soft: oklch(0.95 0.035 30);
  --font-ui: system-ui, sans-serif;
  --font-display: system-ui, sans-serif;
  --type-heading-weight: 600;
  --radius-xl: 20px;
  --radius-lg: 12px;
  --radius-md: 8px;
}
body { background: var(--bg); }
h1, h2, h3, h4, .hero-title, .admin-brand strong {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.admin-sidebar { background: var(--surface); backdrop-filter: none; }
.card, .hero, .ingestion-control-card {
  background: var(--surface);
  box-shadow: 0 1px 2px #26343e0f, 0 8px 24px -12px #26343e2e;
  backdrop-filter: none;
}
.card::after { display: none; }
.admin-dashboard-main, .admin-dashboard-grid { gap: 24px; }
.button:not(.button-secondary) {
  background: oklch(0.7 0.18 27);
  color: oklch(0.22 0.03 257);
  box-shadow: none;
  border-radius: 8px;
}
.button-secondary { background: var(--surface); border-radius: 8px; }
.admin-nav-home:hover, .admin-nav-tree summary:hover, .admin-nav-children a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
input, textarea, select { background-color: white; border-color: var(--line); border-radius: 8px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
}
:focus-visible { outline: 3px solid oklch(0.56 0.17 27); outline-offset: 3px; }

.admin-brand .brand-mark {
  background: var(--accent);
  border: 0;
  box-shadow: none;
  mask: url('/static/ra-logo.png') center / contain no-repeat;
  -webkit-mask: url('/static/ra-logo.png') center / contain no-repeat;
}
.admin-brand .brand-mark img { visibility: hidden; }
/* Apply the same compact scale to admin controls, including non-form cards. */
body .admin-shell { font-size: 0.875rem; line-height: 1.5; }
body .admin-shell .admin-page-header h1 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; }
body .admin-shell h2 { font-size: 1.125rem; line-height: 1.4; }
body .admin-shell h3 { font-size: 1rem; line-height: 1.4; }
body .admin-shell .ingestion-control-card h2 { font-size: 1rem; line-height: 1.4; margin: 0.3rem 0 0.5rem; }
body .admin-shell .eyebrow { font-size: 0.72rem; line-height: 1.4; }
body .admin-shell :is(button, .button) { font-size: 0.875rem; line-height: 1.4; padding: 0.5rem 0.75rem; min-height: 38px; }
body .admin-shell :is(.admin-nav-home, .admin-nav-children a, .admin-nav-tree summary) { font-size: 0.875rem; }
body .admin-shell .ingestion-control-card { min-width: 0; padding: 1rem; overflow-wrap: anywhere; }
body .admin-shell .ingestion-control-card p { font-size: 0.875rem; line-height: 1.5; margin: 0.45rem 0; }
body .admin-shell .ingestion-control-card .eyebrow { font-size: 0.72rem; }
body .admin-shell .ingestion-control-actions { gap: 0.5rem; margin-top: 0.75rem; }
body .admin-shell .ingestion-controls-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
body .admin-shell .admin-table-wrap { font-size: 0.875rem; }
body .admin-shell .admin-summary-card strong { font-size: 1.75rem; line-height: 1.2; }
@media (max-width: 600px) {
  body .admin-shell .ingestion-controls-list { grid-template-columns: 1fr; }
  body .admin-shell :is(button, .button) { min-height: 44px; }
}
@media (max-width: 600px) {
  body .admin-shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 1rem; min-height: 44px; }
}
