:root {
  color-scheme: light;
  --ace-bg: #f6f7fb;
  --ace-surface: #ffffff;
  --ace-surface-subtle: #f8f9fc;
  --ace-text: #11172f;
  --ace-muted: #637087;
  --ace-line: #e8eaf2;
  --ace-line-strong: #d9dce8;
  --ace-primary: #5b43f5;
  --ace-primary-hover: #4932dc;
  --ace-primary-soft: #f0edff;
  --ace-blue: #115ebf;
  --ace-blue-soft: #e9f2ff;
  --ace-green: #0f704f;
  --ace-green-soft: #e7f7f1;
  --ace-amber: #8c5600;
  --ace-amber-soft: #fff4df;
  --ace-red: #b52c46;
  --ace-red-soft: #fff0f3;
  --ace-shadow: 0 10px 28px rgb(30 38 70 / 6%);
  --ace-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ace-bg);
  font-size: 17px;
  scroll-behavior: smooth;
}

body,
body.primary-bg-color {
  min-height: 100vh;
  margin: 0;
  color: var(--ace-text);
  background: var(--ace-bg);
  font-family: var(--ace-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  display: none;
}

::selection {
  color: #fff;
  background: var(--ace-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--ace-text);
  font-family: var(--ace-font);
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.12rem;
}

p,
small,
.text-muted {
  color: var(--ace-muted) !important;
}

a {
  color: var(--ace-primary);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ace-primary-hover);
}

:focus-visible {
  outline: 3px solid rgb(91 67 245 / 24%);
  outline-offset: 2px;
}

.w-hidden {
  display: none;
}

.ace-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ace-primary);
  border-radius: 8px;
  transform: translateY(-150%);
}

.ace-skip-link:focus {
  color: #fff;
  transform: none;
}

.header,
.master-breadcrumb,
.footer,
#footer {
  display: none;
}

.ace-app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ace-bg);
}

.ace-app-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 26px 20px 20px;
  background: var(--ace-surface);
  border-right: 1px solid var(--ace-line);
}

.ace-app-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  margin-inline: auto;
  color: var(--ace-text);
  font-size: 1.52rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.ace-app-brand img {
  display: block;
  width: 150px;
  height: auto;
}

.ace-app-brand strong {
  color: var(--ace-primary);
  font: inherit;
}

.ace-app-menu {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 4px;
  min-height: 0;
  margin-top: 26px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.ace-app-menu a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  padding: 6px 12px;
  color: #34405b;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.ace-app-menu a:hover,
.ace-app-menu a:focus-visible {
  color: var(--ace-text);
  background: var(--ace-surface-subtle);
}

.ace-app-menu a.is-active {
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
}

.ace-app-menu-group {
  min-width: 0;
}

.ace-app-menu-group > summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  min-height: 50px;
  padding: 6px 12px;
  color: #34405b;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 650;
  list-style: none;
}

.ace-app-menu-group > summary::-webkit-details-marker {
  display: none;
}

.ace-app-menu-group > summary:hover,
.ace-app-menu-group > summary:focus-visible {
  color: var(--ace-text);
  background: var(--ace-surface-subtle);
}

.ace-app-menu-group > summary.is-active {
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
}

.ace-app-menu-group__chevron {
  width: 16px !important;
  font-size: .62rem;
  transition: transform 160ms ease;
}

.ace-app-menu-group[open] .ace-app-menu-group__chevron {
  transform: rotate(180deg);
}

.ace-app-submenu {
  display: grid;
  gap: 2px;
  padding: 3px 0 7px 28px;
}

.ace-app-menu .ace-app-submenu a {
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 36px;
  padding: 4px 9px;
  font-size: .84rem;
  font-weight: 600;
}

.ace-app-menu .ace-app-submenu a i {
  width: 16px;
  font-size: .7rem;
}

.ace-app-menu i {
  width: 20px;
  color: currentColor;
  text-align: center;
}

.ace-app-account {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  margin-top: 0;
  padding: 10px;
  color: var(--ace-text);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  text-decoration: none;
}

.ace-app-session {
  position: relative;
  margin-top: auto;
}

.ace-app-account-menu {
  position: relative;
}

.ace-app-account-menu > summary {
  cursor: pointer;
  list-style: none;
}

.ace-app-account-menu > summary::-webkit-details-marker {
  display: none;
}

.ace-app-account-menu__chevron {
  transition: transform 160ms ease;
}

.ace-app-account-menu[open] .ace-app-account-menu__chevron {
  transform: rotate(180deg);
}

.ace-app-account-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(145deg, #494647, #343132);
  border-radius: 24px;
  box-shadow: 12px 12px 24px rgb(0 0 0 / 42%), inset 4px 4px 9px rgb(255 255 255 / 8%);
}

.ace-app-account-popover a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  color: #eee8d4;
  border-radius: 18px;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
}

.ace-app-account-popover a:hover,
.ace-app-account-popover a:focus-visible {
  color: #fffcd0;
  background: #454243;
}

.ace-app-account-popover a.is-active {
  color: #262323;
  background: linear-gradient(145deg, #fffedc, #ddd4a4);
  box-shadow: 5px 5px 10px rgb(0 0 0 / 34%), inset 3px 3px 6px rgb(255 255 255 / 52%);
}

.ace-app-account-popover i {
  width: 18px;
  text-align: center;
}

.ace-app-session .ace-app-account {
  padding-right: 42px;
}

.ace-app-logout {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 32px;
  height: 32px;
  color: #6c7790;
  border-radius: 50%;
  text-decoration: none;
  transform: translateY(-50%);
  place-items: center;
}

.ace-app-logout:hover,
.ace-app-logout:focus-visible {
  color: var(--ace-red);
  background: var(--ace-red-soft);
}

.ace-app-session .ace-app-account > .fa-chevron-right {
  display: none;
}

.ace-app-account:hover,
.ace-app-account:focus-visible {
  color: var(--ace-text);
  background: var(--ace-surface-subtle);
  border-color: #a99df8;
}

.ace-app-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--ace-primary);
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 760;
  place-items: center;
}

.ace-app-account__copy {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.ace-app-account__copy strong,
.ace-app-account__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-app-account__copy strong {
  color: var(--ace-text);
  font-size: .88rem;
}

.ace-app-account__copy small {
  margin-top: 4px;
  font-size: .82rem;
}

.ace-app-account > i {
  color: #6c7790;
  font-size: .65rem;
}

.ace-app-main {
  min-width: 0;
}

.ace-page-body {
  min-width: 0;
  padding: 0 24px 24px;
}

.ace-page-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 96px);
  min-height: calc(100dvh - 96px);
  overflow: hidden;
  background: var(--ace-surface);
  border: 1px solid #eff0f5;
  border-radius: 8px;
  box-shadow: var(--ace-shadow);
}

.ace-page-frame:has(.ace-page-context) {
  grid-template-columns: minmax(0, 1fr);
}

.ace-page-context {
  display: flex;
  grid-row: 1;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
  overflow-x: auto;
  background: #fafbfe;
  border-bottom: 1px solid var(--ace-line);
}

.ace-page-context .panel,
.ace-page-context .card,
.ace-page-context .panel-sidebar {
  flex: 1 0 210px;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ace-page-context .panel-heading,
.ace-page-context .card-header {
  padding: 9px 10px;
  color: var(--ace-text);
  background: transparent;
  border: 0;
  font-size: .85rem;
  font-weight: 750;
}

.ace-page-context .list-group-item {
  min-height: 42px;
  padding: 9px 10px;
  color: #4d5971;
  background: transparent;
  border: 0;
  border-radius: 8px !important;
  font-size: .85rem;
}

.ace-page-context .list-group-item:hover,
.ace-page-context .list-group-item.active {
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
}

.ace-page-content {
  grid-row: 2;
  min-width: 0;
  padding: 30px;
}

.ace-page-context,
.ace-functional-heading,
.ace-page-content > div[style*="#ffffd2"] {
  display: none !important;
}

.ace-account-balance {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px 20px;
  background: #f8f9fc;
  border: 1px solid var(--ace-line);
  border-radius: 8px;
}

.ace-account-balance__icon {
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--ace-green);
  background: var(--ace-green-soft);
  border-radius: 8px;
  place-items: center;
}

.ace-account-balance__copy {
  display: grid;
  gap: 3px;
}

.ace-account-balance__copy small {
  color: var(--ace-muted);
  font-size: .84rem;
  font-weight: 700;
}

