:root{--background:#f7f8fa;--surface:#fff;--foreground:#171a1f;--muted:#5b6472;--border:#dde1e8;--primary:#1f5fd1;--on-primary:#fff;--ok:#0f7b46;--warn:#8a5a00;--error:#b42318;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--background:#101216;--surface:#181b21;--foreground:#eceef2;--muted:#9aa3b2;--border:#2a2f38;--primary:#8ab0ff;--on-primary:#0b1a3a;--ok:#4ccf8a;--warn:#e5b454;--error:#ff8a80}}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--background);color:var(--foreground);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}a{color:var(--primary)}ul{list-style:none}h1{font-size:1.6rem}h2{font-size:1.15rem}h3{font-size:1rem}.wrap{overflow-wrap:anywhere}.muted{color:var(--muted);font-size:.9rem}.shell{grid-template-columns:230px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:24px;padding:24px 16px;display:flex}.brand{padding:0 8px;font-weight:700}.nav{flex-direction:column;gap:4px;display:flex}.nav a{color:var(--foreground);border-radius:6px;padding:8px;text-decoration:none;display:block}.nav a:hover,.nav a[aria-current=page]{background:var(--background)}.nav a[aria-current=page]{font-weight:600}.account{overflow-wrap:anywhere;flex-direction:column;gap:8px;margin-top:auto;padding:0 8px;display:flex}.content{flex-direction:column;gap:20px;max-width:1200px;padding:32px;display:flex}@media (max-width:760px){.shell{grid-template-rows:auto 1fr;grid-template-columns:minmax(0,1fr)}.sidebar{border-right:0;border-bottom:1px solid var(--border);gap:12px}.nav{flex-flow:wrap}.content{padding:16px}}.login{place-items:center;min-height:100vh;padding:16px;display:grid}.login .card{width:100%;max-width:360px}.card{background:var(--surface);border:1px solid var(--border);border-radius:8px;flex-direction:column;align-items:flex-start;gap:12px;padding:20px;display:flex}p.card{display:block}.narrow{max-width:520px}.stats,.controls{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;display:grid}.controls{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.stats .card{height:100%;color:inherit;gap:4px;text-decoration:none}.stats strong{font-size:1.7rem}.facts{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));align-items:start;display:grid}.facts dd{overflow-wrap:anywhere}.form{flex-direction:column;align-items:flex-start;gap:12px;width:100%;display:flex}label{flex-direction:column;gap:4px;width:100%;font-size:.9rem;font-weight:500;display:flex}label.check{flex-direction:row;align-items:center;gap:8px}input,select{min-height:38px;font:inherit;color:inherit;background:var(--background);border:1px solid var(--border);border-radius:6px;padding:6px 10px}input[type=checkbox]{width:18px;height:18px;min-height:0}.button{min-height:38px;font:inherit;color:var(--on-primary);background:var(--primary);border:1px solid var(--primary);cursor:pointer;border-radius:6px;padding:6px 16px;font-weight:600}.button.secondary{color:var(--primary);background:0 0}.button.danger{background:var(--error);border-color:var(--error)}.button:disabled{opacity:.6;cursor:default}.filters{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.filters label{width:auto;min-width:200px}.message{font-size:.9rem}.message.ok{color:var(--ok)}.message.error{color:var(--error)}.table-scroll{background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;vertical-align:top;white-space:nowrap;padding:10px 14px}thead th{color:var(--muted);font-weight:600}tbody tr{border-top:1px solid var(--border)}.empty{color:var(--muted)}.badge{border:1px solid;border-radius:999px;padding:1px 10px;font-size:.8rem;font-weight:600;display:inline-block}.badge.active,.badge.admin_granted{color:var(--ok)}.badge.expired{color:var(--warn)}.badge.disabled{color:var(--error)}.badge.not_started{color:var(--muted)}.pagination,.tabs{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.tabs a[aria-current=page]{color:var(--foreground);font-weight:700;text-decoration:none}.legal{flex-direction:column;gap:32px;max-width:760px;margin:0 auto;padding:24px 16px 48px;display:flex}.legal header,.legal nav{flex-wrap:wrap;justify-content:space-between;gap:16px;display:flex}.legal article{flex-direction:column;gap:12px;display:flex}.legal h2{margin-top:16px}.legal ul{list-style:outside}.legal ul,.legal ol{padding-left:22px}.legal th,.legal td{white-space:normal}
