/*
 * Corgi Bot dashboard launch UI.
 * This file is loaded after the legacy stylesheet so the public dashboard has
 * one predictable product shell without changing existing feature behaviour.
 */

.dashboard-page {
  --dash-bg: #10161a;
  --dash-rail: #0b1014;
  --dash-rail-strong: #080d10;
  --dash-surface: #151d22;
  --dash-surface-raised: #1a242a;
  --dash-input: #0b1115;
  --dash-border: rgba(137, 177, 187, 0.16);
  --dash-border-strong: rgba(137, 177, 187, 0.29);
  --dash-text: #f2f6f7;
  --dash-muted: #a7b7bc;
  --dash-subtle: #71848a;
  --dash-primary: #3ea9b8;
  --dash-primary-hover: #56bbc7;
  --dash-success: #45c985;
  --dash-warning: #f1b84b;
  --dash-danger: #e76d72;
  --dash-sidebar-width: 244px;
  --dash-header-height: 60px;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--dash-text);
  background: var(--dash-bg);
}

.dashboard-page *,
.dashboard-page *::before,
.dashboard-page *::after {
  box-sizing: border-box;
}

.dashboard-page button,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  letter-spacing: 0;
}

.dashboard-page button:focus-visible,
.dashboard-page a:focus-visible,
.dashboard-page input:focus-visible,
.dashboard-page select:focus-visible,
.dashboard-page textarea:focus-visible {
  outline: 2px solid rgba(62, 169, 184, 0.9);
  outline-offset: 2px;
}

.dashboard-page [hidden],
.dashboard-page .is-dashboard-hidden {
  display: none !important;
}

/* App shell */
.dashboard-page .dashboard-app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: var(--dash-sidebar-width);
  padding: 14px 12px 12px;
  border-right: 1px solid var(--dash-border);
  background: var(--dash-rail);
  box-shadow: none;
}

.dashboard-page .dashboard-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-page .dashboard-side-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.dashboard-page .dashboard-current-server {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--dash-border);
  border-left: 3px solid var(--dash-warning);
  border-radius: 7px;
  background: var(--dash-rail-strong);
}

