body.workspace-page {
  --workspace-aside: 236px;
  --site-topbar-offset: 0px;
  margin: 0px;
  background: rgb(255, 255, 255);
  color: rgb(23, 32, 51);
}

body.workspace-page .Wrapper, body.workspace-page .Wrapper > .content {
  width: 100%;
  max-width: none;
  margin: 0px;
  padding: 0px;
}

.workspace-sidebar {
  position: fixed;
  inset: 0px auto 0px 0px;
  z-index: 100;
  box-sizing: border-box;
  padding: 30px 8px 20px;
  display: flex;
  flex-direction: column;
  background: rgb(249, 249, 249);
  border-right: 1px solid var(--svc-border);
  overflow-y: auto;
  width: 240px;
}

.workspace-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgb(23, 32, 51);
  text-decoration: none;
  font-size: 19px;
  white-space: nowrap;
  padding: 0px 10px;
}

.workspace-brand img {
  display: block;
  border-radius: 9px;
}

.workspace-brand--desktop {
  margin: 0px 0px 13px;
}

.workspace-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workspace-menu > a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 36px;
  padding: 0px 8px;
  border-radius: 7px;
  color: rgb(0, 0, 0);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.workspace-menu > a:hover,
.workspace-menu > a[aria-current="page"] {
  background: var(--hv4-accent, #3478ef);
  color: rgb(255, 255, 255);
}

.workspace-menu svg, .workspace-menu-toggle svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-menu-divider {
  height: 1px;
  background: rgb(240, 241, 244);
  margin: 8px 16px;
}

.workspace-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(36, 189, 105);
  margin-left: auto;
}

.workspace-sidebar-bottom {
  margin-top: auto;
}

.workspace-policies {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.workspace-policies a {
  color: rgb(150, 156, 166);
  font-size: 11px;
  text-decoration: none;
}

.workspace-content {
  margin-left: var(--workspace-aside);
  padding: 32px clamp(24px, 4vw, 64px) 48px;
  min-height: 100vh;
  box-sizing: border-box;
}

.workspace-mobile-header, .workspace-menu-toggle, .workspace-sidebar-close {
  display: none;
}

.workspace-backdrop[hidden] {
  display: none;
}

.workspace-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid rgb(233, 236, 241);
  margin: 0px 0px 28px;
}

.workspace-tabs > a {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  position: relative;
  padding: 8px 0px;
  color: rgb(146, 152, 162);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.workspace-tabs > a[aria-current="page"] {
  color: rgb(23, 32, 51);
}

.workspace-tabs > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 3px;
  background: rgb(52, 120, 239);
  bottom: -1px;
  left: 0px;
  right: 0px;
}

.workspace-tabs > a:hover {
  color: rgb(36, 99, 220);
}

body.workspace-page .subscription-catalog-heading {
  border: 0px;
}

body.workspace-page .subscription-catalog-heading .home-v4-brands-container {
  margin: 0px;
}

body.workspace-page .home-v4-main {
  padding: 28px 0px 0px;
  max-width: none;
  margin: 0px auto;
}

body.workspace-page .home-v4-card-grid, body.workspace-page .subscription-product-grid {
  margin-left: auto;
  margin-right: auto;
}

body.workspace-page .home-v4-card-grid {
  margin-top: 0px;
  margin-bottom: 0px;
}

body.workspace-page .service-wapper, body.workspace-page .service-box, body.workspace-page .service-dashboard {
  display: block;
  padding: 0px;
  margin: 0px;
  width: 100%;
  min-height: 0px;
  max-width: none;
}

body.workspace-page .service-wapper::before {
  display: none;
}

body.workspace-page .service-dashboard > .service-panels {
  padding: 0px;
  margin: 0px;
  width: 100%;
  max-width: none;
  min-height: 0px;
  display: block !important;
}

body.workspace-page .service-panels > .service-panel {
  padding: 0px;
  margin: 0px;
  width: 100%;
  min-height: 0px;
  max-width: none;
}

