/* Customer workspace v3. Native SellAuth data, forms and actions are retained. */
body[class*="sa-tpl-customer-"],
html[data-scheme="light"] body[class*="sa-tpl-customer-"] {
  --sa-account-bg: #070708;
  --sa-account-panel: #0b0b0d;
  --sa-account-panel-hover: #101013;
  --sa-account-line: #202024;
  --sa-account-line-strong: #333338;
  --sa-account-text: #f1f1f3;
  --sa-account-muted: #9b9ba5;
  --sa-account-accent: #ff801f;
  background: #070708;
  color: #f1f1f3;
  color-scheme: dark;
}

body[class*="sa-tpl-customer-"] .component.sync-client-page {
  padding-top: 20px;
  padding-bottom: 96px;
  font-size: 14px;
  line-height: 1.65;
}
body[class*="sa-tpl-customer-"] .component.sync-client-page > .wrap { max-width: 1200px; }
body[class*="sa-tpl-customer-"] .component.sync-client-page > .wrap > .sync-client-page-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.sync-client-page-layout > *, .sync-client-page-main, .sync-client-page-main > * { min-width: 0; }
.sync-client-page-main :is(.grid, .flex) { min-width: 0; }
.sync-client-page-main .grid > * { min-width: 0; }
.sync-client-page :is(.sa-page-customer-reseller-items, .sa-page-customer-affiliate-items) { grid-template-columns: minmax(0, 1fr); }
.sync-client-page :is(.sa-page-customer-reseller-items, .sa-page-customer-affiliate-items) > * { min-width: 0; max-width: 100%; }
.sync-client-page-main { padding-top: 31px; }
.sync-client-page .sa-customer-header { margin-bottom: 29px; }
.sync-client-page :is(h2, h3) { letter-spacing: -.018em; }
.sync-client-page .text-sm { font-size: 14px; line-height: 1.65; }
.sync-client-page .text-xs { font-size: 12px; line-height: 1.6; }
.sync-client-page .text-t-primary { color: var(--sa-account-text); }
.sync-client-page .text-t-muted { color: var(--sa-account-muted); }
.sync-client-page :is(p, h1, h2, h3) { overflow-wrap: anywhere; }
.sync-client-page .shadow-card, .sync-client-page .shadow-btn { box-shadow: none; }

/* Named structural surfaces, not an override of every border or control. */
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sync-client-surface.rounded-card.bg-surface {
  border-color: var(--sa-account-line);
  border-radius: 8px;
  background: var(--sa-account-panel);
  box-shadow: none;
  --tw-ring-shadow: 0 0 #0000;
}
body[class*="sa-tpl-customer-"] .component.sync-client-page .sync-client-surface:hover { box-shadow: none; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sync-client-page-main > .sync-client-surface.rounded-card.bg-surface,
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sa-page-customer-reseller-items > .sync-client-surface.rounded-card.bg-surface,
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sa-page-customer-affiliate-items > .sync-client-surface.rounded-card.bg-surface {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}
.sync-client-page .sync-client-surface > .border-b,
.sync-client-page .sync-client-surface > .border-t { border-color: var(--sa-account-line); }

/* Orders and support: editorial rows, a clear hierarchy and quiet actions. */
body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-items, .sa-page-customer-tickets-items) {
  overflow: visible;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}
body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item) {
  padding: 24px 0;
  border-color: var(--sa-account-line);
  background: transparent;
  transition: none;
}
body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item):hover { background: transparent; }
body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-title, .sa-page-customer-tickets-title) {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.sync-client-page :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item) > .flex > .min-w-0 > p { max-width: 740px; }
body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-actions, .sa-page-customer-tickets-item > .flex + .flex) { margin-top: 15px; }
.sync-client-page .sa-page-customer-invoices-filter { margin-block: -4px 20px; }
.sync-client-page.sa-page-customer-tickets .sync-client-page-main > .flex.rounded-card {
  padding: 14px 0;
  border-width: 0 0 1px;
  border-color: var(--sa-account-line);
  border-radius: 0;
  background: transparent;
}

