:root{
  color-scheme:dark;
  --bg:#070a11;
  --bg-soft:#0b0f19;
  --surface:#101522;
  --surface-2:#151b2b;
  --surface-3:#1b2235;
  --text:#f7f8fc;
  --muted:#98a2b7;
  --muted-2:#6f7b92;
  --line:#252e43;
  --line-soft:rgba(255,255,255,.07);
  --accent:#7c5cff;
  --accent-2:#9b87ff;
  --accent-soft:rgba(124,92,255,.14);
  --good:#36d38a;
  --good-soft:rgba(54,211,138,.11);
  --warn:#f6bd55;
  --warn-soft:rgba(246,189,85,.11);
  --danger:#ff5e73;
  --danger-soft:rgba(255,94,115,.12);
  --shadow:0 18px 50px rgba(0,0,0,.24);
  --radius:18px;
  --radius-sm:12px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(900px 540px at 72% -100px,rgba(124,92,255,.17),transparent 65%),
    radial-gradient(700px 520px at -160px 40%,rgba(73,111,255,.08),transparent 70%),
    var(--bg);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.35;
  background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(to bottom,#000,transparent 70%);
  z-index:-1;
}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}

/* Top bar */
header.topbar{
  height:68px;
  border-bottom:1px solid var(--line-soft);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 24px;
  position:sticky;
  top:0;
  background:rgba(7,10,17,.78);
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  z-index:30;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:18px;
  letter-spacing:-.02em;
}
.brand-mark{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:11px;
  background:linear-gradient(135deg,var(--accent-2),var(--accent));
  box-shadow:0 9px 24px rgba(124,92,255,.26),inset 0 1px rgba(255,255,255,.2);
  font-size:13px;
  letter-spacing:-.04em;
}
.topbar nav{display:flex;align-items:center;gap:10px}
.user-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 11px;
  border:1px solid var(--line-soft);
  background:rgba(255,255,255,.025);
  border-radius:11px;
  color:var(--muted);
  font-size:13px;
}
.status-dot{width:7px;height:7px;border-radius:50%;background:var(--good);box-shadow:0 0 0 4px var(--good-soft)}

/* App shell + navigation */
.shell{display:flex;min-height:calc(100vh - 68px)}
.sidebar{
  width:260px;
  flex-shrink:0;
  border-right:1px solid var(--line-soft);
  padding:20px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:5px;
  position:sticky;
  top:68px;
  height:calc(100vh - 68px);
  overflow-y:auto;
  background:rgba(9,12,20,.42);
}
.server-id{
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 3px 18px;
  padding:11px;
  border:1px solid var(--line-soft);
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  border-radius:14px;
}
.server-avatar{
  width:38px;height:38px;flex:0 0 38px;
  display:grid;place-items:center;
  border-radius:12px;
  background:var(--accent-soft);
  color:#c8bdff;
  border:1px solid rgba(154,132,255,.22);
  font-weight:900;
}
.server-meta{min-width:0}
.server-meta strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.server-meta span{font-size:11px;color:var(--muted-2);text-transform:uppercase;letter-spacing:.09em;font-weight:800}
.nav-label{
  padding:5px 11px 7px;
  color:var(--muted-2);
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.sidebar a{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 11px;
  border:1px solid transparent;
  border-radius:11px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.sidebar a:hover{background:rgba(255,255,255,.035);color:var(--text);transform:translateX(2px)}
.sidebar a[aria-current=page]{
  background:linear-gradient(90deg,var(--accent-soft),rgba(124,92,255,.045));
  color:#eeeaff;
  border-color:rgba(124,92,255,.20);
  box-shadow:inset 3px 0 0 var(--accent);
}
.nav-icon{width:22px;text-align:center;font-size:15px;filter:saturate(.88)}
.nav-spacer{flex:1;min-height:10px}
.sidebar .nav-back{border-top:1px solid var(--line-soft);border-radius:0;padding-top:14px;margin-top:8px}

main{
  min-width:0;
  width:min(1240px,100%);
  margin:0 auto;
  padding:38px 40px 64px;
}

/* Type + page structure */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  letter-spacing:.15em;
  color:#b8aaff;
  font-weight:900;
  text-transform:uppercase;
}
.eyebrow::before{content:"";width:16px;height:2px;border-radius:2px;background:var(--accent)}
h1{font-size:38px;line-height:1.08;letter-spacing:-.035em;margin:5px 0 9px}
h2{font-size:22px;letter-spacing:-.02em;margin:34px 0 15px}
h3{letter-spacing:-.012em;margin-top:0}
p{margin-top:8px}
.muted{color:var(--muted)}
.pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:25px}
.pagehead p{margin:5px 0 0}

