body.checkout-page.workbench-page {
  --workbench-shell-width: min(1360px, calc(100vw - 24px));
  --workbench-sidebar-width: 268px;
  --workbench-gap: 22px;
  --workbench-shell-left: max(12px, calc((100vw - var(--workbench-shell-width)) / 2));
  background:
    radial-gradient(circle at 10% 6%, rgba(76, 126, 230, 0.12), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(239, 166, 91, 0.14), transparent 22%),
    linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
  color: #16366e;
  min-height: 100vh;
  overflow: hidden;
}

.workbench-page .container.workbench-shell {
  width: var(--workbench-shell-width);
  margin: 0 auto;
  display: block;
  height: 100vh;
  min-height: 100vh;
  padding: 20px 0;
  position: relative;
}

.workbench-page .top-nav {
  display: none;
}

.workbench-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 29, 62, 0.42);
  z-index: 1100;
}

.workbench-sidebar {
  position: fixed;
  top: 20px;
  left: var(--workbench-shell-left);
  width: var(--workbench-sidebar-width);
  min-height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(196, 210, 233, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(27, 62, 122, 0.12);
  overflow-y: auto;
}

.sidebar-close {
  display: none;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #55719e;
  cursor: pointer;
}

.workbench-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workbench-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #1c5bcf 0%, #4a8cff 100%);
  box-shadow: 0 12px 26px rgba(35, 90, 190, 0.2);
}

.workbench-brand-copy {
  display: grid;
  gap: 2px;
}

.workbench-brand-copy strong {
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #16366e;
}

.workbench-brand-copy small {
  color: #647a9f;
  font-size: 12px;
}

.sidebar-account-card,
.sidebar-support-card,
.sidebar-note-card {
  border: 1px solid #e0e8f5;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 248, 255, 0.96));
  padding: 16px 15px;
  display: grid;
  gap: 8px;
}

.sidebar-card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f82c4;
}

.sidebar-account-email {
  font-size: 15px;
  font-weight: 700;
  color: #16366e;
  word-break: break-all;
}

.sidebar-account-state,
.sidebar-support-card p,
.sidebar-note-card p {
  color: #63789e;
  font-size: 13px;
  line-height: 1.65;
}

.workbench-version-card__value {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #16366e;
}

.workbench-nav {
  display: grid;
  gap: 8px;
}

.workbench-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  color: #416598;
  background: rgba(245, 248, 253, 0.88);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.workbench-nav a:hover {
  transform: translateX(2px);
  border-color: #d6e1f1;
  background: #f9fbff;
}

.workbench-nav a.is-current {
  background: linear-gradient(135deg, rgba(254, 236, 214, 0.98), rgba(255, 246, 238, 0.98));
  border-color: #f3d8bd;
  color: #cc6d16;
  box-shadow: inset 0 0 0 1px rgba(248, 196, 144, 0.34);
}

.workbench-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: #e8f0ff;
  color: #2461d1;
  font-size: 13px;
  font-weight: 700;
}

.workbench-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.workbench-nav a .nav-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #e8f0ff;
  color: #2461d1;
  transition: background 0.2s, color 0.2s;
}

.workbench-nav a:hover .nav-icon-wrap {
  background: #d5e5ff;
}

.workbench-nav a.is-current .nav-icon-wrap {
  background: rgba(248,196,144,0.45);
  color: #cc6d16;
}

.workbench-main {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  width: calc(100% - var(--workbench-sidebar-width) - var(--workbench-gap));
  margin-left: calc(var(--workbench-sidebar-width) + var(--workbench-gap));
  height: calc(100vh - 40px);
  overflow: auto;
  padding-right: 0;
  scrollbar-gutter: stable;
}

.workbench-main::-webkit-scrollbar,
.workbench-sidebar::-webkit-scrollbar,
.page-panel::-webkit-scrollbar {
  width: 10px;
}

.workbench-main::-webkit-scrollbar-thumb,
.workbench-sidebar::-webkit-scrollbar-thumb,
.page-panel::-webkit-scrollbar-thumb {
  background: rgba(125, 149, 191, 0.38);
  border-radius: 999px;
}

.workbench-page-panels {
  position: relative;
  min-width: 0;
  min-height: 100%;
  height: 100%;
}

