/* Dashboard V2 — clean application shell for the public site only. */

html[data-theme="light"] {
  --dash-bg: #edf3fb;
  --dash-bg-2: #f6f3ff;
  --dash-sidebar: #fbfcff;
  --dash-header: rgba(251, 253, 255, 0.94);
  --dash-surface: rgba(255, 255, 255, 0.88);
  --dash-surface-solid: #ffffff;
  --dash-surface-soft: #f5f8fc;
  --dash-surface-hover: #f0f6ff;
  --dash-border: #dbe4ef;
  --dash-border-strong: #ccd8e7;
  --dash-text: #182132;
  --dash-heading: #111827;
  --dash-muted: #748096;
  --dash-subtle: #9aa5b5;
  --dash-primary: #1682f8;
  --dash-primary-strong: #0769d7;
  --dash-primary-soft: #e8f3ff;
  --dash-green: #19a866;
  --dash-green-soft: #e8f8f0;
  --dash-amber: #d88714;
  --dash-amber-soft: #fff4df;
  --dash-red: #d84a55;
  --dash-red-soft: #ffedef;
  --dash-violet: #7357e8;
  --dash-violet-soft: #f0edff;
  --dash-shadow: 0 12px 32px rgba(39, 67, 104, 0.07);
  --dash-shadow-hover: 0 18px 42px rgba(39, 67, 104, 0.12);
}

html[data-theme="dark"] {
  --dash-bg: #0f141c;
  --dash-bg-2: #171424;
  --dash-sidebar: #141a23;
  --dash-header: rgba(18, 24, 33, 0.94);
  --dash-surface: rgba(24, 31, 42, 0.92);
  --dash-surface-solid: #181f2a;
  --dash-surface-soft: #202936;
  --dash-surface-hover: #263244;
  --dash-border: #2b3543;
  --dash-border-strong: #3a4657;
  --dash-text: #e6ebf3;
  --dash-heading: #f6f8fb;
  --dash-muted: #9da9ba;
  --dash-subtle: #738094;
  --dash-primary: #4aa3ff;
  --dash-primary-strong: #78baff;
  --dash-primary-soft: #173653;
  --dash-green: #42cc88;
  --dash-green-soft: #173a2c;
  --dash-amber: #f1ad42;
  --dash-amber-soft: #412f18;
  --dash-red: #ff7580;
  --dash-red-soft: #452128;
  --dash-violet: #a491ff;
  --dash-violet-soft: #302a54;
  --dash-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  --dash-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.32);
}

html[data-theme] body.dashboard-v2,
html[data-theme] body.dashboard-v2 * {
  box-sizing: border-box;
}

html[data-theme] body.dashboard-v2 {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--dash-text);
  background:
    radial-gradient(circle at 48% -16%, rgba(63, 166, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 96% 4%, rgba(142, 112, 255, 0.12), transparent 31rem),
    linear-gradient(135deg, var(--dash-bg), var(--dash-bg-2));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html[data-theme] body.dashboard-v2 button,
html[data-theme] body.dashboard-v2 input,
html[data-theme] body.dashboard-v2 select,
html[data-theme] body.dashboard-v2 textarea {
  font: inherit;
}

html[data-theme] body.dashboard-v2 button,
html[data-theme] body.dashboard-v2 a {
  -webkit-tap-highlight-color: transparent;
}

html[data-theme] body.dashboard-v2 button {
  color: inherit;
}

html[data-theme] body.dashboard-v2 [hidden] {
  display: none !important;
}

html[data-theme] body.dashboard-v2 svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme] body.dashboard-v2 :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dash-primary) 34%, transparent);
  outline-offset: 2px;
}

html[data-theme] body.dashboard-v2 .app-header {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  left: 232px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  color: var(--dash-text);
  background: var(--dash-header);
  border-bottom: 1px solid var(--dash-border);
  box-shadow: none;
  transition: left 180ms ease;
}

html[data-theme] body.dashboard-v2 .nav-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 11px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

html[data-theme] body.dashboard-v2 .nav-toggle:hover {
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-color: color-mix(in srgb, var(--dash-primary) 34%, var(--dash-border));
}

html[data-theme] body.dashboard-v2 .nav-toggle svg {
  width: 20px;
  height: 20px;
}

html[data-theme] body.dashboard-v2 .app-header__context {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
}

html[data-theme] body.dashboard-v2 .app-header__context > span {
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 600;
}

html[data-theme] body.dashboard-v2 .app-header__context > span::after {
  content: "/";
  padding-left: 8px;
  color: var(--dash-subtle);
}

html[data-theme] body.dashboard-v2 .app-header__context > strong {
  color: var(--dash-heading);
  font-size: 15px;
  font-weight: 720;
}

html[data-theme] body.dashboard-v2 .app-header__context > small {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 520px;
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .topbar__actions {
  width: auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .refresh {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 650;
}

html[data-theme] body.dashboard-v2 .refresh__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dash-amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dash-amber) 14%, transparent);
}

html[data-theme] body.dashboard-v2 .refresh__dot.is-ok {
  background: var(--dash-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dash-green) 14%, transparent);
}

html[data-theme] body.dashboard-v2 .refresh__dot.is-error {
  background: var(--dash-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dash-red) 14%, transparent);
}

html[data-theme] body.dashboard-v2 .theme-control {
  position: relative;
}

html[data-theme] body.dashboard-v2 .theme-button {
  width: auto;
  min-width: 126px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
  color: var(--dash-text);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 11px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .theme-button:hover,
html[data-theme] body.dashboard-v2 .theme-button[aria-expanded="true"] {
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-color: color-mix(in srgb, var(--dash-primary) 34%, var(--dash-border));
}

html[data-theme] body.dashboard-v2 .theme-button .theme-icon {
  display: none;
  width: 18px;
  height: 18px;
}

html[data-theme-mode="system"] body.dashboard-v2 .theme-button .theme-icon--system,
html[data-theme-mode="light"] body.dashboard-v2 .theme-button .theme-icon--light,
html[data-theme-mode="dark"] body.dashboard-v2 .theme-button .theme-icon--dark {
  display: block;
}

html[data-theme] body.dashboard-v2 .theme-button > span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .theme-button__chevron {
  width: 15px;
  height: 15px;
  margin-left: auto;
  transition: transform 160ms ease;
}

html[data-theme] body.dashboard-v2 .theme-button[aria-expanded="true"] .theme-button__chevron {
  transform: rotate(180deg);
}

html[data-theme] body.dashboard-v2 .theme-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 9px);
  right: 0;
  width: 278px;
  padding: 10px;
  color: var(--dash-text);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  box-shadow: var(--dash-shadow-hover);
}

html[data-theme] body.dashboard-v2 .theme-menu > span {
  display: block;
  padding: 5px 8px 8px;
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 700;
}

html[data-theme] body.dashboard-v2 .theme-menu > button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .theme-menu > button:hover,
html[data-theme] body.dashboard-v2 .theme-menu > button.is-active {
  background: var(--dash-surface-soft);
}

html[data-theme] body.dashboard-v2 .theme-menu > button > svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 9px;
}

