/* Reset, typography, links, focus, reduced motion — docs/06-admin-ui/01-ui-architecture.md §4, design system 7.1. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 1280px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: var(--leading-tight); font-weight: var(--weight-bold); color: var(--color-ink); letter-spacing: var(--tracking-heading); }
h1 { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-title); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-md); letter-spacing: var(--tracking-card); }
h4 { font-size: var(--text-base); letter-spacing: var(--tracking-card); }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: var(--weight-bold); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-accent-hover); }
a:hover:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
code, kbd, pre { font-family: var(--font-mono); font-size: var(--text-xs); }
code { background: var(--color-surface-alt); padding: 1px var(--space-1h); border-radius: var(--radius-xs); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--color-accent-tint-strong); }
[hidden] { display: none !important; }
.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.u-muted { color: var(--fg-muted); }
.u-subtle { color: var(--fg-subtle); }
.u-mono { font-family: var(--font-mono); }
.u-nowrap { white-space: nowrap; }
.u-right { text-align: right; }
.u-measure { max-width: 480px; }
.u-stack > :not(input[type="hidden"]) ~ :not(input[type="hidden"]) { margin-top: var(--space-4); }
.u-stack-lg > :not(input[type="hidden"]) ~ :not(input[type="hidden"]) { margin-top: var(--space-6); }
/* Stacks skip hidden inputs (@csrf, @method), so they do not push the first visible child down. */
.u-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.u-center { text-align: center; }
.u-inline { display: inline-flex; }
.u-full-width { width: 100%; }
.u-mt-4 { margin-top: var(--space-4); }
.u-mb-title { margin-bottom: var(--space-5); }
.u-ml-2 { margin-left: var(--space-2); }

@keyframes rf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rf-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes rf-spin { to { transform: rotate(360deg); } }
@keyframes rf-ring { 0% { transform: scale(.85); opacity: .55; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@keyframes rf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
