/* Elements and controls for the whole page (spec 2026-10-07 §3.1): one look for every button, field, badge and label. */
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` means hidden: any `display` below (every button is inline-flex) would otherwise beat the browser's own rule */
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.mono { font-family: var(--mono); font-size: 12px; }
.sub { color: var(--muted); font-size: 11.5px; }
.hint { color: var(--muted); }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { flex: none; width: 16px; height: 16px; }

button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel); color: var(--fg); font-size: 12.5px; font-weight: 550; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, filter .15s; }
button:hover:not(:disabled) { background: var(--hover); }
button:disabled { opacity: .5; cursor: default; }
button.btn-primary, button.btn-primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
button.btn-warn, button.btn-warn:hover:not(:disabled) { background: var(--warn); border-color: var(--warn); color: var(--warn-fg); }
button.btn-danger, button.btn-danger:hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: var(--danger-fg); }
button.btn-primary:hover:not(:disabled), button.btn-warn:hover:not(:disabled), button.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }
button.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
button.btn-quiet:hover:not(:disabled) { background: var(--hover); color: var(--fg); }
button.btn-sm { padding: 4px 9px; font-size: 12px; }
button.icon-btn { padding: 6px; }
button.link { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 500; }
button.link:hover:not(:disabled) { background: none; text-decoration: underline; }

input, select, textarea { padding: 6px 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--input); color: var(--fg); }
input::placeholder, textarea::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
/* type=text masked to look like a password field, without being one — see apps/dashboard/CLAUDE.md. */
.secret { -webkit-text-security: disc; }

.kbd { padding: 0 5px; border: 1px solid var(--line2); border-radius: 5px; color: var(--muted); font-size: 10.5px; }
.reg { flex: none; display: inline-block; width: 30px; padding: 2px 0; border-radius: 6px; background: var(--chip); color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-align: center; }
.reg-regery { background: var(--accent); color: var(--accent-fg); }
.reg-netim { background: var(--reg-netim); color: var(--reg-netim-fg); }
.reg-namecheap { background: var(--reg-namecheap); color: var(--reg-namecheap-fg); }
.reg-godaddy { background: var(--reg-godaddy); color: var(--reg-godaddy-fg); }
.stat { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.stat-done { background: var(--ok-soft); color: var(--ok-text); }
.stat-run, .stat-topup { background: var(--info-soft); color: var(--info-text); }
.stat-ask { background: var(--warn-soft); color: var(--warn-text); font-weight: 650; }
.stat-fail { background: var(--danger-soft); color: var(--danger-text); }
.stat-none { padding-left: 0; color: var(--faint); }
.tag-label { display: inline-block; padding: 0 7px; border: 1px solid var(--line2); border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 10.5px; }
.badge-count { min-width: 17px; padding: 0 5px; border-radius: 999px; background: var(--warn); color: var(--warn-fg); font-size: 10.5px; font-weight: 700; text-align: center; }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.dot-up { background: var(--ok); }
.dot-down { background: var(--danger); }
meter { display: block; width: 100%; height: 8px; }
meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 999px; background: var(--chip); }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--info)); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
