/* Raid Helper command-center shell — scoped so public pages, especially Media,
   keep their existing visual treatment. */
body.rh-command-center {
  --rh-shell-bg: #06111f;
  --rh-shell-nav: #071524;
  --rh-shell-top: #08182a;
  --rh-surface: #0a1b2f;
  --rh-surface-2: #0d223a;
  --rh-surface-3: #102943;
  --rh-border: rgba(115, 168, 218, .2);
  --rh-border-strong: rgba(67, 197, 238, .42);
  --rh-accent: #36c5f0;
  --rh-accent-rgb: 54, 197, 240;
  --rh-text: #f1f7ff;
  --rh-muted: #8ea8c4;
  --rh-premium: #e5b94f;
  --rh-good: #42d6a4;
  min-height: 100vh;
  background: var(--rh-shell-bg) !important;
  color: var(--rh-text);
}

body.rh-command-center.rh-theme-ocean {
  --rh-shell-bg: #04161f;
  --rh-shell-nav: #061c25;
  --rh-shell-top: #08242e;
  --rh-surface: #092630;
  --rh-surface-2: #0c303b;
  --rh-surface-3: #10404b;
  --rh-border: rgba(94, 190, 190, .22);
  --rh-border-strong: rgba(45, 212, 191, .48);
  --rh-accent: #2dd4bf;
  --rh-accent-rgb: 45, 212, 191;
}

body.rh-command-center.rh-theme-aurora {
  --rh-shell-bg: #100c20;
  --rh-shell-nav: #151028;
  --rh-shell-top: #1b1531;
  --rh-surface: #1b1532;
  --rh-surface-2: #251d42;
  --rh-surface-3: #312657;
  --rh-border: rgba(180, 153, 240, .22);
  --rh-border-strong: rgba(167, 139, 250, .5);
  --rh-accent: #a78bfa;
  --rh-accent-rgb: 167, 139, 250;
}

body.rh-command-center.rh-theme-ember {
  --rh-shell-bg: #1d0d0c;
  --rh-shell-nav: #24110f;
  --rh-shell-top: #2d1513;
  --rh-surface: #301714;
  --rh-surface-2: #3c1c18;
  --rh-surface-3: #4b251e;
  --rh-border: rgba(244, 128, 128, .22);
  --rh-border-strong: rgba(251, 113, 133, .5);
  --rh-accent: #fb7185;
  --rh-accent-rgb: 251, 113, 133;
}

body.rh-command-center.rh-theme-obsidian {
  --rh-shell-bg: #07080a;
  --rh-shell-nav: #0b0c0f;
  --rh-shell-top: #101216;
  --rh-surface: #121419;
  --rh-surface-2: #191c22;
  --rh-surface-3: #23272e;
  --rh-border: rgba(215, 180, 105, .2);
  --rh-border-strong: rgba(229, 185, 79, .52);
  --rh-accent: #e5b94f;
  --rh-accent-rgb: 229, 185, 79;
}

body.rh-command-center.rh-theme-forest {
  --rh-shell-bg: #051611;
  --rh-shell-nav: #071c16;
  --rh-shell-top: #09251c;
  --rh-surface: #0b2a20;
  --rh-surface-2: #10362a;
  --rh-surface-3: #164536;
  --rh-border: rgba(101, 205, 151, .2);
  --rh-border-strong: rgba(74, 222, 128, .48);
  --rh-accent: #4ade80;
  --rh-accent-rgb: 74, 222, 128;
}

body.rh-command-center > header,
body.rh-command-center > .site-footer { display: none; }

body.rh-command-center > main {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 92px 324px 64px 252px;
}

body.rh-command-center .settings-page,
body.rh-command-center .settings-form,
body.rh-command-center .settings-stack {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.rh-command-center .settings-page { margin: 0; }
body.rh-command-center .settings-hero { display: none; }
body.rh-command-center.rh-personalization-active .premium-trial-card,
body.rh-command-center.rh-personalization-active .trial-hidden-note,
body.rh-command-center.rh-personalization-active .premium-inactive-card,
body.rh-command-center.rh-personalization-active .support-strip { display: none !important; }
body.rh-command-center #premium-upgrade {
  margin: 0 0 20px;
  border: 1px solid var(--rh-border) !important;
  border-radius: 10px;
  background: var(--rh-surface) !important;
}

.rh-shell-topbar {
  position: fixed;
  top: 0;
  right: 304px;
  left: 232px;
  z-index: 38;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--rh-border);
  background: var(--rh-shell-top);
}