.dashboard-page .dashboard-current-server > span,
.dashboard-page .dashboard-side-nav > strong {
  color: var(--dash-subtle);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-page .dashboard-current-server div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.dashboard-page .dashboard-current-server img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-page .dashboard-current-server strong,
.dashboard-page .dashboard-current-server small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .dashboard-current-server strong {
  font-size: 14px;
}

.dashboard-page .dashboard-current-server small {
  color: var(--dash-success);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-page .dashboard-side-nav {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 0;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b404d transparent;
}

.dashboard-page .dashboard-side-nav > strong {
  margin-top: 12px;
  padding: 0 10px 5px;
}

.dashboard-page .dashboard-side-nav > strong:first-child {
  margin-top: 0;
}

.dashboard-page .dashboard-side-nav > button,
.dashboard-page .dashboard-side-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px 0 31px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dash-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.dashboard-page .dashboard-side-nav > button::before,
.dashboard-page .dashboard-side-nav > a::before {
  content: "";
  position: absolute;
  left: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.dashboard-page .dashboard-side-nav > button:hover,
.dashboard-page .dashboard-side-nav > a:hover,
.dashboard-page .dashboard-side-nav > button.is-active {
  color: #fff;
  background: #18242a;
}

.dashboard-page .dashboard-side-nav > button.is-active::before {
  background: var(--dash-success);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(69, 201, 133, 0.13);
}

.dashboard-page .dashboard-feature-nav {
  display: grid;
  gap: 9px;
  margin: 0 0 8px;
}

.dashboard-page .feature-nav-group {
  display: grid;
  gap: 3px;
}

.dashboard-page .feature-nav-label {
  padding: 8px 10px 3px;
  color: var(--dash-subtle);
  font-size: 10px;
  font-weight: 900;
}

.dashboard-page .dashboard-side-nav .dashboard-feature-nav button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dash-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .dashboard-side-nav .dashboard-feature-nav button::before {
  display: none;
}

.dashboard-page .dashboard-side-nav .dashboard-feature-nav button:hover,
.dashboard-page .dashboard-side-nav .dashboard-feature-nav button.is-active {
  color: #fff;
  background: #18242a;
  box-shadow: none;
}

.dashboard-page .feature-nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #1e7483;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-page .feature-nav-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dashboard-page .feature-nav-copy strong,
.dashboard-page .feature-nav-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .feature-nav-copy strong {
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page .feature-nav-copy small {
  color: var(--dash-subtle);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-page .dashboard-feature-nav button.is-active .feature-nav-icon {
  background: var(--dash-primary);
}

.dashboard-page .dashboard-feature-nav button.is-active .feature-nav-copy small {
  color: var(--dash-success);
}

.dashboard-page .dashboard-side-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  color: #798397;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-page .dashboard-side-footer strong {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(69, 201, 133, 0.13);
  color: #7de5b4;
  font-size: 10px;
}

.dashboard-page .dashboard-app-header {
  position: fixed;
  inset: 0 0 auto var(--dash-sidebar-width);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--dash-header-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--dash-border);
  background: rgba(11, 16, 20, 0.96);
  backdrop-filter: blur(12px);
}

.dashboard-page .dashboard-app-header .brand {
  display: none;
}

.dashboard-page .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-page .header-status,
.dashboard-page .header-button,
.dashboard-page .dashboard-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-page .header-status {
  border: 1px solid var(--dash-border);
  background: var(--dash-surface);
  color: #dfe5ef;
}

.dashboard-page .header-button {
  border: 1px solid transparent;
  background: var(--dash-primary);
  color: #fff;
}

.dashboard-page .header-button:hover {
  background: var(--dash-primary-hover);
}

.dashboard-page .dashboard-logout-button {
  border: 1px solid var(--dash-border-strong);
  background: transparent;
  color: #c5cbd7;
}

.dashboard-page .dashboard-main {
  min-height: 100vh;
  margin-left: var(--dash-sidebar-width);
  padding: var(--dash-header-height) 0 54px;
  background: var(--dash-bg);
}

.dashboard-page .dashboard-auth-hero,
.dashboard-page .dashboard-mobile-auth-actions,
.dashboard-page .dashboard-topbar .dashboard-select-label,
.dashboard-page .dashboard-kpis,
.dashboard-page .feature-center-tabs,
.dashboard-page .feature-center-summary,
.dashboard-page .mobile-dashboard-tabs,
.dashboard-page .mobile-feature-tabs,
.dashboard-page .site-footer {
  display: none !important;
}

.dashboard-page[data-dashboard-auth="signed-out"] .dashboard-auth-hero,
.dashboard-page[data-dashboard-auth="error"] .dashboard-auth-hero {
  display: grid !important;
}

.dashboard-page[data-dashboard-auth="signed-out"] .dashboard-live,
.dashboard-page[data-dashboard-auth="error"] .dashboard-live {
  display: none !important;
}

.dashboard-page[data-dashboard-auth="loading"] .dashboard-live {
  display: none !important;
}

.dashboard-page[data-dashboard-auth="signed-out"] .dashboard-app-sidebar,
.dashboard-page[data-dashboard-auth="error"] .dashboard-app-sidebar,
.dashboard-page[data-dashboard-auth="loading"] .dashboard-app-sidebar {
  display: none;
}

.dashboard-page[data-dashboard-auth="signed-out"] .dashboard-app-header,
.dashboard-page[data-dashboard-auth="error"] .dashboard-app-header,
.dashboard-page[data-dashboard-auth="loading"] .dashboard-app-header {
  left: 0;
  justify-content: space-between;
}

.dashboard-page[data-dashboard-auth="signed-out"] .dashboard-app-header .brand,
.dashboard-page[data-dashboard-auth="error"] .dashboard-app-header .brand,
.dashboard-page[data-dashboard-auth="loading"] .dashboard-app-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dash-text);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-page[data-dashboard-auth="signed-out"] .dashboard-main,
.dashboard-page[data-dashboard-auth="error"] .dashboard-main,
.dashboard-page[data-dashboard-auth="loading"] .dashboard-main {
  margin-left: 0;
}

.dashboard-page .dashboard-auth-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  align-items: center;
  gap: 54px;
  width: min(1120px, calc(100% - 64px));
  min-height: calc(100vh - var(--dash-header-height) - 54px);
  margin: 0 auto;
  padding: 68px 0 82px;
  overflow: hidden;
  background: transparent;
}

.dashboard-page .dashboard-auth-hero::before {
  content: "";
  position: absolute;
  inset: 56px -7% 56px 42%;
  z-index: -2;
  border-radius: 8px;
  background: url("./assets/promo-banner.png") center / cover no-repeat;
  opacity: 0.22;
}

.dashboard-page .dashboard-auth-hero::after {
  content: "";
  position: absolute;
  inset: 40px -9% 40px 32%;
  z-index: -1;
  border-radius: 8px;
  background: rgba(16, 22, 26, 0.58);
}

.dashboard-page .dashboard-auth-hero > div {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.dashboard-page .dashboard-auth-hero .eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--dash-warning);
  font-size: 11px;
  font-weight: 900;
}

