:root {
    color-scheme: light dark;
    --ground: #f6f7f9;
    --card: #ffffff;
    --ink: #1c2530;
    --muted: #5d6b7a;
    --line: #d9dee5;
    --accent: #1f5fbf;
    --accent-ink: #ffffff;
    --danger: #b3261e;
}
@media (prefers-color-scheme: dark) {
    :root { --ground: #12161c; --card: #1b212a; --ink: #e7ecf2; --muted: #9aa7b5; --line: #2d3642; --accent: #6ea8ff; --accent-ink: #0b1220; --danger: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--ground); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
header { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-weight: 600; }
.badge { font-size: .75rem; padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.spacer { flex: 1; }
.user { color: var(--muted); font-size: .85rem; }
main { flex: 1; padding: 1.2rem 1rem; max-width: 34rem; width: 100%; margin: 0 auto; }
section { background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: 1.1rem 1.2rem; }
h1 { font-size: 1.05rem; margin: 0 0 .7rem; overflow-wrap: anywhere; }
p { margin: .5rem 0; }
.status, .note { color: var(--muted); }
.note { font-size: .85rem; }
.error { color: var(--danger); }
.secret { margin: 1rem 0; text-align: center; }
code { font: 1.15rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
code.otp { font-size: 2rem; letter-spacing: .25em; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
button, .button { font: inherit; padding: .45rem .9rem; border-radius: .4rem; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.link { border: 0; padding: 0; color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, .button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: .85rem; color: var(--muted); margin: .8rem 0 .25rem; }
input[type=password], input[type=text], input[type=number] { width: 100%; font: 1rem ui-monospace, Consolas, monospace; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--ground); color: var(--ink); }
input[type=file] { margin: .6rem 0; max-width: 100%; }
.row { display: flex; gap: .4rem; }
.row input { flex: 1; min-width: 0; }
footer { padding: .7rem 1rem; font-size: .75rem; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }

h2 { font-size: 1rem; margin: 1.2rem 0 .2rem; }
ul.items { margin: .6rem 0; padding-left: 1.2rem; }
ul.items li { margin: .2rem 0; }
label.check { display: flex; gap: .5rem; align-items: center; color: inherit; }
label.check input { width: auto; }
select { width: 100%; padding: .45rem .5rem; font: inherit; }
