/**
 * Chatvora — SaaS dashboard (dark, Claude / Linear inspired)
 */

.sr-page-dashboard {
  overflow-x: hidden;
  --sr-dash-bg: #0a0a0f;
  --sr-dash-sidebar: #0f0f17;
  --sr-dash-border: rgba(255, 255, 255, 0.07);
  --sr-dash-card: #111118;
  --sr-dash-card-border: rgba(255, 255, 255, 0.07);
  --sr-dash-muted: rgba(255, 255, 255, 0.6);
  --sr-dash-accent: #6366f1;
  --sr-dash-accent2: #3b82f6;
  --sr-dash-input-bg: #1a1a2e;
  --sr-nav-h: 56px;
  --sr-dash-mnav-h: 58px;
  background-color: var(--sr-dash-bg) !important;
  color: #ffffff;
  min-height: 0;
  padding-bottom: 0;
}

.sr-page-dashboard .navbar-area.sr-navbar-compact {
  min-height: var(--sr-nav-h);
}

/* --- Layout: sidebar always in DOM; desktop left rail; mobile bottom nav --- */
/* App row: grows inside flex-column body — do NOT force full-viewport height here (footer sits after this wrap). */
.sr-dash-wrap {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  background: #0a0a0f;
  width: 100%;
}

.sr-dash-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .sr-dash-sidebar {
    display: flex;
    flex-direction: column;
    width: 180px;
    min-width: 180px;
    background: #0a0a0f;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 10px;
    position: sticky;
    top: var(--sr-nav-h);
    align-self: flex-start;
    height: calc(100vh - var(--sr-nav-h));
    max-height: calc(100vh - var(--sr-nav-h));
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 2;
  }

  .sr-dash-user {
    padding: 0 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
  }

  .sr-dash-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .sr-dash-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    margin: 0;
    line-height: 1.35;
  }

  .sr-dash-plan-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .sr-dash-plan-badge.pro {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
  }

  .sr-dash-plan-badge.master {
    background: rgba(167, 139, 250, 0.18);
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.4);
  }

  .sr-dash-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0;
  }

  .sr-dash-nav-group {
    margin-bottom: 4px;
  }

  .sr-nav-group-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 10px 4px;
  }

  .sr-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 4px;
  }

  .sr-nav-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
  }

  .sr-dash-nav-new {
    margin-left: auto;
    padding: 0;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    color: rgba(129, 140, 248, 0.75);
    flex-shrink: 0;
    opacity: 0.95;
  }

  .sr-dash-nav-link,
  .sr-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none !important;
    transition:
      background 0.15s,
      color 0.15s;
    margin-bottom: 1px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-left: 2px solid transparent;
    box-sizing: border-box;
  }

  .sr-dash-nav-item__label {
    flex: 1;
    min-width: 0;
  }

  .sr-dash-nav-link .bx,
  .sr-dash-nav-item svg,
  .sr-dash-nav-item .bx {
    font-size: 1rem;
    opacity: 0.75;
    flex-shrink: 0;
  }

  .sr-dash-nav-link:hover,
  .sr-dash-nav-item:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
  }

  .sr-dash-nav-link.is-active,
  .sr-dash-nav-item.active {
    color: white;
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
  }

  .sr-dash-nav-link.is-active .bx,
  .sr-dash-nav-item.active svg,
  .sr-dash-nav-item.active .bx {
    opacity: 1;
  }

  .sr-nav-new-chat {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #818cf8 !important;
    border-left-color: transparent !important;
    margin-bottom: 4px;
  }

  .sr-nav-new-chat:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: white !important;
  }

  .sr-dash-logout {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .sr-dash-logout-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
    transition:
      background 0.15s,
      color 0.15s;
  }

  .sr-dash-logout-link:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
  }

  .sr-dash-logout-link svg {
    flex-shrink: 0;
    opacity: 0.75;
  }
}

/* Mobile bottom nav + More drawer (dashboard) */
#sr-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  align-items: stretch;
  box-sizing: border-box;
  background: #0f0f17;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 58px;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

#sr-more-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767.98px) {
  .sr-dash-sidebar {
    display: none !important;
  }

  #sr-mobile-nav {
    display: flex !important;
  }

  .sr-page-dashboard {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .sr-dash-main {
    padding: 16px 14px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 768px) {
  #sr-mobile-nav,
  #sr-more-drawer,
  #sr-drawer-backdrop {
    display: none !important;
  }
}

/* Main */
.sr-dash-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: var(--sr-dash-bg);
  padding: 16px;
  padding-bottom: 16px;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .sr-dash-main {
    padding: 28px 32px;
    padding-bottom: 28px;
    overflow: visible;
    max-height: none;
  }
}

#sr-dash-panel-overview {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  #sr-dash-panel-overview {
    padding-bottom: 24px;
  }
}

/* Overview: optional right column (large desktops only) */
.sr-dash-overview-layout {
  display: block;
  width: 100%;
}

.sr-dash-overview-main {
  width: 100%;
  max-width: 900px;
}

