.account-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background: #f6f8fc;
}

.account-shell-content {
  min-width: 0;
}

.account-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  align-self: start;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 18px 20px;
  overflow-y: auto;
  color: #e8efff;
  background:
    radial-gradient(circle at 20% 0, rgba(61, 115, 255, .32), transparent 35%),
    linear-gradient(180deg, #101b35 0%, #0b1429 100%);
  box-shadow: 8px 0 28px rgba(15, 31, 64, .08);
}

.account-sidebar-brand {
  display: grid;
  gap: 3px;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
}

.account-sidebar-brand strong {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
}

.account-sidebar-brand span {
  color: #9fb0d3;
  font-size: 12px;
  font-weight: 650;
}

.account-sidebar-nav {
  display: grid;
  gap: 7px;
}

.account-sidebar-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #dce6fb;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.account-sidebar-link:hover {
  border-color: rgba(163, 188, 255, .22);
  background: rgba(255, 255, 255, .07);
  transform: translateX(2px);
}

.account-sidebar-link.active {
  border-color: rgba(152, 187, 255, .45);
  background: linear-gradient(135deg, #1261ea, #347dff);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 83, 221, .28);
}

.account-sidebar-link > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-sidebar-link b {
  font-size: 13px;
  line-height: 1.15;
}

.account-sidebar-link small {
  overflow: hidden;
  color: #96a8ca;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-sidebar-link.active small {
  color: #dfeaff;
}

.account-sidebar-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #b9cae9;
  background: rgba(255, 255, 255, .08);
}

.account-sidebar-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-sidebar-link.active .account-sidebar-icon {
  color: #0755d4;
  background: #fff;
}

.account-sidebar-home {
  margin-top: auto;
  padding: 10px;
  color: #aebddb;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.account-sidebar-home:hover {
  color: #fff;
}

.account-shell .online-header,
.account-shell .billing-header {
  position: sticky;
  top: 0;
  z-index: 15;
}

.account-shell .dashboard-account-header {
  justify-content: flex-end;
}

.account-shell .online-header > .brand {
  display: none;
}

.account-header-title {
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 4px 2px 2px;
}

.account-section-heading h1 {
  margin: 0;
  color: #121b2c;
  font-size: clamp(25px, 2.4vw, 36px);
  letter-spacing: -.035em;
}

.account-section-heading p {
  max-width: 620px;
  margin: 5px 0 0;
  color: #68758a;
  font-size: 13px;
}

main[data-account-view="finance"] .dashboard-section-funnel:not(.dashboard-section-finance),
main[data-account-view="finance"] .dashboard-section-settings,
main[data-account-view="funnel"] .dashboard-section-finance:not(.dashboard-section-funnel),
main[data-account-view="funnel"] .dashboard-section-settings,
main[data-account-view="settings"] .dashboard-section-finance,
main[data-account-view="settings"] .dashboard-section-funnel {
  display: none !important;
}

main[data-account-view="finance"] .dashboard-section-billing,
main[data-account-view="finance"] .dashboard-section-seo,
main[data-account-view="funnel"] .dashboard-section-billing,
main[data-account-view="funnel"] .dashboard-section-seo,
main[data-account-view="settings"] .dashboard-section-billing,
main[data-account-view="settings"] .dashboard-section-seo,
main[data-account-view="billing"] .dashboard-section-settings,
main[data-account-view="billing"] .dashboard-section-finance,
main[data-account-view="billing"] .dashboard-section-funnel,
main[data-account-view="billing"] .dashboard-section-seo,
main[data-account-view="seo"] .dashboard-section-settings,
main[data-account-view="seo"] .dashboard-section-billing,
main[data-account-view="seo"] .dashboard-section-finance,
main[data-account-view="seo"] .dashboard-section-funnel {
  display: none !important;
}

main[data-account-view] .panel-toggle {
  display: none !important;
}

@media (max-width: 1200px) {
  .account-shell .promo-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .account-shell .promo-panel > div {
    max-width: none;
  }
  .account-shell .promo-panel form {
    min-width: 0;
  }
}

@media (max-width: 1050px) {
  .account-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .account-sidebar {
    padding-inline: 13px;
  }
}

@media (max-width: 760px) {
  .account-shell {
    display: block;
  }
  .account-sidebar {
    position: relative;
    width: auto;
    height: auto;
    gap: 14px;
    padding: 16px;
    overflow: visible;
  }
  .account-sidebar-brand {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }
  .account-sidebar-brand strong {
    font-size: 22px;
  }
  .account-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .account-sidebar-link {
    grid-template-columns: 25px minmax(0, 1fr);
    min-height: 48px;
    padding: 8px;
  }
  .account-sidebar-link b {
    font-size: 11px;
  }
  .account-sidebar-link small {
    display: none;
  }
  .account-sidebar-icon {
    width: 25px;
    height: 25px;
  }
  .account-sidebar-link:hover {
    transform: none;
  }
  .account-sidebar-home {
    display: none;
  }
  .account-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