.ace-account-balance__copy strong {
  color: var(--ace-text);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.ace-page-content > p[style*="text-align:center"] {
  display: none;
}

.ace-page-content > .alert:first-child,
.ace-page-content > h1:first-child,
.ace-page-content > h2:first-child {
  margin-top: 0;
}

.ace-functional-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.ace-functional-heading h1 {
  margin: 0;
  font-size: 1.55rem;
}

.ace-functional-heading p {
  margin: 7px 0 0;
  font-size: .82rem;
}

.ace-functional-heading .btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.ace-page-content > h1,
.ace-page-content > .page-header h1 {
  font-size: 1.65rem;
}

.ace-section-heading,
.ace-store-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ace-section-heading h2,
.ace-store-heading h1 {
  margin: 0;
  font-size: 1.55rem;
}

.ace-section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.btn {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: none;
}

.btn-primary,
.btn-success,
.btn-info {
  color: #fff;
  background: var(--ace-primary);
  border-color: var(--ace-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-info:hover,
.btn-info:focus {
  color: #fff;
  background: var(--ace-primary-hover);
  border-color: var(--ace-primary-hover);
}

.btn-default,
.btn-light,
.btn-secondary,
.btn-outline-primary {
  color: #34405b;
  background: var(--ace-surface);
  border-color: var(--ace-line-strong);
}

.btn-default:hover,
.btn-light:hover,
.btn-secondary:hover,
.btn-outline-primary:hover {
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
  border-color: #b8aef8;
}

.btn-danger {
  color: #fff;
  background: var(--ace-red);
  border-color: var(--ace-red);
}

.form-control,
select.form-control,
.custom-select {
  min-height: 44px;
  color: var(--ace-text);
  background: var(--ace-surface);
  border: 1px solid var(--ace-line-strong);
  border-radius: 8px;
}

textarea.form-control {
  min-height: 128px;
}

.form-control:focus,
.custom-select:focus {
  color: var(--ace-text);
  background: var(--ace-surface);
  border-color: var(--ace-primary);
  box-shadow: 0 0 0 3px rgb(91 67 245 / 14%);
}

label,
.col-form-label {
  color: #34405b;
  font-size: .88rem;
  font-weight: 700;
}

.input-group-text {
  color: #5e6980;
  background: #f6f7fb;
  border-color: var(--ace-line-strong);
}

.custom-control-label::before {
  border-color: var(--ace-line-strong);
}

.custom-control-input:checked ~ .custom-control-label::before {
  background: var(--ace-primary);
  border-color: var(--ace-primary);
}

.card,
.panel,
.dataTables_wrapper,
.table-container,
.invoice-container,
.ticket-reply,
.logincontainer,
.providerLinkingFeedback {
  color: var(--ace-text);
  background: var(--ace-surface);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  box-shadow: var(--ace-shadow);
}

.card-header,
.card-footer,
.panel-heading,
.panel-footer {
  color: var(--ace-text);
  background: var(--ace-surface-subtle);
  border-color: var(--ace-line);
}

.card-header,
.panel-heading {
  padding: 14px 16px;
  font-weight: 750;
}

.card-body,
.panel-body {
  padding: 16px;
}

.card-footer,
.panel-footer {
  padding: 12px 16px;
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--ace-line);
  border-radius: 8px;
}

.table {
  width: 100%;
  margin: 0;
  color: var(--ace-text);
  background: var(--ace-surface);
  font-size: .88rem;
}

.table th,
.table td {
  padding: 13px 14px;
  border-color: var(--ace-line);
  vertical-align: middle;
}

.table thead th {
  color: #68738a;
  background: #f7f8fc;
  border-bottom-width: 1px;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.table-hover tbody tr:hover {
  color: var(--ace-text);
  background: #faf9ff;
}

.dataTables_wrapper {
  padding-bottom: 14px;
  overflow: hidden;
}

.dataTables_wrapper > .row {
  margin: 0;
  padding: 12px 14px;
}

.dataTables_wrapper .table-responsive {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.pagination {
  gap: 4px;
}

.pagination .page-link {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  color: #536078;
  background: var(--ace-surface);
  border-color: var(--ace-line);
  border-radius: 8px !important;
  place-items: center;
}

.pagination .page-item.active .page-link {
  color: #fff;
  background: var(--ace-primary);
  border-color: var(--ace-primary);
}

.alert {
  padding: 12px 14px;
  color: var(--ace-text);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  box-shadow: none;
}

.alert-success {
  color: var(--ace-green);
  background: var(--ace-green-soft);
  border-color: #bfe7d8;
}

.alert-info {
  color: var(--ace-blue);
  background: var(--ace-blue-soft);
  border-color: #c5dcfb;
}

.alert-warning {
  color: #875600;
  background: var(--ace-amber-soft);
  border-color: #f0d5a5;
}

.alert-danger {
  color: var(--ace-red);
  background: var(--ace-red-soft);
  border-color: #f2c7d0;
}

.badge {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 750;
}

.badge-primary {
  background: var(--ace-primary);
}

.badge-success {
  background: var(--ace-green);
}

.badge-warning {
  color: #4b3100;
  background: #f6be55;
}

.badge-danger {
  background: var(--ace-red);
}

.nav-tabs {
  gap: 4px;
  border-color: var(--ace-line);
}

.nav-tabs .nav-link {
  min-height: 42px;
  color: #667188;
  border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
  color: var(--ace-primary);
  background: var(--ace-surface);
  border-color: var(--ace-line) var(--ace-line) var(--ace-surface);
}

.modal-content,
.popover {
  color: var(--ace-text);
  background: var(--ace-surface);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgb(25 32 64 / 18%);
}

.modal-header,
.modal-footer {
  border-color: var(--ace-line);
}

.popover-header {
  color: var(--ace-text);
  background: var(--ace-surface-subtle);
}

.popover-body {
  color: #4e5a72;
}

.client-alerts {
  width: min(340px, 80vw);
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-alerts li a {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ace-text);
  border-bottom: 1px solid var(--ace-line);
  text-decoration: none;
}

.ace-mobile-nav {
  display: none;
}

/* Homepage */
.ace-page-frame--homepage {
  overflow: visible;
  background: var(--ace-surface);
}

.ace-page-frame--homepage .ace-page-content {
  padding: 24px;
}

.ace-page-frame--homepage .ace-page-content > div[style*="#ffffd2"] {
  margin: -24px -24px 24px !important;
}

.ace-home-products {
  padding-top: 28px;
}

.ace-home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.ace-home-product-card {
  display: flex;
  min-width: 0;
  min-height: 330px;
  padding: 18px;
  flex-direction: column;
  background: var(--ace-surface);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
}

.ace-home-product-card > header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.ace-home-product-card h3 {
  margin: 3px 0 0;
  font-size: .92rem;
  line-height: 1.4;
}

.ace-home-product-card__icon,
.ace-store-group__icon {
  display: grid;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  font-size: 1.25rem;
  place-items: center;
}

.ace-tone--violet,
.ace-tone--indigo {
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
}

.ace-tone--blue {
  color: var(--ace-blue);
  background: var(--ace-blue-soft);
}

.ace-tone--green {
  color: var(--ace-green);
  background: var(--ace-green-soft);
}

.ace-tone--amber {
  color: var(--ace-amber);
  background: var(--ace-amber-soft);
}

.ace-home-product-card > p {
  display: -webkit-box;
  min-height: 60px;
  margin: 16px 0 12px;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ace-home-product-card > ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--ace-muted);
  font-size: .86rem;
  list-style: none;
}

.ace-home-product-card > ul i {
  width: 16px;
  color: #8a96ac;
  text-align: center;
}

.ace-home-product-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.ace-home-product-card > footer strong {
  color: var(--ace-primary);
  font-size: .86rem;
}

.ace-home-product-card > footer strong small {
  margin-left: 2px;
  font-size: .72rem;
  font-weight: 650;
}

.ace-home-product-card > footer a {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--ace-primary);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  text-decoration: none;
  place-items: center;
}

.ace-home-product-card > footer a:hover {
  color: #fff;
  background: var(--ace-primary);
}

/* Client dashboard */
.ace-page-frame--clientareahome .ace-page-content {
  padding: 0;
}

.ace-client-surface {
  min-height: calc(100vh - 96px);
  min-height: calc(100dvh - 96px);
  padding: 30px;
}

.ace-client-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.ace-client-stat {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 18px;
  gap: 14px;
  min-height: 142px;
  padding: 20px 16px;
  color: var(--ace-text);
  background: var(--ace-surface);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  box-shadow: var(--ace-shadow);
  text-decoration: none;
}

.ace-client-stat:hover {
  color: var(--ace-text);
  border-color: #c8c1fb;
  transform: translateY(-2px);
}

.ace-client-stat__icon {
  display: grid;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  font-size: 1.15rem;
  place-items: center;
}

.ace-client-stat--green .ace-client-stat__icon {
  color: var(--ace-green);
  background: var(--ace-green-soft);
}

.ace-client-stat--blue .ace-client-stat__icon {
  color: var(--ace-blue);
  background: var(--ace-blue-soft);
}

.ace-client-stat--amber .ace-client-stat__icon {
  color: var(--ace-amber);
  background: var(--ace-amber-soft);
}

.ace-client-stat--violet .ace-client-stat__icon {
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
}

.ace-client-stat__content {
  display: grid;
  align-content: start;
  min-width: 0;
}

.ace-client-stat__content small {
  overflow: hidden;
  color: #34405b !important;
  font-size: .84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-client-stat__content strong {
  margin-top: 4px;
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ace-client-stat__content > span {
  align-self: end;
  margin-top: 15px;
  color: var(--ace-primary);
  font-size: .8rem;
  font-weight: 700;
}

.ace-client-stat > .fa-arrow-right {
  align-self: end;
  justify-self: end;
  font-size: .8rem;
}

.ace-client-panels {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  align-items: start;
  gap: 16px;
}

.ace-client-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--ace-surface);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  box-shadow: var(--ace-shadow);
}

.ace-client-panel:first-child:nth-last-child(n + 2) {
  grid-row: span 2;
  min-height: 360px;
}

.ace-client-panel:only-child {
  grid-column: 1 / -1;
}

.ace-client-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ace-line);
}

.ace-client-panel > header h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
}

.ace-client-panel > header h2 > i {
  color: var(--ace-primary);
}

.ace-client-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ace-primary);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.ace-client-panel__body {
  min-width: 0;
  padding: 16px;
  color: var(--ace-muted);
  font-size: .88rem;
}

.ace-client-panel__body .table-responsive {
  margin: -16px;
  border: 0;
  border-radius: 0;
}

.ace-client-panel__list {
  display: grid;
}

.ace-client-panel__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  color: #34405b;
  border-bottom: 1px solid #f0f1f5;
  font-size: .86rem;
  text-decoration: none;
}

.ace-client-panel__item:last-child {
  border-bottom: 0;
}

.ace-client-panel__item:hover {
  color: var(--ace-primary);
  background: #faf9ff;
}

.ace-client-panel[data-panel-name="Active Products/Services"] .div-service-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ace-client-panel[data-panel-name="Active Products/Services"] .div-service-status {
  width: auto !important;
  justify-self: start;
}

.ace-client-panel[data-panel-name="Active Products/Services"] .div-service-name {
  display: grid;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.ace-client-panel[data-panel-name="Active Products/Services"] .div-service-name > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-client-panel[data-panel-name="Active Products/Services"] .div-service-buttons {
  justify-self: end;
}

.ace-client-panel__item > span {
  display: flex;
  align-items: center;
}

.ace-client-panel__item > span > i {
  width: 24px;
  color: #9d8efb;
  font-size: .52rem;
}

.ace-client-panel > footer {
  padding: 12px 16px;
  border-top: 1px solid var(--ace-line);
  font-size: .82rem;
  text-align: center;
}

.ace-client-empty {
  display: grid;
  justify-items: center;
  min-height: 250px;
  padding: 40px 20px;
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  text-align: center;
}

.ace-client-empty > i {
  display: grid;
  width: 56px;
  height: 56px;
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
  border-radius: 8px;
  place-items: center;
}

/* WHMCS functional pages */
.logincontainer {
  width: min(100%, 460px);
  margin: 30px auto;
  padding: 24px;
}

.logincontainer .header-lined h1 {
  font-size: 1.45rem;
}

.header-lined {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ace-line);
}

.header-lined h1 {
  margin: 0;
  font-size: 1.55rem;
}

.tiles,
.client-home-cards {
  display: grid;
  gap: 14px;
}

.tiles .tile {
  color: var(--ace-text);
  background: var(--ace-surface);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  box-shadow: var(--ace-shadow);
}

.tiles .tile .stat {
  color: var(--ace-text);
  font-variant-numeric: tabular-nums;
}

.tiles .tile .title {
  color: var(--ace-muted);
}

.product-details,
.domain-details {
  min-width: 0;
}

.product-details .product-status,
.status {
  border-radius: 8px;
  font-weight: 700;
}

.service-ribbon {
  border-radius: 0 0 8px 8px;
}

.invoice-container {
  max-width: 100%;
  padding: 24px;
}

.invoice-container .invoice-status {
  border-radius: 8px;
}

.ticket-reply {
  margin-bottom: 14px;
  overflow: hidden;
}

.ticket-reply .user,
.ticket-reply .message {
  color: var(--ace-text);
  background: var(--ace-surface);
}

.ticket-reply.staff .user,
.ticket-reply.staff .message {
  background: #f3f7ff;
}

.ticket-reply .rating,
.ticket-reply .date {
  color: var(--ace-muted);
}

.md-editor {
  border-color: var(--ace-line);
  border-radius: 8px;
}

.md-editor > .md-header,
.md-editor > .md-footer {
  background: var(--ace-surface-subtle);
  border-color: var(--ace-line);
}

.kb-article-content,
.announcement-single {
  max-width: 78ch;
}

.list-group-item {
  color: #3c4861;
  background: var(--ace-surface);
  border-color: var(--ace-line);
}

.list-group-item-action:hover {
  color: var(--ace-primary);
  background: #faf9ff;
}

.item-selector .item {
  display: block;
  margin-bottom: 10px;
  padding: 10px 12px;
  color: #435069;
  background: var(--ace-surface-subtle);
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  text-decoration: none;
}

.item-selector .item.active {
  color: var(--ace-primary);
  background: var(--ace-primary-soft);
  border-color: #c6bef9;
}