.sr-dash-overview-aside {
  display: none;
}

@media (min-width: 1200px) {
  /* Flex keeps the aside beside the main stack; leftover width stays past the aside (not between columns). */
  .sr-dash-overview-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
  }

  .sr-dash-overview-main {
    flex: 0 1 900px;
    max-width: 900px;
    min-width: 0;
  }

  .sr-dash-overview-aside {
    display: block;
    flex: 0 0 280px;
    width: 280px;
    position: sticky;
    top: 8px;
  }
}

.sr-dash-aside-card {
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.sr-dash-aside-card:last-child {
  margin-bottom: 0;
}

.sr-dash-aside-card__title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.sr-dash-aside-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.sr-dash-aside-list li {
  margin-bottom: 8px;
}

.sr-dash-aside-list li:last-child {
  margin-bottom: 0;
}

.sr-dash-aside-list strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.sr-dash-aside-kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sr-dash-aside-kbd-plus {
  margin: 0 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.sr-dash-aside-lead {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  margin: 0 0 12px;
}

.sr-dash-aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sr-dash-aside-links a {
  font-size: 13px;
  font-weight: 500;
  color: #818cf8;
  text-decoration: none;
  transition: color 0.15s;
}

.sr-dash-aside-links a:hover {
  color: #a5b4fc;
}

.sr-dash-panel[hidden] {
  display: none !important;
}

.sr-dash-panel--uncensored {
  padding: 0 !important;
}

.sr-dash-uncensored-embed {
  margin: -16px -14px;
  min-height: 200px;
  background: #0a0a0f;
}

@media (min-width: 768px) {
  .sr-dash-uncensored-embed {
    margin: -28px -32px;
  }
}

/* Page headers (overview / chats / settings) */
.sr-dash-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sr-dash-page-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.sr-dash-page-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.sr-dash-greeting {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.sr-dash-subtext {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 2px 0 0;
}

.sr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(167, 139, 250, 0.4);
  cursor: pointer;
  text-decoration: none !important;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff !important;
  transition: filter 0.15s ease;
  white-space: nowrap;
}

.sr-btn-primary:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

/* Overview — compact primary CTA */
.sr-dash-btn-new-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(129, 140, 248, 0.45);
  cursor: pointer;
  text-decoration: none !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff !important;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.sr-dash-btn-new-chat:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .sr-dash-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sr-btn-primary,
  .sr-dash-btn-new-chat {
    width: 100%;
    justify-content: center;
  }

  .sr-dash-detail-row > [class*='col-'] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.sr-dash-banner {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.sr-dash-banner--warn {
  background: rgba(180, 83, 9, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

/* Unified quota + plan card */
.sr-quota-card {
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sr-quota-card--pro .sr-plan-badge--pro {
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.sr-quota-plan {
  flex: 0 0 auto;
  min-width: min(100%, 200px);
}

.sr-plan-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 8px;
  vertical-align: middle;
}

.sr-plan-name {
  display: inline;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.sr-upgrade-link {
  display: block;
  font-size: 12px;
  color: #818cf8;
  text-decoration: none;
  margin-top: 6px;
  font-weight: 500;
}

.sr-upgrade-link:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

.sr-quota-plan-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

.sr-quota-plan-note {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  line-height: 1.45;
}

.sr-quota-usage {
  flex: 1;
  min-width: min(100%, 280px);
}

.sr-quota-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.sr-quota-numbers {
  color: #fff;
  font-weight: 500;
}

.sr-quota-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.sr-quota-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.6s ease;
}

.sr-quota-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.sr-quota-bar-fill.danger {
  background: #ef4444;
}

.sr-quota-remaining {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

@media (max-width: 767.98px) {
  .sr-quota-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

.sr-quota-left {
  flex: 0 0 auto;
  min-width: min(100%, 180px);
}

.sr-quota-right {
  flex: 1;
  min-width: 0;
}

.sr-quota-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.sr-quota-count {
  color: white;
  font-weight: 500;
}

.sr-quota-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.sr-quota-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.6s ease;
}

.sr-quota-fill.sr-quota-warn {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.sr-quota-left .sr-plan-name {
  display: block;
  margin-top: 4px;
}

/* Stat cards row — CSS grid */
.sr-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 767.98px) {
  .sr-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.sr-stats-row .sr-dash-stat-card {
  width: 100%;
  min-width: 0;
}

.sr-dash-stat-card,
.sr-stat-card {
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.sr-dash-stat-card::before,
.sr-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.sr-stats-row > div:nth-child(1) .sr-stat-card::before {
  background: #6366f1;
}

.sr-stats-row > div:nth-child(2) .sr-stat-card::before {
  background: #22c55e;
}

.sr-stats-row > div:nth-child(3) .sr-stat-card::before {
  background: #8b5cf6;
}

.sr-stats-row > div:nth-child(4) .sr-stat-card::before {
  background: #f59e0b;
}

.sr-dash-stat-card__viz {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.sr-dash-stat-card__viz .bx {
  opacity: 1;
}

.sr-dash-stat-card__value,
.sr-stat-num,
.sr-stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  padding-right: 40px;
}

.sr-dash-stat-card__label,
.sr-stat-label {
  display: block;
  margin-top: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 767.98px) {
  .sr-dash-stat-card,
  .sr-stat-card {
    padding: 14px 16px;
  }

  .sr-dash-stat-card__value,
  .sr-stat-num,
  .sr-stat-number {
    font-size: 22px;
  }
}

/* Quota + plan unified card */
.sr-dash-detail-row {
  margin-top: 0;
  margin-bottom: 20px;
}

.sr-dash-quota-plan-skel {
  padding: 8px 0;
}

/* Panel cards (usage / plan) */
.sr-dash-panel-card {
  background: var(--sr-dash-card);
  border: 1px solid var(--sr-dash-card-border);
  border-radius: 12px;
  padding: 16px 18px;
  height: 100%;
}

.sr-dash-panel-card--section {
  margin-bottom: 1.25rem;
}

.sr-dash-panel-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.sr-dash-panel-card__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sr-dash-muted);
  margin: 0 0 1rem;
}

.sr-dash-subsection-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.75rem;
}

.sr-dash-plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.sr-dash-muted-copy {
  font-size: 0.88rem;
  color: var(--sr-dash-muted);
  margin: 0;
}

.sr-progress-track,
.sr-dash-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 8px;
}

.sr-progress-fill,
.sr-dash-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.sr-progress-fill--tier-low,
.sr-dash-progress-fill.sr-progress-fill--tier-low {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.sr-progress-fill--tier-mid,
.sr-dash-progress-fill.sr-progress-fill--tier-mid {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.sr-progress-fill--tier-high,
.sr-dash-progress-fill.sr-progress-fill--tier-high {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.sr-dash-quota-lead {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.sr-dash-quota-foot {
  margin-top: 8px;
  font-size: 0.88rem;
}

.sr-dash-quota-remaining {
  margin: 8px 0 6px;
  font-size: 0.88rem;
}

.sr-dash-panel-card .sr-dash-feature-list {
  margin-bottom: 12px;
}

.sr-dash-link-upgrade {
  font-size: 0.88rem;
  font-weight: 500;
  color: #a5b4fc !important;
  text-decoration: none !important;
}

.sr-dash-link-upgrade:hover {
  text-decoration: underline !important;
  color: #c7d2fe !important;
}

.sr-dash-feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.sr-dash-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.5rem;
}

.sr-dash-feature-list .bx {
  color: #4ade80;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sr-dash-pro-active {
  font-size: 0.9rem;
  color: #4ade80;
  font-weight: 500;
}

/* Chats */
.sr-dash-chats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.sr-dash-chats-head__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.sr-dash-conv-toolbar {
  margin-bottom: 16px;
  width: 100%;
}

.sr-dash-search-wrap,
.sr-search-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  box-sizing: border-box;
}

.sr-dash-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.38);
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}

.sr-search-input {
  background: #12122a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #fff !important;
  min-height: 44px;
  padding: 10px 14px !important;
  font-size: 14px !important;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.sr-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.sr-search-input:focus {
  border-color: rgba(99, 102, 241, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.sr-search-input[type='search']::-webkit-search-decoration,
.sr-search-input[type='search']::-webkit-search-cancel-button,
.sr-search-input[type='search']::-webkit-search-results-button,
.sr-search-input[type='search']::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.sr-dash-input--search {
  max-width: none;
}

.sr-dash-empty-filter {
  text-align: center;
  color: var(--sr-dash-muted);
  font-size: 0.9rem;
  padding: 1rem;
}

.sr-dash-conv-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sr-dash-load-more-wrap {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.sr-dash-load-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sr-dash-conv-row,
.sr-conv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  cursor: default;
}

.sr-dash-conv-row:hover,
.sr-conv-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: #111120;
}

.sr-dash-conv-row.is-removing {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
}

.sr-dash-conv-row__main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 200px;
}

.sr-conv-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 1.15rem;
}

.sr-dash-conv-row__icon {
  font-size: 1.35rem;
  color: rgba(99, 102, 241, 0.9);
  margin-top: 0.1rem;
}

.sr-dash-conv-row__title,
.sr-conv-title {
  font-weight: 500;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
  margin-bottom: 2px;
}

.sr-dash-conv-row__meta,
.sr-conv-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.sr-conv-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.sr-dash-dot {
  margin: 0 0.25rem;
  opacity: 0.5;
}

.sr-dash-conv-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sr-dash-tag-wrap {
  position: relative;
  display: inline-block;
}

.sr-dash-tag-btn {
  font-size: 0.9rem;
}

.sr-dash-tag-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  z-index: 150;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sr-dash-tag-option {
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sr-dash-tag-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sr-dash-tag-option--remove {
  color: rgba(255, 255, 255, 0.5);
}

.sr-dash-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--sr-dash-card);
  border: 1px solid var(--sr-dash-card-border);
  border-radius: 12px;
}

.sr-dash-empty-state .bx {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.sr-dash-empty-state p {
  color: var(--sr-dash-muted);
  margin: 0 0 1.25rem;
}

/* Buttons */
.sr-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: filter 0.15s ease, background 0.15s ease;
}

.sr-dash-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff !important;
  border-color: rgba(167, 139, 250, 0.4);
}

.sr-dash-btn--primary:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.sr-dash-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12);
}

.sr-dash-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.sr-dash-btn--block {
  width: 100%;
}

.sr-dash-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.sr-dash-btn--accent {
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff !important;
  border-color: rgba(99, 102, 241, 0.45);
}

.sr-dash-btn--accent:hover {
  background: rgba(99, 102, 241, 0.32);
  color: #fff !important;
}

.sr-dash-btn--danger {
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.45);
}

