:root{color-scheme:dark;--bg:#111318;--panel:#1b1e25;--panel2:#242832;--text:#f5f7fb;--muted:#9aa3b2;--accent:#5865f2;--line:#303644}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#202743 0,#111318 45%);color:var(--text);font:15px/1.5 Inter,system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}a{color:#aeb7ff;text-decoration:none}header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid #252a35;background:#111318dd;backdrop-filter:blur(12px);position:sticky;top:0;z-index:2}.brand{font-size:22px;font-weight:800;color:#fff}.user{display:flex;gap:14px;align-items:center}main{max-width:1180px;margin:auto;padding:54px 24px 90px}.hero{padding:72px 0;max-width:800px}.hero h1{font-size:clamp(44px,7vw,78px);line-height:1;margin:14px 0 22px;letter-spacing:-.045em}.hero p,.section-title p{color:var(--muted);font-size:18px}.pill{display:inline-flex;border:1px solid #414a78;border-radius:999px;padding:6px 12px;color:#c7cdff;background:#242a45}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--accent);color:white;padding:11px 16px;font-weight:700;cursor:pointer}.btn.secondary{background:#262b36}.actions{margin-top:28px}.section-title{margin-bottom:26px}.section-title h1{font-size:38px;margin:8px 0}.guild-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.guild-card,.panel,.empty{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:16px;padding:20px}.guild-card{display:flex;gap:14px;align-items:center;color:#fff;transition:.15s transform,.15s border-color}.guild-card:hover{transform:translateY(-2px);border-color:#6874f7}.guild-card small{display:block;color:var(--muted);margin-top:3px}.guild-icon{width:48px;height:48px;border-radius:14px;background:#323746;display:grid;place-items:center;font-weight:800;overflow:hidden}.guild-icon img{width:100%;height:100%;object-fit:cover}.panel{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label{font-weight:700}.form-grid input,.form-grid select{display:block;width:100%;margin-top:7px;padding:11px 12px;background:#11151d;color:#fff;border:1px solid #343b49;border-radius:9px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}.checks label{background:#151922;border:1px solid #303644;border-radius:9px;padding:10px 12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px;border-bottom:1px solid #303644}th{color:#b8c0cf}footer{text-align:center;color:#70798a;padding:30px}@media(max-width:720px){.form-grid,.checks{grid-template-columns:1fr}.hero{padding-top:30px}.hero h1{font-size:48px}}
.policy pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;margin:0;color:var(--text)}


