:root{color-scheme:dark;--bg:#071019;--panel:#111d2a;--panel2:#17283a;--line:#2b4055;--text:#edf6ff;--muted:#94a9be;--accent:#59b7ff;--green:#63ddb3;--red:#ff7b8b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 15% -10%,#153b5c,transparent 40%),var(--bg);color:var(--text);font:15px/1.45 system-ui,"Segoe UI",sans-serif;min-height:100vh}header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px clamp(15px,4vw,45px);background:#071019e8;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.brand{font-size:21px;font-weight:900;text-decoration:none}.brand b{color:var(--accent)}nav{display:flex;gap:6px;flex-wrap:wrap}nav a{padding:9px 11px;border-radius:9px;color:var(--muted);text-decoration:none}nav a:hover,nav a.active{background:var(--panel2);color:var(--text)}main{width:min(1180px,calc(100% - 28px));margin:28px auto 70px}.hero{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.hero h1{margin:0 0 5px;font-size:clamp(25px,4vw,39px)}.hero p,p{color:var(--muted);margin-top:0}.card,.stats>div,.login-card{background:linear-gradient(145deg,#142334f2,#0d1824f2);border:1px solid var(--line);border-radius:16px;padding:19px;box-shadow:0 16px 45px #0003}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.stats b{display:block;font-size:32px}.stats span{color:var(--muted)}.cards{display:grid;gap:12px}.row-card{display:flex;justify-content:space-between;align-items:center;gap:18px}.row-card h2{margin:0 0 6px}.actions{display:flex;gap:8px;flex-wrap:wrap}.button,button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:10px;padding:10px 14px;background:var(--accent);color:#06101a;text-decoration:none;font:inherit;font-weight:800;cursor:pointer}.secondary,button.secondary{background:var(--panel2);border-color:var(--line);color:var(--text)}.danger,button.danger{background:transparent;border-color:#793747;color:#ff9aaa}.form .grid,.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}label{display:flex;flex-direction:column;gap:6px;font-weight:700}.wide{grid-column:1/-1}.check{flex-direction:row;align-items:center}.check input{width:auto}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#07121d;color:var(--text);font:inherit;outline:none}input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #59b7ff22}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px;border-bottom:1px solid #26394b;white-space:nowrap}th{color:#a9bfd2}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#26394b}.badge.success{background:#174739;color:#9cf4d6}.badge.error,.badge.denied{background:#51232c;color:#ffb1bb}.badge.not_found{background:#51411f;color:#ffe39a}.flash{padding:12px 14px;border-radius:10px;margin-bottom:15px}.flash.success{background:#174739;color:#b9f8e3}.flash.error{background:#51232c;color:#ffc2c9}.login-card{width:min(420px,100%);margin:10vh auto}.login-card h1{margin-bottom:3px}.login-card form{display:grid;gap:14px}.empty{text-align:center;color:var(--muted)}code{background:#07121d;border:1px solid var(--line);padding:2px 6px;border-radius:6px}@media(max-width:760px){header,.hero,.row-card{align-items:flex-start;flex-direction:column}.stats,.grid,.form .grid{grid-template-columns:1fr}.wide{grid-column:auto}.actions{width:100%}.actions>*{flex:1}.actions form button{width:100%}nav{width:100%;overflow:auto;flex-wrap:nowrap}}

/* profile-ui-v2 */
.profiles-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}.profiles-heading h1{margin:0 0 4px;font-size:clamp(25px,4vw,39px)}.profiles-heading p{margin:0}.profile-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.profile-actions form{margin:0}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.profile-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 190px auto;gap:10px;align-items:center;padding:12px 14px;margin-bottom:14px}.profile-search-box{display:flex;align-items:center;gap:8px;max-width:720px;width:100%;justify-self:center;background:#07121d;border:1px solid var(--line);border-radius:11px;padding:0 12px}.profile-search-box span{font-size:22px;color:var(--muted)}.profile-search-box input{border:0!important;box-shadow:none!important;padding:10px 0!important;background:transparent!important}.profile-counter{min-width:58px;text-align:right;color:var(--muted);font-weight:700}.profile-csv-hint{grid-column:1/-1;text-align:center;color:var(--muted);font-size:12px;line-height:1.3}.profile-row[hidden],.profile-no-results[hidden]{display:none!important}.profile-row h2 span{color:var(--muted);font-weight:600}.profile-row p{margin-bottom:4px}.profile-row small{display:block;color:var(--muted);max-width:720px}.profile-row .badge{margin-left:8px}@media(max-width:900px){.profiles-heading{align-items:flex-start;flex-direction:column}.profile-actions{width:100%}.profile-actions>*{flex:1}.profile-actions form .button,.profile-actions form button{width:100%}.profile-toolbar{grid-template-columns:1fr 180px}.profile-counter{text-align:center}.profile-csv-hint{grid-column:1/-1}}@media(max-width:640px){.profile-toolbar{grid-template-columns:1fr}.profile-search-box{max-width:none}.profile-counter{text-align:center}.profile-actions{display:grid;grid-template-columns:1fr 1fr}.profile-actions>a{grid-column:1/-1}.profile-actions label.button{width:100%}}