.sr-dash-btn--danger:hover {
  background: rgba(127, 29, 29, 0.5);
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .sr-dash-conv-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .sr-dash-conv-row.sr-conv-card,
  .sr-conv-card {
    padding: 12px;
  }

  .sr-dash-conv-row__title.sr-conv-title,
  .sr-conv-title {
    font-size: 13px;
  }

  #sr-settings-root,
  .sr-dash-settings-root,
  .sr-settings-content {
    max-width: 100%;
  }

  .sr-chart-bars {
    height: 48px;
  }

  .sr-dash-conv-row__main {
    flex: 1 1 auto;
    width: 100%;
  }

  .sr-dash-conv-row__actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .sr-dash-input--search {
    max-width: none;
  }

  .sr-dash-input {
    font-size: 14px;
  }

  .sr-dash-settings-root .sr-set-field,
  .sr-dash-settings-root .sr-set-btn {
    font-size: 14px;
  }

  .sr-dash-field-label {
    font-size: 14px;
  }

  .sr-dash-muted-copy,
  .sr-dash-panel-card__title,
  .sr-dash-chats-head__title {
    font-size: max(14px, 0.95rem);
  }
}

.sr-dash-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sr-dash-conv-pin.is-pinned {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.sr-dash-icon-btn:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

/* Form */
.sr-dash-field-label {
  display: block;
  font-size: 0.82rem;
  color: var(--sr-dash-muted);
  margin-bottom: 0.35rem;
}

.sr-dash-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--sr-dash-input-bg) !important;
  color: #fff !important;
  font-size: 0.9rem;
}