/* Action borders apply only to actual buttons, preserving semantic states. */
.sync-client-page :is(a, button).rounded-btn {
  min-height: 38px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-actions, .sa-page-customer-tickets-item) :is(a, button).rounded-btn {
  min-height: 38px;
  padding: 8px 12px;
  border-color: var(--sa-account-line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--sa-account-text);
}
.sync-client-page :is(a, button).rounded-btn.border-theme:hover { border-color: #64646d; background: #111114; color: #fff; }
.sync-client-page :is(a, button).bg-accent-500 { border-color: #ff801f; background: #ff801f; color: #180d04; }
.sync-client-page :is(a, button).bg-accent-500:hover:not(:disabled) { border-color: #ff984b; background: #ff984b; color: #180d04; }
.sync-client-page :is(a, button):focus-visible,
.sync-client-page :is(input, textarea, select):focus-visible { outline: 2px solid #ff963f; outline-offset: 3px; }
.sync-client-page :is(button, input, textarea, select):disabled { cursor: not-allowed; opacity: .5; }

/* Status is carried by native colour classes; shapes remain consistent. */
body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-badge, .sa-page-customer-subscriptions-badge, .sa-page-customer-tickets-badge, .sa-page-customer-ticket-badge) {
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

/* Billing and financial tables. Scroll is contained by the table viewport. */
body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-subscriptions-items,
body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-balance-items {
  max-width: 100%;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-color: #37373c transparent;
  scrollbar-width: thin;
}
.sync-client-page .overflow-x-auto { max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #37373c transparent; }
.sync-client-page table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
body[class*="sa-tpl-customer-"] .component.sync-client-page table :is(th, td) { padding: 18px 16px; border-color: var(--sa-account-line); }
body[class*="sa-tpl-customer-"] .component.sync-client-page table th {
  background: transparent;
  color: #85858f;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: .07em;
}
body[class*="sa-tpl-customer-"] .component.sync-client-page table td {
  color: var(--sa-account-text);
  font-size: 13px;
  line-height: 1.65;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.sync-client-page table :is(th, td):first-child { padding-left: 0; }
.sync-client-page table :is(th, td):last-child { padding-right: 0; }
body[class*="sa-tpl-customer-"] .component.sync-client-page table tr { border-color: var(--sa-account-line); }
body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-subscriptions-item:hover { background: #0b0b0d; }
.sync-client-page table td :is(a, button) { font-size: 12px; }
.sync-client-page .sa-page-customer-subscriptions-item td > span { white-space: normal; overflow-wrap: anywhere; }
.sync-client-page table td :is(a, button):focus-visible { outline-offset: 2px; }

/* Empty account states stay useful without a big promotional card. */
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sync-client-surface.sync-client-empty.rounded-card.bg-surface {
  padding: clamp(40px, 6vw, 72px) 20px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}
body[class*="sa-tpl-customer-"] .component.sync-client-page .sync-client-empty > span:first-child,
.sync-client-page .sync-client-empty > .flex > span:first-child {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8e8e98;
}
.sync-client-page .sync-client-empty > p.font-medium { margin-top: 15px; color: #eeeef1; font-size: 17px; font-weight: 550; letter-spacing: -.02em; }
.sync-client-page .sync-client-empty > p + p { max-width: 410px; margin-inline: auto; color: var(--sa-account-muted); font-size: 13px; }
.sync-client-page .sync-client-empty :is(a, button).bg-accent-500 { min-height: 40px; margin-top: 22px; padding-inline: 17px; }

/* Wallet: balance is a number first, with the funding form alongside it. */
.sync-client-page .sync-client-balance-overview { gap: 18px; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sync-client-balance-overview > .sync-client-surface.rounded-card.bg-surface {
  padding: 24px;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  --tw-ring-shadow: 0 0 #0000;
}
.sync-client-page .sync-client-balance-overview > div:first-child > span:first-child { width: 24px; height: 24px; border: 0; border-radius: 0; background: transparent; color: var(--sa-account-muted); }
.sync-client-page .sa-page-customer-balance-price { margin: 20px 0 12px; font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.sync-client-page .sync-client-balance-overview > .sync-client-surface > p:last-child { margin-top: 12px; line-height: 1.7; }
.sync-client-page .sync-client-balance-overview h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.sync-client-page .sync-client-balance-overview form > p:first-child { margin: 0 0 18px; line-height: 1.65; }
.sync-client-page .sa-page-customer-balance-actions { gap: 8px; }
body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-balance-actions button { min-height: 44px; border-radius: 5px; border-color: var(--sa-account-line-strong); background: #0b0b0d; font-size: 13px; }
body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-balance-actions button[aria-pressed="true"] { border-color: #ff801f; background: #ff801f0c; color: #ff9b53; }
body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-balance-submit { min-height: 44px; border-radius: 5px; }
.sync-client-page .sa-page-customer-balance-custom input { padding-left: 27px; }

/* Partner programmes: data strips and flat sections, no oversized stat tiles. */
.sync-client-page .sa-page-customer-reseller-stats { gap: 0; border-block: 1px solid var(--sa-account-line); }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sa-page-customer-reseller-stat.rounded-card.bg-surface {
  padding: 22px;
  border: 0;
  border-right: 1px solid var(--sa-account-line);
  border-radius: 0;
  background: transparent;
}
.sync-client-page .sa-page-customer-reseller-stat:first-child { padding-left: 0; }
.sync-client-page .sa-page-customer-reseller-stat:last-child { border-right: 0; }
.sync-client-page .sa-page-customer-reseller-stat > span:first-child { width: 19px; height: 19px; border-radius: 0; background: transparent; color: var(--sa-account-muted); }
.sync-client-page .sa-page-customer-reseller-stat p.text-2xl { margin-top: 17px; font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.sync-client-page .sa-page-customer-reseller-stat p.text-sm { font-size: 12px; }
.sync-client-page .sa-page-customer-reseller-items { gap: 23px; margin-top: 27px; }
.sync-client-page .sa-page-customer-reseller-items > .sync-client-surface.p-5 { padding: 22px 0; }
.sync-client-page .sa-page-customer-reseller-items > .grid { gap: 24px; }
.sync-client-page .sa-page-customer-reseller-items > .grid > .sync-client-surface { padding: 23px; background: #0b0b0d; }
.sync-client-page .sa-page-customer-affiliate-items { gap: 27px; }
.sync-client-page .sa-page-customer-affiliate-items > .sync-client-surface.p-5 { padding: 24px 0; }
.sync-client-page .sa-page-customer-affiliate-items > .sync-client-surface { --tw-ring-shadow: 0 0 #0000; }
.sync-client-page .sa-page-customer-affiliate-item { border-color: #28282e; border-radius: 5px; background: #0b0b0d; }
.sync-client-page.sa-page-customer-affiliate button.group > span.truncate { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.sync-client-page.sa-page-customer-affiliate button.group { height: auto; min-height: 44px; padding-block: 10px; }
.sync-client-page :is(.sa-page-customer-reseller-suspended, .sa-page-customer-reseller-applied, .sa-page-customer-affiliate-suspended) { padding-block: 46px; }
.sync-client-page .sa-page-customer-reseller-items table :is(input, button) { min-height: 36px; }
.sync-client-page .sa-page-customer-reseller-items table input[type="number"] { width: 48px; padding-inline: 3px; text-align: center; }

/* Conversation: readable messages on black, editor fixed to the thread panel. */
.sync-client-page .sync-client-conversation-heading { gap: 18px; padding-bottom: 21px; border-bottom: 1px solid var(--sa-account-line); }
.sync-client-page .sa-page-customer-ticket-title { max-width: 760px; font-size: clamp(25px, 3vw, 34px); font-weight: 550; line-height: 1.25; letter-spacing: -.035em; }
body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page.sa-page-customer-ticket .sync-client-page-main > .sync-client-surface.rounded-card.bg-surface { border: 1px solid var(--sa-account-line); border-radius: 7px; }
.sync-client-page .sa-page-customer-ticket-items { min-height: 330px; height: clamp(330px, 53vh, 660px); padding: 25px; background: #09090b; gap: 24px; scrollbar-color: #37373c transparent; scrollbar-width: thin; }
.sync-client-page .sa-page-customer-ticket-item > div:last-child { padding: 13px 16px; border-color: #24242a; border-radius: 6px; background: #0e0e11; }
.sync-client-page .sa-page-customer-ticket-item.flex-row-reverse > div:last-child { border-color: #5b361c; background: #17100b; }
.sync-client-page .sa-page-customer-ticket-item > :is(img, span):first-child { border-radius: 50%; background: transparent; }
.sync-client-page .sa-page-customer-ticket-item p { font-size: 13px; line-height: 1.75; }
.sync-client-page .sa-page-customer-ticket-items + div { padding: 17px; border-color: var(--sa-account-line); background: #0b0b0d; }
.sync-client-page .sa-page-customer-ticket-items + div form > .flex.items-end { align-items: flex-end; gap: 9px; }
.sync-client-page .sa-page-customer-ticket-items + div textarea { flex: 1; min-width: 0; min-height: 44px; }
.sync-client-page .sa-page-customer-ticket-items + div form > .flex.items-end > button { width: 44px; height: 44px; min-height: 44px; }
.sync-client-page .sa-page-customer-ticket-items + div form .text-error.absolute { position: static; flex-basis: 100%; }
.sync-client-page .sa-page-customer-ticket-items + div form > .flex.items-end { flex-wrap: wrap; }

/* Inputs retain native validation, disabled/readonly states and payment rules. */
.sync-client-page :is(.input, input[type="number"], input[type="text"], input[type="email"], select, textarea) {
  min-height: 44px;
  max-width: 100%;
  border-color: #303036;
  border-radius: 5px;
  background: #09090b;
  color: #ededf0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}
.sync-client-page :is(.input, input, textarea)::placeholder { color: #74747f; opacity: 1; }
.sync-client-page :is(input, textarea):read-only { color: #9999a3; }
.sync-client-page :is(input[type="checkbox"], input[type="radio"]) { accent-color: #ff801f; }

/* Native sign-in, security, ticket and partner modals share the black workspace. */
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) {
  --sa-account-text: #f1f1f3;
  --sa-account-muted: #9b9ba5;
  --cl-overlay: #000c;
  color: #f1f1f3;
  font-size: 14px;
  color-scheme: dark;
}
html[data-scheme] :is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) > div > .rounded-card {
  max-width: 460px;
  padding: 29px;
  border: 1px solid #303036;
  border-radius: 9px;
  background: #0b0b0d;
  color: #f1f1f3;
  box-shadow: 0 26px 80px #0009;
}
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: #303036; background: #0b0b0d; box-shadow: 0 26px 80px #0009; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) :is(h2, h3) { color: #f1f1f3; font-size: 23px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
html[data-scheme="light"] .sa-customer-login-modal h3 { color: #f1f1f3; }
.sa-customer-login-modal .sync-account-login-heading { gap: 12px; }
.sa-customer-login-modal .sync-account-login-heading__brand { width: 30px; height: 38px; border: 0; border-radius: 0; background: transparent; }
.sa-customer-login-modal .sync-account-login-heading__brand img { width: 28px; height: 28px; }
.sa-customer-login-modal .sync-account-login-heading__eyebrow { color: #8e8e98; font-size: 9px; letter-spacing: .13em; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) :is(p, small, label) { font-size: 13px; line-height: 1.65; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) .text-t-muted { color: #9999a4; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) :is(.input, select, textarea) { min-height: 45px; border: 1px solid #333339; border-radius: 5px; background: #070708; color: #f1f1f3; font-size: 14px; box-shadow: none; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) .rounded-btn { min-height: 42px; border-radius: 5px; font-size: 13px; box-shadow: none; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) button.bg-accent-500 { background: #ff801f; color: #180d04; }
:is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) :is(button, input, select, textarea):focus-visible { outline: 2px solid #ff963f; outline-offset: 3px; }
.sa-customer-tfa-modal img.bg-white { background: #fff; }
.sa-customer-tfa-modal code { overflow-wrap: anywhere; font-size: 13px; }

@media (max-width: 800px) {
  .sync-client-page-main { padding-top: 25px; }
  .sync-client-page .sa-page-customer-reseller-stat { padding-inline: 16px; }
  .sync-client-page .sa-page-customer-reseller-stat:nth-child(2n) { border-right: 0; }
  .sync-client-page .sa-page-customer-reseller-stat:nth-child(n+3) { border-top: 1px solid #202024; }
  .sync-client-page .sa-page-customer-reseller-stat:nth-child(odd) { padding-left: 0; }
}
@media (min-width: 768px) {
  .sync-client-page .sa-page-customer-affiliate-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-subscriptions-items { overflow: visible; border-top: 0; }
  body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-subscriptions-items table { display: block; min-width: 0; }
  .sync-client-page .sa-page-customer-subscriptions-items thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .sync-client-page .sa-page-customer-subscriptions-items tbody { display: block; }
  .sync-client-page .sa-page-customer-subscriptions-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-block: 23px; border-top: 1px solid #202024; }
  .sync-client-page .sa-page-customer-subscriptions-item td { display: block; min-width: 0; white-space: normal; }
  body[class*="sa-tpl-customer-"] .component.sync-client-page .sa-page-customer-subscriptions-item td { padding: 0; font-size: 13px; }
  .sync-client-page .sa-page-customer-subscriptions-item td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #85858f; font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
  .sync-client-page .sa-page-customer-subscriptions-item td:first-child,
  .sync-client-page .sa-page-customer-subscriptions-item td:last-child { grid-column: 1 / -1; }
  .sync-client-page .sa-page-customer-subscriptions-item td:first-child { font-size: 15px; }
  .sync-client-page .sa-page-customer-subscriptions-item td:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 18px; }
  .sync-client-page .sa-page-customer-subscriptions-item td:last-child::before { width: 100%; }
  .sync-client-page .sa-page-customer-subscriptions-item td:last-child :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; margin-right: 0; }
}
@media (max-width: 640px) {
  body[class*="sa-tpl-customer-"] .component.sync-client-page { padding-top: 14px; padding-bottom: 66px; }
  .sync-client-page-main { padding-top: 24px; }
  .sync-client-page .sa-customer-header { margin-bottom: 23px; }
  body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item) { padding: 22px 0; }
  .sync-client-page :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item) > .flex:first-child { flex-direction: column; gap: 11px; }
  .sync-client-page :is(.sa-page-customer-invoices-item, .sa-page-customer-tickets-item) > .flex:first-child > .min-w-0 { width: 100%; max-width: 100%; }
  body[class*="sa-tpl-customer-"] .component.sync-client-page :is(.sa-page-customer-invoices-actions, .sa-page-customer-tickets-item) :is(a, button).rounded-btn { min-height: 44px; }
  .sync-client-page .sa-page-customer-tickets-badge { max-width: 100%; }
  .sync-client-page .sync-client-balance-overview { gap: 16px; }
  body[class*="sa-tpl-customer-"] .component[class*="sa-page-customer-"].sync-client-page .sync-client-balance-overview > .sync-client-surface.rounded-card.bg-surface { padding: 20px; }
  .sync-client-page .sa-page-customer-balance-items table { min-width: 580px; }
  .sync-client-page.sa-page-customer-affiliate table { min-width: 560px; }
  .sync-client-page .sa-page-customer-affiliate-items { gap: 0; }
  .sync-client-page .sa-page-customer-affiliate-items > .sync-client-surface + .sync-client-surface { border-top: 0; }
  .sync-client-page.sa-page-customer-affiliate .flex.gap-6 { gap: 15px; flex-wrap: wrap; }
  .sync-client-page.sa-page-customer-affiliate input.w-40 { width: min(160px, 55%); }
  .sync-client-page .sa-page-customer-reseller-items > .grid { gap: 17px; }
  .sync-client-page .sa-page-customer-ticket-items { min-height: 350px; height: 53dvh; padding: 17px 12px; gap: 20px; }
  .sync-client-page .sa-page-customer-ticket-item { gap: 8px; }
  .sync-client-page .sa-page-customer-ticket-item > :is(img, span):first-child { width: 25px; height: 25px; }
  .sync-client-page .sa-page-customer-ticket-item > div:last-child { max-width: calc(100% - 34px); padding: 11px 12px; }
  .sync-client-page .sa-page-customer-ticket-items + div { padding: 12px; }
  .sync-client-page .sa-page-customer-ticket-items + div textarea { flex-basis: calc(100% - 106px); }
  .sync-client-page :is(a, button).rounded-btn { min-height: 44px; }
  :is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) > div { padding-inline: 16px; }
  html[data-scheme] :is(.sa-customer-login-modal, .sa-customer-password-modal, .sa-customer-tfa-modal, .sa-customer-discord-modal, .sa-customer-delete-modal, .sa-ticket-create-modal, .sa-affiliate-payout-modal, .sa-affiliate-edit-code-modal, .sa-reseller-api-modal, .sa-reseller-delivery-modal) > div > .rounded-card { padding: 24px 20px; margin-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sync-client-page :is(a, button).rounded-btn { transition: none; }
}