.cc-input-container,
.payment-methods,
.payment-form,
.gateway-config,
.stripe-payment-form,
iframe {
  opacity: 1;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

[aria-busy="true"] {
  cursor: progress;
}

@media (max-width: 1199px) {
  .ace-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ace-client-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .ace-app-shell {
    grid-template-columns: 1fr;
  }

  .ace-app-rail {
    display: none;
  }

  .ace-page-body {
    padding: 0 14px 96px;
  }

  .ace-page-frame,
  .ace-page-frame:has(.ace-page-context) {
    grid-template-columns: 1fr;
  }

  .ace-page-context {
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ace-line);
  }

  .ace-page-context .panel,
  .ace-page-context .card,
  .ace-page-context .panel-sidebar {
    flex: 0 0 230px;
    margin: 0;
  }

  .ace-functional-heading {
    align-items: flex-start;
  }

  .ace-page-content {
    padding: 24px;
  }

  .ace-page-content > div[style*="#ffffd2"] {
    margin: -24px -24px 20px !important;
  }

  .ace-mobile-nav {
    position: fixed;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    z-index: 1080;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px;
    background: rgb(255 255 255 / 96%);
    border: 1px solid var(--ace-line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgb(25 32 64 / 14%);
  }

  .ace-mobile-nav a {
    display: flex;
    min-width: 0;
    min-height: 52px;
    padding: 5px 2px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #657087;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .ace-mobile-nav a:hover {
    color: var(--ace-primary);
    background: var(--ace-primary-soft);
  }

  .ace-mobile-nav i {
    margin-bottom: 4px;
    font-size: .95rem;
  }

  .ace-home-hero__copy {
    width: 60%;
    padding: 40px;
  }

  .ace-client-panels {
    grid-template-columns: 1fr;
  }

  .ace-client-panel:first-child:nth-last-child(n + 2) {
    grid-row: auto;
    min-height: 0;
  }
}

@media (max-width: 639px) {
  .ace-page-body {
    padding: 0 8px 92px;
  }

  .ace-page-frame {
    min-height: calc(100dvh - 74px);
  }

  .ace-page-content {
    padding: 16px 14px;
  }

  .ace-page-content > div[style*="#ffffd2"] {
    margin: -16px -14px 16px !important;
  }

  .ace-page-frame--homepage .ace-page-content {
    padding: 10px;
  }

  .ace-functional-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ace-functional-heading .btn {
    align-self: flex-start;
  }

  .ace-page-frame--homepage .ace-page-content > div[style*="#ffffd2"] {
    margin: -10px -10px 14px !important;
  }

  .ace-home-product-grid,
  .ace-client-stats,
  .ace-client-panels {
    grid-template-columns: 1fr;
  }

  .ace-client-surface {
    padding: 18px 14px;
  }

  .ace-client-stat {
    grid-template-columns: 50px minmax(0, 1fr) 18px;
    min-height: 120px;
    padding: 16px;
  }

  .ace-client-stat__icon {
    width: 50px;
    height: 50px;
  }

  .ace-client-panel__link span {
    display: none;
  }

  .table th,
  .table td {
    padding: 11px 10px;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    text-align: left;
  }

  .modal-dialog {
    margin: 8px;
  }
}

/* Homepage-only claymorphism. Other client-area pages keep the base theme. */
html.ace-clay-root {
  background: #262323;
}

body.ace-clay-home-page {
  --home-clay-bg: #262323;
  --home-clay-surface: #403d3e;
  --home-clay-accent: #fffcd0;
  --home-clay-accent-deep: #ddd4a4;
  --home-clay-text: #fffbe0;
  --home-clay-muted: #d8d2d3;
  --home-clay-shadow:
    0 18px 42px rgb(0 0 0 / 30%),
    inset 0 1px 0 rgb(255 255 255 / 9%),
    inset 0 -1px 0 rgb(0 0 0 / 22%);
  --home-clay-shadow-small:
    0 9px 22px rgb(0 0 0 / 26%),
    inset 0 1px 0 rgb(255 255 255 / 8%);
  color: var(--home-clay-text);
  background: var(--home-clay-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.ace-clay-home-page .ace-app-shell,
body.ace-clay-home-page .ace-app-main,
body.ace-clay-home-page .ace-page-body {
  background: var(--home-clay-bg);
}

body.ace-clay-home-page .ace-app-shell {
  grid-template-columns: 290px minmax(0, 1fr);
}

body.ace-clay-home-page .ace-app-rail {
  top: 16px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  margin: 16px;
  padding: 32px 20px 22px;
  color: var(--home-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 32px;
  box-shadow: var(--home-clay-shadow);
}

body.ace-clay-home-page .ace-app-brand,
body.ace-clay-home-page .ace-app-brand strong {
  color: var(--home-clay-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

body.ace-clay-home-page .ace-app-menu {
  gap: 8px;
}

body.ace-clay-home-page .ace-app-menu a,
body.ace-clay-home-page .ace-app-menu-group > summary {
  min-height: 56px;
  color: #eee8d4;
  border-radius: 24px;
  transition:
    color 200ms,
    background 200ms,
    transform 200ms;
}

body.ace-clay-home-page .ace-app-menu a:hover,
body.ace-clay-home-page .ace-app-menu a:focus-visible,
body.ace-clay-home-page .ace-app-menu-group > summary:hover,
body.ace-clay-home-page .ace-app-menu-group > summary:focus-visible {
  color: var(--home-clay-accent);
  background: #454243;
  box-shadow: var(--home-clay-shadow-small);
  transform: scale(.98);
}

body.ace-clay-home-page .ace-app-menu a.is-active,
body.ace-clay-home-page .ace-app-menu-group > summary.is-active {
  color: var(--home-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--home-clay-accent-deep));
  box-shadow:
    8px 8px 16px rgb(0 0 0 / 36%),
    inset 4px 4px 8px rgb(255 255 255 / 55%),
    inset -3px -3px 7px rgb(96 82 42 / 16%);
}

body.ace-clay-home-page .ace-app-menu .ace-app-submenu a {
  min-height: 38px;
  border-radius: 18px;
}

body.ace-clay-home-page .ace-app-account {
  min-height: 88px;
  color: var(--home-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 26px;
  box-shadow: var(--home-clay-shadow-small);
}

body.ace-clay-home-page .ace-app-account:hover,
body.ace-clay-home-page .ace-app-account:focus-visible {
  color: var(--home-clay-accent);
  background: linear-gradient(145deg, #504c4d, #383536);
  border-color: transparent;
  transform: scale(.98);
}

body.ace-clay-home-page .ace-app-avatar {
  color: var(--home-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--home-clay-accent-deep));
  box-shadow:
    inset 3px 3px 6px rgb(255 255 255 / 58%),
    inset -2px -2px 5px rgb(96 82 42 / 18%);
}

body.ace-clay-home-page .ace-app-account__copy strong {
  color: var(--home-clay-text);
}

body.ace-clay-home-page .ace-app-account__copy small {
  color: var(--home-clay-muted) !important;
}

body.ace-clay-home-page .ace-app-logout {
  color: var(--home-clay-accent);
}

body.ace-clay-home-page .ace-page-body {
  padding: 16px 20px 34px 4px;
}

body.ace-clay-home-page .ace-page-frame--homepage {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.ace-clay-home-page .ace-page-frame--homepage .ace-page-content {
  padding: 12px 28px 44px;
}

body.ace-clay-home-page .ace-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7.9fr) minmax(0, 4.1fr);
  align-items: stretch;
  min-height: 510px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 50%, rgb(255 238 163 / 7%), transparent 34%),
    linear-gradient(145deg, #403c3d 0%, #2d2a2b 58%, #242122 100%);
  border: 1px solid rgb(255 250 214 / 8%);
  border-radius: 32px;
  box-shadow: var(--home-clay-shadow);
  isolation: isolate;
}

body.ace-clay-home-page .ace-home-hero::before {
  position: absolute;
  inset: -3%;
  z-index: 0;
  background:
    radial-gradient(circle at 7% 13%, rgb(255 250 219 / 72%) 0 1px, transparent 1.6px),
    radial-gradient(circle at 16% 71%, rgb(225 211 170 / 55%) 0 1.4px, transparent 2px),
    radial-gradient(circle at 23% 28%, rgb(255 224 155 / 44%) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 31% 89%, rgb(255 250 219 / 68%) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 39% 9%, rgb(225 211 170 / 40%) 0 .7px, transparent 1.3px),
    radial-gradient(circle at 47% 47%, rgb(255 250 219 / 64%) 0 1px, transparent 1.6px),
    radial-gradient(circle at 56% 82%, rgb(255 224 155 / 48%) 0 1.5px, transparent 2.1px),
    radial-gradient(circle at 64% 18%, rgb(255 250 219 / 78%) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 72% 66%, rgb(225 211 170 / 48%) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 79% 37%, rgb(255 224 155 / 42%) 0 .7px, transparent 1.3px),
    radial-gradient(circle at 86% 91%, rgb(255 250 219 / 62%) 0 1px, transparent 1.6px),
    radial-gradient(circle at 94% 22%, rgb(225 211 170 / 52%) 0 1.4px, transparent 2px),
    radial-gradient(circle at 11% 43%, rgb(255 250 219 / 48%) 0 .7px, transparent 1.3px),
    radial-gradient(circle at 35% 63%, rgb(255 224 155 / 54%) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 68% 96%, rgb(255 250 219 / 72%) 0 .9px, transparent 1.5px),
    radial-gradient(circle at 91% 55%, rgb(225 211 170 / 46%) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 24% 52%, rgb(115 96 63 / 10%), transparent 27%),
    radial-gradient(circle at 63% 42%, rgb(136 108 64 / 18%), transparent 24%),
    radial-gradient(circle at 48% 61%, rgb(231 195 102 / 12%), transparent 32%);
  background-repeat: no-repeat;
  content: "";
  opacity: .7;
  pointer-events: none;
  animation: ace-home-star-drift 15s ease-in-out infinite alternate;
}

body.ace-clay-home-page .ace-home-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: auto;
  min-width: 0;
  padding: 52px 6px 48px 28px;
  flex-direction: column;
  justify-content: center;
}

body.ace-clay-home-page .ace-home-hero h1 {
  max-width: 22ch;
  margin: 0 0 18px;
  color: var(--home-clay-accent);
  font-family: inherit;
  font-size: 3.3rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

body.ace-clay-home-page .ace-home-hero h1 span {
  color: #e6d79e;
}

body.ace-clay-home-page .ace-home-hero__copy > p {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  color: var(--home-clay-muted) !important;
  font-size: .97rem;
  line-height: 1.7;
  white-space: nowrap;
}

body.ace-clay-home-page .ace-home-hero__copy > p strong {
  color: var(--home-clay-accent);
  font-weight: 700;
}

body.ace-clay-home-page .ace-home-hero__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-width: 168px;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 25px;
  color: var(--home-clay-bg);
  background: linear-gradient(180deg, #fffedc, var(--home-clay-accent-deep));
  border: 0;
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgb(0 0 0 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 60%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 200ms,
    transform 200ms;
}

body.ace-clay-home-page .ace-home-hero__cta i {
  font-size: .78rem;
}

body.ace-clay-home-page .ace-home-hero__cta:hover,
body.ace-clay-home-page .ace-home-hero__cta:focus-visible {
  color: var(--home-clay-bg);
  background: linear-gradient(180deg, #fffedc, #e5dcae);
  box-shadow:
    0 7px 18px rgb(0 0 0 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 60%);
  transform: translateY(-1px);
}

body.ace-clay-home-page .ace-home-hero__cta:active {
  transform: translateY(1px) scale(.98);
}

body.ace-clay-home-page .ace-home-globe {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 510px;
  overflow: visible;
  isolation: isolate;
}

body.ace-clay-home-page .ace-home-globe__core {
  position: absolute;
  bottom: 105px;
  left: 50%;
  z-index: 2;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 50%;
  transform: translateX(-50%);
}

body.ace-clay-home-page #network-globe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
  touch-action: none;
}

body.ace-clay-home-page #network-globe:active {
  cursor: grabbing;
}

body.ace-clay-home-page #network-globe:focus-visible {
  outline: 3px solid rgb(255 252 208 / 60%);
  outline-offset: -6px;
}

body.ace-clay-home-page .ace-home-orbit {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgb(255 245 201 / 15%);
  border-radius: 50%;
  box-shadow: 0 0 34px rgb(225 202 123 / 4%), inset 0 0 22px rgb(255 244 190 / 2%);
  pointer-events: none;
  transform: translateX(-50%);
}

body.ace-clay-home-page .ace-home-orbit--ai {
  --size: min(360px, calc(100% - 112px));
  --duration: 24s;
  bottom: 75px;
  border-color: rgb(222 207 255 / 18%);
}

body.ace-clay-home-page .ace-home-orbit--platform {
  --size: min(460px, calc(100% - 80px));
  --duration: 34s;
  bottom: 25px;
  border-color: rgb(255 205 187 / 17%);
}

body.ace-clay-home-page .ace-home-orbit__slot {
  position: absolute;
  inset: 0;
  animation: ace-home-orbit-cw var(--duration) linear infinite;
  transform: rotate(var(--angle));
}

body.ace-clay-home-page .ace-home-orbit--ccw .ace-home-orbit__slot {
  animation-name: ace-home-orbit-ccw;
}

body.ace-clay-home-page .ace-home-orbit__chip {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #fff, #eeeae5);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  box-shadow:
    8px 10px 20px rgb(0 0 0 / 34%),
    0 0 18px rgb(255 239 166 / 9%),
    inset 4px 4px 9px rgb(255 255 255 / 82%),
    inset -4px -4px 8px rgb(83 70 53 / 12%);
  place-items: center;
  animation: ace-home-counter-cw var(--duration) linear infinite;
  transform: translate(-50%, -50%) rotate(var(--counter));
}

body.ace-clay-home-page .ace-home-orbit__chip::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgb(255 244 190 / 8%);
  border-radius: inherit;
  content: "";
}

body.ace-clay-home-page .ace-home-orbit__chip img {
  position: relative;
  z-index: 1;
  display: block;
  width: 25px;
  height: 25px;
}

body.ace-clay-home-page .ace-home-orbit--ccw .ace-home-orbit__chip {
  animation-name: ace-home-counter-ccw;
}

@keyframes ace-home-orbit-cw {
  from { transform: rotate(var(--angle)); }
  to { transform: rotate(calc(var(--angle) + 360deg)); }
}

@keyframes ace-home-orbit-ccw {
  from { transform: rotate(var(--angle)); }
  to { transform: rotate(calc(var(--angle) - 360deg)); }
}

@keyframes ace-home-counter-cw {
  from { transform: translate(-50%, -50%) rotate(var(--counter)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--counter) - 360deg)); }
}

@keyframes ace-home-counter-ccw {
  from { transform: translate(-50%, -50%) rotate(var(--counter)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--counter) + 360deg)); }
}

