:root { --bg: #f6f8f9; --surface: #fff; --text: #13232b; --muted: #5a6b73; --accent: #0e6f8a; --accent-text: #fff; --danger: #b42318; --border: #c9d3d8; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1a1f; --surface: #172329; --text: #e7eef1; --muted: #9fb0b8; --accent: #3fb3d1; --accent-text: #0b1418; --danger: #ff8a80; --border: #33444c; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 34rem; margin: 2rem auto; padding: 1.5rem 1rem; background: var(--surface); border-radius: 1rem; }
@media (min-width: 40rem) { main { padding: 2rem 2.5rem; margin-top: 4rem; box-shadow: 0 2px 16px rgb(0 0 0 / 8%); } }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; } h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }
label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
input { width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); color: var(--text); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.suffix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: .5rem; overflow: hidden; }
.suffix input { border: 0; border-radius: 0; min-width: 0; flex: 1; }
.suffix span { padding: 0 .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.note { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }
.note.ok { color: #1a7f37; } .note.bad, .error { color: var(--danger); }
.error { font-weight: 600; margin: 1rem 0 0; }
button, .button { display: inline-block; margin-top: 1.25rem; font: inherit; font-weight: 600; padding: .7rem 1.25rem; border: 0; border-radius: .5rem; background: var(--accent); color: var(--accent-text); cursor: pointer; text-decoration: none; }
button[disabled] { opacity: .6; cursor: progress; }
button.link { background: none; color: var(--accent); padding: 0; margin: 0; font-weight: 400; text-decoration: underline; }
.spinner { width: 2rem; height: 2rem; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