.hero{
  position:relative;
  overflow:hidden;
  padding:76px 0 58px;
  max-width:980px;
}
.hero::after{
  content:"";
  position:absolute;
  right:3%;top:23%;
  width:230px;height:230px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(124,92,255,.19),transparent 68%);
  filter:blur(3px);
  pointer-events:none;
}
.hero h1{font-size:clamp(42px,6vw,66px);max-width:820px;margin:14px 0 20px}
.hero p{font-size:18px;line-height:1.7;color:var(--muted);max-width:720px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}

/* Grids + cards */
.cards,.grid3,.grid2{display:grid;gap:16px}
.cards,.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{
  position:relative;
  overflow-wrap:anywhere;
  overflow:hidden;
  background:linear-gradient(150deg,rgba(24,31,49,.96),rgba(15,20,33,.96));
  border:1px solid var(--line-soft);
  border-radius:var(--radius);
  padding:21px;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.card::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
  pointer-events:none;
}
.card h3{margin-bottom:7px;font-size:17px}
.card p:last-child{margin-bottom:0}
.card.link{min-height:148px;display:flex;flex-direction:column;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}
.card.link:hover{border-color:rgba(124,92,255,.42);transform:translateY(-3px);background:linear-gradient(150deg,#1b2236,#111726);box-shadow:0 16px 42px rgba(0,0,0,.2)}
.card.link::after{content:"→";margin-top:auto;padding-top:14px;color:#ae9fff;font-size:19px;font-weight:800}
.center-icon{margin-inline:auto}
.feature-icon,.section-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:13px;
  margin-bottom:18px;
  background:var(--accent-soft);
  border:1px solid rgba(124,92,255,.18);
  font-size:19px;
}
.server-card{display:flex;flex-direction:column;min-height:220px}
.server-card-top{display:flex;align-items:center;gap:13px;margin-bottom:15px}
.server-card .server-avatar{width:46px;height:46px;flex-basis:46px;border-radius:14px;font-size:17px}
.server-card h3{margin:0;font-size:18px}
.server-id-text{font-size:12px;color:var(--muted-2);margin-top:2px}
.server-card .card-actions{margin-top:auto;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.server-card .meta-row{display:flex;gap:7px;flex-wrap:wrap}
.empty-state{grid-column:1/-1;text-align:center;padding:52px 24px}

/* Buttons */
.button,.small,button{
  appearance:none;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  background:linear-gradient(180deg,#896dff,var(--accent));
  color:white;
  font-weight:850;
  letter-spacing:-.01em;
  min-height:40px;
  padding:9px 14px;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(124,92,255,.17),inset 0 1px rgba(255,255,255,.15);
  transition:transform .15s ease,filter .15s ease,border-color .15s ease,background .15s ease;
}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.button:hover,.small:hover,button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.button:active,.small:active,button:active{transform:translateY(0)}
.small{min-height:32px;padding:5px 9px;font-size:12px;background:#2a3247;box-shadow:none}
.ghost{background:rgba(255,255,255,.025);border:1px solid var(--line);box-shadow:none;color:#e9ebf3}
.ghost:hover{background:rgba(255,255,255,.055);border-color:#3a4561}
.danger{background:linear-gradient(180deg,#ff6b7e,var(--danger))!important;box-shadow:0 8px 22px rgba(255,94,115,.13)!important}
.dangerbox{border-color:rgba(255,94,115,.24);background:linear-gradient(145deg,rgba(255,94,115,.07),rgba(15,20,33,.96))}
button:disabled{opacity:.55;cursor:wait;transform:none!important;filter:none!important}
form[aria-busy=true] button:disabled::after{content:"";width:12px;height:12px;margin-left:8px;display:inline-block;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}

/* Status */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.025);
  border-radius:999px;
  font-size:11px;
  font-weight:750;
  color:var(--muted);
}
.pill.ok{border-color:rgba(54,211,138,.25);background:var(--good-soft);color:#77e6af}
.pill.warn{border-color:rgba(246,189,85,.25);background:var(--warn-soft);color:#f8ce7e}
.notice{
  display:flex;
  align-items:flex-start;
  gap:9px;
  background:var(--good-soft);
  border:1px solid rgba(54,211,138,.22);
  border-radius:13px;
  padding:12px 14px;
  margin-bottom:22px;
  color:#b8f2d5;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.notice::before{content:"✓";font-weight:900;color:var(--good)}

/* Forms */
.stack{display:flex;flex-direction:column;gap:15px}
.stack+.stack,.card+.card{margin-top:16px}
label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:800;color:#d8ddeb;letter-spacing:.005em}
.check{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:34px;font-size:13px;cursor:pointer}
input,select,textarea{
  width:100%;
  color:var(--text);
  background:#0b101b;
  border:1px solid #29334a;
  border-radius:11px;
  padding:10px 11px;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
input:hover,select:hover,textarea:hover{border-color:#34405b}
input:focus,select:focus,textarea:focus{border-color:#7c63ee;box-shadow:0 0 0 3px rgba(124,92,255,.13);background:#0d1220}
textarea{min-height:105px;resize:vertical}
input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);flex:0 0 auto}
input[type=file]{padding:7px}
select{cursor:pointer}
.inline{display:inline}.inline button{margin:2px}
.row{display:flex;flex-wrap:wrap;gap:12px}

/* Tables */
.tablewrap{overflow:auto;border:1px solid var(--line-soft);border-radius:15px;background:rgba(14,19,31,.88);box-shadow:inset 0 1px rgba(255,255,255,.02)}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line-soft);vertical-align:top}
th{position:sticky;top:0;z-index:1;color:#8f9ab0;background:#121827;font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:900}
td{color:#d9deea;font-size:13px}
tr:last-child td{border-bottom:0}
tbody tr:hover td{background:rgba(255,255,255,.018)}

/* Details + dense lists */
details{border-radius:11px}
details summary{cursor:pointer;color:#dce1ed;font-weight:750}
.tickettypes{display:flex;flex-direction:column;gap:8px}
.tickettypes details{border:1px solid var(--line-soft);background:rgba(6,9,16,.25);padding:12px 13px}
.tickettypes details[open]{border-color:rgba(124,92,255,.21);background:rgba(124,92,255,.045)}
.tickettypes summary label{display:inline-flex;flex-direction:row;align-items:center;gap:8px}.tickettypes summary label input{margin:0}.tickettypes details[open] summary{margin-bottom:13px}
.rolelist{max-height:420px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-right:4px}
.rolelist .check{padding:8px 9px;border:1px solid var(--line-soft);border-radius:10px;background:rgba(255,255,255,.018)}

/* Accessibility */
:focus-visible{outline:3px solid rgba(183,169,255,.85);outline-offset:3px}
::selection{background:rgba(124,92,255,.35)}

@media(max-width:1020px){
  .cards,.grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
  main{padding:32px 28px 55px}
}

@media(max-width:900px){
  header.topbar{min-height:64px;height:auto;padding:11px 14px;gap:10px}
  .brand-word{display:none}
  .user-chip{font-size:11px;padding:0 8px}
  .shell{display:block}
  .sidebar{
    position:sticky;
    top:64px;
    z-index:20;
    width:100%;
    height:auto;
    max-height:none;
    padding:9px 12px;
    flex-direction:row;
    align-items:center;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid var(--line-soft);
    background:rgba(8,11,18,.94);
    backdrop-filter:blur(18px);
    scrollbar-width:none;
  }
  .sidebar::-webkit-scrollbar{display:none}
  .server-id,.nav-label,.nav-spacer{display:none}
  .sidebar a{flex:0 0 auto;min-height:37px;padding:7px 10px;font-size:12px;white-space:nowrap}
  .sidebar a:hover{transform:none}
  .sidebar a[aria-current=page]{box-shadow:inset 0 -2px 0 var(--accent)}
  .sidebar .nav-back{border-top:0;border-radius:11px;padding-top:7px;margin-top:0}
  .nav-icon{width:auto}
  main{padding:25px 18px 48px}
  .pagehead{align-items:flex-start;flex-wrap:wrap}
  .hero{padding:44px 0 34px}
  .hero::after{display:none}
  h1{font-size:32px}
  .hero h1{font-size:clamp(38px,11vw,50px)}
}

@media(max-width:640px){
  .cards,.grid3,.grid2{grid-template-columns:1fr}
  .rolelist{grid-template-columns:1fr}
  main{padding-left:16px;padding-right:16px}
  .card{padding:17px;border-radius:15px}
  .server-card{min-height:190px}
  .pagehead{margin-bottom:20px}
  .pagehead>.button{width:100%}
  .topbar nav{gap:7px}
  .user-chip .user-label{display:none}
  table{min-width:560px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* Ticket desk: follows the existing dashboard palette and cards. */
.ticket-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.ticket-heading h1{margin:4px 0 8px}.ticket-badge{display:inline-block;border:1px solid #3b5878;background:#13283f;color:#abd5ff;border-radius:999px;padding:6px 12px;font-size:12px;white-space:nowrap}
.ticket-service{border:1px solid #293b53;border-radius:12px;margin:12px 0;overflow:hidden}
.ticket-service summary{padding:16px;cursor:pointer;font-weight:650}.ticket-service summary span{float:right;font-size:12px;font-weight:400}
.ticket-service[open] summary{border-bottom:1px solid #293b53;background:#122237}.ticket-service-body{padding:16px}
.ticket-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin:12px 0!important}.ticket-check input{width:18px!important;height:18px;flex:none;accent-color:#65b7ff}
.ticket-note{border-left:3px solid #65b7ff;padding:10px 14px;background:#13283f;color:#c0d8f3;border-radius:4px}
.ticket-save{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 0}.tickettypes select[multiple]{min-height:108px}
@media(max-width:680px){.ticket-heading{align-items:flex-start;flex-direction:column}.ticket-service summary span{float:none;margin-left:12px}}

/* Authentication */
.auth-shell{max-width:980px;margin:0 auto;padding-top:26px}.auth-head{max-width:760px;margin-bottom:22px}.auth-head h1{font-size:48px;margin-top:10px}.auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.auth-card{display:flex;flex-direction:column;min-height:330px}.auth-card p{min-height:52px}.auth-button,.auth-form{margin-top:auto}.auth-form{padding-top:14px}.auth-foot{margin-top:18px;text-align:center}.auth-foot a{color:#b9adff;font-weight:800;margin-left:6px}.auth-secondary{display:flex;justify-content:center}.auth-notice{margin-top:8px}.code-input{font-size:30px;letter-spacing:.28em;text-align:center;font-weight:900;padding-left:1.28em}.form-hint{font-size:12px;margin:8px 0 0}code{padding:3px 7px;border:1px solid var(--line);border-radius:7px;background:#0b101b;color:#c9c1ff}select[multiple]{min-height:138px}
@media(max-width:760px){.auth-grid{grid-template-columns:1fr}.auth-head h1{font-size:38px}.auth-card{min-height:0}.auth-card p{min-height:0}}
.auth-secondary.is-disabled{opacity:.55;pointer-events:none;cursor:not-allowed;text-decoration:none}

/* v48: Add Bot + server emoji picker */
.page-actions{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.button.secondary{background:linear-gradient(135deg,#5865f2,#7c5cff);color:#fff;border-color:transparent;box-shadow:0 10px 30px rgba(88,101,242,.22)}
.button.secondary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.add-bot-link{white-space:nowrap}

.emoji-field{display:block;position:relative}
.emoji-input-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:.55rem;align-items:center}
.emoji-preview{height:42px;width:42px;border:1px solid var(--border,#273145);background:rgba(255,255,255,.035);border-radius:11px;display:grid;place-items:center;font-size:1.35rem;overflow:hidden}
.emoji-preview img{width:28px;height:28px;object-fit:contain}
.emoji-picker-toggle{margin:0;min-height:42px}
.emoji-picker-panel{margin-top:.65rem;padding:.8rem;border:1px solid var(--border,#273145);border-radius:14px;background:#0c111d;box-shadow:0 18px 45px rgba(0,0,0,.28);position:relative;z-index:4}
.emoji-picker-panel[hidden]{display:none!important}
.emoji-picker-head{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.7rem}
.emoji-picker-head input[type="search"]{max-width:240px;margin:0}
.emoji-quick-row{display:flex;flex-wrap:wrap;gap:.38rem;padding-bottom:.65rem;margin-bottom:.65rem;border-bottom:1px solid rgba(255,255,255,.07)}
.emoji-choice{appearance:none;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);color:inherit;border-radius:10px;cursor:pointer;transition:.15s ease}
.emoji-choice:hover,.emoji-choice:focus-visible{border-color:#5865f2;background:rgba(88,101,242,.14);transform:translateY(-1px);outline:none}
.emoji-choice-unicode{width:39px;height:39px;font-size:1.25rem;padding:0}
.server-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:.45rem;max-height:260px;overflow:auto;padding-right:.2rem}
.server-emoji-choice{display:flex;align-items:center;gap:.45rem;min-height:42px;padding:.45rem .55rem;text-align:left;min-width:0}
.server-emoji-choice img{width:26px;height:26px;object-fit:contain;flex:0 0 auto}
.server-emoji-choice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}
.emoji-picker-actions{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap;margin-top:.7rem;padding-top:.65rem;border-top:1px solid rgba(255,255,255,.07)}
.emoji-empty{grid-column:1/-1;margin:.25rem 0}

@media (max-width:720px){
  .emoji-input-row{grid-template-columns:42px minmax(0,1fr)}
  .emoji-picker-toggle{grid-column:1/-1;width:100%}
  .emoji-picker-head{align-items:stretch;flex-direction:column}
  .emoji-picker-head input[type="search"]{max-width:none;width:100%}
  .server-emoji-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v50 operations suite */
.statgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.stat{padding:16px;border:1px solid var(--line-soft);border-radius:15px;background:linear-gradient(145deg,rgba(18,24,39,.94),rgba(10,14,23,.94));display:flex;flex-direction:column;gap:6px}.stat span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:850}.stat strong{font-size:23px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.section-head h2{margin-top:0}.checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.checkrow{display:flex;gap:11px;padding:12px;border:1px solid var(--line-soft);border-radius:12px;background:rgba(255,255,255,.015)}.checkrow p{margin:4px 0 0}.checkmark{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;font-weight:900;flex:0 0 auto}.checkmark.ok{background:var(--good-soft);color:var(--good)}.checkmark.bad{background:var(--warn-soft);color:var(--warn)}.maintenance-card{border-color:rgba(246,189,85,.2)}.maintenance-live{padding:14px;border-radius:13px;background:var(--warn-soft);border:1px solid rgba(246,189,85,.23);margin-bottom:14px}.callout{padding:12px 14px;border-left:3px solid var(--accent);background:rgba(124,92,255,.07);border-radius:8px;color:#d9d4ff}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.status-grid>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:11px;border:1px solid var(--line-soft);border-radius:11px}.status-dot.on{background:var(--good)}.status-dot.off{background:var(--danger)}
.queue-list{display:flex;flex-direction:column;gap:12px}.queue-card{padding:16px 17px;border:1px solid var(--line-soft);border-radius:15px;background:linear-gradient(145deg,rgba(15,20,33,.96),rgba(9,13,22,.96))}.queue-card.overdue{border-color:rgba(246,189,85,.38);box-shadow:inset 3px 0 0 var(--warn)}.queue-top{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:12px}.queue-top h3{margin:8px 0 4px}.macro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.macro{padding:13px;border:1px solid var(--line-soft);border-radius:12px;background:rgba(255,255,255,.018)}.macro p{white-space:pre-wrap;color:#cfd5e3}.transcript{white-space:pre-wrap;word-break:break-word;background:#080c14;border:1px solid var(--line);border-radius:14px;padding:18px;max-height:72vh;overflow:auto;color:#d9dfeb;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.timeline{position:relative;padding-left:22px}.timeline:before{content:"";position:absolute;left:7px;top:5px;bottom:5px;width:2px;background:var(--line)}.timeline-item{position:relative;padding:0 0 22px 20px}.timeline-dot{position:absolute;left:-20px;top:7px;width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(124,92,255,.12)}.timeline-item p{margin:6px 0}.searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:22px}.search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.search-result h3{margin:10px 0 6px}.profile-head{display:flex;gap:16px;align-items:center;margin-bottom:22px}.profile-avatar{width:72px;height:72px;border-radius:50%;border:2px solid rgba(124,92,255,.35);object-fit:cover}
@media(max-width:900px){.statgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.checklist,.status-grid,.macro-grid,.search-results{grid-template-columns:1fr 1fr}}@media(max-width:640px){.statgrid,.checklist,.status-grid,.macro-grid,.search-results{grid-template-columns:1fr}.queue-top,.section-head{flex-direction:column}.searchbar{grid-template-columns:1fr}}

.helper-answer{margin-top:1rem;padding:1rem;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:14px;background:rgba(255,255,255,.025)}
.helper-answer-text{white-space:pre-wrap;overflow-wrap:anywhere}
.search-form textarea{width:100%;resize:vertical;min-height:92px}


/* End Rod Bot light theme */
:root{color-scheme:light;--bg:#fff;--background:#fff;--surface:#fff;--panel:#fff;--card:#fff;--text:#171717;--muted:#666;--border:#e5e5e5;--accent:#222;}
body{background:#fff!important;color:#171717!important}
.card,.panel,.sidebar,.topbar,.modal,.dropdown-menu{background:#fff!important;color:#171717!important;border-color:#e5e5e5!important}