.sr-dash-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sr-dash-input[readonly] {
  opacity: 0.85;
  cursor: default;
}

.sr-dash-form-msg {
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
}

.sr-dash-form-msg--ok {
  background: rgba(22, 101, 52, 0.28);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}

.sr-dash-form-msg--err {
  background: rgba(127, 29, 29, 0.28);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.sr-dash-danger-zone {
  border-color: rgba(248, 113, 113, 0.35) !important;
  background: rgba(127, 29, 29, 0.08);
}

.sr-dash-danger-zone__title {
  color: #fca5a5 !important;
}

.sr-dash-settings-header {
  margin-bottom: clamp(1.35rem, 3vw, 1.85rem);
}

/* Settings — section cards */
/* Settings — section cards + responsive layout
 * Breakpoints:
 * - <1200px: single column (stacked); touch-friendly control sizes; no sticky save bar
 *   (saves are per-section; a global sticky bar would not map to one clear action).
 * - >=1200px: two columns — identity (profile + security) | preferences + data;
 *   danger zone full width below; wider max content width.
 */
.sr-dash-settings-root,
.sr-settings-content {
  width: 100%;
  max-width: min(1180px, 100%);
  box-sizing: border-box;
}

/* Settings controls — compact design tokens + consistent sr-set-* (scoped to settings root only) */
.sr-dash-settings-root {
  --sr-set-radius: 7px;
  --sr-set-radius-sm: 6px;
  --sr-set-font: 0.8125rem;
  --sr-set-font-weight: 500;
  --sr-set-ring: rgba(129, 140, 248, 0.45);
  --sr-set-ring-inner: rgba(129, 140, 248, 0.22);

  --sr-set-field-h: 32px;
  --sr-set-field-px: 0.625rem;
  --sr-set-field-fs: var(--sr-set-font);

  --sr-set-btn-fs: var(--sr-set-font);
  --sr-set-btn-px: 0.6875rem;
  --sr-set-btn-min-h: 30px;
  --sr-set-btn-gap: 0.375rem;

  --sr-set-btn-min-h-em: 34px;
  --sr-set-btn-px-em: 0.8125rem;
}

.sr-dash-settings-root .sr-set-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: var(--sr-set-field-h);
  height: var(--sr-set-field-h);
  padding: 0.45rem var(--sr-set-field-px);
  border-radius: var(--sr-set-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  font-size: var(--sr-set-field-fs);
  line-height: 1.35;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.sr-dash-settings-root .sr-set-field::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.sr-dash-settings-root .sr-set-field:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55) !important;
  box-shadow: 0 0 0 3px var(--sr-set-ring-inner);
}

