:root { font-family: Inter, system-ui, sans-serif; color: #18233c; background: #f2f5fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
header { min-height: 84px; background: #fff; border-bottom: 1px solid #e2e8f0; padding: 18px max(24px, calc((100% - 1100px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 20px; }
.brand strong { font-size: 13px; font-weight: 500; display: block; color: #5e6d84; margin-top: 3px; }
.brand img { border-radius: 12px; }
main { max-width: 1148px; margin: 36px auto; padding: 0 24px; }
.heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h1 { margin: 0 0 20px; font-size: 27px; letter-spacing: -0.5px; }
.heading h1 { margin: 0; }
h2 { margin: 0 0 22px; font-size: 18px; }
.card { background: #fff; border: 1px solid #e1e7ef; padding: 28px; border-radius: 20px; }
.grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
#login { max-width: 420px; margin: 64px auto 24px; }
label { display: block; font-size: 14px; margin: 20px 0 8px; }
input { width: 100%; border: 1px solid #bdc9d9; border-radius: 9px; padding: 12px; font: inherit; }
input[readonly] { background: #f6f8fb; }
button, .button { background: #fff; color: #223251; border: 1px solid #c4d0e1; border-radius: 9px; padding: 10px 16px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center; }
.primary, .button { background: #325cdb; color: #fff; border-color: #325cdb; }
form button { width: 100%; margin-top: 24px; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7d9bff; outline-offset: 3px; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid #edf0f5; }
dt { color: #5e6d84; }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
p { color: #5e6d84; line-height: 1.6; font-size: 14px; }
#message { max-width: 700px; }
.notice { background: #eef3ff; border: 1px solid #cbd9ff; border-radius: 10px; padding: 14px 18px; margin: 0 0 24px; }
#qr { max-width: 100%; height: auto; display: block; margin: 10px auto 22px; }
#switch { display: block; }
.text-link { display: block; color: #325cdb; text-align: center; font-size: 14px; margin-top: 16px; }
[hidden] { display: none !important; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } .card { padding: 22px; } main { margin-top: 24px; } #login { margin-top: 32px; } }
nav { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
nav button[aria-current="page"] { background: #e7eeff; border-color: #8ea8ee; color: #2246ad; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.toolbar input { max-width: 420px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 14px 10px; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
th { color: #5e6d84; font-weight: 500; }
.settings-form { max-width: 560px; }
dialog { width: min(560px, calc(100% - 32px)); border: 1px solid #d8e1ed; border-radius: 18px; padding: 28px; max-height: calc(100vh - 48px); }
dialog::backdrop { background: #15203880; }
dialog .heading h2 { margin: 0; }
textarea, select { width: 100%; font: inherit; padding: 12px; border: 1px solid #bdc9d9; border-radius: 9px; }
textarea { min-height: 90px; resize: vertical; }
hr { border: 0; border-top: 1px solid #e1e7ef; margin: 28px 0; }
.profile-actions { margin-top: 20px; flex-wrap: wrap; }
.profile-actions button { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
