:root { color-scheme: dark; font-family: Inter, "PingFang SC", system-ui, sans-serif; background:#0a1020; color:#e8eefb; }
* { box-sizing:border-box; } body { margin:0; min-width:320px; background:radial-gradient(circle at 15% -10%,#1b355d 0,transparent 34rem),#0a1020; }
.topbar, main { width:min(1180px,calc(100% - 40px)); margin:auto; }.topbar { min-height:160px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
h1,h2,p { margin:0; } h1 { font-size:clamp(1.7rem,4vw,2.45rem); letter-spacing:-.04em; } h2 { font-size:1.1rem; } .eyebrow { color:#7ea3df; font-size:.74rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:7px; }
.status { display:flex; align-items:center; gap:8px; color:#a7b8d4; font-size:.86rem; }.status i { width:9px; height:9px; border-radius:50%; background:#55db9d; box-shadow:0 0 18px #55db9d; }
.account-area{display:flex;align-items:center;gap:14px}.account-trigger{display:flex;align-items:center;gap:8px;padding:5px 9px 5px 5px;background:#142746;color:#e8eefb}.account-trigger span:first-child,.account-summary>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#3c70c4;font-weight:800}.auth-dialog,.account-dialog{width:min(480px,calc(100% - 28px));border:1px solid #385681;border-radius:16px;background:#101d35;color:#e8eefb;padding:26px;box-shadow:0 28px 100px #000}.auth-dialog::backdrop,.account-dialog::backdrop{background:rgba(2,7,17,.78);backdrop-filter:blur(4px)}.auth-dialog form,.stack-form{display:grid;gap:13px}.auth-dialog h2,.account-dialog h2{margin-bottom:12px}.auth-dialog label,.stack-form label{display:grid;gap:6px;color:#a9bbd6;font-size:.84rem}.auth-dialog input,.stack-form input,.stack-form select{border:1px solid #31496f;border-radius:8px;background:#0b172b;color:#e8eefb;padding:10px;font:inherit}.account-summary{display:flex;gap:10px;align-items:center;padding:12px 0 20px}.account-summary h2{font-size:1.15rem;margin:0}.account-summary p{color:#9cb0cc;font-size:.84rem}.account-actions{display:grid;gap:8px}.account-actions button{text-align:left;background:#172b4b}.account-actions .danger,.danger{background:#632f3c}.secondary{background:#253a5a}.audit-list{display:grid;gap:5px;max-height:360px;overflow:auto;margin:16px 0}.audit-list article,.user-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #26395d;border-radius:8px;padding:10px}.audit-list article{display:grid;gap:3px}.audit-list span,.user-list span{color:#9eb1cc;font-size:.76rem}.compact{grid-template-columns:1fr 1fr}.compact button{grid-column:1/-1}.user-list{display:grid;gap:7px;margin:16px 0}.user-list article>div:first-child{display:grid;gap:3px}.user-list article>div:last-child{display:flex;gap:5px}.user-list button{padding:6px 8px;font-size:.72rem}.user-list em{color:#8da9d7;font-size:.75rem}
main.app-shell { display:grid; grid-template-columns:228px minmax(0,1fr); align-items:start; gap:18px; padding-bottom:48px; }.content-column,.content-view { min-width:0; }.content-view { display:grid; gap:18px; }[hidden] { display:none!important; }.channel-sidebar,.stats article,.panel { border:1px solid #223152; background:rgba(18,29,53,.83); border-radius:14px; box-shadow:0 16px 48px rgba(0,0,0,.16); }.channel-sidebar { position:sticky; top:18px; padding:16px 10px; max-height:calc(100vh - 36px); overflow:auto; }.sidebar-header { padding:3px 8px 13px; }.sidebar-header h2 { font-size:1rem; }.tree-all,.channel-node { width:100%; border:0; display:flex; align-items:center; justify-content:space-between; gap:8px; border-radius:8px; padding:9px 10px; background:transparent; color:#b8c9e6; font:inherit; text-align:left; cursor:pointer; }.tree-all { font-weight:700; margin-bottom:8px; }.tree-all:hover,.channel-node:hover { background:#182b4a; color:#fff; }.tree-all.selected,.channel-node.selected { background:#215ab8; color:#fff; }.sidebar-secondary { border-bottom:1px solid #273959; margin-bottom:10px; padding-bottom:12px; }.sidebar-secondary .tree-all { margin-bottom:0; }.guild-node { border-top:1px solid #273959; padding:10px 0 4px; }.guild-node:first-child { border-top:0; }.guild-node h3 { color:#7f96b9; padding:0 10px 7px; font-size:.72rem; letter-spacing:.04em; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.channel-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.channel-count { color:#8da5ca; font-size:.75rem; flex:none; }.channel-node.selected .channel-count { color:#d8e7ff; }.channel-count i { display:inline-block; width:6px; height:6px; border-radius:50%; background:#5fe0a3; margin:0 5px 1px 0; }.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }.stats article { padding:20px; display:grid; gap:5px; }.stats span,.stats small { color:#a7b8d4; }.stats strong { font-size:2rem; }.panel { padding:22px; }.section-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
button,.export { border:0; border-radius:8px; padding:9px 13px; color:#fff; font:inherit; font-weight:700; background:#3675ea; cursor:pointer; text-decoration:none; }.export { background:#183c78; color:#bcd4ff; }
.active-list { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.panel { min-width:0; }.active-member { width:100%; display:flex; align-items:center; gap:10px; border:1px solid #26395d; background:#101d35; padding:12px; border-radius:10px; color:#e8eefb; text-align:left; cursor:pointer; }.active-member:hover { border-color:#5590f4; background:#142746; }.avatar { width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#244d91;color:#c8dcff;font-weight:800;object-fit:cover;flex:none }.active-member div:nth-child(2){display:grid;gap:3px;min-width:0}.active-member span,.active-member time,.event small{color:#99adca;font-size:.78rem}.active-member time{margin-left:auto;white-space:nowrap}
.filters { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-bottom:18px; }.filters label{display:grid;gap:5px;color:#a7b8d4;font-size:.77rem}.filters input{background:#0c172b;border:1px solid #2c4168;color:#e8eefb;border-radius:7px;padding:9px;min-width:150px;font:inherit}.filters .check{display:flex;align-items:center;gap:6px;padding:9px 0}.filters .check input{min-width:auto}
.table-wrap{max-width:100%;min-width:0;overflow:auto} table{border-collapse:collapse;width:100%;min-width:700px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #263758;font-size:.88rem}th{color:#8ca2c4;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}.badge{padding:4px 8px;border-radius:999px;font-size:.76rem;font-weight:700}.badge.open{background:#133d31;color:#76e8b6}.badge.closed{background:#26364f;color:#b6c5dc}.empty{color:#91a5c3;padding:16px}.events{display:grid;gap:9px}.event{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid #223452}.event:last-child{border:0}.event div{display:grid;gap:4px}.event-dot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex:none}.event-dot.join{background:#54d997}.event-dot.leave{background:#e9987a}.event-dot.change{background:#75a8ff}
.view-description{color:#99adca;font-size:.86rem;line-height:1.6;margin:-8px 0 18px}.guild-events-page{min-height:420px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #223452;margin-top:12px;padding-top:16px}.pagination-total{color:#8fa4c3;font-size:.78rem}.pagination-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.pagination button{min-width:36px;padding:7px 10px;background:#172b4b;color:#b9cbea;font-size:.78rem}.pagination button:hover:not(:disabled){background:#23477d;color:#fff}.pagination button.selected{background:#3675ea;color:#fff}.pagination button:disabled{cursor:not-allowed;opacity:.42}
.table-wrap{max-width:100%;min-width:0;overflow:auto} table{border-collapse:collapse;width:100%;min-width:700px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #263758;font-size:.88rem}th{color:#8ca2c4;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}.badge{padding:4px 8px;border-radius:999px;font-size:.76rem;font-weight:700}.badge.open{background:#133d31;color:#76e8b6}.badge.closed{background:#26364f;color:#b6c5dc}.empty{color:#91a5c3;padding:16px}.error{color:#ff9b9b;padding:16px}.events{display:grid;gap:9px}.event{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid #223452}.event:last-child{border:0}.event div{display:grid;gap:4px}.event-dot{width:9px;height:9px;border-radius:50%;margin-top:5px}.event-dot.join{background:#54d997}.event-dot.leave{background:#e9987a}.member-dialog{width:min(470px,calc(100% - 30px));border:1px solid #385681;border-radius:16px;background:#101d35;color:#e8eefb;padding:26px;box-shadow:0 28px 100px #000}.member-dialog::backdrop{background:rgba(2,7,17,.75);backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:12px;top:10px;background:transparent;color:#a8bddb;font-size:1.6rem;padding:3px 9px}.member-head{display:flex;align-items:center;gap:14px}.member-head img,.profile-avatar{width:68px;height:68px;border-radius:50%;object-fit:cover;background:#2855a1;display:grid;place-items:center;font-size:1.8rem;font-weight:800}.member-head h2{font-size:1.35rem}.member-head p,.muted{color:#9cb0cc;font-size:.86rem}.presence{display:inline-block;margin-top:7px;color:#a7b8d4;font-size:.78rem}.presence.online{color:#67e2a6}.presence.online::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:5px}.member-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0}.member-facts div{background:#0c172b;border:1px solid #26395d;border-radius:9px;padding:10px}.member-facts dt{font-size:.72rem;color:#8ca2c4}.member-facts dd{font-size:.8rem;margin:6px 0 0;word-break:break-word}.role-section h3{font-size:.9rem;margin-bottom:9px}.roles{display:flex;flex-wrap:wrap;gap:7px}.role{border:1px solid var(--role-color);color:var(--role-color);padding:4px 8px;border-radius:999px;font-size:.78rem;font-weight:700}
@media (max-width:780px){.topbar{min-height:130px;align-items:flex-start;padding-top:28px;flex-direction:column}.topbar,main{width:min(100% - 24px,1180px)}.account-area{width:100%;justify-content:space-between}.status{display:none}main.app-shell{grid-template-columns:1fr}.channel-sidebar{position:static;max-height:280px}.stats,.active-list{grid-template-columns:1fr}.panel{padding:16px}.active-member time{font-size:.7rem}.filters>*{flex:1 1 45%}.compact{grid-template-columns:1fr}.pagination{align-items:flex-start;flex-direction:column}.pagination-controls{justify-content:flex-start}}
