/* Sync customer pages: restrained dark surfaces around SellAuth's live data. */
body[class*="sa-tpl-customer-"] {
  --sa-account-bg: #0a0a0b;
  --sa-account-panel: #141517;
  --sa-account-panel-hover: #1a1b1e;
  --sa-account-line: #292b30;
  --sa-account-line-strong: #36383e;
  --sa-account-text: #f5f5f6;
  --sa-account-muted: #a4a6af;
  --sa-account-accent: #ff791a;
  background: var(--sa-account-bg);
}

html[data-scheme="light"] body[class*="sa-tpl-customer-"] {
  --sa-account-bg: #f7f7f8;
  --sa-account-panel: #fff;
  --sa-account-panel-hover: #f9f9fa;
  --sa-account-line: #e2e3e7;
  --sa-account-line-strong: #d2d3d9;
  --sa-account-text: #191a1e;
  --sa-account-muted: #676a73;
  --sa-account-accent: #dc5800;
}

body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] {
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(70px, 7vw, 104px);
}

body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] > .wrap {
  max-width: 1260px;
}

body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(a, button, input, textarea, select):focus-visible,
.sa-customer-sidebar :is(a, button):focus-visible,
.sa-customer-login-modal :is(button, input):focus-visible,
:is(.sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal) :is(button, input):focus-visible {
  outline: 2px solid #ff9a4d;
  outline-offset: 3px;
}

/* Account navigation */
.sa-customer-sidebar .sync-account-sidebar__card {
  overflow: visible;
  padding: 8px;
  border: 1px solid var(--sa-account-line);
  border-radius: 15px;
  background: var(--sa-account-panel);
  box-shadow: none;
}

.sa-customer-sidebar .sync-account-sidebar__profile {
  gap: 11px;
  padding: 13px 11px 16px;
}

.sa-customer-sidebar .sync-account-sidebar__avatar,
.sync-account-intro__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  border: 1px solid #ff791a42;
  border-radius: 10px;
  background: #ff791a17;
  color: #ff9a4c;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.sa-customer-sidebar .sync-account-sidebar__profile p:first-child { color: var(--sa-account-text); font-weight: 700; }
.sa-customer-sidebar .sync-account-sidebar__profile p:nth-child(2) { color: var(--sa-account-muted); font-size: 11px; }
.sa-customer-sidebar .sync-account-sidebar__card > .border-t { border-color: var(--sa-account-line); }

.sa-customer-sidebar .sync-account-sidebar__nav { gap: 2px; }
.sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link {
  position: relative;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--sa-account-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}

.sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link:hover {
  background: var(--sa-account-panel-hover);
  color: var(--sa-account-text);
}

.sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link[aria-current="page"] {
  background: #ff791a16;
  color: #ff9948;
}
html[data-scheme="light"] .sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link[aria-current="page"] { color: var(--sa-account-accent); }
html[data-scheme="light"] :is(.sa-customer-sidebar .sync-account-sidebar__avatar, .sync-account-intro__avatar) { color: var(--sa-account-accent); }

.sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--sa-account-accent);
}

.sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link svg { width: 17px; height: 17px; }
.sa-customer-sidebar .sync-account-sidebar__logout { min-height: 42px; padding-inline: 11px; border-radius: 8px; font-size: 12.5px; }
.sa-customer-sidebar [x-show="menuOpen"] { border-color: var(--sa-account-line-strong); border-radius: 11px; background: var(--sa-account-panel-hover); }