.page-panel {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: none;
  overflow: auto;
  scrollbar-gutter: stable;
}

.page-panel.is-active {
  display: grid;
}

.page-home,
.page-shop {
  gap: 18px;
  align-content: start;
  padding-right: 4px;
}

.page-panel--frame {
  min-width: 0;
  min-height: 100%;
  border: 1px solid rgba(196, 210, 233, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 60px rgba(27, 62, 122, 0.1);
  overflow: hidden;
}

.page-panel--frame.is-active {
  display: block;
}

.workbench-route-frame {
  display: block;
  width: 100%;
  min-height: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.workbench-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px 12px 0;
}

.workbench-topbar-left,
.workbench-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #edf3ff;
  color: #255ed1;
  font-size: 18px;
  cursor: pointer;
}

.workbench-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(280px, 32vw);
  padding: 10px 14px;
  border: 1px solid #d7e3f6;
  border-radius: 16px;
  background: #f7faff;
  color: #6780ab;
}

.workbench-search input {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.workbench-search input:focus {
  outline: none;
}

.workbench-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #1f5fd0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.workbench-pill.secondary {
  background: #eef4ff;
  color: #2155b0;
}

.workbench-user-summary {
  position: relative;
  display: flex;
  align-items: center;
}

.workbench-user-avatar-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: block;
  line-height: 0;
}

.workbench-user-avatar-btn:focus-visible {
  outline: 3px solid #4a8cff;
  outline-offset: 2px;
}

.workbench-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d61d8 0%, #5a92ff 100%);
  color: #fff;
  font-weight: 800;
}

.workbench-user-meta {
  display: grid;
  gap: 2px;
}

.workbench-user-meta strong {
  color: #17366f;
  font-size: 14px;
}

.workbench-user-meta span {
  color: #7086ab;
  font-size: 12px;
}

/* Dropdown menu */
.workbench-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #dde8f8;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(20, 55, 120, 0.18);
  z-index: 2000;
  padding: 6px;
  animation: wud-in 0.18s ease;
  overflow: hidden;
}

@keyframes wud-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.workbench-user-dropdown[hidden] { display: none; }

.wud-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 12px;
}

.wud-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d61d8 0%, #5a92ff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.wud-header-info {
  min-width: 0;
}

.wud-email {
  font-size: 13px;
  font-weight: 700;
  color: #16366e;
  word-break: break-all;
}

.wud-hint {
  font-size: 11px;
  color: #8fa4c8;
  margin-top: 2px;
}

/* Tabs */
.wud-tabs {
  display: flex;
  border-bottom: 2px solid #edf2fb;
  margin: 0 4px;
  gap: 4px;
}

.wud-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #8fa4c8;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.wud-tab svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.wud-tab:hover {
  color: #2461d1;
}

.wud-tab.is-active {
  color: #2461d1;
  border-bottom-color: #2461d1;
}

.wud-divider {
  height: 1px;
  background: #edf2fb;
  margin: 4px 0;
}

.wud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #1a3560;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.wud-item:hover {
  background: #f3f7ff;
}

.wud-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wud-item-icon svg {
  width: 15px;
  height: 15px;
}

.wud-logout {
  color: #c0392b;
}

.wud-logout:hover {
  background: #fff0f0;
}

.workbench-flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #d8e3f2;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(247, 250, 255, 0.98), rgba(241, 246, 255, 0.96));
}

.workbench-flash-copy {
  display: grid;
  gap: 4px;
}

.workbench-flash-copy strong {
  color: #16366e;
}

.workbench-flash-copy span {
  color: #6781a8;
  font-size: 14px;
}

.workbench-flash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.workbench-page .hero.workbench-hero {
  padding: 28px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.9fr);
  gap: 20px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(83, 122, 231, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(248, 188, 115, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.97));
}

.workbench-hero-copy {
  display: grid;
  gap: 14px;
}

.workbench-hero-copy p {
  margin: 0;
}

.workbench-page .hero.workbench-hero h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.workbench-hero-copy > p:not(.section-kicker):not(.muted) {
  font-size: 15px;
  line-height: 1.75;
  color: #567095;
}

.client-hub-card--top {
  padding: 20px;
  margin-top: 18px;
}