.sr-dash-settings-root .sr-set-field:focus-visible {
  border-color: rgba(129, 140, 248, 0.65) !important;
}

.sr-dash-settings-root .sr-set-field[disabled],
.sr-dash-settings-root .sr-set-field:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sr-dash-settings-root .sr-set-field.sr-set-field--select {
  appearance: none;
  cursor: pointer;
  height: auto;
  min-height: var(--sr-set-field-h);
  line-height: 1.35;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-right: 2.15rem;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239093b5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.95rem;
}

.sr-dash-settings-root .sr-set-field.sr-set-field--select option {
  background: #111118;
}

.sr-dash-settings-root .sr-set-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sr-set-btn-gap);
  flex-shrink: 0;
  min-height: var(--sr-set-btn-min-h);
  padding: 0 var(--sr-set-btn-px);
  border-radius: var(--sr-set-radius);
  font-family: inherit;
  font-size: var(--sr-set-btn-fs);
  font-weight: var(--sr-set-font-weight);
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    opacity 0.12s ease,
    filter 0.12s ease,
    box-shadow 0.12s ease;
}

.sr-dash-settings-root .sr-set-btn:focus {
  outline: none;
}

.sr-dash-settings-root .sr-set-btn:focus-visible {
  outline: 2px solid var(--sr-set-ring);
  outline-offset: 1px;
}

.sr-dash-settings-root .sr-set-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}

.sr-dash-settings-root .sr-set-btn__icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.sr-dash-settings-root .sr-set-btn__text {
  display: inline-block;
}

.sr-dash-settings-root .sr-set-btn[disabled],
.sr-dash-settings-root .sr-set-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.sr-dash-settings-root .sr-set-btn.is-loading {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.sr-dash-settings-root .sr-set-btn.is-loading .sr-set-btn__text {
  visibility: hidden;
}

.sr-dash-settings-root .sr-set-btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.65);
  animation: sr-set-spin 0.6s linear infinite;
}

@keyframes sr-set-spin {
  to {
    transform: rotate(360deg);
  }
}

.sr-dash-settings-root .sr-set-btn--emphasis:not(.sr-set-btn--danger):not(.sr-set-btn--danger-outline) {
  min-height: var(--sr-set-btn-min-h-em);
  padding: 0 var(--sr-set-btn-px-em);
  font-weight: 600;
  border-radius: calc(var(--sr-set-radius) + 1px);
}

/* primary */
.sr-dash-settings-root .sr-set-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff !important;
  border-color: rgba(167, 139, 250, 0.35);
}

.sr-dash-settings-root .sr-set-btn--primary:not(:disabled):not([disabled]):not(.is-loading):hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.sr-dash-settings-root .sr-set-btn--primary:focus-visible {
  outline-color: rgba(196, 181, 253, 0.75);
}

/* secondary — neutral filled */
.sr-dash-settings-root .sr-set-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.14);
}

.sr-dash-settings-root .sr-set-btn--secondary:not(:disabled):not([disabled]):not(.is-loading):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

/* ghost */
.sr-dash-settings-root .sr-set-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.1);
}

.sr-dash-settings-root .sr-set-btn--ghost:not(:disabled):not([disabled]):not(.is-loading):hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff !important;
}

/* danger — solid tinted */
.sr-dash-settings-root .sr-set-btn--danger {
  background: rgba(127, 29, 29, 0.32);
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.4);
}

.sr-dash-settings-root .sr-set-btn--danger:not(:disabled):not([disabled]):not(.is-loading):hover {
  background: rgba(127, 29, 29, 0.48);
  border-color: rgba(252, 165, 165, 0.5);
  color: #fff !important;
}

/* danger outline — destructive outline */
.sr-dash-settings-root .sr-set-btn--danger-outline {
  background: transparent !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.42) !important;
}

.sr-dash-settings-root .sr-set-btn--danger-outline:not(:disabled):not([disabled]):not(.is-loading):hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #fff !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
}

.sr-dash-settings-root .sr-set-btn--danger-outline:focus-visible {
  outline-color: rgba(248, 113, 113, 0.55);
}

/* Toggles — settings only */
.sr-dash-settings-root .sr-set-toggle-row {
  margin-bottom: 0;
}

.sr-dash-settings-root .sr-set-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  text-align: left;
  margin: 0;
}

.sr-dash-settings-root .sr-set-toggle--stretch {
  width: 100%;
}

.sr-dash-settings-root .sr-set-toggle:focus-within {
  outline: 2px solid rgba(165, 180, 252, 0.6);
  outline-offset: 3px;
  border-radius: 10px;
}

.sr-dash-settings-root .sr-set-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-dash-settings-root .sr-set-toggle__track {
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
  margin-top: 1px;
}