.rh-server-switcher-wrap,
.rh-server-switcher,
.rh-shell-actions,
.rh-shell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rh-server-switcher-wrap { position: relative; }
.rh-server-switcher {
  width: 100%;
  min-height: 48px;
  padding: 6px 12px 6px 7px;
  border: 1px solid var(--rh-border);
  border-radius: 9px;
  background: var(--rh-surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.rh-server-switcher:hover,
.rh-server-switcher[aria-expanded="true"] {
  border-color: var(--rh-border-strong);
  background: var(--rh-surface-2);
  box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb), .07);
}
.rh-server-switcher:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: 2px; }
.rh-server-switcher img,
.rh-server-switcher .rh-server-fallback {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid var(--rh-border-strong);
  border-radius: 8px;
  object-fit: cover;
  background: var(--rh-surface-3);
  color: var(--rh-accent);
  font-weight: 900;
}
.rh-server-copy { min-width: 0; }
.rh-server-copy strong,
.rh-server-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-server-copy strong { max-width: 290px; color: var(--rh-text); font-size: 14px; }
.rh-server-copy small { margin-top: 2px; color: var(--rh-muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.rh-server-switcher-chevron {
  margin-left: auto;
  color: var(--rh-muted);
  font-size: 11px;
  transition: transform .16s ease;
}
.rh-server-switcher[aria-expanded="true"] .rh-server-switcher-chevron { transform: rotate(180deg); }
.rh-server-switcher-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 80;
  width: min(370px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--rh-border-strong);
  border-radius: 12px;
  background: var(--rh-shell-top);
  background: color-mix(in srgb, var(--rh-shell-top) 96%, #020713);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .46), 0 0 0 1px rgba(var(--rh-accent-rgb), .04);
}
.rh-server-switcher-menu[hidden] { display: none !important; }
.rh-server-switcher-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 3px 10px; }
.rh-server-switcher-head strong,
.rh-server-switcher-head small { display: block; }
.rh-server-switcher-head strong { color: var(--rh-text); font-size: 13px; }
.rh-server-switcher-head small { margin-top: 2px; color: var(--rh-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.rh-server-switcher-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--rh-muted);
  cursor: pointer;
}
.rh-server-switcher-close:hover { border-color: var(--rh-border); background: var(--rh-surface-2); color: var(--rh-text); }
.rh-server-switcher-search {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--rh-border);
  border-radius: 9px;
  background: var(--rh-surface);
  color: var(--rh-muted);
}
.rh-server-switcher-search:focus-within { border-color: var(--rh-accent); box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb), .08); }
.rh-server-switcher-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: var(--rh-text);
  box-shadow: none !important;
  font-size: 12px;
}
.rh-server-switcher-list {
  max-height: min(420px, calc(100vh - 190px));
  display: grid;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.rh-server-switcher-item {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--rh-text);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rh-server-switcher-item:hover,
.rh-server-switcher-item:focus-visible { border-color: var(--rh-border); background: var(--rh-surface-2); outline: none; }
.rh-server-switcher-item:hover { transform: translateX(2px); }
.rh-server-switcher-item.is-current { border-color: rgba(var(--rh-accent-rgb), .28); background: rgba(var(--rh-accent-rgb), .08); }
.rh-server-switcher-item > img,
.rh-server-item-fallback {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  object-fit: cover;
  background: var(--rh-surface-3);
  color: var(--rh-accent);
  font-size: 12px;
  font-weight: 900;
}
.rh-server-item-copy { min-width: 0; flex: 1; }
.rh-server-item-copy strong,
.rh-server-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-server-item-copy strong { color: var(--rh-text); font-size: 12px; }
.rh-server-item-copy small { margin-top: 2px; color: var(--rh-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .055em; }
.rh-server-switcher-item > .bi { flex: 0 0 auto; color: var(--rh-muted); font-size: 12px; }
.rh-server-switcher-item.is-current > .bi { color: var(--rh-accent); }
.rh-server-switcher-empty { margin: 8px 4px; padding: 18px 10px; border: 1px dashed var(--rh-border); border-radius: 9px; color: var(--rh-muted); font-size: 12px; text-align: center; }
.rh-server-switcher-all {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--rh-border);
  color: var(--rh-accent);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.rh-server-switcher-all:hover { color: var(--rh-text); }
.rh-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(229, 185, 79, .38);
  border-radius: 999px;
  background: rgba(229, 185, 79, .08);
  color: #f5d57e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.rh-plan-chip.is-free { border-color: var(--rh-border); background: var(--rh-surface); color: var(--rh-muted); }
.rh-shell-icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  background: var(--rh-surface);
  color: var(--rh-muted);
  cursor: pointer;
}
.rh-shell-icon-button:hover,
.rh-shell-icon-button:focus-visible { border-color: var(--rh-border-strong); color: var(--rh-accent); outline: none; }
.rh-shell-icon-button:disabled { opacity: .42; cursor: default; }
.rh-shell-user img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rh-border-strong); }
.rh-shell-user span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 750; }