.client-hub-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  justify-items: center;
}

.client-hub-heading-copy {
  display: grid;
  gap: 6px;
  padding-right: 0;
  justify-items: center;
  text-align: center;
}

.client-hub-heading h1 {
  margin: 0;
  font-size: clamp(26px, 2.9vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #16366e;
}

.bgp-advantage-block {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe4f3;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(240, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.bgp-advantage-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.bgp-advantage-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #17366f;
}

.bgp-advantage-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #62799d;
}

.bgp-advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bgp-advantage-item {
  padding: 12px 12px 10px;
  border: 1px solid #d8e3f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bgp-advantage-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.35;
  color: #17366f;
}

.bgp-advantage-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #62799d;
}

.workbench-hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border-radius: 26px;
  background: rgba(245, 248, 255, 0.9);
  border: 1px solid #dde7f6;
}

.workbench-hero-panel strong {
  color: #16366e;
}

.hero-panel-label {
  font-size: 13px;
  font-weight: 700;
  color: #6380b4;
}

.hero-panel-email {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: break-all;
}

.hero-panel-state {
  color: #627a9f;
  font-size: 14px;
  line-height: 1.7;
}

.hero-panel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-panel-stat {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e0e8f5;
  display: grid;
  gap: 5px;
}

.hero-panel-stat span {
  color: #768cad;
  font-size: 12px;
}

.hero-panel-stat strong {
  font-size: 17px;
}

.workbench-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workbench-page .checkout-step-card {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96));
}

.workbench-overview-grid .section-kicker {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-page .checkout-step-card h2 {
  font-size: 18px;
  line-height: 1.24;
}

.workbench-page .checkout-step-card .muted {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.workbench-page .checkout-step-card h2,
.workbench-page .checkout-plan-card h3,
.section-title h2,
.client-hub-aside h3 {
  letter-spacing: -0.02em;
}

.workbench-page .checkout-section-heading,
.workbench-page .client-hub-card,
.workbench-page #checkout-flow,
.workbench-page .footer {
  border-radius: 28px;
}

.workbench-page .checkout-section-heading {
  margin-bottom: 0;
}

.workbench-page #plan-cards {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workbench-page .checkout-plan-card {
  border-radius: 22px;
}

.workbench-page .checkout-plan-card.is-selected {
  border-color: #2a6df2;
  box-shadow: 0 16px 30px rgba(43, 97, 214, 0.16);
}

.client-hub-card {
  padding: 18px;
}

.client-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  margin-top: 4px;
}

.client-hub-main,
.client-hub-aside {
  border: 1px solid #dbe4f3;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
}

.download-tab-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.download-quick-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid #dbe5f4;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
}

.download-quick-qr[hidden] {
  display: none !important;
}

.download-quick-qr-copy {
  display: grid;
  gap: 6px;
}

.download-quick-qr-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dfeaff;
  color: #2a63cc;
  font-size: 12px;
  font-weight: 800;
}

.download-quick-qr-copy strong {
  font-size: 20px;
  line-height: 1.2;
  color: #17366f;
}

.download-quick-qr-copy p {
  margin: 0;
  color: #61799e;
  font-size: 13px;
  line-height: 1.55;
}

.download-quick-qr-code {
  width: 136px;
  min-height: 136px;
  padding: 8px;
  justify-self: end;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d9e6f7;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.download-quick-qr-code img {
  max-width: 100%;
  height: auto;
}

.download-tab {
  border: 1px solid #d7e2f3;
  border-radius: 999px;
  background: #f7faff;
  color: #4b6798;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  font-weight: 700;
}

.client-hub-card--top .btn {
  font-size: 13px;
  line-height: 1.2;
}

.download-tab.is-active {
  background: #1d60d4;
  border-color: #1d60d4;
  color: #fff;
}

.download-app-list {
  display: grid;
  gap: 8px;
}

.download-app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(116px, auto);
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e0e8f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.download-app-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
  align-content: center;
}

.download-app-meta strong {
  font-size: 15px;
  color: #17366f;
}

.download-app-note {
  color: #6b80a5;
  font-size: 12px;
}

.download-app-version {
  color: #2d64ca;
  font-size: 11px;
  font-weight: 700;
}

