:root{color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body{background:#101318!important;color:#edf0f4!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
body::before{content:"";position:fixed;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#a9c7f4,#758fb8);z-index:100;pointer-events:none}
body .box,.elevated.box,.profile-card,nav.welcome li{background:#1c222b!important;border:1px solid #3a4654!important;border-radius:18px!important;box-shadow:0 24px 70px #0004!important;color:#edf0f4!important}
body .box{max-width:720px;margin-inline:auto;padding:clamp(22px,4vw,42px)!important}
body h1,body h2,body h3{color:#f4f7fb!important;letter-spacing:-.035em;line-height:1.17}
body h1{font-size:clamp(30px,5vw,50px)!important}
body h2{font-size:clamp(22px,3vw,30px)!important;margin-top:32px}
body p,body .weak,body .field-desc{color:#a5b0bf!important;line-height:1.55}
body a{color:#bdd2f4}
body a:hover{color:#e0ebff}
body input:not([type=checkbox]):not([type=radio]),body select,body textarea{background:#242d38!important;border:1px solid #435165!important;border-radius:10px!important;color:#f3f6fa!important;padding:11px 13px!important;min-height:45px}
body input:focus-visible,body select:focus-visible,body textarea:focus-visible,body button:focus-visible,body a:focus-visible{outline:2px solid #a9c7f4!important;outline-offset:3px}
body button,body .button,body a.button,body input[type=submit]{border-radius:10px!important;font-weight:650!important}
body .primary{background:#bdd2f4!important;color:#142033!important;border:1px solid #d4e3fa!important}
body .secondary{background:#2b394c!important;color:#e2edfb!important;border:1px solid #526783!important}
body .powered-by{opacity:.68;margin:12px 0 25px}
.browser-first{margin:28px 0;padding:26px;background:linear-gradient(145deg,#273b57,#202b3a);border:1px solid #819dc5;border-radius:16px}
.browser-first__step{font-size:11px;letter-spacing:.14em;font-weight:750;color:#bbd6ff}
.browser-first h2{margin:10px 0!important}
.browser-first p{margin:0 0 20px!important;color:#d1dfef!important}
.browser-first__button{display:inline-flex;min-height:46px;align-items:center;padding:10px 18px;background:#bdd2f4;border-radius:10px;color:#142033!important;text-decoration:none;font-size:14px;font-weight:750}
.browser-first__button:hover{background:#d4e3fa;color:#142033!important}
.browser-first__qr{display:inline-flex;margin:12px 0 0 12px;min-height:44px;align-items:center;color:#d3e6ff!important;font-size:13px;font-weight:650}
.browser-first--compact{margin-bottom:25px}
.app-option{margin-top:30px;padding:20px;background:#222e3e;border:1px solid #40536d;border-radius:12px}
.app-option h3{margin:0 0 8px}
#invite .install-buttons{margin-top:20px}
#invite .install-buttons ul{display:flex;flex-wrap:wrap;gap:8px;padding:0}
#invite .form{display:grid;gap:13px}
#invite .f-ebox label{display:block;color:#d0dceb;font-weight:650;margin-bottom:8px}
#invite .f-ebox input{width:100%;box-sizing:border-box}
#invite .lwrap{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
#invite .lwrap input{flex:1;min-width:160px}
#invite .localpart-fixed{color:#c7d9f0}
#qr-modal .box{max-width:440px}
#qr-modal .qr{background:#fff;border-radius:13px;padding:15px;width:max-content;max-width:100%;margin:20px auto}
nav.welcome ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:18px;padding:0}
nav.welcome ul{grid-template-columns:repeat(2,minmax(0,1fr))}
nav.welcome li{margin:0!important;padding:26px!important;list-style:none;max-width:none!important;width:100%!important;min-width:0!important;box-sizing:border-box}
.profile-card{display:flex;align-items:center;gap:14px;min-width:0}
.profile-card .details{min-width:0;flex:1}
.profile-card .address{display:flex;align-items:center;min-width:0}
.profile-card .address input{flex:1;min-width:0;width:100%}
.profile-card{padding:17px!important;margin:15px 0!important}
.form.layout-expanded{max-width:720px;margin:22px auto;padding:clamp(20px,4vw,35px);background:#1c222b;border:1px solid #3a4654;border-radius:18px;box-shadow:0 24px 70px #0004}
.form.layout-expanded .f-ebox{margin:0 0 20px}
.form.layout-expanded .f-ebox>label{display:block;margin:0 0 9px;color:#d0dceb;font-weight:650}
.form.layout-expanded .avatar-wrap{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:14px;background:#242d38;border-radius:12px}
.form.layout-expanded fieldset{border:1px solid #3d4a5c;border-radius:12px;padding:15px}
.form.layout-expanded legend{color:#d0dceb;font-weight:650}
.form.layout-expanded .f-bbox{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:24px}
@media(max-width:650px){body .box{width:calc(100% - 24px)!important;box-sizing:border-box}.browser-first{padding:19px}#invite .install-buttons ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}nav.welcome ul{grid-template-columns:1fr}}