@keyframes ace-home-star-drift {
  from { transform: translate3d(-4px, 3px, 0) scale(1); }
  to { opacity: .9; transform: translate3d(9px, -6px, 0) scale(1.025); }
}

body.ace-clay-home-page .ace-home-products {
  padding-top: 36px;
}

body.ace-clay-home-page .ace-section-heading h2,
body.ace-clay-home-page .ace-section-heading > a {
  color: var(--home-clay-accent);
}

body.ace-clay-home-page .ace-section-heading h2 {
  font-family: inherit;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

body.ace-clay-home-page .ace-section-heading > a {
  min-height: 44px;
  padding-inline: 4px;
}

body.ace-clay-home-page .ace-home-product-grid {
  gap: 20px;
  margin-top: 18px;
}

body.ace-clay-home-page .ace-home-product-card {
  min-height: 330px;
  padding: 20px;
  color: var(--home-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 28px;
  box-shadow: var(--home-clay-shadow);
}

body.ace-clay-home-page .ace-home-product-card__icon {
  width: 58px;
  height: 58px;
  color: var(--home-clay-accent);
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border-radius: 20px;
  box-shadow: var(--home-clay-shadow-small);
}

body.ace-clay-home-page .ace-home-product-card__icon.ace-region-flag {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 18px;
  box-shadow: 7px 9px 14px rgb(0 0 0 / 38%), inset 7px 6px 10px rgb(255 255 255 / 25%), inset -8px -7px 12px rgb(0 0 0 / 30%);
  transform: perspective(180px) rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 200ms;
}

body.ace-clay-home-page .ace-home-product-card__icon.ace-region-flag::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 31% 24%, rgb(255 255 255 / 42%), transparent 25%), linear-gradient(135deg, rgb(255 255 255 / 16%), transparent 45%, rgb(0 0 0 / 18%));
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

body.ace-clay-home-page .ace-home-product-card:hover .ace-region-flag {
  transform: perspective(180px) rotateY(-3deg) rotateX(1deg) translateY(-1px);
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--hk {
  background: linear-gradient(145deg, #f04349, #b70f20);
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--hk::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  color: #fff;
  content: "✿";
  font-size: var(--ace-flag-mark-size, 1.8rem);
  line-height: 1;
  place-items: center;
  text-shadow: 0 1px 2px rgb(0 0 0 / 22%);
  transform: rotate(-12deg);
}

body.ace-clay-store-page #order-standard_cart .ace-store-region__flag {
  --ace-flag-mark-size: 1rem;
}

body.ace-clay-store-page #order-standard_cart .ace-store-group__icon {
  --ace-flag-mark-size: 2.75rem;
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--jp {
  background: radial-gradient(circle at 50% 50%, #c91f32 0 27%, transparent 28%), #f6f3e9;
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--us {
  background: repeating-linear-gradient(to bottom, #b22234 0 7.7%, #f6f2e8 7.7% 15.4%);
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--us::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 54%;
  background: radial-gradient(circle, #fff 0 1px, transparent 1.2px) #3c3b6e;
  background-size: 7px 7px;
  content: "";
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--de {
  background: linear-gradient(to bottom, #1d1d1d 0 33.33%, #c52b34 33.33% 66.66%, #e5bc45 66.66%);
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--sg {
  background: linear-gradient(to bottom, #df3443 0 50%, #f6f3e9 50%);
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--sg::before {
  position: absolute;
  top: 9%;
  left: 14%;
  z-index: 1;
  width: 32%;
  height: 32%;
  background: #fff;
  border-radius: 50%;
  content: "";
  -webkit-mask: radial-gradient(circle at 72% 45%, transparent 0 48%, #000 50%);
  mask: radial-gradient(circle at 72% 45%, transparent 0 48%, #000 50%);
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--uk {
  background:
    linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(transparent 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(34deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(-34deg, transparent 44%, #fff 44% 56%, transparent 56%),
    #24457e;
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--uk::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 44%, #c73343 44% 56%, transparent 56%),
    linear-gradient(transparent 44%, #c73343 44% 56%, transparent 56%);
  content: "";
}

:is(body.ace-clay-home-page, body.ace-clay-store-page #order-standard_cart) .ace-region-flag--other {
  color: var(--home-clay-accent);
  background: linear-gradient(145deg, #514e4f, #302d2e);
}

body.ace-clay-home-page .ace-home-product-card small,
body.ace-clay-home-page .ace-home-product-card > p {
  color: var(--home-clay-muted) !important;
}

body.ace-clay-home-page .ace-home-product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--home-clay-accent);
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.ace-clay-home-page .ace-home-product-card > p {
  font-size: .88rem;
}

body.ace-clay-home-page .ace-home-product-card > ul {
  color: #e7e0d3;
}

body.ace-clay-home-page .ace-home-product-card > ul i {
  color: var(--home-clay-accent);
}

body.ace-clay-home-page .ace-home-product-card > footer strong {
  color: var(--home-clay-accent);
}

body.ace-clay-home-page .ace-home-product-card > footer a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 96px;
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  color: var(--home-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--home-clay-accent-deep));
  border: 0;
  border-radius: 16px;
  box-shadow:
    8px 8px 16px rgb(0 0 0 / 36%),
    inset 4px 4px 8px rgb(255 255 255 / 55%),
    inset -3px -3px 7px rgb(96 82 42 / 16%);
  transition:
    color 200ms,
    transform 200ms;
}

body.ace-clay-home-page .ace-home-product-card > footer a span {
  font-size: .82rem;
  font-weight: 750;
  white-space: nowrap;
}

body.ace-clay-home-page .ace-home-product-card > footer a:hover,
body.ace-clay-home-page .ace-home-product-card > footer a:focus-visible {
  color: var(--home-clay-bg);
  background: linear-gradient(145deg, #fffedc, #e5dcae);
  box-shadow:
    5px 5px 10px rgb(0 0 0 / 36%),
    inset 5px 5px 9px rgb(255 255 255 / 48%),
    inset -3px -3px 7px rgb(96 82 42 / 20%);
  transform: scale(.94);
}

body.ace-clay-home-page :focus-visible {
  outline: 3px solid rgb(255 252 208 / 50%);
  outline-offset: 3px;
}

@media (max-width: 1279px) {
  body.ace-clay-home-page .ace-app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  body.ace-clay-home-page .ace-app-rail {
    margin-right: 8px;
  }

  body.ace-clay-home-page .ace-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ace-clay-home-page .ace-home-hero__copy {
    width: auto;
    padding: 42px 38px;
  }

  body.ace-clay-home-page .ace-home-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 1023px) {
  body.ace-clay-home-page .ace-app-shell {
    grid-template-columns: 1fr;
  }

  body.ace-clay-home-page .ace-page-body {
    padding: 0 14px 96px;
  }

  body.ace-clay-home-page .ace-page-frame--homepage .ace-page-content {
    padding: 18px 10px 38px;
  }

  body.ace-clay-home-page .ace-home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.ace-clay-home-page .ace-home-hero__copy {
    width: auto;
    padding: 42px 32px;
  }

  body.ace-clay-home-page .ace-home-globe {
    min-height: 450px;
  }

  body.ace-clay-home-page .ace-home-globe__core {
    bottom: 100px;
    left: 50%;
    width: 250px;
    height: 250px;
  }

  body.ace-clay-home-page .ace-home-orbit {
    left: 50%;
  }

  body.ace-clay-home-page .ace-home-orbit--ai {
    --size: 310px;
    bottom: 70px;
  }

  body.ace-clay-home-page .ace-home-orbit--platform {
    --size: 410px;
    bottom: 20px;
  }

  body.ace-clay-home-page .ace-home-orbit__chip {
    width: 46px;
    height: 46px;
  }

  body.ace-clay-home-page .ace-mobile-nav {
    background: linear-gradient(145deg, #494647, #343132);
    border: 0;
    border-radius: 26px;
    box-shadow: var(--home-clay-shadow);
  }

  body.ace-clay-home-page .ace-mobile-nav a {
    color: #e8e1d3;
    border-radius: 20px;
  }

  body.ace-clay-home-page .ace-mobile-nav a:hover,
  body.ace-clay-home-page .ace-mobile-nav a.is-active {
    color: var(--home-clay-bg);
    background: linear-gradient(145deg, #fffedc, var(--home-clay-accent-deep));
  }
}

@media (max-width: 639px) {
  body.ace-clay-home-page .ace-page-body {
    padding: 0 8px 90px;
  }

  body.ace-clay-home-page .ace-page-frame--homepage .ace-page-content {
    padding: 10px 0 32px;
  }

  body.ace-clay-home-page .ace-home-hero {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 46px);
    border-radius: 28px;
  }

  body.ace-clay-home-page .ace-home-hero__copy {
    width: auto;
    padding: 26px 20px;
  }

  body.ace-clay-home-page .ace-home-globe {
    min-height: 390px;
  }

  body.ace-clay-home-page .ace-home-globe__core {
    bottom: 85px;
    width: 220px;
    height: 220px;
  }

  body.ace-clay-home-page .ace-home-orbit--ai {
    --size: min(270px, calc(100% - 88px));
    bottom: 85px;
  }

  body.ace-clay-home-page .ace-home-orbit--platform {
    --size: min(350px, calc(100% - 56px));
    bottom: 80px;
  }

  body.ace-clay-home-page .ace-home-orbit__chip {
    width: 42px;
    height: 42px;
  }

  body.ace-clay-home-page .ace-home-orbit__chip img {
    width: 23px;
    height: 23px;
  }

  body.ace-clay-home-page .ace-home-hero h1 {
    max-width: 13ch;
    margin: 0 0 16px;
    font-size: 2.4rem;
  }

  body.ace-clay-home-page .ace-home-hero__copy > p {
    max-width: 100%;
    font-size: 1rem;
  }

  body.ace-clay-home-page .ace-home-product-grid {
    grid-template-columns: none;
    grid-auto-columns: min(82vw, 320px);
    grid-auto-flow: column;
    gap: 14px;
    padding: 4px 48px 14px 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
  }

  body.ace-clay-home-page .ace-home-product-card {
    min-height: 320px;
    border-radius: 24px;
    scroll-snap-align: start;
  }

  body.ace-clay-home-page .ace-home-products .ace-section-heading {
    padding-inline: 20px;
  }

  body.ace-clay-home-page #network-globe {
    touch-action: pan-y;
  }
}

/* Clay client pages. */
body.ace-clay-client-page {
  --client-clay-bg: #262323;
  --client-clay-surface: #403d3e;
  --client-clay-accent: #fffcd0;
  --client-clay-accent-deep: #ddd4a4;
  --client-clay-text: #fffbe0;
  --client-clay-muted: #d1cbcc;
  --client-clay-shadow:
    12px 12px 24px rgb(0 0 0 / 38%),
    inset 6px 6px 12px rgb(255 255 255 / 8%),
    inset -4px -4px 8px rgb(0 0 0 / 20%);
  --client-clay-shadow-small:
    7px 7px 14px rgb(0 0 0 / 38%),
    inset 3px 3px 7px rgb(255 255 255 / 9%),
    inset -3px -3px 6px rgb(0 0 0 / 22%);
  color: var(--client-clay-text);
  background: var(--client-clay-bg);
  font-family: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ace-clay-client-page .ace-app-shell,
.ace-clay-client-page .ace-app-main,
.ace-clay-client-page .ace-page-body {
  background: var(--client-clay-bg);
}

.ace-clay-client-page .ace-app-shell {
  grid-template-columns: 290px minmax(0, 1fr);
}

.ace-clay-client-page .ace-app-rail {
  top: 16px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  margin: 16px;
  padding: 32px 20px 22px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 32px;
  box-shadow: var(--client-clay-shadow);
}

.ace-clay-client-page .ace-app-brand,
.ace-clay-client-page .ace-app-brand strong {
  color: var(--client-clay-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.ace-clay-client-page .ace-app-menu {
  gap: 8px;
}

.ace-clay-client-page .ace-app-menu a,
.ace-clay-client-page .ace-app-menu-group > summary {
  min-height: 56px;
  color: #eee8d4;
  border-radius: 24px;
  transition:
    color 200ms,
    background 200ms,
    transform 200ms;
}

.ace-clay-client-page .ace-app-menu a:hover,
.ace-clay-client-page .ace-app-menu a:focus-visible,
.ace-clay-client-page .ace-app-menu-group > summary:hover,
.ace-clay-client-page .ace-app-menu-group > summary:focus-visible {
  color: var(--client-clay-accent);
  background: #454243;
  box-shadow: var(--client-clay-shadow-small);
  transform: scale(.98);
}

.ace-clay-client-page .ace-app-menu > a.is-active {
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  box-shadow:
    8px 8px 16px rgb(0 0 0 / 36%),
    inset 4px 4px 8px rgb(255 255 255 / 55%),
    inset -3px -3px 7px rgb(96 82 42 / 16%);
}

.ace-clay-client-page .ace-app-menu-group[open] {
  padding: 5px;
  background: linear-gradient(145deg, #494647, #343132);
  border-radius: 24px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-app-menu-group > summary.is-active {
  color: var(--client-clay-accent);
  background: transparent;
}

.ace-clay-client-page .ace-app-submenu {
  padding: 3px 0 7px 14px;
}

.ace-clay-client-page .ace-app-menu .ace-app-submenu a {
  min-height: 38px;
  border-radius: 18px;
}

.ace-clay-client-page .ace-app-menu .ace-app-submenu a.is-active {
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  box-shadow:
    5px 5px 10px rgb(0 0 0 / 34%),
    inset 3px 3px 6px rgb(255 255 255 / 52%),
    inset -2px -2px 5px rgb(96 82 42 / 16%);
}

.ace-clay-client-page .ace-app-account {
  min-height: 88px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 26px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-app-account:hover,
.ace-clay-client-page .ace-app-account:focus-visible {
  color: var(--client-clay-accent);
  background: linear-gradient(145deg, #504c4d, #383536);
  border-color: transparent;
  transform: scale(.98);
}

.ace-clay-client-page .ace-app-avatar {
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  box-shadow:
    inset 3px 3px 6px rgb(255 255 255 / 58%),
    inset -2px -2px 5px rgb(96 82 42 / 18%);
}

.ace-clay-client-page .ace-app-account__copy strong {
  color: var(--client-clay-text);
}

.ace-clay-client-page .ace-app-account__copy small {
  color: var(--client-clay-muted) !important;
}

.ace-clay-client-page .ace-app-logout {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .ace-page-body {
  padding: 16px 20px 34px 4px;
}

.ace-clay-client-page .ace-page-frame {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ace-clay-client-page .ace-page-content {
  padding: 24px 28px 44px;
}

.ace-clay-client-page .ace-functional-heading {
  display: flex !important;
  margin-bottom: 20px;
}

.ace-clay-client-page .ace-functional-heading h1 {
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 1.8rem;
  font-weight: 650;
}

.ace-clay-client-page .ace-functional-heading p {
  color: var(--client-clay-muted) !important;
}

.ace-clay-client-page .ace-page-frame--clientareaproducts,
.ace-clay-client-page .ace-page-frame--clientareainvoices {
  overflow: hidden;
  background: linear-gradient(145deg, #403d3e, #302e2f);
  border-radius: 32px;
  box-shadow: var(--client-clay-shadow);
}

.ace-clay-client-page .ace-page-frame--clientareaproducts .ace-functional-heading > .btn {
  display: none;
}

.ace-clay-client-page .ace-page-frame--clientareahome .ace-page-content {
  padding: 0;
}

.ace-clay-client-page .ace-client-surface {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  padding: 20px 28px 36px;
}

.ace-clay-client-page .ace-client-stats {
  gap: 20px;
  margin-bottom: 26px;
}

.ace-clay-client-page .ace-client-stat {
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  min-height: 158px;
  padding: 22px 18px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 30px;
  box-shadow: var(--client-clay-shadow);
  transition:
    color 200ms,
    transform 200ms;
}

.ace-clay-client-page .ace-client-stat:hover,
.ace-clay-client-page .ace-client-stat:focus-visible {
  color: var(--client-clay-accent);
  border-color: transparent;
  box-shadow:
    8px 8px 16px rgb(0 0 0 / 40%),
    inset 6px 6px 12px rgb(255 255 255 / 10%),
    inset -4px -4px 8px rgb(0 0 0 / 24%);
  transform: scale(.98);
}

.ace-clay-client-page .ace-client-stat__icon,
.ace-clay-client-page .ace-client-stat--green .ace-client-stat__icon,
.ace-clay-client-page .ace-client-stat--blue .ace-client-stat__icon,
.ace-clay-client-page .ace-client-stat--amber .ace-client-stat__icon,
.ace-clay-client-page .ace-client-stat--violet .ace-client-stat__icon {
  width: 64px;
  height: 64px;
  color: var(--client-clay-accent);
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border-radius: 22px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-client-stat__content small {
  color: #eee8d4 !important;
}

.ace-clay-client-page .ace-client-stat__content strong,
.ace-clay-client-page .ace-client-stat__content > span,
.ace-clay-client-page .ace-client-stat > .fa-arrow-right {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .ace-client-panels {
  gap: 20px;
}

.ace-clay-client-page .ace-client-panel {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 30px;
  box-shadow: var(--client-clay-shadow);
}

.ace-clay-client-page .ace-client-panel > header {
  border-color: rgb(255 252 208 / 14%);
}

.ace-clay-client-page .ace-client-panel > header h2,
.ace-clay-client-page .ace-client-panel > header h2 > i,
.ace-clay-client-page .ace-client-panel__link {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .ace-client-panel__body {
  color: var(--client-clay-muted);
}

.ace-clay-client-page .ace-client-panel__item {
  min-height: 58px;
  color: #eee8d4;
  border-color: rgb(255 252 208 / 12%);
}

.ace-clay-client-page .ace-client-panel__item:hover,
.ace-clay-client-page .ace-client-panel__item:focus-visible {
  color: var(--client-clay-accent);
  background: rgb(255 252 208 / 5%);
}

.ace-clay-client-page .ace-client-panel__item > span > i {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .ace-client-panel .btn {
  min-height: 42px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-client-panel .btn:hover,
.ace-clay-client-page .ace-client-panel .btn:focus-visible {
  color: var(--client-clay-accent);
  transform: scale(.96);
}

.ace-clay-client-page .ace-client-panel > footer {
  color: var(--client-clay-accent);
  border-color: rgb(255 252 208 / 12%);
}

.ace-clay-client-page .ace-client-panel .badge-secondary {
  color: #f4edda;
  background: #5b5758;
}

.ace-clay-client-page
  :is(
    .ace-client-panel[data-panel-name="Recent Support Tickets"],
    .ace-client-panel[data-panel-name="Recent News"]
  )
  .ace-client-panel__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
}

.ace-dashboard-item__meta,
.ace-dashboard-news__date {
  justify-self: end;
  color: var(--client-clay-muted);
  font-size: .78rem;
  white-space: nowrap;
}

.ace-dashboard-status {
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow:
    4px 4px 8px rgb(0 0 0 / 25%),
    inset 2px 2px 4px rgb(255 255 255 / 10%);
  text-align: center;
}

.ace-dashboard-status.is-closed {
  color: #e8e2e3;
  background: linear-gradient(180deg, #777274, #555153);
}

.ace-dashboard-status.is-answered {
  color: #20351f;
  background: linear-gradient(180deg, #cce7b7, #87b86f);
}

.ace-dashboard-status.is-progress {
  color: #332d17;
  background: linear-gradient(180deg, #f0dea0, #c9ae5c);
}

.ace-dashboard-status.is-open {
  color: #ffe4e0;
  background: linear-gradient(180deg, #95615e, #754947);
}

.ace-clay-client-page .table-container,
.ace-clay-client-page .dataTables_wrapper {
  color: var(--client-clay-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ace-clay-client-page .dataTables_wrapper {
  padding-bottom: 0;
  overflow: visible;
}

.ace-clay-client-page .dataTables_wrapper > .row,
.ace-clay-client-page .dataTables_wrapper > .listtable > .row {
  padding: 10px 0;
}

.ace-clay-client-page .dataTables_wrapper .dataTables_info,
.ace-clay-client-page .dataTables_wrapper .dataTables_length,
.ace-clay-client-page .dataTables_wrapper .dataTables_filter {
  color: var(--client-clay-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--clientareaproducts,
    .ace-page-frame--clientareainvoices
  )
  .dataTables_info {
  display: none !important;
}

.ace-clay-client-page .dataTables_wrapper .dataTables_length label {
  color: var(--client-clay-muted) !important;
}

.ace-clay-client-page .dataTables_wrapper .dataTables_filter label {
  position: relative;
  display: inline-block;
  margin: 0;
  color: transparent;
  font-size: 0;
}

.ace-clay-client-page .dataTables_wrapper .dataTables_filter label::before {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 2px solid var(--client-clay-accent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateY(-62%);
}

.ace-clay-client-page .dataTables_wrapper .dataTables_filter label::after {
  position: absolute;
  top: calc(50% + 5px);
  left: 28px;
  z-index: 1;
  width: 7px;
  height: 2px;
  color: var(--client-clay-accent);
  background: currentcolor;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: left center;
}

.ace-clay-client-page .dataTables_wrapper input[type="search"] {
  width: 250px;
  min-height: 48px;
  padding: 10px 18px 10px 44px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 24px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 22%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
  font-size: .9rem;
}

.ace-clay-client-page .dataTables_wrapper input[type="search"]::placeholder {
  color: #aaa3a4;
  opacity: 1;
}

.ace-clay-client-page .dataTables_wrapper input[type="search"]:focus {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #4f4b4c, #373435);
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 24%),
    inset -4px -4px 8px rgb(255 255 255 / 8%),
    0 0 0 3px rgb(255 252 208 / 22%);
}

.ace-table-visibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  color: #eee8d4;
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--client-clay-shadow-small);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.ace-table-visibility:hover,
.ace-table-visibility:focus-visible,
.ace-table-visibility[aria-pressed="true"] {
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
}

.ace-clay-client-page .dataTables_wrapper .table-responsive {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) {
  border-collapse: separate;
  border-spacing: 0 8px;
  color: var(--client-clay-text);
  background: transparent;
  border: 0 !important;
  outline: 0;
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) thead th {
  padding: 16px 14px;
  color: #ddd6c9;
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  font-size: .82rem;
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) thead th:first-child {
  border-radius: 22px 0 0 22px;
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) thead th:last-child {
  border-radius: 0 22px 22px 0;
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) tbody tr {
  cursor: pointer;
  background: linear-gradient(145deg, #474445, #343132);
  border-radius: 22px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) tbody td {
  padding: 14px;
  color: #eee8d4;
  background: transparent;
  border: 0;
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) tbody td:first-child {
  border-radius: 22px 0 0 22px;
}

.ace-clay-client-page :is(.dataTables_wrapper .table, #tableServicesList, #tableInvoicesList) tbody td:last-child {
  border-radius: 0 22px 22px 0;
}

.ace-clay-client-page .dataTables_wrapper .table-hover tbody tr:hover td {
  color: var(--client-clay-accent);
  background: transparent;
}

.ace-clay-client-page .dataTables_wrapper .table-hover tbody tr:hover {
  background: linear-gradient(145deg, #514e4f, #393637);
}

.ace-clay-client-page #tableServicesList :is(th, td):first-child {
  display: none;
}

.ace-clay-client-page #tableServicesList :is(th, td):nth-child(2) {
  border-radius: 22px 0 0 22px;
}

.ace-clay-client-page #tableServicesList tbody td:nth-child(2) > a {
  color: #ff6fb5;
  font-weight: 700;
}

.ace-clay-client-page #tableServicesList .ace-service-ip {
  color: var(--client-clay-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ace-clay-client-page #tableServicesList tbody strong,
.ace-clay-client-page #tableInvoicesList tbody td:first-child {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .dataTables_wrapper .text-muted {
  color: #bdb6b7 !important;
}

.ace-clay-client-page .label.status,
.ace-clay-client-page .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  padding: 5px 10px;
  color: #f4edda;
  background: #5b5758;
  border-radius: 999px;
  box-shadow:
    4px 4px 8px rgb(0 0 0 / 28%),
    inset 2px 2px 4px rgb(255 255 255 / 9%);
  font-size: .82rem;
}

.ace-clay-client-page .label.status:is(.status-active, .status-paid, .status-completed) {
  color: #20351f;
  background: linear-gradient(180deg, #cce7b7, #87b86f);
}

.ace-clay-client-page .label.status:is(.status-unpaid, .status-overdue, .status-collections, .status-fraud) {
  color: #ffe4e0;
  background: linear-gradient(180deg, #95615e, #754947);
}

.ace-clay-client-page .label.status:is(.status-pending, .status-payment-pending, .status-draft) {
  color: #332d17;
  background: linear-gradient(180deg, #f0dea0, #c9ae5c);
}

.ace-clay-client-page .label.status.status-suspended {
  color: #3d280d;
  background: linear-gradient(180deg, #e9bc7d, #bf7f3e);
}

.ace-clay-client-page .label.status.status-refunded {
  color: #172f3d;
  background: linear-gradient(180deg, #b8dceb, #70a6bd);
}

.ace-clay-client-page .label.status:is(.status-terminated, .status-cancelled) {
  color: #e8e2e3;
  background: linear-gradient(180deg, #777274, #555153);
}

.ace-clay-client-page .status .textred {
  color: inherit !important;
}

.ace-clay-client-page .dataTables_wrapper .dataTables_length select {
  min-width: 72px;
  min-height: 42px;
  color: var(--client-clay-text);
  background: #403d3e;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .pagination {
  gap: 8px;
}

.ace-clay-client-page .pagination .page-link {
  min-width: 42px;
  min-height: 42px;
  color: #eee8d4;
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 16px !important;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .pagination .page-link:hover,
.ace-clay-client-page .pagination .page-link:focus-visible {
  color: var(--client-clay-accent);
  transform: scale(.94);
}

.ace-clay-client-page .pagination .page-item.active .page-link {
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  border-color: transparent;
}

.ace-clay-client-page :focus-visible {
  outline: 3px solid rgb(255 252 208 / 50%);
  outline-offset: 3px;
}

@media (max-width: 1279px) {
  .ace-clay-client-page .ace-app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .ace-clay-client-page .ace-app-rail {
    margin-right: 8px;
  }
}

@media (max-width: 1023px) {
  .ace-clay-client-page .ace-app-shell {
    grid-template-columns: 1fr;
  }

  .ace-clay-client-page .ace-page-body {
    padding: 0 14px 96px;
  }

  .ace-clay-client-page .ace-page-content {
    padding: 22px 18px 36px;
  }

  .ace-clay-client-page .ace-mobile-nav {
    background: linear-gradient(145deg, #494647, #343132);
    border: 0;
    border-radius: 26px;
    box-shadow: var(--client-clay-shadow);
  }

  .ace-clay-client-page .ace-mobile-nav a {
    color: #e8e1d3;
    border-radius: 20px;
  }

  .ace-clay-client-page .ace-mobile-nav a:hover,
  .ace-clay-client-page .ace-mobile-nav a.is-active {
    color: var(--client-clay-bg);
    background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  }

  .ace-clay-client-page #tableServicesList {
    min-width: 900px;
  }

  .ace-clay-client-page #tableInvoicesList {
    min-width: 680px;
  }
}

@media (max-width: 639px) {
  .ace-clay-client-page .ace-page-body {
    padding: 0 8px 90px;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproducts,
  .ace-clay-client-page .ace-page-frame--clientareainvoices {
    border-radius: 26px;
  }

  .ace-clay-client-page .ace-page-content {
    padding: 20px 12px 32px;
  }

  .ace-clay-client-page .ace-client-surface {
    padding: 14px 0 30px;
  }

  .ace-clay-client-page .ace-client-stats {
    gap: 16px;
  }

  .ace-clay-client-page .ace-client-stat {
    grid-template-columns: 56px minmax(0, 1fr) 18px;
    min-height: 142px;
    border-radius: 26px;
  }

  .ace-clay-client-page .ace-client-stat__icon,
  .ace-clay-client-page .ace-client-stat--green .ace-client-stat__icon,
  .ace-clay-client-page .ace-client-stat--blue .ace-client-stat__icon,
  .ace-clay-client-page .ace-client-stat--amber .ace-client-stat__icon,
  .ace-clay-client-page .ace-client-stat--violet .ace-client-stat__icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }

  .ace-clay-client-page .ace-client-panel {
    border-radius: 26px;
  }

  .ace-clay-client-page .ace-functional-heading {
    margin-bottom: 16px;
  }

  .ace-clay-client-page .ace-functional-heading h1 {
    font-size: 1.55rem;
  }

  .ace-clay-client-page .dataTables_wrapper .dataTables_filter,
  .ace-clay-client-page .dataTables_wrapper .dataTables_filter label,
  .ace-clay-client-page .dataTables_wrapper input[type="search"] {
    width: 100%;
  }

  .ace-clay-client-page .dataTables_wrapper .dataTables_filter {
    align-items: stretch;
    flex-direction: column;
  }

  .ace-table-visibility {
    width: 100%;
  }

  .ace-clay-client-page .pagination {
    gap: 5px;
  }

  .ace-clay-client-page .pagination .page-link {
    min-width: 38px;
    min-height: 38px;
  }

  .ace-clay-client-page .ace-page-frame--supportticketslist .listtable {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
}

/* Shared clay treatment for inherited WHMCS functional pages. */
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) {
  color: var(--client-clay-text);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .header-lined {
  border-color: rgb(255 252 208 / 14%);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .header-lined h1,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) h1,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) h2,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) h3,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) h4 {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) p,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .text-muted,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) small {
  color: var(--client-clay-muted) !important;
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) a {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .card,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .panel,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .invoice-container,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .ticket-reply,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .logincontainer {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 28px;
  box-shadow: var(--client-clay-shadow);
}

.ace-clay-client-page .ace-page-frame--user-profile .card + .card {
  margin-top: 24px;
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .card-header,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .card-footer,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .panel-heading,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .panel-footer {
  color: var(--client-clay-text);
  background: rgb(255 252 208 / 4%);
  border-color: rgb(255 252 208 / 12%);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) label,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .col-form-label {
  color: #eee8d4;
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .form-control,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) select.form-control,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .custom-select {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #343132, #454142);
  border: 0;
  border-radius: 18px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .form-control:focus,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .custom-select:focus {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #393637, #4a4647);
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%),
    0 0 0 3px rgb(255 252 208 / 22%);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .input-group-text {
  color: var(--client-clay-accent);
  background: #403d3e;
  border: 0;
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .btn-primary,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .btn-success,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .btn-info {
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  border: 0;
  border-radius: 18px;
  box-shadow:
    7px 7px 14px rgb(0 0 0 / 36%),
    inset 4px 4px 8px rgb(255 255 255 / 55%),
    inset -3px -3px 7px rgb(96 82 42 / 16%);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .btn-default,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .btn-secondary,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .btn-light {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .table-responsive {
  border: 0;
  border-radius: 24px;
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .table {
  color: var(--client-clay-text);
  background: transparent;
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .table th,
.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .table td {
  color: #eee8d4;
  background: rgb(255 252 208 / 3%);
  border-color: rgb(255 252 208 / 10%);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .table thead th {
  color: var(--client-clay-accent);
  background: #403d3e;
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .alert {
  color: #f5efdd;
  background: linear-gradient(145deg, #4b4849, #353233);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-page-frame:not(.ace-page-frame--clientareahome):not(.ace-page-frame--clientareaproducts):not(.ace-page-frame--clientareainvoices) .modal-content {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 28px;
  box-shadow: var(--client-clay-shadow);
}

/* Password and 2FA dialogs are mounted outside the page frame. */
.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) .modal-content {
  overflow: hidden;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border: 0;
  border-radius: 28px;
  box-shadow: var(--client-clay-shadow);
}

.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) :is(.modal-header, .modal-footer) {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #454243, #302d2e) !important;
  border-color: rgb(255 252 208 / 12%);
}

.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) .modal-body {
  color: #eee8d4;
  background: linear-gradient(145deg, #494647, #343132);
}

.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) :is(.modal-title, label, strong) {
  color: var(--client-clay-accent);
}

.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) .close {
  color: var(--client-clay-accent);
  opacity: .85;
  text-shadow: none;
}

.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) .form-control {
  min-height: 48px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #343132, #454142);
  border: 0;
  border-radius: 18px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) .btn {
  min-height: 42px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page :is(#modalGeneratePassword, #modalAjax) :is(.btn-primary, .modal-submit) {
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
}

.ace-clay-client-page #modalAjax .twofa-setup :is(.panel, .list-group-item) {
  color: #eee8d4;
  background: #403d3e;
  border-color: rgb(255 252 208 / 12%);
  border-radius: 18px;
}

/* Support tickets. */
.ace-clay-client-page
  .ace-page-frame--supportticketsubmit-steptwo
  select:is(.form-control, .custom-select) {
  min-height: 50px;
  padding-inline: 18px 44px;
  color-scheme: dark;
  font-size: 1rem;
  cursor: pointer;
}

.ace-clay-client-page
  .ace-page-frame--supportticketsubmit-steptwo
  select:is(.form-control, .custom-select)
  option {
  color: var(--client-clay-text);
  background: #3b3839;
}

.ace-clay-client-page
  .ace-page-frame--supportticketsubmit-steptwo
  select:is(.form-control, .custom-select)
  option:checked {
  color: var(--client-clay-bg);
  background: var(--client-clay-accent);
}

.ace-clay-client-page .ace-page-frame--supportticketslist #tableTicketsList th:first-child {
  width: 58%;
}

.ace-clay-client-page .ace-page-frame--supportticketslist #tableTicketsList td:first-child a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eee8d4;
  border-color: var(--client-clay-accent) !important;
}

.ace-clay-client-page .ace-page-frame--supportticketslist #tableTicketsList .ticket-number {
  color: var(--client-clay-accent);
  font-weight: 800;
  white-space: nowrap;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  :is(.EasyMDEContainer, .CodeMirror, .editor-toolbar, .editor-statusbar) {
  color: var(--client-clay-text);
  border-color: rgb(255 252 208 / 12%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .editor-toolbar {
  padding: 10px 12px;
  background: linear-gradient(145deg, #4b4849, #353233);
  border: 0;
  border-radius: 22px 22px 0 0;
  box-shadow:
    inset 3px 3px 7px rgb(255 255 255 / 6%),
    inset -4px -4px 8px rgb(0 0 0 / 22%);
  opacity: 1;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .editor-toolbar
  button {
  width: 38px;
  height: 38px;
  color: #eee8d4 !important;
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .editor-toolbar
  button:is(:hover, :focus-visible, .active) {
  color: var(--client-clay-bg) !important;
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .editor-toolbar
  i.separator {
  border-color: rgb(255 252 208 / 18%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .CodeMirror {
  min-height: 300px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #343132, #454142);
  border: 0;
  border-radius: 0 0 22px 22px;
  box-shadow:
    inset 5px 5px 10px rgb(0 0 0 / 24%),
    inset -4px -4px 8px rgb(255 255 255 / 6%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  :is(.CodeMirror-scroll, .CodeMirror-gutters, .editor-preview, .editor-preview-side) {
  color: var(--client-clay-text);
  background: #3b3839;
  border-color: rgb(255 252 208 / 12%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .CodeMirror-cursor {
  border-color: var(--client-clay-accent);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .CodeMirror-selected {
  background: rgb(255 252 208 / 18%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .editor-statusbar {
  padding: 8px 4px;
  color: var(--client-clay-muted);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor {
  overflow: hidden;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #343132, #454142);
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow:
    inset 5px 5px 10px rgb(0 0 0 / 24%),
    inset -4px -4px 8px rgb(255 255 255 / 6%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor
  > :is(.md-header, .md-footer) {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #4b4849, #353233);
  border: 0;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor:not(.md-fullscreen-mode)
  > .md-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 22px 22px 0 0;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor:not(.md-fullscreen-mode)
  > .md-header
  :is(.btn-group, .md-controls) {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor:not(.md-fullscreen-mode)
  > .md-header
  .md-controls {
  float: none;
  margin-left: auto;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor:not(.md-fullscreen-mode)
  > .md-header
  .md-control-fullscreen {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor
  :is(.md-input, .md-preview) {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px;
  color: var(--client-clay-text);
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  resize: none;
  box-shadow: none !important;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor:not(.md-fullscreen-mode)
  > .md-footer {
  min-height: 34px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 0 0 22px 22px;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor.active {
  border: 0;
  outline: 0;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .md-editor
  .md-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  margin: 3px;
  padding: 0;
  color: #eee8d4;
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .attachment-group {
  gap: 12px;
  overflow: visible;
  background: linear-gradient(145deg, #343132, #454142);
  border-radius: 20px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .custom-file-label {
  min-height: 48px;
  padding: 13px 18px;
  color: var(--client-clay-text);
  background: transparent;
  border: 0;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .custom-file-label::after {
  top: 4px;
  right: 4px;
  bottom: 4px;
  min-height: 40px;
  padding: 9px 18px;
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  border: 0;
  border-radius: 999px;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .custom-file-input:focus
  ~ .custom-file-label {
  border: 0;
  box-shadow: inset 0 0 0 3px rgb(255 252 208 / 24%);
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .attachment-group
  :is(.custom-file, .custom-file-label) {
  min-width: 0;
  border-radius: 20px;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  .attachment-group
  .input-group-append {
  flex: 0 0 auto;
  margin-left: 0;
}

.ace-clay-client-page
  :is(
    .ace-page-frame--supportticketsubmit-steptwo,
    .ace-page-frame--supportticketsubmit-customfields,
    .ace-page-frame--viewticket
  )
  #btnTicketAttachmentsAdd {
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 999px;
}

/* Affiliate program. */
.ace-affiliates {
  display: grid;
  gap: 24px;
}

.ace-affiliate-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ace-affiliate-stat,
.ace-affiliate-link,
.ace-affiliate-earnings {
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border-radius: 28px;
  box-shadow: var(--client-clay-shadow);
}

.ace-affiliate-stat {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 154px;
  padding: 24px;
}

.ace-affiliate-stat__icon {
  display: grid;
  width: 74px;
  height: 74px;
  color: var(--client-clay-accent);
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border-radius: 24px;
  box-shadow: var(--client-clay-shadow-small);
  font-size: 1.8rem;
  place-items: center;
}

.ace-affiliate-stat__copy {
  display: grid;
  gap: 7px;
}

.ace-affiliate-stat__copy strong {
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ace-affiliate-stat__copy small {
  color: #eee8d4 !important;
  font-size: .92rem;
  font-weight: 700;
}

.ace-affiliate-link {
  padding: 26px 30px;
}

.ace-affiliate-link h2,
.ace-affiliates__heading {
  margin: 0 0 16px;
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.45rem;
}

.ace-affiliate-link .form-control {
  min-height: 54px;
}

.ace-affiliate-earnings {
  padding: 28px 30px;
}

.ace-affiliate-earnings dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.ace-affiliate-earnings dl > div {
  min-width: 0;
  padding: 6px 24px;
}

.ace-affiliate-earnings dl > div + div {
  border-left: 1px solid rgb(255 252 208 / 14%);
}

.ace-affiliate-earnings dt {
  margin-bottom: 12px;
  color: var(--client-clay-muted);
  font-size: .82rem;
}

.ace-affiliate-earnings dd {
  margin: 0;
  color: var(--client-clay-accent);
  font-size: 1.2rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ace-affiliate-withdraw {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 252 208 / 12%);
}

.ace-affiliate-withdraw .btn {
  min-height: 50px;
  padding: 12px 22px;
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  border: 0;
  border-radius: 22px;
  box-shadow: var(--client-clay-shadow-small);
  font-size: .9rem;
  font-weight: 800;
}

.ace-affiliate-withdraw .btn.disabled {
  color: #aaa3a4;
  background: linear-gradient(145deg, #494647, #343132);
  opacity: .72;
}

.ace-affiliate-withdraw p {
  margin: 0;
  color: var(--client-clay-muted) !important;
  text-align: center;
}

.ace-affiliates__heading {
  margin: 8px 0 -8px;
}

/* Add funds. */
.ace-clay-client-page .ace-page-frame--clientareaaddfunds .ace-page-content {
  display: grid;
  align-content: center;
  padding: 24px 28px 46px;
}

.ace-add-funds {
  display: grid;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.ace-add-funds__balance,
.ace-add-funds__form {
  background: linear-gradient(145deg, #494647, #343132);
  border-radius: 32px;
  box-shadow: var(--client-clay-shadow);
}

.ace-add-funds__balance {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 190px;
  padding: 30px 46px;
}

.ace-add-funds__wallet {
  display: grid;
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  border-radius: 30px;
  box-shadow:
    9px 9px 18px rgb(0 0 0 / 38%),
    inset 5px 5px 10px rgb(255 255 255 / 58%),
    inset -4px -4px 8px rgb(96 82 42 / 18%);
  font-size: 2.5rem;
  place-items: center;
}

.ace-add-funds__balance > span:last-child {
  display: grid;
  gap: 14px;
}

.ace-add-funds__balance small {
  color: #eee8d4 !important;
  font-size: .95rem;
  font-weight: 700;
}

.ace-add-funds__balance strong {
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-variant-numeric: tabular-nums;
}

.ace-add-funds__form {
  padding: 38px 44px 30px;
}

.ace-add-funds__form h1 {
  margin: 0 0 24px;
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.65rem;
}

.ace-add-funds__form form {
  display: grid;
  gap: 22px;
}

.ace-add-funds__field {
  display: grid;
  gap: 10px;
}

.ace-add-funds__field label {
  color: #eee8d4;
  font-size: .82rem;
}

.ace-add-funds__control {
  display: flex;
  align-items: center;
  min-height: 60px;
  overflow: hidden;
  background: linear-gradient(145deg, #343132, #454142);
  border-radius: 22px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-add-funds__control input,
.ace-add-funds__field select {
  width: 100%;
  min-height: 60px;
  padding: 14px 22px;
  color: var(--client-clay-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.ace-add-funds__control input {
  min-width: 0;
}

.ace-add-funds__control span {
  padding: 0 22px;
  color: var(--client-clay-muted);
}

.ace-add-funds__field select {
  appearance: auto;
  background: linear-gradient(145deg, #343132, #454142);
  border-radius: 22px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-add-funds__submit,
.ace-auth-submit {
  min-height: 64px;
  padding: 14px 28px;
  color: var(--client-clay-bg);
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  border: 0;
  border-radius: 28px;
  box-shadow:
    9px 9px 18px rgb(0 0 0 / 38%),
    inset 5px 5px 10px rgb(255 255 255 / 58%),
    inset -4px -4px 8px rgb(96 82 42 / 18%);
  font-size: 1rem;
  font-weight: 800;
  transition:
    transform 200ms;
}

.ace-add-funds__submit:hover,
.ace-add-funds__submit:focus-visible,
.ace-auth-submit:hover,
.ace-auth-submit:focus-visible {
  color: var(--client-clay-bg);
  box-shadow:
    6px 6px 12px rgb(0 0 0 / 38%),
    inset 6px 6px 12px rgb(255 255 255 / 62%),
    inset -4px -4px 8px rgb(96 82 42 / 20%);
  transform: scale(.985);
}

.ace-add-funds__note {
  margin: 28px 0 0;
  padding-top: 18px;
  color: var(--client-clay-muted);
  border-top: 1px dashed rgb(255 252 208 / 16%);
  font-size: .86rem;
}

.ace-add-funds__note strong {
  color: #eee8d4;
}

/* Login, registration, password recovery, and verification. */
.ace-auth-page .ace-app-shell {
  display: block;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.ace-auth-page .ace-app-rail,
.ace-auth-page .ace-mobile-nav {
  display: none !important;
}

.ace-auth-page #main-body.ace-page-body {
  display: block;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.ace-auth-page .ace-page-frame {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.ace-auth-page .ace-page-content {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.ace-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #454243, #302e2f);
  border-radius: 0;
  box-shadow: var(--client-clay-shadow);
}

.ace-auth-visual {
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto auto;
  min-width: 0;
  padding: 48px 50px;
}

.ace-auth-brand {
  width: fit-content;
  color: var(--client-clay-accent) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.ace-auth-brand img {
  display: block;
  width: 200px;
  height: auto;
}

.ace-auth-visual__art {
  min-height: 360px;
  margin: 12px -10px 0;
  background-image: url("../img/hero-cloud-infrastructure-clay.webp");
  background-position: 72% center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
}

.ace-auth-visual__copy h1 {
  margin: 8px 0 10px;
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
}

.ace-auth-visual__copy p {
  margin: 0;
  color: var(--client-clay-muted) !important;
  font-size: 1rem;
}

.ace-auth-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.ace-auth-features span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 60px;
  padding: 10px;
  color: #eee8d4;
  background: linear-gradient(145deg, #494647, #343132);
  border-radius: 20px;
  box-shadow: var(--client-clay-shadow-small);
  font-size: .84rem;
  text-align: center;
}

.ace-auth-features i {
  color: var(--client-clay-accent);
}

.ace-auth-card {
  align-self: stretch;
  margin: 38px;
  padding: 34px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border-radius: 36px;
  box-shadow: var(--client-clay-shadow);
}

.ace-auth-layout--register .ace-auth-card {
  margin-block: 24px;
}

.ace-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 34px;
  padding: 7px;
  background: linear-gradient(145deg, #343132, #4b4748);
  border-radius: 28px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 22%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-auth-tabs a {
  display: grid;
  min-height: 54px;
  color: #eee8d4 !important;
  border-radius: 22px;
  font-weight: 800;
  place-items: center;
  text-decoration: none;
}

.ace-auth-tabs a.is-active {
  color: var(--client-clay-bg) !important;
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  box-shadow:
    6px 6px 12px rgb(0 0 0 / 34%),
    inset 4px 4px 8px rgb(255 255 255 / 56%),
    inset -3px -3px 6px rgb(96 82 42 / 18%);
}

.ace-auth-heading {
  margin-bottom: 28px;
}

.ace-auth-heading h2 {
  margin: 0 0 8px;
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 1.85rem;
}

.ace-auth-heading p {
  margin: 0;
  color: var(--client-clay-muted) !important;
}

.ace-auth-form {
  display: grid;
  gap: 20px;
}

.ace-auth-field {
  display: grid;
  gap: 9px;
}

.ace-auth-field label,
.ace-auth-field__label {
  color: #eee8d4;
  font-size: .8rem;
  font-weight: 700;
}

.ace-auth-field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ace-auth-field__label label {
  margin: 0;
}

.ace-auth-field__label a {
  color: var(--client-clay-accent);
  font-weight: 600;
}

.ace-auth-field > small {
  color: var(--client-clay-muted) !important;
  font-size: .8rem;
}

.ace-auth-control {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  color: var(--client-clay-muted);
  background: linear-gradient(145deg, #343132, #454142);
  border-radius: 24px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-auth-control input {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 12px;
  color: var(--client-clay-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.ace-auth-page .ace-auth-control input:focus-visible {
  outline: 0;
}

.ace-auth-control input::placeholder {
  color: #aaa3a4;
  opacity: 1;
}

.ace-auth-control:focus-within {
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%),
    0 0 0 3px rgb(255 252 208 / 22%);
}

.ace-auth-reveal {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--client-clay-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
}

.ace-auth-reveal:hover,
.ace-auth-reveal:focus-visible {
  color: var(--client-clay-accent);
  background: rgb(255 252 208 / 7%);
}

.ace-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #eee8d4;
  font-size: .84rem;
  font-weight: 500;
}

.ace-auth-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--client-clay-accent-deep);
}

.ace-auth-check a,
.ace-auth-check strong {
  color: var(--client-clay-accent);
}

.ace-auth-captcha,
.ace-auth-form > .captcha-container {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.ace-auth-captcha iframe,
.ace-auth-form > .captcha-container iframe {
  max-width: 100%;
}

.ace-password-feedback {
  display: grid;
  gap: 7px;
}

.ace-password-feedback .progress {
  height: 7px;
  overflow: hidden;
  background: #2f2c2d;
  border-radius: 999px;
}

.ace-password-feedback .progress-bar {
  background: linear-gradient(90deg, #b9a95f, var(--client-clay-accent));
}

.ace-password-feedback small {
  color: var(--client-clay-muted) !important;
}

.ace-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 62px;
  margin-top: 26px;
  padding: 12px 20px;
  color: #eee8d4 !important;
  background: linear-gradient(145deg, #514e4f, #302d2e);
  border-radius: 24px;
  box-shadow: var(--client-clay-shadow-small);
  text-decoration: none;
}

.ace-auth-switch strong,
.ace-auth-switch i {
  color: var(--client-clay-accent);
}

.ace-auth-card .alert {
  margin-bottom: 20px;
  color: #ffe7e2;
  background: linear-gradient(145deg, #604947, #403333);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-auth-card .providerLinkingFeedback:empty {
  display: none;
}

.ace-auth-card .provider-login-links {
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .ace-auth-layout {
    grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  }

  .ace-auth-visual {
    padding: 38px 30px;
  }

  .ace-auth-features {
    grid-template-columns: 1fr;
  }

  .ace-auth-features span {
    min-height: 48px;
  }
}

@media (max-width: 820px) {
  .ace-auth-page #main-body.ace-page-body {
    padding: 0;
  }

  .ace-auth-layout {
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .ace-auth-visual {
    grid-template-rows: auto auto;
    padding: 28px 26px 0;
  }

  .ace-auth-visual__art,
  .ace-auth-visual__copy,
  .ace-auth-features {
    display: none;
  }

  .ace-auth-card,
  .ace-auth-layout--register .ace-auth-card {
    margin: 20px;
    padding: 26px 22px;
    border-radius: 28px;
  }

  .ace-affiliate-stats,
  .ace-affiliate-earnings dl {
    grid-template-columns: 1fr;
  }

  .ace-affiliate-earnings dl {
    gap: 18px;
  }

  .ace-affiliate-earnings dl > div + div {
    border-top: 1px solid rgb(255 252 208 / 14%);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .ace-clay-client-page .ace-page-frame--clientareaaddfunds .ace-page-content {
    align-content: start;
    padding: 14px 8px 32px;
  }

  .ace-add-funds {
    gap: 18px;
  }

  .ace-add-funds__balance,
  .ace-add-funds__form {
    border-radius: 26px;
  }

  .ace-add-funds__balance {
    gap: 18px;
    min-height: 150px;
    padding: 24px 20px;
  }

  .ace-add-funds__wallet {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    font-size: 1.8rem;
  }

  .ace-add-funds__form {
    padding: 28px 20px 24px;
  }

  .ace-affiliate-stat,
  .ace-affiliate-link,
  .ace-affiliate-earnings {
    border-radius: 24px;
  }

  .ace-affiliate-stat {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 128px;
    padding: 20px;
  }

  .ace-affiliate-stat__icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .ace-affiliate-link,
  .ace-affiliate-earnings {
    padding: 24px 20px;
  }

  .ace-affiliate-earnings dl > div {
    padding: 6px 8px;
  }

  .ace-auth-page #main-body.ace-page-body {
    padding: 0;
  }

  .ace-auth-visual {
    padding: 24px 20px 0;
  }

  .ace-auth-brand {
    font-size: 1.7rem;
  }

  .ace-auth-brand img {
    width: 170px;
  }

  .ace-auth-card,
  .ace-auth-layout--register .ace-auth-card {
    margin: 14px;
    padding: 22px 16px;
  }

  .ace-auth-tabs {
    margin-bottom: 26px;
  }

  .ace-auth-heading h2 {
    font-size: 1.5rem;
  }

  .ace-auth-submit {
    min-height: 58px;
  }
}

/* Service details: keep inherited WHMCS and server-module markup inside the dark clay theme. */
.ace-clay-client-page .ace-page-frame--clientareaproductdetails .card > .card-body {
  padding: 16px;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 20px;
  margin: 0;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status {
  display: grid;
  grid-template-rows: minmax(210px, 1fr) auto;
  gap: 14px;
  min-height: 300px;
  margin: 0 !important;
  padding: 16px;
  overflow: hidden;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #504c4d, #343132) !important;
  border: 0;
  border-radius: 26px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status .product-icon {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 28px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #454243, #302d2e) !important;
  border: 0;
  border-radius: 20px;
  box-shadow:
    inset 4px 4px 9px rgb(0 0 0 / 22%),
    inset -4px -4px 9px rgb(255 255 255 / 7%);
  font-size: 54px;
  line-height: 1.2;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status .fa-circle {
  color: #5a5657;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status .fa-inverse {
  color: var(--client-clay-accent);
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status h3,
.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status h4 {
  margin: 0;
  color: var(--client-clay-accent) !important;
  line-height: 1.3;
  text-align: center;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status h3 {
  font-size: 1.3rem;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status h4 {
  color: #eee8d4 !important;
  font-size: 1rem;
  line-height: 1.45;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status .product-status-text {
  position: static !important;
  justify-self: center;
  width: auto !important;
  max-width: calc(100% - 24px);
  min-width: 108px;
  margin: 0 auto !important;
  padding: 9px 18px;
  color: var(--client-clay-bg) !important;
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep)) !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow:
    6px 6px 12px rgb(0 0 0 / 30%),
    inset 3px 3px 6px rgb(255 255 255 / 48%);
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-actions-wrapper {
  margin-top: 16px;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row > .text-center {
  display: grid;
  grid-template-columns: minmax(135px, .8fr) minmax(0, 1.2fr);
  align-content: center;
  gap: 11px 20px;
  min-height: 300px;
  padding: 26px;
  color: #eee8d4;
  background: linear-gradient(145deg, #454243, #302d2e);
  border-radius: 26px;
  box-shadow:
    inset 4px 4px 9px rgb(0 0 0 / 22%),
    inset -4px -4px 9px rgb(255 255 255 / 7%);
  text-align: left !important;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row > .text-center h4 {
  margin: 0;
  color: var(--client-clay-muted);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  text-align: right;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs {
  gap: 8px;
  margin: 20px 0 0;
  padding: 8px;
  background: linear-gradient(145deg, #454243, #302d2e);
  border: 0;
  border-radius: 22px;
  box-shadow: var(--client-clay-shadow-small);
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs .nav-link {
  min-height: 42px;
  padding: 10px 16px;
  color: #fff !important;
  background: transparent;
  border: 0;
  border-radius: 16px;
  font-weight: 750;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs .nav-link:hover,
.ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs .nav-link:focus-visible {
  color: var(--client-clay-accent);
  background: #494647;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs .nav-link.active {
  color: #262323 !important;
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep)) !important;
  box-shadow:
    5px 5px 10px rgb(0 0 0 / 30%),
    inset 3px 3px 6px rgb(255 255 255 / 48%);
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs .nav-link.active i {
  color: #262323 !important;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertUnpaidInvoice,
.ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertOverdueInvoice {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 14px 16px;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertUnpaidInvoice .float-right,
.ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertOverdueInvoice .float-right {
  order: 2;
  float: none !important;
  flex: 0 0 auto;
  margin-left: auto;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertUnpaidInvoice .btn,
.ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertOverdueInvoice .btn {
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .responsive-tabs-sm-connector {
  display: none;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details-tab-container,
.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details-tab-container.bg-white {
  margin-top: 14px;
  padding: 20px;
  overflow: hidden;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #403d3e, #302e2f) !important;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--client-clay-shadow);
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details-tab-container .row {
  color: #eee8d4;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .module-client-area {
  margin: 0;
  background: transparent;
}

.ace-clay-client-page .ace-page-frame--clientareaproductdetails .module-client-area iframe,
.ace-clay-client-page .ace-page-frame--clientareaproductdetails .module-client-area embed {
  display: block;
  width: 100% !important;
  max-width: 100%;
  background: var(--client-clay-bg);
  border: 0;
  border-radius: 24px;
}

@media (max-width: 900px) {
  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row {
    grid-template-columns: 1fr;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row > .text-center {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-status,
  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row > .text-center,
  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details-tab-container {
    padding: 18px;
    border-radius: 22px;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row > .text-center {
    grid-template-columns: 1fr;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .product-details > .row > .text-center h4 {
    margin-top: 8px;
    text-align: left;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs {
    flex-wrap: nowrap;
    width: 100%;
    margin-right: 0;
    overflow-x: auto;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs .nav-item {
    width: auto;
    margin: 0 !important;
    border: 0 !important;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails .nav-tabs .nav-link {
    border-radius: 16px !important;
    white-space: nowrap;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertUnpaidInvoice,
  .ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertOverdueInvoice {
    align-items: stretch;
    flex-direction: column;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertUnpaidInvoice .float-right,
  .ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertOverdueInvoice .float-right {
    width: 100%;
    margin-left: 0;
  }

  .ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertUnpaidInvoice .btn,
  .ace-clay-client-page .ace-page-frame--clientareaproductdetails #alertOverdueInvoice .btn {
    width: 100%;
  }
}

/* Site footer and legal documents. */
.ace-site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  margin-top: 18px;
  padding: 0 8px;
  color: var(--ace-muted);
  font-size: .78rem;
}

.ace-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ace-site-footer a {
  color: var(--ace-text);
  font-weight: 700;
  text-decoration: none;
}

.ace-site-footer a:hover,
.ace-site-footer a:focus-visible {
  color: var(--ace-primary);
  text-decoration: underline;
}

:is(body.ace-clay-home-page, .ace-clay-client-page) .ace-site-footer,
body.ace-clay-store-page .ace-site-footer {
  color: var(--home-clay-muted, var(--client-clay-muted, var(--clay-muted)));
}

:is(body.ace-clay-home-page, .ace-clay-client-page) .ace-site-footer a,
body.ace-clay-store-page .ace-site-footer a {
  color: var(--home-clay-accent, var(--client-clay-accent, var(--clay-accent)));
}

.ace-page-frame--legal .ace-page-content {
  display: grid;
  align-content: start;
  padding: 24px 28px 44px;
}

.ace-legal {
  width: 100%;
  padding: 38px 44px 44px;
  color: var(--client-clay-text);
  background: linear-gradient(145deg, #494647, #343132);
  border-radius: 32px;
  box-shadow: var(--client-clay-shadow);
}

.ace-legal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgb(255 252 208 / 14%);
}

.ace-legal__header h1 {
  margin: 0;
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 2rem;
  font-weight: 650;
}

.ace-legal__switcher {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: linear-gradient(145deg, #343132, #454142);
  border-radius: 22px;
  box-shadow:
    inset 4px 4px 8px rgb(0 0 0 / 25%),
    inset -4px -4px 8px rgb(255 255 255 / 7%);
}

.ace-clay-client-page .ace-legal__switcher a {
  min-width: 92px;
  padding: 10px 15px;
  color: #eee8d4;
  border-radius: 17px;
  font-size: .84rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.ace-clay-client-page .ace-legal__switcher a:hover,
.ace-clay-client-page .ace-legal__switcher a:focus-visible {
  color: var(--client-clay-accent);
  background: #494647;
}

.ace-clay-client-page .ace-page-frame--legal .ace-legal__switcher a.is-active {
  color: var(--client-clay-bg) !important;
  background: linear-gradient(145deg, #fffedc, var(--client-clay-accent-deep));
  box-shadow:
    5px 5px 10px rgb(0 0 0 / 30%),
    inset 3px 3px 6px rgb(255 255 255 / 48%);
}

.ace-legal__body {
  max-width: none;
}

.ace-legal__body section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgb(255 252 208 / 10%);
}

.ace-legal__body h2 {
  margin: 0 0 12px;
  color: var(--client-clay-accent);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 1.3rem;
  font-weight: 650;
}

.ace-clay-client-page .ace-legal__body :is(p, li) {
  color: #eee8d4 !important;
}

.ace-legal__body p,
.ace-legal__body ul {
  margin: 0;
}

.ace-legal__body ul {
  display: grid;
  gap: 10px;
  padding-left: 1.25rem;
}

.ace-legal__body p + ul {
  margin-top: 14px;
}

@media (max-width: 639px) {
  .ace-site-footer {
    gap: 7px 14px;
    padding-inline: 4px;
    font-size: .74rem;
  }

  .ace-page-frame--legal .ace-page-content {
    padding: 20px 12px 32px;
  }

  .ace-legal {
    padding: 26px 22px 32px;
    border-radius: 26px;
  }

  .ace-legal__header {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 26px;
    padding-bottom: 22px;
  }

  .ace-legal__header h1 {
    font-size: 1.75rem;
  }

  .ace-legal__switcher a {
    flex: 1;
    min-width: 0;
  }

  .ace-legal__body section + section {
    margin-top: 28px;
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .ace-client-stat:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .ace-app-rail,
  .ace-page-frame,
  .ace-home-hero,
  .ace-home-product-card,
  .ace-client-stat,
  .ace-client-panel,
  .ace-legal,
  .card,
  .panel {
    color: CanvasText;
    background: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .ace-home-hero {
    background-image: none;
  }
}

@media print {
  .ace-app-rail,
  .ace-mobile-nav,
  .ace-page-context,
  .btn {
    display: none !important;
  }

  .ace-app-shell,
  .ace-page-frame,
  .ace-page-frame:has(.ace-page-context) {
    display: block;
  }

  .ace-page-body,
  .ace-page-content,
  .ace-client-surface {
    min-height: 0;
    padding: 0;
  }

  .card,
  .panel,
  .invoice-container,
  .ticket-reply {
    box-shadow: none;
  }

  .ace-legal {
    width: 100%;
    padding: 0;
    color: #000;
    background: #fff;
    box-shadow: none;
  }

  .ace-legal__header,
  .ace-legal__body section + section {
    border-color: #bbb;
  }

  .ace-legal :is(h1, h2, p, li) {
    color: #000 !important;
  }
}