.download-client-tag {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1df;
  color: #d16608;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.download-app-meta span {
  color: #6b80a5;
  font-size: 12px;
}

.download-inline-qr {
  width: 64px;
  min-width: 64px;
  min-height: 100%;
  padding: 6px 5px;
  border: 1px solid #d7e4f6;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  gap: 3px;
  justify-items: center;
  align-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.download-inline-qr:hover {
  border-color: #8fb0eb;
  box-shadow: 0 8px 20px rgba(41, 90, 178, 0.12);
}

.download-inline-qr-code {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.download-inline-qr-code img {
  max-width: 100%;
  height: auto;
  display: block;
}

.download-inline-qr-tip {
  font-size: 9px;
  line-height: 1.1;
  color: #6c82a8;
  font-weight: 700;
}

.download-app-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: stretch;
  align-items: stretch;
  min-width: 116px;
}

.download-app-primary {
  min-width: 116px;
  min-height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
}

.download-aside-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.download-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #4268a7;
  border: 1px solid #d8e3f3;
  font-size: 11px;
  font-weight: 700;
}

.client-hub-aside h3 {
  color: #17366f;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.client-hub-aside p {
  color: #647b9f;
  font-size: 13px;
  line-height: 1.6;
}

.download-aside-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

.download-aside-columns strong {
  color: #16366e;
}

.download-aside-columns ul {
  margin: 8px 0 0 18px;
  color: #5f7599;
  display: grid;
  gap: 5px;
}

.workbench-page #checkout-flow {
  margin: 0;
}

.shop-config-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.shop-config-card__head {
  display: grid;
  gap: 6px;
}

.shop-config-card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f0ff;
  color: #2b63c7;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.shop-config-card__head h2 {
  margin: 0;
  color: #17366f;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.shop-config-card__head .muted {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.55;
}

.shop-config-shell {
  display: grid;
  gap: 14px;
}

.shop-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shop-config-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #294066;
}

.shop-config-field select,
.shop-config-field input {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.3;
}

.shop-config-field--email {
  grid-column: 1 / -1;
}

.shop-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shop-readonly-item {
  padding: 14px;
  border: 1px solid #dde7f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  display: grid;
  gap: 6px;
}

.shop-readonly-item--wide {
  grid-column: 1 / -1;
}

.shop-readonly-item span {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f86ab;
  font-weight: 800;
}

.shop-readonly-item strong {
  color: #17366f;
  font-size: 14px;
  line-height: 1.55;
}

.shop-payment-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dce6f4;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}

.shop-payment-panel__copy {
  display: grid;
  gap: 4px;
}

.shop-payment-panel__copy h3 {
  margin: 0;
  color: #17366f;
  font-size: 18px;
  line-height: 1.2;
}

.shop-payment-panel__copy .muted {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.55;
}

.shop-payment-panel--single-lane {
  gap: 14px;
}

.shop-payment-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d8e3f3;
  background: rgba(255, 255, 255, 0.92);
  color: #4d6890;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.shop-payment-chip.is-active {
  color: #ffffff;
  border-color: #1c5fd4;
  background: linear-gradient(135deg, #1f67e0, #0e4fbf);
  box-shadow: 0 10px 24px rgba(19, 82, 190, 0.22);
}

.shop-method-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-selection-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe5f4;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.shop-selection-summary__head {
  display: grid;
  gap: 4px;
}

.shop-selection-summary__label {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d86b2;
  font-weight: 800;
}

.shop-selection-summary__head strong {
  color: #17366f;
  font-size: 20px;
  line-height: 1.15;
}

.shop-selection-summary__head #selected-plan-cycle {
  color: #5d779f;
  font-size: 13px;
  line-height: 1.45;
}

.shop-selection-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.shop-selection-summary__grid > div {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid #e0e8f5;
  border-radius: 16px;
  background: #ffffff;
}

.shop-selection-summary__grid span {
  color: #7188ab;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.shop-selection-summary__grid strong {
  color: #17366f;
  font-size: 14px;
  line-height: 1.5;
}

.shop-selection-summary__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px dashed #d5e1f3;
}

.shop-selection-summary__total span {
  color: #55709a;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.shop-selection-summary__total strong {
  color: #1b57c7;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.shop-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-submit-row .btn {
  padding: 11px 20px;
  font-size: 13px;
  line-height: 1.2;
}