body.rh-command-center .settings-layout { display: block; }
body.rh-command-center .settings-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 232px;
  overflow-y: auto;
  padding: 16px 12px;
  border-right: 1px solid var(--rh-border);
  background: var(--rh-shell-nav);
  scrollbar-width: thin;
  scrollbar-color: var(--rh-border-strong) transparent;
}
body.rh-command-center .nav-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.rh-shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  margin: 0 4px 17px;
  color: var(--rh-text);
  text-decoration: none;
}
.rh-shell-brand img { width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; }
.rh-shell-brand-copy strong,
.rh-shell-brand-copy small { display: block; }
.rh-shell-brand-copy strong { color: var(--rh-text); font-size: 15px; letter-spacing: .01em; }
.rh-shell-brand-copy small { margin-top: 2px; color: var(--rh-muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.rh-mobile-nav-toggle { display: none; }
body.rh-command-center .nav-card > strong {
  margin: 11px 9px 7px;
  color: #69819a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.rh-nav-setup-state {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  margin: 1px 0 8px;
  padding: 10px 10px 12px;
  overflow: hidden;
  border: 1px solid var(--rh-border);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(var(--rh-accent-rgb), .1), rgba(255,255,255,.018));
  color: var(--rh-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.rh-nav-setup-state:hover,
.rh-nav-setup-state:focus-visible { border-color: var(--rh-border-strong); box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb), .08); outline: none; transform: translateY(-1px); }
.rh-nav-setup-state.is-ready { background: linear-gradient(135deg, rgba(66, 214, 164, .12), rgba(255,255,255,.018)); }
.rh-nav-setup-copy { min-width: 0; }
.rh-nav-setup-copy small,
.rh-nav-setup-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-nav-setup-copy small { color: var(--rh-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.rh-nav-setup-copy strong { margin-top: 4px; color: var(--rh-text); font-size: 11px; }
.rh-nav-setup-arrow { width: 24px; height: 24px; display: grid; place-items: center; align-self: center; border-radius: 7px; background: rgba(var(--rh-accent-rgb), .13); color: var(--rh-accent); font-size: 12px; }
.rh-nav-setup-state.is-ready .rh-nav-setup-arrow { background: rgba(66, 214, 164, .15); color: var(--rh-good); }
.rh-nav-setup-meter { position: absolute; right: 10px; bottom: 6px; left: 10px; height: 2px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.11); }
.rh-nav-setup-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rh-accent), var(--rh-good)); }
body.rh-command-center #settings-search-wrap { margin: 0 2px 10px !important; }
body.rh-command-center #settings-search {
  min-height: 36px !important;
  padding: 6px 10px 6px 32px !important;
  border-color: var(--rh-border) !important;
  border-radius: 8px !important;
  background: var(--rh-surface) !important;
  color: var(--rh-text) !important;
}
body.rh-command-center #settings-search-wrap::before {
  content: "\f52a";
  position: absolute;
  top: 10px;
  left: 11px;
  z-index: 1;
  color: var(--rh-muted);
  font-family: bootstrap-icons;
  font-size: 12px;
}
body.rh-command-center .settings-tab,
body.rh-command-center .settings-tab.extras-nav-tab {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #a9bdd1;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  box-shadow: none;
  transform: none;
}
body.rh-command-center .settings-tab::before,
body.rh-command-center .settings-tab.extras-nav-tab::before { content: none; }
body.rh-command-center .settings-tab i { width: 18px; color: #7f99b4; font-size: 15px; text-align: center; }
body.rh-command-center .settings-tab:hover { border-color: var(--rh-border); background: rgba(var(--rh-accent-rgb), .045); color: var(--rh-text); }
body.rh-command-center .settings-tab.active {
  border-color: rgba(var(--rh-accent-rgb), .34);
  background: linear-gradient(90deg, rgba(var(--rh-accent-rgb), .18), rgba(var(--rh-accent-rgb), .045));
  color: var(--rh-accent);
  box-shadow: inset 3px 0 0 var(--rh-accent), 0 5px 16px rgba(var(--rh-accent-rgb), .07);
}
body.rh-command-center .settings-tab.active i { color: var(--rh-accent); }
.rh-nav-state {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border: 1px solid rgba(251, 191, 36, .32);
  border-radius: 999px;
  background: rgba(251, 191, 36, .1);
  color: #f5cf72;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .02em;
}
.rh-nav-state.is-ready { border-color: rgba(66, 214, 164, .32); background: rgba(66, 214, 164, .1); color: var(--rh-good); }
body.rh-command-center .settings-tab[data-rh-nav-attention="true"]:not(.active) { border-color: rgba(251, 191, 36, .18); background: rgba(251, 191, 36, .035); }
body.rh-command-center .extras-nav-copy { display: block; }
body.rh-command-center .extras-nav-title { color: inherit; font-size: inherit; font-weight: inherit; }
body.rh-command-center .extras-nav-caption { display: none; }
body.rh-command-center .extras-nav-badge {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid rgba(229, 185, 79, .3);
  border-radius: 999px;
  background: rgba(229, 185, 79, .08);
  color: #e9c866;
  font-size: 8px;
}

body.rh-command-center .config-section,
body.rh-command-center .settings-panel {
  padding: 22px;
  border: 1px solid var(--rh-border);
  border-radius: 10px;
  background: var(--rh-surface);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
}
body.rh-command-center #personalization {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.rh-command-center .section-head { margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--rh-border); }
body.rh-command-center .section-head h2 { color: var(--rh-text); font-size: 21px; letter-spacing: -.01em; }
body.rh-command-center .section-head p { max-width: 760px; color: var(--rh-muted); line-height: 1.55; }
body.rh-command-center .section-kicker { color: var(--rh-accent); font-size: 9px; letter-spacing: .12em; }
body.rh-command-center .section-kicker i { margin-right: 6px; font-size: 13px; }
body.rh-command-center .field-icon i,
body.rh-command-center .module-icon i,
body.rh-command-center .settings-subsection-title i,
body.rh-command-center .extras-side-head i { color: var(--rh-accent); font-size: 14px; }
body.rh-command-center .field-card,
body.rh-command-center .module-card,
body.rh-command-center .settings-subsection,
body.rh-command-center .extras-module,
body.rh-command-center .extras-side,
body.rh-command-center .adm-section {
  border-color: var(--rh-border) !important;
  border-radius: 8px !important;
  background: var(--rh-surface-2) !important;
  box-shadow: none !important;
}
body.rh-command-center .field-card,
body.rh-command-center .module-card { position: relative; }
body.rh-command-center .field-card:hover,
body.rh-command-center .module-card:hover { border-color: var(--rh-border-strong) !important; }
body.rh-command-center .field-card:focus-within,
body.rh-command-center .module-card:focus-within,
body.rh-command-center .settings-subsection:focus-within {
  border-color: var(--rh-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb), .09) !important;
}
body.rh-command-center input,
body.rh-command-center select,
body.rh-command-center textarea {
  border-color: var(--rh-border) !important;
  border-radius: 7px !important;
  background: var(--rh-shell-bg) !important;
  color: var(--rh-text) !important;
}
body.rh-command-center input:focus,
body.rh-command-center select:focus,
body.rh-command-center textarea:focus {
  border-color: var(--rh-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb), .13) !important;
}
body.rh-command-center .button {
  border-color: var(--rh-accent);
  border-radius: 7px;
  background: var(--rh-accent);
  color: #04101a;
  box-shadow: none;
}
body.rh-command-center .button.ghost,
body.rh-command-center .button.secondary {
  border-color: var(--rh-border);
  background: var(--rh-surface-2);
  color: var(--rh-text);
}