.dashboard-page .dashboard-auth-hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.14;
}

.dashboard-page .dashboard-auth-hero > div > p:not(.eyebrow):not(.dashboard-auth-note) {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--dash-muted);
  font-size: 16px;
  line-height: 1.75;
}

.dashboard-page .dashboard-auth-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dashboard-page .dashboard-auth-hero .primary-button,
.dashboard-page .dashboard-auth-hero .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-page .dashboard-auth-hero .primary-button {
  background: var(--dash-primary);
  color: #fff;
}

.dashboard-page .dashboard-auth-hero .secondary-button {
  border-color: var(--dash-border-strong);
  background: var(--dash-surface);
  color: var(--dash-text);
}

.dashboard-page .dashboard-auth-note {
  margin: 16px 0 0;
  color: var(--dash-subtle);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .dashboard-auth-hero .dashboard-status {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: center;
}

.dashboard-page .dashboard-auth-hero .status-card {
  display: grid;
  align-content: center;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: rgba(11, 17, 21, 0.92);
}

.dashboard-page .dashboard-auth-hero .status-card strong {
  margin: 0 0 6px;
  font-size: 19px;
}

.dashboard-page .dashboard-auth-hero .status-card span {
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page .dashboard-auth-hero .status-card small {
  margin-top: 6px;
  color: var(--dash-subtle);
  font-size: 10px;
}

.dashboard-page .dashboard-band.dashboard-live {
  display: block;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px 28px 32px;
}

.dashboard-page .dashboard-band.dashboard-live > .section-heading {
  display: grid;
  gap: 5px;
  margin: 0 0 18px;
  padding: 0 124px 0 0;
  text-align: left;
}

.dashboard-page .dashboard-band.dashboard-live > .section-heading .eyebrow {
  display: none;
}

.dashboard-page .dashboard-band.dashboard-live > .section-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.dashboard-page .dashboard-band.dashboard-live > .section-heading p {
  max-width: 920px;
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-page .dashboard-topbar {
  position: absolute;
  top: 78px;
  right: max(28px, calc((100vw - var(--dash-sidebar-width) - 1480px) / 2 + 28px));
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.dashboard-page .dashboard-refresh-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: var(--dash-surface-raised);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Guild selector */
.dashboard-page .server-gallery-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(152px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.dashboard-page .server-gallery-panel > .status-note:only-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 84px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: var(--dash-surface);
  color: var(--dash-muted);
  line-height: 1.7;
}

.dashboard-page .server-gallery-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: stretch;
  min-width: 0;
  height: 188px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
  color: #fff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-page .server-gallery-card:hover {
  border-color: rgba(62, 169, 184, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.dashboard-page .server-gallery-card::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -2;
  background: var(--server-card-image) center / cover;
  filter: blur(16px) saturate(0.72);
  opacity: 0.5;
  transform: scale(1.12);
}

.dashboard-page .server-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 14, 18, 0.16), rgba(9, 14, 18, 0.92) 62%, #0b1115);
}

.dashboard-page .server-gallery-card[aria-pressed="true"] {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 1px rgba(62, 169, 184, 0.28), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.dashboard-page .server-gallery-banner {
  position: absolute;
  inset: 14px 0 auto;
  display: grid;
  place-items: center;
  width: 100%;
  height: 58px;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.dashboard-page .server-gallery-banner::before,
.dashboard-page .server-gallery-banner::after {
  display: none;
}

.dashboard-page .server-gallery-banner img {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.dashboard-page .server-gallery-body {
  position: absolute;
  inset: 82px 12px 11px;
  display: grid;
  align-content: start;
  grid-template-columns: 1fr;
  gap: 3px;
  min-width: 0;
}

.dashboard-page .server-gallery-badge {
  display: none;
}

.dashboard-page .server-gallery-body strong,
.dashboard-page .server-gallery-role,
.dashboard-page .server-gallery-stats {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .server-gallery-body strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.dashboard-page .server-gallery-role {
  color: #d5d9e2;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-page .server-gallery-stats {
  color: #a6afbf;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-page .server-gallery-action {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 29px;
  margin-top: 4px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--dash-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-page .server-gallery-card[aria-pressed="true"] .server-gallery-action {
  background: #28343a;
}

.dashboard-page .server-gallery-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-style: dashed;
  background: #11191e;
  text-align: center;
}

.dashboard-page .server-gallery-add-card::before,
.dashboard-page .server-gallery-add-card::after {
  display: none;
}

.dashboard-page .server-gallery-add-card strong {
  font-size: 14px;
}

.dashboard-page .server-gallery-add-card small {
  max-width: 130px;
  color: var(--dash-muted);
  font-size: 10px;
  line-height: 1.4;
}

.dashboard-page .server-gallery-add-card .server-gallery-action {
  min-height: 29px;
  margin-top: 1px;
}

.dashboard-page .server-gallery-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #303440;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
}

/* Main work area */
.dashboard-page .dashboard-panel {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page .panel-inline-head,
.dashboard-page .settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}

.dashboard-page .panel-inline-head h3,
.dashboard-page .panel-inline-head h4,
.dashboard-page .settings-head h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.dashboard-page .panel-inline-head p,
.dashboard-page .settings-head p {
  margin: 5px 0 0;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-page .panel-inline-head button,
.dashboard-page .settings-head button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: var(--dash-surface-raised);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-page .feature-center-panel {
  margin: 0;
}

.dashboard-page .feature-center-panel > .panel-inline-head {
  margin-bottom: 14px;
}

.dashboard-page .feature-center-grid,
.dashboard-page .feature-center-grid.is-grouped {
  display: block !important;
}

.dashboard-page .feature-overview-shell {
  display: grid;
  gap: 18px;
  width: 100%;
}

.dashboard-page .feature-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
}

.dashboard-page .feature-overview-head > div {
  display: grid;
  gap: 3px;
}

.dashboard-page .feature-overview-head > div > span {
  color: var(--dash-subtle);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-page .feature-overview-head strong {
  font-size: 19px;
  font-weight: 900;
}

.dashboard-page .feature-overview-head p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 12px;
}

.dashboard-page .feature-overview-state {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(69, 201, 133, 0.13);
  color: #7ce6b4;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-page .feature-overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .feature-overview-kpis article {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
}

.dashboard-page .feature-overview-kpis strong {
  font-size: 24px;
  font-weight: 900;
}

.dashboard-page .feature-overview-kpis span {
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .feature-overview-actions {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.dashboard-page .feature-overview-actions > div:first-child {
  display: grid;
  gap: 4px;
}

.dashboard-page .feature-overview-actions > div:first-child > strong {
  font-size: 17px;
  font-weight: 900;
}

.dashboard-page .feature-overview-actions > div:first-child > p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 12px;
}

.dashboard-page .feature-overview-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .feature-overview-action-grid button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .feature-overview-action-grid button:hover {
  border-color: rgba(62, 169, 184, 0.6);
  background: var(--dash-surface-raised);
}

.dashboard-page .feature-overview-action-grid button > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #1e7483;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-page .feature-overview-action-grid strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .feature-overview-action-grid small {
  color: var(--dash-success);
  font-size: 10px;
  font-weight: 800;
}

/* Feature pages and forms */
.dashboard-page .module-action-panel {
  display: grid;
  gap: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-page .module-action-panel[hidden] {
  display: none !important;
}

.dashboard-page .module-action-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-page .module-action-head-tools p {
  margin: 0;
}

.dashboard-page .module-action-head-tools button {
  min-height: 36px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  padding: 0 13px;
  background: var(--dash-surface-raised);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page .module-action-tabs {
  display: none !important;
}

.dashboard-page .module-action-form {
  display: grid;
  align-content: start;
  gap: 16px;
}

.dashboard-page .module-subaction-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: none;
  padding-bottom: 2px;
}

.dashboard-page .module-subaction-tabs button {
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: var(--dash-surface);
  color: #b9c1cf;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-page .module-subaction-tabs button:hover,
.dashboard-page .module-subaction-tabs button.is-active {
  border-color: rgba(62, 169, 184, 0.62);
  background: rgba(62, 169, 184, 0.13);
  color: #fff;
}

.dashboard-page .module-subaction-page {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1080px;
  padding: 20px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
}

.dashboard-page .module-subaction-page[hidden] {
  display: none !important;
}

.dashboard-page .module-subaction-page header {
  display: grid;
  gap: 5px;
}

.dashboard-page .module-subaction-page h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.dashboard-page .module-subaction-page p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-page .module-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  max-width: none;
}

.dashboard-page .module-action-grid .wide-field {
  grid-column: 1 / -1;
}

.dashboard-page .module-action-grid label,
.dashboard-page .settings-form label,
.dashboard-page .maintenance-form label,
.dashboard-page .owner-webhook-form label,
.dashboard-page .owner-pal-channel-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #c8ced9;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--dash-border-strong);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--dash-input);
  color: #fff;
  font: inherit;
  font-size: 13px;
}

.dashboard-page textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.dashboard-page input::placeholder,
.dashboard-page textarea::placeholder {
  color: #697386;
}

.dashboard-page input:focus,
.dashboard-page select:focus,
.dashboard-page textarea:focus {
  border-color: rgba(62, 169, 184, 0.78);
}

.dashboard-page .module-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dashboard-page .module-submit-row button,
.dashboard-page .settings-actions button,
.dashboard-page .owner-pal-actions button,
.dashboard-page .owner-pal-broadcast button,
.dashboard-page .owner-command-actions button,
.dashboard-page .owner-backup-actions button,
.dashboard-page .owner-changelog-box button {
  width: auto;
  min-width: 132px;
  min-height: 40px;
  max-width: none;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--dash-primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-page .module-subaction-note {
  max-width: none;
  padding: 12px 14px;
  border: 1px solid rgba(239, 193, 93, 0.3);
  border-radius: 6px;
  background: rgba(239, 193, 93, 0.08);
  color: #f1cf86 !important;
}

/* Settings and repeated tool surfaces */
.dashboard-page .settings-dashboard-panel,
.dashboard-page .health-dashboard-panel,
.dashboard-page .owner-dashboard-panel,
.dashboard-page [data-mobile-dashboard-section="crosschat"] {
  width: 100%;
}

.dashboard-page .settings-page-tabs {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 16px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-page .settings-page-tabs button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: var(--dash-surface);
  color: #aeb6c5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .settings-page-tabs button strong {
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page .settings-page-tabs button span {
  display: none;
}

.dashboard-page .settings-page-tabs button.is-active {
  border-color: rgba(62, 169, 184, 0.66);
  background: rgba(62, 169, 184, 0.13);
  color: #fff;
}

.dashboard-page .settings-form {
  display: grid;
  gap: 14px;
}

.dashboard-page .settings-form section {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1120px;
  padding: 20px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
}

.dashboard-page .settings-form section[hidden] {
  display: none !important;
}

.dashboard-page .settings-form h4,
.dashboard-page .settings-form .settings-page-note {
  grid-column: 1 / -1;
}

.dashboard-page .settings-form h4 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 900;
}

.dashboard-page .settings-form label {
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: #191c23;
}

.dashboard-page .settings-form label:has(textarea) {
  grid-column: 1 / -1;
  min-height: 0;
}

.dashboard-page .settings-form section[data-settings-page="features"] {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.dashboard-page .settings-form section[data-settings-page="features"] label {
  min-height: 88px;
}

.dashboard-page .settings-form label button,
.dashboard-page .settings-form section > button[data-setting-clear] {
  justify-self: start;
  width: auto;
  min-width: 126px;
  min-height: 34px;
  border: 1px solid var(--dash-border);
  border-radius: 5px;
  padding: 0 12px;
  background: #303440;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-page .settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-page .health-grid,
.dashboard-page .owner-dashboard-grid,
.dashboard-page .owner-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .health-card,
.dashboard-page .owner-dashboard-grid article,
.dashboard-page .owner-health-grid article,
.dashboard-page .crosschat-list article,
.dashboard-page .music-queue-box,
.dashboard-page .crosschat-manager,
.dashboard-page .owner-export-box,
.dashboard-page .owner-mac-health-box,
.dashboard-page .owner-palworld-box,
.dashboard-page .owner-command-box,
.dashboard-page .owner-backup-list-box,
.dashboard-page .owner-log-search-box,
.dashboard-page .owner-webhook-box,
.dashboard-page .owner-dctw-box,
.dashboard-page .owner-changelog-box {
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
  box-shadow: none;
}

.dashboard-page .owner-dashboard-panel {
  display: grid;
  gap: 18px;
}

.dashboard-page .owner-dashboard-grid article {
  min-height: 84px;
  padding: 15px;
}

.dashboard-page .owner-backup-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-page .owner-backup-heading h4,
.dashboard-page .owner-backup-heading p {
  margin: 0;
}

.dashboard-page .owner-backup-heading p {
  margin-top: 5px;
}

.dashboard-page .owner-backup-create-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.dashboard-page .owner-backup-create-actions button {
  width: auto;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--dash-primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .dashboard-page .owner-backup-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-page .owner-backup-create-actions,
  .dashboard-page .owner-backup-create-actions button {
    width: 100%;
  }
}

.dashboard-page .maintenance-form,
.dashboard-page .owner-export-box,
.dashboard-page .owner-mac-health-box,
.dashboard-page .owner-palworld-box,
.dashboard-page .owner-command-box,
.dashboard-page .owner-backup-list-box,
.dashboard-page .owner-log-search-box,
.dashboard-page .owner-webhook-box,
.dashboard-page .owner-dctw-box,
.dashboard-page .owner-changelog-box {
  padding: 18px;
}

.dashboard-page .dashboard-grid {
  display: contents;
}

.dashboard-page .music-dashboard-panel,
.dashboard-page .dashboard-grid > [data-mobile-dashboard-section="crosschat"] {
  width: 100%;
}

.dashboard-page .music-play-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: var(--dash-surface);
}

.dashboard-page .music-play-form label:first-child,
.dashboard-page .music-play-form label:nth-child(2),
.dashboard-page .music-play-form button {
  grid-column: auto;
}

.dashboard-page .music-play-form button {
  min-width: 150px;
  min-height: 42px;
}

.dashboard-page .music-dashboard-controls {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-page .music-queue-box,
.dashboard-page .crosschat-manager {
  padding: 18px;
}

.dashboard-page .dashboard-status-bar {
  position: fixed;
  inset: auto 0 0 var(--dash-sidebar-width);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 36px;
  padding: 0 24px;
  border-top: 1px solid var(--dash-border);
  background: rgba(18, 20, 26, 0.98);
  color: #8993a6;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-page .dashboard-status-bar strong {
  color: #a9e8c8;
}

.dashboard-page .dashboard-status-bar a {
  margin-left: auto;
  color: #78adf4;
  text-decoration: none;
}

/* Responsive shell */
@media (max-width: 1280px) {
  .dashboard-page .server-gallery-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .feature-overview-action-grid,
  .dashboard-page .feature-overview-kpis,
  .dashboard-page .health-grid,
  .dashboard-page .owner-dashboard-grid,
  .dashboard-page .owner-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-page {
    --dash-header-height: 56px;
  }

  .dashboard-page .dashboard-auth-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(760px, calc(100% - 36px));
    min-height: auto;
    padding: 46px 0 64px;
  }

  .dashboard-page .dashboard-auth-hero::before {
    inset: 42% -18px 18px;
    opacity: 0.14;
  }

  .dashboard-page .dashboard-auth-hero::after {
    inset: 34% -22px 0;
    background: rgba(16, 22, 26, 0.68);
  }

  .dashboard-page .dashboard-auth-hero > div {
    max-width: 640px;
  }

  .dashboard-page .dashboard-auth-hero .dashboard-status {
    width: 100%;
  }

  .dashboard-page .dashboard-app-sidebar {
    display: none;
  }

  .dashboard-page .dashboard-app-header {
    left: 0;
    justify-content: space-between;
    padding: 0 14px;
  }

  .dashboard-page .dashboard-app-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
  }

  .dashboard-page .dashboard-app-header .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
  }

  .dashboard-page .dashboard-main {
    margin-left: 0;
    padding-bottom: 24px;
  }

  .dashboard-page .dashboard-mobile-auth-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 14px 0;
  }

  .dashboard-page .dashboard-mobile-auth-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  .dashboard-page .dashboard-mobile-auth-actions a[hidden] {
    display: none !important;
  }

  .dashboard-page .dashboard-band.dashboard-live {
    padding: 18px 14px 24px;
  }

  .dashboard-page .dashboard-topbar {
    position: static;
    display: block;
    margin: 0 0 12px;
  }

  .dashboard-page .dashboard-refresh-button {
    width: 100%;
  }

  .dashboard-page .mobile-dashboard-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 10px;
    padding: 7px;
    border: 1px solid var(--dash-border);
    border-radius: 7px;
    background: var(--dash-rail);
  }

  .dashboard-page .mobile-dashboard-tabs .dashboard-sidebar-title {
    display: none;
  }

  .dashboard-page .mobile-dashboard-tabs button {
    justify-content: center;
    min-height: 36px;
    padding: 0 6px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #9fa8b9;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
  }

  .dashboard-page .mobile-dashboard-tabs button::before {
    display: none;
  }

  .dashboard-page .mobile-dashboard-tabs button.is-active {
    background: var(--dash-surface-raised);
    color: #fff;
  }

  .dashboard-page .mobile-feature-tabs {
    display: flex !important;
    gap: 7px;
    align-items: center;
    margin: 0 0 16px;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid var(--dash-border);
    border-radius: 7px;
    background: var(--dash-rail);
    scrollbar-width: thin;
  }

  .dashboard-page .mobile-feature-tabs > span {
    flex: 0 0 auto;
    padding-left: 5px;
    color: var(--dash-subtle);
    font-size: 11px;
    font-weight: 800;
  }

  .dashboard-page .mobile-feature-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid var(--dash-border);
    border-radius: 5px;
    padding: 0 11px;
    background: var(--dash-surface);
    color: #b3bbc8;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  .dashboard-page .mobile-feature-tabs button.is-active {
    border-color: rgba(62, 169, 184, 0.6);
    background: rgba(62, 169, 184, 0.14);
    color: #fff;
  }

  .dashboard-page .dashboard-status-bar {
    display: none;
  }

  .dashboard-page .dashboard-grid,
  .dashboard-page .module-action-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .music-play-form {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-page .music-play-form label:first-child,
  .dashboard-page .music-play-form button {
    grid-column: 1 / -1;
  }

  .dashboard-page .music-dashboard-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .module-action-grid .wide-field {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .dashboard-page .dashboard-auth-hero {
    width: calc(100% - 28px);
    gap: 24px;
    padding: 34px 0 52px;
  }

  .dashboard-page .dashboard-auth-hero h1 {
    font-size: 36px;
  }

  .dashboard-page .dashboard-auth-hero > div > p:not(.eyebrow):not(.dashboard-auth-note) {
    font-size: 14px;
  }

  .dashboard-page .dashboard-auth-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-page[data-dashboard-auth="signed-out"] .dashboard-mobile-auth-actions,
  .dashboard-page[data-dashboard-auth="error"] .dashboard-mobile-auth-actions {
    display: none !important;
  }

  .dashboard-page .dashboard-app-header .header-actions {
    display: none;
  }

  .dashboard-page .dashboard-band.dashboard-live > .section-heading {
    padding-right: 0;
  }

  .dashboard-page .dashboard-band.dashboard-live > .section-heading h2 {
    font-size: 22px;
  }

  .dashboard-page .server-gallery-panel {
    grid-auto-flow: column;
    grid-auto-columns: minmax(228px, 78vw);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .dashboard-page .server-gallery-card {
    height: 182px;
    scroll-snap-align: start;
  }

  .dashboard-page .music-play-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .dashboard-page .music-play-form label,
  .dashboard-page .music-play-form label:first-child,
  .dashboard-page .music-play-form label:nth-child(2),
  .dashboard-page .music-play-form button {
    grid-column: auto;
  }

  .dashboard-page .feature-overview-kpis,
  .dashboard-page .feature-overview-action-grid,
  .dashboard-page .health-grid,
  .dashboard-page .owner-dashboard-grid,
  .dashboard-page .owner-health-grid,
  .dashboard-page .settings-form section,
  .dashboard-page .settings-form section[data-settings-page="features"] {
    grid-template-columns: 1fr;
  }

  .dashboard-page .feature-overview-head {
    align-items: flex-start;
  }

  .dashboard-page .feature-overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .settings-form section {
    max-width: none;
    padding: 14px;
  }

  .dashboard-page .settings-form label,
  .dashboard-page .settings-form label:has(textarea) {
    grid-column: auto;
    padding: 12px;
  }

  .dashboard-page .module-subaction-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .module-subaction-tabs button,
  .dashboard-page .module-submit-row button {
    width: 100%;
    max-width: none;
  }

  .dashboard-page .module-action-head-tools {
    align-items: flex-end;
    flex-direction: column;
  }

  .dashboard-page .module-subaction-page {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .dashboard-page .dashboard-auth-hero .dashboard-status,
  .dashboard-page .dashboard-auth-hero .hero-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-auth-hero .status-card {
    min-height: 104px;
  }

  .dashboard-page .dashboard-mobile-auth-actions {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-page .dashboard-mobile-auth-actions a:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-page .mobile-dashboard-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .feature-overview-kpis {
    gap: 8px;
  }

  .dashboard-page .feature-overview-kpis article {
    min-height: 80px;
    padding: 13px;
  }

  .dashboard-page .feature-overview-kpis strong {
    font-size: 21px;
  }

  .dashboard-page .feature-overview-action-grid button {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .dashboard-page .feature-overview-action-grid small {
    grid-column: 2;
  }

  .dashboard-page .settings-actions,
  .dashboard-page .panel-inline-head,
  .dashboard-page .settings-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-page .settings-actions button,
  .dashboard-page .panel-inline-head button,
  .dashboard-page .settings-head button {
    width: 100%;
  }

  .dashboard-page .module-subaction-tabs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *,
  .dashboard-page *::before,
  .dashboard-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