.shop-submit-row .muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.workbench-page #checkout-status {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.shop-payment-guide {
  margin-top: 0;
  padding: 14px;
}

.shop-payment-guide > div {
  font-size: 13px;
  line-height: 1.55;
}

.shop-payment-guide--notice {
  display: grid;
  gap: 8px;
}

.shop-payment-guide--notice .muted {
  margin: 0;
}

.shop-payment-guide--notice b {
  color: #17366f;
}

.workbench-page .checkout-flow-shell {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.workbench-page .checkout-stage--details {
  grid-row: 1 / span 2;
}

.workbench-page .checkout-stage {
  border-radius: 20px;
  padding: 18px;
}

.workbench-page .checkout-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workbench-page .checkout-choice-grid {
  grid-template-columns: 1fr;
}

.workbench-page .checkout-method-block {
  border-radius: 18px;
}

.workbench-page .footer {
  margin-top: 2px;
  padding: 24px 18px 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(205, 216, 235, 0.94);
}

.promo-modal-panel {
  width: min(860px, 100%);
  gap: 18px;
  border-radius: 28px;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal-head-copy {
  display: grid;
  gap: 6px;
}

.modal-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6985b5;
}

.modal-close-button {
  border: 0;
  background: #eef4ff;
  color: #2156b0;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.promo-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.promo-product-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #dbe5f4;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  display: grid;
  gap: 8px;
}

.promo-product-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fbe8d7;
  color: #c46a1a;
  font-size: 12px;
  font-weight: 800;
}

.promo-product-card strong {
  color: #17366f;
  font-size: 20px;
}

.promo-product-card p {
  color: #61789d;
  line-height: 1.65;
}

.promo-product-code {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #2f74dc;
}

.promo-note-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-note-list li {
  min-height: 100%;
}

.qr-modal-panel {
  width: min(760px, 100%);
  gap: 18px;
  border-radius: 28px;
  padding: 24px;
}

.download-qr-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.download-qr-code {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid #dbe5f4;
}

.download-qr-code img {
  max-width: 100%;
  height: auto;
}

.download-qr-fallback {
  margin: 0;
  color: #62799d;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.download-subscription-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #edf7f0;
  border: 1px solid #7fd6a5;
  border-radius: 8px;
  color: #1a6b42;
  font-size: 12px;
  line-height: 1.5;
}

.subscription-qr-btn {
  background: #1a56db !important;
  color: #fff !important;
  border-color: #1a56db !important;
}
.subscription-qr-btn:hover {
  background: #1648c8 !important;
}

.download-qr-meta {
  display: grid;
  gap: 12px;
}

.download-qr-meta p {
  color: #62799d;
  line-height: 1.7;
}

.download-qr-link {
  padding: 14px;
  border-radius: 16px;
  background: #f6f9ff;
  border: 1px solid #dbe5f4;
  color: #17428e;
  font-size: 13px;
  word-break: break-all;
}

@media (max-width: 1180px) {
  .workbench-page .container.workbench-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .shop-config-grid,
  .shop-readonly-grid,
  .shop-selection-summary__grid {
    grid-template-columns: 1fr;
  }

  .shop-config-field--email,
  .shop-readonly-item--wide {
    grid-column: auto;
  }

  .workbench-overview-grid,
  .promo-note-list,
  .promo-product-list,
  .client-hub-layout,
  .workbench-page .hero.workbench-hero,
  .workbench-page .checkout-flow-shell {
    grid-template-columns: 1fr;
  }

  .workbench-page .checkout-stage--details {
    grid-row: auto;
  }

  .workbench-user-meta span {
    max-width: 260px;
  }
}