/* Header shared by orders, subscriptions, tickets, balance and partner pages. */
.sa-customer-header { align-items: flex-end; gap: 18px; margin-bottom: 26px; }
.sync-account-header__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--sa-account-accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.sync-account-header__label span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sa-customer-header .sa-customer-header-title {
  color: var(--sa-account-text);
  font-size: clamp(29px, 3.4vw, 42px);
  font-weight: 750;
  letter-spacing: -.043em;
  line-height: 1.12;
}
.sa-customer-header .sa-customer-header-subtitle {
  max-width: 610px;
  margin-top: 9px;
  color: var(--sa-account-muted);
  font-size: 13px;
  line-height: 1.65;
}
.sa-customer-header .sa-customer-header-link {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid #ff791a;
  border-radius: 9px;
  background: #ff791a;
  box-shadow: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.sa-customer-header .sa-customer-header-link:hover { border-color: #ff903e; background: #ff903e; color: #fff; }

/* Dashboard introduction and live stats */
.sync-account-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  margin-bottom: 25px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--sa-account-line);
}
.sync-account-intro__copy { flex: 1; min-width: 0; }
.sync-account-intro .sa-customer-header { display: block; margin: 0; }
.sync-account-intro .sa-customer-header-link { display: inline-flex; margin-top: 17px; }
.sync-account-intro__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(245px, 34%);
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--sa-account-line);
  border-radius: 11px;
  background: var(--sa-account-panel);
}
.sync-account-intro__identity-copy { display: flex; flex-direction: column; min-width: 0; }
.sync-account-intro__identity-copy span { color: var(--sa-account-muted); font-size: 10px; }
.sync-account-intro__identity-copy strong { overflow: hidden; color: var(--sa-account-text); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.sa-page-customer-dashboard .sa-page-customer-dashboard-items { gap: 12px; }
.sa-page-customer-dashboard .sa-page-customer-dashboard-item {
  min-width: 0;
  min-height: 126px;
  padding: 15px;
  border: 1px solid var(--sa-account-line);
  border-radius: 13px;
  background: var(--sa-account-panel);
  box-shadow: none;
}
.sa-page-customer-dashboard .sa-page-customer-dashboard-item > span:first-child,
.sa-page-customer-dashboard .sa-page-customer-dashboard-item > div:first-child > span:first-child {
  width: 32px;
  height: 32px;
  border: 1px solid #ff791a33;
  border-radius: 8px;
  background: #ff791a12;
  color: var(--sa-account-accent);
}
.sa-page-customer-dashboard .sa-page-customer-dashboard-item p.text-2xl {
  margin-top: 11px;
  color: var(--sa-account-text);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 750;
  letter-spacing: -.034em;
}
.sa-page-customer-dashboard .sa-page-customer-dashboard-item p.text-sm { color: var(--sa-account-muted); font-size: 11px; }
.sa-page-customer-dashboard .sa-page-customer-dashboard-item:nth-child(3) p.text-2xl { overflow: visible; font-size: 18px; line-height: 1.3; text-overflow: clip; white-space: normal; }

/* The recent order is primary; account actions are a compact list beside it. */
.sync-account-dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(255px, .9fr);
  gap: 13px;
  align-items: stretch;
  margin-top: 14px;
}
.sync-account-dashboard-lower > :only-child { grid-column: 1 / -1; }
.sa-page-customer-dashboard .sync-account-latest,
.sync-account-quick-actions {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--sa-account-line);
  border-radius: 13px;
  background: var(--sa-account-panel);
  box-shadow: none;
}
.sa-page-customer-dashboard .sync-account-latest { grid-column: 1; grid-row: 1; overflow: hidden; }
.sync-account-quick-actions { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; padding: 0 17px 5px; }
.sync-account-quick-actions__title,
.sa-page-customer-dashboard .sync-account-latest h2 {
  color: var(--sa-account-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sync-account-quick-actions__title { padding: 16px 0 14px; }
.sa-page-customer-dashboard .sync-account-latest > div:first-child { min-height: 50px; padding: 15px 19px; border-color: var(--sa-account-line); }
.sa-page-customer-dashboard .sync-account-latest .sa-page-customer-dashboard-link { color: var(--sa-account-accent); font-size: 11px; }
.sync-account-quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 51px;
  padding: 8px 1px;
  border: 0;
  border-top: 1px solid var(--sa-account-line);
  border-radius: 0;
  background: transparent;
  color: var(--sa-account-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}
.sync-account-quick-action:hover { color: var(--sa-account-accent); }
.sync-account-quick-action__icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 7px; background: #ff791a12; color: var(--sa-account-accent); }
.sync-account-quick-action__icon svg { width: 16px; height: 16px; }
.sync-account-quick-action > span:nth-child(2) { flex: 1; min-width: 0; }
.sync-account-quick-action strong { overflow: hidden; display: block; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.sync-account-quick-action__arrow { width: 14px; height: 14px; flex: none; color: var(--sa-account-muted); }
.sync-account-quick-action:hover .sync-account-quick-action__arrow { color: var(--sa-account-accent); }

.sync-account-latest__body { display: flex; align-items: center; min-height: 141px; }
.sync-account-latest__order { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; }
.sync-account-latest__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--sa-account-line-strong); border-radius: 10px; color: var(--sa-account-accent); }
.sync-account-latest__icon svg { width: 20px; height: 20px; }
.sync-account-latest__details { flex: 1; }
.sync-account-latest__details > p:first-child { color: var(--sa-account-text); font-size: 13px; font-weight: 700; }
.sync-account-latest__details > p:nth-child(2) { margin-top: 4px; color: var(--sa-account-muted); line-height: 1.55; }
.sync-account-latest__actions { display: flex; align-items: flex-end; flex-direction: column; gap: 9px; flex: none; }
.sync-account-latest__status { padding: 4px 8px; border: 1px solid var(--sa-account-line-strong); border-radius: 6px; color: var(--sa-account-muted); font-size: 10px; font-weight: 650; text-transform: capitalize; }
.sync-account-latest__status[data-status="completed"] { border-color: #1faa6570; background: #1faa6514; color: #61d997; }
.sync-account-latest__view { border-color: var(--sa-account-line-strong); border-radius: 7px; color: var(--sa-account-text); }
.sync-account-latest__view:hover { border-color: #ff791a70; color: var(--sa-account-accent); }
.sync-account-latest__empty { display: flex; align-items: center; gap: 11px; width: 100%; color: var(--sa-account-muted); font-size: 12px; }
.sync-account-latest__empty > span { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--sa-account-line); border-radius: 9px; }
.sync-account-latest__empty svg { width: 18px; height: 18px; }
.sync-account-latest__empty p { flex: 1; }
.sync-account-latest__empty a { color: var(--sa-account-accent); font-size: 11px; font-weight: 700; text-decoration: none; }

/* Shared native customer panels. Status colours remain managed by SellAuth. */
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .rounded-card.border.border-theme.bg-surface {
  border-color: var(--sa-account-line);
  border-radius: 13px;
  background: var(--sa-account-panel);
  box-shadow: none;
}
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-items, .sa-page-customer-tickets-items, .sa-page-customer-balance-items) { overflow: hidden; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .sa-page-customer-subscriptions-items { overflow-x: auto; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item) { padding: 20px 22px; transition: background .18s ease; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item):hover { background: var(--sa-account-panel-hover); }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-title, .sa-page-customer-tickets-title) { font-size: 14px; font-weight: 700; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-actions, .sa-page-customer-tickets-item > .flex + .flex) { margin-top: 14px; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-actions, .sa-page-customer-tickets-item) a.rounded-btn,
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .sa-page-customer-invoices-actions button { min-height: 30px; border-radius: 7px; }

body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-subscriptions-items, .sa-page-customer-balance-items) table { min-width: 630px; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-subscriptions-items, .sa-page-customer-balance-items) th { color: var(--sa-account-muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-subscriptions-items, .sa-page-customer-balance-items) td { color: var(--sa-account-text); font-size: 12px; line-height: 1.55; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-subscriptions-items, .sa-page-customer-balance-items) tr { border-color: var(--sa-account-line); }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .sa-page-customer-subscriptions-item:hover { background: var(--sa-account-panel-hover); }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-badge, .sa-page-customer-subscriptions-badge, .sa-page-customer-tickets-badge) { border-radius: 6px; font-size: 10px; font-weight: 700; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .sa-page-customer-balance-actions button { min-height: 43px; border-radius: 8px; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .sa-page-customer-balance-submit { min-height: 45px; border-radius: 8px; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .rounded-card.border.border-theme.bg-surface.p-10.text-center { padding: 42px 25px; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] .rounded-card.border.border-theme.bg-surface.p-10.text-center > span:first-child { border: 1px solid #ff791a30; border-radius: 9px; background: #ff791a10; color: var(--sa-account-accent); }

.sa-page-customer-ticket .sa-page-customer-ticket-title {
  color: var(--sa-account-text);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.sa-page-customer-ticket .sa-page-customer-ticket-items { background: #101113; }
.sa-page-customer-ticket .sa-page-customer-ticket-item > div:last-child { border-radius: 10px; }
.sa-page-customer-ticket .sa-page-customer-ticket-items + div { border-color: var(--sa-account-line); background: var(--sa-account-panel); }
.sa-page-customer-ticket textarea.input { border-radius: 8px; }
html[data-scheme="light"] .sa-page-customer-ticket .sa-page-customer-ticket-items { background: #fafafb; }

/* Sign-in and account security keep their native forms and handlers. */
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal) > div > div:last-child {
  border: 1px solid #3a342f;
  border-radius: 16px;
  background: #17181a;
  box-shadow: 0 28px 75px #0008;
}
.sync-account-login-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sync-account-login-heading__brand { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #ff791a42; border-radius: 9px; background: #ff791a13; }
.sync-account-login-heading__brand img { width: 27px; height: 27px; object-fit: contain; }
.sync-account-login-heading__eyebrow { color: #ff9948; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.sa-customer-login-modal h3 { color: #fff; font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal) .input { min-height: 43px; border-radius: 8px; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal) button[type="submit"] { min-height: 44px; border-radius: 8px; }
html[data-scheme="light"] :is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal) > div > div:last-child { border-color: #e0e1e5; background: #fff; box-shadow: 0 28px 75px #0003; }
html[data-scheme="light"] .sa-customer-login-modal h3 { color: #191a1e; }

@media (min-width: 1024px) {
  body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] > .wrap > .grid { grid-template-columns: 242px minmax(0, 1fr); gap: 33px; }
  .sa-customer-sidebar .sync-account-sidebar__desktop { top: 110px; }
}

@media (max-width: 1120px) {
  .sync-account-dashboard-lower { grid-template-columns: minmax(0, 1fr); }
  .sa-page-customer-dashboard .sync-account-latest,
  .sync-account-quick-actions { grid-column: 1; grid-row: auto; }
}

@media (max-width: 1023px) {
  .sa-customer-sidebar .sync-account-sidebar__mobile { margin-bottom: 3px; }
  .sa-customer-sidebar .sync-account-sidebar__mobile .sa-customer-sidebar-link {
    min-height: 37px;
    border: 1px solid var(--sa-account-line);
    border-radius: 8px;
    background: var(--sa-account-panel);
    color: var(--sa-account-muted);
    font-size: 11px;
  }
  .sa-customer-sidebar .sync-account-sidebar__mobile .sa-customer-sidebar-link[aria-current="page"] { border-color: #ff791a69; background: #ff791a14; color: var(--sa-account-accent); }
  .sa-customer-sidebar .sync-account-sidebar__mobile .sa-customer-sidebar-link[aria-current="page"]::before { display: none; }
}

@media (max-width: 640px) {
  body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] { padding-top: 24px; padding-bottom: 62px; }
  .sa-customer-header { margin-bottom: 22px; }
  .sa-customer-header .sa-customer-header-title { font-size: 30px; }
  .sa-customer-header .sa-customer-header-link { width: 100%; }
  .sync-account-intro { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 18px; padding-bottom: 20px; }
  .sync-account-intro__identity { width: 100%; max-width: 360px; }
  .sync-account-intro .sa-customer-header-link { margin-top: 16px; }
  .sa-page-customer-dashboard .sa-page-customer-dashboard-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sa-page-customer-dashboard .sa-page-customer-dashboard-items > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sa-page-customer-dashboard .sa-page-customer-dashboard-item { min-height: 118px; padding: 13px; }
  .sa-page-customer-dashboard .sa-page-customer-dashboard-item p.text-2xl { margin-top: 10px; font-size: 19px; }
  .sync-account-latest__body { min-height: 116px; }
  .sync-account-latest__order { flex-wrap: wrap; gap: 11px; }
  .sync-account-latest__details { flex-basis: calc(100% - 56px); }
  .sync-account-latest__actions { align-items: center; flex-direction: row; justify-content: space-between; width: 100%; padding-top: 12px; border-top: 1px solid var(--sa-account-line); }
  .sync-account-latest__empty { flex-wrap: wrap; }
  .sync-account-latest__empty a { margin-left: 48px; }
  body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"] :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item) { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link,
  .sync-account-quick-action { transition: none; }
}

/* The client hub prioritises a customer's purchase and next session. */
.sync-client-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); align-items: start; gap: 34px; }
.sync-client-main, .sync-client-layout > *, .sync-client-main > * { min-width: 0; }
.sync-client-hub { color: var(--sa-account-text); }
.sync-client-hub :is(h1, h2, p, figure, dl, dd, ol) { margin: 0; }
.sync-client-hub :is(a, button) { -webkit-tap-highlight-color: transparent; }
.sync-client-hub a { text-decoration: none; }
.sync-client-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 19px; margin-bottom: 29px; }
.sync-client-heading > div:first-child { min-width: 0; }
.sync-client-eyebrow { color: var(--sa-account-muted); font-size: 10px; font-weight: 750; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; }
.sync-client-heading h1 { margin: 8px 0 9px; color: var(--sa-account-text); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.sync-client-heading > div > p:last-child { max-width: 440px; color: var(--sa-account-muted); font-size: 13px; line-height: 1.65; }
.sync-client-heading__identity { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; font-size: 11px; color: var(--sa-account-muted); }
.sync-client-heading__identity > span:first-child { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--sa-account-line); border-radius: 50%; color: var(--sa-account-text); font-size: 10px; font-weight: 650; text-transform: uppercase; }
.sync-client-heading__identity > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sync-client-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); overflow: hidden; border: 1px solid var(--sa-account-line); border-radius: 15px; background: var(--sa-account-panel); }
.sync-client-product__content { align-self: center; min-width: 0; padding: 29px; }
.sync-client-product__topline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 21px; }
.sync-client-product__topline .sync-client-eyebrow { color: var(--sa-account-accent); }
.sync-client-order-status { display: inline-flex; align-items: center; gap: 6px; color: var(--sa-account-muted); font-size: 10px; line-height: 1.5; }
.sync-client-order-status::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sync-client-order-status[data-status='completed'] { color: #83c49d; }
.sync-client-order-status:is([data-status='pending'], [data-status='processing'], [data-status='waiting']) { color: #e1b15a; }
.sync-client-order-status:is([data-status='cancelled'], [data-status='canceled'], [data-status='failed'], [data-status='refunded']) { color: #df9890; }
.sync-client-product h2 { max-width: 420px; color: var(--sa-account-text); font-size: clamp(27px, 2.8vw, 38px); font-weight: 680; line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.sync-client-product .sync-client-product__variant { margin-top: 7px; color: var(--sa-account-muted); font-size: 12px; }
.sync-client-product .sync-client-product__description { max-width: 350px; margin-top: 17px; color: var(--sa-account-muted); font-size: 13px; line-height: 1.75; }
.sync-client-order-meta { display: flex; flex-wrap: wrap; gap: 17px 23px; margin-top: 23px !important; }
.sync-client-order-meta > div { min-width: 0; max-width: 100%; }
.sync-client-order-meta dt { color: var(--sa-account-muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.sync-client-order-meta dd { margin-top: 5px; color: var(--sa-account-text); font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.sync-client-product__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 25px; }
.sync-client-button { display: inline-flex; justify-content: center; align-items: center; gap: 11px; min-height: 44px; max-width: 100%; padding: 11px 16px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 650; line-height: 1.5; text-align: center; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.sync-client-button svg, .sync-client-text-link svg { flex: none; width: 15px; height: 15px; }
.sync-client-button--primary { background: var(--sa-account-accent); color: #110904; }
.sync-client-button--primary:hover { background: #ff994e; color: #110904; }
.sync-client-button--quiet { border-color: var(--sa-account-line-strong); background: transparent; color: var(--sa-account-text); }
.sync-client-button--quiet:hover { border-color: var(--sa-account-muted); background: var(--sa-account-panel-hover); }
.sync-client-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; max-width: 100%; color: var(--sa-account-text); font-size: 12px; font-weight: 600; line-height: 1.55; transition: color .18s ease; }
.sync-client-text-link:hover { color: var(--sa-account-accent); }
.sync-client-product .sync-client-product__empty-note { margin-top: 18px; color: var(--sa-account-muted); font-size: 10px; }
.sync-client-product__visual { display: flex; justify-content: center; flex-direction: column; gap: 16px; min-width: 0; padding: 29px 23px 24px 0; }
.sync-client-product__visual img { display: block; width: 100%; height: auto; border: 1px solid var(--sa-account-line-strong); border-radius: 8px; background: #0a0a0b; box-shadow: 0 12px 25px #0003; }
.sync-client-product__visual figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; color: var(--sa-account-text); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.sync-client-product__visual figcaption span { color: var(--sa-account-muted); font-size: 9px; font-weight: 400; letter-spacing: 0; }
.sync-client-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 21px; border-block: 1px solid var(--sa-account-line); }
.sync-client-destinations > a { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px 17px; color: var(--sa-account-text); transition: background .18s ease, color .18s ease; }
.sync-client-destinations > a:first-child { padding-left: 0; }
.sync-client-destinations > a:last-child { padding-right: 0; }
.sync-client-destinations > a + a { border-left: 1px solid var(--sa-account-line); }
.sync-client-destinations > a > svg:first-child { flex: none; width: 20px; height: 20px; color: var(--sa-account-accent); }
.sync-client-destinations > a > svg:last-child { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--sa-account-muted); }
.sync-client-destinations > a > span { flex: 1; min-width: 0; }
.sync-client-destinations strong { display: block; color: var(--sa-account-text); font-size: 13px; font-weight: 650; line-height: 1.5; }
.sync-client-destinations span > span { display: block; margin-top: 5px; color: var(--sa-account-muted); font-size: 12px; line-height: 1.7; }
.sync-client-destinations > a:hover strong, .sync-client-destinations > a:hover > svg:last-child { color: var(--sa-account-accent); }
.sync-client-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--sa-account-line); }
.sync-client-summary > div { min-width: 0; }
.sync-client-summary dt { color: var(--sa-account-muted); font-size: 11px; line-height: 1.5; }
.sync-client-summary dd { margin-top: 8px; color: var(--sa-account-text); font-size: clamp(16px, 1.8vw, 21px); font-weight: 600; line-height: 1.4; letter-spacing: -.035em; overflow-wrap: anywhere; }
.sync-client-lower { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; padding-top: 31px; }
.sync-client-lower > section { min-width: 0; }
.sync-client-section-heading h2 { margin-top: 8px; color: var(--sa-account-text); font-size: 22px; font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.sync-client-onboarding ol { display: flex; flex-direction: column; gap: 18px; margin: 24px 0 9px; padding: 0; list-style: none; }
.sync-client-onboarding li { display: flex; align-items: flex-start; gap: 16px; }
.sync-client-onboarding li > span { flex: none; padding-top: 2px; color: var(--sa-account-accent); font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sync-client-onboarding li strong { color: var(--sa-account-text); font-size: 13px; font-weight: 650; line-height: 1.5; }
.sync-client-onboarding li p { max-width: 310px; margin-top: 4px; color: var(--sa-account-muted); font-size: 12px; line-height: 1.7; }
.sync-client-account { padding-left: 30px; border-left: 1px solid var(--sa-account-line); }
.sync-client-account dl { display: grid; gap: 18px; margin: 23px 0; }
.sync-client-account dt { color: var(--sa-account-muted); font-size: 11px; }
.sync-client-account dd { margin-top: 5px; color: var(--sa-account-text); font-size: 12px; overflow-wrap: anywhere; }
.sync-client-security-status { display: flex; align-items: center; gap: 7px; }
.sync-client-security-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sa-account-muted); }
.sync-client-security-status.is-enabled::before { background: #83c49d; }
.sync-client-account > p { max-width: 290px; margin-top: 14px; color: var(--sa-account-muted); font-size: 11px; line-height: 1.7; }

/* Shared account navigation: compact on phones, generous touch targets. */
.sa-customer-sidebar { min-width: 0; }
.sa-customer-sidebar .sync-account-sidebar__profile { position: relative; align-items: flex-start; gap: 9px; padding-inline: 7px; }
.sa-customer-sidebar .sync-account-sidebar__profile .truncate { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.sa-customer-sidebar .sync-account-sidebar__profile .sync-account-sidebar__avatar { width: 31px; height: 31px; border-radius: 7px; }
.sa-customer-sidebar .sync-account-sidebar__profile > div:nth-child(2) { padding-top: 2px; }
.sa-customer-sidebar .sync-account-sidebar__profile .sync-account-menu { margin-top: -6px; }
.sa-customer-sidebar .sync-account-menu > button { width: 44px; height: 44px; }
.sa-customer-sidebar .sync-account-menu > div > button { min-height: 44px; line-height: 1.5; }
.sa-customer-sidebar .sync-account-sidebar__nav .sa-customer-sidebar-link, .sa-customer-sidebar .sync-account-sidebar__logout { min-height: 44px; }
.sync-account-mobile-nav { position: relative; flex: 1; min-width: 0; color: var(--sa-account-text); }
.sync-account-mobile-nav > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 10px 13px; border: 1px solid var(--sa-account-line-strong); border-radius: 8px; background: var(--sa-account-panel); list-style: none; cursor: pointer; }
.sync-account-mobile-nav > summary::-webkit-details-marker { display: none; }
.sync-account-mobile-nav > summary:focus-visible { outline: 2px solid var(--sa-account-accent); outline-offset: 3px; }
.sync-account-mobile-nav__current { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; font-weight: 650; }
.sync-account-mobile-nav__current svg { flex: none; width: 17px; height: 17px; color: var(--sa-account-accent); }
.sync-account-mobile-nav > summary > svg { flex: none; width: 17px; height: 17px; transition: transform .2s ease; }
.sync-account-mobile-nav[open] > summary > svg { transform: rotate(180deg); }
.sync-account-mobile-nav > nav { position: absolute; z-index: 25; top: calc(100% + 7px); left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 6px; border: 1px solid var(--sa-account-line-strong); border-radius: 9px; background: var(--sa-account-panel); box-shadow: 0 16px 25px #0003; }
body[class*='sa-tpl-customer-'] .component[class*='sa-page-customer-'] .sa-page-customer-balance-items { overflow-x: auto; max-width: 100%; }
body[class*='sa-tpl-customer-'] .component[class*='sa-page-customer-'] :is(.sa-page-customer-subscriptions-items, .sa-page-customer-balance-items) { scrollbar-width: thin; scrollbar-color: var(--sa-account-line-strong) transparent; }
body[class*='sa-tpl-customer-'] .component[class*='sa-page-customer-'] :is(.sa-page-customer-invoices-items, .sa-page-customer-tickets-items) :is(h2, h3, p) { overflow-wrap: anywhere; }
html[data-scheme='light'] .sync-client-order-status[data-status='completed'] { color: #27844c; }
html[data-scheme='light'] .sync-client-order-status:is([data-status='pending'], [data-status='processing'], [data-status='waiting']) { color: #996a17; }
html[data-scheme='light'] .sync-client-button--primary { background: #ff791a; color: #110904; }

@media (max-width: 1190px) and (min-width: 1024px) {
  .sync-client-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 25px; }
  .sync-client-product__content { padding: 24px; }
  .sync-client-product h2 { font-size: 30px; }
  .sync-client-product__visual { padding-right: 18px; }
  .sync-client-destinations > a { gap: 9px; padding-inline: 12px; }
  .sync-client-lower { gap: 24px; }
  .sync-client-account { padding-left: 24px; }
}
@media (max-width: 1023px) {
  .sync-client-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .sa-customer-sidebar .sync-account-sidebar__mobile { display: flex; align-items: flex-start; gap: 9px; margin: 0; }
  .sa-customer-sidebar .sync-account-sidebar__mobile .sa-customer-sidebar-link { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: var(--sa-account-muted); font-size: 12px; line-height: 1.5; }
  .sa-customer-sidebar .sync-account-sidebar__mobile .sa-customer-sidebar-link[aria-current='page'] { background: #ff791a16; color: var(--sa-account-accent); }
  .sa-customer-sidebar .sync-account-sidebar__mobile .sa-customer-sidebar-link:hover { background: var(--sa-account-panel-hover); color: var(--sa-account-text); }
  .sa-customer-sidebar .sync-account-sidebar__mobile .sync-account-menu > button { width: 46px; height: 46px; border-radius: 8px; border-color: var(--sa-account-line-strong); background: var(--sa-account-panel); }
}
@media (max-width: 640px) {
  .sync-client-heading { margin-bottom: 21px; gap: 15px; }
  .sync-client-heading h1 { font-size: 32px; }
  .sync-client-heading > div > p:last-child { max-width: 320px; font-size: 13px; }
  .sync-client-product { grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .sync-client-product__content { padding: 24px 21px 23px; }
  .sync-client-product__topline { margin-bottom: 17px; }
  .sync-client-product h2 { font-size: 30px; }
  .sync-client-product .sync-client-product__description { margin-top: 13px; font-size: 13px; }
  .sync-client-order-meta { gap: 18px 25px; margin-top: 21px !important; }
  .sync-client-product__actions { align-items: stretch; gap: 7px; margin-top: 22px; }
  .sync-client-product__actions .sync-client-button { width: 100%; font-size: 12px; }
  .sync-client-product__actions .sync-client-text-link { padding: 0 2px; }
  .sync-client-product__visual { gap: 14px; padding: 0 21px 21px; }
  .sync-client-product__visual img { max-height: 280px; object-fit: contain; }
  .sync-client-product__visual figcaption { font-size: 8px; }
  .sync-client-destinations { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .sync-client-destinations > a, .sync-client-destinations > a:first-child, .sync-client-destinations > a:last-child { align-items: center; min-height: 85px; padding: 19px 0; gap: 16px; }
  .sync-client-destinations > a + a { border-left: 0; border-top: 1px solid var(--sa-account-line); }
  .sync-client-destinations > a > svg:first-child { width: 21px; height: 21px; }
  .sync-client-destinations span > span { margin-top: 3px; }
  .sync-client-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding-block: 24px; }
  .sync-client-summary dd { font-size: 19px; }
  .sync-client-lower { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-top: 27px; }
  .sync-client-section-heading h2 { font-size: 23px; }
  .sync-client-account { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--sa-account-line); }
  .sync-client-account dl { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sync-client-account > p { max-width: 100%; font-size: 11px; }
  .sync-client-account .sync-client-button { width: 100%; }
  .sync-client-onboarding li strong { font-size: 13px; }
  .sync-client-onboarding li p { font-size: 12px; }
  .sync-client-text-link { font-size: 12px; }
  body[class*='sa-tpl-customer-'] .component[class*='sa-page-customer-'] :is(.sa-page-customer-invoices-items, .sa-page-customer-tickets-items, .sa-page-customer-subscriptions-items) :is(a, button) { min-height: 44px; }
}
@media (max-width: 359px) {
  .sync-client-product__content { padding-inline: 17px; }
  .sync-client-product__visual { padding-inline: 17px; }
  .sync-client-heading h1 { font-size: 29px; }
  .sync-client-product h2 { font-size: 27px; }
  .sync-client-order-meta { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sync-client-hub *, .sync-account-mobile-nav > summary > svg { transition: none !important; }
}
