:root {
    --navy: #0a2a5c;
    --sea: #006b99;
    --bg: #f4f8fb;
    --danger: #b00020;
}
* { box-sizing: border-box; }
body {
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
    margin: 0; background: var(--bg); color: #16232e; line-height: 1.5;
}
header {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(120deg, var(--navy), var(--sea));
    color: #fff; padding: 14px 18px;
}
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.logout { color: #cfe6f3; text-decoration: none; font-size: .9rem; }
main { max-width: 460px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 1.5rem; margin: .4em 0 .2em; }
h2 { font-size: 1.15rem; margin: 0 0 .4em; }
.lede { color: #4a5b68; margin-top: 0; }
label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: .95rem; }
input, select {
    width: 100%; padding: 11px 12px; font-size: 1rem; margin-top: 4px;
    border: 1px solid #c6d3de; border-radius: 10px; background: #fff;
}
button {
    margin-top: 16px; width: 100%; padding: 12px; font-size: 1rem; font-weight: 600;
    color: #fff; background: var(--sea); border: none; border-radius: 10px; cursor: pointer;
}
button:hover { background: var(--navy); }
.inline { display: inline; margin: 0; width: auto; }
.inline button { width: auto; margin: 0; padding: 6px 12px; font-size: .85rem; }
.danger { background: var(--danger); }
.card { background: #fff; border: 1px solid #dce6ee; border-radius: 14px; padding: 16px; margin: 16px 0; }
.codes, .links { list-style: none; padding: 0; }
.codes li, .links li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #eef2f6;
}
.code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.2rem;
    font-weight: 700; letter-spacing: 1px; color: var(--navy);
}
.muted { color: #7c8a97; font-size: .85rem; }
.error { background: #fde8ea; color: var(--danger); padding: 10px 12px; border-radius: 10px; }
.code-entry { flex-direction: column; align-items: flex-start !important; gap: 8px; }
.code-entry > div { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.qr { width: 160px; height: 160px; border: 1px solid #dce6ee; border-radius: 12px; align-self: center; }
.center { text-align: center; }
.code.big { font-size: 1.9rem; display: block; margin: 10px 0 18px; }
.button {
    display: block; margin: 6px auto 14px; padding: 12px 20px; max-width: 320px;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    color: #fff; background: var(--sea); border-radius: 10px;
}
.button:hover { background: var(--navy); }
.small { font-size: .8rem; }
.alt { text-align: center; margin-top: 20px; }
footer { text-align: center; color: #9aa7b3; font-size: .8rem; padding: 20px; }
