:root{color-scheme:dark;--bg:#0b0c16;--panel:#131525;--panel-2:#171a2d;--border:#24273c;--text:#f1f1fa;--muted:#9295ad;--purple:#7657ed;--purple-light:#a895ff;--green:#43c99a;font-family:"DM Sans",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:#10111f;border-right:1px solid #202238;padding:27px 17px 16px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 35px;color:var(--text);text-decoration:none}.brand-name{font:700 25px "Space Grotesk",sans-serif;letter-spacing:-1.2px}.brand-mark{height:27px;width:27px;display:flex;align-items:center;justify-content:center;gap:2px;transform:skewY(-24deg)}.brand-mark span{display:block;width:6px;border-radius:3px;background:#987eff}.brand-mark span:nth-child(1){height:13px;opacity:.65}.brand-mark span:nth-child(2){height:21px}.brand-mark span:nth-child(3){height:16px;opacity:.8}.workspace-label,.nav-label{font-size:9px;letter-spacing:1.35px;font-weight:700;color:#686c87;padding:0 12px 10px}.community-switcher{display:flex;align-items:center;text-align:left;width:100%;padding:10px;background:#191b2e;border:1px solid #292c43;border-radius:9px;color:var(--text);margin-bottom:28px;cursor:pointer}.community-avatar{height:33px;width:33px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#8767f6,#45329e);font-weight:700;margin-right:10px}.community-copy,.profile-copy{display:grid;gap:3px;min-width:0}.community-copy strong,.profile-copy strong{font-size:12px}.community-copy small,.profile-copy small{font-size:10px;color:var(--muted)}.chevron{margin-left:auto;color:#888ba4;font-size:17px}.navigation{display:flex;flex-direction:column;gap:4px}.nav-label-spaced{padding-top:23px}.nav-item{height:39px;border:0;border-radius:7px;background:transparent;color:#999cb3;text-align:left;padding:0 12px;font:500 12px "DM Sans",sans-serif;display:flex;align-items:center;gap:12px;cursor:pointer;transition:.15s}.nav-item:hover{background:#1a1c30;color:#fff}.nav-item.active{background:#28213f;color:#b9a9ff;box-shadow:inset 2px 0 #9477ff}.nav-icon{font-size:17px;width:17px;text-align:center;color:inherit}.sidebar-bottom{margin-top:auto}.plan-card{display:flex;align-items:center;gap:9px;padding:12px 10px;border:1px solid #282a40;border-radius:8px;margin-bottom:17px}.plan-dot{height:7px;width:7px;border-radius:50%;background:#a28aff;box-shadow:0 0 9px #987bff}.plan-card div{display:grid;gap:3px}.plan-card strong{font-size:10px}.plan-card small{font-size:9px;color:var(--muted)}.plan-arrow{margin-left:auto;color:#8588a2}.profile-row{border-top:1px solid #24263b;padding:16px 4px 0;display:flex;align-items:center;gap:9px}.profile-avatar,.top-avatar{width:31px;height:31px;border-radius:50%;background:#34314e;color:#c9bdff;display:grid;place-items:center;font-size:10px;font-weight:700}.profile-menu{margin-left:auto;color:#8a8da4}.main-content{margin-left:252px;min-height:100vh}.topbar{height:69px;border-bottom:1px solid #202238;display:flex;align-items:center;justify-content:space-between;padding:0 39px;background:#0d0e19}.breadcrumbs{display:flex;gap:10px;align-items:center;color:#8f92aa;font-size:11px}.breadcrumbs strong{color:#e6e6f1;font-weight:600}.crumb-separator{color:#555873}.topbar-actions{display:flex;align-items:center;gap:19px}.environment-pill{font-size:9px;letter-spacing:.7px;color:#aaa0d8;background:#201c35;border:1px solid #383054;border-radius:20px;padding:7px 10px}.environment-pill i,.status-live i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#54d6a7;margin-right:5px}.icon-button{position:relative;border:0;background:none;color:#a4a6ba;font-size:19px}.icon-button b{position:absolute;width:5px;height:5px;border-radius:50%;background:#9b7cff;right:0;top:1px}.top-avatar{width:29px;height:29px}.page-wrap{max-width:1440px;margin:auto;padding:39px 40px 50px}.welcome-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:1.5px;color:#888ba5;font-weight:700;margin-bottom:9px}.welcome-row h1{font:600 27px "Space Grotesk",sans-serif;letter-spacing:-.8px;margin:0 0 6px}.welcome-row p,.panel-heading p{margin:0;color:#9295ad;font-size:11px}.primary-button{border:0;background:#7657ed;color:white;border-radius:7px;padding:10px 14px;font:600 11px "DM Sans",sans-serif;box-shadow:0 5px 18px #7657ed2a;cursor:pointer}.primary-button span{font-size:15px;margin-right:6px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat-card,.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px}.stat-card{padding:17px 18px 15px;min-height:126px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#a5a7bc;font-size:11px}.stat-icon{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;font-size:15px}.purple{background:#29213f;color:#ad98ff}.green{background:#19372f;color:#5bd7aa}.blue{background:#1d2c45;color:#78b8ff}.orange{background:#3b2a24;color:#ffae7d}.stat-value{font:600 26px "Space Grotesk",sans-serif;margin:8px 0 5px;letter-spacing:-.6px}.stat-unit{font:500 12px "DM Sans",sans-serif;color:#9295ad;margin-left:5px}.stat-foot{display:flex;align-items:center;gap:6px;color:#8589a2;font-size:9px}.trend{font-weight:700}.positive{color:#52cda0}.status-live{color:#65d6ad;font-weight:700}.muted-dot{width:6px;height:6px;border-radius:50%;background:#e8a06f}.dashboard-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:15px}.panel{padding:19px 20px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start}.panel-heading h2,.setup-content h2{font:600 14px "Space Grotesk",sans-serif;margin:0 0 5px}.panel-heading p{font-size:10px}.text-button{border:0;background:none;color:#a995ff;font:500 10px "DM Sans",sans-serif;cursor:pointer}.chart-legend{display:flex;justify-content:space-between;align-items:center;margin:24px 2px 12px;font-size:10px;color:#9699b0}.chart-legend span i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#8c70f6;margin-right:6px}.chart-legend strong{font-size:12px;color:#e7e5f3}.chart{height:139px;display:flex;position:relative;padding:0 0 20px 31px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 33px,#292b40 34px)}.chart-y{position:absolute;left:0;top:-5px;bottom:15px;display:flex;flex-direction:column;justify-content:space-between;color:#737791;font-size:8px}.chart-bars{height:100%;width:100%;display:flex;align-items:flex-end;justify-content:space-around}.bar-column{height:100%;width:9%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:7px}.bar{width:100%;max-width:22px;border-radius:4px 4px 1px 1px;background:linear-gradient(180deg,#9177f7,#5842b4);opacity:.83}.bar.today{background:linear-gradient(180deg,#b29eff,#7657ed);opacity:1}.bar-column small{position:absolute;bottom:0;color:#82859d;font-size:8px}.shifts-panel{min-height:230px}.shift-list{margin-top:19px}.shift-person{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #24263a}.shift-person:last-child{border-bottom:0}.person-avatar{height:30px;width:30px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:700}.avatar-one{background:#3c304f;color:#d5bfff}.avatar-two{background:#29404a;color:#a8dbea}.avatar-three{background:#49372f;color:#f4c19f}.person-info{display:grid;gap:4px}.person-info strong,.shift-time strong{font-size:10px}.person-info small,.shift-time small{font-size:9px;color:#888ba3}.shift-time{margin-left:auto;text-align:right;display:grid;gap:4px}.shift-time small{color:#56c99f}.activity-feed{min-height:245px}.feed-list{margin-top:17px}.feed-item{display:flex;gap:11px;padding:9px 0}.feed-icon{height:26px;width:26px;flex:0 0 26px;border-radius:7px;display:grid;place-items:center;font-size:13px}.feed-purple{background:#2c2344;color:#b9a5ff}.feed-orange{background:#3b2a25;color:#ffb17e}.feed-blue{background:#1d3048;color:#8ec4ff}.feed-item strong{font-size:10px}.feed-item p{font-size:9px;color:#a0a2b7;margin:4px 0}.feed-item small{font-size:8px;color:#777b95}.setup-panel{position:relative;overflow:hidden;background:linear-gradient(130deg,#1a1730,#151426 70%);min-height:245px}.setup-glow{position:absolute;width:200px;height:200px;border-radius:50%;background:#7657ed20;filter:blur(40px);right:-30px;top:-70px}.setup-content{position:relative;max-width:340px}.setup-kicker{font-size:8px;letter-spacing:1.4px;color:#b7a5ff;font-weight:700}.setup-content h2{font-size:17px;margin:12px 0 7px}.setup-content>p{font-size:10px;line-height:1.6;color:#a2a2bb;margin:0 0 18px}.setup-progress>div:first-child{display:flex;justify-content:space-between;font-size:9px;color:#a7a8bc;margin-bottom:7px}.setup-progress strong{color:#c2b4ff}.progress-track{height:5px;background:#302b48;border-radius:9px;overflow:hidden}.progress-track span{display:block;width:25%;height:100%;background:#987bff;border-radius:9px}.setup-button{margin-top:17px;padding:9px 12px;background:#795bec;color:white;border:0;border-radius:6px;font:600 10px "DM Sans",sans-serif;cursor:pointer}.setup-button span{margin-left:12px}.demo-notice{margin-top:16px;padding:11px 13px;background:#151727;border:1px solid #282b43;border-radius:7px;color:#999cb4;font-size:9px}.demo-notice span{color:#a995ff;margin-right:6px}.mobile-menu{display:none}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#25213b;border:1px solid #4c3d78;color:#e8e1ff;padding:11px 16px;border-radius:8px;font-size:11px;transition:.2s;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}.empty-page{padding:28px;border:1px dashed #353750;border-radius:10px;color:#a0a2b7;background:#121423;font-size:12px}.empty-page strong{display:block;color:#eeeef7;font:600 16px "Space Grotesk",sans-serif;margin-bottom:7px}.empty-page p{margin:0;line-height:1.6}.mobile-overlay{display:none}@media(max-width:1100px){.sidebar{width:220px}.main-content{margin-left:220px}.page-wrap{padding:30px 25px}.topbar{padding:0 25px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:252px;box-shadow:15px 0 40px #0008}.sidebar.open{transform:translateX(0)}.main-content{margin-left:0}.topbar{height:60px;padding:0 17px}.mobile-menu{display:block;border:0;background:none;color:#ddd;font-size:19px;margin-right:12px}.breadcrumbs{margin-right:auto}.topbar-actions{gap:11px}.environment-pill{font-size:7px;padding:6px 7px}.page-wrap{padding:26px 17px}.welcome-row{align-items:flex-start;gap:12px}.welcome-row h1{font-size:23px}.welcome-row p{max-width:230px;line-height:1.5}.primary-button{white-space:nowrap;padding:9px;font-size:9px}.dashboard-grid{grid-template-columns:1fr}.stat-grid{gap:9px}.stat-card{padding:13px;min-height:116px}.stat-value{font-size:23px}.panel{padding:16px}.mobile-overlay.visible{display:block;position:fixed;inset:0;background:#0008;z-index:4}}@media(max-width:390px){.environment-pill{display:none}.stat-grid{grid-template-columns:1fr 1fr}.welcome-row{display:block}.primary-button{margin-top:15px}}
/* Separate Owner Console and Moderator Panel areas */
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.tool-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:14px;background:#191b2e;border:1px solid #2a2d43;border-radius:8px;color:var(--text);cursor:pointer}
.tool-card:hover,.owner-card:hover{border-color:#6854b4;background:#201d35}
.tool-card strong,.owner-card strong{font-size:11px}
.tool-card small,.owner-card small{font-size:9px;line-height:1.5;color:#9699b0}
.owner-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 23px;margin-bottom:15px;border:1px solid #3a3157;border-radius:10px;background:linear-gradient(120deg,#211b38,#151525)}
.owner-intro h2{font:600 18px "Space Grotesk",sans-serif;margin:9px 0 6px}
.owner-intro p{font-size:10px;line-height:1.6;color:#a7a5bd;max-width:560px;margin:0}
.owner-lock,.boundary-tag{white-space:nowrap;border:1px solid #514174;border-radius:20px;padding:7px 10px;color:#c1b1ff;font-size:8px;letter-spacing:.7px;font-weight:700}
.owner-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:15px}
.owner-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;padding:18px;background:#151627;border:1px solid #2c2e45;border-radius:9px;color:var(--text);cursor:pointer}
.owner-card-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#30264b;color:#b7a2ff;font-size:17px}
.card-link{font-size:9px;color:#b4a0ff;margin-top:5px}
.owner-boundary{margin-bottom:14px}
.boundary-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #292b40}
.boundary-row:last-child{border-bottom:0}
.boundary-symbol{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;font-size:15px}
.owner-symbol{background:#30264b;color:#c1adff}.mod-symbol{background:#1d3540;color:#8bd6d0}
.boundary-row div{flex:1}.boundary-row strong{font-size:10px}.boundary-row p{font-size:9px;color:#9699b0;margin:4px 0 0}
.access-table{margin-top:18px}
.access-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;align-items:center;padding:13px 8px;border-bottom:1px solid #292b40;font-size:10px}
.access-head{color:#8589a3;font-size:9px;font-weight:700}
.access-yes{color:#60d4a8}.access-no{color:#8b8ea5}
.access-help{font-size:9px;line-height:1.6;color:#9295ad;margin:15px 0 0}
.settings-preview{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 4px;border-bottom:1px solid #292b40}
.settings-preview:last-child{border-bottom:0}
.settings-preview div{display:grid;gap:5px}.settings-preview strong{font-size:10px}.settings-preview small{font-size:9px;color:#9295ad}
.settings-preview>span{font-size:8px;color:#b5a3ff;border:1px solid #453a67;padding:6px 8px;border-radius:20px;white-space:nowrap}
@media(max-width:760px){.owner-card-grid{grid-template-columns:1fr}.owner-intro{display:block}.owner-lock{display:inline-block;margin-top:15px}.access-row{grid-template-columns:1.1fr 1fr 1fr;gap:5px;font-size:9px;padding:11px 3px}.access-head{font-size:8px}.boundary-row{align-items:flex-start}.boundary-tag{font-size:7px;padding:6px}}

/* Discord authentication gate */
body.auth-pending .app-shell{visibility:hidden}
body.auth-ready .app-shell{visibility:visible}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 10%,#28204b 0%,#111221 42%,#0b0c16 78%);font-family:"DM Sans",sans-serif;color:#f4f2ff}
.auth-card{width:min(100%,440px);padding:42px 38px;background:rgba(23,25,44,.94);border:1px solid #34304f;border-radius:20px;box-shadow:0 24px 90px #0007;text-align:center}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:34px}
.auth-brand .brand-mark{display:inline-flex}
.auth-brand-name{font:700 30px "Space Grotesk",sans-serif;letter-spacing:-1.5px}
.auth-kicker{font-size:10px;letter-spacing:2px;color:#a78bfa;font-weight:700}
.auth-card h1{font:600 28px "Space Grotesk",sans-serif;margin:12px 0 10px}
.auth-description{font-size:13px;line-height:1.7;color:#a5a6bd;margin:0 auto 27px;max-width:330px}
.discord-login{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;padding:14px 18px;border:0;border-radius:10px;background:#5865f2;color:white;font-weight:700;font-size:14px;text-decoration:none;transition:background .2s,transform .2s}
.discord-login:hover{background:#4752c4;transform:translateY(-1px)}
.discord-login svg{width:21px;height:21px;fill:currentColor}
.auth-security{display:flex;align-items:flex-start;gap:9px;text-align:left;margin-top:22px;padding:13px;border:1px solid #34304a;border-radius:10px;color:#a5a6bd;font-size:10px;line-height:1.6}
.auth-security strong{color:#d9d5ef}
.auth-error{display:none;margin:0 0 18px;padding:11px;border-radius:9px;background:#442b38;color:#ffb7c7;font-size:12px;line-height:1.5}
.auth-error.visible{display:block}
.auth-footer{margin-top:24px;color:#73768f;font-size:10px}
@media(max-width:480px){.auth-card{padding:34px 22px}}