body.workspace-page #panel-overview > .react-panel-header {
  margin: 0px 0px 28px;
  padding: 0px;
  border: 0px;
}

body.workspace-page #panel-overview .react-panel-header__copy {
  width: 100%;
}

body.workspace-page #panel-overview .workspace-tabs {
  margin: 0px;
}

body.workspace-page #panel-overview > .react-panel-header > .react-panel-header__divider {
  display: none;
}

body.workspace-page #panel-overview .svc-hero {
  display: none;
}

body.workspace-page #panel-overview .svc-subscriptions {
  margin-top: 0px;
  padding-top: 0px;
  border-top: 0px;
}

body.workspace-page #panel-overview .svc-subscriptions > .svc-section-head {
  display: flex;
  justify-content: flex-end;
}

body.workspace-page #panel-overview .svc-subscriptions > .svc-section-head > .svc-section-title {
  display: none;
}

body.workspace-page .workspace-sidebar .service-account-nav__desktop {
  display: block;
  position: static;
  padding: 10px 0px;
  margin: 0px;
  border-top: 1px solid var(--svc-border);
}

body.workspace-page .workspace-sidebar .service-account-nav__controls {
  display: flex;
  width: 100%;
  gap: 6px;
}

body.workspace-page .workspace-sidebar .service-account-nav__identity {
  min-width: 0px;
  flex: 1 1 0%;
  border: 0px;
  padding: 0px;
}

body.workspace-page .workspace-sidebar .service-account-nav__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

body.workspace-page .workspace-sidebar .service-account-menu {
  top: auto;
  bottom: calc(100% + 10px);
  right: 0px;
  width: 205px;
}

body.workspace-page .workspace-sidebar .service-account-nav__login {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgb(36, 99, 220);
  color: rgb(255, 255, 255);
  text-align: center;
  text-decoration: none;
  min-height: 42px;
  height: auto;
  box-sizing: border-box;
}

.workspace-page a:focus-visible, .workspace-page button:focus-visible {
  outline: 2px solid rgb(52, 120, 239);
  outline-offset: 3px;
}

body.workspace-page .insights-page {
  padding: 0px;
}

@media not all {
  body.workspace-page {
      --workspace-aside: 204px;
  }

  .workspace-content {
      padding: 28px 22px 40px;
  }
}

@media (max-width: 768px) {
  body.workspace-page {
      --site-topbar-offset: 64px;
  }

  .workspace-mobile-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: fixed;
      inset: 0px 0px auto;
      height: 64px;
      padding: 0px 20px;
      box-sizing: border-box;
      background: rgb(255, 255, 255);
      border-bottom: 1px solid rgb(240, 241, 244);
      z-index: 105;
  }

  .workspace-mobile-header .workspace-brand {
      font-size: 17px;
  }

  .workspace-menu-toggle {
      display: inline-flex;
      padding: 9px;
      border: 0px;
      background: none;
      color: rgb(23, 32, 51);
  }

  .workspace-sidebar {
      width: min(290px, -44px + 100vw);
      padding-top: 26px;
      z-index: 10002;
      transform: translateX(-100%);
      visibility: hidden;
      transition: transform 0.2s, visibility 0.2s;
  }

  .workspace-menu-open {
      overflow: hidden;
  }

  .workspace-menu-open .workspace-sidebar {
      transform: translateX(0px);
      visibility: visible;
  }

  .workspace-sidebar-close {
      display: block;
      position: absolute;
      top: 22px;
      right: 18px;
      border: 0px;
      background: none;
      color: rgb(98, 105, 119);
      font-size: 26px;
  }

  .workspace-brand--desktop {
      font-size: 17px;
      margin-bottom: 34px;
  }

  .workspace-backdrop {
      position: fixed;
      inset: 0px;
      background: rgba(17, 24, 39, 0.333);
      z-index: 10001;
  }

  .workspace-content {
      margin-left: 0px;
      padding: 88px 18px 32px;
      min-height: 100vh;
  }

  .workspace-tabs {
      min-height: 42px;
      margin-bottom: 20px;
      gap: 28px;
  }

  .workspace-tabs > a {
      font-size: 15px;
      padding-bottom: 12px;
  }

  body.workspace-page .service-panels, body.workspace-page .service-dashboard > .service-panels {
      padding: 0px;
      display: block !important;
  }

  body.workspace-page .service-dashboard > .svc-instance-back--desktop {
      display: inline-flex;
  }

  body.workspace-page .workspace-sidebar .service-account-nav__desktop {
      display: block !important;
  }

  body.workspace-page .home-v4-main {
      padding-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-sidebar, .workspace-menu > a {
      transition: none;
  }
}