/* Dashboard section navigation */
.dashboard-jump{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px;position:sticky;top:84px;z-index:1;padding:10px;background:#111318d9;border:1px solid var(--line);border-radius:14px;backdrop-filter:blur(12px)}
.dashboard-jump a{padding:8px 13px;border-radius:9px;background:#1a1f2a;color:#dce2ff;font-weight:700}
.dashboard-jump a:hover{background:#262d3b;color:#fff}

/* Twitch configuration */
.twitch-panel{border-color:#4f2a86;background:linear-gradient(180deg,#21172e 0%,#1b1e25 32%)}
.twitch-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.twitch-hero h2,.panel-heading-row h2{margin:4px 0 6px}
.twitch-hero p,.panel-heading-row p{margin:0;color:var(--muted)}
.eyebrow{font-size:11px;font-weight:900;letter-spacing:.15em;color:#b895ff}
.twitch-logo-badge{background:#9146ff;color:#fff;font-weight:900;padding:10px 14px;border-radius:12px;box-shadow:0 8px 24px #9146ff33}
.twitch-config-form{background:#15121d;border:1px solid #4f2a86;border-radius:14px;padding:18px;margin-bottom:20px}
.token-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.token-row span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;padding:5px 8px;border-radius:7px;background:#2a1c3b;color:#d8c5ff;border:1px solid #54357a}
.twitch-btn{background:#9146ff}
.twitch-btn:hover{filter:brightness(1.08)}
.twitch-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.twitch-card{background:#171a21;border:1px solid #313744;border-radius:14px;padding:16px;box-shadow:0 10px 30px #00000018}
.twitch-card.is-live{border-color:#e91916;box-shadow:0 0 0 1px #e9191620,0 12px 34px #e9191610}
.twitch-card-top{display:flex;gap:12px;align-items:center}
.twitch-avatar{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#9146ff;color:white;font-weight:900;font-size:20px}
.twitch-identity{min-width:0;flex:1;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.twitch-name{font-weight:850;font-size:17px;color:#fff;overflow:hidden;text-overflow:ellipsis}
.status-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:900;letter-spacing:.05em;padding:4px 7px;border-radius:999px}
.status-badge.live{background:#3b1112;color:#ff8181}
.status-badge.offline{background:#242933;color:#aab2c0}
.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.icon-btn{width:34px;height:34px;border-radius:9px;border:1px solid #3a404c;background:#222730;color:#c7ceda;font-size:20px;cursor:pointer}
.icon-btn.danger:hover{background:#3a171a;border-color:#7d2e35;color:#ff9aa3}
.twitch-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.twitch-card-grid>div,.twitch-message-preview{background:#11151d;border:1px solid #2d3340;border-radius:10px;padding:10px}
.mini-label{display:block;color:#7f899a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.twitch-card-grid strong{font-size:13px;color:#eef1f6}
.twitch-message-preview p{margin:4px 0 0;color:#c9d0da;font-size:13px;overflow-wrap:anywhere}
.twitch-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.twitch-card-footer a{font-weight:700;font-size:13px}
.twitch-empty{grid-column:1/-1}

/* Command catalog */
.command-panel{background:linear-gradient(180deg,#1c2230,#1b1e25)}
.panel-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}
.command-total{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#20283a;color:#bfcaff;border:1px solid #34405a;font-size:12px;font-weight:800}
.command-category{margin-top:24px}
.category-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.category-heading h3{margin:0;font-size:18px}
.category-heading span{color:var(--muted);font-size:12px}
.command-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.command-card{background:#141820;border:1px solid #303744;border-radius:13px;padding:15px}
.command-card:hover{border-color:#5865f2;transform:translateY(-1px);transition:.15s ease}
.command-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.command-card code{font-size:15px;color:#d8ddff;background:#20263a;border:1px solid #343d5a;border-radius:8px;padding:5px 8px}
.command-card p{color:#aeb7c6;margin:12px 0;font-size:13px}
.command-badges{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.pill.subtle{font-size:10px;padding:4px 7px;background:#222834;border-color:#343d4e;color:#b8c2d2}
.command-subcommands{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.command-subcommands span{font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#aeb7ff;background:#1d2435;padding:5px 7px;border-radius:7px}
.command-meta{display:block;margin-top:10px;color:#788293;font-size:11px}

@media(max-width:720px){
  .dashboard-jump{position:static}
  .twitch-hero,.panel-heading-row{flex-direction:column}
  .twitch-card-grid{grid-template-columns:1fr}
}


/* Privacy page */
.privacy-page{max-width:900px;margin:0 auto}
.privacy-hero{padding:20px 0 30px}
.privacy-hero>a{display:inline-block;margin-bottom:24px}
.privacy-hero h1{font-size:clamp(42px,7vw,66px);letter-spacing:-.04em;line-height:1;margin:8px 0 14px}
.privacy-hero p{max-width:720px;color:var(--muted);font-size:18px;margin:0}
.privacy-updated{display:inline-flex;margin-top:18px;padding:7px 10px;border-radius:999px;border:1px solid #343d4e;background:#1c212b;color:#b8c2d2;font-size:12px;font-weight:700}
.privacy-summary{margin-bottom:18px}
.privacy-summary>strong{display:block;font-size:18px;margin-bottom:12px}
.privacy-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.privacy-summary-grid span{padding:11px 12px;border-radius:10px;background:#151922;border:1px solid #303744;color:#cbd3df}
.privacy-content{padding:28px}
.privacy-section{scroll-margin-top:96px;padding:6px 0 24px;border-bottom:1px solid #303744}
.privacy-section:last-child{border-bottom:0;padding-bottom:0}
.privacy-section h2{font-size:23px;margin:18px 0 9px}
.privacy-section p{color:#c8cfda;line-height:1.75;margin:8px 0}
.privacy-section code{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;padding:2px 5px;border-radius:5px;background:#11151d;color:#d8ddff;border:1px solid #303744}

/* Essential-cookie notice */
.cookie-notice{position:fixed;left:20px;right:20px;bottom:20px;z-index:20;max-width:900px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;border:1px solid #3a4251;border-radius:15px;background:#171b23f2;box-shadow:0 18px 60px #0008;backdrop-filter:blur(16px)}
.cookie-notice.is-hidden{display:none}
.cookie-copy strong{font-size:15px}
.cookie-copy p{margin:4px 0 0;color:#aeb7c6;font-size:13px}
.cookie-actions{display:flex;gap:9px;flex-shrink:0}

@media(max-width:720px){
  .privacy-summary-grid{grid-template-columns:1fr}
  .cookie-notice{align-items:stretch;flex-direction:column;left:12px;right:12px;bottom:12px}
  .cookie-actions{width:100%}
  .cookie-actions .btn{flex:1}
}

.legal-crosslink{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.legal-crosslink strong{font-size:17px}
.legal-crosslink p{flex:1 1 420px;margin:0;color:var(--muted)}


/* Advanced ticket configuration */
.ticket-config-panel{background:linear-gradient(180deg,#202536,#1b1e25)}
.ticket-panel-publisher{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.5fr) auto;gap:14px;align-items:end;padding:16px;margin-bottom:18px;border:1px solid #37405a;border-radius:14px;background:#151a24}
.ticket-panel-publisher label{font-weight:700}
.ticket-panel-publisher select{display:block;width:100%;margin-top:7px;padding:11px 12px;background:#11151d;color:#fff;border:1px solid #343b49;border-radius:9px}
.ticket-panel-publisher p{margin:3px 0 0;color:var(--muted);font-size:13px}
.ticket-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}
.ticket-module-card{border:1px solid #343b49;border-radius:15px;background:#151922;padding:16px}
.ticket-module-card.enabled{border-color:#405078}
.ticket-module-card.disabled{opacity:.72}
.ticket-module-head{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.ticket-module-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#222a3a;border:1px solid #38445d;font-size:22px}
.ticket-module-head h3{margin:0;font-size:18px}
.switch-label{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:12px;color:#c9d2df}
.ticket-module-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ticket-module-fields label{font-weight:700;font-size:13px}
.ticket-module-fields .wide{grid-column:1/-1}
.ticket-module-fields input,.ticket-module-fields select,.ticket-module-fields textarea{display:block;width:100%;margin-top:6px;padding:10px 11px;background:#10141b;color:#fff;border:1px solid #303846;border-radius:9px;font:inherit}
.ticket-module-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding-top:13px;border-top:1px solid #2c3340}
.ticket-module-footer span{color:#7f899a;font-size:11px}
.ticket-module-footer code{color:#bfcaff}

/* Expanded cookie consent */
.cookie-actions{flex-wrap:wrap;justify-content:flex-end}
.cookie-actions .btn{white-space:nowrap}

@media(max-width:860px){
  .ticket-panel-publisher{grid-template-columns:1fr}
}
@media(max-width:720px){
  .ticket-module-grid{grid-template-columns:1fr}
  .ticket-module-fields{grid-template-columns:1fr}
  .ticket-module-fields .wide{grid-column:auto}
  .ticket-module-head{align-items:flex-start;flex-wrap:wrap}
  .switch-label{width:100%;margin-left:56px}
}


/* Advanced Feature Center */
.feature-center-panel{background:var(--panel);border-color:var(--line)}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px}
.feature-card{position:relative;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--panel2);color:var(--text);box-shadow:0 12px 34px #0002;overflow:hidden}
.feature-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#465069}
.feature-card.feature-enabled{border-color:#495b82;box-shadow:0 14px 38px #0003}
.feature-card.feature-enabled:before{background:#57f287}
.feature-card.priority-very-high:before{background:#ed4245}
.feature-card.priority-high:before{background:#f0b232}
.feature-card.priority-growing:before{background:#5865f2}
.feature-card.priority-popular:before{background:#23a559}
.feature-card.priority-differentiator:before{background:#eb459e}
.feature-card-head{display:flex;align-items:flex-start;gap:12px}
.feature-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:var(--panel2);border:1px solid var(--line);font-size:24px}
.feature-title-wrap{min-width:0;flex:1}
.feature-label-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.feature-label-row h3{margin:0;font-size:17px}
.feature-priority{display:block;margin-top:5px;color:#7f8ca4;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.feature-status{font-size:9px;font-weight:900;padding:4px 7px;border-radius:999px;text-transform:uppercase;letter-spacing:.06em}
.feature-status.core{background:#153520;color:#75e69a;border:1px solid #295c39}
.feature-status.partial{background:#342d15;color:#f3cf6b;border:1px solid #635527}
.feature-status.integration{background:#321d34;color:#e8a5ef;border:1px solid #613768}
.feature-toggle{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:var(--text)}
.feature-description{color:var(--muted);font-size:13px;line-height:1.55;margin:14px 0}
.feature-requirement{padding:9px 10px;margin-bottom:12px;border-radius:9px;background:#251d2c;color:#dcbbea;border:1px solid #44304c;font-size:12px}
.feature-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}
.feature-fields label{font-size:12px;font-weight:750;color:var(--text)}
.feature-fields input[type="text"],.feature-fields input[type="number"],.feature-fields select{display:block;width:100%;margin-top:6px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);font:inherit}
.feature-check{display:flex!important;align-items:center;gap:7px;padding:9px;border-radius:8px;background:var(--panel2);color:var(--text)}
.feature-card-footer{display:flex;justify-content:flex-end;margin-top:14px}
.feature-open{margin-left:auto}

@media(max-width:720px){
  .feature-grid{grid-template-columns:1fr}
  .feature-fields{grid-template-columns:1fr}
  .feature-card-head{flex-wrap:wrap}
  .feature-toggle{margin-left:58px}
}

.feature-status.foundation{background:#1c2c38;color:#8fd3ff;border:1px solid #31546a}
.feature-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ticket-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
.ticket-stat-grid>div{padding:14px;border-radius:12px;background:#111722;border:1px solid #303b50;text-align:center}
.ticket-stat-grid strong{display:block;font-size:24px;color:#fff}
.ticket-stat-grid span{display:block;margin-top:3px;color:#8995a8;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
@media(max-width:720px){.ticket-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Custom automation rule builder */
.automation-builder{margin-top:26px;padding-top:22px;border-top:1px solid #30394a}
.automation-form{padding:16px;border:1px solid #35405a;border-radius:14px;background:#10151f;margin-bottom:14px}
.automation-form input,.automation-form select{display:block;width:100%;margin-top:6px;padding:10px 11px;border:1px solid #343d4d;border-radius:8px;background:#151a22;color:#fff}
.automation-rule-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}
.automation-rule-card{display:flex;align-items:flex-start;gap:12px;padding:14px;border-radius:12px;background:#151a22;border:1px solid #30394a}
.automation-rule-card>div:first-child{min-width:0;flex:1}
.automation-rule-card strong{display:block;color:#fff}
.automation-rule-card span{display:block;margin-top:3px;color:#8e9aab;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.automation-rule-detail{display:flex;flex:2;gap:5px;flex-wrap:wrap}
.automation-rule-detail code{padding:4px 7px;border-radius:6px;background:#0d1118;color:#aebaff;border:1px solid #2e3748;font-size:10px}


/* Autosaving enable/disable controls */
.autosave-toggle{accent-color:#5865f2}
.autosaving{opacity:.62;pointer-events:none;transition:opacity .15s ease}
.command-card.disabled,.ticket-module-card.disabled,.feature-card:not(.feature-enabled){filter:saturate(.72)}
.command-card.disabled{opacity:.64;border-style:dashed}
.command-card.enabled{border-color:#35405a}
.command-toggle{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;background:#151a24;border:1px solid #343d4e;color:#c7d0dd;font-size:10px;font-weight:800}
.command-toggle input{margin:0}


/* Ticket behavior controls */
.ticket-behavior-form{padding:16px;margin-bottom:16px;border:1px solid #3a4560;border-radius:14px;background:linear-gradient(145deg,#141a25,#10141b)}
.ticket-behavior-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.ticket-behavior-grid label{font-size:13px;font-weight:800;color:#cbd3df}
.ticket-behavior-grid input,.ticket-behavior-grid select{display:block;width:100%;margin-top:6px;padding:10px 11px;border:1px solid #343d4d;border-radius:9px;background:#0f141c;color:#fff;font:inherit}
.ticket-behavior-switches{margin:0 0 14px;padding:12px;border-radius:10px;background:#0e131b;border:1px solid #2c3442}
@media(max-width:720px){.ticket-behavior-grid{grid-template-columns:1fr}}


/* === Legacy dashboard structural repair ===
   Keeps the current master dashboard usable until the file-based dashboard is merged.
*/
.site-header{
  height:auto;
  min-height:72px;
  padding:0 24px;
  display:block;
}
.header-inner{
  width:100%;
  max-width:1280px;
  min-height:72px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:20px;
}
.header-inner .brand{
  flex:0 0 auto;
  white-space:nowrap;
}
.site-nav{
  display:flex;
  align-items:center;
  gap:4px;
  flex:1 1 auto;
  min-width:0;
}
.site-nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 10px;
  border-radius:9px;
  color:var(--muted);
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}
.site-nav a:hover{
  background:var(--panel2);
  color:var(--text);
}
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex:0 0 auto;
}
.header-auth,.header-auth .user{
  display:flex;
  align-items:center;
  gap:9px;
}
.header-auth .user>span{
  max-width:170px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  color:var(--text);
  cursor:pointer;
}
.theme-toggle{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  color:var(--text);
  cursor:pointer;
}
.header-actions .add-bot-button{
  min-height:42px;
  padding:10px 14px;
  white-space:nowrap;
}

/* Server statistics page */
.stats-page-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}
.stats-page-hero h1{
  margin:7px 0 8px;
  font-size:clamp(34px,5vw,48px);
  line-height:1.05;
  letter-spacing:-.035em;
}
.stats-page-hero p{
  margin:0;
  max-width:720px;
  color:var(--muted);
  font-size:15px;
}
.server-stats-summary{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.server-stats-summary>div{
  min-width:0;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow:0 14px 36px rgba(0,0,0,.12);
}
.server-stats-summary strong{
  display:block;
  font-size:24px;
  line-height:1.05;
  color:var(--text);
}
.server-stats-summary span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.statistics-panel{
  padding:18px;
}
.stats-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.stats-toolbar>span{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.server-search{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 420px;
  max-width:620px;
  min-width:0;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#11151d;
}
.server-search>span{
  flex:0 0 auto;
  font-size:14px;
}
.server-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
}
.server-search input::placeholder{
  color:var(--muted);
}
.server-statistics-table{
  min-width:980px;
}
.server-statistics-table th{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.server-statistics-table td{
  vertical-align:middle;
}
.server-statistics-table td>strong,
.server-statistics-table td>small{
  display:block;
  white-space:nowrap;
}
.server-statistics-table td>small{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}
.stats-server-cell{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:260px;
}
.stats-server-cell>div:last-child{
  min-width:0;
}
.stats-server-cell strong,
.stats-server-cell small{
  display:block;
}
.stats-server-cell strong{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.stats-server-cell small{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}
.stats-server-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:13px;
  background:#323746;
  font-size:12px;
  font-weight:900;
}
.stats-server-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.statistics-panel .table-wrap{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:auto;
}
.statistics-panel table{
  background:var(--panel);
}
.statistics-panel th,
.statistics-panel td{
  padding:13px 12px;
}

/* Light mode contrast for legacy dashboard */








/* Responsive legacy header/statistics */
@media(max-width:1080px){
  .header-inner{gap:11px}
  .site-nav{gap:1px}
  .site-nav a{padding:8px 7px;font-size:12px}
  .header-auth .user>span{display:none}
  .server-stats-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  .site-header{padding:0 14px}
  .header-inner{position:relative;min-height:64px}
  .nav-toggle{
    display:grid;
    place-items:center;
    margin-left:auto;
  }
  .site-nav{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    z-index:20;
    padding:8px;
    border:1px solid var(--line);
    border-radius:13px;
    background:var(--panel);
    box-shadow:0 18px 48px rgba(0,0,0,.18);
  }
  .site-nav.open{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .site-nav a{
    min-height:42px;
    padding:10px 12px;
  }
  .header-actions .add-bot-button{display:none}
}
@media(max-width:720px){
  .stats-page-hero{
    align-items:stretch;
    flex-direction:column;
    gap:14px;
  }
  .stats-page-hero>.btn{align-self:flex-start}
  .server-stats-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .server-stats-summary>div{padding:13px 14px}
  .stats-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .stats-toolbar>span{white-space:normal}
  .server-search{
    flex-basis:auto;
    max-width:none;
    width:100%;
  }
}
@media(max-width:460px){
  .header-auth{display:none}
  .site-nav.open{grid-template-columns:1fr}
  .server-stats-summary{grid-template-columns:1fr}
}


/* === Complete dashboard theme consistency ===
   The theme switch now changes the entire dashboard instead of only individual cards.
*/

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#111318;
  --panel:#1b1e25;
  --panel2:#242832;
  --text:#f5f7fb;
  --muted:#9aa3b2;
  --accent:#5865f2;
  --line:#303644;
}

html[data-theme="dark"] body{
  background:radial-gradient(circle at top,#202743 0,#111318 45%);
  color:var(--text);
}

html[data-theme="dark"] header,
html[data-theme="dark"] .site-header{
  background:rgba(17,19,24,.92);
  border-color:#252a35;
}

html[data-theme="dark"] .brand{color:#fff}

html[data-theme="dark"] a{color:#aeb7ff}

/* Generic dashboard surfaces */

html[data-theme="dark"] .panel,
html[data-theme="dark"] .guild-card,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .statistics-panel,
html[data-theme="dark"] .server-stats-summary>div,
html[data-theme="dark"] .dashboard-home-stats>div,
html[data-theme="dark"] .dashboard-toolbar,
html[data-theme="dark"] .stats-toolbar{
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  border-color:var(--line);
  color:var(--text);
}
html[data-theme="dark"] .command-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .ticket-module-card,
html[data-theme="dark"] .automation-rule-card,
html[data-theme="dark"] .twitch-card,
html[data-theme="dark"] .settings-group,
html[data-theme="dark"] .settings-toggle-section{
  background:#151922;
  border-color:var(--line);
  color:var(--text);
}

/* Statistics table follows the active theme */

html[data-theme="dark"] .statistics-panel table,
html[data-theme="dark"] .server-statistics-table{
  background:#1b1e25;
  color:#f5f7fb;
}

html[data-theme="dark"] .statistics-panel th,
html[data-theme="dark"] .statistics-panel td{
  border-color:#303644;
}

html[data-theme="dark"] .statistics-panel th{color:#b8c0cf}

/* Inputs and search fields */

html[data-theme="dark"] .server-search,
html[data-theme="dark"] .form-grid input,
html[data-theme="dark"] .form-grid select,
html[data-theme="dark"] .ticket-module-fields input,
html[data-theme="dark"] .ticket-module-fields select,
html[data-theme="dark"] .ticket-module-fields textarea,
html[data-theme="dark"] .feature-fields input,
html[data-theme="dark"] .feature-fields select,
html[data-theme="dark"] .automation-form input,
html[data-theme="dark"] .automation-form select{
  background:#11151d;
  color:#fff;
  border-color:#343b49;
}

/* Buttons must keep readable contrast in either theme */


html[data-theme="dark"] .btn{
  color:#fff;
}
html[data-theme="dark"] .btn.secondary{
  background:#262b36;
  color:#f5f7fb;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .nav-toggle{
  background:#242832;
  color:#f5f7fb;
  border-color:#303644;
}

/* Text that was previously hard-coded for dark mode */


html[data-theme="dark"] .guild-card,
html[data-theme="dark"] .twitch-name,
html[data-theme="dark"] .ticket-module-head h3,
html[data-theme="dark"] .feature-label-row h3{
  color:#f5f7fb;
}


/* === Homepage content spacing and category layout === */
.landing-hero{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  align-items:center;
  gap:42px;
  min-height:520px;
  padding:58px 4px 70px;
}
.hero-copy{
  min-width:0;
}
.hero-copy .pill{
  display:inline-flex;
  align-items:center;
  margin-bottom:22px;
}
.hero-copy h1{
  max-width:760px;
  margin:0 0 24px;
  font-size:clamp(42px,5vw,68px);
  line-height:1.02;
  letter-spacing:-.045em;
}
.hero-slogan{
  margin:0 0 16px;
  max-width:820px;
  line-height:1.55;
}
.hero-detail{
  margin:0;
  max-width:900px;
  color:var(--muted);
  line-height:1.7;
}
.hero-copy .actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}

/* Right-side command center card */
.hero-console{
  align-self:center;
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow:0 22px 50px rgba(0,0,0,.16);
}
.hero-console-heading{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-bottom:16px;
  padding-bottom:15px;
  border-bottom:1px solid var(--line);
}
.hero-console-label{
  color:#aeb7ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.15em;
}
.hero-console-title{
  color:var(--text);
  font-size:21px;
  line-height:1.2;
}
.hero-console-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.hero-category{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  font-size:12px;
  font-weight:750;
  line-height:1.25;
}
.hero-category b{
  width:22px;
  flex:0 0 22px;
  text-align:center;
  font-size:15px;
}

/* Footer spacing */
footer{
  padding:34px 24px 42px;
}
.footer-inner{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-align:center;
}
.footer-brand-block{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}
.footer-bot-list-widget{
  display:block;
  margin-top:0;
  width:auto;
  height:64px;
  max-width:100%;
  border-radius:8px;
}
.footer-bot-list-widget img{
  display:block;
  width:auto;
  max-width:100%;
  height:100%;
  border-radius:8px;
}
.footer-bot-list-widget:focus-visible{
  outline:2px solid var(--text);
  outline-offset:5px;
}
.footer-inner:has(.footer-bot-list-widget){
  display:grid;
  grid-template-columns:auto minmax(0,auto);
  column-gap:28px;
  row-gap:9px;
  width:fit-content;
  max-width:100%;
}
.footer-inner:has(.footer-bot-list-widget) .footer-brand-block{
  grid-column:2;
  grid-row:1;
  align-self:end;
}
.footer-inner:has(.footer-bot-list-widget) .footer-nav{
  grid-column:2;
  grid-row:2;
  align-self:start;
}
.footer-inner .footer-bot-list-widget{
  grid-column:1;
  grid-row:1 / 3;
}
@media(max-width:600px){
  .footer-inner:has(.footer-bot-list-widget){
    grid-template-columns:auto minmax(0,1fr);
    column-gap:14px;
  }
  .footer-inner .footer-bot-list-widget{width:auto;height:64px}
}
.footer-brand-block strong{
  color:var(--text);
  font-weight:850;
}
.footer-brand-block span{
  color:var(--muted);
}
.footer-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
}
.footer-nav a{
  font-weight:700;
}
.footer-nav>span{
  color:var(--muted);
}

/* Theme-aware homepage cards */



html[data-theme="dark"] .hero-console{
  background:linear-gradient(180deg,#1b2030,#171b24);
}
html[data-theme="dark"] .hero-category{
  background:#202530;
  color:#f5f7fb;
}

/* Responsive homepage */
@media(max-width:980px){
  .landing-hero{
    grid-template-columns:1fr;
    gap:28px;
    padding-top:42px;
  }
  .hero-console{
    width:100%;
  }
}
@media(max-width:620px){
  .landing-hero{
    padding-top:30px;
    padding-bottom:48px;
  }
  .hero-copy h1{
    font-size:clamp(38px,12vw,52px);
  }
  .hero-copy .actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .hero-copy .actions .btn{
    width:100%;
  }
  .hero-console{
    padding:16px;
  }
  .hero-console-grid{
    grid-template-columns:1fr;
  }
  .footer-brand-block{
    flex-direction:column;
    gap:2px;
  }
}


/* === Advanced dashboard control center === */
.dashboard-control-shell{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.dashboard-home-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:26px 28px;
  border:1px solid var(--line);
  border-radius:22px;
  background:
    radial-gradient(circle at top right,rgba(88,101,242,.18),transparent 38%),
    linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow:0 20px 50px rgba(0,0,0,.14);
}
.dashboard-hero-copy{
  min-width:0;
}
.dashboard-home-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:9px;
  padding:6px 9px;
  border:1px solid rgba(88,101,242,.35);
  border-radius:999px;
  background:rgba(88,101,242,.10);
  color:#aeb7ff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.dashboard-home-badge i,
.dashboard-online-pill i,
.guild-status i{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#20d587;
  box-shadow:0 0 0 4px rgba(32,213,135,.10);
}
.dashboard-home-hero h1{
  margin:5px 0 8px;
  font-size:clamp(38px,5vw,56px);
  line-height:1;
  letter-spacing:-.045em;
}
.dashboard-home-hero p{
  max-width:700px;
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}
.dashboard-hero-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.dashboard-online-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}

/* six-card overview */
.dashboard-server-summary{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin:2px 0 0;
  align-items:stretch;
}
.dashboard-server-summary>div{
  min-width:0;
  padding:0;
}
.dashboard-server-summary .summary-card{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:86px;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow:0 10px 28px rgba(0,0,0,.09);
  overflow:hidden;
}
.summary-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(88,101,242,.28);
  border-radius:11px;
  background:rgba(88,101,242,.10);
  color:#aeb7ff;
}
.summary-icon svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.summary-icon-members svg,
.summary-icon-tickets svg{
  width:19px;
  height:19px;
}
.summary-icon-channels svg{
  width:17px;
  height:17px;
}
.summary-icon-commands svg{
  width:18px;
  height:18px;
}
.dashboard-server-summary .summary-card>div{
  min-width:0;
}
.dashboard-server-summary strong{
  display:block;
  font-size:22px;
  line-height:1.05;
  letter-spacing:-.025em;
  color:var(--text);
}
.dashboard-server-summary .summary-card>div>span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:8px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.075em;
  text-transform:uppercase;
  white-space:normal;
}

/* managed servers section */
.dashboard-server-section{
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow:0 18px 46px rgba(0,0,0,.12);
}
.dashboard-server-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.dashboard-server-section-head h2{
  margin:4px 0 4px;
  font-size:24px;
  letter-spacing:-.025em;
}
.dashboard-server-section-head p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.managed-server-count{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel2);
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  white-space:nowrap;
}
.dashboard-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 16px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(0,0,0,.08);
}
.dashboard-toolbar .server-search{
  max-width:640px;
}
.dashboard-toolbar-hint{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}

/* server cards */
.friendly-guild-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.friendly-guild-card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  min-width:0;
  padding:17px;
  border-radius:17px;
  overflow:hidden;
}
.friendly-guild-card:hover{
  transform:translateY(-2px);
  border-color:rgba(88,101,242,.55);
  box-shadow:0 16px 38px rgba(0,0,0,.14);
}
.guild-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.guild-card-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}
.friendly-guild-card .guild-icon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:15px;
}
.guild-card-copy{
  min-width:0;
  flex:1 1 auto;
}
.guild-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.guild-title-row>strong{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
}
.guild-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  padding:4px 7px;
  border:1px solid rgba(32,213,135,.18);
  border-radius:999px;
  background:rgba(32,213,135,.08);
  color:#5ee2a7;
  font-size:8px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.guild-card-copy>small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9px;
}
.guild-mini-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:15px;
}
.guild-mini-stats>div{
  min-width:0;
  padding:10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(0,0,0,.07);
}
.guild-mini-stats span,
.guild-mini-stats strong{
  display:block;
}
.guild-mini-stats span{
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.guild-mini-stats strong{
  margin-top:4px;
  color:var(--text);
  font-size:15px;
}
.guild-card-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:14px;
}
.guild-card-actions .btn{
  flex:1 1 0;
  min-width:0;
}
.guild-configure-btn{
  box-shadow:0 10px 24px rgba(88,101,242,.18);
}

/* theme tuning */





html[data-theme="dark"] .dashboard-server-section{
  background:linear-gradient(180deg,#171c27,#131720);
}
html[data-theme="dark"] .friendly-guild-card{
  background:linear-gradient(180deg,#1c2230,#171b24);
}

/* dashboard responsive layout */
@media(max-width:1180px){
  .dashboard-server-summary{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .dashboard-home-hero{
    align-items:flex-start;
    flex-direction:column;
  }
  .dashboard-hero-actions{
    width:100%;
    flex-wrap:wrap;
  }
  .friendly-guild-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .dashboard-home-hero,
  .dashboard-server-section{
    padding:16px;
    border-radius:16px;
  }
  .dashboard-server-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .dashboard-server-summary .summary-card{
    min-height:76px;
    padding:12px;
  }
  .summary-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    border-radius:10px;
  }
  .summary-icon svg{
    width:16px;
    height:16px;
  }
  .dashboard-server-summary strong{
    font-size:19px;
  }
  .dashboard-server-section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .dashboard-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .dashboard-toolbar .server-search{
    width:100%;
    max-width:none;
  }
  .dashboard-toolbar-hint{
    white-space:normal;
  }
  .guild-mini-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:480px){
  .dashboard-server-summary{
    grid-template-columns:1fr;
  }
  .dashboard-hero-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .dashboard-hero-actions .btn,
  .dashboard-online-pill{
    width:100%;
    justify-content:center;
  }
  .guild-title-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .guild-card-actions{
    align-items:stretch;
    flex-direction:column;
  }
}


/* === Complete light-mode module cleanup ===
   Make every dashboard module use white/light surfaces with dark readable text.
*/




/* Primary dashboard surfaces */


/* Nested module cards */


/* Cards that should stay pure white even when nested */


/* Text hierarchy */






/* Form controls */








/* Tables */








/* Navigation */






/* Buttons */










/* Status / utility pills */




/* Code/chips/badges */




/* Light-mode shadows should be subtle */


/* Make scrollbars visually compatible with light mode */


@media(max-width:720px){
  
}


/* === Light-mode navigation/button cleanup ===
   Remove legacy dark pill/button backgrounds from dashboard controls.
*/










/* Legacy text-chip controls should not remain charcoal in light mode. */


/* Generic non-primary native buttons inside dashboard panels. */




@media(max-width:720px){
  

  
}


/* === Bot owner dashboard === */
.owner-dashboard-shell{
  display:grid;
  gap:18px;
}
.owner-dashboard-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(88,101,242,.16),rgba(18,20,27,.96) 48%);
  box-shadow:0 18px 44px rgba(0,0,0,.14);
}
.owner-dashboard-hero h1{
  margin:6px 0 8px;
  font-size:clamp(30px,5vw,46px);
  letter-spacing:-.035em;
}
.owner-dashboard-hero p{
  max-width:700px;
  margin:0;
  color:var(--muted);
}
.owner-access-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:10px;
  padding:7px 10px;
  border:1px solid rgba(255,178,36,.28);
  border-radius:999px;
  background:rgba(255,178,36,.08);
  color:#ffc76a;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
}
.owner-access-badge i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#ffb224;
  box-shadow:0 0 0 4px rgba(255,178,36,.10);
}
.owner-dashboard-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(130px,1fr));
  gap:9px;
  min-width:min(360px,100%);
}
.owner-dashboard-meta span{
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(0,0,0,.12);
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.owner-dashboard-meta strong{
  display:block;
  margin-bottom:3px;
  color:var(--text);
  font-size:20px;
}
.owner-section{
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
}
.owner-section-heading{
  margin-bottom:14px;
}
.owner-section-heading h2{
  margin:3px 0 5px;
}
.owner-section-heading p{
  margin:0;
  color:var(--muted);
}
.site-nav a[href="/dashboard/owner"]{
  color:#ffc76a;
}
.site-nav a[href="/dashboard/owner"]:hover{
  background:rgba(255,178,36,.08);
  color:#ffd896;
}









@media(max-width:760px){
  .owner-dashboard-hero{
    flex-direction:column;
    padding:20px;
  }
  .owner-dashboard-meta{
    width:100%;
    min-width:0;
  }
}


/* === Kryndexa navigation avatar === */
.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
}
.brand-avatar{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:block;
  object-fit:cover;
  border-radius:50%;
  border:1px solid rgba(88,101,242,.28);
  background:rgba(88,101,242,.10);
  box-shadow:0 5px 14px rgba(0,0,0,.12);
}
.brand>span{
  display:block;
  min-width:0;
}

/* Keep every Your Servers stat glyph optically centered inside its bubble. */
.dashboard-server-summary .summary-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  line-height:0 !important;
  text-align:center;
}
.dashboard-server-summary .summary-icon svg{
  position:static !important;
  display:block !important;
  flex:0 0 auto;
  margin:0 !important;
  inset:auto !important;
  vertical-align:middle;
  transform:none !important;
  overflow:visible;
}


/* === Polished light-mode legal pages === */
































































@media(max-width:720px){
  

  

  

  
}


/* === Multi-provider Stream Alerts + owner broadcast === */
.stream-alert-panel{
  border-color:#34405a;
  background:linear-gradient(180deg,#1d2230 0%,#1b1e25 34%);
}
.stream-alert-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.stream-alert-hero h2{margin:4px 0 6px}
.stream-alert-hero p{margin:0;color:var(--muted);max-width:760px}
.stream-provider-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.provider-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 9px;
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.03em;
  border:1px solid transparent;
}
.provider-chip.twitch{background:#2b1b3d;color:#d8c2ff;border-color:#6843a1}
.provider-chip.youtube{background:#3a1719;color:#ffb4b4;border-color:#7b3035}
.provider-chip.kick{background:#15311b;color:#9cffad;border-color:#31683b}
.stream-plan-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 16px;
}
.stream-plan-summary>div{
  padding:12px;
  border:1px solid #343b49;
  border-radius:12px;
  background:#141820;
}
.stream-plan-summary strong{display:block;font-size:18px;color:#eef1f6}
.stream-config-form{
  padding:18px;
  margin-bottom:18px;
  border:1px solid #3a4354;
  border-radius:15px;
  background:#141820;
}
.stream-config-form small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
.stream-form-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.stream-form-footer>span{color:var(--muted);font-size:12px}
.stream-card{
  background:#171a21;
  border:1px solid #313744;
  border-radius:14px;
  padding:16px;
  box-shadow:0 10px 30px #00000018;
}
.stream-card.is-live{border-color:#ef4444;box-shadow:0 0 0 1px #ef444420,0 12px 34px #ef444410}
.stream-card.provider-twitch{border-top:2px solid #9146ff}
.stream-card.provider-youtube{border-top:2px solid #ff0033}
.stream-card.provider-kick{border-top:2px solid #53fc18}
.stream-avatar{
  width:42px;
  height:42px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  font-size:15px;
}
.stream-avatar.twitch{background:#9146ff}
.stream-avatar.youtube{background:#ff0033}
.stream-avatar.kick{background:#2dbd19;color:#08140a}
.stream-embed-section{margin-top:24px;padding-top:22px;border-top:1px solid #343b49}
.stream-embed-grid{display:grid;gap:16px}
.stream-embed-editor{
  padding:17px;
  border:1px solid #343b49;
  border-radius:15px;
  background:#141820;
}
.stream-embed-editor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:15px;
}
.stream-embed-editor-head h3{margin:3px 0 0}
.embed-editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:18px;
  align-items:start;
}
.embed-editor-controls{display:grid;gap:12px}
.embed-editor-controls label{font-weight:700}
.embed-editor-controls input,
.embed-editor-controls textarea,
.embed-editor-controls select{
  width:100%;
  margin-top:6px;
}
.embed-fields-editor{display:grid;gap:8px}
.embed-field-row{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) auto;
  gap:8px;
  align-items:center;
}
.embed-field-row label{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  font-size:12px;
}
.embed-field-row label input{width:auto;margin:0}
.embed-preview-card{
  position:sticky;
  top:150px;
  overflow:hidden;
  border:1px solid #303744;
  border-left:5px solid var(--embed-color,#5865f2);
  border-radius:12px;
  background:#20242c;
  box-shadow:0 12px 32px #00000022;
}
.embed-preview-body{padding:16px}
.embed-preview-body>strong{display:block;color:#fff;font-size:16px;margin:4px 0 9px}
.embed-preview-body>p{margin:0 0 12px;color:#d3d8e0;white-space:pre-wrap;overflow-wrap:anywhere}
.embed-preview-body>small{display:block;margin-top:12px;color:#9da6b5}
.embed-preview-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.embed-preview-field{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:8px;
  border-radius:8px;
  background:#191d24;
}
.embed-preview-field.inline{min-width:0}
.embed-preview-field strong{font-size:11px;color:#eef1f6}
.embed-preview-field span{font-size:11px;color:#b7bfcc;overflow-wrap:anywhere}
.owner-broadcast-editor,
.paid-access-form{
  padding:18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(0,0,0,.10);
}
.owner-broadcast-checks{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.owner-broadcast-preview{top:110px}
.owner-broadcast-result{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#11151d;
  color:#dce3ef;
}
.paid-access-form{
  display:grid;
  grid-template-columns:minmax(220px,1.3fr) minmax(180px,.7fr) minmax(220px,1.2fr) auto;
  gap:12px;
  align-items:end;
  margin-bottom:14px;
}
.paid-access-form label{font-weight:700}
.paid-access-form select,
.paid-access-form input{width:100%;margin-top:6px}
.paid-access-list{display:grid;gap:8px}
.paid-access-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(0,0,0,.08);
}
.paid-access-card>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.paid-access-card strong{color:var(--text)}
.paid-access-card span,.paid-access-card small{color:var(--muted);font-size:11px}












@media(max-width:900px){
  .embed-editor-layout{grid-template-columns:1fr}
  .embed-preview-card{position:static}
  .stream-plan-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .paid-access-form{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .stream-alert-hero,.stream-form-footer,.paid-access-card{align-items:stretch;flex-direction:column}
  .stream-provider-badges{justify-content:flex-start}
  .stream-plan-summary,.paid-access-form,.owner-broadcast-checks{grid-template-columns:1fr}
  .embed-field-row{grid-template-columns:1fr}
}


/* Clickable broadcast embed-title preview */
.embed-preview-title-link{
  display:block;
  margin:4px 0 9px;
  color:#fff;
  font-size:16px;
  font-weight:800;
  line-height:1.3;
  text-decoration:none;
  overflow-wrap:anywhere;
  cursor:default;
}
.embed-preview-title-link.has-link{
  color:#7c8cff;
  text-decoration:underline;
  text-decoration-color:rgba(124,140,255,.45);
  text-underline-offset:2px;
  cursor:pointer;
}
.embed-preview-title-link.has-link:hover{
  color:#a8b2ff;
}





/* === Cookie panel + fixed paragraph fields === */
.cookie-notice{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:17px 18px;
  border-radius:16px;
}
.cookie-notice.is-visible{
  display:flex;
  animation:cookieNoticeIn .18s ease-out;
}
.cookie-notice.is-hidden{
  display:none !important;
}
.cookie-copy{
  min-width:0;
  flex:1;
}
.cookie-copy strong{
  display:block;
  font-size:15px;
  line-height:1.25;
}
.cookie-copy p{
  max-width:610px;
  margin:5px 0 0;
  line-height:1.5;
}
.cookie-actions{
  align-items:center;
}
.cookie-actions .btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
@keyframes cookieNoticeIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

/* Text/paragraph inputs keep a clean, fixed layout and cannot be dragged. */
textarea{
  box-sizing:border-box;
  resize:none !important;
  line-height:1.5;
  overflow-y:auto;
  scrollbar-gutter:stable;
}
.ticket-module-fields textarea{
  height:112px;
  min-height:112px;
  max-height:112px;
}
.stream-config-form textarea{
  height:100px;
  min-height:100px;
  max-height:100px;
}
.stream-embed-editor textarea{
  height:128px;
  min-height:128px;
  max-height:128px;
}
.owner-broadcast-editor textarea{
  height:190px;
  min-height:190px;
  max-height:190px;
}
.embed-editor-controls textarea{
  border-radius:10px;
}


@media(max-width:720px){
  .cookie-notice.is-visible{
    display:flex;
    align-items:stretch;
  }
  .cookie-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .cookie-actions>a{
    grid-column:1/-1;
  }
  .owner-broadcast-editor textarea{
    height:160px;
    min-height:160px;
    max-height:160px;
  }
}


/* === Unified Stream Alerts panel === */
.stream-alert-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.stream-alert-heading h2{margin:4px 0 6px}
.stream-alert-heading p{margin:0;max-width:780px;color:var(--muted)}
.stream-access-pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  padding:8px 11px;
  border:1px solid #3b4659;
  border-radius:999px;
  background:#141820;
  color:#dfe6f2;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.unified-stream-form{margin-bottom:16px}
.stream-message-field{grid-column:1/-1}
.stream-unified-block{
  padding-top:18px;
  margin-top:18px;
  border-top:1px solid #343b49;
}
.stream-subheading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.stream-subheading h3{margin:3px 0 0}
.stream-subheading p{margin:5px 0 0;color:var(--muted)}
.stream-list{
  display:grid;
  gap:8px;
}
.stream-list-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 13px;
  border:1px solid #313744;
  border-radius:12px;
  background:#171a21;
}
.stream-list-row.provider-twitch{border-left:3px solid #9146ff}
.stream-list-row.provider-youtube{border-left:3px solid #ff0033}
.stream-list-row.provider-kick{border-left:3px solid #53fc18}
.stream-list-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px;
}
.stream-list-title{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.stream-list-title>a{
  color:#eef1f6;
  font-weight:850;
  text-decoration:none;
}
.stream-list-title>a:hover{text-decoration:underline}
.stream-list-meta{
  display:flex;
  gap:13px;
  flex-wrap:wrap;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}
.stream-list-meta strong{color:#cfd6e2}
.stream-single-editor>.stream-provider-editor[hidden]{display:none !important}
.stream-provider-editor{border:0;padding:0;margin:0;min-width:0}
.stream-provider-editor[hidden]{display:none!important}
.provider-chip.tiktok,.stream-avatar.tiktok{background:rgba(254,44,85,.12);color:#FE2C55}
.stream-list-row.provider-tiktok{border-left:3px solid #FE2C55}
.stream-single-editor .stream-embed-editor{
  margin:0;
}
.stream-single-editor .stream-embed-editor-head{
  display:none;
}





@media(max-width:720px){
  .stream-alert-heading,
  .stream-list-row{
    align-items:stretch;
    flex-direction:column;
  }
  .stream-access-pill{
    align-self:flex-start;
  }
}


/* === Discord login + reliable theme control === */
.discord-login-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#5865f2;
  color:#fff !important;
  border-color:#5865f2;
  box-shadow:0 7px 18px rgba(88,101,242,.18);
}
.discord-login-button:hover{
  background:#4752c4;
  border-color:#4752c4;
  color:#fff !important;
  transform:translateY(-1px);
}
.discord-login-mark{
  display:grid;
  place-items:center;
  width:19px;
  height:19px;
  flex:0 0 19px;
  border-radius:6px;
  background:rgba(255,255,255,.16);
  font-size:11px;
  line-height:1;
}
.login-consent-shell{
  min-height:calc(100vh - 230px);
  display:grid;
  place-items:center;
  padding:48px 0;
}
.login-consent-card{
  width:min(100%,620px);
  padding:34px;
  text-align:center;
}
.discord-login-logo{
  width:58px;
  height:58px;
  margin:0 auto 15px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#5865f2;
  color:#fff;
  font-size:25px;
  box-shadow:0 14px 30px rgba(88,101,242,.22);
}
.login-consent-card h1{
  margin:7px 0 10px;
}
.login-consent-card>p{
  max-width:520px;
  margin:0 auto;
  color:var(--muted);
  line-height:1.65;
}
.login-consent-points{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:22px 0;
}
.login-consent-points span{
  padding:10px 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.login-consent-submit{
  width:100%;
  min-height:46px;
}
.login-consent-links{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-top:16px;
  font-size:12px;
}

/* Explicit theme switch with readable label instead of an icon-only control. */
.theme-toggle{
  width:auto !important;
  min-width:112px;
  height:42px;
  padding:0 11px !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  white-space:nowrap;
}
.theme-toggle-icon{
  width:18px;
  flex:0 0 18px;
  font-size:15px;
  line-height:1;
}
.theme-toggle-label{
  font-size:11px;
  font-weight:800;
}

/* Final light-mode normalization for dashboard surfaces added after older rules. */










html[data-theme="dark"] .theme-toggle{
  background:#242832;
  color:#f5f7fb;
  border-color:#303644;
}

@media(max-width:1080px){
  .theme-toggle{
    min-width:42px;
  }
  .theme-toggle-label{
    display:none;
  }
}
@media(max-width:620px){
  .login-consent-card{padding:25px 18px}
  .login-consent-points{grid-template-columns:1fr}
}


/* Primary navigation dropdown groups */
.nav-dropdown{
  position:relative;
  flex:0 0 auto;
}
.nav-dropdown>summary{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:8px 10px;
  border-radius:9px;
  color:var(--muted);
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.nav-dropdown>summary::-webkit-details-marker{display:none}
.nav-dropdown>summary:hover,
.nav-dropdown[open]>summary{
  background:var(--panel2);
  color:var(--text);
}
.nav-dropdown-chevron{
  font-size:10px;
  transition:transform .16s ease;
}
.nav-dropdown[open] .nav-dropdown-chevron{transform:rotate(180deg)}
.nav-dropdown-menu{
  position:absolute;
  z-index:100;
  top:calc(100% + 8px);
  left:0;
  min-width:190px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  box-shadow:0 16px 40px rgba(0,0,0,.24);
}
.nav-dropdown-menu a{
  display:flex;
  width:100%;
  min-height:38px;
  padding:9px 10px;
}
@media(max-width:900px){
  .site-nav.open .nav-dropdown{width:100%}
  .site-nav.open .nav-dropdown>summary{
    display:flex;
    width:100%;
    justify-content:space-between;
  }
  .site-nav.open .nav-dropdown-menu{
    position:static;
    min-width:0;
    margin:4px 0 6px;
    box-shadow:none;
    background:var(--panel2);
  }
  .site-nav.open .nav-dropdown-menu a{padding-left:18px}
}


/* === Compact bot invite + account dropdown theme controls === */
.add-bot-button.compact{
  min-height:34px;
  padding:6px 9px;
  border-radius:9px;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
}
.account-dropdown{
  position:relative;
}
.account-dropdown>summary{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  color:var(--text);
  cursor:pointer;
  list-style:none;
  font-size:12px;
  font-weight:800;
  user-select:none;
}
.account-dropdown>summary::-webkit-details-marker{display:none}
.account-dropdown[open]>summary,
.account-dropdown>summary:hover{
  border-color:#5865f2;
}
.account-dropdown[open] .nav-dropdown-chevron{transform:rotate(180deg)}
.account-dropdown-menu{
  position:absolute;
  z-index:120;
  top:calc(100% + 8px);
  right:0;
  min-width:190px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  box-shadow:0 16px 40px rgba(0,0,0,.24);
}
.account-menu-item{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:9px 10px !important;
  border:0;
  border-radius:8px;
  background:transparent !important;
  color:var(--text) !important;
  box-shadow:none !important;
  font:inherit;
  font-size:12px;
  font-weight:750;
  text-decoration:none;
  cursor:pointer;
}
.account-menu-item:hover{
  background:var(--panel2) !important;
  transform:none;
}
.account-menu-item.theme-toggle{
  min-width:0;
  height:auto;
}
.account-menu-item .theme-toggle-label{
  display:inline !important;
}
.account-logout{
  color:#f87171 !important;
}




@media(max-width:900px){
  .add-bot-button.compact{
    padding:6px 8px;
    font-size:10px;
  }
}
@media(max-width:620px){
  .account-name{
    max-width:110px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .account-dropdown-menu{
    right:0;
    min-width:175px;
  }
}


/* === Neater columnized public Features page === */
.features-page{
  width:min(1180px,100%);
  margin:0 auto;
}
.features-hero{
  padding:38px 0 28px;
}
.features-hero h1{
  max-width:780px;
  margin:8px 0 12px;
  font-size:clamp(34px,5vw,54px);
  line-height:1.04;
  letter-spacing:-.035em;
}
.features-hero>p{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
}
.features-hero .actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:20px;
}
.public-feature-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 28px;
}
.public-feature-summary>div{
  min-width:0;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
}
.public-feature-summary strong{
  display:block;
  margin-bottom:4px;
  color:var(--text);
  font-size:22px;
  line-height:1;
}
.public-feature-summary span{
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.public-feature-categories{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.public-feature-section{
  min-width:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
}
.public-feature-section .category-heading{
  margin:0 0 14px;
  padding-bottom:11px;
  border-bottom:1px solid var(--line);
}
.public-feature-section .category-heading h2{
  margin:0;
  color:var(--text);
  font-size:18px;
}
.public-feature-section .category-heading span{
  padding:4px 7px;
  border-radius:999px;
  background:var(--panel2);
  font-size:10px;
  font-weight:800;
}
.public-feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.public-feature-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  min-height:190px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel2);
  transition:border-color .15s ease,transform .15s ease;
}
.public-feature-card:hover{
  border-color:#5865f2;
  transform:translateY(-1px);
}
.public-feature-top{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.public-feature-top .feature-icon{
  flex:0 0 36px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  font-size:17px;
}
.public-feature-top>div:last-child{
  min-width:0;
}
.public-feature-card h3{
  margin:3px 0 0;
  color:var(--text);
  font-size:14px;
  line-height:1.25;
}
.public-feature-card>p{
  margin:11px 0 14px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.public-feature-meta{
  display:grid;
  gap:5px;
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.public-feature-meta span{
  color:var(--text);
  font-size:10px;
  font-weight:800;
}
.public-feature-meta small{
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
}


@media(max-width:1050px){
  .public-feature-categories{grid-template-columns:1fr}
  .public-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .public-feature-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .public-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .features-hero{padding-top:24px}
  .public-feature-summary,
  .public-feature-grid{grid-template-columns:1fr}
  .public-feature-section{padding:14px}
  .public-feature-card{min-height:0}
}


/* Discord brand mark inside OAuth login buttons */
.discord-login-icon{
  display:block;
  width:16px;
  height:13px;
  color:#fff;
}
.discord-login-mark{
  background:transparent;
  border-radius:0;
}


/* === Complete dashboard light mode === */
























/* === Appearance selector: System / Light / Dark === */
.account-theme-picker{padding:4px 0 7px;border-bottom:1px solid var(--line);margin-bottom:5px}
.account-theme-title{display:block;padding:5px 10px;color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.account-menu-item.theme-choice{position:relative}
.account-menu-item.theme-choice.is-active{background:var(--panel2)!important;color:var(--text)!important}
.account-menu-item.theme-choice.is-active::after{content:"✓";margin-left:auto;color:#5865f2;font-weight:900}

/* === Complete web panel light theme === */
html[data-theme="light"]{
  --bg:#f4f7fe;
  --panel:#ffffff;
  --panel2:#f7f9fc;
  --text:#1b2559;
  --muted:#68758b;
  --line:#dfe5ef;
  color-scheme:light;
}
html[data-theme="light"] body{background:#f4f7fe;color:#1b2559}
html[data-theme="light"] .site-header{background:rgba(255,255,255,.95);border-color:#dfe5ef}
html[data-theme="light"] .panel,
html[data-theme="light"] .dashboard-server-section,
html[data-theme="light"] .settings-panel,
html[data-theme="light"] .ticket-config-panel,
html[data-theme="light"] .ticket-panel-publisher,
html[data-theme="light"] .ticket-system-panel,
html[data-theme="light"] .command-center-panel,
html[data-theme="light"] .automation-builder,
html[data-theme="light"] .automation-form,
html[data-theme="light"] .guild-card,
html[data-theme="light"] .public-feature-section,
html[data-theme="light"] .public-feature-summary>div{
  background:#fff!important;border-color:#dfe5ef!important;color:#1b2559!important;
  box-shadow:0 10px 28px rgba(31,51,89,.055)
}
html[data-theme="light"] .dashboard-home-stats>div,
html[data-theme="light"] .dashboard-server-summary>div,
html[data-theme="light"] .ticket-stat-grid>div,
html[data-theme="light"] .guild-mini-stats>div,
html[data-theme="light"] .public-feature-card{
  background:#f7f9fc!important;border-color:#e0e6ef!important;color:#1b2559!important
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select{
  background:#fff!important;color:#1b2559!important;border-color:#ccd5e2!important
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#8a96a8}
html[data-theme="light"] .settings-nav,
html[data-theme="light"] .dashboard-jump,
html[data-theme="light"] .account-dropdown>summary,
html[data-theme="light"] .account-dropdown-menu,
html[data-theme="light"] .nav-dropdown-menu{
  background:#fff!important;border-color:#dfe5ef!important;color:#1b2559!important
}
html[data-theme="light"] .account-menu-item{color:#1b2559!important}
html[data-theme="light"] .account-menu-item:hover,
html[data-theme="light"] .account-menu-item.theme-choice.is-active,
html[data-theme="light"] .nav-dropdown-menu a:hover{background:#f0f3f8!important}
html[data-theme="light"] .account-logout{color:#dc2626!important}
html[data-theme="light"] .table-wrap{background:#fff!important;border-color:#dfe5ef!important}
html[data-theme="light"] table{color:#263248}
html[data-theme="light"] th{background:#f3f6fa!important;color:#536079!important;border-color:#dfe5ef!important}
html[data-theme="light"] td{background:#fff!important;color:#263248!important;border-color:#e6ebf2!important}
html[data-theme="light"] tr:hover td{background:#f8faff!important}
html[data-theme="light"] .btn.secondary{background:#f5f7fb;color:#334155;border-color:#d8e0ea}
html[data-theme="light"] .dashboard-home-hero,
html[data-theme="light"] .owner-dashboard-hero{
  background:radial-gradient(circle at top right,rgba(88,101,242,.10),transparent 38%),linear-gradient(180deg,#fff,#fafbff)!important;
  border-color:#dfe5ef!important
}
html[data-theme="light"] .mini-label,
html[data-theme="light"] .dashboard-toolbar-hint,
html[data-theme="light"] p{color:#68758b}
html[data-theme="light"] footer{background:#fff;border-color:#dfe5ef;color:#68758b}
html[data-theme="light"] .cookie-notice{background:#fff;border-color:#dfe5ef;color:#1b2559}


/* === Legacy dark-rule compatibility for Light/System appearance === */
html[data-theme="light"] body{
  background:radial-gradient(circle at top,#ffffff 0,#f4f7fe 48%)!important;
}
html[data-theme="light"] header{
  background:rgba(255,255,255,.95)!important;
  border-bottom-color:#dfe5ef!important;
}
html[data-theme="light"] .brand,
html[data-theme="light"] .guild-card,
html[data-theme="light"] .form-grid input,
html[data-theme="light"] .form-grid select{
  color:#1b2559!important;
}
html[data-theme="light"] .guild-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .empty{
  background:linear-gradient(180deg,#fff,#f8faff)!important;
  border-color:#dfe5ef!important;
}
html[data-theme="light"] .guild-icon{background:#eef2f7!important;color:#1b2559!important}
html[data-theme="light"] .form-grid input,
html[data-theme="light"] .form-grid select,
html[data-theme="light"] textarea{
  background:#fff!important;
  border-color:#ccd5e2!important;
}
html[data-theme="light"] .checks label{
  background:#f7f9fc!important;
  border-color:#dfe5ef!important;
  color:#1b2559!important;
}
html[data-theme="light"] .dashboard-jump{
  background:rgba(255,255,255,.94)!important;
  border-color:#dfe5ef!important;
}
html[data-theme="light"] .dashboard-jump a{
  background:#f1f4f9!important;
  color:#43506a!important;
}
html[data-theme="light"] .dashboard-jump a:hover{
  background:#e7ebff!important;
  color:#3544c7!important;
}
html[data-theme="light"] .twitch-panel{
  background:linear-gradient(180deg,#faf7ff,#fff 32%)!important;
  border-color:#dccaf4!important;
}
html[data-theme="light"] .twitch-config-form{
  background:#fcfaff!important;
  border-color:#dccaf4!important;
}
html[data-theme="light"] .token-row span{
  background:#f2ebfb!important;
  color:#67439a!important;
  border-color:#dccaf4!important;
}
html[data-theme="light"] a:not(.btn){color:#4f5ed5}
html[data-theme="light"] .pill{
  background:#eef1ff!important;
  color:#4b58c8!important;
  border-color:#cfd5fb!important;
}
html[data-theme="light"] .policy pre{color:#1b2559!important}
html[data-theme="light"] .section-title h1,
html[data-theme="light"] .hero h1,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] strong{color:#1b2559}


/* === Account nested Appearance menu + User Settings === */
.account-submenu{width:100%}
.account-submenu>summary{list-style:none}
.account-submenu>summary::-webkit-details-marker{display:none}
.account-submenu>summary.account-menu-item{justify-content:space-between}
.account-submenu[open]>summary{background:var(--panel2)!important}
.account-submenu[open]>summary .nav-dropdown-chevron{transform:rotate(180deg)}
.account-submenu-menu{
  margin:3px 5px 6px;
  padding:5px;
  border-left:2px solid var(--line);
}
.account-submenu-menu .account-menu-item{padding-left:14px!important}
.account-submenu-menu .theme-choice.is-active{background:var(--panel2)!important}
.user-settings-page{max-width:980px;margin:0 auto}
.user-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.user-settings-card{margin:0!important}
.user-settings-card:first-child{grid-column:1/-1}
.user-settings-card h2{margin-top:0}
.user-profile-row{display:flex;align-items:center;gap:14px;margin:16px 0}
.user-profile-row>div{display:flex;flex-direction:column;gap:3px}
.user-profile-row span{color:var(--muted);font-size:12px}
.user-settings-avatar{width:58px;height:58px;border-radius:16px;object-fit:cover;border:1px solid var(--line)}
.user-settings-avatar.fallback{display:grid;place-items:center;background:var(--panel2);font-size:22px;font-weight:900}
.user-settings-theme-options{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.user-settings-theme-options .theme-choice.is-active{outline:2px solid #5865f2;outline-offset:2px}
html[data-theme="light"] .account-submenu-menu{border-color:#dfe5ef}
html[data-theme="light"] .account-submenu[open]>summary,
html[data-theme="light"] .account-submenu-menu .theme-choice.is-active{background:#f0f3f8!important}
@media(max-width:720px){
  .user-settings-grid{grid-template-columns:1fr}
  .user-settings-card:first-child{grid-column:auto}
}


/* === Bot Owner server directory === */
.owner-server-directory{overflow:hidden}
.owner-server-directory-heading{align-items:center}
.owner-server-toolbar{display:flex;align-items:flex-end;gap:10px;margin:16px 0}
.owner-server-search{flex:1;display:flex;flex-direction:column;gap:7px;font-weight:800}
.owner-server-search span{font-size:12px;color:var(--muted)}
.owner-server-search input{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#11151d;color:var(--text)}
.owner-server-table-wrap{border:1px solid var(--line);border-radius:12px}
.owner-server-table{min-width:720px}
.owner-server-table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.owner-server-name{display:flex;align-items:center;gap:11px;min-width:250px}
.owner-server-name img,.owner-server-icon-fallback{width:38px;height:38px;border-radius:10px;flex:0 0 auto}
.owner-server-icon-fallback{display:grid;place-items:center;background:var(--panel2);font-weight:900}
.owner-server-name>div{display:flex;flex-direction:column}
.owner-server-name small,.owner-server-owner-id{display:block;color:var(--muted);font-size:11px;font-weight:500}
.owner-server-empty{margin:12px;border:0}
html[data-theme="light"] .owner-server-search input{background:#fff!important;color:#1b2559!important;border-color:#ccd5e2!important}
html[data-theme="light"] .owner-server-table-wrap{background:#fff;border-color:#dfe5ef}
@media(max-width:720px){
  .owner-server-directory-heading,.owner-server-toolbar{align-items:stretch}
  .owner-server-toolbar{flex-direction:column}
  .owner-server-toolbar .btn{width:100%}
}


/* === Theme-aware search fields across the web panel === */
input[type="search"]{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-height:42px;
  padding:10px 13px;
  border:1px solid var(--line)!important;
  border-radius:10px;
  background:var(--panel2)!important;
  color:var(--text)!important;
  caret-color:var(--text);
  font:inherit;
  outline:none;
  box-shadow:none!important;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
input[type="search"]::placeholder{color:var(--muted)!important;opacity:1}
input[type="search"]:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))!important}
input[type="search"]:focus{
  border-color:var(--accent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)!important;
}
input[type="search"]::-webkit-search-cancel-button{cursor:pointer}
html[data-theme="light"] input[type="search"]{
  background:#fff!important;
  color:#1b2559!important;
  border-color:#ccd5e2!important;
  caret-color:#1b2559;
}
html[data-theme="light"] input[type="search"]::placeholder{color:#7b879b!important}
html[data-theme="dark"] input[type="search"]{
  background:#11151d!important;
  color:#f5f7fb!important;
  border-color:#343b49!important;
  caret-color:#f5f7fb;
}
html[data-theme="dark"] input[type="search"]::placeholder{color:#9aa3b2!important}
.server-search,
.owner-server-search{background:transparent!important}


/* === Dashboard usability sizing pass === */
:root{--dashboard-content-max:1440px}
.dashboard-control-shell,.owner-dashboard,.features-page,.user-settings-page{width:min(100%,var(--dashboard-content-max));margin-inline:auto}
.section-title{margin-bottom:16px}
.section-title h1{margin-bottom:6px}
.dashboard-jump{
  display:flex;flex-wrap:wrap;gap:8px;
  position:sticky;top:68px;z-index:20;
  padding:10px!important;margin-bottom:18px!important;
  border:1px solid var(--line);border-radius:14px;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
}
.dashboard-jump a{min-height:38px;display:inline-flex;align-items:center;padding:8px 12px!important;border-radius:9px!important}
.panel{padding:20px!important;margin-bottom:18px}
.panel-heading-row,.owner-section-heading,.category-heading{gap:16px;align-items:flex-start}
.panel-heading-row>div:first-child,.owner-section-heading>div:first-child{min-width:0;flex:1}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px!important}
.form-grid label,.embed-editor-controls>label{min-width:0;display:flex;flex-direction:column;gap:7px}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{
  width:100%;min-width:0;min-height:44px;padding:10px 12px;border-radius:10px
}
textarea{min-height:104px;resize:vertical}
.btn{min-height:40px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.checks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}
.checks label{min-height:44px;display:flex;align-items:center;gap:9px;padding:10px 12px!important;border-radius:10px}
.feature-grid,.command-grid,.public-feature-grid,.paid-access-list{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;align-items:start
}
.feature-card,.command-card,.public-feature-card,.automation-rule-card,.ticket-module-card,.stream-alert-card{
  min-width:0;height:auto!important;padding:17px!important;border-radius:14px!important
}
.feature-card-head{display:flex;align-items:flex-start;gap:12px}
.feature-title-wrap{min-width:0;flex:1}
.feature-description{line-height:1.55;margin:10px 0}
.feature-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
.feature-card-footer,.feature-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}
.ticket-config-grid,.embed-editor-layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)!important;gap:18px!important}
.embed-preview-card{position:sticky;top:136px;align-self:start;max-width:100%}
.stream-alert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.table-wrap,.owner-server-table-wrap{overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch}
table{width:100%}
.dashboard-toolbar,.owner-server-toolbar{gap:10px;flex-wrap:wrap}
.dashboard-toolbar>*{min-width:0}
.guild-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.guild-card{min-width:0;padding:18px!important}
.guild-card-actions{display:flex;flex-wrap:wrap;gap:9px}
.dashboard-home-stats,.server-stats-summary{gap:12px!important}
.dashboard-home-stats>div,.server-stats-summary>div{min-width:0}

/* Keep light mode consistently light, including legacy components with hard-coded dark backgrounds. */
html[data-theme="light"] .feature-card,
html[data-theme="light"] .command-card,
html[data-theme="light"] .ticket-config-panel,
html[data-theme="light"] .ticket-module-card,
html[data-theme="light"] .automation-builder,
html[data-theme="light"] .automation-form,
html[data-theme="light"] .automation-rule-card,
html[data-theme="light"] .stream-alert-card,
html[data-theme="light"] .embed-editor,
html[data-theme="light"] .embed-preview-card,
html[data-theme="light"] .suggestions-panel,
html[data-theme="light"] .paid-access-card,
html[data-theme="light"] .owner-section,
html[data-theme="light"] .dashboard-toolbar,
html[data-theme="light"] .feature-fields,
html[data-theme="light"] .feature-requirement{
  background:#fff!important;background-image:none!important;color:#1b2559!important;border-color:#dfe5ef!important
}
html[data-theme="light"] .feature-fields,
html[data-theme="light"] .feature-requirement,
html[data-theme="light"] .checks label,
html[data-theme="light"] .dashboard-home-stats>div,
html[data-theme="light"] .server-stats-summary>div{
  background:#f7f9fc!important;background-image:none!important;color:#1b2559!important;border-color:#dfe5ef!important
}
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea{
  background:#fff!important;background-image:none!important;color:#1b2559!important;border-color:#ccd5e2!important
}
html[data-theme="light"] option{background:#fff!important;color:#1b2559!important}
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .command-card p,
html[data-theme="light"] .ticket-module-card p,
html[data-theme="light"] .automation-rule-card span,
html[data-theme="light"] .feature-requirement{color:#68758b!important}

@media(max-width:1050px){
  .feature-grid,.command-grid,.public-feature-grid,.paid-access-list,.guild-grid,.stream-alert-grid{grid-template-columns:1fr!important}
  .ticket-config-grid,.embed-editor-layout{grid-template-columns:1fr!important}
  .embed-preview-card{position:static}
}
@media(max-width:720px){
  .panel{padding:15px!important}
  .form-grid,.checks,.feature-fields{grid-template-columns:1fr!important}
  .dashboard-jump{position:static;overflow-x:auto;flex-wrap:nowrap}
  .dashboard-jump a{white-space:nowrap}
  .panel-heading-row,.category-heading{flex-direction:column}
  .feature-card-head{flex-wrap:wrap}
  .feature-card-footer,.feature-actions,.guild-card-actions{justify-content:stretch}
  .feature-card-footer .btn,.feature-actions .btn,.guild-card-actions .btn{width:100%}
}


/* === Light-mode Advanced Server Feature modules === */
html[data-theme="light"] #features .feature-card,
html[data-theme="light"] #features form.feature-card{
  background:#ffffff!important;
  background-image:none!important;
  color:#1b2559!important;
  border-color:#dfe5ef!important;
  box-shadow:0 8px 22px rgba(31,51,89,.07)!important;
}
html[data-theme="light"] #features .feature-card:hover{
  background:#fbfcff!important;
  border-color:#cfd6f6!important;
}
html[data-theme="light"] #features .feature-card h3,
html[data-theme="light"] #features .feature-card label,
html[data-theme="light"] #features .feature-card strong,
html[data-theme="light"] #features .feature-title-wrap{
  color:#1b2559!important;
}
html[data-theme="light"] #features .feature-description,
html[data-theme="light"] #features .feature-priority,
html[data-theme="light"] #features .feature-card small{
  color:#68758b!important;
}
html[data-theme="light"] #features .feature-fields,
html[data-theme="light"] #features .feature-requirement,
html[data-theme="light"] #features .feature-toggle{
  background:#f7f9fc!important;
  background-image:none!important;
  color:#1b2559!important;
  border-color:#dfe5ef!important;
}
html[data-theme="light"] #features .feature-fields input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] #features .feature-fields select,
html[data-theme="light"] #features .feature-fields textarea{
  background:#ffffff!important;
  color:#1b2559!important;
  border-color:#ccd5e2!important;
}
html[data-theme="light"] #features .feature-icon{
  background:#eef2ff!important;
  color:#4353cf!important;
  border-color:#d9def8!important;
}
html[data-theme="light"] #features .feature-card .btn.secondary{
  background:#f4f6fa!important;
  color:#1b2559!important;
  border-color:#d7deea!important;
}
html[data-theme="light"] #features .feature-card .btn.secondary:hover{
  background:#e9edf5!important;
}


/* === Feature Center usability redesign === */
.feature-grid{grid-template-columns:1fr!important;gap:12px!important}
.feature-card{width:100%;padding:16px 18px!important}
.feature-card-head{align-items:center}
.feature-description{margin:9px 0 12px!important;max-width:920px}
.feature-card-footer{margin-top:12px!important}
.feature-config-details{margin-top:12px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.feature-config-details>summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:46px;padding:10px 13px;cursor:pointer;color:var(--text);font-weight:800;
  background:var(--panel2);user-select:none
}
.feature-config-details>summary::-webkit-details-marker{display:none}
.feature-config-details>summary:after{content:"＋";font-size:18px;line-height:1;color:var(--muted)}
.feature-config-details[open]>summary:after{content:"−"}
.feature-config-details>summary small{margin-left:auto;color:var(--muted);font-size:11px;font-weight:650}
.feature-config-body{padding:14px}
.feature-config-body .feature-fields{margin:0}
.feature-config-body .feature-requirement{margin:0 0 12px}
.feature-config-body .feature-requirement:last-child{margin-bottom:0}
.feature-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.feature-actions{width:auto!important}
.feature-card-footer>.btn,.feature-actions .btn{min-width:132px}
@media(max-width:1000px){.feature-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){
  .feature-card{padding:14px!important}
  .feature-card-head{align-items:flex-start}
  .feature-fields{grid-template-columns:1fr!important}
  .feature-config-details>summary small{display:none}
  .feature-card-footer,.feature-actions{width:100%!important}
  .feature-card-footer>.btn,.feature-actions .btn{width:100%;min-width:0}
}


/* === Bot & Panel Status === */
.status-page{width:min(1120px,calc(100% - 32px));margin:34px auto 60px}
.status-hero{padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 12px 34px #0002}
.status-hero-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
.status-hero h1{margin:6px 0 7px;font-size:32px;color:var(--text)}
.status-hero p{margin:0;color:var(--muted)}
.status-overall{display:inline-flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid var(--line);border-radius:999px;background:var(--panel2);color:var(--text);font-size:12px;font-weight:850;white-space:nowrap}
.status-overall i,.status-dot{width:10px;height:10px;border-radius:50%;background:#57f287;box-shadow:0 0 0 4px rgba(87,242,135,.12)}
.is-degraded .status-overall i,.status-service-card.is-degraded .status-dot{background:#f0b232;box-shadow:0 0 0 4px rgba(240,178,50,.12)}
.status-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.status-summary-grid>div{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.status-summary-grid span{display:block;margin-bottom:6px;color:var(--muted);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}
.status-summary-grid strong{color:var(--text);font-size:21px}
.status-services{display:grid;gap:12px}
.status-service-card{padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--panel)}
.status-service-head{display:flex;align-items:center;gap:13px}
.status-service-head>div{min-width:0;flex:1}
.status-service-head h2{margin:2px 0 0;color:var(--text);font-size:17px}
.status-service-head strong{padding:6px 9px;border-radius:999px;background:rgba(87,242,135,.11);color:#57c978;font-size:10px;text-transform:uppercase}
.status-service-card.is-degraded .status-service-head strong{background:rgba(240,178,50,.12);color:#d59a22}
.status-service-card p{margin:11px 0 0 23px;color:var(--muted)}
.status-refresh-note{text-align:center;color:var(--muted);font-size:11px;margin:16px 0}
@media(max-width:800px){.status-summary-grid{grid-template-columns:repeat(2,1fr)}.status-hero-row{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.status-page{width:min(100% - 20px,1120px);margin-top:18px}.status-summary-grid{grid-template-columns:1fr}.status-overall{white-space:normal}.status-service-head{flex-wrap:wrap}.status-service-head strong{margin-left:23px}}


/* === Advanced Status Page v2 === */
.status-page-v2{max-width:1180px}
.status-page-v2 .status-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px}
.status-hero-main{max-width:690px}
.status-hero-main h1{font-size:36px;letter-spacing:-.035em;margin:7px 0 8px}
.status-overall-card{min-width:310px;display:flex;align-items:center;gap:15px;padding:17px 19px;border:1px solid var(--line);border-radius:15px;background:var(--panel2)}
.status-overall-card>div{display:flex;flex-direction:column;gap:2px}
.status-overall-card small{font-size:9px;font-weight:900;letter-spacing:.09em;color:var(--muted)}
.status-overall-card strong{font-size:14px;color:var(--text)}
.status-overall-card span:last-child{font-size:10px;color:var(--muted)}
.status-pulse{width:13px;height:13px;flex:0 0 auto;border-radius:50%;background:#57f287;box-shadow:0 0 0 6px rgba(87,242,135,.1),0 0 20px rgba(87,242,135,.28)}
.is-degraded .status-pulse{background:#ed4245;box-shadow:0 0 0 6px rgba(237,66,69,.1),0 0 20px rgba(237,66,69,.25)}
.status-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 22px}
.status-metric-grid article{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.status-metric-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 auto;border:1px solid var(--line);border-radius:11px;background:var(--panel2);color:var(--text);font-size:17px}
.status-metric-grid article>div{min-width:0;display:flex;flex-direction:column}
.status-metric-grid small{font-size:9px;font-weight:900;letter-spacing:.07em;color:var(--muted)}
.status-metric-grid strong{margin:2px 0;color:var(--text);font-size:20px}
.status-metric-grid article>div>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.status-section{padding:21px;border:1px solid var(--line);border-radius:17px;background:var(--panel)}
.status-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.status-section-heading h2{margin:3px 0 0;color:var(--text);font-size:21px}
.status-live-label{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}
.status-live-label i{width:7px;height:7px;border-radius:50%;background:#57f287;box-shadow:0 0 8px #57f287}
.status-page-v2 .status-services{gap:9px}
.status-page-v2 .status-service-card{display:flex;align-items:center;gap:15px;padding:15px 16px;box-shadow:none}
.status-service-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border:1px solid var(--line);border-radius:12px;background:var(--panel2);font-size:19px}
.status-service-content{min-width:0;flex:1}
.status-service-title{display:flex;align-items:center;justify-content:space-between;gap:15px}
.status-service-title h2{margin:0 0 3px;font-size:15px;color:var(--text)}
.status-service-title p{margin:0!important;color:var(--muted);font-size:11px}
.status-badge{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:6px 9px;border-radius:999px;background:rgba(87,242,135,.1);color:#57c978;font-size:9px;font-weight:900;text-transform:uppercase}
.status-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}
.is-warning .status-badge{background:rgba(240,178,50,.11);color:#d9a12c}
.is-degraded .status-badge{background:rgba(237,66,69,.1);color:#ed6265}
.status-service-metric{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px;color:var(--muted);font-size:9px}
.status-service-metric strong{color:var(--text);font-size:10px}
.status-runtime-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.status-runtime-panel>div{padding:13px 15px;border-right:1px solid var(--line)}
.status-runtime-panel>div:last-child{border-right:0}
.status-runtime-panel span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:850}
.status-runtime-panel strong{display:block;margin-top:3px;color:var(--text);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status-footer-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 2px 0;color:var(--muted);font-size:10px}
.status-footer-row>span{display:flex;align-items:center;gap:7px}
.status-footer-row i{width:6px;height:6px;border-radius:50%;background:#57f287}
@media(max-width:900px){.status-page-v2 .status-hero{align-items:flex-start;flex-direction:column}.status-overall-card{width:100%;min-width:0}.status-metric-grid{grid-template-columns:repeat(2,1fr)}.status-runtime-panel{grid-template-columns:repeat(2,1fr)}.status-runtime-panel>div:nth-child(2){border-right:0}.status-runtime-panel>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:600px){.status-page-v2 .status-hero{padding:20px}.status-hero-main h1{font-size:28px}.status-metric-grid{grid-template-columns:1fr}.status-section{padding:14px}.status-service-title{align-items:flex-start;flex-direction:column}.status-badge{align-self:flex-start}.status-service-metric{justify-content:flex-start}.status-runtime-panel{grid-template-columns:1fr}.status-runtime-panel>div{border-right:0!important;border-bottom:1px solid var(--line)}.status-runtime-panel>div:last-child{border-bottom:0}.status-footer-row{align-items:stretch;flex-direction:column}.status-footer-row .btn{width:100%}}


/* === Status page v3: website-matched column dashboard === */
.status-page.status-page-v2{width:min(1240px,calc(100% - 36px));max-width:1240px;margin:32px auto 56px;display:block}
.status-page-v2 .status-hero{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr)!important;align-items:center!important;gap:24px!important;padding:28px!important;border:1px solid var(--line)!important;border-radius:18px!important;background:var(--panel)!important}
.status-page-v2 .status-overall-card{width:100%!important;min-width:0!important}
.status-page-v2 .status-metric-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:14px 0!important}
.status-page-v2 .status-metric-grid article{min-height:104px!important;padding:16px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--panel)!important}
.status-page-v2 .status-section{display:block!important;margin-top:14px!important;padding:20px!important;border:1px solid var(--line)!important;border-radius:17px!important;background:var(--panel)!important}
.status-page-v2 .status-services{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.status-page-v2 .status-service-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;min-height:190px!important;padding:18px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--panel2)!important}
.status-page-v2 .status-service-icon{width:44px!important;height:44px!important}
.status-page-v2 .status-service-content{display:flex!important;flex:1!important;flex-direction:column!important}
.status-page-v2 .status-service-title{display:flex!important;flex:1!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:9px!important}
.status-page-v2 .status-service-title>div{width:100%!important}
.status-page-v2 .status-service-title h2{font-size:17px!important;margin:0 0 5px!important}
.status-page-v2 .status-service-title p{font-size:11px!important;line-height:1.55!important;margin:0!important}
.status-page-v2 .status-badge{order:-1!important;align-self:flex-start!important}
.status-page-v2 .status-service-metric{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:14px!important;padding-top:12px!important;border-top:1px solid var(--line)!important}
.status-page-v2 .status-service-metric span{font-size:10px!important}
.status-page-v2 .status-service-metric strong{font-size:12px!important}
.status-page-v2 .status-runtime-panel{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-top:14px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--panel)!important;overflow:hidden!important}
.status-page-v2 .status-runtime-panel>div{min-width:0!important;padding:15px 17px!important;border-right:1px solid var(--line)!important;border-bottom:0!important}
.status-page-v2 .status-runtime-panel>div:last-child{border-right:0!important}
.status-page-v2 .status-runtime-panel span{font-size:9px!important;letter-spacing:.07em!important}
.status-page-v2 .status-runtime-panel strong{font-size:12px!important;margin-top:5px!important}
.status-page-v2 .status-footer-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-top:12px!important;padding:12px 14px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--panel)!important}
.status-page-v2 .status-footer-row .btn{width:auto!important;min-width:112px!important}
@media(max-width:980px){
  .status-page-v2 .status-hero{grid-template-columns:1fr!important}
  .status-page-v2 .status-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .status-page-v2 .status-services{grid-template-columns:1fr!important}
  .status-page-v2 .status-service-card{min-height:0!important}
  .status-page-v2 .status-runtime-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .status-page-v2 .status-runtime-panel>div:nth-child(2){border-right:0!important}
  .status-page-v2 .status-runtime-panel>div:nth-child(-n+2){border-bottom:1px solid var(--line)!important}
}
@media(max-width:580px){
  .status-page.status-page-v2{width:calc(100% - 20px)!important;margin-top:18px!important}
  .status-page-v2 .status-hero{padding:19px!important}
  .status-page-v2 .status-metric-grid{grid-template-columns:1fr!important}
  .status-page-v2 .status-runtime-panel{grid-template-columns:1fr!important}
  .status-page-v2 .status-runtime-panel>div{border-right:0!important;border-bottom:1px solid var(--line)!important}
  .status-page-v2 .status-runtime-panel>div:last-child{border-bottom:0!important}
  .status-page-v2 .status-footer-row{align-items:stretch!important;flex-direction:column!important}
  .status-page-v2 .status-footer-row .btn{width:100%!important}
}


/* === Advanced Feature Center proportional card grid === */
#features .feature-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
#features .feature-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:210px!important;
  padding:16px!important;
}
#features .feature-card-head{min-height:50px!important;align-items:flex-start!important}
#features .feature-title-wrap{display:flex;min-width:0;flex:1;flex-direction:column;justify-content:center}
#features .feature-description{
  min-height:42px!important;
  margin:10px 0!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
#features .feature-requirement{
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  margin:0 0 10px!important;
}
#features .feature-config-details{
  margin:0 0 10px!important;
  flex:0 0 auto!important;
}
#features .feature-config-details>summary{min-height:38px!important;padding:8px 11px!important}
#features .feature-card-footer{
  width:100%!important;
  min-height:40px!important;
  margin-top:auto!important;
  padding-top:4px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-end!important;
}
#features .feature-actions{
  width:100%!important;
  min-height:40px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
#features .feature-card-footer .btn,
#features .feature-actions .btn{
  min-width:118px!important;
  min-height:38px!important;
  padding:8px 12px!important;
}
#features .feature-actions .btn{flex:0 1 auto!important}
#features .feature-card:has(.feature-config-details[open]){
  height:auto!important;
  min-height:210px!important;
}
#features .feature-card:has(.feature-config-details[open]) .feature-description{
  min-height:0!important;
  -webkit-line-clamp:unset;
}
@media(max-width:1000px){
  #features .feature-grid{grid-template-columns:1fr!important}
  #features .feature-card{min-height:0!important}
  #features .feature-description{min-height:0!important;-webkit-line-clamp:unset}
}
@media(max-width:680px){
  #features .feature-card-footer,#features .feature-actions{min-height:0!important}
  #features .feature-card-footer .btn,#features .feature-actions .btn{width:100%!important}
}


/* === Seven-day uptime history === */
.status-uptime-panel{margin-top:14px;padding:20px;border:1px solid var(--line);border-radius:17px;background:var(--panel)}
.status-uptime-panel .status-section-heading{margin-bottom:16px}
.status-uptime-panel .status-section-heading p{margin:4px 0 0;color:var(--muted);font-size:11px}
.status-history-window{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel2);color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;white-space:nowrap}
.uptime-history{display:grid;gap:12px}
.uptime-history-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--panel2)}
.uptime-history-label{display:flex;flex-direction:column;gap:3px}
.uptime-history-label strong{color:var(--text);font-size:13px}
.uptime-history-label span{color:var(--muted);font-size:9px}
.uptime-day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.uptime-day{display:flex;min-width:0;flex-direction:column;align-items:center;gap:4px;padding:9px 5px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.uptime-day i{width:100%;height:5px;border-radius:999px;background:#7d8799}
.uptime-day.good i{background:#57f287}.uptime-day.warning i{background:#f0b232}.uptime-day.bad i{background:#ed4245}
.uptime-day strong{color:var(--text);font-size:9px;text-transform:uppercase}
.uptime-day span{color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}
@media(max-width:850px){.uptime-history-row{grid-template-columns:1fr}.uptime-day-grid{overflow-x:auto;grid-template-columns:repeat(7,minmax(72px,1fr));padding-bottom:3px}}
@media(max-width:580px){.status-uptime-panel{padding:14px}.status-uptime-panel .status-section-heading{align-items:flex-start;flex-direction:column}.uptime-history-row{padding:10px}}


/* === Status page v4: clean, user-friendly columns === */
.status-page-v2{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px!important}
.status-page-v2>.status-hero{grid-column:1/-1!important;margin:0!important}
.status-page-v2>.status-metric-grid{grid-column:1/-1!important;margin:0!important}
.status-page-v2>.status-section{grid-column:1/-1!important;margin:0!important}
.status-page-v2>.status-uptime-panel{grid-column:1/-1!important;margin:0!important}
.status-page-v2>.status-runtime-panel{grid-column:1/-1!important;margin:0!important}
.status-page-v2>.status-footer-row{grid-column:1/-1!important;margin:0!important}
.status-page-v2 .status-hero{grid-template-columns:minmax(0,1fr) minmax(280px,360px)!important;padding:24px!important}
.status-page-v2 .status-hero-main h1{font-size:32px!important}
.status-page-v2 .status-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.status-page-v2 .status-metric-grid article{min-height:96px!important}
.status-page-v2 .status-section,.status-page-v2 .status-uptime-panel{padding:18px!important}
.status-page-v2 .status-section-heading{margin-bottom:12px!important}
.status-page-v2 .status-section-heading h2{font-size:18px!important}
.status-page-v2 .status-services{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.status-page-v2 .status-service-card{
  display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-rows:auto 1fr!important;column-gap:12px!important;row-gap:8px!important;
  min-height:168px!important;padding:15px!important
}
.status-page-v2 .status-service-icon{grid-column:1;grid-row:1!important}
.status-page-v2 .status-service-content{grid-column:2;grid-row:1/3!important}
.status-page-v2 .status-service-title{height:100%!important}
.status-page-v2 .status-service-title>div{flex:1!important}
.status-page-v2 .status-service-title p{max-width:34ch!important}
.status-page-v2 .status-service-metric{margin-top:auto!important;padding-top:10px!important}
.status-page-v2 .status-badge{font-size:8px!important}
.status-page-v2 .status-uptime-panel .status-section-heading{display:flex!important}
.status-page-v2 .uptime-history{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.status-page-v2 .uptime-history-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:13px!important}
.status-page-v2 .uptime-history-label{flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
.status-page-v2 .uptime-day-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;width:100%!important;gap:5px!important}
.status-page-v2 .uptime-day{padding:8px 3px!important}
.status-page-v2 .status-runtime-panel{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.status-page-v2 .status-footer-row{padding:10px 13px!important}
@media(max-width:980px){
  .status-page-v2 .status-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .status-page-v2 .status-services{grid-template-columns:1fr!important}
  .status-page-v2 .status-service-card{min-height:130px!important}
  .status-page-v2 .uptime-history{grid-template-columns:1fr!important}
}
@media(max-width:680px){
  .status-page-v2{gap:10px!important}
  .status-page-v2 .status-hero{grid-template-columns:1fr!important;padding:18px!important}
  .status-page-v2 .status-metric-grid{grid-template-columns:1fr 1fr!important}
  .status-page-v2 .status-metric-grid article{min-height:86px!important;padding:13px!important}
  .status-page-v2 .status-service-card{grid-template-columns:38px minmax(0,1fr)!important;padding:13px!important}
  .status-page-v2 .status-service-icon{width:38px!important;height:38px!important}
  .status-page-v2 .uptime-day-grid{overflow-x:auto!important;grid-template-columns:repeat(7,minmax(62px,1fr))!important}
  .status-page-v2 .status-runtime-panel{grid-template-columns:1fr 1fr!important}
}
@media(max-width:430px){
  .status-page-v2 .status-metric-grid{grid-template-columns:1fr!important}
  .status-page-v2 .status-runtime-panel{grid-template-columns:1fr!important}
}


/* === Sleek website navigation v2 === */
.site-header{
  position:sticky!important;top:0!important;z-index:1000!important;
  min-height:68px!important;
  background:color-mix(in srgb,var(--panel) 92%,transparent)!important;
  border-bottom:1px solid var(--line)!important;
  backdrop-filter:blur(18px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(140%)!important;
  box-shadow:0 6px 24px rgba(0,0,0,.08)!important
}
.site-header .nav-wrap{
  width:min(1460px,calc(100% - 32px))!important;
  min-height:68px!important;margin:0 auto!important;
  display:flex!important;align-items:center!important;gap:18px!important
}
.site-header .brand{
  display:inline-flex!important;align-items:center!important;gap:10px!important;
  flex:0 0 auto!important;text-decoration:none!important
}
.site-header .brand img{width:38px!important;height:38px!important;border-radius:50%!important}
.site-header .brand span,.site-header .brand strong{font-size:20px!important;letter-spacing:-.025em!important}
.site-header nav{
  display:flex!important;align-items:center!important;gap:4px!important;
  min-width:0!important;flex:1!important
}
.site-header nav>a,.site-header .nav-dropdown>button,.site-header .nav-dropdown>a{
  min-height:38px!important;padding:8px 11px!important;
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  border:1px solid transparent!important;border-radius:9px!important;
  background:transparent!important;color:var(--muted)!important;
  font-size:12px!important;font-weight:750!important;text-decoration:none!important;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease!important
}
.site-header nav>a:hover,.site-header .nav-dropdown>button:hover,.site-header .nav-dropdown>a:hover{
  background:var(--panel2)!important;color:var(--text)!important;border-color:var(--line)!important
}
.site-header nav>a.active,.site-header nav>a[aria-current="page"]{
  background:var(--panel2)!important;color:var(--accent)!important;border-color:var(--line)!important
}
.site-header .nav-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:9px!important;flex:0 0 auto!important
}
.site-header .nav-actions .btn{min-height:38px!important;padding:8px 13px!important;border-radius:9px!important;font-size:11px!important}
.site-header .account-menu>button,.site-header .account-button{
  min-height:40px!important;max-width:190px!important;padding:7px 11px!important;
  border-radius:10px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
}
.site-header .nav-dropdown-menu,.site-header .account-dropdown-menu{
  top:calc(100% + 9px)!important;min-width:210px!important;padding:7px!important;
  border:1px solid var(--line)!important;border-radius:12px!important;
  background:var(--panel)!important;box-shadow:0 18px 48px rgba(0,0,0,.2)!important
}
.site-header .nav-dropdown-menu a,.site-header .account-dropdown-menu a,
.site-header .account-dropdown-menu button{
  min-height:38px!important;padding:9px 10px!important;border-radius:8px!important;
  display:flex!important;align-items:center!important;gap:9px!important;
  color:var(--text)!important;font-size:11px!important;text-decoration:none!important
}
.site-header .nav-dropdown-menu a:hover,.site-header .account-dropdown-menu a:hover,
.site-header .account-dropdown-menu button:hover{background:var(--panel2)!important}
.site-header .account-dropdown-menu hr{margin:6px 4px!important;border:0!important;border-top:1px solid var(--line)!important}
.site-header .nav-dropdown-menu small,.site-header .account-dropdown-menu small{
  display:block!important;padding:7px 9px 4px!important;color:var(--muted)!important;
  font-size:8px!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important
}
@media(max-width:900px){
  .site-header .nav-wrap{width:min(100% - 20px,1460px)!important;gap:10px!important}
  .site-header .brand span,.site-header .brand strong{font-size:17px!important}
  .site-header nav{overflow-x:auto!important;scrollbar-width:none!important}
  .site-header nav::-webkit-scrollbar{display:none!important}
  .site-header nav>a,.site-header .nav-dropdown{flex:0 0 auto!important}
  .site-header .nav-actions .add-bot-btn{display:none!important}
}
@media(max-width:680px){
  .site-header{min-height:60px!important}
  .site-header .nav-wrap{min-height:60px!important}
  .site-header .brand img{width:34px!important;height:34px!important}
  .site-header .brand span,.site-header .brand strong{display:none!important}
  .site-header nav{gap:2px!important}
  .site-header nav>a,.site-header .nav-dropdown>button,.site-header .nav-dropdown>a{
    min-height:36px!important;padding:7px 9px!important;font-size:11px!important
  }
  .site-header .account-menu>button,.site-header .account-button{max-width:145px!important;min-height:36px!important}
}


/* === Public theme switch + desktop hover dropdowns === */
.public-header-actions{display:flex;align-items:center;gap:9px}
.public-theme-switch{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
.public-theme-switch button{
  min-height:32px;padding:6px 9px;border:0;border-radius:7px;background:transparent;color:var(--muted);
  font:inherit;font-size:10px;font-weight:800;cursor:pointer;transition:.15s ease
}
.public-theme-switch button:hover{background:var(--panel);color:var(--text)}
.public-theme-switch button.is-active{background:var(--panel);color:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.1)}
@media(hover:hover) and (pointer:fine){
  .nav-dropdown{position:relative}
  .nav-dropdown:hover>.nav-dropdown-menu,
  .nav-dropdown:focus-within>.nav-dropdown-menu,
  .account-dropdown:hover>.account-dropdown-menu,
  .account-dropdown:focus-within>.account-dropdown-menu{
    display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important
  }
  .nav-dropdown>.nav-dropdown-menu,.account-dropdown>.account-dropdown-menu{
    display:block;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-5px);
    transition:opacity .14s ease,transform .14s ease,visibility .14s ease
  }
  .account-submenu:hover>.account-submenu-menu,.account-submenu:focus-within>.account-submenu-menu{display:block!important}
}
@media(max-width:760px){
  .public-theme-switch button span{display:none}
  .public-theme-switch button{width:32px;padding:6px}
}


/* === Unified header actions, Appearance dropdown, and global hover menus === */
.site-header .header-inner{display:flex!important;align-items:center!important;gap:18px!important}
.site-header .header-actions{margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;flex-wrap:nowrap!important}
.site-header .header-auth,.public-header-actions{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:nowrap!important}
.site-header .header-actions .btn,.site-header .header-auth .btn,.public-header-actions .btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:40px!important;height:40px!important;margin:0!important;padding:8px 14px!important;
  border-radius:10px!important;white-space:nowrap!important;line-height:1!important
}
.public-theme-dropdown{position:relative!important;flex:0 0 auto!important}
.public-theme-dropdown>summary{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  min-height:40px!important;height:40px!important;padding:8px 12px!important;
  border:1px solid var(--line)!important;border-radius:10px!important;background:var(--panel2)!important;
  color:var(--text)!important;font-size:11px!important;font-weight:800!important;cursor:pointer!important;list-style:none!important
}
.public-theme-dropdown>summary::-webkit-details-marker{display:none!important}
.public-theme-dropdown .theme-dropdown-menu{right:0!important;left:auto!important;min-width:180px!important}
.theme-dropdown-menu button{
  width:100%!important;min-height:38px!important;padding:8px 10px!important;border:0!important;border-radius:8px!important;
  display:grid!important;grid-template-columns:22px 1fr 18px!important;align-items:center!important;gap:7px!important;
  background:transparent!important;color:var(--text)!important;text-align:left!important;font:inherit!important;font-size:11px!important;cursor:pointer!important
}
.theme-dropdown-menu button:hover{background:var(--panel2)!important}
.theme-dropdown-menu button b{visibility:hidden!important;color:var(--accent)!important;text-align:right!important}
.theme-dropdown-menu button.is-active b{visibility:visible!important}

/* Every details-based navigation menu opens on desktop hover/focus on every page. */
@media(hover:hover) and (pointer:fine){
  details.nav-dropdown,details.account-dropdown,.account-submenu{position:relative!important}
  details.nav-dropdown>.nav-dropdown-menu,
  details.account-dropdown>.account-dropdown-menu,
  .account-submenu>.account-submenu-menu{
    display:block!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    transform:translateY(-6px)!important;transition:opacity .14s ease,transform .14s ease,visibility .14s ease!important
  }
  details.nav-dropdown:hover>.nav-dropdown-menu,
  details.nav-dropdown:focus-within>.nav-dropdown-menu,
  details.nav-dropdown[open]>.nav-dropdown-menu,
  details.account-dropdown:hover>.account-dropdown-menu,
  details.account-dropdown:focus-within>.account-dropdown-menu,
  details.account-dropdown[open]>.account-dropdown-menu,
  .account-submenu:hover>.account-submenu-menu,
  .account-submenu:focus-within>.account-submenu-menu{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important
  }
}
@media(max-width:900px){
  .site-header .header-inner{gap:10px!important}
  .site-header .header-actions{gap:6px!important}
  .site-header .header-actions .btn,.site-header .header-auth .btn,.public-header-actions .btn{padding:8px 10px!important}
  .public-theme-dropdown>summary{padding:8px 10px!important}
}
@media(max-width:680px){
  .site-header .header-actions{flex-wrap:nowrap!important}
  .public-theme-dropdown>summary{font-size:0!important;width:40px!important;padding:8px!important}
  .public-theme-dropdown>summary:before{content:"◐";font-size:15px!important}
  .public-theme-dropdown .nav-dropdown-chevron{display:none!important}
  .public-header-actions .btn{font-size:10px!important;padding:8px 9px!important}
}


/* === Public light/dark toggle + equal Discord action buttons === */
.public-theme-toggle{height:40px;display:flex;align-items:center;gap:6px;padding:0 9px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);flex:0 0 auto}
.theme-toggle-icon{color:var(--muted);font-size:13px;line-height:1}
.theme-toggle-track{position:relative;width:42px;height:22px;padding:0!important;border:1px solid var(--line)!important;border-radius:999px!important;background:var(--panel)!important;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.theme-toggle-thumb{position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:var(--accent);box-shadow:0 2px 6px rgba(0,0,0,.2);transition:transform .18s ease}
.theme-toggle-track.is-dark .theme-toggle-thumb{transform:translateX(19px)}
.site-header .header-actions>.btn,
.site-header .header-actions .header-auth>.btn,
.site-header .header-actions .public-header-actions>.btn,
.site-header .header-actions .add-bot-btn{
  width:190px!important;min-width:190px!important;max-width:190px!important;
  height:40px!important;min-height:40px!important;
  padding:8px 12px!important;justify-content:center!important
}
@media(max-width:900px){
  .site-header .header-actions>.btn,
  .site-header .header-actions .header-auth>.btn,
  .site-header .header-actions .public-header-actions>.btn,
  .site-header .header-actions .add-bot-btn{width:160px!important;min-width:160px!important;max-width:160px!important}
}
@media(max-width:680px){
  .public-theme-toggle{padding:0 6px!important;gap:4px!important}
  .site-header .header-actions>.btn,
  .site-header .header-actions .header-auth>.btn,
  .site-header .header-actions .public-header-actions>.btn,
  .site-header .header-actions .add-bot-btn{width:auto!important;min-width:0!important;max-width:none!important}
}


/* === Navigation alignment + friendly status history v5 === */
.site-header .header-actions{
  display:grid!important;grid-template-columns:190px auto 190px!important;
  align-items:center!important;gap:9px!important;flex:0 0 auto!important
}
.site-header .header-actions>.add-bot-btn{grid-column:1!important}
.site-header .header-auth{grid-column:2/4!important;display:grid!important;grid-template-columns:auto 190px!important;align-items:center!important;gap:9px!important}
.site-header .public-header-actions{display:contents!important}
.site-header .public-theme-toggle{grid-column:1!important;height:40px!important;margin:0!important}
.site-header .header-auth .btn{grid-column:2!important;width:190px!important;min-width:190px!important;max-width:190px!important}
.site-header .header-actions>.add-bot-btn{width:190px!important;min-width:190px!important;max-width:190px!important}

/* Keep authenticated dropdowns open while pointer travels from trigger to menu. */
@media(hover:hover) and (pointer:fine){
  .site-nav details.nav-dropdown{padding-bottom:8px!important;margin-bottom:-8px!important}
  .site-nav details.nav-dropdown>.nav-dropdown-menu{top:calc(100% - 1px)!important}
  .site-nav details.nav-dropdown:hover>.nav-dropdown-menu,
  .site-nav details.nav-dropdown:focus-within>.nav-dropdown-menu,
  .site-nav details.nav-dropdown[open]>.nav-dropdown-menu{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
}

/* Make seven-day history easier to scan instead of presenting two oversized blocks. */
.status-page-v2 .status-uptime-panel{padding:18px!important}
.status-page-v2 .status-uptime-panel .status-section-heading{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important
}
.status-page-v2 .status-uptime-panel .status-section-heading p{max-width:650px!important}
.status-page-v2 .uptime-history{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.status-page-v2 .uptime-history-row{
  display:flex!important;flex-direction:column!important;gap:12px!important;
  min-width:0!important;padding:15px!important;border-radius:13px!important
}
.status-page-v2 .uptime-history-label{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important
}
.status-page-v2 .uptime-history-label strong{font-size:13px!important}
.status-page-v2 .uptime-day-grid{display:grid!important;grid-template-columns:repeat(7,minmax(48px,1fr))!important;gap:5px!important}
.status-page-v2 .uptime-day{min-height:66px!important;padding:8px 3px!important;justify-content:center!important}
.status-page-v2 .uptime-day i{height:4px!important}
.status-page-v2 .status-runtime-panel{margin-top:0!important}
@media(max-width:1180px){
  .site-header .header-actions{grid-template-columns:160px auto 160px!important}
  .site-header .header-auth{grid-template-columns:auto 160px!important}
  .site-header .header-actions>.add-bot-btn,.site-header .header-auth .btn{width:160px!important;min-width:160px!important;max-width:160px!important}
}
@media(max-width:900px){
  .site-header .header-actions{display:flex!important;gap:7px!important}
  .site-header .header-auth{display:flex!important;gap:7px!important}
  .site-header .public-header-actions{display:contents!important}
  .site-header .header-actions>.add-bot-btn{display:none!important}
  .site-header .header-auth .btn{width:auto!important;min-width:0!important;max-width:none!important}
  .status-page-v2 .uptime-history{grid-template-columns:1fr!important}
}
@media(max-width:680px){
  .site-header .header-actions{margin-left:auto!important}
  .site-header .public-theme-toggle{height:36px!important}
  .site-header .header-auth .btn{height:36px!important;min-height:36px!important}
  .status-page-v2 .status-uptime-panel .status-section-heading{grid-template-columns:1fr!important}
  .status-page-v2 .uptime-day-grid{overflow-x:auto!important;grid-template-columns:repeat(7,minmax(62px,1fr))!important}
}


/* === Subscription Management (owner only) === */
.subscription-management-page{display:grid;gap:20px}
.subscription-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.subscription-plan-card{margin:0}
.subscription-plan-card h3{margin:18px 0 10px}
.subscription-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 18px}
.subscription-feature-option{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025);cursor:pointer}
.subscription-feature-option input{width:auto;margin:0}
.subscription-user-form{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.owner-helper-text{margin:10px 0 0;color:var(--muted)}
.site-nav a[href="/dashboard/owner/subscriptions"]{color:#8bd5ff}
.site-nav a[href="/dashboard/owner/subscriptions"]:hover{background:rgba(88,101,242,.1)}
@media(max-width:1000px){.subscription-plan-grid{grid-template-columns:1fr}.subscription-feature-grid{grid-template-columns:1fr}}
