body.workspace-page {
  --workspace-aside: 236px;
  --workspace-header-content-gap: 24px;
  --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;
  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;
  flex-shrink: 0;
}

.workspace-brand--desktop {
  margin-bottom: 24px;
  font-size: 17px;
  font-weight: 600;
}

.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: rgb(236, 236, 236);
    color: color(display-p3 0.204 0.4707 0.9648);

}

.workspace-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.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 .workspace-menu__icon svg {
  fill: currentColor;
  stroke: none;
}

.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 var(--workspace-header-content-gap);
}

.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);
}

.workspace-subtabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 var(--workspace-header-content-gap);
  border-bottom: 1px solid #e9ecf1;
}

@media (max-width: 768px) {
  .workspace-subtabs:has(.workspace-page-header__menu) {
    min-height: 56px;
  }

  .workspace-subtabs > .workspace-page-header__menu {
    margin-left: auto;
  }
}

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: 0;
  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 .svc-hero {
  display: none;
}

body.workspace-page .service-panels:not(.service-panels--mobile) > .service-panel.is-active {
  padding-top: 0;
}

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

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: color(display-p3 0.2432 0.5059 1);
    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-header-content-gap: 16px;
  }

  .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: 22px;
        z-index: 10002;
        inset: 0px 0px 0px auto;
        border-right: 0;
        border-left: 1px solid var(--svc-border);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.2s, visibility 0.2s;
        background: white;
    
    }

  .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 {
      padding-right: 44px;
  }

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

  .workspace-content {
      margin-left: 0px;
      padding: calc(64px + var(--workspace-header-content-gap)) 18px 32px;
      min-height: 100vh;
  }

  .workspace-tabs {
      min-height: 42px;
      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;
  }

}

@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.subscription-catalog-page .workspace-content > .workspace-page-header,
body.workspace-page.subscription-catalog-page .workspace-content > .workspace-subtabs,
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 .bulk-board,
body.workspace-page #react-personal-center-root .service-dashboard > .workspace-page-header,
body.workspace-page #react-personal-center-root .service-dashboard > [data-personal-center-runtime] > .workspace-page-header,
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: 0px;
  padding: 0px 2px 15px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.workspace-support-subtitle {
  margin: 0px 0px 12px;
  text-align: center;
  font-size: 20px;
}

.workspace-support-description, .workspace-support-telegram {
  text-align: center;
  line-height: 1.8;
  color: rgb(107, 114, 128);
}

.workspace-support-telegram {
  margin-top: 28px;
}

.workspace-support-telegram a {
  color: rgb(52, 120, 239);
}



