* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, summary, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin-block: 0 1rem; }
[hidden] { display: none !important; }
pre { overflow: auto; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); font: 12px/1.85 var(--font-mono); }
code { font-family: var(--font-mono); font-size: 0.85em; }
button:active, .button:active { transform: translateY(1px); }
.button, .button-secondary { display: inline-flex; gap: 0.65rem; align-items: center; justify-content: center; padding: 0.65rem 1.1rem; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; min-height: 40px; }
.button-secondary { border-color: var(--border); background: var(--background); color: var(--foreground); }
.button:hover { opacity: 0.86; }
.button-secondary:hover { background: var(--secondary); }
.badge { display: inline-block; padding: 0.18rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 500; }
.badge.accent { background: var(--accent); color: var(--accent-foreground); border-color: transparent; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field textarea, .field select, .input { min-width: 0; padding: 0.65rem 0.8rem; border: 1px solid var(--input); border-radius: var(--radius); background: var(--background); color: var(--foreground); }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); opacity: 1; }
input:user-invalid, textarea:user-invalid { border-color: var(--destructive); }
.separator { border: 0; border-top: 1px solid var(--border); margin-block: 1.5rem; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; background: var(--background); }
.muted { color: var(--muted-foreground); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: 0.6rem 1rem; background: var(--primary); color: var(--primary-foreground); z-index: var(--layer-toast); }
.skip-link:focus { top: 1rem; }
dialog { padding: 1.5rem; max-width: min(560px, calc(100% - 2rem)); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); background: var(--background); color: var(--foreground); }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: rgb(20 23 18 / 0.45); overflow: hidden; overscroll-behavior: contain; }

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