/* Brand «C de carril» tokens: --accent = links + focus, --primary = filled buttons, --bridge = "Bridge" in the header, --field-line = form-field edges (3:1, WCAG 1.4.11; --line stays light for cards). */
:root { --bg:#F6F3FA; --fg:#1C1B22; --muted:#514B5C; --card:#FFFFFF; --line:#DCD5E7; --field-line:#8E8899; --accent:#674494; --primary:#176B61; --on-primary:#FFFFFF; --bridge:#176B61; --ok:#0a7a3d; --warn:#9a5b00; --err:#b3261e; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#101116; --fg:#F1EDF6; --muted:#C9C4D3; --card:#191B23; --line:#2B2D38; --field-line:#696874; --accent:#D0BCFF; --primary:#D0BCFF; --on-primary:#1F1235; --bridge:#BCEBD0; --ok:#5fd08a; --warn:#f2b04a; --err:#f2877f; }
}
* { box-sizing: border-box; }
/* Brand typeface, self-hosted (SIL OFL 1.1, licence in /fonts/OFL.txt): variable 200-800, Latin subset only. */
@font-face { font-family:"Plus Jakarta Sans"; src:url("/fonts/PlusJakartaSans-latin.woff2") format("woff2"); font-weight:200 800; font-style:normal; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.5 "Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
header, main, footer { max-width: 40rem; margin: 0 auto; padding: 1rem; }
header a.brand { display:inline-flex; align-items:center; font-weight:700; font-size:1.15rem; color:var(--fg); text-decoration:none; }
header a.brand img { display:block; margin-right:.5rem; }
header a.brand span { color:var(--bridge); }
h1 { font-size:1.6rem; line-height:1.2; margin:.5rem 0 1rem; }
h2 { font-size:1.15rem; margin:1.5rem 0 .5rem; }
a { color:var(--accent); }
.card { background:var(--card); border:1px solid var(--line); border-radius:.75rem; padding:1rem; margin:1rem 0; }
.muted { color:var(--muted); }
.code { font:700 1.5rem/1.2 ui-monospace,Menlo,Consolas,monospace; letter-spacing:.08em; }
code { overflow-wrap:anywhere; }
.btn { display:inline-block; padding:.7rem 1.1rem; border-radius:.6rem; border:1px solid var(--primary); background:var(--primary); color:var(--on-primary); font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.btn.secondary { background:transparent; color:var(--primary); }
.actions { display:flex; flex-wrap:wrap; gap:.75rem; margin:1rem 0; }
label { display:block; font-weight:600; margin:1rem 0 .25rem; }
input, select, textarea { width:100%; padding:.65rem; font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--field-line); border-radius:.5rem; }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
[hidden] { display:none !important; }
.status { font-weight:700; }
.status.lifetime { color:var(--ok); } .status.trial, .status.pending { color:var(--warn); } .status.expired { color:var(--err); } .status.transferred { color:var(--muted); }
.msg.error { color:var(--err); } .msg.ok { color:var(--ok); }
ul.devices { list-style:none; padding:0; margin:0; }
ul.devices li { padding:.75rem 0; border-top:1px solid var(--line); }
ul.devices li:first-child { border-top:0; }
footer { color:var(--muted); font-size:.9rem; border-top:1px solid var(--line); margin-top:2rem; }
footer a { margin-right:1rem; }