body.workspace-page .workspace-sidebar .service-account-nav__desktop > .service-account-nav__controls {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 36px;
  padding: 0px;
  border: 0px;
  background: none;
  box-sizing: border-box;
}

body.workspace-page .workspace-sidebar .service-account-nav__controls .service-account-nav__identity {
  padding: 0px;
  border: 0px;
  background: none;
}

body.workspace-page.subscription-catalog-page .support-fab {
  display: flex !important;
}

@media (max-width: 768px) {
  body.workspace-page .react-panel-header__title {
      display: block;
  }
}

body.workspace-page .blog-page {
  padding-top: 0px;
}

body.workspace-page .workspace-content > .workspace-tabs,
body.workspace-page .workspace-content > .home-v4-root,
body.workspace-page .workspace-content > .service-wapper,
body.workspace-page .workspace-content > .service-box,
body.workspace-page .workspace-content > .service-dashboard,
body.workspace-page .workspace-content > .insights-page,
body.workspace-page .workspace-content > .workspace-support-board,
body.workspace-page .workspace-content > .blog-page,
body.workspace-page .service-panels > .service-panel {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.workspace-support-title { margin:0; padding:0 2px 15px; font-size:20px; line-height:1.4; font-weight:600; }
.workspace-support-subtitle { margin:0 0 12px; text-align:center; font-size:20px; }
.workspace-support-description, .workspace-support-telegram { text-align:center; line-height:1.8; color:#6b7280; }
.workspace-support-telegram { margin-top:28px; }
.workspace-support-telegram a { color:#3478ef; }

.subscription-catalog-page .workspace-tabs > .subscription-mobile-back { display: none; }
@media (max-width: 768px) {
  body.subscription-catalog-page .workspace-content { padding: 80px 12px 40px; }
  .subscription-catalog-page .workspace-mobile-header { height: 48px; padding: 0 10px; }
  .subscription-catalog-page .workspace-mobile-header .workspace-brand { font-size: 17px; gap: 10px; }
  .subscription-catalog-page .workspace-tabs { margin-bottom: 32px; }
  .subscription-catalog-page .subscription-plan-header { align-items: center; justify-content: space-between; }
  .subscription-catalog-page .subscription-brand-title { font-size: 20px; padding-bottom: 12px; }
  .subscription-catalog-page .workspace-tabs > .subscription-mobile-back {
    display: inline-flex; margin-left: auto; padding: 0 0 12px; font-size: 14px;
    color: #6b7280; white-space: nowrap;
  }
  .subscription-catalog-page .subscription-catalog-heading { padding: 0; border: 0; }
  .subscription-catalog-page .subscription-catalog-title { font-size: 16px; font-weight: 600; }
  .subscription-catalog-page .subscription-catalog-intro { font-size: 14px; line-height: 1.8; }
  .subscription-catalog-page .subscription-product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 34px; }
  .subscription-catalog-page .subscription-product-entry { padding: 12px 14px 8px; gap: 10px; border-radius: 18px; }
  .subscription-catalog-page .subscription-product-entry strong { font-size: 18px; }
  .subscription-catalog-page .subscription-product-entry__plans { font-size: 16px; line-height: 1.4; }
  .subscription-catalog-page .subscription-product-entry__price { font-size: 26px; line-height: 1.2; }
  .subscription-catalog-page .subscription-product-entry__header { gap: 14px; }
  .subscription-catalog-page .subscription-product-entry__icon { width: 44px; height: 36px; }
  .subscription-catalog-page .subscription-product-entry__currency { font-size: 22px; }
  .subscription-catalog-page .subscription-product-entry__price small { font-size: 16px; }
  .subscription-catalog-page .subscription-product-entry__footer { padding-top: 14px; gap: 12px; align-items: center; }
  .subscription-catalog-page .subscription-product-entry__subscribe { min-width: 96px; min-height: 38px; padding: 8px 20px; font-size: 14px; box-sizing: border-box; }
  body.subscription-catalog-page:has(.subscription-product-grid) .workspace-content { padding-top: 88px; }
  .subscription-catalog-page .workspace-mobile-header { padding-left: 20px; padding-right: 12px; }
  .subscription-catalog-page .home-v4-main { padding: 24px 0 0; }
  .subscription-catalog-page .home-v4-card-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .subscription-catalog-page .home-v4-card { padding: 24px 20px; border-radius: 20px; }
  .subscription-catalog-page .home-v4-card__actions .subscription-step-back { display: none; }
  .subscription-catalog-page .home-v4-card__cta {
    width: 100%; flex: 1 1 auto; min-height: 44px; padding: 10px 20px; white-space: nowrap;
  }
  .subscription-catalog-page .home-v4-card__cta > span { white-space: nowrap; }
  .subscription-catalog-page .home-v4-faq { padding: 0; margin-top: 64px; }
  .subscription-catalog-page .home-v4-faq::before { margin-bottom: 40px; }
  .subscription-catalog-page .home-v4-faq__question { font-size: 15px; padding: 20px 0; }
  .subscription-catalog-page .home-v4-faq__answer { font-size: 14px; line-height: 1.8; }
}

/* Mobile plan proportions; preserve the existing palette. */
@media (max-width: 768px) {
  .subscription-catalog-page .home-v4-card-grid { gap: 20px; }
  .subscription-catalog-page .home-v4-card {
    width: 100%; min-width: 0; min-height: 0;
    padding: 24px 20px 20px; border-radius: 20px; box-sizing: border-box;
  }
  .subscription-catalog-page .home-v4-card__header {
    width: 100%; min-height: 40px; margin: 0; align-items: flex-start;
  }
  .subscription-catalog-page .home-v4-card__title { font-size: 26px; line-height: 1.25; }
  .subscription-catalog-page .home-v4-card__period-trigger { font-size: 18px; }
  .subscription-catalog-page .home-v4-card__price { margin-top: 28px; gap: 3px; }
  .subscription-catalog-page .home-v4-card__amount { font-size: 40px; line-height: 1.1; font-weight: 600; }
  .subscription-catalog-page .home-v4-card__currency { font-size: 18px; }
  .subscription-catalog-page .home-v4-card__desc { margin: 14px 0 0; font-size: 15px; line-height: 1.6; gap: 4px; }
  .subscription-catalog-page .home-v4-card__desc-link { margin-top: 36px; font-size: 15px; line-height: 1.5; }
  .subscription-catalog-page .home-v4-card__purchase-meta { margin-top: 8px; font-size: 13px; line-height: 1.5; }
  .subscription-catalog-page .home-v4-card__actions { margin-top: 24px; padding: 0; }
  .subscription-catalog-page .home-v4-card__cta {
    width: 100%; min-height: 46px; padding: 10px 18px;
    border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 24px;
  }
}

@media (max-width: 768px) {
  .subscription-catalog-page .workspace-tabs > .subscription-mobile-back {
    align-self: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #3478ef;
    box-sizing: border-box;
    cursor: pointer;
    touch-action: manipulation;
  }
  .subscription-catalog-page .workspace-tabs > .subscription-mobile-back:hover,
  .subscription-catalog-page .workspace-tabs > .subscription-mobile-back:active {
    background: #edf3ff;
    border-color: #a7caff;
  }
  .subscription-catalog-page .workspace-tabs > .subscription-mobile-back:focus-visible {
    outline: 2px solid #3478ef;
    outline-offset: 2px;
  }
}
