/* Base rules, ported from the prototype */
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font-ui); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--work); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
kbd { font: 500 11px var(--font-mono); padding: 1px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.btn { height: 34px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
a.btn { color: var(--ink); text-decoration: none; }
a.btn.primary { color: var(--accent-ink); }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { height: 28px; padding: 0 9px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.is-loading { color: transparent; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border: 2px solid var(--muted); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: grid; gap: 5px; }
.field > label, .field > .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select { height: 38px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 10px; background: var(--surface); width: 100%; min-width: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
a { color: var(--work); }