@media (max-width: 768px) {
  body.subscription-catalog-page .workspace-content {
      padding: 64px 12px 40px;
  }

  .subscription-catalog-page .workspace-mobile-header {
      height: 48px;
      padding: 0px;
  }

  .subscription-catalog-page .workspace-mobile-header .workspace-brand {
      font-size: 17px;
      gap: 10px;
  }

  .subscription-catalog-page .workspace-tabs {
      margin-bottom: 0px;
  }

  .subscription-catalog-page .subscription-plan-header {
      align-items: center;
      justify-content: space-between;
  }

  .subscription-catalog-page .subscription-brand-title {
      font-size: 20px;
      padding-bottom: 8px;
  }



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

  .subscription-catalog-page .subscription-catalog-title {
      font-size: 24px;
      font-weight: 600;
    line-height: 1.333333;
}

  .subscription-catalog-page .subscription-catalog-intro {
      font-size: 14px;
      line-height: 1.571429;
    font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
}

  .subscription-catalog-page .subscription-product-grid {
      grid-template-columns: repeat(2, minmax(0px, 1fr));
      grid-auto-rows: 1fr;
      gap: 10px;
      margin-top: 20px;
  }

  .subscription-catalog-page .subscription-product-entry {
      aspect-ratio: auto;
      min-height: 0px;
      padding: 12px;
      gap: 8px;
      border-width: 2px;
      border-color: rgb(222, 222, 222);
      border-radius: 16px;
  }

  .subscription-catalog-page .subscription-product-entry strong {
      font-size: clamp(16px, 4.4vw, 20px);
      line-height: 1.4;
      font-weight: 600;
      overflow-wrap: normal;
      white-space: nowrap;
  }

  .subscription-catalog-page .subscription-product-entry__plans {
      font-size: clamp(12px, 3.4vw, 14px);
      line-height: 1.571429;
    font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
}

  .subscription-catalog-page .subscription-product-entry__price {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      column-gap: 5px;
      row-gap: 2px;
      min-width: 0;
      font-size: clamp(21px, 7.5vw, 21px);
      line-height: 1.266667;
      font-weight: 600;
  }

  .subscription-catalog-page .subscription-product-entry__amount,
  .subscription-catalog-page .subscription-product-entry__price small {
      white-space: nowrap;
  }

  .subscription-catalog-page .subscription-product-entry__header {
      gap: 7px;
      flex-shrink: 0;
  }

  .subscription-catalog-page .subscription-product-entry__icon {
      position: static;
      flex: 0 0 auto;
      width: 33px;
      height: 33px;
      padding: 3px;
  }

  .subscription-catalog-page .subscription-product-entry img {
      /* width: 31px; */
      /* height: 31px; */
  }

  .subscription-catalog-page .subscription-product-entry__currency {
      font-size: 14px;
    font-weight: 400;
  line-height: 1.571429;
  color: rgba(0, 0, 0, 0.65);
}

  .subscription-catalog-page .subscription-product-entry__price small {
      font-size: 14px;
    font-weight: 400;
  line-height: 1.571429;
  color: rgba(0, 0, 0, 0.65);
}

  .subscription-catalog-page .subscription-product-entry__footer {
      flex-shrink: 0;
      margin-top: auto;
      padding: 0px;
      border-top: 0px;
      align-items: flex-end;
  }

  .subscription-catalog-page .home-v4-card-grid {
      grid-template-columns: minmax(0px, 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: 0px;
      margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .subscription-catalog-page .home-v4-card-grid {
      gap: 20px;
  }

  .subscription-catalog-page .home-v4-card {
      width: 100%;
      min-width: 0px;
      min-height: 0px;
      aspect-ratio: auto;
      padding: 24px 13px;
      border: 3px solid rgb(199, 199, 199);
      border-radius: 8px;
      box-sizing: border-box;
  }

  .subscription-catalog-page .home-v4-card__header {
      width: 100%;
      min-height: 38px;
      margin: 0px;
      align-items: flex-start;
  }

  .subscription-catalog-page .home-v4-card__title {
      font-size: 21px;
      line-height: 1.25;
  }

  .subscription-catalog-page .home-v4-card__price {
      margin-top: 2px;
      gap: 3px;
  }

  .subscription-catalog-page .home-v4-card__amount {
      font-size: 31px;
      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: 6px 0px 0px;
      font-size: 14px;
      line-height: 1.45;
      gap: 2px;
  }

  .subscription-catalog-page .home-v4-card__desc-link {
      margin-top: 2px;
      font-size: 14px;
      line-height: 1.5;
      text-decoration: underline;
  }

  .subscription-catalog-page .home-v4-card__purchase-meta {
      margin-top: 4px;
      font-size: 13px;
      line-height: 1.5;
  }

  .subscription-catalog-page .home-v4-card__actions {
      margin-top: auto;
      padding: 12px 0px 0px;
  }

  .subscription-catalog-page .home-v4-card__cta {
      width: 100%;
      min-height: 39px;
      padding: 6px 12px;
      border-radius: 9px;
      background: rgb(7, 130, 255);
      color: rgb(255, 255, 255);
      font-size: 14px;
      font-weight: 600;
      line-height: 24px;
  }

  .subscription-catalog-page .home-v4-card__cta:not(.is-disabled):hover, .subscription-catalog-page .home-v4-card__cta:not(.is-disabled):active {
      background: rgb(0, 111, 230);
      color: rgb(255, 255, 255);
  }
}

.subscription-catalog-page .home-v4-card__period-trigger {
  justify-content: center;
  padding: 0px 10px;
  border: 0px;
  border-radius: 5px;
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  font-size: 18px;
}

.subscription-catalog-page .home-v4-card__period-chevron {
  stroke: rgb(255, 255, 255);
}

.subscription-catalog-page .home-v4-card__variant-pills {
  gap: 0px;
  padding: 3px;
  border-radius: 6px;
  background: rgb(230, 230, 230);
}

.subscription-catalog-page .home-v4-card__variant-pills .home-v4-card__variant-option.is-active {
  color: rgb(255, 255, 255);
  background: rgb(0, 0, 0);
}

@media (max-width: 768px) {
  .subscription-catalog-page .home-v4-card:hover, .subscription-catalog-page .home-v4-card.is-selected {
      border-color: rgb(199, 199, 199);
  }

  .subscription-catalog-page .home-v4-card__corner-controls {
      gap: 5px;
      align-items: center;
  }

  .subscription-catalog-page .home-v4-card__choose {
      min-width: 67px;
      height: 28px;
      flex-shrink: 0;
  }

  .subscription-catalog-page .home-v4-card__period-trigger {
      min-width: 67px;
      height: 28px;
      padding: 0px 6px;
      border-radius: 5px;
      background: rgb(0, 0, 0);
      color: rgb(255, 255, 255);
      font-size: 16px;
  }

  .subscription-catalog-page .home-v4-card__period-chevron {
      stroke: currentcolor;
  }

  .subscription-catalog-page .home-v4-card__period-static {
      min-width: 60px;
      height: 30px;
      padding-right: 6px;
      font-size: 18px;
      font-weight: 400;
  }

  .subscription-catalog-page .home-v4-card__variant-pills .home-v4-card__variant-option {
      min-width: 40px;
      min-height: 24px;
      padding: 3px 7px;
      line-height: 18px;
  }

  .subscription-catalog-page .home-v4-card__variant-pills [data-home-v4-variant-label="20x"] {
      order: -1;
  }

  .subscription-catalog-page .home-v4-card__cta.is-disabled {
      background: rgb(229, 231, 235);
      color: rgb(107, 114, 128);
  }
}

@media (max-width: 768px) {
  .workspace-mobile-title { min-width: 0; margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: #1d1d1f; }
}

/* 移动端看板的页面名称统一由顶部栏显示；正文保留说明与操作。 */
@media (max-width: 768px) {
  body.workspace-page .react-panel-header__title,
  body.workspace-page .react-panel-header__divider {
    display: none;
  }
  body.workspace-page .react-panel-header {
    gap: 0;
    padding-top: 0;
    margin-top: 0;
  }
  body.workspace-page .react-panel-header__copy {
    gap: 0;
  }
  body.workspace-page .react-panel-header__description {
    margin-top: 0;
  }
  body.workspace-page .react-panel-header:has(> .react-panel-header__copy > .react-panel-header__title:only-child):not(:has(a, button, [data-panel-header-tabs], [role="tablist"])) {
    display: none;
  }
}

@media (max-width: 768px) {
  body.workspace-page #panel-support .svc-offers > .svc-section-head {
    display: none;
  }
}

.workspace-mobile-back,
body.workspace-page .workspace-page-header__back,
body.workspace-page .checkout-flow-header .checkout-flow-header__actions .co-review__back-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #1677ff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}
.workspace-mobile-back svg,
body.workspace-page .workspace-page-header__back svg,
body.workspace-page .checkout-flow-header .checkout-flow-header__actions .co-review__back-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Keep the existing placeholder until scripts and React controls are ready. */
.service-panel[data-panel-committing="true"] { position: relative; }
.service-panel[data-panel-committing="true"] > :not([data-panel-placeholder]) { visibility: hidden; }
.service-panel > [data-panel-placeholder] { position: absolute; inset: 0 0 auto; }