/* A new server needs one obvious first task, not a wall of equally weighted
   sections. This launchpad stays inside the real Overview and sends people to
   the exact controls — it is not a second, disconnected setup form. */
.rh-setup-launchpad {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(300px, 1.2fr);
  gap: 18px 24px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(var(--rh-accent-rgb), .34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--rh-accent-rgb), .16), transparent 38%),
    linear-gradient(135deg, rgba(7, 27, 46, .9), rgba(8, 19, 34, .96));
  box-shadow: 0 16px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.045);
}
.rh-setup-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--rh-accent); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.rh-setup-launchpad h4 { margin: 8px 0 6px; color: var(--rh-text); font-size: 18px; line-height: 1.2; }
.rh-setup-launchpad-copy > p { max-width: 570px; margin: 0; color: var(--rh-muted); font-size: 12px; line-height: 1.55; }
.rh-setup-checks { display: grid; gap: 8px; align-content: center; }
.rh-setup-check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--rh-border);
  border-radius: 9px;
  background: rgba(1, 10, 20, .3);
}
.rh-setup-check > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(var(--rh-accent-rgb), .34); border-radius: 50%; color: var(--rh-accent); font-size: 10px; font-weight: 900; }
.rh-setup-check strong,
.rh-setup-check small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-setup-check strong { color: var(--rh-text); font-size: 11.5px; }
.rh-setup-check small { margin-top: 3px; color: var(--rh-muted); font-size: 10px; }
.rh-setup-check > i { color: #f5cf72; font-size: 15px; }
.rh-setup-check.is-done { border-color: rgba(66, 214, 164, .32); background: rgba(66, 214, 164, .06); }
.rh-setup-check.is-done > span { border-color: rgba(66, 214, 164, .46); color: var(--rh-good); }
.rh-setup-check.is-done > i { color: var(--rh-good); }
.rh-setup-launchpad-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-top: 1px; }
.rh-setup-manual { min-height: 37px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--rh-border); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--rh-text); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.rh-setup-manual:hover,
.rh-setup-manual:focus-visible { border-color: var(--rh-border-strong); background: rgba(var(--rh-accent-rgb), .07); outline: none; }

