:root{color-scheme:dark;--bg:#0b0b12;--panel:#14141f;--line:#29293b;--text:#f4f3fb;--muted:#a3a2b7;--purple:#8b73ff;--green:#61d6a5}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 75% -20%,#29204d 0,transparent 42%),var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}.topbar{min-height:70px;display:flex;align-items:center;gap:25px;padding:12px max(18px,calc((100vw - 1180px)/2));border-bottom:1px solid #ffffff12;background:#0b0b12e8;position:sticky;top:0;z-index:5;backdrop-filter:blur(14px)}.brand{font-weight:900;letter-spacing:3px;display:flex;align-items:center;gap:10px}.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#a18bff,#6249d6);font-weight:900;color:white}.brand-mark.big{width:58px;height:58px;font-size:30px;margin:0 auto 20px}.topbar nav{display:flex;gap:22px;margin-left:auto;color:var(--muted);font-size:14px}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:13px 19px;background:linear-gradient(135deg,var(--purple),#6f58e8);color:white;font-weight:750;cursor:pointer}.button-small{padding:9px 13px;font-size:13px}.button-ghost{background:#ffffff08;border:1px solid var(--line)}.hero{max-width:1180px;margin:auto;padding:110px 24px 90px}.eyebrow{font-size:11px;letter-spacing:2.5px;color:#a998ff;font-weight:800}.hero h1{font-size:clamp(46px,8vw,82px);line-height:1.02;letter-spacing:-3px;margin:20px 0}.hero h1 span{color:#a998ff}.lead{max-width:660px;color:#b9b8c9;font-size:18px;line-height:1.7}.hero-actions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}.hero-meta{display:flex;gap:22px;margin-top:40px;color:var(--muted);font-size:13px;flex-wrap:wrap}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:7px}.feature-grid{max-width:1180px;margin:auto;padding:0 24px 90px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-card,.panel-card,.stat-card,.callout,.login-card{background:linear-gradient(145deg,#191927,#11111a);border:1px solid var(--line);border-radius:18px;padding:24px}.feature-icon{font-size:25px;color:#b3a5ff}.feature-card h3{margin:18px 0 8px}.feature-card p,.callout p,.panel-card p{color:var(--muted);line-height:1.6;font-size:14px}.callout{max-width:1132px;margin:0 auto 90px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.callout h2{margin:12px 0 6px}.callout p{margin:0}footer{border-top:1px solid #ffffff12;padding:25px;text-align:center;color:#77768c;font-size:12px}.page-wrap{max-width:1120px;margin:auto;padding:65px 24px 100px}.page-wrap h1,.dash-heading h1{font-size:42px;letter-spacing:-1.5px;margin:12px 0}.command-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:30px}.command-grid .panel-card p{margin:8px 0}code{color:#c3b8ff;background:#27233d;padding:3px 6px;border-radius:6px}.dash-wrap{max-width:1180px;margin:auto;padding:42px 22px 90px}.login-card{text-align:center;max-width:500px;margin:60px auto;padding:48px 30px}.login-card p{color:var(--muted);line-height:1.6;margin:0 auto 25px;max-width:380px}.dash-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.muted{color:var(--muted)}.guild-select{min-width:220px;max-width:100%}select,input,textarea{width:100%;background:#0d0d16;border:1px solid #333349;border-radius:10px;padding:11px 12px;color:var(--text);font:inherit;outline:none}select:focus,input:focus,textarea:focus{border-color:var(--purple)}select[multiple]{min-height:145px}label{display:flex;flex-direction:column;gap:8px;color:#c9c8d7;font-size:13px;font-weight:650}label small{color:var(--muted);font-weight:400}.dash-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:18px}.side-nav{display:flex;flex-direction:column;gap:6px;align-self:start;position:sticky;top:90px}.nav-item{border:1px solid transparent;background:transparent;color:var(--muted);padding:12px 14px;text-align:left;border-radius:10px;font:inherit;cursor:pointer}.nav-item.active,.nav-item:hover{background:#211d36;color:white;border-color:#393052}.dash-content{min-width:0}.tab-panel{display:none}.tab-panel.active{display:block}.tab-panel h2{font-size:24px;margin:5px 0 20px}.panel-card{margin-bottom:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid .wide,.form-grid .section-title,.form-actions{grid-column:1/-1}.section-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px;margin-top:6px}.section-title h3{margin:0}.switch-label{display:flex;align-items:center;gap:9px;flex-direction:row}.switch-label input{width:18px;height:18px;accent-color:var(--purple)}.form-actions{display:flex;justify-content:flex-end}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.stat-card{padding:18px}.stat-card span{display:block;color:var(--muted);font-size:13px}.stat-card strong{display:block;font-size:30px;margin-top:8px}.status-list{display:grid;gap:10px}.status-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:9px 0;font-size:14px}.on{color:var(--green)}.off{color:#8a899a}.notice{border:1px solid #62522b;background:#2a2314;color:#e6d39b;border-radius:12px;padding:15px;margin:16px 0;line-height:1.55}.toast{position:fixed;bottom:22px;right:22px;max-width:calc(100vw - 44px);background:#203b32;border:1px solid #34775e;padding:13px 18px;border-radius:12px;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;z-index:10}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#40252b;border-color:#81404b}.user-chip{font-size:13px;color:var(--muted)}[hidden]{display:none!important}
@media(max-width:760px){.topbar{height:auto;padding:12px 16px;gap:12px;flex-wrap:wrap}.topbar nav{order:3;width:100%;margin:0;justify-content:space-between;gap:10px}.topbar nav a{font-size:12px}.topbar .button{margin-left:auto}.hero{padding:70px 22px 60px}.hero h1{letter-spacing:-2px}.feature-grid{grid-template-columns:1fr 1fr;padding-bottom:60px}.callout{margin:0 16px 60px;align-items:flex-start;flex-direction:column}.dash-wrap{padding:28px 14px 60px}.dash-heading{align-items:flex-start;flex-direction:column}.guild-select{width:100%}.dash-layout{grid-template-columns:1fr}.side-nav{position:static;display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.nav-item{text-align:center;padding:10px 5px;font-size:12px}.form-grid{grid-template-columns:1fr}.form-grid>*{grid-column:1/-1}.stat-grid{gap:8px}.stat-card{padding:14px}.stat-card strong{font-size:23px}.command-grid{grid-template-columns:1fr}.page-wrap{padding:45px 16px 70px}.page-wrap h1,.dash-heading h1{font-size:34px}}
@media(max-width:420px){.feature-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.stat-card:last-child{grid-column:1/-1}}

/* NIGHT-HEADER-SPACING-FIX */
.topbar #accountArea{display:flex;align-items:center;justify-content:flex-end;gap:28px;margin-left:8px;flex:0 0 auto}
.topbar #accountArea .button{margin-left:0}

/* NIGHT-BRAND-FIX */
.topbar .brand {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.8px;
    line-height: 1;
    gap: 9px;
    white-space: nowrap;
}
.topbar .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    font-family: system-ui, sans-serif;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(145deg, #aa96ff 0%, #8064f4 55%, #5b43c7 100%);
    box-shadow: 0 4px 14px #8065ff44;
}

/* Night legal pages and shared footer */
.site-footer{border-top:1px solid #ffffff12;background:#0b0b12aa;margin-top:30px}.footer-inner{max-width:1180px;margin:0 auto;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.footer-copy{display:grid;gap:5px;color:var(--muted);font-size:12px}.footer-copy strong{color:var(--text);font-size:13px;letter-spacing:.5px}.footer-links{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.footer-links a:hover{color:var(--text)}.legal-wrap{max-width:920px;margin:0 auto;padding:54px 24px 80px}.legal-wrap h1{font-size:clamp(34px,6vw,48px);letter-spacing:-1.6px;margin:12px 0 16px}.legal-wrap h2{font-size:21px;margin:30px 0 10px}.legal-wrap p,.legal-wrap li{color:#c4c2d2;line-height:1.75;font-size:14px}.legal-wrap ul{padding-left:22px}.legal-card{background:linear-gradient(145deg,#191927,#11111a);border:1px solid var(--line);border-radius:18px;padding:24px;margin:18px 0}.legal-meta{color:var(--muted);font-size:12px;line-height:1.7}.legal-note{border:1px solid #62522b;background:#2a2314;color:#e6d39b;border-radius:12px;padding:16px;margin:18px 0;line-height:1.65;font-size:13px}.legal-wrap a.inline-link{color:#b8aaff;text-decoration:underline;text-underline-offset:3px}.legal-wrap code{overflow-wrap:anywhere}.legal-table{width:100%;border-collapse:collapse;font-size:13px}.legal-table th,.legal-table td{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}.legal-table th{color:var(--text)}.legal-table td{color:#c4c2d2}@media(max-width:760px){.footer-inner{padding:22px 16px;align-items:flex-start;flex-direction:column}.footer-links{gap:10px 14px}.legal-wrap{padding:38px 16px 60px}.legal-card{padding:18px}.legal-table{font-size:12px}}