.sr-dash-settings-root .sr-set-toggle__track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  left: 3px;
  top: 2px;
  transition: transform 0.12s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sr-dash-settings-root .sr-set-toggle__input:checked + .sr-set-toggle__track {
  background: rgba(124, 58, 237, 0.5);
  border-color: rgba(167, 139, 250, 0.4);
}

.sr-dash-settings-root .sr-set-toggle__input:checked + .sr-set-toggle__track::after {
  transform: translateX(15px);
  background: #fff;
}

.sr-dash-settings-root .sr-set-toggle__input:disabled + .sr-set-toggle__track {
  opacity: 0.38;
}

.sr-dash-settings-root .sr-set-toggle__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sr-dash-settings-root .sr-set-toggle__title {
  font-size: 0.8425rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.sr-dash-settings-root .sr-set-toggle__desc {
  font-size: 0.758rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.38);
}

.sr-dash-settings-root .sr-set-coming-soon {
  padding: 0.75rem 0.875rem;
  margin-bottom: 0.875rem;
  border-radius: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.sr-dash-settings-root .sr-set-coming-soon__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.sr-dash-settings-root .sr-set-coming-soon__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(165, 180, 252, 0.9);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.sr-dash-settings-root .sr-set-coming-soon__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.sr-dash-settings-root .sr-set-coming-soon__text {
  margin-bottom: 0 !important;
}

.sr-dash-settings-layout {
  display: grid;
  gap: clamp(1rem, 3vw, 1.35rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-width: 0;
}
@media (max-width: 1199.98px) {
  .sr-dash-settings-root {
    --sr-set-field-h: 46px;
    --sr-set-btn-min-h: 44px;
    --sr-set-btn-min-h-em: 48px;
  }

  [data-sr-settings-stack='1'].sr-settings-data-row {
    flex-direction: column;
    align-items: stretch;
  }

  [data-sr-settings-stack='1'].sr-settings-data-row .sr-set-btn {
    width: 100%;
    justify-content: center;
  }

  .sr-settings-danger-body[data-sr-settings-stack='1'] {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .sr-settings-danger-body[data-sr-settings-stack='1'] .sr-set-btn {
    width: 100%;
    justify-content: center;
  }
}

.sr-dash-settings-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.35rem);
  min-width: 0;
}

@media (min-width: 1200px) {
  .sr-dash-settings-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }

  .sr-dash-settings-span-full {
    grid-column: 1 / -1;
  }
}

.sr-settings-card {
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 10% -10%, rgba(99, 102, 241, 0.08), transparent 54%), #111118;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.sr-settings-card-header {
  margin: 0;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.sr-settings-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.sr-settings-card-body--flush-y {
  padding-top: 0;
  padding-bottom: 0;
}

.sr-dashboard .sr-dash-btn:focus-visible,
.sr-page-dashboard .sr-dash-btn:focus-visible {
  outline: 2px solid rgba(165, 180, 252, 0.65);
  outline-offset: 2px;
}

.sr-form-group-label.sr-form-group-label--caps {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.sr-settings-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sr-settings-readonly__value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.sr-settings-readonly__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
}

.sr-settings-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.sr-settings-inline-actions__field {
  flex: 1 1 200px;
  min-width: 0;
}

.sr-dash-settings-pw-grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.875rem;
}

@media (max-width: 579.98px) {
  .sr-dash-settings-pw-grid {
    grid-template-columns: 1fr;
  }

  .sr-dash-settings-root .sr-set-field {
    font-size: 16px;
  }

  .sr-form-group-label {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .sr-settings-hint {
    margin-top: 0.5rem;
    line-height: 1.5;
  }
}

.sr-settings-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sr-settings-feedback--muted {
  color: rgba(255, 255, 255, 0.35);
}

.sr-settings-data-rows {
  display: flex;
  flex-direction: column;
}

.sr-settings-data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sr-settings-data-row--last {
  border-bottom: none;
}

.sr-settings-data-row__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sr-settings-data-row__title {
  font-size: 0.845rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.93);
}

.sr-settings-data-row__hint {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.35);
}

.sr-settings-inline-actions .sr-set-btn {
  flex: 0 0 auto;
  align-self: center;
}

@media (max-width: 519.98px) {
  .sr-settings-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sr-settings-inline-actions .sr-set-btn {
    width: 100%;
    justify-content: center;
  }

  .sr-settings-inline-actions__field {
    flex-basis: 100%;
    width: 100%;
  }
}

.sr-settings-danger-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.sr-settings-danger-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sr-form-group {
  margin-bottom: 14px;
}

.sr-form-group label,
.sr-form-group-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  font-weight: 500;
}

.sr-form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.sr-form-group input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.sr-settings-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 0.45rem;
  line-height: 1.45;
}

.sr-settings-feedback {
  margin-top: 0.6rem;
  font-size: 12px;
  min-height: 1em;
  line-height: 1.4;
}

.sr-settings-danger-lead {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 14px;
}

.sr-settings-delete-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.sr-settings-delete-btn:hover {
  background: rgba(239, 68, 68, 0.12);
}

