:root{
  --bg:#090d1a;
  --panel:#12192d;
  --panel-strong:#182038;
  --line:rgba(152,161,255,.12);
  --line-strong:rgba(152,161,255,.18);
  --text:#edf2f7;
  --muted:#97a4cc;
  --muted-soft:#7c88aa;
  --amber:#8b5cf6;
  --blue:#60a5fa;
  --ok:#34d399;
  --red:#f87171;
  --radius:18px;
  --font:"Bahnschrift","Trebuchet MS","Segoe UI",sans-serif;
  --mono:ui-monospace,Consolas,monospace;
}
*{box-sizing:border-box}
body{
  margin:0;
  font:14px/1.45 var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(96,165,250,.14), transparent 60%),
    radial-gradient(900px 500px at 88% 12%, rgba(139,92,246,.16), transparent 56%),
    radial-gradient(850px 420px at 55% 100%, rgba(124,131,255,.10), transparent 60%),
    linear-gradient(180deg,#070b16,#0e1324);
  padding:18px;
}
.loginBody{min-height:100vh;display:grid;place-items:center;padding:20px}
.loginCard{
  width:min(560px,100%);
  padding:28px;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(18,25,45,.97),rgba(8,12,24,.97));
  border:1px solid var(--line-strong);
  box-shadow:0 24px 80px rgba(0,0,0,.46);
}
.shellSettings{
  max-width:1640px;
  margin:0 auto;
  display:grid;
  grid-template-columns:280px minmax(0,1fr) 300px;
  gap:18px;
  align-items:start;
}
.panel{
  background:linear-gradient(180deg,rgba(18,25,45,.97),rgba(8,12,24,.97));
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}
.sidebar,
.rail{
  position:sticky;
  top:18px;
  max-height:calc(100vh - 36px);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:auto;
}
.main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.sidebarBrand{padding-bottom:2px}
.sidebarStack{display:flex;flex-direction:column;gap:12px}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(139,92,246,.16),rgba(96,165,250,.10));
  border:1px solid rgba(255,255,255,.08);
}
.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), transparent 35%),
    linear-gradient(135deg,var(--amber),var(--blue));
}
.brand h1{margin:0;font-size:18px}
.brand .sub,.sub{margin-top:4px;color:var(--muted);font-size:12px}
.card{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
  overflow:hidden;
}
.head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
}
.head h3{margin:0;font-size:16px}
.headMeta{display:flex;flex-direction:column;gap:4px;min-width:0}
.headSub{color:var(--muted);font-size:12px;line-height:1.45}
.body{padding:16px}
.compactBody{display:grid;gap:14px}
.label{
  font-size:11px;
  letter-spacing:.24px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
  font-weight:700;
}
select,input,textarea{
  width:100%;
  border:none;
  outline:none;
  border-radius:14px;
  background:rgba(0,0,0,.22);
  color:var(--text);
  border:1px solid rgba(255,255,255,.08);
  padding:11px 12px;
  font:inherit;
}
textarea{min-height:108px;resize:vertical}
select:focus,input:focus,textarea:focus{
  border-color:rgba(96,165,250,.65);
  box-shadow:0 0 0 3px rgba(96,165,250,.14);
}
.grid2,.grid3,.featureSplit,.summaryGrid{
  display:grid;
  gap:14px;
  align-items:start;
}
.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
.featureSplit{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr)}
.featureSplitWide{grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr)}
.featureSplitTight{grid-template-columns:minmax(0,1fr) minmax(280px,.72fr)}
.paneStack{display:grid;gap:16px}
.summaryGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
.summaryCard .body{padding:18px}
.summaryLabel{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.24px;
  text-transform:uppercase;
  font-weight:700;
}
.summaryValue{
  margin-top:10px;
  font-size:28px;
  font-weight:900;
  line-height:1;
}
.summaryMeta{
  margin-top:8px;
  color:var(--muted-soft);
  font-size:12px;
}
.navCard .body{padding:14px}
.settingsNav{display:flex;flex-direction:column;gap:8px}
.settingsNavBtn{
  appearance:none;
  border:none;
  cursor:pointer;
  display:flex;
  gap:12px;
  align-items:center;
  width:100%;
  padding:11px 12px;
  border-radius:16px;
  color:var(--text);
  background:rgba(255,255,255,.02);
  border:1px solid transparent;
  text-align:left;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.settingsNavBtn:hover{
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.08);
  transform:translateX(2px);
}
.settingsNavBtn.active{
  background:linear-gradient(135deg,rgba(139,92,246,.18),rgba(96,165,250,.14));
  border-color:rgba(255,255,255,.12);
}
.settingsNavGlyph{
  flex:0 0 auto;
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font:700 11px var(--mono);
  color:#fff8f2;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.settingsNavBtn.active .settingsNavGlyph{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.14);
}
.settingsNavCopy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.settingsNavCopy strong{font-size:14px}
.settingsNavCopy span{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pageHero{
  padding:18px;
  display:grid;
  gap:16px;
}
.pageHeader{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.pageEyebrow{
  font-size:11px;
  letter-spacing:.24px;
  text-transform:uppercase;
  color:var(--amber);
  font-weight:800;
}
.pageHeader h2{margin:8px 0 0;font-size:32px;line-height:1.05}
.pageHeader p{margin:8px 0 0;color:var(--muted);max-width:760px}
.serverHero{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(135deg,rgba(139,92,246,.12),rgba(124,131,255,.10),rgba(96,165,250,.10));
}
.heroMain{display:flex;gap:14px;align-items:center;min-width:0}
.icon{
  width:68px;
  height:68px;
  border-radius:20px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
}
.fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:900;
  background:linear-gradient(135deg,rgba(139,92,246,.35),rgba(96,165,250,.22));
}
.serverHero h3{
  margin:0;
  font-size:24px;
  line-height:1.1;
}
.serverHero p{margin:6px 0 0;color:var(--muted)}
.badges{display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start;justify-content:flex-end}
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(0,0,0,.2);
  font-size:12px;
}
.good{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.3)}
.warn{background:rgba(139,92,246,.14);border-color:rgba(139,92,246,.28)}
.bad{background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.3)}
.settingsPane{display:none}
.settingsPane.active{display:block}
.overviewList,.overviewChecklist{display:grid;gap:12px}
.overviewItem,.overviewCheck{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.028);
  border:1px solid rgba(255,255,255,.06);
}
.overviewItem strong,.overviewCheck strong{display:block;font-size:14px}
.overviewItem span,.overviewCheck span{display:block;margin-top:6px;color:var(--muted);font-size:13px}
.overviewCheck{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:flex-start}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.btn{
  appearance:none;
  cursor:pointer;
  border:none;
  border-radius:999px;
  padding:11px 15px;
  font:700 13px var(--font);
  color:#fff8f2;
  background:linear-gradient(135deg,var(--amber),var(--blue));
  box-shadow:0 10px 24px rgba(96,165,250,.12);
}
.btn.secondary{
  color:var(--text);
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:none;
}
.btn.warn{
  background:rgba(139,92,246,.16);
  border:1px solid rgba(139,92,246,.24);
  box-shadow:none;
}
.btn.danger{
  background:rgba(248,113,113,.14);
  border:1px solid rgba(248,113,113,.24);
  box-shadow:none;
}
.btn.good{
  background:rgba(52,211,153,.15);
  border:1px solid rgba(52,211,153,.26);
  box-shadow:none;
}
.btn:disabled{opacity:.55;cursor:wait}
.rows{display:flex;flex-direction:column;gap:8px}
.row{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}
.row strong{color:var(--text);text-align:right}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  font-size:11px;
}
.chip.off{opacity:.6}
.muted{color:var(--muted)}
.result{
  display:flex;
  flex-direction:column;
  min-height:320px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.026);
  overflow:hidden;
}
.status{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(52,211,153,.35);
  background:rgba(52,211,153,.12);
  font-size:12px;
}
.status.bad{
  border-color:rgba(248,113,113,.35);
  background:rgba(248,113,113,.12);
}
pre{
  margin:0;
  padding:16px;
  white-space:pre-wrap;
  word-break:break-word;
  font:12px/1.5 var(--mono);
  color:#e5edf7;
  background:rgba(6,10,14,.48);
  flex:1;
  overflow:auto;
}
.ticketPreview{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}
.ticketPreview h4{margin:0 0 8px;font-size:15px}
.ticketPreview p{margin:0 0 10px;color:var(--muted)}
.ticketImage{
  width:100%;
  max-height:220px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.25);
}
.ticketButtons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ticketBtn{
  padding:8px 10px;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(139,92,246,.24),rgba(96,165,250,.18));
  border:1px solid rgba(255,255,255,.12);
  font-weight:700;
  font-size:12px;
}
.ticketBtn.off{opacity:.45}
.buttonRows{display:flex;flex-direction:column;gap:10px}
.buttonRow{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.028);
  border:1px solid rgba(255,255,255,.06);
}
.buttonRowTop{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.buttonGrid{display:grid;grid-template-columns:minmax(0,1fr) 110px 110px auto;gap:8px}
.buttonGrid .wide{grid-column:1/-1}
.previewCard{align-self:start}
.embedPanel{
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.06);
}
.embedPanelTop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.embedQuickNote{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  font-size:11px;
  color:var(--muted);
}
.compactHelp{margin-top:4px}
.swatchGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:10px;margin-top:12px}
.swatch{
  appearance:none;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:10px 8px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  box-shadow:none;
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
.swatch:hover{
  transform:translateY(-1px);
  border-color:rgba(139,92,246,.24);
  background:rgba(139,92,246,.08);
}
.swatch:focus-visible{
  outline:none;
  border-color:rgba(96,165,250,.65);
  box-shadow:0 0 0 3px rgba(96,165,250,.14);
}
.swatchTone{
  width:34px;
  height:34px;
  border-radius:12px;
  display:block;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.swatchName{font:700 11px var(--font);color:var(--text);letter-spacing:.1px}
.swatch[data-color="red"] .swatchTone{background:#ed4245}
.swatch[data-color="blurple"] .swatchTone{background:#5865f2}
.swatch[data-color="green"] .swatchTone{background:#57f287}
.swatch[data-color="orange"] .swatchTone{background:#faa61a}
.swatch[data-color="purple"] .swatchTone{background:#9b59b6}
.embedInlineForm{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end}
.embedField{min-width:0}
.embedInlineForm .btn{margin:0}
.embedResetBtn{box-shadow:none}
.mockEmbed{
  display:grid;
  grid-template-columns:6px minmax(0,1fr);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
}
.mockEmbedAccent{
  background:linear-gradient(180deg,#5865f2,#7688ff);
  min-height:132px;
}
.mockEmbedBody{padding:16px}
.mockEmbedTitle{font-size:15px;font-weight:800}
.mockEmbedText{margin-top:8px;color:var(--muted);line-height:1.55}
.sectionHelp,.foot{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.empty{color:var(--muted);font-style:italic}
.infoBox,.notice{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  font-size:12px;
  color:var(--muted);
}
.infoBox strong,.notice strong{color:var(--text)}
.notice.bad{
  background:rgba(248,113,113,.10);
  border-color:rgba(248,113,113,.28);
  color:#ffd6d6;
}
.loginList{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.loginList li{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.028);
  border:1px solid rgba(255,255,255,.06);
}
code{
  padding:2px 6px;
  border-radius:8px;
  background:rgba(0,0,0,.24);
  border:1px solid rgba(255,255,255,.08);
}
@media (max-width:1380px){
  .shellSettings{grid-template-columns:280px minmax(0,1fr)}
  .rail{display:none}
}
@media (max-width:1180px){
  .summaryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .featureSplit,.featureSplitWide,.featureSplitTight{grid-template-columns:1fr}
  .buttonGrid{grid-template-columns:1fr 1fr}
  .embedInlineForm{grid-template-columns:1fr 1fr}
}
@media (max-width:920px){
  body{padding:10px}
  .shellSettings{grid-template-columns:1fr}
  .sidebar,.rail{
    position:static;
    max-height:none;
    overflow:visible;
  }
  .settingsNav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .summaryGrid,.grid2,.grid3{grid-template-columns:1fr}
  .serverHero,.pageHeader{grid-template-columns:1fr;display:grid}
  .badges{justify-content:flex-start}
}
@media (max-width:640px){
  .pageHeader h2{font-size:26px}
  .serverHero h3{font-size:20px}
  .settingsNav{grid-template-columns:1fr}
  .embedInlineForm{grid-template-columns:1fr}
  .embedInlineForm .btn{width:100%}
  .buttonGrid{grid-template-columns:1fr}
}
