:root { font-family: system-ui, sans-serif; color: #1f2937; background: #f8fafc; }
body { margin: 0; line-height: 1.6; }
header { background: #fff; border-bottom: 1px solid #dbe2ea; }
nav, .container { max-width: 1100px; margin: 0 auto; padding: 1.25rem; }
nav { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
a { color: #1649a3; }
a:focus-visible { outline: 3px solid #1649a3; outline-offset: 4px; }
.brand { font-weight: 700; text-decoration: none; }
main { min-height: 60vh; }
h1 { line-height: 1.2; }
footer { color: #526174; border-top: 1px solid #dbe2ea; }
.auth-panel { max-width: 30rem; margin: 2rem auto; padding: 1.5rem; border: 1px solid #dbe2ea; border-radius: .5rem; background: #fff; }
.auth-form { display: grid; gap: 1rem; }
.auth-secret { display: block; overflow-wrap: anywhere; user-select: all; }
.auth-qr { box-sizing: border-box; width: min(100%, 20rem); padding: 2rem; margin: 1rem auto; background: #fff; }
.auth-qr canvas, .auth-qr img { display: block; width: 100%; height: auto; }
.auth-qr svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.auth-form label { display: block; }
.auth-form input:not([type="hidden"]):not([type="checkbox"]) { box-sizing: border-box; width: 100%; padding: .65rem; border: 1px solid #64748b; border-radius: .25rem; font: inherit; }
.auth-form button { padding: .65rem 1rem; border: 0; border-radius: .25rem; background: #1649a3; color: #fff; font: inherit; cursor: pointer; }
.text-danger { color: #b91c1c; }
.nav-logout { border: 0; padding: 0; background: transparent; color: #1649a3; text-decoration: underline; font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #1649a3; outline-offset: 3px; }

.bdd-table-section { margin-block: 2rem; }
.bdd-table-scroll { overflow-x: auto; border: 1px solid #dbe2ea; border-radius: 0.5rem; background: #fff; }
.bdd-table-scroll:focus-visible { outline: 3px solid #1649a3; outline-offset: 4px; }
.bdd-table { width: 100%; border-collapse: collapse; text-align: left; }
.bdd-table caption { padding: 0.75rem 1rem; font-weight: 600; text-align: left; }
.bdd-table th, .bdd-table td { padding: 0.75rem 1rem; border-top: 1px solid #dbe2ea; vertical-align: top; }
.bdd-table thead { background: #eef2f7; }
.bdd-table tbody tr:nth-child(even) { background: #f8fafc; }

.nav-dropdown { position: relative; }
.nav-dropdown summary { color: #1649a3; cursor: pointer; }
.nav-dropdown summary:focus-visible { outline: 3px solid #1649a3; outline-offset: 4px; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 10rem; margin: 0.5rem 0 0; padding: 0.375rem; list-style: none; background: #fff; border: 1px solid #dbe2ea; border-radius: 0.5rem; box-shadow: 0 8px 20px rgb(31 41 55 / 12%); }
.nav-dropdown-menu a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.25rem; text-decoration: none; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: #eef2f7; }