.sr-settings-input,
.sr-settings-card .sr-dash-input,
.sr-settings-card .sr-set-field {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sr-settings-card--danger {
  border-color: rgba(239, 68, 68, 0.18);
}

.sr-settings-card-header--danger {
  color: rgba(239, 68, 68, 0.7) !important;
  border-bottom-color: rgba(239, 68, 68, 0.1);
}

.sr-settings-danger-copy {
  margin-bottom: 1rem !important;
}

/* Kill template white leaks on dashboard */
.sr-page-dashboard .default-btn {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
}

/* Overview — activity chart & feed */
.sr-activity-chart {
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.sr-chart-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sr-chart-empty,
.sr-activity-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.sr-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
}

.sr-chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.sr-chart-bar {
  width: 100%;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: background 0.15s;
}

.sr-chart-bar:hover {
  background: rgba(99, 102, 241, 0.7);
}

.sr-chart-bar.today {
  background: #6366f1;
}

.sr-chart-day {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.sr-activity-feed {
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.sr-activity-header {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sr-activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sr-activity-item:last-child {
  border-bottom: none;
}

.sr-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.5);
  margin-top: 5px;
  flex-shrink: 0;
}

.sr-activity-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sr-activity-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.sr-activity-text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
}

.sr-activity-text a:hover {
  color: #818cf8;
}

.sr-activity-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

/* Upgrade banner */
.sr-upgrade-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.sr-upgrade-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
}

.sr-upgrade-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.sr-upgrade-banner-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.sr-upgrade-banner-btn:hover {
  opacity: 0.88;
  color: white !important;
}

@media (max-width: 767.98px) {
  .sr-upgrade-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .sr-upgrade-banner-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    white-space: normal;
  }

  /* Chats tab polish */
  .sr-dash-page-header--with-actions {
    gap: 12px;
    margin-bottom: 14px;
  }

  .sr-dash-page-header-actions {
    width: 100%;
    gap: 10px;
  }

  .sr-dash-page-header-actions .sr-btn-ghost,
  .sr-dash-page-header-actions .sr-dash-btn {
    min-height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 14px;
  }

  .sr-dash-conv-toolbar {
    margin-bottom: 12px;
  }

  .sr-search-input {
    min-height: 46px;
    border-radius: 13px !important;
    font-size: 15px !important;
    padding-left: 14px !important;
  }

  .sr-dash-search-icon {
    left: 14px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
  }

  .sr-dash-conv-row.sr-conv-card,
  .sr-conv-card {
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    gap: 10px;
  }

  .sr-conv-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
  }

  .sr-dash-conv-row__title.sr-conv-title,
  .sr-conv-title {
    font-size: 15px;
    line-height: 1.18;
    margin-bottom: 4px;
  }

  .sr-dash-conv-row__meta,
  .sr-conv-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
  }

  .sr-dash-conv-row__actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .sr-dash-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .sr-dash-conv-open.sr-dash-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
  }
}

/* My Chats header actions */
.sr-dash-page-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sr-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.sr-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sr-settings-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.sr-settings-data-title {
  font-size: 14px;
  color: white;
  margin-bottom: 2px;
}

.sr-settings-data-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.sr-settings-data-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

.sr-settings-data-btn {
  font-size: 13px !important;
}

.sr-settings-clear-all {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.sr-settings-clear-all:hover {
  background: rgba(239, 68, 68, 0.1);
}

.sr-dash-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sr-dash-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}

.sr-dash-confirm-modal {
  position: relative;
  width: min(480px, calc(100vw - 24px));
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  padding: 18px 18px 16px;
}

.sr-dash-confirm-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sr-dash-confirm-title {
  margin: 0 42px 10px 0;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
}

.sr-dash-confirm-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.sr-dash-confirm-input-wrap {
  margin-top: 12px;
}

.sr-dash-confirm-input-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.sr-dash-confirm-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 12px;
}

.sr-dash-confirm-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.62);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.sr-dash-confirm-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sr-dash-confirm-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sr-dash-confirm-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.sr-dash-confirm-btn--danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.46);
  color: #fecaca;
}

@media (max-width: 767.98px) {
  .sr-dash-confirm-modal {
    width: calc(100vw - 20px);
    border-radius: 12px;
    padding: 16px 14px 14px;
  }

  .sr-dash-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.sr-select {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sr-select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.45);
}

/* Overview stat cards — metric layout + subtitles */
.sr-dash-stat-card--metric .sr-dash-stat-card__viz--svg {
  color: rgba(255, 255, 255, 0.28);
}

.sr-dash-stat-card--metric .sr-dash-stat-card__viz--svg svg {
  display: block;
}

.sr-dash-stat-card__sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.35;
}

/* Plan / quota — pill dots card */
.sr-plan-card {
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sr-plan-card-pro {
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(139, 92, 246, 0.05));
}

.sr-plan-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 200px;
  min-width: 0;
}

