:root{font-family:'Segoe UI',system-ui,sans-serif;color:#233047;background:#f5f7fb;font-synthesis:none;font-size:16px;--ink:#172137;--muted:#68758a;--purple:#6d5ce7;--border:#e6eaf2;--nav:#141b2d}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #afa5ff;outline-offset:3px}button{border:0}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;line-height:1.2;letter-spacing:-.055em;margin-bottom:10px}h2{font-size:1.15rem;letter-spacing:-.025em;margin-bottom:7px}h3{font-size:1rem;margin-bottom:8px}p{line-height:1.65}small{font-size:.875rem}.muted{color:var(--muted)}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#afb8cc;padding:31px 18px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;color:white;font-size:1.35rem;font-weight:800;letter-spacing:-.05em;padding:0 13px}.brand-mark{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:11px;background:linear-gradient(145deg,#8d7df7,#6451df);font-size:1.6rem;font-weight:800;color:white;box-shadow:0 4px 14px #6553d338;line-height:1}.brand small{font-size:.7rem;letter-spacing:.04em;background:#293149;border-radius:5px;padding:3px 5px;color:#c0c7dd}.workspace-label,.nav-label{font-size:.7rem;letter-spacing:.14em;font-weight:700;text-transform:uppercase;color:#78849e;margin:37px 14px 14px}.guild-switch{background:#202940;border:1px solid #303a53;padding:13px;border-radius:11px;margin:0 3px;color:#fff;width:calc(100% - 6px)}.guild-switch select{color:#e7ecf8;background:#202940;border:0;width:100%;font-size:.9rem;font-weight:600;padding:0}.nav-label{margin-top:30px}.nav{display:flex;flex-direction:column;gap:5px}.nav-button{width:100%;padding:12px 14px;display:flex;align-items:center;gap:12px;background:transparent;color:#a8b3ca;text-align:left;border-radius:8px;font-size:.9rem;font-weight:500}.nav-button:hover{background:#202940;color:#fff}.nav-button.active{background:#7564ed;color:white;box-shadow:0 4px 14px #0002}.nav-icon{display:flex;width:20px}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-foot{margin-top:auto;padding-top:36px}.side-note{padding:15px;background:#1d263b;border:1px solid #2d3750;border-radius:10px;font-size:.8rem;line-height:1.6}.side-note strong{color:#e6ebf8;display:block;margin-bottom:5px}.profile{display:flex;align-items:center;gap:10px;margin:21px 9px 0}.avatar{width:34px;height:34px;background:#3d405c;color:#dbd5ff;border-radius:50%;display:grid;place-items:center;font-size:.85rem;font-weight:700;flex-shrink:0}.profile-name{font-size:.8rem;color:#e9edf9;overflow:hidden;text-overflow:ellipsis;max-width:120px}.profile-subtitle{font-size:.7rem;color:#7e8da9;margin-top:3px}.logout{margin-left:auto;background:transparent;color:#8d9ab3;padding:6px}.content{min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--border);background:white;gap:15px}.breadcrumb{font-size:.85rem;color:#8a94a6;display:flex;gap:12px;align-items:center}.breadcrumb strong{font-weight:500;color:#45516b}.top-actions{display:flex;gap:17px;align-items:center}.status{display:inline-flex;align-items:center;gap:7px;font-size:.75rem;border:1px solid #dceae3;border-radius:20px;padding:6px 10px;color:#347358;background:#f4fbf6;white-space:nowrap}.status::before{content:'';width:6px;height:6px;border-radius:50%;background:#36a36c}.status.offline{color:#9a681c;background:#fff9eb;border-color:#f1e4c9}.status.offline::before{background:#d39a31}.top-initial{border:1px solid #e5e9f1;border-radius:50%;background:#f4f2ff;color:#7968d8;width:33px;height:33px;display:grid;place-items:center;font-size:.8rem;font-weight:bold}.main{max-width:1440px;margin:auto;padding:38px 42px 60px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{color:var(--purple);font-size:.7rem;text-transform:uppercase;letter-spacing:.14em;font-weight:700;margin:0 0 9px}.page-heading p{margin:0;font-size:.9rem;color:var(--muted)}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:41px;padding:10px 16px;border-radius:8px;background:#fff;border:1px solid #dde3ee;color:#43516b;font-size:.85rem;font-weight:600;text-decoration:none;white-space:nowrap}.btn:hover{background:#f5f5fe}.btn.primary{background:var(--purple);border-color:var(--purple);color:#fff;box-shadow:0 4px 9px #6d5ce717}.btn.primary:hover{background:#5c4bd5}.btn.danger{color:#b74152;border-color:#ebcdd2}.btn.small{min-height:33px;padding:7px 11px;font-size:.8rem}.hero{display:grid;grid-template-columns:1fr auto;align-items:center;padding:28px 30px;background:linear-gradient(115deg,#edeaff,#f5f3ff 60%,#e9edff);border:1px solid #e3defa;border-radius:13px;margin-bottom:26px;overflow:hidden;position:relative}.hero::after{content:'';position:absolute;width:260px;height:260px;border:45px solid #b9aefa1c;border-radius:50%;right:-60px;top:-70px;pointer-events:none}.hero h2{font-size:1.4rem;color:#30295b;position:relative}.hero p{font-size:.85rem;color:#766c9b;max-width:530px;margin-bottom:16px}.hero .eyebrow{font-size:.65rem}.hero-visual{width:126px;height:104px;display:grid;place-items:center;position:relative;z-index:1}.hero-visual .icon{width:70px;height:70px;stroke:#9382ed;stroke-width:1}.hero-chip{position:absolute;bottom:0;right:0;background:#fff;border:1px solid #e7e1fc;padding:6px 10px;border-radius:7px;font-size:.65rem;color:#7566bb;transform:rotate(-6deg)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:29px}.stat{padding:19px 20px;border:1px solid var(--border);background:white;border-radius:11px}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:.75rem;color:var(--muted);gap:6px}.stat-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#f1eeff;color:#8b77e7}.stat-icon .icon{width:16px;height:16px}.stat-number{font-size:1.8rem;font-weight:800;letter-spacing:-.055em;margin:7px 0 5px}.stat-caption{font-size:.7rem;color:#8e98aa}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:29px 0 16px}.section-heading h2{margin:0;font-size:1.05rem}.section-heading span{font-size:.75rem;color:#8b96a8}.modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.module-card,.panel{border:1px solid var(--border);border-radius:11px;background:#fff;padding:23px}.module-header{display:flex;align-items:center;gap:12px;margin-bottom:17px}.module-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#f0edff;color:#8a73e1}.module-icon.green{background:#eaf8f2;color:#48a783}.module-icon.blue{background:#ecf3ff;color:#588fdb}.module-icon.orange{background:#fff3e7;color:#ce914b}.module-header h3{margin:0 0 3px;font-size:.95rem}.module-header small{font-size:.7rem;color:#98a0af}.module-header .toggle{margin-left:auto}.module-card p{font-size:.8rem;line-height:1.7;color:#7c889d;margin-bottom:20px;min-height:43px}.module-bottom{border-top:1px solid #f0f2f7;padding-top:15px;display:flex;align-items:center;justify-content:space-between}.pill{font-size:.65rem;background:#f2f5fa;color:#8491a8;padding:5px 8px;border-radius:5px}.pill.enabled{background:#eef8f3;color:#4b9974}.text-btn{background:transparent;color:#7b69cf;font-size:.75rem;font-weight:600;padding:5px 0}.lower-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:26px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.panel-title h2{margin:0;font-size:.95rem}.panel-title small{font-size:.7rem;color:#9aa3b2}.empty{padding:24px 8px;text-align:center;color:#8894a8;font-size:.85rem;line-height:1.8}.empty .icon{width:29px;height:29px;color:#b4bbcc;display:block;margin:0 auto 10px}.event{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #f0f2f7}.event:last-child{border:0}.event-icon{background:#f3f1ff;border-radius:8px;width:32px;height:32px;flex-shrink:0;color:#8c7bda;display:grid;place-items:center}.event-icon .icon{width:15px;height:15px}.event p{font-size:.8rem;margin:0 0 3px;overflow-wrap:anywhere}.event small{font-size:.7rem;color:#99a3b3}.checklist{display:flex;flex-direction:column;gap:18px}.check-item{display:flex;align-items:flex-start;gap:11px}.check-circle{width:20px;height:20px;border:1px solid #e0e4ee;border-radius:50%;display:grid;place-items:center;flex-shrink:0;color:#a0aabd;font-size:.65rem;margin-top:1px}.check-circle.done{background:#efecfc;color:#8b79d9;border-color:#efecfc}.check-item strong{font-size:.8rem;font-weight:500;display:block}.check-item p{font-size:.7rem;line-height:1.6;color:#99a3b4;margin:3px 0 0}.footer-note{margin-top:30px;font-size:.7rem;color:#a1a9b8;display:flex;justify-content:space-between}.toggle{position:relative;display:inline-flex;flex-shrink:0;width:35px;height:21px}.toggle input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}.toggle-track{width:35px;height:21px;border-radius:20px;background:#dfe3ed;transition:background .2s}.toggle-track::after{content:'';position:absolute;left:3px;top:3px;height:15px;width:15px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle input:checked + .toggle-track{background:#8a76e5}.toggle input:checked + .toggle-track::after{transform:translateX(14px)}.toggle input:focus-visible + .toggle-track{outline:3px solid #b8aaff;outline-offset:3px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-section{padding:25px;margin-bottom:20px}.form-section>p{color:var(--muted);font-size:.85rem;margin-bottom:24px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:21px}.field:last-child{margin-bottom:0}.field label{font-size:.85rem;font-weight:600;color:#48546d}.field input,.field select,.field textarea,.login input{border:1px solid #dfe4ee;background:#fff;color:#38445d;border-radius:8px;min-height:43px;padding:11px 12px;width:100%;font-size:.9rem}.field textarea{resize:vertical;min-height:110px;line-height:1.6}.field small{font-size:.75rem;color:#8c97a9;line-height:1.6}.field select[multiple]{min-height:110px}.switch-row{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:18px 0;border-bottom:1px solid #edf0f5}.switch-row:first-child{padding-top:0}.switch-row:last-child{border:0;padding-bottom:0}.switch-copy strong{font-size:.85rem;font-weight:600;display:block}.switch-copy p{font-size:.8rem;color:#8b96a9;margin:5px 0 0;line-height:1.6}.notice{border:1px solid #e4def9;background:#f4f1ff;color:#76669c;font-size:.8rem;line-height:1.8;padding:16px 18px;border-radius:9px;margin-bottom:22px}.notice.warning{background:#fff8eb;border-color:#f1e1bc;color:#967336}.savebar{display:flex;justify-content:space-between;align-items:center;gap:15px;position:sticky;bottom:16px;padding:15px 19px;border:1px solid #e4e6f0;background:#ffffffed;backdrop-filter:blur(12px);border-radius:10px;box-shadow:0 5px 25px #2233550b;margin-top:20px;z-index:3}.savebar small{color:#7f8ba2;font-size:.8rem}.save-actions{display:flex;gap:9px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.8rem;text-align:left}th{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:#8b97a9;font-weight:600}td,th{padding:14px 12px;border-bottom:1px solid #edf0f6;vertical-align:top}td{overflow-wrap:anywhere;max-width:320px}tbody tr:last-child td{border-bottom:0}.connection{border:1px solid #e7eaf2;border-radius:9px;padding:17px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:12px}.connection strong{font-size:.9rem}.connection p{margin:5px 0 0;color:#8a96aa;font-size:.75rem}.inline-form{display:flex;gap:10px;align-items:end}.inline-form .field{flex:1;margin-bottom:0}.code-block{background:#182135;color:#c5cde0;border-radius:9px;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;font:.8rem/1.9 Consolas,monospace}.token-output{border:1px solid #d8ca9f;background:#fffbef;border-radius:9px;padding:18px;margin-top:18px}.token-output h3{color:#8d713b}.token-output code{font-size:.8rem;word-break:break-all;user-select:all;display:block;background:#fff;padding:12px;margin:10px 0;border:1px solid #eee4c9;border-radius:6px}.setup-steps{counter-reset:setup;display:flex;flex-direction:column;gap:23px}.setup-step{display:flex;gap:16px}.setup-step::before{counter-increment:setup;content:counter(setup);width:28px;height:28px;flex-shrink:0;background:#f0edfe;color:#8b76df;border-radius:8px;display:grid;place-items:center;font-size:.8rem;font-weight:bold}.setup-step p{color:#8490a3;font-size:.85rem;margin:7px 0 0}.setup-step h3{margin:4px 0}.setup-step code{font-size:.85em;background:#f0f2f8;padding:3px 5px;border-radius:4px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:#141b2d;padding:60px 10%;color:#a4b0cb;display:flex;flex-direction:column;justify-content:space-between;gap:80px}.login-story .brand{padding:0}.login-story h1{font-size:3.2rem;color:white;line-height:1.15;max-width:480px;letter-spacing:-.065em}.login-story p{max-width:420px;font-size:1rem;color:#8998b9}.login-story .eyebrow{color:#a193ec}.login-lines{display:flex;gap:10px;margin-top:30px;flex-wrap:wrap}.login-lines span{padding:8px 12px;border:1px solid #303953;border-radius:7px;font-size:.75rem;color:#b1bcd1}.login-wrap{display:grid;place-items:center;padding:40px}.login{max-width:370px;width:100%}.login h2{font-size:1.7rem}.login>p{font-size:.9rem;color:#8190a8;margin-bottom:28px}.login .btn{width:100%;margin-top:15px}.login label{font-size:.8rem;color:#667590;display:block;margin-bottom:8px}.login-note{margin-top:25px;font-size:.75rem!important;line-height:1.8!important}.form-error{color:#b84155;font-size:.8rem;line-height:1.6;margin-top:14px}.notifications{position:fixed;bottom:24px;right:24px;max-width:400px;z-index:20;display:flex;flex-direction:column;gap:9px}.toast{background:#24304a;color:white;border:1px solid #3a4763;box-shadow:0 5px 20px #16203d20;border-radius:10px;padding:15px 20px;font-size:.85rem;line-height:1.6}.toast.error{background:#973d50;border-color:#973d50}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;color:#8792a7}.mobile-menu{display:none;background:transparent;color:#495671;padding:4px}.no-guilds{max-width:650px;margin:60px auto}.loading-pane{min-height:350px;display:grid;place-items:center;color:#8e99ac}.page-error{padding:35px;border-radius:12px;border:1px solid #edccd4;background:#fff9fa;color:#9f4359}.refresh-note{font-size:.75rem;color:#8d98ac}
@media(min-width:1600px){.main{padding-top:47px}.module-card{padding:27px}.hero{padding:34px}.stats{gap:23px}.modules{gap:23px}}
@media(max-width:1100px){.shell{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:27px 12px 18px}.brand{font-size:1.25rem}.topbar{padding:0 26px}.main{padding:30px 26px 45px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.lower-grid{grid-template-columns:1fr}.hero{padding:24px}.hero-visual{width:95px}.form-grid{grid-template-columns:1fr}.login-story{padding:45px 10%}.login-story h1{font-size:2.6rem}}
@media(max-width:760px){.shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:248px;z-index:10;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 40px #0003}.shell.menu-open .sidebar{transform:translateX(0)}.mobile-menu{display:block}.topbar{height:64px;padding:0 20px}.breadcrumb{gap:8px}.top-actions{gap:10px}.top-initial{display:none}.main{padding:25px 20px 35px}.page-heading{align-items:flex-start;gap:12px}h1{font-size:1.65rem}.page-heading p{font-size:.8rem}.page-heading .btn{font-size:.75rem;padding:9px 11px}.modules{grid-template-columns:1fr}.hero{grid-template-columns:1fr;padding:23px}.hero-visual{display:none}.hero h2{font-size:1.25rem}.stats{gap:12px}.stat{padding:16px}.stat-top{font-size:.7rem}.stat-icon{width:26px;height:26px}.stat-number{font-size:1.6rem}.module-card{padding:20px}.panel{padding:20px}.footer-note span:last-child{display:none}.savebar{bottom:10px;padding:12px}.savebar small{font-size:.7rem}.save-actions .btn{font-size:.75rem;padding:9px 11px}.login-page{display:block}.login-story{padding:30px 25px;gap:32px}.login-story h1{font-size:2.2rem;margin-bottom:15px}.login-story p{margin-bottom:0;font-size:.9rem}.login-lines{display:none}.login-story>small{display:none}.login-wrap{padding:35px 25px}.inline-form{display:block}.inline-form .btn{margin-top:12px}.notifications{left:16px;right:16px;bottom:16px;max-width:none}.connection{align-items:flex-start}.section-heading span{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){*,*::after{transition:none!important;scroll-behavior:auto!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.space-top{margin-top:22px}.spaced-notice{margin-top:22px;margin-bottom:0}.note-top{margin:16px 0 0}.no-bottom{margin-bottom:0}.notice-top{margin-top:20px}
.nav-label,.workspace-label{font-size:.75rem}.module-header small,.module-card p,.module-bottom .pill,.module-bottom .text-btn,.stat-top,.stat-caption,.check-item p,.check-item strong,.panel-title small,.event small,.event p,.refresh-note,.field small,.switch-copy p,.form-section>p,.notice,.savebar small,.btn,.field label,.profile-name{font-size:.875rem}.module-header h3{font-size:1rem}.module-card p{min-height:48px}.stat-top{line-height:1.5}.stat-caption{line-height:1.6}.hero p{font-size:.95rem}.eyebrow{font-size:.75rem}.topbar .status{font-size:.8rem}.profile-subtitle{font-size:.75rem}.login-note{font-size:.875rem!important}.login label{font-size:.875rem}

/* Midnight / violet — a shared dark surface system for every dashboard view. */
:root {
  color-scheme: dark;
  --ink: #f2efff;
  --muted: #b2abc8;
  --purple: #a78bfa;
  --border: #ffffff12;
  --nav: #100d1b;
  --surface: #181325;
  --surface-raised: #211a32;
  color: var(--ink);
  background: #0c0913;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
}
body { isolation: isolate; background: #0c0913; }
body::before {
  content: ''; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 70% 12%, #7839ba24, transparent 45%), radial-gradient(ellipse at 22% 90%, #3b3b8d20, transparent 40%);
  animation: ambient-drift 24s ease-in-out infinite alternate;
}
::selection { background: #a78bfa55; color: #fff; }
h1,h2,h3 { color: var(--ink); }
h1 { letter-spacing: -.045em; }
a { text-underline-offset: 4px; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
.shell { background: transparent; }
.sidebar { background: #100d1bf5; border-right: 1px solid var(--border); color: var(--muted); }
.brand { letter-spacing: -.04em; gap: 10px; flex-wrap: wrap; }
.brand-mark { background: linear-gradient(140deg,#c4a5ff,#7b4be3); box-shadow: 0 0 24px #8d4ee43d; }
.brand small { font-size: .625rem; font-weight: 650; letter-spacing: .09em; background: #a78bfa15; border: 1px solid #a78bfa22; color: #c4b5fd; }
.guild-switch,.guild-switch select { background: #1d172c; color: #f0eafa; }
.guild-switch { border-color: #b297f329; }
.workspace-label,.nav-label { color: #9a8dae; }
.nav-button { color: #b2a9c6; }
.nav-button:hover { background: #a78bfa12; color: #f4edff; }
.nav-button.active { background: linear-gradient(110deg,#8654db,#7444c6); box-shadow: 0 5px 25px #713ec52b, inset 0 1px 0 #ffffff19; }
.nav-button:disabled { opacity: .4; }
.side-note { background: #191225; border-color: var(--border); color: #a79db9; }
.side-note strong,.profile-name { color: #e9dff6; }
.profile-subtitle { color: #a294b4; }
.avatar,.top-initial { background: #312343; color: #d7baff; border: 1px solid #b88cff30; }
.logout { color: #b6a6cd; }
.topbar { background: #100c1bcc; border-color: var(--border); backdrop-filter: blur(20px); }
.breadcrumb { color: #aaa0ba; }
.breadcrumb strong { color: #e6dff1; }
.status { background: #142c25; border-color: #42896c40; color: #9ed7bb; }
.status.offline { background: #2b241a; border-color: #9d793436; color: #e3c28a; }
.status::before { box-shadow: 0 0 9px #51d19470; }
.page-heading p,.muted,.form-section>p { color: var(--muted); }
.eyebrow { color: #bf9bff; font-size: .75rem; letter-spacing: .14em; }
.btn { background: #241c34; border-color: #b19cc92b; color: #e5daef; min-height: 44px; border-radius: 10px; transition: transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease; }
.btn:hover { background: #302241; border-color: #bd97f35c; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(110deg,#9259eb,#7845d3); border-color: #b489f38a; color: #fff; box-shadow: 0 4px 22px #7138c52b,inset 0 1px 0 #ffffff20; }
.btn.primary:hover { background: linear-gradient(110deg,#a26af5,#8d58e4); box-shadow: 0 8px 28px #8b4fd644; }
.btn.danger { color: #ffabba; background: #3e1c2b; border-color: #f17c9c36; }
.text-btn { color: #c6a5ff; }
.hero { background: linear-gradient(120deg,#2e1b48,#211530 60%,#19192e); border-color: #ac76f333; border-radius: 18px; box-shadow: inset 0 1px 0 #ffffff08; }
.hero h2 { color: #f0e4ff; }
.hero p { color: #c0acd5; }
.hero::after { border-color: #b08be90b; animation: orbit-breathe 9s ease-in-out infinite alternate; }
.hero-visual .icon { stroke: #c399ff; filter: drop-shadow(0 0 12px #b98af650); }
.hero-chip { background: #251a35; color: #ddc6fb; border-color: #b38ede40; font-size: .75rem; }
.stat,.module-card,.panel { background: linear-gradient(145deg,#1c1629,#171220); border-color: var(--border); border-radius: 15px; box-shadow: inset 0 1px 0 #ffffff04; }
.stat-number { color: #faf5ff; }
.stat-top,.stat-caption,.section-heading span,.panel-title small,.empty,.event small,.check-item p,.footer-note,.field small,.switch-copy p,.connection p,.refresh-note { color: #b0a5c2; }
.stat-icon,.module-icon,.event-icon { background: #a479e51a; color: #bd98ff; }
.module-icon.blue { background: #618cdf1c; color: #95b6ff; }
.module-icon.green { background: #69b89b1a; color: #93d3b8; }
.module-icon.orange { background: #dda05f1c; color: #ebbe87; }
.module-card { transition: border-color .2s ease,transform .2s ease,box-shadow .2s ease; }
.module-card:hover { border-color: #b69adc38; transform: translateY(-2px); box-shadow: 0 12px 35px #00000026; }
.module-card p,.module-header small { color: #b4a7c6; }
.module-bottom,.event,.switch-row,td,th { border-color: var(--border); }
.pill { background: #ffffff08; color: #bfb2cc; }
.pill.enabled { background: #6ab99518; color: #a2dabd; }
.check-circle { border-color: #78618c66; color: #aa9bb9; }
.check-circle.done { background: #a78bfa24; color: #d7c0ff; border-color: #b38ee34d; }
.toggle-track { background: #4b3d5c; }
.toggle input:checked + .toggle-track { background: #a174ed; box-shadow: 0 0 14px #9c60e73d; }
.field label,.login label { color: #e1d5ef; }
.field input,.field select,.field textarea,.login input { color: #ece3f7; background: #110d1b; border-color: #b098c936; min-height: 46px; }
.field input::placeholder,.field textarea::placeholder,.login input::placeholder { color: #9e8eaf; }
.field input:hover,.field select:hover,.field textarea:hover { border-color: #b891e66b; }
option { background: #1b1427; color: #eee5f8; }
.notice { background: #a17add12; border-color: #b18bdf30; color: #cbb7e3; }
.notice.warning { background: #c4953c12; border-color: #c4953c40; color: #e4c994; }
.savebar { background: #251c35ed; border-color: #b98bf75c; box-shadow: 0 14px 40px #0005; }
.savebar small { color: #dbcaee; }
th { color: #c0abd6; }
.connection { background: #120e1c7a; border-color: #c7a0ef20; }
.code-block { background: #0c0912; color: #d7c0f2; border: 1px solid #ad80dc28; }
.token-output { background: #2b211a; border-color: #ceae614d; }
.token-output h3 { color: #e9cf9b; }
.token-output code { background: #171017; color: #f0e2b9; border-color: #ba9b5d36; }
.setup-step::before { background: #a479e51a; color: #d0b4fa; }
.setup-step p { color: #b3a5c4; }
.setup-step code { background: #a479e51a; color: #e2ccff; }
.login-page { background: transparent; }
.login-story { background: linear-gradient(155deg,#1c102c,#100b1c 75%); border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.login-story::after { content: ''; position: absolute; width: 520px; height: 520px; right: -230px; bottom: -180px; border-radius: 50%; border: 1px solid #bb82ed28; box-shadow: 0 0 0 55px #bb82ed04,0 0 0 110px #bb82ed03,0 0 0 165px #bb82ed02; animation: orbit-breathe 13s ease-in-out infinite alternate; pointer-events: none; }
.login-story>* { position: relative; z-index: 1; }
.login-story h1 { background: linear-gradient(120deg,#fff,#d2afff); background-clip: text; -webkit-background-clip: text; color: transparent; font-size: clamp(2.3rem,4vw,4.7rem); letter-spacing: -.065em; }
.login-story p { color: #bcaaca; }
.login-lines span { background: #b58ae908; border-color: #b58ae928; color: #cfb9e6; }
.login-wrap { background: #100b1880; }
.login { max-width: 400px; padding: 25px 0; }
.login h2 { color: #f0e5ff; font-size: 2.1rem; letter-spacing: -.045em; }
.login>p { color: #b4a6c4; }
.login .btn { min-height: 49px; }
.form-error { color: #ffacbd; }
.toast { background: #302140; border-color: #b38fdf55; color: #f3e8ff; box-shadow: 0 12px 40px #0005; }
.toast.error { background: #4a2234; border-color: #df7b9d55; }
.boot,.loading-pane { color: #c4abdf; }
.loading-pane::before { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b88ae329; border-top-color: #c3a0fa; animation: spinner-turn 1s linear infinite; margin-bottom: -100px; }
.mobile-menu { color: #e4cffa; }
.page-error { background: #371c2b; border-color: #e489a33d; color: #f4bbca; }
.server-back { display: flex; align-items: center; justify-content: center; gap: 8px; color: #c6b4da; background: transparent; padding: 13px; margin: 8px 3px 0; font-size: .875rem; border-radius: 9px; }
.server-back:hover { background: #ac79e315; color: #fff; }
.server-back .icon { width: 16px; height: 16px; }
.server-top { font-size: .875rem; }
.directory-hero { position: relative; overflow: hidden; padding: 42px 34px; border: 1px solid #ac76f333; border-radius: 22px; background: linear-gradient(120deg,#2b1a43,#191326 70%); }
.directory-hero h1 { font-size: clamp(2.5rem,4.8vw,4.3rem); letter-spacing: -.065em; margin-bottom: 12px; position: relative; z-index: 1; }
.directory-hero p { color: #c1accf; margin: 0; max-width: 440px; position: relative; z-index: 1; }
.directory-hero .eyebrow { position: relative; z-index: 1; }
.directory-orbit { position: absolute; width: 280px; height: 280px; right: 40px; top: -30px; border: 1px solid #bb8dfb30; border-radius: 50%; transform: rotate(-25deg); animation: orbit-breathe 10s ease-in-out infinite alternate; }
.directory-orbit::before,.directory-orbit::after { content: ''; position: absolute; inset: 35px; border: 1px solid #b88af633; border-radius: 50%; }
.directory-orbit::after { inset: 75px; background: radial-gradient(circle,#b17ae51f,transparent 70%); }
.directory-orbit span { position: absolute; width: 14px; height: 14px; background: #c29af9; border-radius: 50%; box-shadow: 0 0 30px #a365e890; left: 29px; top: 40px; }
.directory-orbit span:nth-child(2) { left: auto; top: 185px; right: 10px; width: 9px; height: 9px; background: #e6cfff; }
.directory-orbit span:nth-child(3) { left: 110px; top: 184px; width: 7px; height: 7px; opacity: .65; }
.directory-toolbar { display: flex; align-items: center; gap: 18px; margin: 30px 0 20px; }
.server-search { display: flex; align-items: center; gap: 12px; background: #191323; border: 1px solid #c3a0eb26; border-radius: 11px; padding: 0 15px; flex: 1; max-width: 460px; color: #b9a2d0; }
.server-search:focus-within { border-color: #c29cf3; box-shadow: 0 0 0 3px #b186e319; }
.server-search input { width: 100%; min-width: 0; min-height: 48px; border: 0; background: transparent; color: #f2e9ff; outline: none; font-size: 1rem; }
.server-search input::placeholder { color: #a997bb; }
#guild-count { margin-left: auto; color: #b8a7cc; font-size: .875rem; white-space: nowrap; }
.guild-section { margin-bottom: 35px; }
.guild-section .section-heading { margin-top: 30px; align-items: flex-start; }
.guild-section .section-heading h2 { font-size: 1.12rem; }
.guild-section .section-heading p { margin: 6px 0 0; color: #b1a0c2; font-size: .875rem; }
.guild-section .section-heading>span { border: 1px solid #c3a0eb22; padding: 5px 10px; border-radius: 20px; }
.guild-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.guild-card { display: flex; flex-direction: column; gap: 24px; background: linear-gradient(145deg,#21182e,#191220); border: 1px solid #c4a0ed22; border-radius: 16px; padding: 23px; text-align: left; color: #f3eaff; min-width: 0; position: relative; transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.guild-card:not(:disabled):hover { transform: translateY(-4px); border-color: #ba8fe675; box-shadow: 0 16px 40px #0004,0 0 25px #7c40aa0d; }
.guild-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guild-art { width: 54px; height: 54px; object-fit: cover; border-radius: 16px; border: 1px solid #dec1ff28; }
.guild-monogram { display: grid; place-items: center; color: #dbc3ff; background: linear-gradient(145deg,#4a2d68,#2a1c3c); font-size: 1.05rem; font-weight: 700; }
.guild-badge { padding: 5px 9px; border-radius: 20px; background: #c19ae915; color: #d6b6f1; font-size: .75rem; white-space: nowrap; }
.guild-badge.ready { color: #aadbc6; background: #74b69917; }
.guild-card>strong { font-size: 1.15rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.guild-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #c3a2e7; font-size: .875rem; padding-top: 16px; border-top: 1px solid #c3a0eb16; width: 100%; }
.guild-card-bottom>span { font-size: 1.25rem; }
.guild-card.restricted { opacity: .68; cursor: not-allowed; }
.guild-card.restricted .guild-card-bottom { color: #b2a1c2; }
.plugin-download { display: flex; align-items: center; gap: 24px; padding: 27px; margin-bottom: 24px; border-color: #a779dd3d; background: linear-gradient(120deg,#302044,#1b1428); }
.plugin-download h2 { font-size: 1.35rem; }
.plugin-download p { color: #c5b2d5; margin: 8px 0; max-width: 680px; font-size: .95rem; }
.plugin-download small { color: #b7a0ca; }
.plugin-download>.btn { margin-left: auto; }
.download-icon { width: 60px; height: 60px; display: grid; place-items: center; background: #b787ed15; border: 1px solid #bf90ee36; border-radius: 17px; flex-shrink: 0; color: #d3a7ff; }
.download-icon .icon { width: 30px; height: 30px; }
@keyframes ambient-drift { from { transform: translate3d(-2%,-1%,0); } to { transform: translate3d(3%,3%,0); } }
@keyframes orbit-breathe { from { transform: translateY(-5px) rotate(-25deg) scale(.97); opacity: .6; } to { transform: translateY(8px) rotate(10deg) scale(1.05); opacity: 1; } }
@keyframes spinner-turn { to { transform: rotate(360deg); } }
@media(max-width:1200px) { .guild-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .plugin-download { flex-wrap: wrap; } .plugin-download>.btn { margin-left: 84px; } }
@media(max-width:760px) { .directory-hero { padding: 30px 24px; } .directory-orbit { right: -120px; opacity: .45; } .directory-toolbar { flex-wrap: wrap; gap: 12px; } .server-search { flex-basis: 100%; max-width: none; } #guild-count { margin-left: 0; margin-right: auto; } .guild-grid { grid-template-columns: 1fr; } .guild-card { padding: 21px; gap: 20px; } .server-top { display: none; } .top-actions { gap: 5px; } .plugin-download { padding: 23px; gap: 17px; } .plugin-download>.btn { width: 100%; margin-left: 0; } .plugin-download>div:nth-child(2) { flex-basis: 100%; } .login-story { min-height: 410px; } .guild-section .section-heading p { max-width: 90%; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }

/* Ticket routing, honeypot review, and message composition. */
.overview-activity { margin-top: 26px; }
.ticket-type { border: 1px solid #b892e52b; border-radius: 13px; padding: 22px; background: #a279cb06; margin-top: 18px; }
.ticket-type-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.ticket-type-heading h3 { margin: 0; overflow-wrap: anywhere; }
.ticket-type-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ticket-type .form-grid { gap: 22px; }
.honeypot-total { display: flex; flex-direction: column; gap: 7px; padding: 24px; border: 1px solid #be99e529; border-radius: 13px; background: #a86adb0a; }
.honeypot-total strong { font-size: 2.5rem; line-height: 1.1; color: #ddc2ff; }
.honeypot-total span { color: #c0adcf; font-size: .875rem; }
.embed-options { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px; margin-bottom: 22px; align-items: start; }
.embed-options .field { margin-bottom: 0; }
.embed-options input[type=color] { padding: 4px; min-height: 45px; cursor: pointer; }
.embed-preview { position: relative; min-height: 160px; padding: 24px 24px 24px 28px; background: #21182d; border: 1px solid #d0aaf426; border-radius: 8px; overflow: hidden; }
.embed-accent { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; height: 100%; }
.embed-preview h3 { color: #f5edff; margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed-preview p { margin: 0; color: #d5c9e0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.embed-preview small { display: block; color: #b3a0c6; margin-top: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }
@media(max-width:760px) { .ticket-type { padding: 18px; } .ticket-type-heading { flex-wrap: wrap; } .ticket-type-actions { width: 100%; justify-content: space-between; } .embed-options { grid-template-columns: 90px minmax(0,1fr); } }

/* Community automation controls */
.role-option { padding: 22px; margin-top: 18px; border: 1px solid #d0aaf426; border-radius: 12px; background: #1b1426; }
.role-option-heading,.inline-actions,.schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.role-option-heading { margin-bottom: 18px; }
.role-option-heading h3,.schedule-heading h3 { margin: 0; }
.inline-actions { justify-content: flex-start; flex-wrap: wrap; }
.schedule-enabled { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: #ecddfb; margin: 16px 0; }
.schedule-enabled input { width: 18px; height: 18px; accent-color: #a779ee; }
#announcement-color { width: 100px; padding: 4px; cursor: pointer; }
.schedule-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; border-top: 1px solid #d0aaf420; padding: 23px 0; }
.schedule-card:first-of-type { border-top: 0; }
.schedule-card-main { flex: 1; min-width: 0; }
.schedule-heading { justify-content: flex-start; flex-wrap: wrap; }
.schedule-heading h3 { font-size: 1rem; overflow-wrap: anywhere; }
.schedule-card-main>p { font-size: .9rem; color: #c0adcf; white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 18px; }
.schedule-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.schedule-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 25px; margin: 0; }
.schedule-meta dt { color: #a994bd; font-size: .8rem; margin-bottom: 4px; }
.schedule-meta dd { margin: 0; font-size: .875rem; color: #dbcbea; overflow-wrap: anywhere; }
@media(max-width:760px) { .role-option { padding: 18px; } .role-option-heading { flex-wrap: wrap; } .schedule-card { flex-direction: column; } .schedule-meta { grid-template-columns: 1fr; gap: 13px; } .schedule-card-actions { width: 100%; } .schedule-card-actions .btn { flex: 1; } }
/* Longer navigation stays reachable on laptop and mobile heights. */
.sidebar { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #614478 #100b1c; }
.sidebar .brand,.sidebar .guild-switch,.sidebar .nav { flex-shrink: 0; }
.legal-links{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.legal-links a{color:#bda9d4;text-underline-offset:4px}.login .legal-links{margin-bottom:24px}.login-story>small a{display:inline-block;margin-left:8px}.footer-note .legal-links{display:flex}