@media (max-width: 920px) {
  body.checkout-page.workbench-page {
    overflow: auto;
  }

  .workbench-page .container.workbench-shell {
    height: auto;
    min-height: 0;
  }

  .workbench-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    min-height: 100vh;
    z-index: 1200;
    border-radius: 0 28px 28px 0;
    transform: translateX(-104%);
    transition: transform 0.25s ease;
  }

  body.sidebar-open .workbench-sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle,
  .sidebar-close {
    display: inline-grid;
    place-items: center;
  }

  .workbench-topbar,
  .workbench-flash {
    top: 10px;
  }

  .workbench-flash,
  .workbench-topbar,
  .download-app-row,
  .download-app-actions,
  .workbench-topbar-left,
  .workbench-topbar-right {
    align-items: center;
  }

  .workbench-flash,
  .download-qr-layout {
    grid-template-columns: 1fr;
  }

  .workbench-flash {
    display: grid;
  }

  .workbench-search {
    min-width: 0;
  }

  .workbench-flash {
    flex-direction: column;
  }

  .download-app-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .download-app-meta {
    grid-column: 1 / -1;
  }

  .download-inline-qr,
  .download-app-actions {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .download-app-primary {
    width: 100%;
    min-width: 0;
    min-height: 74px;
    padding: 10px 12px;
  }

  .workbench-main {
    width: 100%;
    margin-left: 0;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .workbench-page-panels {
    height: auto;
  }

  .page-panel {
    position: relative;
    inset: auto;
    height: auto;
    overflow: visible;
  }

  .page-panel--frame,
  .workbench-route-frame {
    min-height: 72vh;
  }

  .page-home,
  .page-shop {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .workbench-page .container.workbench-shell {
    width: min(100%, calc(100% - 14px));
    padding-top: 10px;
    gap: 14px;
  }

  .shop-config-card {
    padding: 18px;
  }

  .shop-config-card__head h2 {
    font-size: 22px;
  }

  .shop-selection-summary__total {
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-page .hero.workbench-hero,
  .client-hub-card,
  .workbench-page .checkout-step-card,
  .workbench-page #checkout-flow,
  .workbench-sidebar,
  .workbench-topbar,
  .workbench-flash,
  .workbench-page .footer,
  .promo-modal-panel,
  .qr-modal-panel {
    border-radius: 22px;
  }

  .workbench-page .hero.workbench-hero,
  .client-hub-card,
  .workbench-page #checkout-flow,
  .promo-modal-panel,
  .qr-modal-panel {
    padding: 18px;
  }

  .hero-panel-stats,
  .workbench-page .checkout-form-grid,
  .promo-note-list,
  .promo-product-list {
    grid-template-columns: 1fr;
  }

  .download-app-actions,
  .workbench-flash-actions,
  .workbench-topbar-right {
    width: 100%;
  }

  .download-inline-qr {
    align-self: center;
  }

  .download-app-actions > *,
  .workbench-flash-actions > *,
  .workbench-topbar-right > * {
    flex: 1 1 auto;
  }

  .workbench-user-summary {
    justify-content: space-between;
  }
}

/* ── 右上角固定头像入口 ── */
.corner-avatar-wrap {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1500;
}

@media (max-width: 640px) {
  .bgp-advantage-block {
    padding: 14px;
  }

  .bgp-advantage-grid {
    grid-template-columns: 1fr;
  }

  .download-quick-qr {
    grid-template-columns: 1fr;
  }

  .download-quick-qr-code {
    justify-self: start;
  }

  .client-hub-card--top {
    margin-top: 30px;
  }

  .client-hub-heading-copy {
    padding-right: 0;
    justify-items: center;
    text-align: center;
  }

  .client-hub-heading h1 {
    font-size: clamp(24px, 9vw, 32px);
    line-height: 1.1;
  }

  .corner-avatar-wrap {
    top: 14px;
    right: 14px;
  }

  .corner-avatar-btn {
    width: 40px;
    height: 40px;
  }
}

.corner-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1d61d8 0%, #5a92ff 100%);
  box-shadow: 0 4px 16px rgba(29, 97, 216, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.corner-avatar-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 22px rgba(29, 97, 216, 0.45);
}

.corner-avatar-initials {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.corner-login-btn {
  display: none;
  padding: 9px 18px;
  background: #1d61d8;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(29, 97, 216, 0.3);
  white-space: nowrap;
}

.corner-login-btn:hover { background: #1550c0; }

.corner-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #dde8f8;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(20, 55, 120, 0.18);
  z-index: 2000;
  padding: 6px;
  animation: wud-in 0.18s ease;
  overflow: hidden;
}

.corner-dropdown[hidden] { display: none; }