.sr-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sr-plan-icon-pro {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.sr-plan-card-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.sr-plan-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.sr-plan-card-center {
  flex: 1;
  min-width: 200px;
}

.sr-plan-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sr-plan-dot {
  width: 18px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

/* Healthy usage: green · warning: amber · exhausted: red */
.sr-plan-dots .sr-plan-dot.used {
  background: #22c55e;
}

.sr-plan-dots--warn .sr-plan-dot.used {
  background: #f59e0b;
}

.sr-plan-dots--full .sr-plan-dot.used {
  background: #ef4444;
}

.sr-plan-dot-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.sr-plan-card-right {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 160px;
}

.sr-plan-card-right--pro {
  align-items: flex-end;
  text-align: right;
}

.sr-plan-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white !important;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.sr-plan-upgrade-btn:hover {
  opacity: 0.88;
  color: white !important;
}

.sr-plan-upgrade-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 5px;
  text-align: center;
}

.sr-plan-card-right .sr-plan-upgrade-sub {
  max-width: 220px;
}

.sr-plan-pro-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  .sr-plan-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .sr-plan-card-center {
    min-width: unset;
  }

  .sr-plan-card-right {
    align-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .sr-plan-card-right--pro {
    align-items: flex-start;
    text-align: left;
  }

  .sr-plan-upgrade-btn {
    width: 100%;
    justify-content: center;
  }

  .sr-plan-upgrade-sub {
    text-align: center;
    width: 100%;
    max-width: none;
  }

  .sr-plan-card-right .sr-plan-upgrade-sub {
    max-width: none;
  }
}

/* Welcome onboarding + returning-user tips */
.sr-onboarding-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.07));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
}

.sr-onboarding-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.sr-onboarding-close:hover {
  color: white;
}

.sr-onboarding-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 28px;
}

.sr-onboarding-wave {
  font-size: 28px;
}

.sr-onboarding-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0 0 3px;
}

.sr-onboarding-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.sr-onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-onboarding-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px 14px;
}

.sr-onboarding-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sr-onboarding-step-title {
  font-size: 13px;
  font-weight: 500;
  color: white;
  margin-bottom: 2px;
}

.sr-onboarding-step-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.sr-onboarding-step-btn {
  margin-left: auto;
  font-size: 12px;
  color: #818cf8;
  text-decoration: none !important;
  white-space: nowrap;
  font-weight: 500;
}

.sr-onboarding-step-btn:hover {
  color: white !important;
}

@media (max-width: 767.98px) {
  .sr-onboarding-step {
    flex-wrap: wrap;
  }

  .sr-onboarding-step-btn {
    margin-left: 40px;
    margin-top: 4px;
  }
}

.sr-tip-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  line-height: 1.45;
}

.sr-tip-banner > span:last-child {
  flex: 1;
  min-width: 0;
}

.sr-tip-banner a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
}

.sr-tip-banner a:hover {
  text-decoration: underline;
}

/* Desktop dashboard: document scroll owns vertical overflow so the shared footer can sit AFTER the shell
   without competing for a locked 100vh band (fixes clipped / crushed footer & odd scroll trapping). */
@media (min-width: 768px) {
  body.sr-page-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    overflow-x: clip;
    overflow-y: auto;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }

  body.sr-page-dashboard > .navbar-area {
    flex-shrink: 0;
    position: relative;
    z-index: 1005;
  }

  body.sr-page-dashboard > .sr-dash-wrap {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: stretch;
  }

  body.sr-page-dashboard .sr-dash-sidebar {
    position: sticky;
    top: var(--sr-nav-h);
    align-self: flex-start;
    height: calc(100vh - var(--sr-nav-h));
    height: calc(100dvh - var(--sr-nav-h));
    max-height: calc(100vh - var(--sr-nav-h));
    max-height: calc(100dvh - var(--sr-nav-h));
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }

  body.sr-page-dashboard .sr-dash-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
  }

  body.sr-page-dashboard .sr-dash-logout {
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
    background: #0a0a0f;
  }

  body.sr-page-dashboard .sr-dash-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  /* Compact site footer — same markup as marketing pages without stealing vertical band from dashboard */
  body.sr-page-dashboard footer.sr-footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem) 0 clamp(0.65rem, 2vw, 0.95rem);
  }

  body.sr-page-dashboard footer.sr-footer .sr-footer__grid {
    gap: 1.35rem 1.5rem;
  }

  body.sr-page-dashboard footer.sr-footer .sr-footer__bottom {
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    padding-bottom: 0.25rem;
  }
}

/* Pricing tab — full-width pricing markup inside dashboard shell */
.sr-dash-panel--pricing {
  padding: 0 !important;
}

.sr-dash-pricing-embed {
  margin: -16px -14px;
  padding-bottom: 8px;
}

@media (min-width: 768px) {
  .sr-dash-pricing-embed {
    margin: -28px -32px;
  }
}

.sr-dash-pricing-embed .sr-pricing-hero {
  padding-top: 4px;
}

.sr-dash-pricing-embed .container {
  max-width: min(1140px, 100%);
}