html[data-theme] body.dashboard-v2 .theme-menu > button > span {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .theme-menu strong {
  color: var(--dash-heading);
  font-size: 13px;
}

html[data-theme] body.dashboard-v2 .theme-menu small {
  color: var(--dash-muted);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .theme-menu b {
  width: 14px;
  height: 14px;
  border: 1px solid var(--dash-border-strong);
  border-radius: 999px;
}

html[data-theme] body.dashboard-v2 .theme-menu button.is-active b {
  border: 4px solid var(--dash-primary);
}

html[data-theme] body.dashboard-v2 .top-profile-button {
  min-width: 90px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 5px;
  color: var(--dash-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .top-profile-button:hover {
  background: var(--dash-surface-soft);
  border-color: var(--dash-border);
}

html[data-theme] body.dashboard-v2 .top-profile-button__avatar,
html[data-theme] body.dashboard-v2 .sidebar-profile__avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(145deg, #1696ff, #6d60e9);
  border-radius: 10px;
}

html[data-theme] body.dashboard-v2 .top-profile-button__avatar {
  width: 30px;
  height: 30px;
}

html[data-theme] body.dashboard-v2 .top-profile-button__avatar img,
html[data-theme] body.dashboard-v2 .sidebar-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme] body.dashboard-v2 .top-profile-button__avatar b,
html[data-theme] body.dashboard-v2 .sidebar-profile__avatar b {
  font-size: 13px;
}

html[data-theme] body.dashboard-v2 .top-profile-button > span:last-child {
  max-width: 90px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .site-bar {
  position: fixed;
  z-index: 80;
  inset: 0 auto 0 0;
  width: 232px;
  min-width: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 12px;
  color: var(--dash-text);
  background: var(--dash-sidebar);
  border-right: 1px solid var(--dash-border);
  box-shadow: none;
  transition: width 180ms ease, transform 220ms ease;
}

html[data-theme] body.dashboard-v2 .site-owner-card {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 4px 11px;
  color: var(--dash-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme] body.dashboard-v2 .site-owner-card__avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 11px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 800;
}

html[data-theme="dark"] body.dashboard-v2 .site-owner-card__avatar {
  color: #121722;
  background: #f5f7fb;
}

html[data-theme] body.dashboard-v2 .site-owner-card__text {
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

html[data-theme] body.dashboard-v2 .site-owner-card__text strong {
  color: var(--dash-heading);
  font-size: 14px;
  font-weight: 760;
}

html[data-theme] body.dashboard-v2 .site-owner-card__text small {
  color: var(--dash-muted);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .sidebar-collapse-button {
  width: 31px;
  height: 31px;
  margin-left: auto;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--dash-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .sidebar-collapse-button:hover {
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-color: color-mix(in srgb, var(--dash-primary) 24%, var(--dash-border));
}

html[data-theme] body.dashboard-v2 .sidebar-collapse-button svg {
  width: 17px;
  height: 17px;
}

html[data-theme] body.dashboard-v2 .site-nav {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

html[data-theme] body.dashboard-v2 .site-nav__group {
  display: grid;
  gap: 3px;
}

html[data-theme] body.dashboard-v2 .site-nav__group > span {
  padding: 5px 10px 4px;
  color: var(--dash-subtle);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

html[data-theme] body.dashboard-v2 .site-nav button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--dash-muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

html[data-theme] body.dashboard-v2 .site-nav button:hover {
  color: var(--dash-heading);
  background: var(--dash-surface-soft);
  transform: none;
}

html[data-theme] body.dashboard-v2 .site-nav button.is-active {
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-color: color-mix(in srgb, var(--dash-primary) 12%, transparent);
  box-shadow: none;
}

html[data-theme] body.dashboard-v2 .site-nav__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

html[data-theme] body.dashboard-v2 .site-nav__icon svg {
  width: 19px;
  height: 19px;
}

html[data-theme] body.dashboard-v2 .site-nav button > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .site-nav__chevron {
  color: var(--dash-subtle);
  font-size: 20px;
  text-align: center;
}

html[data-theme] body.dashboard-v2 .site-bar__footer {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .sidebar-profile {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px 1fr 17px;
  align-items: center;
  gap: 9px;
  padding: 7px;
  color: var(--dash-text);
  text-align: left;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 13px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .sidebar-profile:hover {
  background: var(--dash-surface-hover);
  border-color: color-mix(in srgb, var(--dash-primary) 24%, var(--dash-border));
}

html[data-theme] body.dashboard-v2 .sidebar-profile__avatar {
  width: 38px;
  height: 38px;
}

html[data-theme] body.dashboard-v2 .sidebar-profile > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .sidebar-profile strong,
html[data-theme] body.dashboard-v2 .sidebar-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .sidebar-profile strong {
  color: var(--dash-heading);
  font-size: 12px;
}

html[data-theme] body.dashboard-v2 .sidebar-profile small {
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .sidebar-profile > svg {
  width: 16px;
  height: 16px;
  color: var(--dash-subtle);
}

html[data-theme] body.dashboard-v2 .site-bar__footer .admin-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  color: var(--dash-muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

html[data-theme] body.dashboard-v2 .site-bar__footer .admin-link:hover {
  color: var(--dash-heading);
  background: var(--dash-surface-soft);
  border-color: var(--dash-border);
}

html[data-theme] body.dashboard-v2 .site-bar__footer .admin-link svg {
  width: 18px;
  height: 18px;
}

html[data-theme] body.dashboard-v2 .shell {
  width: auto;
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 232px;
  padding: 86px 24px 36px;
  transition: margin-left 180ms ease;
}

html[data-theme] body.dashboard-v2 .page-panel {
  display: none;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

html[data-theme] body.dashboard-v2 .page-panel.is-active {
  display: block;
  animation: dash-page-in 180ms ease both;
}

@keyframes dash-page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .site-bar {
  width: 76px;
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .app-header {
  left: 76px;
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .shell {
  margin-left: 76px;
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .site-owner-card {
  justify-content: center;
  padding-inline: 0;
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .site-owner-card__text,
html[data-theme] body.dashboard-v2.sidebar-collapsed .site-nav__group > span,
html[data-theme] body.dashboard-v2.sidebar-collapsed .site-nav button > span:nth-child(2),
html[data-theme] body.dashboard-v2.sidebar-collapsed .site-nav__chevron,
html[data-theme] body.dashboard-v2.sidebar-collapsed .sidebar-profile > span:nth-child(2),
html[data-theme] body.dashboard-v2.sidebar-collapsed .sidebar-profile > svg,
html[data-theme] body.dashboard-v2.sidebar-collapsed .site-bar__footer .admin-link span {
  display: none;
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .sidebar-collapse-button {
  position: absolute;
  top: 52px;
  right: -15px;
  z-index: 2;
  background: var(--dash-surface-solid);
  border-color: var(--dash-border);
  box-shadow: var(--dash-shadow);
  transform: rotate(180deg);
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .site-nav button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 3px;
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .sidebar-profile {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 6px;
}

html[data-theme] body.dashboard-v2.sidebar-collapsed .site-bar__footer .admin-link {
  justify-content: center;
  padding: 0;
}

html[data-theme] body.dashboard-v2 .nav-backdrop {
  position: fixed;
  z-index: 75;
  inset: 0;
  display: none;
  background: rgba(8, 15, 26, 0.48);
}

/* Shared page headings and controls */
html[data-theme] body.dashboard-v2 .page-title,
html[data-theme] body.dashboard-v2 .dashboard-heading {
  margin: 0 0 18px;
}

html[data-theme] body.dashboard-v2 .page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

html[data-theme] body.dashboard-v2 .page-title > div:first-child {
  min-width: 0;
}

html[data-theme] body.dashboard-v2 .page-title h1,
html[data-theme] body.dashboard-v2 .dashboard-heading h1 {
  margin: 0;
  color: var(--dash-heading);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 790;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

html[data-theme] body.dashboard-v2 .page-title p,
html[data-theme] body.dashboard-v2 .dashboard-heading p {
  margin: 7px 0 0;
  color: var(--dash-muted);
  font-size: 13px;
}

html[data-theme] body.dashboard-v2 .section-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
}

html[data-theme] body.dashboard-v2 .section-tabs button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--dash-muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .section-tabs button:hover {
  color: var(--dash-heading);
}

html[data-theme] body.dashboard-v2 .section-tabs button.is-active {
  color: var(--dash-heading);
  background: var(--dash-surface-solid);
  box-shadow: 0 2px 8px rgba(35, 58, 88, 0.08);
}

html[data-theme] body.dashboard-v2 .primary-button,
html[data-theme] body.dashboard-v2 button.primary-button {
  min-height: 40px;
  padding: 0 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-strong));
  border: 0;
  border-radius: 11px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--dash-primary) 22%, transparent);
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

html[data-theme] body.dashboard-v2 .primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px color-mix(in srgb, var(--dash-primary) 29%, transparent);
}

html[data-theme] body.dashboard-v2 button:disabled,
html[data-theme] body.dashboard-v2 input:disabled,
html[data-theme] body.dashboard-v2 textarea:disabled,
html[data-theme] body.dashboard-v2 select:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

html[data-theme] body.dashboard-v2 input,
html[data-theme] body.dashboard-v2 select,
html[data-theme] body.dashboard-v2 textarea {
  color: var(--dash-text);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

html[data-theme] body.dashboard-v2 input:focus,
html[data-theme] body.dashboard-v2 select:focus,
html[data-theme] body.dashboard-v2 textarea:focus {
  background: var(--dash-surface-solid);
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-primary) 14%, transparent);
}

html[data-theme] body.dashboard-v2 input::placeholder,
html[data-theme] body.dashboard-v2 textarea::placeholder {
  color: var(--dash-subtle);
}

/* Overview */
html[data-theme] body.dashboard-v2 .dashboard-heading {
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--dash-violet) 16%, transparent), transparent 17rem),
    radial-gradient(circle at 62% 120%, color-mix(in srgb, var(--dash-primary) 18%, transparent), transparent 22rem),
    var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 24px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .dashboard-heading > div > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--dash-primary);
  font-size: 11px;
  font-weight: 760;
}

html[data-theme] body.dashboard-v2 .dashboard-heading > div > span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--dash-green);
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dash-green) 13%, transparent);
}

html[data-theme] body.dashboard-v2 .dashboard-heading__action {
  flex: 0 0 auto;
}

html[data-theme] body.dashboard-v2 .dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

html[data-theme] body.dashboard-v2 .dashboard-stats > article {
  min-width: 0;
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 19px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .dashboard-stat__icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
}

html[data-theme] body.dashboard-v2 .dashboard-stat__icon svg {
  width: 21px;
  height: 21px;
}

html[data-theme] body.dashboard-v2 .dashboard-stat__icon.is-blue,
html[data-theme] body.dashboard-v2 .dashboard-actions > button > span.is-blue {
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
}

html[data-theme] body.dashboard-v2 .dashboard-stat__icon.is-violet,
html[data-theme] body.dashboard-v2 .dashboard-actions > button > span.is-violet {
  color: var(--dash-violet);
  background: var(--dash-violet-soft);
}

html[data-theme] body.dashboard-v2 .dashboard-stat__icon.is-green {
  color: var(--dash-green);
  background: var(--dash-green-soft);
}

html[data-theme] body.dashboard-v2 .dashboard-stat__icon.is-amber,
html[data-theme] body.dashboard-v2 .dashboard-actions > button > span.is-amber {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

html[data-theme] body.dashboard-v2 .dashboard-stats article > div {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .dashboard-stats article > div > span {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 650;
}

html[data-theme] body.dashboard-v2 .dashboard-stats article strong {
  margin: 1px 0;
  color: var(--dash-heading);
  font-size: 27px;
  font-weight: 790;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

html[data-theme] body.dashboard-v2 .dashboard-stats article small {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.72fr);
  gap: 14px;
}

html[data-theme] body.dashboard-v2 .dashboard-card {
  min-width: 0;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 21px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .dashboard-card > header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .dashboard-card > header > div {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .dashboard-card > header span {
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 700;
}

html[data-theme] body.dashboard-v2 .dashboard-card > header h2 {
  margin: 2px 0 0;
  color: var(--dash-heading);
  font-size: 16px;
  font-weight: 750;
}

html[data-theme] body.dashboard-v2 .dashboard-card > header > button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--dash-primary);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .dashboard-card > header > button:hover {
  background: var(--dash-primary-soft);
}

html[data-theme] body.dashboard-v2 .overview-server-list {
  display: grid;
  padding: 8px;
}

html[data-theme] body.dashboard-v2 .overview-server-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  color: var(--dash-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 140ms ease;
}

html[data-theme] body.dashboard-v2 .overview-server-row + .overview-server-row {
  border-top: 1px solid var(--dash-border);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

html[data-theme] body.dashboard-v2 .overview-server-row:hover {
  background: var(--dash-surface-hover);
}

html[data-theme] body.dashboard-v2 .overview-server-row__cover {
  width: 42px;
  height: 42px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--dash-primary), var(--dash-violet));
  border-radius: 11px;
}

html[data-theme] body.dashboard-v2 .overview-server-row__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme] body.dashboard-v2 .overview-server-row__info {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .overview-server-row__info strong,
html[data-theme] body.dashboard-v2 .overview-server-row__info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .overview-server-row__info strong {
  color: var(--dash-heading);
  font-size: 12px;
}

html[data-theme] body.dashboard-v2 .overview-server-row__info small {
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .overview-server-row__state {
  min-width: 58px;
  display: grid;
  justify-items: end;
}

html[data-theme] body.dashboard-v2 .overview-server-row__state strong {
  color: var(--dash-heading);
  font-size: 12px;
}

html[data-theme] body.dashboard-v2 .overview-server-row__state small {
  color: var(--dash-green);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .overview-server-row__state.is-maintenance small,
html[data-theme] body.dashboard-v2 .overview-server-row__state.is-full small {
  color: var(--dash-amber);
}

html[data-theme] body.dashboard-v2 .overview-server-row__state.is-closed small,
html[data-theme] body.dashboard-v2 .overview-server-row__state.is-offline small {
  color: var(--dash-red);
}

html[data-theme] body.dashboard-v2 .overview-server-row__arrow {
  color: var(--dash-subtle);
  font-size: 21px;
}

html[data-theme] body.dashboard-v2 .dashboard-loading {
  min-height: 110px;
  display: grid;
  place-items: center;
  color: var(--dash-muted);
  font-size: 12px;
}

html[data-theme] body.dashboard-v2 .dashboard-actions {
  display: grid;
  gap: 5px;
  padding: 9px;
}

html[data-theme] body.dashboard-v2 .dashboard-actions > button {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: var(--dash-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .dashboard-actions > button:hover {
  background: var(--dash-surface-hover);
}

html[data-theme] body.dashboard-v2 .dashboard-actions > button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

html[data-theme] body.dashboard-v2 .dashboard-actions > button > span svg {
  width: 20px;
  height: 20px;
}

html[data-theme] body.dashboard-v2 .dashboard-actions > button > div {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .dashboard-actions strong {
  color: var(--dash-heading);
  font-size: 12px;
}

html[data-theme] body.dashboard-v2 .dashboard-actions small {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .dashboard-actions b {
  color: var(--dash-subtle);
  font-size: 21px;
}

/* Server page */
html[data-theme] body.dashboard-v2 .showcase-banner {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 14px;
  padding: 24px 26px;
  overflow: visible;
  color: var(--dash-text);
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 22px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .showcase-banner::before,
html[data-theme] body.dashboard-v2 .showcase-banner::after {
  display: none;
}

html[data-theme] body.dashboard-v2 .showcase-banner h1 {
  margin: 3px 0 4px;
  color: var(--dash-heading);
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

html[data-theme] body.dashboard-v2 .showcase-banner p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .page-kicker {
  color: var(--dash-primary);
  font-size: 10px;
  font-weight: 750;
}

html[data-theme] body.dashboard-v2 .status-panel__tools {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

html[data-theme] body.dashboard-v2 .summary,
html[data-theme] body.dashboard-v2 .overview-stat {
  min-width: 88px;
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 10px 13px;
  color: var(--dash-text);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 13px;
  box-shadow: none;
}

html[data-theme] body.dashboard-v2 .summary {
  grid-template-columns: auto auto;
  align-items: baseline;
  min-width: 112px;
}

html[data-theme] body.dashboard-v2 .summary__label,
html[data-theme] body.dashboard-v2 .overview-stat > span {
  grid-column: 1 / -1;
  color: var(--dash-muted);
  font-size: 9px;
  font-weight: 680;
}

html[data-theme] body.dashboard-v2 .summary strong,
html[data-theme] body.dashboard-v2 .overview-stat strong {
  color: var(--dash-heading);
  font-size: 21px;
  font-weight: 790;
  line-height: 1.2;
}

html[data-theme] body.dashboard-v2 .summary #totalCapacity {
  color: var(--dash-muted);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .icon-button {
  width: 46px;
  min-width: 46px;
  height: auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 18%, var(--dash-border));
  border-radius: 13px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .icon-button:hover {
  color: #fff;
  background: var(--dash-primary);
}

html[data-theme] body.dashboard-v2 .icon-button svg {
  width: 20px;
  height: 20px;
}

html[data-theme] body.dashboard-v2 .status-panel {
  padding: 18px;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 22px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .status-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

html[data-theme] body.dashboard-v2 .status-panel__header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .status-panel__header h2 {
  margin: 0;
  color: var(--dash-heading);
  font-size: 16px;
}

html[data-theme] body.dashboard-v2 .status-panel__header span,
html[data-theme] body.dashboard-v2 .status-panel__header p {
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .status-panel__header p {
  margin: 0;
}

html[data-theme] body.dashboard-v2 .server-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 17px;
  padding: 10px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
}

html[data-theme] body.dashboard-v2 .server-search {
  position: relative;
  min-width: 230px;
  flex: 1 1 300px;
  margin: 0;
}

html[data-theme] body.dashboard-v2 .server-search svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--dash-muted);
  transform: translateY(-50%);
}

html[data-theme] body.dashboard-v2 .server-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  background: var(--dash-surface-solid);
}

html[data-theme] body.dashboard-v2 .server-status-filters,
html[data-theme] body.dashboard-v2 .server-category-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

html[data-theme] body.dashboard-v2 .server-status-filters::-webkit-scrollbar,
html[data-theme] body.dashboard-v2 .server-category-filters::-webkit-scrollbar {
  display: none;
}

html[data-theme] body.dashboard-v2 .server-status-filters button,
html[data-theme] body.dashboard-v2 .server-category-filters button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 11px;
  color: var(--dash-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .server-status-filters button:hover,
html[data-theme] body.dashboard-v2 .server-category-filters button:hover {
  color: var(--dash-heading);
  background: var(--dash-surface-solid);
  border-color: var(--dash-border);
}

html[data-theme] body.dashboard-v2 .server-status-filters button.is-active,
html[data-theme] body.dashboard-v2 .server-category-filters button.is-active {
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-color: color-mix(in srgb, var(--dash-primary) 20%, var(--dash-border));
}

html[data-theme] body.dashboard-v2 .category-stack {
  display: grid;
  gap: 20px;
}

html[data-theme] body.dashboard-v2 .category-section {
  display: grid;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .category-section__head {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px;
  background: transparent;
  border: 0;
}

html[data-theme] body.dashboard-v2 .category-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-theme] body.dashboard-v2 .category-section__mark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: hsl(var(--category-hue) 68% 45%);
  background: hsl(var(--category-hue) 76% 94%);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

html[data-theme="dark"] body.dashboard-v2 .category-section__mark {
  color: hsl(var(--category-hue) 84% 72%);
  background: hsl(var(--category-hue) 34% 24%);
}

html[data-theme] body.dashboard-v2 .category-section__title h3 {
  margin: 0;
  color: var(--dash-heading);
  font-size: 13px;
}

html[data-theme] body.dashboard-v2 .category-section__meta {
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

html[data-theme] body.dashboard-v2 .server-card {
  position: relative;
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  color: var(--dash-text);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 17px;
  box-shadow: none;
  cursor: pointer;
  transform: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

html[data-theme] body.dashboard-v2 .server-card:hover {
  border-color: color-mix(in srgb, var(--dash-primary) 34%, var(--dash-border));
  box-shadow: var(--dash-shadow-hover);
  transform: translateY(-2px);
}

html[data-theme] body.dashboard-v2 .server-card:focus-visible {
  border-color: var(--dash-primary);
}

html[data-theme] body.dashboard-v2 .server-card__cover {
  position: relative;
  width: 104px;
  min-width: 0;
  height: 100%;
  min-height: 132px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #328fe8, #695ad9);
  border: 0;
  border-radius: 0;
}

html[data-theme] body.dashboard-v2 .server-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

html[data-theme] body.dashboard-v2 .server-card__cover > span {
  font-size: 11px;
  font-weight: 750;
}

html[data-theme] body.dashboard-v2 .server-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 13px 14px 11px;
}

html[data-theme] body.dashboard-v2 .server-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .server-card__top > div {
  min-width: 0;
}

html[data-theme] body.dashboard-v2 .server-card h3 {
  margin: 0;
  overflow: hidden;
  color: var(--dash-heading);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .server-card__network,
html[data-theme] body.dashboard-v2 .server-card__owner,
html[data-theme] body.dashboard-v2 .server-card__kicker {
  display: none !important;
}

html[data-theme] body.dashboard-v2 .status-pill {
  min-width: 46px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 8px;
  color: var(--dash-green);
  background: var(--dash-green-soft);
  border: 0;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

html[data-theme] body.dashboard-v2 .status-pill.is-maintenance,
html[data-theme] body.dashboard-v2 .status-pill.is-full {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

html[data-theme] body.dashboard-v2 .status-pill.is-closed,
html[data-theme] body.dashboard-v2 .status-pill.is-offline {
  color: var(--dash-red);
  background: var(--dash-red-soft);
}

html[data-theme] body.dashboard-v2 .meter-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 12px 0 9px;
}

html[data-theme] body.dashboard-v2 .meter {
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: var(--dash-border);
  border-radius: 999px;
}

html[data-theme] body.dashboard-v2 .meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--dash-primary), #53b8ff);
  border-radius: inherit;
  transition: width 240ms ease;
}

html[data-theme] body.dashboard-v2 .usage-text {
  color: var(--dash-muted);
  font-size: 9px;
  font-weight: 600;
}

html[data-theme] body.dashboard-v2 .server-card__stats {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
}

html[data-theme] body.dashboard-v2 .server-card__stats > span {
  flex: 0 0 auto;
  color: var(--dash-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .server-card__stats > span strong {
  color: var(--dash-heading);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .server-card__stats > span:nth-child(2) strong {
  color: var(--dash-primary);
}

html[data-theme] body.dashboard-v2 .server-card__copy {
  min-width: 0;
  height: 29px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .server-card__copy:hover,
html[data-theme] body.dashboard-v2 .server-card__copy.is-copied {
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-color: color-mix(in srgb, var(--dash-primary) 24%, var(--dash-border));
}

html[data-theme] body.dashboard-v2 .server-card__copy span {
  display: none;
}

html[data-theme] body.dashboard-v2 .server-card__copy strong {
  overflow: hidden;
  max-width: 90px;
  color: inherit;
  font-size: 10px;
  text-overflow: ellipsis;
}

html[data-theme] body.dashboard-v2 .server-card__copy svg {
  width: 13px;
  height: 13px;
}

html[data-theme] body.dashboard-v2 .server-card__note {
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--dash-red);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .server-empty-state,
html[data-theme] body.dashboard-v2 .community-empty-state,
html[data-theme] body.dashboard-v2 .chat-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 22px;
  color: var(--dash-muted);
  text-align: center;
  background: var(--dash-surface-soft);
  border: 1px dashed var(--dash-border-strong);
  border-radius: 15px;
}

html[data-theme] body.dashboard-v2 .server-empty-state > span,
html[data-theme] body.dashboard-v2 .community-empty-state__icon,
html[data-theme] body.dashboard-v2 .chat-empty-state > span {
  color: var(--dash-primary);
  font-size: 24px;
}

html[data-theme] body.dashboard-v2 .server-empty-state strong,
html[data-theme] body.dashboard-v2 .community-empty-state strong,
html[data-theme] body.dashboard-v2 .chat-empty-state strong {
  color: var(--dash-heading);
  font-size: 13px;
}

html[data-theme] body.dashboard-v2 .server-empty-state p,
html[data-theme] body.dashboard-v2 .community-empty-state p,
html[data-theme] body.dashboard-v2 .chat-empty-state p {
  margin: 0;
  font-size: 11px;
}

/* Server detail drawer */
html[data-theme] body.dashboard-v2 .server-detail-backdrop {
  position: fixed;
  z-index: 108;
  inset: 0;
  opacity: 0;
  background: rgba(7, 13, 23, 0.45);
  transition: opacity 200ms ease;
}

html[data-theme] body.dashboard-v2 .server-detail-backdrop.is-open {
  opacity: 1;
}

html[data-theme] body.dashboard-v2 .server-detail-drawer {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  overflow-y: auto;
  padding: 21px;
  color: var(--dash-text);
  background: var(--dash-surface-solid);
  border-left: 1px solid var(--dash-border);
  box-shadow: -20px 0 55px rgba(13, 28, 48, 0.18);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

html[data-theme] body.dashboard-v2 .server-detail-drawer.is-open {
  transform: translateX(0);
}

html[data-theme] body.dashboard-v2.server-detail-open {
  overflow: hidden;
}

html[data-theme] body.dashboard-v2 .server-detail-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

html[data-theme] body.dashboard-v2 .server-detail-drawer > header h2 {
  margin: 8px 0 0;
  color: var(--dash-heading);
  font-size: 21px;
  line-height: 1.25;
}

html[data-theme] body.dashboard-v2 .server-detail-drawer > header > button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 11px;
  font-size: 22px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .server-detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--dash-primary), var(--dash-violet));
  border-radius: 17px;
}

html[data-theme] body.dashboard-v2 .server-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme] body.dashboard-v2 .server-detail-cover span {
  font-size: 36px;
  font-weight: 800;
}

html[data-theme] body.dashboard-v2 .server-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

html[data-theme] body.dashboard-v2 .server-detail-stats > div {
  display: grid;
  padding: 13px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
}

html[data-theme] body.dashboard-v2 .server-detail-stats span,
html[data-theme] body.dashboard-v2 .server-detail-drawer dt {
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .server-detail-stats strong {
  color: var(--dash-heading);
  font-size: 19px;
}

html[data-theme] body.dashboard-v2 .server-detail-drawer dl {
  display: grid;
  margin: 0;
  padding: 4px 0;
  border-top: 1px solid var(--dash-border);
  border-bottom: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .server-detail-drawer dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px;
}

html[data-theme] body.dashboard-v2 .server-detail-drawer dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--dash-heading);
  font-size: 12px;
  font-weight: 680;
  text-align: right;
}

html[data-theme] body.dashboard-v2 .server-detail-note {
  margin: 14px 0 0;
  padding: 11px 12px;
  color: var(--dash-red);
  background: var(--dash-red-soft);
  border-radius: 11px;
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .server-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

html[data-theme] body.dashboard-v2 .server-detail-actions > button:last-child {
  min-height: 40px;
  padding: 0 12px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 22%, var(--dash-border));
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Community */
html[data-theme] body.dashboard-v2 .content-page {
  color: var(--dash-text);
}

html[data-theme] body.dashboard-v2 .community-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

html[data-theme] body.dashboard-v2 .community-publish-card,
html[data-theme] body.dashboard-v2 .community-feed,
html[data-theme] body.dashboard-v2 .chat-room,
html[data-theme] body.dashboard-v2 .site-form,
html[data-theme] body.dashboard-v2 .profile-card,
html[data-theme] body.dashboard-v2 .profile-binding-panel,
html[data-theme] body.dashboard-v2 #profileForm,
html[data-theme] body.dashboard-v2 .starter-gift-panel {
  color: var(--dash-text);
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .community-publish-card {
  position: sticky;
  top: 84px;
  padding: 17px;
}

html[data-theme] body.dashboard-v2 .community-publish-head,
html[data-theme] body.dashboard-v2 .community-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .community-publish-head h2,
html[data-theme] body.dashboard-v2 .community-feed__head h2 {
  margin: 0;
  color: var(--dash-heading);
  font-size: 15px;
}

html[data-theme] body.dashboard-v2 .community-auth-badge,
html[data-theme] body.dashboard-v2 .profile-verified-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

html[data-theme] body.dashboard-v2 .community-auth-badge.is-authenticated,
html[data-theme] body.dashboard-v2 .profile-verified-badge {
  color: var(--dash-green);
  background: var(--dash-green-soft);
  border-color: color-mix(in srgb, var(--dash-green) 20%, var(--dash-border));
}

html[data-theme] body.dashboard-v2 .community-identity,
html[data-theme] body.dashboard-v2 .chat-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 10px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
}

html[data-theme] body.dashboard-v2 .community-identity__avatar,
html[data-theme] body.dashboard-v2 .chat-identity__avatar,
html[data-theme] body.dashboard-v2 .community-author__avatar,
html[data-theme] body.dashboard-v2 .chat-message__avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, var(--dash-primary), var(--dash-violet));
  border: 0;
  border-radius: 11px;
}

html[data-theme] body.dashboard-v2 .community-identity__avatar,
html[data-theme] body.dashboard-v2 .chat-identity__avatar {
  width: 40px;
  height: 40px;
}

html[data-theme] body.dashboard-v2 .community-identity__avatar img,
html[data-theme] body.dashboard-v2 .chat-identity__avatar img,
html[data-theme] body.dashboard-v2 .community-author__avatar img,
html[data-theme] body.dashboard-v2 .chat-message__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme] body.dashboard-v2 .community-identity > div:last-child,
html[data-theme] body.dashboard-v2 .chat-identity__text {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .community-identity strong,
html[data-theme] body.dashboard-v2 .chat-identity strong {
  overflow: hidden;
  color: var(--dash-heading);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .community-identity small,
html[data-theme] body.dashboard-v2 .chat-identity small {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2 .community-login-button,
html[data-theme] body.dashboard-v2 #chatLoginButton {
  width: 100%;
  min-height: 38px;
  margin-bottom: 11px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 22%, var(--dash-border));
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .community-upload-form,
html[data-theme] body.dashboard-v2 .binding-form,
html[data-theme] body.dashboard-v2 .binding-code-form,
html[data-theme] body.dashboard-v2 .starter-gift-form {
  display: grid;
  gap: 11px;
}

html[data-theme] body.dashboard-v2 .community-upload-form label,
html[data-theme] body.dashboard-v2 .site-form label,
html[data-theme] body.dashboard-v2 .binding-form label,
html[data-theme] body.dashboard-v2 .binding-code-form label,
html[data-theme] body.dashboard-v2 .starter-gift-form label,
html[data-theme] body.dashboard-v2 .chat-settings__form label {
  display: grid;
  gap: 6px;
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 680;
}

html[data-theme] body.dashboard-v2 .community-upload-form input[type="text"],
html[data-theme] body.dashboard-v2 .community-upload-form textarea,
html[data-theme] body.dashboard-v2 .site-form input,
html[data-theme] body.dashboard-v2 .site-form select,
html[data-theme] body.dashboard-v2 .site-form textarea,
html[data-theme] body.dashboard-v2 .binding-form input,
html[data-theme] body.dashboard-v2 .binding-code-form input,
html[data-theme] body.dashboard-v2 .starter-gift-form input,
html[data-theme] body.dashboard-v2 .chat-settings__form input[type="text"] {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
}

html[data-theme] body.dashboard-v2 .community-upload-form textarea,
html[data-theme] body.dashboard-v2 .site-form textarea {
  min-height: 88px;
  resize: vertical;
}

html[data-theme] body.dashboard-v2 .community-file-picker {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px dashed var(--dash-border-strong);
  border-radius: 12px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .community-file-picker input,
html[data-theme] body.dashboard-v2 .chat-avatar-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

html[data-theme] body.dashboard-v2 .community-file-picker__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 10px;
  font-size: 20px;
}

html[data-theme] body.dashboard-v2 .community-file-picker strong {
  color: var(--dash-heading);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .community-image-preview {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

html[data-theme] body.dashboard-v2 .community-image-preview img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

html[data-theme] body.dashboard-v2 .community-image-preview button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 28px;
  padding: 0 9px;
  color: #fff;
  background: rgba(11, 20, 32, 0.74);
  border: 0;
  border-radius: 8px;
  font-size: 9px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .community-feed {
  min-width: 0;
  padding: 17px;
}

html[data-theme] body.dashboard-v2 .community-feed__head {
  margin-bottom: 13px;
}

html[data-theme] body.dashboard-v2 .community-feed__head strong {
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .community-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

html[data-theme] body.dashboard-v2 .community-post-card {
  min-width: 0;
  overflow: hidden;
  color: var(--dash-text);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 15px;
  box-shadow: none;
}

html[data-theme] body.dashboard-v2 .community-post-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--dash-surface-soft);
}

html[data-theme] body.dashboard-v2 .community-post-card__image-error {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
}

html[data-theme] body.dashboard-v2 .community-post-card__body {
  padding: 13px;
}

html[data-theme] body.dashboard-v2 .community-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

html[data-theme] body.dashboard-v2 .community-author__avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

html[data-theme] body.dashboard-v2 .community-author__text {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .community-author__text strong {
  color: var(--dash-heading);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .community-author__text small {
  color: var(--dash-muted);
  font-size: 8px;
}

html[data-theme] body.dashboard-v2 .community-post-card h3 {
  margin: 0 0 6px;
  color: var(--dash-heading);
  font-size: 14px;
}

html[data-theme] body.dashboard-v2 .community-post-card__content {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--dash-muted);
  font-size: 11px;
  white-space: pre-wrap;
}

html[data-theme] body.dashboard-v2 .community-empty-state {
  grid-column: 1 / -1;
}

html[data-theme] body.dashboard-v2 .community-empty-state__button {
  min-height: 34px;
  margin-top: 6px;
  padding: 0 12px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 0;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Chat */
html[data-theme] body.dashboard-v2 .chat-room {
  display: grid;
  overflow: hidden;
}

html[data-theme] body.dashboard-v2 .chat-page-title {
  display: flex !important;
}

html[data-theme] body.dashboard-v2 .chat-room__header {
  min-height: 58px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 17px;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border-bottom: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .chat-connection {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-theme] body.dashboard-v2 .chat-connection strong,
html[data-theme] body.dashboard-v2 #chatMessageCount {
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .chat-connection__dot {
  width: 8px;
  height: 8px;
  background: var(--dash-subtle);
  border-radius: 999px;
}

html[data-theme] body.dashboard-v2 .chat-connection__dot.is-live {
  background: var(--dash-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dash-green) 13%, transparent);
}

html[data-theme] body.dashboard-v2 .chat-connection__dot.is-reconnecting {
  background: var(--dash-amber);
}

html[data-theme] body.dashboard-v2 .chat-message-list {
  height: min(55vh, 510px);
  min-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: color-mix(in srgb, var(--dash-surface-soft) 48%, transparent);
  scrollbar-width: thin;
}

html[data-theme] body.dashboard-v2 .chat-message {
  max-width: min(76%, 660px);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

html[data-theme] body.dashboard-v2 .chat-message.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

html[data-theme] body.dashboard-v2 .chat-message__avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

html[data-theme] body.dashboard-v2 .chat-message__main {
  min-width: 0;
}

html[data-theme] body.dashboard-v2 .chat-message__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 3px 4px;
  color: var(--dash-muted);
  font-size: 8px;
}

html[data-theme] body.dashboard-v2 .chat-message.is-mine .chat-message__meta {
  justify-content: flex-end;
}

html[data-theme] body.dashboard-v2 .chat-message__meta strong {
  color: var(--dash-heading);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .chat-message__meta .is-private {
  color: var(--dash-violet);
}

html[data-theme] body.dashboard-v2 .chat-message__bubble {
  margin: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  color: var(--dash-text);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 4px 13px 13px;
  box-shadow: 0 5px 14px rgba(35, 58, 88, 0.05);
  font-size: 12px;
  white-space: pre-wrap;
}

html[data-theme] body.dashboard-v2 .chat-message.is-mine .chat-message__bubble {
  color: #fff;
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-strong));
  border-color: transparent;
  border-radius: 13px 4px 13px 13px;
}

html[data-theme] body.dashboard-v2 .chat-room__footer {
  padding: 13px 16px 16px;
  background: var(--dash-surface-solid);
  border-top: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .chat-settings {
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
}

html[data-theme] body.dashboard-v2 .chat-settings__toggle {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 16px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .chat-settings__toggle span {
  color: var(--dash-heading);
  font-size: 11px;
  font-weight: 700;
}

html[data-theme] body.dashboard-v2 .chat-settings__toggle small {
  color: var(--dash-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .chat-settings__form {
  display: grid;
  gap: 11px;
  padding: 12px;
  border-top: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .chat-settings__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .chat-avatar-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .chat-avatar-picker__preview {
  width: 32px;
  height: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--dash-primary), var(--dash-violet));
  border-radius: 9px;
}

html[data-theme] body.dashboard-v2 .chat-avatar-picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme] body.dashboard-v2 .chat-privacy-option {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
}

html[data-theme] body.dashboard-v2 .chat-privacy-option > span {
  display: grid;
}

html[data-theme] body.dashboard-v2 .chat-privacy-option strong {
  color: var(--dash-heading);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .chat-privacy-option small {
  color: var(--dash-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .chat-privacy-option input {
  width: 38px;
  height: 21px;
  accent-color: var(--dash-primary);
}

html[data-theme] body.dashboard-v2 .chat-settings__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

html[data-theme] body.dashboard-v2 .chat-settings__actions > button:first-child,
html[data-theme] body.dashboard-v2 .chat-avatar-reset-button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--dash-muted);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  font-size: 10px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .chat-identity {
  margin: 0 0 10px;
}

html[data-theme] body.dashboard-v2 .chat-identity__text {
  flex: 1;
}

html[data-theme] body.dashboard-v2 #chatLoginButton {
  width: auto;
  min-height: 32px;
  margin: 0 0 0 auto;
  padding: 0 10px;
}

html[data-theme] body.dashboard-v2 .chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .chat-composer textarea {
  width: 100%;
  min-height: 72px;
  max-height: 150px;
  padding: 11px 12px;
  resize: vertical;
}

html[data-theme] body.dashboard-v2 .chat-composer__actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

html[data-theme] body.dashboard-v2 .chat-composer__actions > span {
  color: var(--dash-muted);
  font-size: 9px;
}

/* Shop and gift */
html[data-theme] body.dashboard-v2 .shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  gap: 14px;
}

html[data-theme] body.dashboard-v2 .shop-service-card,
html[data-theme] body.dashboard-v2 .shop-help-card {
  min-width: 0;
  color: var(--dash-text);
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 21px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .shop-service-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 212px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--dash-amber) 16%, transparent), transparent 15rem),
    var(--dash-surface);
}

html[data-theme] body.dashboard-v2 .shop-service-card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
  border-radius: 18px;
}

html[data-theme] body.dashboard-v2 .shop-service-card__icon svg {
  width: 29px;
  height: 29px;
}

html[data-theme] body.dashboard-v2 .shop-service-card__content {
  min-width: 0;
}

html[data-theme] body.dashboard-v2 .shop-service-card__content > span,
html[data-theme] body.dashboard-v2 .shop-help-card > span {
  color: var(--dash-amber);
  font-size: 10px;
  font-weight: 750;
}

html[data-theme] body.dashboard-v2 .shop-service-card h2,
html[data-theme] body.dashboard-v2 .shop-help-card h2 {
  margin: 4px 0 7px;
  color: var(--dash-heading);
  font-size: 21px;
}

html[data-theme] body.dashboard-v2 .shop-service-card p {
  max-width: 600px;
  margin: 0;
  color: var(--dash-muted);
  font-size: 12px;
}

html[data-theme] body.dashboard-v2 .shop-service-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--dash-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .shop-service-card__meta i {
  width: 16px;
  height: 1px;
  background: var(--dash-border-strong);
}

html[data-theme] body.dashboard-v2 .shop-service-card__action {
  min-width: 112px;
  display: grid;
  justify-items: end;
  gap: 10px;
}

html[data-theme] body.dashboard-v2 .shop-service-card__action > strong {
  color: var(--dash-heading);
  font-size: 22px;
}

html[data-theme] body.dashboard-v2 .shop-service-card__action > button {
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}

html[data-theme="dark"] body.dashboard-v2 .shop-service-card__action > button {
  color: #111827;
  background: #f6f8fb;
}

html[data-theme] body.dashboard-v2 .shop-service-card__action > button:hover {
  transform: translateY(-1px);
}

html[data-theme] body.dashboard-v2 .shop-help-card {
  padding: 21px;
}

html[data-theme] body.dashboard-v2 .shop-help-card > span {
  color: var(--dash-primary);
}

html[data-theme] body.dashboard-v2 .shop-help-card ol {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

html[data-theme] body.dashboard-v2 .shop-help-card li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
}

html[data-theme] body.dashboard-v2 .shop-help-card li > b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 8px;
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .shop-help-card li > span {
  min-width: 0;
  display: grid;
}

html[data-theme] body.dashboard-v2 .shop-help-card li strong {
  color: var(--dash-heading);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .shop-help-card li small {
  color: var(--dash-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .shop-help-card > button {
  width: 100%;
  min-height: 38px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 20%, var(--dash-border));
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .starter-gift-panel {
  margin-top: 14px;
  overflow: hidden;
}

html[data-theme] body.dashboard-v2 .starter-gift-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 21px;
  background: var(--dash-surface-soft);
  border-bottom: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .starter-gift-panel__header h2 {
  margin: 7px 0 4px;
  color: var(--dash-heading);
  font-size: 17px;
}

html[data-theme] body.dashboard-v2 .starter-gift-panel__header p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .starter-gift-state {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 730;
}

html[data-theme] body.dashboard-v2 .starter-gift-state[data-status="delivered"],
html[data-theme] body.dashboard-v2 .starter-gift-state[data-status="submitted"] {
  color: var(--dash-green);
  background: var(--dash-green-soft);
}

html[data-theme] body.dashboard-v2 .starter-gift-state[data-status="failed"] {
  color: var(--dash-red);
  background: var(--dash-red-soft);
}

html[data-theme] body.dashboard-v2 .starter-gift-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--dash-muted);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .starter-gift-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px 21px;
}

html[data-theme] body.dashboard-v2 .starter-gift-form > .starter-gift-progress,
html[data-theme] body.dashboard-v2 .starter-gift-form > button,
html[data-theme] body.dashboard-v2 .starter-gift-form > .form-message {
  grid-column: 1 / -1;
}

html[data-theme] body.dashboard-v2 .starter-gift-form input[readonly] {
  color: var(--dash-muted);
  background: color-mix(in srgb, var(--dash-surface-soft) 76%, transparent);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 13px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
}

html[data-theme] body.dashboard-v2 .starter-gift-progress__dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: var(--dash-subtle);
  border-radius: 999px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dash-subtle) 12%, transparent);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress__dot.is-active {
  background: var(--dash-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dash-primary) 13%, transparent);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress__dot[data-status="queued"],
html[data-theme] body.dashboard-v2 .starter-gift-progress__dot[data-status="joining"],
html[data-theme] body.dashboard-v2 .starter-gift-progress__dot[data-status="checking_player"],
html[data-theme] body.dashboard-v2 .starter-gift-progress__dot[data-status="delivering"] {
  background: var(--dash-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dash-primary) 13%, transparent);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress__dot.is-success {
  background: var(--dash-green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dash-green) 13%, transparent);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress__dot[data-status="delivered"],
html[data-theme] body.dashboard-v2 .starter-gift-progress__dot[data-status="submitted"] {
  background: var(--dash-green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dash-green) 13%, transparent);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress__dot.is-error {
  background: var(--dash-red);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress__dot[data-status="failed"] {
  background: var(--dash-red);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dash-red) 13%, transparent);
}

html[data-theme] body.dashboard-v2 .starter-gift-progress > div {
  display: grid;
}

html[data-theme] body.dashboard-v2 .starter-gift-progress strong {
  color: var(--dash-heading);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .starter-gift-progress small {
  color: var(--dash-muted);
  font-size: 9px;
}

/* Help, feedback and profile */
html[data-theme] body.dashboard-v2 .guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

html[data-theme] body.dashboard-v2 .guide-list article {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  color: var(--dash-text);
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 19px;
  box-shadow: var(--dash-shadow);
}

html[data-theme] body.dashboard-v2 .guide-list article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

html[data-theme] body.dashboard-v2 .guide-list h2 {
  margin: 0 0 7px;
  color: var(--dash-heading);
  font-size: 16px;
}

html[data-theme] body.dashboard-v2 .guide-list p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 21px;
}

html[data-theme] body.dashboard-v2 .site-form__full,
html[data-theme] body.dashboard-v2 .site-form > button,
html[data-theme] body.dashboard-v2 .site-form > .form-message,
html[data-theme] body.dashboard-v2 .profile-form-actions {
  grid-column: 1 / -1;
}

html[data-theme] body.dashboard-v2 .profile-layout {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

html[data-theme] body.dashboard-v2 .profile-card {
  position: sticky;
  top: 84px;
  display: grid;
  justify-items: center;
  padding: 26px 20px;
  text-align: center;
}

html[data-theme] body.dashboard-v2 .profile-avatar {
  width: 96px;
  height: 96px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--dash-primary), var(--dash-violet));
  border: 5px solid var(--dash-surface-solid);
  border-radius: 25px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--dash-primary) 18%, transparent);
}

html[data-theme] body.dashboard-v2 .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme] body.dashboard-v2 .profile-avatar span {
  padding: 6px;
  font-size: 12px;
  font-weight: 720;
}

html[data-theme] body.dashboard-v2 .profile-card h2 {
  margin: 14px 0 4px;
  color: var(--dash-heading);
  font-size: 18px;
}

html[data-theme] body.dashboard-v2 .profile-card p {
  margin: 0 0 12px;
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .profile-auth-stack {
  min-width: 0;
}

html[data-theme] body.dashboard-v2 .profile-binding-panel {
  padding: 21px;
}

html[data-theme] body.dashboard-v2 .binding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

html[data-theme] body.dashboard-v2 .binding-steps span {
  min-width: 0;
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 9px;
  color: var(--dash-muted);
  text-align: center;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 11px;
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .binding-steps strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 8px;
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .binding-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

html[data-theme] body.dashboard-v2 .binding-instructions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2 .binding-player-row,
html[data-theme] body.dashboard-v2 .binding-bot-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 11px;
}

html[data-theme] body.dashboard-v2 .binding-player-row span,
html[data-theme] body.dashboard-v2 .binding-bot-card span,
html[data-theme] body.dashboard-v2 .binding-player-row small,
html[data-theme] body.dashboard-v2 .binding-bot-card small {
  color: var(--dash-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2 .binding-player-row strong,
html[data-theme] body.dashboard-v2 .binding-bot-card strong {
  color: var(--dash-heading);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2 .binding-instructions > p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .binding-code-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

html[data-theme] body.dashboard-v2 #profileForm {
  padding: 21px;
}

html[data-theme] body.dashboard-v2 .profile-form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

html[data-theme] body.dashboard-v2 .danger-button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--dash-red);
  background: var(--dash-red-soft);
  border: 1px solid color-mix(in srgb, var(--dash-red) 20%, var(--dash-border));
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

html[data-theme] body.dashboard-v2 .form-message {
  min-height: 0;
  margin: 0;
  color: var(--dash-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2 .form-message.is-ok {
  color: var(--dash-green);
}

html[data-theme] body.dashboard-v2 .form-message.is-error {
  color: var(--dash-red);
}

html[data-theme] body.dashboard-v2 .site-toast {
  position: fixed;
  z-index: 160;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  opacity: 0;
  color: var(--dash-text);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  box-shadow: var(--dash-shadow-hover);
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

html[data-theme] body.dashboard-v2 .site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme] body.dashboard-v2 .site-toast.is-ok {
  border-left: 4px solid var(--dash-green);
}

html[data-theme] body.dashboard-v2 .site-toast.is-error {
  border-left: 4px solid var(--dash-red);
}

/* Responsive */
@media (max-width: 1180px) {
  html[data-theme] body.dashboard-v2 .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme] body.dashboard-v2 .server-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .community-post-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .shop-service-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  html[data-theme] body.dashboard-v2 .shop-service-card__action {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }
}

@media (max-width: 900px) {
  html[data-theme] body.dashboard-v2 .site-bar {
    width: min(286px, calc(100vw - 42px));
    transform: translateX(-105%);
  }

  html[data-theme] body.dashboard-v2.nav-open .site-bar {
    transform: translateX(0);
  }

  html[data-theme] body.dashboard-v2.nav-open .nav-backdrop {
    display: block;
  }

  html[data-theme] body.dashboard-v2 .sidebar-collapse-button {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .app-header,
  html[data-theme] body.dashboard-v2.sidebar-collapsed .app-header {
    left: 0;
    padding: 0 14px;
  }

  html[data-theme] body.dashboard-v2 .shell,
  html[data-theme] body.dashboard-v2.sidebar-collapsed .shell {
    margin-left: 0;
    padding: 80px 14px 28px;
  }

  html[data-theme] body.dashboard-v2 .app-header__context > span,
  html[data-theme] body.dashboard-v2 .app-header__context > small,
  html[data-theme] body.dashboard-v2 .refresh {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .app-header__context {
    display: block;
  }

  html[data-theme] body.dashboard-v2 .theme-button {
    width: 38px;
    min-width: 38px;
    justify-content: center;
    padding: 0;
  }

  html[data-theme] body.dashboard-v2 .theme-button > span,
  html[data-theme] body.dashboard-v2 .theme-button__chevron {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .top-profile-button {
    min-width: 38px;
    width: 38px;
    padding: 3px;
  }

  html[data-theme] body.dashboard-v2 .top-profile-button > span:last-child {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .dashboard-layout,
  html[data-theme] body.dashboard-v2 .shop-layout {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .community-layout,
  html[data-theme] body.dashboard-v2 .profile-layout {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .community-publish-card,
  html[data-theme] body.dashboard-v2 .profile-card {
    position: static;
  }

  html[data-theme] body.dashboard-v2 .guide-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  html[data-theme] body.dashboard-v2 .dashboard-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 21px;
    border-radius: 19px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-heading__action {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-stats > article {
    min-height: 108px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-stat__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-stat__icon svg {
    width: 17px;
    height: 17px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-stats article strong {
    font-size: 22px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-card {
    border-radius: 17px;
  }

  html[data-theme] body.dashboard-v2 .overview-server-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  html[data-theme] body.dashboard-v2 .overview-server-row__cover {
    width: 38px;
    height: 38px;
  }

  html[data-theme] body.dashboard-v2 .overview-server-row__arrow {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .showcase-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    border-radius: 18px;
  }

  html[data-theme] body.dashboard-v2 .status-panel__tools {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .summary,
  html[data-theme] body.dashboard-v2 .overview-stat {
    flex: 1;
    min-width: 0;
  }

  html[data-theme] body.dashboard-v2 .status-panel {
    padding: 13px;
    border-radius: 18px;
  }

  html[data-theme] body.dashboard-v2 .status-panel__header > p {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .server-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-theme] body.dashboard-v2 .server-search {
    min-width: 0;
    flex: 0 0 auto;
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .server-status-filters,
  html[data-theme] body.dashboard-v2 .server-category-filters {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .server-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 124px;
  }

  html[data-theme] body.dashboard-v2 .server-card__cover {
    width: 86px;
    min-height: 124px;
  }

  html[data-theme] body.dashboard-v2 .server-card__body {
    padding: 11px;
  }

  html[data-theme] body.dashboard-v2 .usage-text {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .meter-wrap {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .server-card__stats {
    gap: 8px;
  }

  html[data-theme] body.dashboard-v2 .server-card__stats > span:nth-child(2) {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .page-title {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  html[data-theme] body.dashboard-v2 .section-tabs {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .section-tabs button {
    flex: 1;
  }

  html[data-theme] body.dashboard-v2 .community-post-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .chat-message {
    max-width: 90%;
  }

  html[data-theme] body.dashboard-v2 .chat-message-list {
    min-height: 360px;
    height: 50vh;
    padding: 13px;
  }

  html[data-theme] body.dashboard-v2 .chat-settings__grid,
  html[data-theme] body.dashboard-v2 .chat-composer {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .chat-composer__actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  html[data-theme] body.dashboard-v2 .shop-service-card {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    padding: 18px;
  }

  html[data-theme] body.dashboard-v2 .shop-service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  html[data-theme] body.dashboard-v2 .shop-service-card__action {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  html[data-theme] body.dashboard-v2 .shop-service-card__action > button {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .starter-gift-form,
  html[data-theme] body.dashboard-v2 .site-form {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .starter-gift-form > *,
  html[data-theme] body.dashboard-v2 .site-form > * {
    grid-column: 1;
  }

  html[data-theme] body.dashboard-v2 .binding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme] body.dashboard-v2 .binding-form,
  html[data-theme] body.dashboard-v2 .binding-code-form {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.dashboard-v2 .binding-form button,
  html[data-theme] body.dashboard-v2 .binding-code-form button {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .theme-menu {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  html[data-theme] body.dashboard-v2 .server-detail-drawer {
    top: auto;
    width: 100%;
    max-height: 88dvh;
    border-top: 1px solid var(--dash-border);
    border-left: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
  }

  html[data-theme] body.dashboard-v2 .server-detail-drawer.is-open {
    transform: translateY(0);
  }
}

@media (max-width: 430px) {
  html[data-theme] body.dashboard-v2 .shell {
    padding-inline: 10px;
  }

  html[data-theme] body.dashboard-v2 .app-header {
    gap: 9px;
    padding-inline: 10px;
  }

  html[data-theme] body.dashboard-v2 .app-header__context {
    min-width: 0;
    flex: 1;
  }

  html[data-theme] body.dashboard-v2 .app-header__context strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-theme] body.dashboard-v2 .topbar__actions {
    gap: 6px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-heading,
  html[data-theme] body.dashboard-v2 .dashboard-card,
  html[data-theme] body.dashboard-v2 .status-panel,
  html[data-theme] body.dashboard-v2 .community-publish-card,
  html[data-theme] body.dashboard-v2 .community-feed,
  html[data-theme] body.dashboard-v2 .chat-room,
  html[data-theme] body.dashboard-v2 .shop-service-card,
  html[data-theme] body.dashboard-v2 .shop-help-card,
  html[data-theme] body.dashboard-v2 .profile-card,
  html[data-theme] body.dashboard-v2 .profile-binding-panel,
  html[data-theme] body.dashboard-v2 #profileForm,
  html[data-theme] body.dashboard-v2 .site-form {
    border-radius: 16px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-stats > article {
    padding: 12px;
  }

  html[data-theme] body.dashboard-v2 .dashboard-stats article small {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .overview-server-row__state {
    min-width: 45px;
  }

  html[data-theme] body.dashboard-v2 .overview-server-row__state small {
    display: none;
  }

  html[data-theme] body.dashboard-v2 .status-panel__tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 42px;
  }

  html[data-theme] body.dashboard-v2 .summary,
  html[data-theme] body.dashboard-v2 .overview-stat {
    min-height: 58px;
    padding: 8px;
  }

  html[data-theme] body.dashboard-v2 .summary strong,
  html[data-theme] body.dashboard-v2 .overview-stat strong {
    font-size: 17px;
  }

  html[data-theme] body.dashboard-v2 .server-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  html[data-theme] body.dashboard-v2 .server-card__cover {
    width: 76px;
  }

  html[data-theme] body.dashboard-v2 .server-card__copy strong {
    max-width: 72px;
  }

  html[data-theme] body.dashboard-v2 .profile-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-theme] body.dashboard-v2 .profile-form-actions button {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2 .site-toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme] body.dashboard-v2 *,
  html[data-theme] body.dashboard-v2 *::before,
  html[data-theme] body.dashboard-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