.rh-favorite-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f879e;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.rh-favorite-toggle:hover,
.rh-favorite-toggle:focus-visible {
  background: rgba(229, 185, 79, .1);
  color: var(--rh-premium);
  outline: none;
}
.rh-favorite-toggle:focus-visible { box-shadow: 0 0 0 2px rgba(229, 185, 79, .3); }
.rh-favorite-toggle:hover { transform: translateY(-1px); }
.rh-favorite-toggle.is-active {
  background: transparent;
  color: var(--rh-premium);
  filter: drop-shadow(0 0 5px rgba(229, 185, 79, .24));
}
.rh-favorite-toggle > .bi {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px;
  line-height: 1;
}
.rh-favorite-toggle > .bi::before { display: block; line-height: 1; }
body.rh-command-center .field-card > label:first-of-type,
body.rh-command-center .module-card .module-body strong { padding-right: 34px; }

.rh-favorites-rail {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 39;
  width: 304px;
  overflow-y: auto;
  padding: 20px 16px;
  border-left: 1px solid var(--rh-border);
  background: var(--rh-shell-nav);
}
.rh-favorites-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 2px 16px; border-bottom: 1px solid var(--rh-border); }
.rh-favorites-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--rh-text); font-size: 14px; }
.rh-favorites-head h2 i { color: var(--rh-premium); }
.rh-favorites-head p { margin: 5px 0 0; color: var(--rh-muted); font-size: 10px; line-height: 1.45; }
.rh-favorites-count { min-width: 28px; min-height: 24px; display: grid; place-items: center; border: 1px solid var(--rh-border); border-radius: 999px; color: var(--rh-accent); font-size: 10px; font-weight: 850; }
.rh-favorites-list { display: grid; gap: 8px; margin-top: 14px; }
.rh-favorite-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  background: var(--rh-surface);
  color: var(--rh-text);
}
.rh-favorite-link:hover { border-color: var(--rh-border-strong); }
.rh-favorite-link > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: rgba(var(--rh-accent-rgb), .1); color: var(--rh-accent); }
.rh-favorite-link-copy { min-width: 0; cursor: pointer; }
.rh-favorite-link-copy strong,
.rh-favorite-link-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-favorite-link-copy strong { font-size: 11px; }
.rh-favorite-link-copy small { margin-top: 3px; color: var(--rh-muted); font-size: 9px; text-transform: uppercase; }
.rh-favorite-remove { width: 26px; height: 26px; border: 0; background: transparent; color: #6f879e; cursor: pointer; }
.rh-favorite-remove:hover { color: #fca5a5; }
.rh-favorites-empty { padding: 24px 10px; color: var(--rh-muted); font-size: 11px; line-height: 1.6; text-align: center; }
.rh-favorites-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.rh-favorites-actions button { min-height: 34px; font-size: 10px; }
.rh-favorites-actions .button,
.rh-personalization-toolbar .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

.rh-personalization-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rh-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rh-theme-card {
  position: relative;
  min-width: 0;
  display: block;
  padding: 9px;
  border: 1px solid var(--rh-border);
  border-radius: 9px;
  background: var(--rh-surface-2);
  color: var(--rh-text);
  text-align: left;
  cursor: pointer;
}
.rh-theme-card:hover { border-color: var(--rh-border-strong); }
.rh-theme-card.is-selected { border-color: var(--rh-accent); box-shadow: 0 0 0 2px rgba(var(--rh-accent-rgb), .12); }
.rh-theme-card.is-locked { opacity: .62; cursor: pointer; }
.rh-theme-preview {
  display: block;
  width: 100%;
  height: 78px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  background: #07111f;
}
.rh-theme-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 2px 1px; }
.rh-theme-meta strong { font-size: 11px; }
.rh-theme-meta span { color: var(--rh-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.rh-theme-meta .is-premium { color: #e8c35e; }
.rh-theme-check { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; display: none; place-items: center; border-radius: 50%; background: var(--rh-accent); color: #04101a; font-size: 11px; }
.rh-theme-card.is-selected .rh-theme-check { display: grid; }
.rh-personalization-note { margin: 15px 0 0; padding: 11px 12px; border: 1px solid var(--rh-border); border-radius: 8px; background: rgba(var(--rh-accent-rgb), .055); color: var(--rh-muted); font-size: 11px; line-height: 1.55; }

body.rh-command-center .rh-chat-widget { right: 20px; bottom: 20px; }
body.rh-command-center .rh-chat-toggle {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 5px;
  border: 1px solid var(--rh-border-strong);
  border-radius: 14px;
  background: var(--rh-surface-2);
  box-shadow: 0 14px 32px rgba(0,0,0,.34);
}
body.rh-command-center .rh-chat-toggle img { width: 42px; height: 42px; }
body.rh-command-center .rh-chat-toggle-copy { display: none; }
body.rh-command-center .rh-chat-dot { top: 4px; right: 4px; left: auto; }

@media (max-width: 1320px) {
  body.rh-command-center > main { padding-right: 24px; }
  .rh-shell-topbar { right: 0; }
  .rh-favorites-rail {
    position: static;
    width: 100%;
    margin-top: 18px;
    border: 1px solid var(--rh-border);
    border-radius: 10px;
    background: var(--rh-surface);
  }
  .rh-favorites-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body.rh-command-center > main { padding: 0 12px 42px; }
  .rh-shell-topbar {
    position: sticky;
    right: auto;
    left: auto;
    min-height: 64px;
    margin: 0 -12px 14px;
    padding: 8px 12px;
  }
  .rh-shell-user span,
  .rh-plan-chip span { display: none; }
  .rh-server-switcher-wrap { max-width: min(58vw, 280px); }
  .rh-server-copy strong { max-width: 38vw; }
  .rh-server-switcher-menu { width: min(358px, calc(100vw - 24px)); }
  body.rh-command-center .settings-nav {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid var(--rh-border);
    border-radius: 10px;
  }
  body.rh-command-center .nav-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .rh-shell-brand,
  .rh-mobile-nav-toggle,
  .rh-nav-setup-state,
  body.rh-command-center #settings-search-wrap,
  body.rh-command-center .nav-card > strong { grid-column: 1 / -1; }
  .rh-shell-brand { margin-bottom: 6px; }
  .rh-mobile-nav-toggle {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    background: var(--rh-surface);
    color: var(--rh-text);
    font-size: 11px;
    font-weight: 800;
  }
  .rh-mobile-nav-toggle span { display: inline-flex; align-items: center; gap: 8px; }
  .rh-mobile-nav-toggle > i { transition: transform .16s ease; }
  body.rh-command-center .nav-card.is-mobile-open .rh-mobile-nav-toggle > i { transform: rotate(180deg); }
  body.rh-command-center .nav-card:not(.is-mobile-open) #settings-search-wrap,
  body.rh-command-center .nav-card:not(.is-mobile-open) > strong,
  body.rh-command-center .nav-card:not(.is-mobile-open) .settings-tab:not(.active),
  body.rh-command-center .nav-card:not(.is-mobile-open) > a[href="#premium-upgrade"],
  body.rh-command-center .nav-card:not(.is-mobile-open) > .dirty-actions { display: none !important; }
  body.rh-command-center .settings-tab,
  body.rh-command-center .settings-tab.extras-nav-tab { min-height: 42px; }
  .rh-setup-launchpad { grid-template-columns: 1fr; }
  .rh-setup-launchpad-actions { grid-column: auto; }
  .rh-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .rh-shell-actions .rh-shell-icon-button:not(#rh-personalization-undo-top) { display: none; }
  body.rh-command-center .config-section,
  body.rh-command-center .settings-panel { padding: 15px; }
  .rh-setup-launchpad { padding: 14px; border-radius: 11px; }
  .rh-setup-launchpad h4 { font-size: 16px; }
  .rh-setup-launchpad-actions { align-items: stretch; flex-direction: column; }
  .rh-setup-launchpad-actions > button { width: 100%; justify-content: center; }
  .rh-theme-grid,
  .rh-favorites-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.rh-command-center *, body.rh-command-center *::before, body.rh-command-center *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Operator console shares the command-center language, but without the
   per-server favorites rail.  The higher specificity intentionally wins over
   the legacy inline operator styles while those complex tools are preserved. */
body.rh-operator-shell { background: var(--rh-shell-bg) !important; }
body.rh-command-center.rh-operator-shell > main {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 92px 28px 64px 252px;
}
body.rh-operator-shell .adm-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 232px;
  z-index: 38;
  min-height: 72px;
  margin: 0;
  padding: 10px 22px;
  border: 0;
  border-bottom: 1px solid var(--rh-border);
  border-radius: 0;
  background: var(--rh-shell-top);
}
body.rh-operator-shell .adm-bar-title { display: flex; align-items: center; gap: 9px; color: var(--rh-text); font-size: 15px; font-weight: 850; }
body.rh-operator-shell .adm-bar-title i { color: var(--rh-accent); }
body.rh-operator-shell .adm-bar-info { color: var(--rh-muted); }
body.rh-operator-shell .adm-layout { display: block; }
body.rh-operator-shell .adm-nav {
  position: fixed !important;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 232px !important;
  overflow-y: auto;
  margin: 0 !important;
  padding: 16px 12px !important;
  border: 0;
  border-right: 1px solid var(--rh-border);
  border-radius: 0 !important;
  background: var(--rh-shell-nav) !important;
}
body.rh-operator-shell .adm-nav-btn {
  min-height: 39px;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #a9bdd1;
  font-size: 12px;
  font-weight: 650;
}
body.rh-operator-shell .adm-nav-btn i { width: 18px; color: #7f99b4; font-size: 15px; text-align: center; }
body.rh-operator-shell .adm-nav-btn:hover { border-color: var(--rh-border); background: rgba(var(--rh-accent-rgb), .045); color: var(--rh-text); }
body.rh-operator-shell .adm-nav-btn.active {
  border-color: rgba(var(--rh-accent-rgb), .2);
  background: rgba(var(--rh-accent-rgb), .13);
  color: var(--rh-accent);
  box-shadow: inset 2px 0 0 var(--rh-accent);
}
body.rh-operator-shell .adm-nav-btn.active i { color: var(--rh-accent); }
.rh-nav-alert {
  min-width: 19px;
  min-height: 19px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border: 1px solid rgba(248, 113, 113, .34);
  border-radius: 999px;
  background: rgba(239, 68, 68, .16);
  color: #fca5a5;
  font-size: 9px;
  font-weight: 850;
}
body.rh-operator-shell .adm-main { width: 100%; min-width: 0; }
body.rh-operator-shell .tab-head {
  margin: 0 0 18px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--rh-border);
}
body.rh-operator-shell .tab-head h2 { display: flex; align-items: center; gap: 9px; color: var(--rh-text); font-size: 21px; }
body.rh-operator-shell .tab-head h2 i { color: var(--rh-accent); font-size: 18px; }
body.rh-operator-shell .tab-desc { color: var(--rh-muted); }
body.rh-operator-shell .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
body.rh-operator-shell .kpi-card,
body.rh-operator-shell .adm-section,
body.rh-operator-shell .online-now,
body.rh-operator-shell .server-detail-panel,
body.rh-operator-shell .ad-campaign-card {
  border-color: var(--rh-border) !important;
  border-radius: 9px !important;
  background: var(--rh-surface) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .15);
}
body.rh-operator-shell .kpi-card { min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; }
body.rh-operator-shell .kpi-val { color: var(--rh-text); font-size: 28px; }
body.rh-operator-shell .kpi-lbl { color: var(--rh-muted); line-height: 1.4; }
body.rh-operator-shell .adm-section { padding: 19px; }
body.rh-operator-shell .adm-section h3 { color: var(--rh-text); font-size: 15px; }
body.rh-operator-shell .rh-legacy-upgraded-icon {
  color: var(--rh-accent);
  display: inline-flex;
  margin-right: .48rem;
  vertical-align: -.06em;
}
body.rh-operator-shell .adm-section-desc { color: var(--rh-muted); }
body.rh-operator-shell .adm-table th {
  padding: 9px 10px;
  border-bottom-color: var(--rh-border);
  background: var(--rh-surface-2);
  color: #8fa8c2;
  font-size: 9px;
  letter-spacing: .08em;
}
body.rh-operator-shell .adm-table td { padding: 10px; border-bottom-color: rgba(115, 168, 218, .09); }
body.rh-operator-shell .adm-table tbody tr:hover td { background: rgba(var(--rh-accent-rgb), .035); }
body.rh-operator-shell .adm-form-row input,
body.rh-operator-shell .adm-form-row select,
body.rh-operator-shell .adm-form-row textarea {
  border-color: var(--rh-border) !important;
  border-radius: 7px !important;
  background: var(--rh-shell-bg) !important;
}

@media (max-width: 900px) {
  body.rh-command-center.rh-operator-shell > main { padding: 76px 12px 42px; }
  body.rh-operator-shell .adm-bar { left: 0; min-height: 64px; padding: 8px 12px; }
  body.rh-operator-shell .adm-bar-info code,
  body.rh-operator-shell .adm-bar-info > span:first-child { display: none; }
  body.rh-operator-shell .adm-mob-toggle { display: flex; }
  body.rh-operator-shell .adm-nav {
    position: static !important;
    display: none;
    width: 100% !important;
    margin: 0 0 14px !important;
    border: 1px solid var(--rh-border);
    border-radius: 10px !important;
  }
  body.rh-operator-shell .adm-nav.open { display: block; }
  body.rh-operator-shell .adm-nav .rh-shell-brand { display: none; }
}

/* Desktop readability pass. The shell stays dense, but labels and actions must
   read like a production dashboard rather than a scaled design mock-up. */
@media (min-width: 1000px) {
  body.rh-command-center { font-size: 15px; }
  .rh-shell-topbar { min-height: 80px; padding: 12px 26px; }
  body.rh-command-center > main { padding-top: 104px; }
  .rh-server-switcher { min-height: 54px; }
  .rh-server-switcher img,
  .rh-server-switcher .rh-server-fallback { width: 40px; height: 40px; flex-basis: 40px; }
  .rh-server-copy strong { font-size: 16px; }
  .rh-server-copy small { font-size: 12px; }
  .rh-server-switcher-head strong { font-size: 15px; }
  .rh-server-switcher-head small { font-size: 12px; }
  .rh-server-switcher-search input { font-size: 14px; }
  .rh-server-switcher-item { min-height: 58px; }
  .rh-server-item-copy strong { font-size: 14px; }
  .rh-server-item-copy small { font-size: 11px; }
  .rh-server-switcher-all { font-size: 13px; }
  .rh-plan-chip { min-height: 36px; padding: 0 13px; font-size: 13px; }
  .rh-shell-user span { font-size: 14px; }

  .rh-shell-brand-copy strong { font-size: 17px; }
  .rh-shell-brand-copy small { font-size: 11px; }
  body.rh-command-center .nav-card > strong { font-size: 11px; }
  body.rh-command-center #settings-search { min-height: 42px !important; font-size: 14px; }
  body.rh-command-center .settings-tab,
  body.rh-command-center .settings-tab.extras-nav-tab { min-height: 44px; padding: 9px 11px; font-size: 14px; }
  body.rh-command-center .settings-tab i { font-size: 17px; }
  body.rh-command-center .extras-nav-badge { font-size: 10px; }
  body.rh-command-center .config-section,
  body.rh-command-center .settings-panel { padding: 27px; }
  body.rh-command-center .section-head h2 { font-size: 26px; }
  body.rh-command-center .section-head p { font-size: 15px; }
  body.rh-command-center .section-kicker { font-size: 11px; }

  .rh-favorites-head h2 { font-size: 16px; }
  .rh-favorites-head p { font-size: 12px; }
  .rh-favorites-count { font-size: 12px; }
  .rh-favorite-link { min-height: 56px; }
  .rh-favorite-link-copy strong { font-size: 13px; }
  .rh-favorite-link-copy small { font-size: 11px; }
  .rh-favorites-empty { font-size: 13px; }
  .rh-favorites-actions button { min-height: 39px; font-size: 12px; }
  .rh-theme-meta strong { font-size: 13px; }
  .rh-theme-meta span { font-size: 11px; }
  .rh-personalization-note { padding: 14px; font-size: 13px; }

  body.rh-command-center.rh-operator-shell > main { padding-top: 104px; }
  body.rh-operator-shell .adm-bar { min-height: 80px; padding: 12px 26px; }
  body.rh-operator-shell .adm-bar-title { font-size: 17px; }
  body.rh-operator-shell .adm-bar-info { font-size: 13px; }
  body.rh-operator-shell .adm-nav-btn { min-height: 44px; padding: 9px 11px; font-size: 14px; }
  body.rh-operator-shell .adm-nav-btn i { font-size: 17px; }
  .rh-nav-alert { min-width: 22px; min-height: 22px; font-size: 10px; }
  body.rh-operator-shell .tab-head h2 { font-size: 26px; }
  body.rh-operator-shell .tab-head h2 i { font-size: 21px; }
  body.rh-operator-shell .tab-desc { font-size: 15px; }
  body.rh-operator-shell .kpi-card { min-height: 124px; padding: 20px 14px; }
  body.rh-operator-shell .kpi-val { font-size: 34px; }
  body.rh-operator-shell .kpi-lbl { font-size: 14px; }
  body.rh-operator-shell .adm-section { padding: 24px; }
  body.rh-operator-shell .adm-section h3 { font-size: 18px; }
  body.rh-operator-shell .adm-section-desc { font-size: 14px; }
  body.rh-operator-shell .adm-table th { padding: 11px 12px; font-size: 11px; }
  body.rh-operator-shell .adm-table td { padding: 12px; font-size: 14px; }
}
