/*
 * Generated file: built from the CSS modules in css/next/.
 * Do not edit this file directly; update a CSS module in css/next/ and rebuild.
 * Ordered modules: tokens.css, base.css, shell.css, components/actions-forms.css, components/motion-feedback.css, components/page-transitions.css, components/global-search.css, components/verification-banner.css, components/auth-forms.css, components/cards-feedback.css, components/page-title.css, components/tables-tabs.css, components/data-list.css, components/invoice-document.css, pages/dashboard.css, pages/public-home.css, pages/domains.css, pages/auth.css, pages/list-workspaces.css, pages/upgrade.css, pages/product-details.css, pages/product-details-responsive.css, pages/service-audit.css, pages/invoice.css, pages/account-audit.css, pages/support-audit.css, pages/content-audit.css, responsive.css
 */

/* Design tokens: the only place colour, elevation, radius, and timing values are defined. */
html[data-interface-style="next"] {
    color-scheme: light;
    --he-bg: #f6f7f9;
    --he-bg-light: #f2f4f7;
    --he-card-bg: #ffffff;
    --he-card-subtle: #f9fafb;
    --he-fg: #344054;
    --he-fg-strong: #101828;
    --he-fg-muted: #667085;
    --he-border: #d0d5dd;
    --he-border-soft: #e1e6ed;
    --he-primary: #145cc5;
    --he-primary-accessible: #0b4aa2;
    --he-primary-hover: #0e4fae;
    --he-primary-fg: #ffffff;
    --he-primary-muted: rgba(20, 92, 197, 0.09);
    --he-accent: #ff9a57;
    --he-accent-hover: #f47f35;
    --he-accent-fg: #29150a;
    --he-accent-hover-fg: #1f1007;
    --he-accent-muted: #fff1e7;
    --he-success: #168451;
    --he-success-hover: #0f6d43;
    --he-success-fg: #ffffff;
    --he-success-muted: #e9f8f0;
    --he-warning: #b54708;
    --he-warning-hover: #933806;
    --he-warning-fg: #ffffff;
    --he-warning-muted: #fff6e6;
    --he-danger: #b42318;
    --he-danger-hover: #921b13;
    --he-danger-fg: #ffffff;
    --he-danger-muted: #fff0ee;
    --he-focus-ring: #145cc5;
    --he-sidebar-bg: #081f3d;
    --he-sidebar-bg-hover: #102d52;
    --he-sidebar-link: #c7d4e5;
    --he-sidebar-link-hover: #ffffff;
    --he-sidebar-link-hover-bg: #194576;
    --he-sidebar-link-active: #ffffff;
    --he-sidebar-link-active-bg: rgba(20, 92, 197, 0.42);
    --he-sidebar-submenu-shadow: none;
    --he-shell-sidebar-width: 256px;
    --he-shell-topbar-height: 48px;
    --he-sidebar-link-width: 218px;
    --he-dashboard-action-bg: #ffffff;
    --he-dashboard-action-border: #d0d5dd;
    --he-dashboard-action-color: #344054;
    --he-dashboard-action-hover-bg: #f2f4f7;
    --he-dashboard-action-hover-border: #98a2b3;
    --he-dashboard-action-hover-color: #101828;
    --he-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
    --he-shadow-overlay: 0 20px 48px rgba(16, 24, 40, 0.18);
    --he-radius-control: 6px;
    --he-radius-card: 8px;
    --he-radius-overlay: 10px;
    --he-motion-fast: 100ms;
    --he-motion-standard: 160ms;
    --he-motion-slow: 240ms;
    --he-motion-highlight-enter: 180ms;
    --he-motion-highlight-exit: 480ms;
    --he-motion-reveal: 680ms;
    --he-ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --he-ease-feedback: cubic-bezier(0.2, 0, 0.2, 1);
    --he-ease-enter: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-interface-style="next"][data-color-scheme="dark"] {
    color-scheme: dark;
    --he-bg: #0f1726;
    --he-bg-light: #162033;
    --he-card-bg: #172235;
    --he-card-subtle: #1b293e;
    --he-fg: #d7deea;
    --he-fg-strong: #f8fafc;
    --he-fg-muted: #9eabc0;
    --he-border: #3a4860;
    --he-border-soft: #29364b;
    --he-primary: #79aaff;
    --he-primary-accessible: #9bbfff;
    --he-primary-hover: #a9c8ff;
    --he-primary-fg: #07162c;
    --he-primary-muted: rgba(121, 170, 255, 0.14);
    --he-accent: #ffad73;
    --he-accent-hover: #ffc094;
    --he-accent-fg: #29150a;
    --he-accent-hover-fg: #1f1007;
    --he-accent-muted: rgba(255, 154, 87, 0.14);
    --he-success: #62d49a;
    --he-success-hover: #86e2b2;
    --he-success-fg: #071c14;
    --he-success-muted: rgba(32, 169, 102, 0.14);
    --he-warning: #fdb969;
    --he-warning-hover: #ffca91;
    --he-warning-fg: #29150a;
    --he-warning-muted: rgba(245, 158, 11, 0.14);
    --he-danger: #ff8b82;
    --he-danger-hover: #ffaaa4;
    --he-danger-fg: #2b0a08;
    --he-danger-muted: rgba(240, 68, 56, 0.14);
    --he-focus-ring: #9bbfff;
    --he-sidebar-bg: #07162c;
    --he-sidebar-bg-hover: #102a4b;
    --he-sidebar-link: #b9c8da;
    --he-sidebar-link-active-bg: rgba(121, 170, 255, 0.2);
    --he-dashboard-action-bg: #172235;
    --he-dashboard-action-border: #3a4860;
    --he-dashboard-action-color: #d7deea;
    --he-dashboard-action-hover-bg: #1b293e;
    --he-dashboard-action-hover-border: #64748b;
    --he-dashboard-action-hover-color: #f8fafc;
    --he-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.2);
    --he-shadow-overlay: 0 24px 56px rgba(0, 0, 0, 0.38);
}

/* Element defaults and accessibly visible focus treatment. */
html[data-interface-style="next"] body,
html[data-interface-style="next"] body .page-wrapper,
html[data-interface-style="next"] body #main-wrapper,
html[data-interface-style="next"] body .client-primary-content {
    background-color: var(--he-bg);
    color: var(--he-fg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html[data-interface-style="next"] body a {
    color: var(--he-primary-accessible);
    text-underline-offset: 2px;
}

html[data-interface-style="next"] body :focus-visible {
    outline: 3px solid var(--he-focus-ring);
    outline-offset: 2px;
}

html[data-interface-style="next"] body ::selection {
    background: var(--he-primary-muted);
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-skip-link {
    position: fixed;
    z-index: 2000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: var(--he-radius-control);
    background: var(--he-fg-strong);
    color: var(--he-card-bg);
    transform: translateY(calc(-100% - 16px));
    transition: transform var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .he-skip-link:focus {
    color: var(--he-card-bg);
    transform: translateY(0);
}

html[data-interface-style="next"] body h1,
html[data-interface-style="next"] body h2,
html[data-interface-style="next"] body h3,
html[data-interface-style="next"] body h4,
html[data-interface-style="next"] body h5,
html[data-interface-style="next"] body h6,
html[data-interface-style="next"] body .card-title,
html[data-interface-style="next"] body .navbar-brand {
    color: var(--he-fg-strong);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.015em;
}

html[data-interface-style="next"] body [class^="ti-"],
html[data-interface-style="next"] body [class*=" ti-"] {
    font-family: "themify";
    speak: none;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (forced-colors: active) {
    html[data-interface-style="next"] body :focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 2px;
    }

    html[data-interface-style="next"] body .btn,
    html[data-interface-style="next"] body .form-control,
    html[data-interface-style="next"] body select,
    html[data-interface-style="next"] body textarea {
        border-color: ButtonText;
        forced-color-adjust: auto;
    }
}
/* WHMCS reveals these with inline display. Keep that state machine authoritative. */
html[data-interface-style="next"] body .w-hidden {
    display: none;
}

/* Persistent top bar and sidebar shell. Keep layout ownership here, not in page CSS. */
html[data-interface-style="next"] body {
    --he-shell-collapsed-width: 72px;
    --he-shell-safe-top: env(safe-area-inset-top, 0px);
}

html[data-interface-style="next"] body .topbar {
    position: fixed;
    z-index: 1030;
    top: 0;
    right: 0;
    left: 0;
    min-height: calc(var(--he-shell-topbar-height) + var(--he-shell-safe-top));
    padding-top: var(--he-shell-safe-top);
}

html[data-interface-style="next"] body .topbar .top-navbar {
    display: flex;
    align-items: stretch;
    min-height: var(--he-shell-topbar-height);
}

html[data-interface-style="next"] body.is-logged-in .topbar .navbar-header {
    display: flex;
    flex: 0 0 var(--he-shell-sidebar-width);
    align-items: center;
    width: var(--he-shell-sidebar-width);
    min-width: var(--he-shell-sidebar-width);
    min-height: var(--he-shell-topbar-height);
}

html[data-interface-style="next"] body .topbar .navbar-collapse {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
    min-height: var(--he-shell-topbar-height);
}

html[data-interface-style="next"] body.is-logged-in .page-wrapper {
    min-height: 100vh;
    margin-left: var(--he-shell-sidebar-width);
    padding-top: calc(var(--he-shell-topbar-height) + var(--he-shell-safe-top));
    transition: margin-left var(--he-motion-standard) var(--he-ease-standard);
}

html[data-interface-style="next"] body.is-logged-out .page-wrapper {
    min-height: 100vh;
    margin-left: 0;
    padding-top: calc(var(--he-shell-topbar-height) + var(--he-shell-safe-top));
}

html[data-interface-style="next"] body.is-logged-in .left-sidebar {
    position: fixed;
    z-index: 1028;
    top: calc(var(--he-shell-topbar-height) + var(--he-shell-safe-top));
    bottom: 0;
    left: 0;
    width: var(--he-shell-sidebar-width);
    overflow: hidden;
    transition: width var(--he-motion-standard) var(--he-ease-standard), transform var(--he-motion-standard) var(--he-ease-standard);
}

html[data-interface-style="next"] body.is-logged-in .scroll-sidebar {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

html[data-interface-style="next"] body.is-logged-in .sidebar-nav > ul {
    width: 100%;
    margin: 0;
    padding: 8px;
}

html[data-interface-style="next"] body.is-logged-in .sidebar-nav > ul > li > a {
    display: flex;
    align-items: center;
    column-gap: 12px;
    min-height: 44px;
    margin: 2px 0;
    padding: 9px 12px;
}

/*
 * Keep a predictable icon lane instead of inheriting the legacy theme's
 * font-dependent 27px inline box. The separate 12px gap is the actual
 * icon-to-label spacing and remains stable across every icon font.
 */
html[data-interface-style="next"] body.is-logged-in .sidebar-nav #sidebarnav > li > a > i {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    margin: 0;
    padding: 0;
    text-align: center;
}

html[data-interface-style="next"] body.is-logged-in .sidebar-nav #sidebarnav > li > a > .hide-menu {
    min-width: 0;
    margin: 0;
}

html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed {
    --he-shell-sidebar-width: var(--he-shell-collapsed-width);
    --he-sidebar-link-width: 48px;
}

html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .topbar .navbar-header {
    justify-content: center;
}

html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .topbar .navbar-brand {
    display: none;
}

html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .sidebar-nav > ul {
    padding-right: 8px;
    padding-left: 8px;
}

html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .sidebar-nav > ul > li > a {
    justify-content: center;
    column-gap: 0;
    padding-right: 0;
    padding-left: 0;
}

html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .sidebar-nav > ul > li > a .hide-menu,
html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .sidebar-nav > ul > li > a::after,
html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .sidebar-nav > ul > li > ul,
html[data-interface-style="next"] body.is-logged-in.he-sidebar-collapsed .sidebar-nav .nav-devider {
    display: none;
}

/* Visual treatment remains deliberately separate from the structure contract above. */
html[data-interface-style="next"] body .topbar,
html[data-interface-style="next"] body .topbar .top-navbar,
html[data-interface-style="next"] body .topbar .top-navbar .navbar-header {
    background: var(--he-card-bg);
    border-color: var(--he-border-soft);
    box-shadow: none;
}

html[data-interface-style="next"] body .topbar .navbar-nav .nav-link,
html[data-interface-style="next"] body .topbar .navbar-nav .nav-link i,
html[data-interface-style="next"] body .topbar .navbar-nav .nav-link span,
html[data-interface-style="next"] body .topbar .navbar-nav .nav-link small {
    color: var(--he-fg);
}

html[data-interface-style="next"] body .topbar .navbar-nav .nav-link,
html[data-interface-style="next"] body .topbar .mobile-sidebartoggler,
html[data-interface-style="next"] body .he-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

html[data-interface-style="next"] body .left-sidebar,
html[data-interface-style="next"] body .scroll-sidebar,
html[data-interface-style="next"] body .left-sidebar .he-sidebar-tools {
    background: var(--he-sidebar-bg);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-interface-style="next"] body .sidebar-nav > ul > li > a,
html[data-interface-style="next"] body .sidebar-nav ul li ul li a,
html[data-interface-style="next"] body .sidebar-nav #sidebarnav li a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--he-sidebar-link);
    border-radius: var(--he-radius-control);
    background: transparent;
    transform: none;
    transition: color var(--he-motion-highlight-enter) var(--he-ease-feedback);
}

html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a {
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 2px 0;
    padding: 9px 12px;
}

html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: var(--he-sidebar-link-hover-bg);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--he-motion-highlight-exit) linear;
}

html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a:hover::before,
html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a:focus-visible::before {
    opacity: 1;
    transition-duration: var(--he-motion-highlight-enter);
    transition-timing-function: var(--he-ease-feedback);
}

html[data-interface-style="next"] body .sidebar-nav > ul > li > ul {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: rgba(255, 255, 255, 0.12);
}

html[data-interface-style="next"] body .sidebar-nav ul li a.active,
html[data-interface-style="next"] body .sidebar-nav #sidebarnav li.active > a {
    color: var(--he-sidebar-link-active);
}

html[data-interface-style="next"] body .sidebar-nav ul li a:hover,
html[data-interface-style="next"] body .sidebar-nav ul li a:focus-visible {
    background: transparent;
    color: var(--he-sidebar-link);
    transform: none;
}

html[data-interface-style="next"] body .sidebar-nav ul li a.active::before,
html[data-interface-style="next"] body .sidebar-nav #sidebarnav li.active > a::before {
    background: var(--he-sidebar-link-active-bg);
    opacity: 1;
}

html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a > i,
html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a > .hide-menu {
    transform: none;
}

html[data-interface-style="next"] body .he-sidebar-toggle {
    border-color: rgba(255, 255, 255, 0.16);
    background: transparent;
    color: var(--he-sidebar-link);
}

html[data-interface-style="next"] body .he-sidebar-toggle:hover,
html[data-interface-style="next"] body .he-sidebar-toggle:focus {
    border-color: rgba(255, 255, 255, 0.26);
    background: var(--he-sidebar-bg-hover);
    color: #ffffff;
}

@media (forced-colors: active) {
    html[data-interface-style="next"] body .left-sidebar,
    html[data-interface-style="next"] body .scroll-sidebar {
        border-right: 1px solid ButtonText;
    }

    html[data-interface-style="next"] body .sidebar-nav a:focus-visible,
    html[data-interface-style="next"] body .he-sidebar-toggle:focus-visible {
        outline: 3px solid Highlight;
        outline-offset: -3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a,
    html[data-interface-style="next"] body .sidebar-nav #sidebarnav li > a::before {
        transition: none;
    }
}

/* Buttons, controls, and input feedback. */
html[data-interface-style="next"] body .btn-primary,
html[data-interface-style="next"] body .he-dashboard-action-primary,
html[data-interface-style="next"] body .login-action-btn {
    min-height: 44px;
    border-color: var(--he-accent);
    border-radius: var(--he-radius-control);
    background: var(--he-accent);
    color: var(--he-accent-fg);
    box-shadow: none;
    transition: background-color var(--he-motion-fast) var(--he-ease-standard), border-color var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .btn-primary:hover,
html[data-interface-style="next"] body .btn-primary:focus,
html[data-interface-style="next"] body .he-dashboard-action-primary:hover,
html[data-interface-style="next"] body .he-dashboard-action-primary:focus,
html[data-interface-style="next"] body .login-action-btn:hover,
html[data-interface-style="next"] body .login-action-btn:focus {
    border-color: var(--he-accent-hover);
    background: var(--he-accent-hover);
    color: var(--he-accent-hover-fg);
    box-shadow: none;
}

html[data-interface-style="next"] body .btn-primary:active,
html[data-interface-style="next"] body .btn-primary.active {
    border-color: var(--he-accent-hover);
    background: var(--he-accent-hover);
    color: var(--he-accent-hover-fg);
    box-shadow: none;
}

html[data-interface-style="next"] body .btn-success,
html[data-interface-style="next"] body .btn-warning,
html[data-interface-style="next"] body .btn-danger,
html[data-interface-style="next"] body .btn-info {
    min-height: 44px;
    border-radius: var(--he-radius-control);
    box-shadow: none;
    transition: background-color var(--he-motion-fast) var(--he-ease-standard), border-color var(--he-motion-fast) var(--he-ease-standard), color var(--he-motion-fast) var(--he-ease-standard);
}

/* One primary-action colour (2026-10-24): success/info buttons are order, pay and submit actions, so they share the orange accent. */
html[data-interface-style="next"] body .btn-success,
html[data-interface-style="next"] body .btn-info {
    border-color: var(--he-accent);
    background: var(--he-accent);
    color: var(--he-accent-fg);
}

html[data-interface-style="next"] body .btn-success:hover,
html[data-interface-style="next"] body .btn-success:focus,
html[data-interface-style="next"] body .btn-success:active,
html[data-interface-style="next"] body .btn-success.active,
html[data-interface-style="next"] body .btn-info:hover,
html[data-interface-style="next"] body .btn-info:focus,
html[data-interface-style="next"] body .btn-info:active,
html[data-interface-style="next"] body .btn-info.active {
    border-color: var(--he-accent-hover);
    background: var(--he-accent-hover);
    color: var(--he-accent-hover-fg);
}

html[data-interface-style="next"] body .btn-warning {
    border-color: var(--he-warning);
    background: var(--he-warning);
    color: var(--he-warning-fg);
}

html[data-interface-style="next"] body .btn-warning:hover,
html[data-interface-style="next"] body .btn-warning:focus,
html[data-interface-style="next"] body .btn-warning:active,
html[data-interface-style="next"] body .btn-warning.active {
    border-color: var(--he-warning-hover);
    background: var(--he-warning-hover);
    color: var(--he-warning-fg);
}

html[data-interface-style="next"] body .btn-danger {
    border-color: var(--he-danger);
    background: var(--he-danger);
    color: var(--he-danger-fg);
}

html[data-interface-style="next"] body .btn-danger:hover,
html[data-interface-style="next"] body .btn-danger:focus,
html[data-interface-style="next"] body .btn-danger:active,
html[data-interface-style="next"] body .btn-danger.active {
    border-color: var(--he-danger-hover);
    background: var(--he-danger-hover);
    color: var(--he-danger-fg);
}

html[data-interface-style="next"] body .btn-secondary,
html[data-interface-style="next"] body .btn-default,
html[data-interface-style="next"] body .he-dashboard-action-outline {
    border-color: var(--he-dashboard-action-border);
    border-radius: var(--he-radius-control);
    background: var(--he-dashboard-action-bg);
    color: var(--he-dashboard-action-color);
    box-shadow: none;
}

html[data-interface-style="next"] body .btn-secondary:hover,
html[data-interface-style="next"] body .btn-secondary:focus,
html[data-interface-style="next"] body .btn-default:hover,
html[data-interface-style="next"] body .btn-default:focus,
html[data-interface-style="next"] body .he-dashboard-action-outline:hover,
html[data-interface-style="next"] body .he-dashboard-action-outline:focus {
    border-color: var(--he-dashboard-action-hover-border);
    background: var(--he-dashboard-action-hover-bg);
    color: var(--he-dashboard-action-hover-color);
}

html[data-interface-style="next"] body .btn:disabled,
html[data-interface-style="next"] body .btn.disabled,
html[data-interface-style="next"] body .btn[aria-disabled="true"] {
    border-color: var(--he-border);
    background: var(--he-bg-light);
    color: var(--he-fg-muted);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

html[data-interface-style="next"] body .form-control,
html[data-interface-style="next"] body .custom-select,
html[data-interface-style="next"] body select,
html[data-interface-style="next"] body textarea {
    min-height: 44px;
    border-color: var(--he-border);
    border-radius: var(--he-radius-control);
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
    box-shadow: none;
    transition: border-color var(--he-motion-fast) var(--he-ease-standard), box-shadow var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .form-control:focus,
html[data-interface-style="next"] body .custom-select:focus,
html[data-interface-style="next"] body select:focus,
html[data-interface-style="next"] body textarea:focus {
    border-color: var(--he-primary);
    box-shadow: 0 0 0 3px var(--he-primary-muted);
}

html[data-interface-style="next"] body .form-control::placeholder,
html[data-interface-style="next"] body textarea::placeholder {
    color: var(--he-fg-muted);
    opacity: 1;
}

html[data-interface-style="next"] body .form-control:disabled,
html[data-interface-style="next"] body .form-control[readonly],
html[data-interface-style="next"] body select:disabled,
html[data-interface-style="next"] body textarea:disabled,
html[data-interface-style="next"] body textarea[readonly] {
    border-color: var(--he-border-soft);
    background: var(--he-bg-light);
    color: var(--he-fg-muted);
    cursor: not-allowed;
    opacity: 1;
}

/*
 * Motion is feedback, not decoration. Keep navigation immediate and reserve
 * movement for the control or content that actually changed.
 */
html[data-interface-style="next"] body .waves-effect {
    will-change: auto;
    transition:
        background-color var(--he-motion-fast) var(--he-ease-standard),
        border-color var(--he-motion-fast) var(--he-ease-standard),
        color var(--he-motion-fast) var(--he-ease-standard),
        box-shadow var(--he-motion-fast) var(--he-ease-standard),
        opacity var(--he-motion-fast) var(--he-ease-standard);
}

/* The legacy runtime may still inject this node through third-party output. */
html[data-interface-style="next"] body .waves-effect .waves-ripple {
    display: none;
}

html[data-interface-style="next"] body .btn,
html[data-interface-style="next"] body .he-dashboard-action,
html[data-interface-style="next"] body .he-dashboard-stat-card {
    border-radius: var(--he-radius-control);
    transform: none;
    transition:
        background-color var(--he-motion-fast) var(--he-ease-standard),
        border-color var(--he-motion-fast) var(--he-ease-standard),
        color var(--he-motion-fast) var(--he-ease-standard),
        box-shadow var(--he-motion-fast) var(--he-ease-standard),
        opacity var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .he-motion-reveal {
    opacity: 0;
}

html[data-interface-style="next"] body .he-motion-reveal.is-visible {
    opacity: 1;
    transition: opacity var(--he-motion-reveal) var(--he-ease-enter);
}

@media (hover: hover) {
    html[data-interface-style="next"] body .he-dashboard-stat-card:hover,
    html[data-interface-style="next"] body .he-dashboard-stat-card:focus-visible {
        box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
    }
}

@media (prefers-reduced-motion: no-preference) {
    html[data-interface-style="next"] body .dropdown-menu.show,
    html[data-interface-style="next"] body .he-preference-panel[data-open="true"] {
        animation: he-overlay-enter var(--he-motion-standard) var(--he-ease-standard) both;
        transform-origin: top right;
    }

    html[data-interface-style="next"] body .product-details-tabs > .tab-content > .tab-pane.active {
        animation: he-content-reveal var(--he-motion-standard) var(--he-ease-standard) both;
    }

    html[data-interface-style="next"] body .he-invoice-payment-summary,
    html[data-interface-style="next"] body .he-upgrade-card {
        animation: he-context-reveal var(--he-motion-reveal) var(--he-ease-enter) both;
    }
}

@keyframes he-overlay-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes he-content-reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes he-context-reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] body .btn,
    html[data-interface-style="next"] body .he-dashboard-action,
    html[data-interface-style="next"] body .he-dashboard-stat-card,
    html[data-interface-style="next"] body .dropdown-menu,
    html[data-interface-style="next"] body .he-preference-panel,
    html[data-interface-style="next"] body .product-details-tabs > .tab-content > .tab-pane,
    html[data-interface-style="next"] body .he-resource-panel,
    html[data-interface-style="next"] body .he-invoice-payment-summary,
    html[data-interface-style="next"] body .he-upgrade-card,
    html[data-interface-style="next"] body .he-resource-upgrade__arrow {
        animation: none;
        transform: none;
    }

    html[data-interface-style="next"] body .he-motion-reveal,
    html[data-interface-style="next"] body .he-motion-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Progressive page continuity. No navigation is delayed when unsupported. */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: he-page-leave 100ms var(--he-ease-standard) both;
}

::view-transition-new(root) {
    animation: he-page-arrive 220ms var(--he-ease-enter) both;
}

@media (prefers-reduced-motion: no-preference) {
    html[data-interface-style="next"] body .page-main {
        animation: he-page-arrive var(--he-motion-slow) var(--he-ease-enter) both;
    }
}

@keyframes he-page-leave {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.72;
    }
}

@keyframes he-page-arrive {
    from {
        opacity: 0.72;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root),
    html[data-interface-style="next"] body .page-main {
        animation: none;
    }
}

/* Top-bar tools and the command-palette-style global destination search. */
html[data-interface-style="next"] body .he-topbar-tool-item {
    display: flex;
    align-items: center;
}

html[data-interface-style="next"] body .topbar .navbar-nav .he-topbar-tool {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    margin: 6px 3px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--he-radius-control);
    background: transparent;
    color: var(--he-fg);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color var(--he-motion-fast) var(--he-ease-standard),
        border-color var(--he-motion-fast) var(--he-ease-standard),
        color var(--he-motion-fast) var(--he-ease-standard),
        box-shadow var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .topbar .navbar-nav .he-topbar-tool:hover,
html[data-interface-style="next"] body .topbar .navbar-nav .he-topbar-tool:focus-visible {
    border-color: var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-topbar-tool__icon {
    display: inline-flex;
    width: 20px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

html[data-interface-style="next"] body .he-topbar-tool__label {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

html[data-interface-style="next"] body .he-topbar-tool__shortcut,
html[data-interface-style="next"] body .he-global-search__input-wrap kbd {
    padding: 3px 6px;
    border: 1px solid var(--he-border-soft);
    border-radius: 4px;
    background: var(--he-card-bg);
    color: var(--he-fg-muted);
    box-shadow: none;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
}

html[data-interface-style="next"] body .he-cart-link {
    text-decoration: none;
}

html[data-interface-style="next"] body .he-cart-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--he-primary);
    color: var(--he-primary-fg);
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

html[data-interface-style="next"] body.he-global-search-open {
    overflow: hidden;
}

html[data-interface-style="next"] body .he-global-search[hidden] {
    display: none;
}

html[data-interface-style="next"] body .he-global-search {
    position: fixed;
    z-index: 1080;
    inset: 0;
    display: grid;
    align-items: start;
    justify-items: center;
    padding: clamp(72px, 12vh, 132px) 20px 28px;
}

html[data-interface-style="next"] body .he-global-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 16, 34, 0.48);
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
    backdrop-filter: blur(8px) saturate(1.08);
}

html[data-interface-style="next"] body .he-global-search__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - clamp(100px, 16vh, 172px));
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--he-border) 76%, transparent);
    border-radius: var(--he-radius-overlay);
    background: color-mix(in srgb, var(--he-card-bg) 88%, transparent);
    box-shadow: var(--he-shadow-overlay);
    color: var(--he-fg);
    overflow-y: auto;
    -webkit-backdrop-filter: blur(24px) saturate(1.18);
    backdrop-filter: blur(24px) saturate(1.18);
}

html[data-interface-style="next"] body .he-global-search__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

html[data-interface-style="next"] body .he-global-search__eyebrow {
    margin: 0 0 2px;
    color: var(--he-primary-accessible);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body .he-global-search__header h2 {
    margin: 0;
    color: var(--he-fg-strong);
    font-size: 22px;
}

html[data-interface-style="next"] body .he-global-search__close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-control);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

html[data-interface-style="next"] body .he-global-search__input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-control);
    background: var(--he-card-bg);
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .he-global-search__input-wrap:focus-within {
    border-color: var(--he-primary);
    box-shadow: 0 0 0 3px var(--he-primary-muted);
}

html[data-interface-style="next"] body .he-global-search__input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--he-fg-strong);
    font-size: 16px;
}

html[data-interface-style="next"] body .he-global-search__hint,
html[data-interface-style="next"] body .he-global-search__empty {
    margin: 10px 2px 14px;
    color: var(--he-fg-muted);
    font-size: 12px;
}

html[data-interface-style="next"] body .he-global-search__results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

html[data-interface-style="next"] body .he-global-search__result {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-control);
    background: color-mix(in srgb, var(--he-card-bg) 78%, transparent);
    color: var(--he-fg);
    text-decoration: none;
    transition:
        background-color var(--he-motion-fast) var(--he-ease-standard),
        border-color var(--he-motion-fast) var(--he-ease-standard),
        box-shadow var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .he-global-search__result:hover,
html[data-interface-style="next"] body .he-global-search__result:focus-visible {
    border-color: color-mix(in srgb, var(--he-primary) 42%, var(--he-border));
    background: var(--he-primary-muted);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--he-primary) 18%, transparent);
    color: var(--he-fg-strong);
    text-decoration: none;
}

html[data-interface-style="next"] body .he-global-search__result-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--he-radius-control);
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] body .he-global-search__result strong,
html[data-interface-style="next"] body .he-global-search__result small {
    display: block;
}

html[data-interface-style="next"] body .he-global-search__result strong {
    color: var(--he-fg-strong);
    font-size: 13px;
}

html[data-interface-style="next"] body .he-global-search__result small {
    margin-top: 3px;
    color: var(--he-fg-muted);
    font-size: 11px;
    line-height: 1.35;
}

@media (prefers-reduced-motion: no-preference) {
    html[data-interface-style="next"] body .he-global-search[data-open="true"] .he-global-search__backdrop,
    html[data-interface-style="next"] body .he-global-search[data-open="true"] .he-global-search__dialog {
        animation: he-search-enter var(--he-motion-slow) var(--he-ease-enter) both;
    }
}

@keyframes he-search-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .he-topbar-tool__label,
    html[data-interface-style="next"] body .he-topbar-tool__shortcut {
        display: none;
    }

    html[data-interface-style="next"] body .he-global-search {
        padding: 64px 10px 10px;
    }

    html[data-interface-style="next"] body .he-global-search__dialog {
        max-height: calc(100vh - 74px);
        padding: 16px;
    }

    html[data-interface-style="next"] body .he-global-search__results {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 374.98px) {
    html[data-interface-style="next"] body .topbar .navbar-nav .he-topbar-tool {
        padding-right: 7px;
        padding-left: 7px;
    }

    html[data-interface-style="next"] body .he-cart-link .he-topbar-tool__icon {
        display: none;
    }
}

/* Email verification is an action banner, not a Bootstrap grid. */
html[data-interface-style="next"] body .email-verification.he-verification-banner {
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 12px 24px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--he-fg);
    font-size: 13px;
    font-weight: 500;
}

html[data-interface-style="next"] body .he-verification-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas:
        "message close"
        "actions actions";
    gap: 6px 10px;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 5px 6px 5px 10px;
    border: 1px solid color-mix(in srgb, var(--he-warning) 24%, var(--he-border));
    border-left: 3px solid var(--he-warning);
    border-radius: var(--he-radius-control);
    background: color-mix(in srgb, var(--he-warning-muted) 72%, var(--he-card-bg));
}

html[data-interface-style="next"] body .he-verification-banner__message {
    display: flex;
    grid-area: message;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

html[data-interface-style="next"] body .he-verification-banner__icon {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--he-radius-control);
    background: transparent;
    color: var(--he-warning);
}

html[data-interface-style="next"] body .he-verification-banner__icon i {
    float: none;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 15px;
}

html[data-interface-style="next"] body .he-verification-banner__text {
    min-width: 0;
    padding: 0;
    color: var(--he-fg);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

html[data-interface-style="next"] body .he-verification-banner__actions {
    grid-area: actions;
    min-width: 0;
    margin-left: 34px;
}

html[data-interface-style="next"] body .he-verification-banner__resend,
html[data-interface-style="next"] body .he-verification-banner__close {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 44px;
    border-radius: var(--he-radius-control);
    transform: none;
}

html[data-interface-style="next"] body .he-verification-banner__resend::after,
html[data-interface-style="next"] body .he-verification-banner__close::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--he-primary-muted);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--he-motion-highlight-exit) linear;
}

html[data-interface-style="next"] body .he-verification-banner__resend > *,
html[data-interface-style="next"] body .he-verification-banner__close > * {
    position: relative;
    z-index: 1;
}

html[data-interface-style="next"] body .he-verification-banner__resend {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--he-fg-strong);
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

html[data-interface-style="next"] body .he-verification-banner__close {
    display: inline-flex;
    grid-area: close;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--he-fg-muted);
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
    opacity: 1;
}

html[data-interface-style="next"] body .he-verification-banner__resend:hover,
html[data-interface-style="next"] body .he-verification-banner__resend:focus-visible {
    border-color: transparent;
    background: transparent;
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-verification-banner__close:hover,
html[data-interface-style="next"] body .he-verification-banner__close:focus-visible {
    background: transparent;
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-verification-banner__resend:hover::after,
html[data-interface-style="next"] body .he-verification-banner__resend:focus-visible::after,
html[data-interface-style="next"] body .he-verification-banner__close:hover::after,
html[data-interface-style="next"] body .he-verification-banner__close:focus-visible::after {
    opacity: 1;
    transition: opacity var(--he-motion-highlight-enter) var(--he-ease-feedback);
}

html[data-interface-style="next"] body .he-verification-banner__resend:focus-visible,
html[data-interface-style="next"] body .he-verification-banner__close:focus-visible {
    outline: 3px solid var(--he-focus-ring);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    html[data-interface-style="next"] body .he-verification-banner__inner {
        grid-template-columns: minmax(0, 1fr) max-content 44px;
        grid-template-areas: "message actions close";
    }

    html[data-interface-style="next"] body .he-verification-banner__actions {
        margin-left: 0;
    }

    html[data-interface-style="next"] body .he-verification-banner__resend {
        width: auto;
    }
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .email-verification.he-verification-banner {
        margin: 10px max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
        padding: 0;
    }

    html[data-interface-style="next"] body .he-verification-banner__inner {
        padding: 6px 6px 6px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] body .he-verification-banner__resend::after,
    html[data-interface-style="next"] body .he-verification-banner__close::after,
    html[data-interface-style="next"] body .he-verification-banner .fa-spin {
        animation: none;
        transition: none;
    }
}

/* Shared authentication and registration form primitives. */
html[data-interface-style="next"] body .he-auth-shell,
html[data-interface-style="next"] body #registration {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

/* Beside the "Already registered?" sidebar a centred form leaves a dead gap; sit it next to the sidebar instead. */
@media (min-width: 992px) {
    html[data-interface-style="next"] body.page-clientregister .primary-content {
        padding-top: 0;
    }

    html[data-interface-style="next"] body.page-clientregister #registration {
        max-width: 880px;
        margin-left: 0;
        padding-top: 0;
    }
}

html[data-interface-style="next"] body .he-auth-form .form-control,
html[data-interface-style="next"] body .he-auth-form .field,
html[data-interface-style="next"] body #registration .form-control,
html[data-interface-style="next"] body #registration .field {
    min-height: 44px;
    border-color: var(--he-border);
    border-radius: var(--he-radius-control);
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-auth-form .form-control:focus,
html[data-interface-style="next"] body .he-auth-form .field:focus,
html[data-interface-style="next"] body #registration .form-control:focus,
html[data-interface-style="next"] body #registration .field:focus {
    border-color: var(--he-primary);
    box-shadow: 0 0 0 3px var(--he-primary-muted);
}

html[data-interface-style="next"] body #registration .card,
html[data-interface-style="next"] body .he-auth-shell .card {
    border-color: var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
}

html[data-interface-style="next"] body #registration .card-title,
html[data-interface-style="next"] body .he-auth-shell .card-title,
html[data-interface-style="next"] body .he-auth-shell .page-header h1 {
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body #registration .prepend-icon {
    position: relative;
}

html[data-interface-style="next"] body #registration .field-icon {
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body #registration .password-strength-meter .progress {
    overflow: hidden;
    border-radius: 4px;
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body #registration .password-strength-meter .progress-bar {
    transition: width var(--he-motion-standard) var(--he-ease-standard), background-color var(--he-motion-standard) var(--he-ease-standard);
}

html[data-interface-style="next"] body .providerLinkingFeedback {
    border-radius: var(--he-radius-control);
}

html[data-interface-style="next"] body .providerPreLinking .social-signin-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html[data-interface-style="next"] body .he-auth-shell .alert,
html[data-interface-style="next"] body #registration .alert {
    border-radius: var(--he-radius-control);
}

html[data-interface-style="next"] body .he-auth-shell .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html[data-interface-style="next"] body .btn-reveal-pw[aria-pressed="true"] {
    border-color: var(--he-primary);
    color: var(--he-primary-accessible);
}

@media (max-width: 575.98px) {
    html[data-interface-style="next"] body .he-auth-shell,
    html[data-interface-style="next"] body #registration {
        max-width: none;
    }

    html[data-interface-style="next"] body .he-auth-shell .form-actions > input,
    html[data-interface-style="next"] body #registration .btn-large {
        width: 100%;
    }
}

/* Reusable surfaces, muted copy, feedback, and overlays. */
html[data-interface-style="next"] body .card,
html[data-interface-style="next"] body .panel,
html[data-interface-style="next"] body .table-container,
html[data-interface-style="next"] body .section-container {
    border-color: var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .card-header,
html[data-interface-style="next"] body .panel-heading,
html[data-interface-style="next"] body .card-footer,
html[data-interface-style="next"] body .list-group-item {
    border-color: var(--he-border-soft);
    background: var(--he-card-bg);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .text-muted,
html[data-interface-style="next"] body .card-subtitle,
html[data-interface-style="next"] body .help-block {
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .badge,
html[data-interface-style="next"] body .label,
html[data-interface-style="next"] body .he-data-status--custom {
    border-radius: 4px;
}

html[data-interface-style="next"] body .label.status,
html[data-interface-style="next"] body span.label.status {
    --he-status-bg: color-mix(in srgb, var(--he-bg-light) 88%, var(--he-fg-muted) 12%);
    --he-status-fg: var(--he-fg-muted);
    --he-status-border: color-mix(in srgb, var(--he-border-soft) 82%, var(--he-fg-muted) 18%);
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid var(--he-status-border);
    border-radius: 4px;
    background: var(--he-status-bg);
    color: var(--he-status-fg);
    box-shadow: none;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: none;
    white-space: nowrap;
}

html[data-interface-style="next"][data-color-scheme="dark"] body .label.status {
    --he-status-bg: color-mix(in srgb, var(--he-bg-light) 78%, var(--he-fg-muted) 22%);
    --he-status-fg: var(--he-fg);
    --he-status-border: color-mix(in srgb, var(--he-border-soft) 70%, var(--he-fg-muted) 30%);
}

html[data-interface-style="next"] body .label.status.status-active,
html[data-interface-style="next"] body .label.status.status-paid,
html[data-interface-style="next"] body .label.status.status-completed {
    --he-status-bg: color-mix(in srgb, var(--he-primary) 13%, var(--he-card-bg));
    --he-status-fg: color-mix(in srgb, var(--he-primary) 68%, var(--he-fg-strong));
    --he-status-border: color-mix(in srgb, var(--he-primary) 22%, var(--he-border-soft));
}

html[data-interface-style="next"] body .label.status.status-pending,
html[data-interface-style="next"] body .label.status.status-open,
html[data-interface-style="next"] body .label.status.status-customer-reply {
    --he-status-bg: color-mix(in srgb, #2f80ed 12%, var(--he-card-bg));
    --he-status-fg: color-mix(in srgb, #2f80ed 62%, var(--he-fg-strong));
    --he-status-border: color-mix(in srgb, #2f80ed 22%, var(--he-border-soft));
}

html[data-interface-style="next"] body .label.status.status-unpaid,
html[data-interface-style="next"] body .label.status.status-suspended,
html[data-interface-style="next"] body .label.status.status-expired {
    --he-status-bg: color-mix(in srgb, #d45454 11%, var(--he-card-bg));
    --he-status-fg: color-mix(in srgb, #c24545 66%, var(--he-fg-strong));
    --he-status-border: color-mix(in srgb, #d45454 22%, var(--he-border-soft));
}

html[data-interface-style="next"] body .label.status.status-refunded,
html[data-interface-style="next"] body .label.status.status-answered,
html[data-interface-style="next"] body .label.status.status-paused {
    --he-status-bg: color-mix(in srgb, #b98224 12%, var(--he-card-bg));
    --he-status-fg: color-mix(in srgb, #9b6d1f 68%, var(--he-fg-strong));
    --he-status-border: color-mix(in srgb, #b98224 22%, var(--he-border-soft));
}

html[data-interface-style="next"] body .label.status.status-cancelled,
html[data-interface-style="next"] body .label.status.status-canceled,
html[data-interface-style="next"] body .label.status.status-terminated,
html[data-interface-style="next"] body .label.status.status-closed,
html[data-interface-style="next"] body .label.status.status-transferred-away {
    --he-status-bg: color-mix(in srgb, var(--he-fg-muted) 10%, var(--he-card-bg));
    --he-status-fg: var(--he-fg-muted);
    --he-status-border: color-mix(in srgb, var(--he-fg-muted) 18%, var(--he-border-soft));
}

html[data-interface-style="next"] body .alert-success,
html[data-interface-style="next"] body .badge-success {
    border-color: color-mix(in srgb, var(--he-success) 28%, transparent);
    background: var(--he-success-muted);
    color: var(--he-success);
}

html[data-interface-style="next"] body .alert-warning,
html[data-interface-style="next"] body .badge-warning {
    border-color: color-mix(in srgb, var(--he-warning) 28%, transparent);
    background: var(--he-warning-muted);
    color: var(--he-warning);
}

html[data-interface-style="next"] body .alert-danger,
html[data-interface-style="next"] body .badge-danger {
    border-color: color-mix(in srgb, var(--he-danger) 28%, transparent);
    background: var(--he-danger-muted);
    color: var(--he-danger);
}

html[data-interface-style="next"] body .modal-content,
html[data-interface-style="next"] body .dropdown-menu,
html[data-interface-style="next"] body .he-preference-panel {
    border-color: var(--he-border-soft);
    border-radius: var(--he-radius-overlay);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-overlay);
    color: var(--he-fg);
}

/* One title treatment for plain client-area pages; hero headers (dashboard, service, store) keep their own. */
html[data-interface-style="next"] body .he-page-title,
html[data-interface-style="next"] body .primary-content .styled_title,
html[data-interface-style="next"] body .primary-content .he-content-header,
html[data-interface-style="next"] body .he-account-audit__header,
html[data-interface-style="next"] body .he-ssl-manage__header {
    margin: 4px 0 20px;
    padding: 0;
    border: 0;
}

html[data-interface-style="next"] body .he-page-title h1,
html[data-interface-style="next"] body .primary-content .styled_title h1,
html[data-interface-style="next"] body .primary-content .he-content-header h1,
html[data-interface-style="next"] body .he-account-audit__header h1,
html[data-interface-style="next"] body .he-ssl-manage__header h1,
html[data-interface-style="next"] body .affiliate-hero-section h1 {
    margin: 0;
    color: var(--he-fg-strong);
    font-size: 28px;
    font-weight: 720;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

html[data-interface-style="next"] body .he-page-title p,
html[data-interface-style="next"] body .primary-content .styled_title h1 small,
html[data-interface-style="next"] body .primary-content .he-content-header p {
    display: block;
    margin: 6px 0 0;
    color: var(--he-fg-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .he-page-title h1,
    html[data-interface-style="next"] body .primary-content .styled_title h1,
    html[data-interface-style="next"] body .primary-content .he-content-header h1,
    html[data-interface-style="next"] body .he-account-audit__header h1,
    html[data-interface-style="next"] body .he-ssl-manage__header h1,
    html[data-interface-style="next"] body .affiliate-hero-section h1 {
        font-size: 24px;
    }
}

/* List data, filters, and tab state. */
html[data-interface-style="next"] body table thead th,
html[data-interface-style="next"] body .dataTables_wrapper table.dataTable thead th {
    border-color: var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body table tbody td,
html[data-interface-style="next"] body .dataTables_wrapper table.dataTable tbody td {
    border-color: var(--he-border-soft);
    background: var(--he-card-bg);
    color: var(--he-fg);
}

html[data-interface-style="next"] body table tbody tr:hover td,
html[data-interface-style="next"] body .dataTables_wrapper table.dataTable tbody tr:hover td {
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .status-tabs {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-bg-light);
}

html[data-interface-style="next"] body .status-tab {
    border: 0;
    border-radius: var(--he-radius-control);
    background: transparent;
    color: var(--he-fg-muted);
    transition: background-color var(--he-motion-fast) var(--he-ease-standard), color var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .status-tab.active,
html[data-interface-style="next"] body .status-tab[aria-selected="true"] {
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

/* Reusable data-list primitives; page spacing belongs in pages/list-workspaces.css. */
html[data-interface-style="next"] .he-list-workspace {
    min-width: 0;
}

html[data-interface-style="next"] .he-data-list-container {
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
    overflow: hidden;
}

html[data-interface-style="next"] .he-data-table {
    width: 100%;
    margin-bottom: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--he-card-bg);
}

html[data-interface-style="next"] .he-data-table thead th {
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

html[data-interface-style="next"] .he-data-table .he-data-cell {
    position: relative;
    isolation: isolate;
    padding: 9px 12px;
    border: 0;
    border-top: 1px solid var(--he-border-soft);
    background: var(--he-card-bg);
    color: var(--he-fg);
    vertical-align: middle;
}

html[data-interface-style="next"] body.page-clientareainvoices .he-data-table .he-data-cell--amount,
html[data-interface-style="next"] body.page-clientareainvoices .he-data-table th.he-data-cell--amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Keep the legacy table hover from changing layout paint; Next owns the mask. */
html[data-interface-style="next"] body.page-clientareaproducts .he-data-table .he-data-row:hover > .he-data-cell,
html[data-interface-style="next"] body.page-clientareaproducts .he-data-table .he-data-row:focus-within > .he-data-cell {
    background: var(--he-card-bg);
}

html[data-interface-style="next"] .he-data-table tbody tr:first-child .he-data-cell {
    border-top: 0;
}

/* Rows are clickable (next-lists.js follows the row's primary link). */
html[data-interface-style="next"] .he-data-row:has(.he-data-primary-link) {
    cursor: pointer;
}

html[data-interface-style="next"] .he-data-row > .he-data-cell::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--he-primary-muted);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--he-motion-highlight-exit) linear;
}

html[data-interface-style="next"] .he-data-row > .he-data-cell > *,
html[data-interface-style="next"] .he-data-row > .he-data-cell::before {
    position: relative;
    z-index: 1;
}

html[data-interface-style="next"] .he-data-row:hover > .he-data-cell::after,
html[data-interface-style="next"] .he-data-row:focus-within > .he-data-cell::after {
    opacity: 1;
    transition: opacity var(--he-motion-highlight-enter) var(--he-ease-feedback);
}

html[data-interface-style="next"] .he-data-row.he-motion-reveal {
    opacity: 0;
}

html[data-interface-style="next"] .he-data-row.he-motion-reveal.is-visible {
    opacity: 1;
    transition: opacity var(--he-motion-reveal) var(--he-ease-enter);
}

html[data-interface-style="next"] .he-service-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

html[data-interface-style="next"] .he-service-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--he-radius-control);
    background: var(--he-card-subtle);
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] .he-service-icon img {
    display: block;
    width: 18px;
    height: 18px;
}

html[data-interface-style="next"] .he-service-copy {
    min-width: 0;
}

html[data-interface-style="next"] .he-data-primary,
html[data-interface-style="next"] .he-data-primary-link {
    color: var(--he-fg-strong);
    font-weight: 700;
}

html[data-interface-style="next"] .he-data-primary-link {
    text-decoration-color: transparent;
    text-underline-offset: 0.18em;
    transition: color var(--he-motion-fast) var(--he-ease-standard), text-decoration-color var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] .he-data-primary-link:hover,
html[data-interface-style="next"] .he-data-primary-link:focus-visible {
    color: var(--he-primary-accessible);
    text-decoration-color: currentColor;
}

html[data-interface-style="next"] .he-data-secondary {
    display: block;
    margin-top: 0.1rem;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html[data-interface-style="next"] .he-data-status-source {
    display: none;
}

html[data-interface-style="next"] .he-data-status {
    white-space: nowrap;
}

html[data-interface-style="next"] .he-data-status--custom {
    --he-ticket-status-color: var(--he-primary);
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.55rem;
    border-inline-start: 3px solid var(--he-ticket-status-color);
    border-radius: 4px;
    background: var(--he-card-subtle);
    color: var(--he-fg-strong);
    font-weight: 700;
}

html[data-interface-style="next"] .he-list-workspace .dataTables_filter {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
}

html[data-interface-style="next"] .he-list-workspace .table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem;
    border-bottom: 1px solid var(--he-border-soft);
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] .he-list-workspace .status-tabs {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}

html[data-interface-style="next"] .he-list-workspace .status-tab {
    min-height: 44px;
    padding: 0.4rem 0.68rem;
    font-size: 0.82rem;
    font-weight: 700;
}

html[data-interface-style="next"] .he-list-workspace .status-tab:focus-visible {
    outline: 3px solid var(--he-focus-ring);
    outline-offset: 2px;
}

html[data-interface-style="next"] .he-list-workspace .toolbar-search {
    flex: 0 1 15rem;
}

html[data-interface-style="next"] .he-list-workspace .toolbar-search-input {
    min-width: 12rem;
}

html[data-interface-style="next"] .he-list-workspace .he-data-cell--action .btn,
html[data-interface-style="next"] .he-list-workspace .pagination .page-link,
html[data-interface-style="next"] .he-list-workspace .dataTables_paginate .paginate_button .page-link {
    min-width: 44px;
    min-height: 44px;
}

html[data-interface-style="next"] .he-list-workspace .he-data-cell--action .btn {
    min-height: 36px;
    padding: 0 12px;
}

html[data-interface-style="next"] .he-list-workspace .dataTables_empty {
    padding: 2.75rem 1rem;
    color: var(--he-fg-muted);
    text-align: center;
}

html[data-interface-style="next"] .he-list-workspace .count-badge {
    color: inherit;
    font-variant-numeric: tabular-nums;
}

@media (forced-colors: active) {
    html[data-interface-style="next"] .he-data-status--custom {
        border-inline-start-color: Highlight;
        background: Canvas;
        color: CanvasText;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] .he-data-row > .he-data-cell::after,
    html[data-interface-style="next"] .he-data-row.he-motion-reveal,
    html[data-interface-style="next"] .he-data-row.he-motion-reveal.is-visible {
        opacity: 1;
        transition: none;
    }

    html[data-interface-style="next"] .he-data-row > .he-data-cell::after {
        opacity: 0;
    }

    html[data-interface-style="next"] .he-data-row:hover > .he-data-cell::after,
    html[data-interface-style="next"] .he-data-row:focus-within > .he-data-cell::after {
        opacity: 1;
    }
}

/* Standalone invoice document primitives. */
html[data-interface-style="next"] body.viewinvoice {
    min-height: 100vh;
    background: var(--he-bg);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-invoice-container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 32px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-interface-style="next"] body .he-invoice-document {
    overflow: hidden;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-overlay);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
    transition: none;
}

html[data-interface-style="next"] body .he-invoice-document__header {
    align-items: center;
    margin: 0;
    padding: 28px;
    border-bottom: 1px solid var(--he-border-soft);
    background: linear-gradient(135deg, var(--he-card-bg), var(--he-primary-muted));
}

html[data-interface-style="next"] body .he-invoice-brand img {
    max-width: min(240px, 100%);
    max-height: 72px;
    object-fit: contain;
}

html[data-interface-style="next"] body .he-invoice-brand h1,
html[data-interface-style="next"] body .he-invoice-brand h2 {
    margin: 8px 0 0;
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-invoice-brand h1 {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

html[data-interface-style="next"] body .he-invoice-status-panel {
    display: flex;
    justify-content: flex-end;
}

html[data-interface-style="next"] body .invoice-status {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-transform: none;
}

html[data-interface-style="next"] body .invoice-status span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    transition: none;
}

html[data-interface-style="next"] body .invoice-status .paid {
    background: var(--he-success-muted);
    color: var(--he-success);
}

html[data-interface-style="next"] body .invoice-status .unpaid,
html[data-interface-style="next"] body .invoice-status .draft,
html[data-interface-style="next"] body .invoice-status .collections {
    background: var(--he-warning-muted);
    color: var(--he-warning);
}

html[data-interface-style="next"] body .invoice-status .cancelled,
html[data-interface-style="next"] body .invoice-status .refunded {
    background: var(--he-danger-muted);
    color: var(--he-danger);
}

html[data-interface-style="next"] body .invoice-status .payment-pending {
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] body .he-invoice-payment-summary {
    width: min(100%, 480px);
    padding: 18px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: color-mix(in srgb, var(--he-card-bg) 90%, var(--he-primary-muted));
}

html[data-interface-style="next"] body .he-invoice-status-line,
html[data-interface-style="next"] body .he-invoice-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

html[data-interface-style="next"] body .he-invoice-status-line {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--he-border-soft);
}

html[data-interface-style="next"] body .he-invoice-due-date {
    color: var(--he-fg-muted);
    font-size: .78rem;
}

html[data-interface-style="next"] body .he-invoice-due-date strong {
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-invoice-amount-row {
    padding-top: 16px;
}

html[data-interface-style="next"] body .he-invoice-amount-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
    color: var(--he-fg-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body .he-invoice-balance {
    overflow-wrap: anywhere;
    color: var(--he-fg-strong);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 780;
    letter-spacing: -.035em;
    line-height: 1.05;
}

html[data-interface-style="next"] body .he-invoice-payment-hint {
    margin: 13px 0 0;
    color: var(--he-fg-muted);
    font-size: .76rem;
    line-height: 1.45;
}

html[data-interface-style="next"] body .he-invoice-parties,
html[data-interface-style="next"] body .he-invoice-items,
html[data-interface-style="next"] body .he-invoice-transactions,
html[data-interface-style="next"] body .he-invoice-actions,
html[data-interface-style="next"] body .he-invoice-credit,
html[data-interface-style="next"] body .he-invoice-document > .panel {
    margin: 24px 28px;
}

html[data-interface-style="next"] body .invoice-party-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

html[data-interface-style="next"] body .invoice-party-card,
html[data-interface-style="next"] body .invoice-summary-panel {
    padding: 18px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .invoice-party-label {
    display: block;
    margin: 0 0 8px;
    color: var(--he-fg-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body .invoice-meta-row + .invoice-meta-row {
    margin-top: 18px;
}

html[data-interface-style="next"] body .invoice-meta-row address,
html[data-interface-style="next"] body .invoice-party-card address {
    margin: 0;
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-invoice-items,
html[data-interface-style="next"] body .he-invoice-transactions {
    overflow: hidden;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
}

html[data-interface-style="next"] body .invoice-section-heading {
    padding: 16px 18px;
    border-bottom: 1px solid var(--he-border-soft);
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .invoice-section-heading h2,
html[data-interface-style="next"] body .invoice-summary-title {
    margin: 0;
    color: var(--he-fg-strong);
    font-size: 1rem;
    font-weight: 700;
}

html[data-interface-style="next"] body .he-invoice-items .table,
html[data-interface-style="next"] body .he-invoice-transactions .table {
    margin: 0;
}

html[data-interface-style="next"] body .he-invoice-items th,
html[data-interface-style="next"] body .he-invoice-transactions th {
    border-top: 0;
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body .invoice-summary-panel {
    margin: 18px;
    margin-left: auto;
    max-width: 360px;
}

html[data-interface-style="next"] body .invoice-summary-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

html[data-interface-style="next"] body .invoice-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .invoice-summary-row strong {
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .invoice-summary-row--total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--he-border);
    color: var(--he-fg-strong);
    font-size: 1.05rem;
}

html[data-interface-style="next"] body .he-invoice-credit {
    overflow: hidden;
    border-color: color-mix(in srgb, var(--he-success) 38%, var(--he-border-soft));
    background: var(--he-card-bg);
}

html[data-interface-style="next"] body .he-invoice-credit .card-header {
    border-bottom-color: color-mix(in srgb, var(--he-success) 30%, var(--he-border-soft));
    background: var(--he-success-muted);
    color: var(--he-success);
}

html[data-interface-style="next"] body .he-invoice-credit .card-body {
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-invoice-credit .card-title {
    margin: 0;
    color: var(--he-success);
    font-size: 1rem;
    line-height: 1.35;
}

html[data-interface-style="next"] body .he-invoice-credit-submit {
    border-color: var(--he-border);
    background: var(--he-card-subtle);
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-invoice-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--he-border-soft);
}

html[data-interface-style="next"] body .invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html[data-interface-style="next"] body .invoice-action-btn,
html[data-interface-style="next"] body .invoice-back-btn {
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-control);
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
    transform: none;
}

html[data-interface-style="next"] body .invoice-action-btn:hover,
html[data-interface-style="next"] body .invoice-action-btn:focus,
html[data-interface-style="next"] body .invoice-back-btn:hover,
html[data-interface-style="next"] body .invoice-back-btn:focus {
    border-color: var(--he-primary);
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
}

/* Client-area dashboard composition. */
html[data-interface-style="next"] body .he-dashboard-hero-card {
    border-color: var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
}

html[data-interface-style="next"] body .he-dashboard-eyebrow,
html[data-interface-style="next"] body .he-dashboard-date {
    border: 1px solid var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .he-dashboard-stat-card {
    border-color: var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-subtle);
    box-shadow: none;
    transition: border-color var(--he-motion-standard) var(--he-ease-standard), background-color var(--he-motion-standard) var(--he-ease-standard);
}

html[data-interface-style="next"] body .he-dashboard-stat-card:hover,
html[data-interface-style="next"] body .he-dashboard-stat-card:focus {
    border-color: color-mix(in srgb, var(--he-primary) 45%, var(--he-border));
    background: var(--he-primary-muted);
}

html[data-interface-style="next"] body .client-dashboard__panels .he-dashboard-list-status {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 9px;
    float: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

html[data-interface-style="next"] body .client-dashboard__panels .dashboard-panel .card-footer:empty {
    display: none;
}

/* Payment actions need a clear, semantic warning treatment instead of the
   low-contrast colour generated by the legacy card accent utility. */
html[data-interface-style="next"] body .client-dashboard__panels .dashboard-panel .card-header .card-header-action.bg-color-red,
html[data-interface-style="next"] body .client-dashboard__panels .dashboard-panel .card-header .btn.bg-color-red {
    border: 1px solid color-mix(in srgb, var(--he-warning) 34%, var(--he-border));
    background: var(--he-warning-muted);
    color: var(--he-warning);
    font-weight: 650;
}

html[data-interface-style="next"] body .client-dashboard__panels .dashboard-panel .card-header .card-header-action.bg-color-red:hover,
html[data-interface-style="next"] body .client-dashboard__panels .dashboard-panel .card-header .card-header-action.bg-color-red:focus-visible,
html[data-interface-style="next"] body .client-dashboard__panels .dashboard-panel .card-header .btn.bg-color-red:hover,
html[data-interface-style="next"] body .client-dashboard__panels .dashboard-panel .card-header .btn.bg-color-red:focus-visible {
    border-color: var(--he-warning);
    background: color-mix(in srgb, var(--he-warning-muted) 72%, var(--he-card-bg));
    color: var(--he-warning-hover);
}

html[data-interface-style="next"] body .he-dashboard-view-all {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: var(--he-primary-accessible);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

html[data-interface-style="next"] body .he-dashboard-view-all:hover,
html[data-interface-style="next"] body .he-dashboard-view-all:focus-visible {
    color: var(--he-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Public homepage composition, built on semantic public-homepage class names. */
html[data-interface-style="next"] body .public-homepage {
    padding: 18px 6px 40px;
}

html[data-interface-style="next"] body .public-homepage__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
    gap: 22px;
    margin-bottom: 26px;
}

html[data-interface-style="next"] body .public-homepage__hero-main,
html[data-interface-style="next"] body .public-homepage__section,
html[data-interface-style="next"] body .public-homepage__domain-panel {
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-overlay);
    background: linear-gradient(135deg, var(--he-card-bg), var(--he-card-subtle));
    box-shadow: var(--he-shadow-card);
}

html[data-interface-style="next"] body .public-homepage__hero-main,
html[data-interface-style="next"] body .public-homepage__section {
    padding: 28px;
}

html[data-interface-style="next"] body .public-homepage__eyebrow,
html[data-interface-style="next"] body .public-homepage__section-label,
html[data-interface-style="next"] body .public-homepage__hero-card-label {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 12px;
    border-radius: 4px;
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body .public-homepage__title,
html[data-interface-style="next"] body .public-homepage__section-title {
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .public-homepage__title {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.16;
}

html[data-interface-style="next"] body .public-homepage__lead,
html[data-interface-style="next"] body .public-homepage__domain-copy p,
html[data-interface-style="next"] body .public-homepage__product-desc {
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .public-homepage__hero-metrics,
html[data-interface-style="next"] body .public-homepage__shortcut-grid,
html[data-interface-style="next"] body .public-homepage__product-grid {
    display: grid;
    gap: 14px;
}

html[data-interface-style="next"] body .public-homepage__hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-interface-style="next"] body .public-homepage__metric,
html[data-interface-style="next"] body .public-homepage__product-card {
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
}

html[data-interface-style="next"] body .public-homepage__metric {
    padding: 14px;
}

html[data-interface-style="next"] body .public-homepage__metric strong,
html[data-interface-style="next"] body .public-homepage__product-name {
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .public-homepage__metric span {
    color: var(--he-fg-muted);
    font-size: 0.8125rem;
}

html[data-interface-style="next"] body .public-homepage__hero-card {
    height: 100%;
    padding: 22px;
    border-radius: var(--he-radius-overlay);
    background: var(--he-sidebar-bg);
    color: var(--he-sidebar-link-hover);
}

html[data-interface-style="next"] body .public-homepage__hero-card-label {
    background: var(--he-sidebar-link-hover-bg);
    color: var(--he-sidebar-link-hover);
}

html[data-interface-style="next"] body .public-homepage__hero-card-title {
    margin: 18px 0 20px;
    font-size: 1.5rem;
}

html[data-interface-style="next"] body .public-homepage__shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-interface-style="next"] body .public-homepage__shortcut-link {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--he-sidebar-link-hover-bg);
    border-radius: var(--he-radius-card);
    background: var(--he-sidebar-link-hover-bg);
    color: var(--he-sidebar-link-hover);
    text-decoration: none;
    transform: none;
    transition: background-color var(--he-motion-fast) var(--he-ease-standard), border-color var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .public-homepage__shortcut-link:hover,
html[data-interface-style="next"] body .public-homepage__shortcut-link:focus {
    border-color: var(--he-primary);
    background: var(--he-primary);
    color: var(--he-primary-fg);
}

html[data-interface-style="next"] body .public-homepage__product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-interface-style="next"] body .public-homepage__product-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    color: var(--he-fg);
    text-decoration: none;
    transform: none;
    transition: border-color var(--he-motion-fast) var(--he-ease-standard), box-shadow var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .public-homepage__product-card:hover,
html[data-interface-style="next"] body .public-homepage__product-card:focus {
    border-color: var(--he-primary);
    box-shadow: var(--he-shadow-card);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .public-homepage__product-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--he-radius-control);
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] body .public-homepage__product-link {
    margin-top: auto;
    color: var(--he-primary-accessible);
    font-weight: 700;
}

html[data-interface-style="next"] body .public-homepage__domain-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
    padding: 26px 28px;
}

html[data-interface-style="next"] body .public-homepage__domain-section {
    margin-bottom: 22px;
}

html[data-interface-style="next"] body .public-homepage__domain-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

html[data-interface-style="next"] body .public-homepage__domain-input {
    min-width: 240px;
}

html[data-interface-style="next"] body .domainchecker-homepage-captcha #inputCaptcha {
    min-height: 44px;
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .public-homepage__hero,
    html[data-interface-style="next"] body .public-homepage__domain-panel {
        grid-template-columns: 1fr;
    }

    html[data-interface-style="next"] body .public-homepage__product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479.98px) {
    html[data-interface-style="next"] body .public-homepage__hero-main,
    html[data-interface-style="next"] body .public-homepage__section,
    html[data-interface-style="next"] body .public-homepage__domain-panel {
        padding: 20px;
    }

    html[data-interface-style="next"] body .public-homepage__hero-metrics,
    html[data-interface-style="next"] body .public-homepage__shortcut-grid {
        grid-template-columns: 1fr;
    }

    html[data-interface-style="next"] body .public-homepage__domain-form > .btn,
    html[data-interface-style="next"] body .public-homepage__domain-input {
        width: 100%;
    }
}

/* Legacy client-area domain checker, bulk lookup, and pricing surfaces. */
html[data-interface-style="next"] body.page-domainchecker .well,
html[data-interface-style="next"] body.page-bulkdomainchecker .well,
html[data-interface-style="next"] body.page-bulkdomaintransfer .well {
    margin: 18px 0 24px;
    padding: 24px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    color: var(--he-fg);
    box-shadow: var(--he-shadow-card);
}

html[data-interface-style="next"] body.page-domainchecker .well > p:first-child {
    margin-bottom: 12px;
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body.page-domainchecker input.bigfield,
html[data-interface-style="next"] body.page-bulkdomainchecker input.bigfield,
html[data-interface-style="next"] body.page-bulkdomaintransfer input.bigfield,
html[data-interface-style="next"] body.page-bulkdomainchecker textarea.bulksearch,
html[data-interface-style="next"] body.page-bulkdomaintransfer textarea.bulksearch {
    width: min(100%, 42rem);
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-control);
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
    box-shadow: none;
    font: inherit;
}

html[data-interface-style="next"] body.page-bulkdomainchecker textarea.bulksearch,
html[data-interface-style="next"] body.page-bulkdomaintransfer textarea.bulksearch {
    min-height: 10rem;
    resize: vertical;
}

html[data-interface-style="next"] body.page-domainchecker .multitldbtn {
    position: static;
    display: flex;
    height: auto;
    justify-content: center;
    margin: 0 0 8px;
}

html[data-interface-style="next"] body.page-domainchecker .multitldbtn input,
html[data-interface-style="next"] body.page-domainchecker .btn-large:not(.btn-primary):not(.btn-success):not(.btn-danger) {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--he-dashboard-action-border);
    border-radius: var(--he-radius-control);
    background: var(--he-dashboard-action-bg);
    color: var(--he-dashboard-action-color);
    font-size: 13px;
}

html[data-interface-style="next"] body.page-domainchecker .multitldbtn input:hover,
html[data-interface-style="next"] body.page-domainchecker .btn-large:not(.btn-primary):not(.btn-success):not(.btn-danger):hover {
    border-color: var(--he-dashboard-action-hover-border);
    background: var(--he-dashboard-action-hover-bg);
    color: var(--he-dashboard-action-hover-color);
}

html[data-interface-style="next"] body.page-domainchecker .domcheckertldselect,
html[data-interface-style="next"] body.page-domainchecker .captchainput {
    width: min(100%, 42rem);
    margin-right: auto;
    margin-left: auto;
    padding: 14px;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-card);
    background: var(--he-card-subtle);
    color: var(--he-fg);
}

html[data-interface-style="next"] body.page-domainchecker .domcheckertldselect {
    border-top: 1px solid var(--he-border);
}

html[data-interface-style="next"] body.page-domainchecker .domcheckertldselect .col4 {
    padding: 3px;
}

html[data-interface-style="next"] body.page-domainchecker .domcheckertldselect label.full {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px 10px;
    border-radius: var(--he-radius-control);
    color: var(--he-fg);
}

html[data-interface-style="next"] body.page-domainchecker .domcheckertldselect label.full:hover {
    background: var(--he-primary-muted);
}

html[data-interface-style="next"] body.page-domainchecker .internalpadding {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 18px 0 0;
}

html[data-interface-style="next"] body.page-domainchecker input[type="submit"].btn-danger {
    border-color: var(--he-accent);
    background: var(--he-accent);
    color: var(--he-accent-fg);
}

html[data-interface-style="next"] body.page-domainchecker input[type="submit"].btn-danger:hover,
html[data-interface-style="next"] body.page-domainchecker input[type="submit"].btn-danger:focus {
    border-color: var(--he-accent-hover);
    background: var(--he-accent-hover);
    color: var(--he-accent-hover-fg);
}

html[data-interface-style="next"] body.page-domainchecker .domcheckersuccess,
html[data-interface-style="next"] body.page-domainchecker .domcheckererror {
    font-weight: 700;
}

html[data-interface-style="next"] body.page-domainchecker .domcheckersuccess {
    color: var(--he-success);
}

html[data-interface-style="next"] body.page-domainchecker .domcheckererror {
    color: var(--he-danger);
}

html[data-interface-style="next"] body.page-domainchecker .center80 {
    width: min(100%, 68rem);
    margin-right: auto;
    margin-left: auto;
}

html[data-interface-style="next"] body.page-domainchecker .table-framed {
    overflow: hidden;
    border-color: var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
}

html[data-interface-style="next"] body.page-domainchecker .table-framed select {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body.page-domainchecker .well,
    html[data-interface-style="next"] body.page-bulkdomainchecker .well,
    html[data-interface-style="next"] body.page-bulkdomaintransfer .well {
        padding: 16px;
    }

    html[data-interface-style="next"] body.page-domainchecker .domcheckertldselect .col4 {
        width: 50%;
    }

    html[data-interface-style="next"] body.page-domainchecker .internalpadding .btn,
    html[data-interface-style="next"] body.page-domainchecker .internalpadding input[type="submit"] {
        width: 100%;
    }

    html[data-interface-style="next"] body.page-domainchecker .table-framed {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 374.98px) {
    html[data-interface-style="next"] body.page-domainchecker .domcheckertldselect .col4 {
        width: 100%;
    }
}

/* Login, registration, password reset, and two-factor page composition. */
html[data-interface-style="next"] body .login-page {
    padding: clamp(24px, 5vw, 56px) 20px 64px;
    background:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--he-primary) 8%, transparent), transparent 28rem),
        var(--he-bg);
}

html[data-interface-style="next"] body.page-login .primary-content,
html[data-interface-style="next"] body.page-login .login-page {
    width: 100%;
    max-width: none;
}

html[data-interface-style="next"] body .login-page__inner {
    max-width: 1180px;
    margin: 0 auto;
}

html[data-interface-style="next"] body .he-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-overlay);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-overlay);
}

html[data-interface-style="next"] body .he-login-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 620px;
    align-items: flex-end;
    overflow: hidden;
    background: #071d3c;
    color: #ffffff;
}

html[data-interface-style="next"] body .he-login-showcase__image,
html[data-interface-style="next"] body .he-login-showcase__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

html[data-interface-style="next"] body .he-login-showcase__image {
    z-index: -2;
    object-fit: cover;
    object-position: 58% center;
}

html[data-interface-style="next"] body .he-login-showcase__shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(4, 20, 48, 0.18), rgba(3, 17, 39, 0.88)),
        linear-gradient(90deg, rgba(5, 27, 60, 0.72), transparent 76%);
}

html[data-interface-style="next"] body .he-login-showcase__content {
    width: 100%;
    max-width: 560px;
    padding: clamp(30px, 5vw, 56px);
}

html[data-interface-style="next"] body .he-login-showcase__eyebrow,
html[data-interface-style="next"] body .he-login-panel__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body .he-login-showcase__eyebrow {
    color: #ffbd8f;
}

html[data-interface-style="next"] body .he-login-showcase h1 {
    max-width: 11ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

html[data-interface-style="next"] body .he-login-showcase__content > p:not(.he-login-showcase__eyebrow) {
    max-width: 34rem;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

html[data-interface-style="next"] body .he-login-showcase__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

html[data-interface-style="next"] body .he-login-showcase__features span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--he-radius-control);
    background: rgba(7, 29, 60, 0.38);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

html[data-interface-style="next"] body .he-login-showcase__links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

html[data-interface-style="next"] body .he-login-showcase__links a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

html[data-interface-style="next"] body .he-login-showcase__links a:hover,
html[data-interface-style="next"] body .he-login-showcase__links a:focus-visible {
    color: #ffbd8f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-interface-style="next"] body .he-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 52px);
    background: var(--he-card-bg);
}

html[data-interface-style="next"] body .he-login-panel .login-form {
    width: 100%;
    max-width: 480px;
}

html[data-interface-style="next"] body .login-page .login-card {
    overflow: hidden;
    border-color: var(--he-border-soft);
    border-radius: var(--he-radius-overlay);
    box-shadow: var(--he-shadow-overlay);
}

html[data-interface-style="next"] body .login-page .login-card .card-header {
    border-bottom: 0;
    background: var(--he-sidebar-bg);
    padding: 22px 30px;
}

html[data-interface-style="next"] body .he-login-panel__eyebrow {
    color: #ffbd8f;
}

html[data-interface-style="next"] body .login-page .login-card .card-body,
html[data-interface-style="next"] body .login-page .login-card .card-footer {
    background: var(--he-card-bg);
}

html[data-interface-style="next"] body .login-page .login-card .card-footer {
    border-top-color: var(--he-border-soft);
}

html[data-interface-style="next"] body .login-page .input-group-text {
    border-color: var(--he-border);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .login-page .login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
}

html[data-interface-style="next"] body .login-page .login-actions .btn {
    min-width: 140px;
}

html[data-interface-style="next"] body .login-page .login-remember {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .login-page .btn-reveal-pw {
    border-color: var(--he-border);
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .he-auth-shell {
    padding: 28px 20px 48px;
}

html[data-interface-style="next"] body .he-auth-shell .logincontainer,
html[data-interface-style="next"] body .he-auth-shell .form-horizontal {
    padding: 24px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
}

html[data-interface-style="next"] body .he-auth-shell .control-label {
    color: var(--he-fg-strong);
    font-weight: 600;
}

html[data-interface-style="next"] body .he-auth-shell .twofabackupcode {
    font-size: 1.125rem;
    letter-spacing: 0.08em;
}

html[data-interface-style="next"] body #registration {
    padding: 24px 0 48px;
}

html[data-interface-style="next"] body #registration .field-icon .sr-only {
    position: absolute;
}

@media (max-width: 575.98px) {
    html[data-interface-style="next"] body .login-page {
        padding: 14px 10px 32px;
    }

    html[data-interface-style="next"] body .login-page .login-actions {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-interface-style="next"] body .login-page .login-actions .btn {
        width: 100%;
    }

    html[data-interface-style="next"] body .he-auth-shell .logincontainer,
    html[data-interface-style="next"] body .he-auth-shell .form-horizontal {
        padding: 18px;
    }

    html[data-interface-style="next"] body .he-login-showcase {
        min-height: 300px;
    }

    html[data-interface-style="next"] body .he-login-showcase__content {
        padding: 24px;
    }

    html[data-interface-style="next"] body .he-login-showcase__features span:nth-child(3) {
        display: none;
    }

    html[data-interface-style="next"] body .he-login-showcase__links {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    html[data-interface-style="next"] body .he-login-panel {
        padding: 18px 12px;
    }

    html[data-interface-style="next"] body .login-page .login-card .card-header {
        padding: 18px 20px;
    }
}

@media (max-width: 991.98px) {
    html[data-interface-style="next"] body .he-login-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    html[data-interface-style="next"] body .he-login-showcase {
        min-height: 380px;
    }

    html[data-interface-style="next"] body .he-login-showcase h1 {
        max-width: 16ch;
    }
}

/* Services, invoices, and tickets share this quiet workspace frame. */
html[data-interface-style="next"] .he-list-workspace--services,
html[data-interface-style="next"] .he-list-workspace--invoices {
    margin-top: 1rem;
}

html[data-interface-style="next"] .he-list-workspace--services .he-data-cell--product {
    width: 40%;
    text-align: left;
}

html[data-interface-style="next"] .he-list-workspace--services .he-data-cell--amount,
html[data-interface-style="next"] .he-list-workspace--services .he-data-cell--due {
    width: 17%;
}

html[data-interface-style="next"] .he-list-workspace .he-data-cell--action {
    white-space: nowrap;
}

html[data-interface-style="next"] .he-list-workspace--tickets {
    margin-top: 0.25rem;
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-page__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-subtle);
    margin-bottom: 1rem;
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-page__eyebrow {
    margin-bottom: 0.25rem;
    color: var(--he-fg-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-page__title {
    margin: 0;
    color: var(--he-fg-strong);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-page__desc {
    max-width: 48rem;
    margin: 0.4rem 0 0;
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-page__cta {
    flex: 0 0 auto;
    white-space: nowrap;
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-list-table__subject-link {
    display: block;
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-number {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--he-fg-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

html[data-interface-style="next"] .he-list-workspace--tickets .ticket-subject {
    color: var(--he-fg-strong);
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] .he-data-list-container {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    html[data-interface-style="next"] .he-list-workspace .table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-interface-style="next"] .he-list-workspace .toolbar-search,
    html[data-interface-style="next"] .he-list-workspace .toolbar-search-input {
        width: 100%;
        min-width: 0;
    }

    html[data-interface-style="next"] .he-list-workspace .status-tabs,
    html[data-interface-style="next"] .he-list-workspace .toolbar-search {
        flex: 0 0 auto;
        height: auto;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table thead {
        display: none;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table thead,
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table thead {
        display: none;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tbody,
    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tr,
    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table td,
    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table tbody,
    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table tr,
    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table td,
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table tbody,
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table tr,
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tbody tr {
        margin-bottom: 0.85rem;
        padding: 1rem;
        border: 1px solid var(--he-border-soft);
        border-radius: var(--he-radius-card);
        background: var(--he-card-bg);
        box-shadow: var(--he-shadow-card);
        overflow: hidden;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table tbody tr,
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table tbody tr {
        margin-bottom: 0.85rem;
        padding: 0.75rem;
        border: 1px solid var(--he-border-soft);
        border-radius: var(--he-radius-card);
        background: var(--he-card-bg);
        box-shadow: var(--he-shadow-card);
        overflow: hidden;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.75rem;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tbody td {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.55rem 0;
        border: 0;
        text-align: left;
        overflow-wrap: anywhere;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table tbody td,
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table tbody td {
        display: grid;
        grid-template-columns: minmax(5.5rem, 38%) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
        padding: 0.55rem 0;
        border: 0;
        text-align: left;
        overflow-wrap: anywhere;
    }

    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table .he-data-cell--amount {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table .he-data-cell--amount::before {
        text-align: left;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 5.5rem;
        color: var(--he-fg-muted);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.45;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table tbody td::before,
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table tbody td::before {
        content: attr(data-label);
        color: var(--he-fg-muted);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.45;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table .he-data-cell--product {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 0;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table .he-data-cell--product::before {
        display: block;
        margin-bottom: 0.45rem;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table .he-service-identity {
        align-items: flex-start;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table :is(.he-data-cell--amount, .he-data-cell--due, .he-data-cell--status) {
        display: block;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table :is(.he-data-cell--amount, .he-data-cell--due, .he-data-cell--status)::before {
        display: block;
        margin-bottom: 0.3rem;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table .he-data-cell--action {
        display: flex;
        align-items: flex-end;
        padding-top: 0.55rem;
        border-top: 0;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table .he-data-cell--action::before {
        display: none;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table .he-data-cell--action .btn {
        width: 100%;
        min-height: 44px;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tbody td:nth-child(2) {
        display: block;
        padding-top: 0;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tbody td:nth-child(2)::before {
        display: block;
        margin-bottom: 0.45rem;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table .w-hidden,
    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table .hidden-status {
        display: none;
    }

    html[data-interface-style="next"] #tableTicketsList.is-mobile-card-table tbody td > :not(.w-hidden):not(.hidden-status) {
        flex: 1 1 auto;
        min-width: 0;
    }

    html[data-interface-style="next"] #tableServicesList.is-mobile-card-table tbody td > :not(.w-hidden):not(.hidden-status),
    html[data-interface-style="next"] #tableInvoicesList.is-mobile-card-table tbody td > :not(.w-hidden):not(.hidden-status) {
        min-width: 0;
    }

    html[data-interface-style="next"] .he-list-workspace--tickets .ticket-page__hero {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-interface-style="next"] .he-list-workspace--tickets .ticket-page__cta {
        width: 100%;
        text-align: center;
    }
}

/* Package and configurable-option upgrade flow. */
html[data-interface-style="next"] body .he-upgrade-workspace {
    display: grid;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

html[data-interface-style="next"] body .he-upgrade-context {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--he-primary) 24%, var(--he-border-soft));
    border-radius: var(--he-radius-card);
    background: var(--he-primary-muted);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-upgrade-context p,
html[data-interface-style="next"] body .he-upgrade-footer {
    margin: 0;
}

html[data-interface-style="next"] body .he-upgrade-card {
    overflow: hidden;
    width: 100%;
    margin: 0;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

html[data-interface-style="next"] body .he-upgrade-card .table-responsive {
    margin: 0;
}

html[data-interface-style="next"] body .he-upgrade-table {
    min-width: 720px;
    margin: 0;
    background: var(--he-card-bg);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-upgrade-table > thead > tr > th {
    padding: 13px 16px;
    border-color: var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
    font-size: 12px;
    font-weight: 720;
    letter-spacing: .025em;
    text-transform: none;
}

html[data-interface-style="next"] body .he-upgrade-table > tbody > tr > td {
    padding: 15px 16px;
    border-color: var(--he-border-soft);
    background: var(--he-card-bg);
    color: var(--he-fg);
    transition: background-color var(--he-motion-fast) var(--he-ease-standard);
    vertical-align: middle;
}

html[data-interface-style="next"] body .he-upgrade-table > tbody > tr:nth-of-type(odd) > td {
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .he-upgrade-table select.form-control,
html[data-interface-style="next"] body .he-upgrade-table input.form-control {
    min-height: 42px;
    border-color: var(--he-border);
    border-radius: var(--he-radius-control);
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-upgrade-table select.form-control {
    min-width: 220px;
}

html[data-interface-style="next"] body .he-upgrade-direction {
    width: 54px;
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] body .he-upgrade-check,
html[data-interface-style="next"] body .he-upgrade-quantity {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

html[data-interface-style="next"] body .he-upgrade-check input {
    width: 18px;
    height: 18px;
}

html[data-interface-style="next"] body .he-upgrade-quantity input.form-control {
    width: 88px;
}

html[data-interface-style="next"] body .he-upgrade-select,
html[data-interface-style="next"] body .he-upgrade-continue {
    min-height: 44px;
}

html[data-interface-style="next"] body .he-upgrade-footer {
    display: flex;
    justify-content: flex-end;
}

html[data-interface-style="next"] body .he-upgrade-continue {
    min-width: 168px;
}

html[data-interface-style="next"] body .he-upgrade-table--options > tbody > tr:focus-within > td {
    background: color-mix(in srgb, var(--he-primary) 7%, var(--he-card-bg));
}

html[data-interface-style="next"] body .he-upgrade-table--options > tbody > tr.is-edited > td {
    background: color-mix(in srgb, var(--he-primary) 11%, var(--he-card-bg));
}

html[data-interface-style="next"] body form.has-changes .he-upgrade-continue {
    box-shadow: 0 7px 18px color-mix(in srgb, var(--he-primary) 24%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
    html[data-interface-style="next"] body .he-upgrade-table--options > tbody > tr.is-changing .he-upgrade-direction i {
        animation: he-upgrade-change-cue 420ms var(--he-ease-standard) both;
    }
}

@keyframes he-upgrade-change-cue {
    0%,
    100% {
        opacity: 1;
    }

    55% {
        opacity: .45;
    }
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .he-upgrade-workspace {
        gap: 14px;
    }

    html[data-interface-style="next"] body .he-upgrade-table {
        min-width: 650px;
    }

    html[data-interface-style="next"] body .he-upgrade-footer,
    html[data-interface-style="next"] body .he-upgrade-continue {
        width: 100%;
    }
}

@media (forced-colors: active) {
    html[data-interface-style="next"] body .he-upgrade-card,
    html[data-interface-style="next"] body .he-upgrade-context {
        border: 1px solid CanvasText;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] body .he-upgrade-table > tbody > tr > td,
    html[data-interface-style="next"] body .he-upgrade-continue,
    html[data-interface-style="next"] body .he-upgrade-direction i {
        animation: none;
        transform: none;
        transition: none;
    }
}

/* Product and server detail workspace. Keep selectors scoped to the Next presenter. */
html[data-interface-style="next"] body.page-clientareaproductdetails .he-service-detail {
    display: grid;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-service-hero {
    overflow: hidden;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background:
        radial-gradient(circle at 92% 5%, var(--he-accent-muted), transparent 28%),
        linear-gradient(135deg, var(--he-card-bg), var(--he-card-subtle));
    box-shadow: var(--he-shadow-card);
    transition: none;
}

html[data-interface-style="next"] body .he-service-hero__identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 26px 28px 22px;
}

html[data-interface-style="next"] body .he-service-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--he-radius-control);
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
    font-size: 21px;
}

html[data-interface-style="next"] body .he-service-hero__copy,
html[data-interface-style="next"] body .he-service-hero__title-row {
    min-width: 0;
}

html[data-interface-style="next"] body .he-service-hero__eyebrow {
    margin: 0 0 4px;
    color: var(--he-primary-accessible);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

html[data-interface-style="next"] body .he-service-hero__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

html[data-interface-style="next"] body .he-service-hero h1 {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--he-fg-strong);
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 760;
    letter-spacing: -.025em;
    line-height: 1.2;
}

html[data-interface-style="next"] body .he-service-hero__product {
    margin: 5px 0 0;
    color: var(--he-fg-muted);
    font-size: 14px;
}

html[data-interface-style="next"] body .he-service-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
    font-size: 12px;
    font-weight: 750;
    transition: none;
}

html[data-interface-style="next"] body .he-service-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

html[data-interface-style="next"] body .he-service-status--active {
    background: var(--he-success-muted);
    color: var(--he-success);
}

html[data-interface-style="next"] body .he-service-status--pending {
    background: var(--he-warning-muted);
    color: var(--he-warning);
}

html[data-interface-style="next"] body .he-service-status--suspended,
html[data-interface-style="next"] body .he-service-status--terminated,
html[data-interface-style="next"] body .he-service-status--cancelled {
    background: var(--he-danger-muted);
    color: var(--he-danger);
}

html[data-interface-style="next"] body .he-service-hero__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    white-space: nowrap;
}

html[data-interface-style="next"] body .he-service-hero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--he-border-soft);
    background: color-mix(in srgb, var(--he-card-subtle) 78%, transparent);
}

html[data-interface-style="next"] body .he-service-hero__facts > div {
    min-width: 0;
    padding: 15px 20px 17px;
    border-right: 1px solid var(--he-border-soft);
}

html[data-interface-style="next"] body .he-service-hero__facts > div:last-child {
    border-right: 0;
}

html[data-interface-style="next"] body .he-service-hero__facts dt {
    margin-bottom: 3px;
    color: var(--he-fg-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .025em;
}

html[data-interface-style="next"] body .he-service-hero__facts dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--he-fg-strong);
    font-size: 14px;
    font-weight: 720;
}

html[data-interface-style="next"] body .he-service-detail .card,
html[data-interface-style="next"] body .he-service-detail .panel {
    overflow: hidden;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

html[data-interface-style="next"] body .he-service-detail .card-header,
html[data-interface-style="next"] body .he-service-detail .panel-heading {
    min-height: 48px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-strong);
    font-size: 13px;
}

html[data-interface-style="next"] body .he-service-detail .card-body,
html[data-interface-style="next"] body .he-service-detail .panel-body {
    padding: 18px;
}

html[data-interface-style="next"] body .he-service-detail > .row {
    margin-right: -10px;
    margin-left: -10px;
}

html[data-interface-style="next"] body .he-service-detail > .row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

html[data-interface-style="next"] body .connection-info-row,
html[data-interface-style="next"] body .service-status-row,
html[data-interface-style="next"] body .additional-info-row {
    display: grid;
    grid-template-columns: minmax(120px, .65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 16px;
    min-height: 50px;
    padding: 10px 0;
    border-bottom: 1px solid var(--he-border-soft);
}

html[data-interface-style="next"] body .connection-info-row:last-child,
html[data-interface-style="next"] body .service-status-row:last-child,
html[data-interface-style="next"] body .additional-info-row:last-child {
    border-bottom: 0;
}

html[data-interface-style="next"] body .connection-info-label,
html[data-interface-style="next"] body .service-status-label,
html[data-interface-style="next"] body .additional-info-label {
    color: var(--he-fg-muted);
    font-size: 12px;
    font-weight: 690;
}

html[data-interface-style="next"] body .connection-info-row > .d-flex {
    min-width: 0;
    justify-content: space-between;
    gap: 10px;
}

html[data-interface-style="next"] body .connection-info-value,
html[data-interface-style="next"] body .additional-info-value {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--he-fg-strong);
    font-size: 13px;
}

html[data-interface-style="next"] body .connection-info-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
}

html[data-interface-style="next"] body .connection-info-actions .btn-link {
    min-height: 36px;
    padding: 6px 8px;
    color: var(--he-primary-accessible);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

html[data-interface-style="next"] body .product-details-tabs > .nav-tabs {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin: 0 0 16px;
    padding: 4px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    scrollbar-width: thin;
}

html[data-interface-style="next"] body .product-details-tabs > .nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--he-radius-control);
    background: transparent;
    color: var(--he-fg-muted);
    font-size: 13px;
    font-weight: 690;
    white-space: nowrap;
    transition: background-color var(--he-motion-fast) var(--he-ease-standard), color var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .product-details-tabs > .nav-tabs .nav-link:hover,
html[data-interface-style="next"] body .product-details-tabs > .nav-tabs .nav-link:focus-visible {
    background: var(--he-bg-light);
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .product-details-tabs > .nav-tabs .nav-link.active {
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] body .product-details-tabs > .tab-pane > .card,
html[data-interface-style="next"] body .product-details-tabs > .tab-pane > .row {
    margin-top: 0;
}

html[data-interface-style="next"] body .product-dashboard-header > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
    gap: 20px;
    margin: 0;
}

html[data-interface-style="next"] body .product-dashboard-header > .row > [class*="col-"] {
    width: auto;
    padding: 0;
}

html[data-interface-style="next"] body .product-dashboard-header .dashboard-actions {
    display: none;
}

/* Server-module composition, responsive behavior, and theme adaptations. */
html[data-interface-style="next"] body .he-service-detail .he-module-details,
html[data-interface-style="next"] body .he-service-detail .module-client-area,
html[data-interface-style="next"] body .he-service-detail .hostease-server-control {
    min-width: 0;
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-action-form {
    display: block;
    min-width: 0;
    margin: 0;
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions .btn,
html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-action-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions .btn-success {
    border-color: color-mix(in srgb, var(--he-success) 34%, var(--he-border-soft));
    background: var(--he-success-muted);
    color: var(--he-success);
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions .btn-danger {
    border-color: color-mix(in srgb, var(--he-danger) 34%, var(--he-border-soft));
    background: var(--he-danger-muted);
    color: var(--he-danger);
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-action-form--reboot .btn {
    border-color: var(--he-border);
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
}

@media (hover: hover) {
    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions .btn-success:hover,
    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions .btn-success:focus-visible {
        border-color: var(--he-success);
        background: color-mix(in srgb, var(--he-success-muted) 72%, var(--he-card-bg));
        color: var(--he-success);
    }

    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions .btn-danger:hover,
    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions .btn-danger:focus-visible {
        border-color: var(--he-danger);
        background: color-mix(in srgb, var(--he-danger-muted) 72%, var(--he-card-bg));
        color: var(--he-danger);
    }

    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-action-form--reboot .btn:hover,
    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-action-form--reboot .btn:focus-visible {
        border-color: var(--he-primary);
        background: var(--he-primary-muted);
        color: var(--he-primary-accessible);
    }
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .table {
    margin-bottom: 14px;
    border: 1px solid var(--he-border-soft);
    background: var(--he-card-bg);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .table > thead > tr > th {
    border-color: var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-strong);
    font-size: 12px;
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .table > tbody > tr > td {
    border-color: var(--he-border-soft);
    background: var(--he-card-bg);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .table-striped > tbody > tr:nth-of-type(odd) > td {
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-rebuild-form,
html[data-interface-style="next"] body .he-service-detail .hostease-server-control .modal-content {
    border-color: var(--he-border-soft);
    background: var(--he-card-bg);
    color: var(--he-fg);
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .modal-header,
html[data-interface-style="next"] body .he-service-detail .hostease-server-control .modal-footer {
    border-color: var(--he-border-soft);
}

html[data-interface-style="next"] body .he-service-detail .hostease-server-control .close {
    color: var(--he-fg-strong);
    opacity: .8;
}

html[data-interface-style="next"] body .he-service-detail .he-resource-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
}

html[data-interface-style="next"] body .he-service-detail .he-resource-panel__title {
    display: grid;
    min-width: 0;
    gap: 3px;
}

html[data-interface-style="next"] body .he-service-detail .he-resource-panel__title strong {
    font-size: 14px;
}

html[data-interface-style="next"] body .he-service-detail .he-resource-panel__title small {
    color: var(--he-fg-muted);
    font-size: 12px;
    font-weight: 500;
}

html[data-interface-style="next"] body .he-service-detail .he-resource-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 42px;
    padding-inline: 15px;
    white-space: nowrap;
}

html[data-interface-style="next"] body .he-service-detail .he-resource-upgrade,
html[data-interface-style="next"] body .he-service-detail .he-resource-upgrade__arrow {
    transform: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .btn:not(:disabled):not(.disabled):hover,
    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .btn:not(:disabled):not(.disabled):focus-visible {
        box-shadow: 0 5px 12px rgba(16, 24, 40, .12);
    }
}

html[data-interface-style="next"] body .he-service-detail .module-actions-container .panel-actions {
    margin: 0;
    border: 0;
    box-shadow: none;
}

html[data-interface-style="next"] body .he-service-detail .module-actions-container .panel-heading {
    display: none;
}

html[data-interface-style="next"] body .he-service-detail .module-actions-container .list-group-item {
    margin-bottom: 8px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-control);
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .he-service-detail .he-server-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

html[data-interface-style="next"] body .he-service-detail .he-server-action-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .he-service-detail .he-server-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: var(--he-radius-control);
    background: var(--he-primary-muted);
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] body .he-service-detail .he-server-action-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

html[data-interface-style="next"] body .he-service-detail .he-server-action-copy strong {
    color: var(--he-fg-strong);
    font-size: 13px;
}

html[data-interface-style="next"] body .he-service-detail .he-server-action-copy small,
html[data-interface-style="next"] body .he-service-detail .he-server-actions-note {
    color: var(--he-fg-muted);
}

@media (max-width: 991.98px) {
    html[data-interface-style="next"] body .he-service-hero__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-interface-style="next"] body .he-service-hero__facts > div:nth-child(2n) {
        border-right: 0;
    }

    html[data-interface-style="next"] body .product-dashboard-header > .row {
        grid-template-columns: 1fr;
    }

    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions,
    html[data-interface-style="next"] body .he-service-detail .he-server-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    html[data-interface-style="next"] body.page-clientareaproductdetails .he-service-detail {
        gap: 14px;
    }

    html[data-interface-style="next"] body .he-service-hero__identity {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 20px 16px 16px;
    }

    html[data-interface-style="next"] body .he-service-hero__icon {
        width: 44px;
        height: 44px;
        border-radius: var(--he-radius-control);
    }

    html[data-interface-style="next"] body .he-service-hero__back {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
    }

    html[data-interface-style="next"] body .he-service-hero__facts > div {
        padding: 13px 14px;
    }

    html[data-interface-style="next"] body .connection-info-row,
    html[data-interface-style="next"] body .service-status-row,
    html[data-interface-style="next"] body .additional-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px 0;
    }

    html[data-interface-style="next"] body .connection-info-row > .d-flex {
        width: 100%;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    html[data-interface-style="next"] body .connection-info-actions {
        width: 100%;
    }

    html[data-interface-style="next"] body .connection-info-actions .btn-link {
        min-height: 44px;
    }

    html[data-interface-style="next"] body .he-service-detail .hostease-server-control .he-server-actions,
    html[data-interface-style="next"] body .he-service-detail .he-server-actions-grid {
        grid-template-columns: 1fr;
    }

    html[data-interface-style="next"] body .he-service-detail .he-resource-panel__heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    html[data-interface-style="next"] body .he-service-detail .he-resource-upgrade {
        width: 100%;
        min-height: 46px;
    }

    html[data-interface-style="next"] body .he-service-detail .card-body,
    html[data-interface-style="next"] body .he-service-detail .panel-body {
        padding: 15px;
    }
}

@media (forced-colors: active) {
    html[data-interface-style="next"] body .he-service-status,
    html[data-interface-style="next"] body .he-service-hero__icon,
    html[data-interface-style="next"] body .he-service-detail .he-resource-upgrade {
        border: 1px solid currentColor;
    }
}

/* Read-only service audit feedback for the Hostease Next product-detail view. */
html[data-interface-style="next"] body .he-service-detail .he-module-unavailable {
    padding: 16px; border: 1px solid var(--he-warning); border-radius: var(--he-radius-card);
    background: var(--he-warning-muted); color: var(--he-fg); opacity: 1;
    transition: opacity var(--he-motion-highlight-exit) linear;
}

html[data-interface-style="next"] body .he-service-detail .he-module-unavailable strong { display: block; color: var(--he-fg-strong); }
html[data-interface-style="next"] body .he-service-detail .he-module-unavailable p { margin: 8px 0 0; }
html[data-interface-style="next"] body .he-service-detail .he-module-unavailable .btn { margin-top: 14px; }

@media (prefers-reduced-motion: no-preference) {
    html[data-interface-style="next"] body .he-service-detail .he-module-unavailable {
        animation: he-module-unavailable-enter var(--he-motion-highlight-enter) var(--he-ease-feedback) both;
    }
}

@keyframes he-module-unavailable-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] body .he-service-detail .he-module-unavailable { animation: none; transition: none; }
}

html[data-interface-style="next"] body .he-service-detail .he-legacy-usage-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}

html[data-interface-style="next"] body .he-service-detail .he-legacy-usage-grid > div {
    min-width: 0; padding: 12px; border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-control); background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .he-service-detail .he-legacy-usage-grid dt { color: var(--he-fg-muted); font-size: 12px; font-weight: 690; }
html[data-interface-style="next"] body .he-service-detail .he-legacy-usage-grid dd {
    overflow-wrap: anywhere; margin: 4px 0 0; color: var(--he-fg-strong); font-size: 14px; font-weight: 720;
}
html[data-interface-style="next"] body .he-service-detail .he-legacy-usage-updated { margin-top: 12px; color: var(--he-fg-muted); font-size: 12px; }

html[data-interface-style="next"] body .he-service-detail .he-assigned-ips {
    align-items: flex-start;
}

html[data-interface-style="next"] body .he-service-detail .he-assigned-ips__values {
    display: block;
    white-space: normal;
    word-break: break-word;
}

html[data-interface-style="next"] body .he-service-detail .he-assigned-ips__values br + br {
    display: none;
}

html[data-interface-style="next"] body .he-service-detail .he-assigned-ips__copy {
    min-height: 36px;
    margin-top: 8px;
    padding: 0;
    color: var(--he-primary-accessible);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    html[data-interface-style="next"] body .he-service-detail .he-legacy-usage-grid { grid-template-columns: 1fr; }
}

/* Invoice-specific states and viewport composition. */
html[data-interface-style="next"] body .he-invoice-gateway-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

html[data-interface-style="next"] body .he-invoice-gateway-form.is-submitting {
    opacity: .72;
}

html[data-interface-style="next"] body .he-invoice-gateway-form.is-submitting select {
    cursor: progress;
}

html[data-interface-style="next"] body .payment-btn-container .btn {
    border-radius: var(--he-radius-control);
}

html[data-interface-style="next"] body .payment-btn-container table {
    margin: 0 auto;
}

html[data-interface-style="next"] body .payment-btn-container a,
html[data-interface-style="next"] body .payment-btn-container button,
html[data-interface-style="next"] body .payment-btn-container input[type="submit"],
html[data-interface-style="next"] body .payment-btn-container #hantepay_pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--he-primary);
    border-radius: var(--he-radius-control);
    background: var(--he-primary);
    color: var(--he-primary-fg);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transform: none;
    transition:
        background-color var(--he-motion-fast) var(--he-ease-standard),
        border-color var(--he-motion-fast) var(--he-ease-standard),
        box-shadow var(--he-motion-fast) var(--he-ease-standard);
}

html[data-interface-style="next"] body .payment-btn-container a:hover,
html[data-interface-style="next"] body .payment-btn-container a:focus,
html[data-interface-style="next"] body .payment-btn-container button:hover,
html[data-interface-style="next"] body .payment-btn-container button:focus,
html[data-interface-style="next"] body .payment-btn-container input[type="submit"]:hover,
html[data-interface-style="next"] body .payment-btn-container input[type="submit"]:focus,
html[data-interface-style="next"] body .payment-btn-container #hantepay_pay:hover,
html[data-interface-style="next"] body .payment-btn-container #hantepay_pay:focus {
    border-color: var(--he-primary-hover);
    background: var(--he-primary-hover);
    color: var(--he-primary-fg);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    html[data-interface-style="next"] body .payment-btn-container a:hover,
    html[data-interface-style="next"] body .payment-btn-container button:hover,
    html[data-interface-style="next"] body .payment-btn-container input[type="submit"]:hover,
    html[data-interface-style="next"] body .payment-btn-container #hantepay_pay:hover,
    html[data-interface-style="next"] body .payment-btn-container a:focus-visible,
    html[data-interface-style="next"] body .payment-btn-container button:focus-visible,
    html[data-interface-style="next"] body .payment-btn-container input[type="submit"]:focus-visible,
    html[data-interface-style="next"] body .payment-btn-container #hantepay_pay:focus-visible {
        box-shadow: 0 7px 18px color-mix(in srgb, var(--he-primary) 24%, transparent);
    }

    html[data-interface-style="next"] body .payment-btn-container a:active,
    html[data-interface-style="next"] body .payment-btn-container button:active,
    html[data-interface-style="next"] body .payment-btn-container input[type="submit"]:active,
    html[data-interface-style="next"] body .payment-btn-container #hantepay_pay:active {
        box-shadow: none;
    }
}

html[data-interface-style="next"] body .payment-btn-container #hantepay_pay:focus-visible {
    outline: 3px solid var(--he-focus-ring);
    outline-offset: 3px;
}

html[data-interface-style="next"] body .payment-btn-container img,
html[data-interface-style="next"] body .payment-btn-container svg {
    display: block;
    width: auto;
    max-width: 100%;
    height: 20px;
    object-fit: contain;
}

html[data-interface-style="next"] body .payment-btn-container .hantepay-container {
    display: flex;
    justify-content: center;
}

html[data-interface-style="next"] body .he-invoice-document > .panel {
    box-shadow: none;
}

html[data-interface-style="next"] body .he-billing-masspay__details {
    margin-top: 24px;
}

html[data-interface-style="next"] body .he-billing-table .he-billing-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

html[data-interface-style="next"] body .he-billing-table .he-billing-invoice-group td {
    padding: 12px;
    border-top: 1px solid var(--he-border-soft);
    background: var(--he-card-subtle);
    color: var(--he-fg-strong);
    font-weight: 700;
}

html[data-interface-style="next"] body .he-billing-table .he-billing-total-label {
    text-align: right;
}

html[data-interface-style="next"] body .he-billing-table .total td {
    padding-top: 12px;
    border-top: 1px solid var(--he-border);
    color: var(--he-fg-strong);
    font-size: 18px;
    font-weight: 700;
}

html[data-interface-style="next"] body .he-billing-masspay__payment-title {
    margin-top: 28px;
}

html[data-interface-style="next"] body .he-billing-masspay__submit {
    margin: 24px 0 0;
    text-align: center;
}

html[data-interface-style="next"] body .he-billing-masspay__submit .btn-success {
    border-color: var(--he-accent);
    background: var(--he-accent);
    color: var(--he-accent-fg);
    font-weight: 700;
}

html[data-interface-style="next"] body .he-billing-masspay__submit .btn-success:hover,
html[data-interface-style="next"] body .he-billing-masspay__submit .btn-success:focus-visible {
    border-color: var(--he-accent-hover);
    background: var(--he-accent-hover);
    color: var(--he-accent-hover-fg);
}

html[data-interface-style="next"] body .he-add-funds-form .input-group-text {
    border-color: var(--he-border);
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
    font-variant-numeric: tabular-nums;
}

html[data-interface-style="next"] body .he-add-funds-form #amount {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .he-invoice-container {
        padding: 0;
    }

    html[data-interface-style="next"] body .he-invoice-document {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    html[data-interface-style="next"] body .he-invoice-document__header,
    html[data-interface-style="next"] body .he-invoice-parties,
    html[data-interface-style="next"] body .he-invoice-items,
    html[data-interface-style="next"] body .he-invoice-transactions,
    html[data-interface-style="next"] body .he-invoice-actions,
    html[data-interface-style="next"] body .he-invoice-credit,
    html[data-interface-style="next"] body .he-invoice-document > .panel {
        margin: 16px;
    }

    html[data-interface-style="next"] body .he-invoice-document__header {
        padding: 20px 16px;
    }

    html[data-interface-style="next"] body .he-invoice-status-panel {
        justify-content: stretch;
        margin-top: 18px;
    }

    html[data-interface-style="next"] body .he-invoice-payment-summary {
        width: 100%;
    }

    html[data-interface-style="next"] body .invoice-party-grid {
        grid-template-columns: 1fr;
    }

    html[data-interface-style="next"] body .invoice-summary-panel {
        margin: 14px;
        max-width: none;
    }

    html[data-interface-style="next"] body .he-invoice-actions {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-interface-style="next"] body .invoice-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-interface-style="next"] body .payment-btn-container,
    html[data-interface-style="next"] body .payment-btn-container .hantepay-container {
        width: 100%;
    }

    html[data-interface-style="next"] body .payment-btn-container a,
    html[data-interface-style="next"] body .payment-btn-container button,
    html[data-interface-style="next"] body .payment-btn-container input[type="submit"],
    html[data-interface-style="next"] body .payment-btn-container #hantepay_pay {
        max-width: 100%;
    }

    html[data-interface-style="next"] body .he-invoice-actions > .btn,
    html[data-interface-style="next"] body .invoice-action-btn {
        justify-content: center;
    }
}

@media (max-width: 479.98px) {
    html[data-interface-style="next"] body .he-invoice-status-line,
    html[data-interface-style="next"] body .he-invoice-amount-row {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-interface-style="next"] body .payment-btn-container,
    html[data-interface-style="next"] body .payment-btn-container a,
    html[data-interface-style="next"] body .payment-btn-container button,
    html[data-interface-style="next"] body .payment-btn-container input[type="submit"],
    html[data-interface-style="next"] body .payment-btn-container #hantepay_pay,
    html[data-interface-style="next"] body .invoice-actions {
        width: 100%;
    }

    html[data-interface-style="next"] body .invoice-actions {
        grid-template-columns: 1fr;
    }
}

@media print {
    html[data-interface-style="next"][data-color-scheme="dark"] {
        color-scheme: light;
        --he-bg: #ffffff;
        --he-bg-light: #f2f4f7;
        --he-card-bg: #ffffff;
        --he-card-subtle: #f9fafb;
        --he-fg: #344054;
        --he-fg-strong: #101828;
        --he-fg-muted: #667085;
        --he-border: #d0d5dd;
        --he-border-soft: #e1e6ed;
        --he-primary: #145cc5;
        --he-primary-accessible: #0b4aa2;
        --he-primary-muted: rgba(20, 92, 197, 0.09);
        --he-success: #168451;
        --he-success-muted: #e9f8f0;
        --he-warning: #b54708;
        --he-warning-muted: #fff6e6;
        --he-danger: #b42318;
        --he-danger-muted: #fff0ee;
    }

    html[data-interface-style="next"] body.viewinvoice {
        background: #ffffff;
        color: #344054;
    }

    html[data-interface-style="next"] body .he-invoice-container {
        max-width: none;
        padding: 0;
    }

    html[data-interface-style="next"] body .he-invoice-document {
        border: 0;
        background: #ffffff;
        box-shadow: none;
    }
}

/* Account-security and SSL-management surfaces. */
html[data-interface-style="next"] .he-account-audit,
html[data-interface-style="next"] .he-ssl-manage {
    margin-top: 1rem;
}

html[data-interface-style="next"] .he-account-audit__header,
html[data-interface-style="next"] .he-ssl-manage__header {
    margin-bottom: 1.25rem;
}

html[data-interface-style="next"] .he-account-audit__header h1,
html[data-interface-style="next"] .he-ssl-manage__header h1 {
    margin: 0;
    color: var(--he-fg-strong);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

html[data-interface-style="next"] .he-account-audit__header p {
    margin: 0.4rem 0 0;
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] .he-account-audit__card .card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--he-fg-strong);
    font-size: 1.1rem;
}

html[data-interface-style="next"] .he-account-audit__card .card-title i,
html[data-interface-style="next"] .he-account-audit__empty i,
html[data-interface-style="next"] .he-ssl-manage__empty i {
    color: var(--he-primary);
}

html[data-interface-style="next"] .he-account-audit__status,
html[data-interface-style="next"] .he-account-audit__notice {
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] .he-account-audit__toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1rem 0;
}

html[data-interface-style="next"] .he-account-audit__empty,
html[data-interface-style="next"] .he-ssl-manage__empty {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    color: var(--he-fg-muted);
    text-align: center;
}

html[data-interface-style="next"] .he-account-audit__empty i,
html[data-interface-style="next"] .he-ssl-manage__empty i {
    font-size: 2rem;
}

html[data-interface-style="next"] .he-account-audit__empty p,
html[data-interface-style="next"] .he-ssl-manage__empty h2 {
    margin: 0;
    color: var(--he-fg-strong);
    font-size: 1.1rem;
}

html[data-interface-style="next"] .he-ssl-manage__table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html[data-interface-style="next"] #tableSslList {
    min-width: 44rem;
}

html[data-interface-style="next"] #tableSslList tbody tr {
    position: relative;
    cursor: pointer;
}

html[data-interface-style="next"] #tableSslList tbody td::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--he-primary-muted);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 480ms linear;
}

html[data-interface-style="next"] #tableSslList tbody tr:hover td::after,
html[data-interface-style="next"] #tableSslList tbody tr:focus-within td::after {
    opacity: 1;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0.2, 1);
}

html[data-interface-style="next"] #tableSslList tbody td {
    position: relative;
    isolation: isolate;
}

html[data-interface-style="next"] #tableSslList tbody td > * {
    position: relative;
    z-index: 1;
}

html[data-interface-style="next"] #tableSslList_filter input {
    min-height: 44px;
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] .he-account-audit__empty,
    html[data-interface-style="next"] .he-ssl-manage__empty {
        padding: 2rem 1rem;
    }

    html[data-interface-style="next"] #tableSslList {
        min-width: 38rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] #tableSslList tbody td::after {
        transition: none;
    }
}

/* Support submission and ticket actions. */
html[data-interface-style="next"] body .he-ticket-submit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

html[data-interface-style="next"] body .he-ticket-submit-actions > [data-hostease-turnstile] {
    flex: 1 0 100%;
    order: -1;
}

html[data-interface-style="next"] body .he-ticket-submit-actions > .btn {
    min-height: 44px;
    align-self: center;
    border-radius: var(--he-radius-control);
}

html[data-interface-style="next"] body .he-support-primary-action,
html[data-interface-style="next"] body .ticket-view-page .he-support-reply-submit {
    border-color: var(--he-accent);
    background: var(--he-accent);
    color: var(--he-accent-fg);
    transition: background-color 480ms linear, border-color 480ms linear, color 480ms linear;
}

html[data-interface-style="next"] body .he-support-primary-action:hover,
html[data-interface-style="next"] body .he-support-primary-action:focus-visible,
html[data-interface-style="next"] body .ticket-view-page .he-support-reply-submit:hover,
html[data-interface-style="next"] body .ticket-view-page .he-support-reply-submit:focus-visible {
    border-color: var(--he-accent-hover);
    background: var(--he-accent-hover);
    color: var(--he-accent-hover-fg);
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0.2, 1);
}

html[data-interface-style="next"] body .he-support-primary-action:focus-visible,
html[data-interface-style="next"] body .ticket-view-page .he-support-reply-submit:focus-visible {
    outline: 3px solid var(--he-focus-ring);
    outline-offset: 2px;
}

html[data-interface-style="next"] body .he-required-mark {
    color: var(--he-danger);
    font-weight: 800;
}

html[data-interface-style="next"] body .ticket-view-page .ticket-reply {
    border-inline-start: 3px solid var(--he-border);
    border-radius: var(--he-radius-card);
    background: var(--he-card-subtle);
}

html[data-interface-style="next"] body .ticket-view-page .ticket-reply.staff {
    border-inline-start-color: var(--he-primary);
    background: var(--he-primary-muted);
}

html[data-interface-style="next"] body .ticket-view-page .ticket-reply .posted-by {
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .ticket-view-page .ticket-reply .posted-by-name {
    color: var(--he-fg-strong);
    font-weight: 700;
}

html[data-interface-style="next"] body .ticket-view-page .requestor-badge {
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-control);
    background: var(--he-card-bg);
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .ticket-view-page .ticket-reply.staff .requestor-badge {
    border-color: var(--he-primary);
    background: var(--he-primary);
    color: var(--he-primary-fg);
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .he-ticket-submit-actions > .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] body .he-support-primary-action,
    html[data-interface-style="next"] body .ticket-view-page .he-support-reply-submit {
        transition: none;
    }
}

/* Announcements and the client email archive. */
html[data-interface-style="next"] body .he-content-header {
    margin-bottom: 20px;
}

html[data-interface-style="next"] body .he-content-header h1 {
    margin: 0;
    color: var(--he-fg-strong);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 740;
    letter-spacing: -.025em;
}

html[data-interface-style="next"] body .he-content-header p {
    margin: 6px 0 0;
    color: var(--he-fg-muted);
}

html[data-interface-style="next"] body .he-announcements__list {
    display: grid;
    gap: 14px;
}

html[data-interface-style="next"] body .he-announcement-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
}

html[data-interface-style="next"] body .he-announcement-card::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--he-primary-muted);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--he-motion-highlight-exit) linear;
}

html[data-interface-style="next"] body .he-announcement-card:hover::after,
html[data-interface-style="next"] body .he-announcement-card:focus-within::after {
    opacity: 1;
    transition: opacity var(--he-motion-highlight-enter) var(--he-ease-feedback);
}

html[data-interface-style="next"] body .he-announcement-card > * {
    position: relative;
    z-index: 1;
}

html[data-interface-style="next"] body .he-announcement-card h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 720;
    line-height: 1.45;
}

html[data-interface-style="next"] body .he-announcement-card h2 a {
    color: var(--he-fg-strong);
}

html[data-interface-style="next"] body .he-announcement-card__date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 7px 0 0;
    color: var(--he-fg-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

html[data-interface-style="next"] body .he-announcement-card__summary {
    margin: 14px 0;
    color: var(--he-fg);
    line-height: 1.7;
}

html[data-interface-style="next"] body .he-announcement-card__summary > :last-child {
    margin-bottom: 0;
}

html[data-interface-style="next"] body .he-content-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 44px 20px;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    color: var(--he-fg-muted);
    text-align: center;
}

html[data-interface-style="next"] body .he-content-empty > i {
    color: var(--he-primary);
    font-size: 2rem;
}

html[data-interface-style="next"] body .he-content-empty h2,
html[data-interface-style="next"] body .he-content-empty p {
    margin: 0;
}

html[data-interface-style="next"] body .he-content-empty h2 {
    color: var(--he-fg-strong);
    font-size: 1.1rem;
}

html[data-interface-style="next"] body .he-content-pagination {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

html[data-interface-style="next"] body .he-content-pagination .page-link {
    min-width: 44px;
    min-height: 44px;
    border-color: var(--he-border);
    background: var(--he-card-bg);
    color: var(--he-primary-accessible);
}

html[data-interface-style="next"] body .he-email-archive__table {
    overflow: hidden;
    border: 1px solid var(--he-border-soft);
    border-radius: var(--he-radius-card);
    background: var(--he-card-bg);
    box-shadow: var(--he-shadow-card);
}

html[data-interface-style="next"] body .he-email-archive__table table {
    margin: 0;
    background: var(--he-card-bg);
}

html[data-interface-style="next"] body .he-email-archive__table th,
html[data-interface-style="next"] body .he-email-archive__table td {
    border-color: var(--he-border-soft);
    color: var(--he-fg);
    vertical-align: middle;
}

html[data-interface-style="next"] body .he-email-archive__table th {
    background: var(--he-card-subtle);
    color: var(--he-fg-muted);
    font-size: 12px;
    font-weight: 700;
}

html[data-interface-style="next"] body .he-email-archive__action {
    text-align: end;
}

@media (max-width: 767.98px) {
    html[data-interface-style="next"] body .he-announcement-card {
        padding: 16px;
    }

    html[data-interface-style="next"] body .he-email-archive__table {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    html[data-interface-style="next"] body .he-email-archive__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    html[data-interface-style="next"] body .he-email-archive__table tbody,
    html[data-interface-style="next"] body .he-email-archive__table tr,
    html[data-interface-style="next"] body .he-email-archive__table td {
        display: block;
        width: 100%;
    }

    html[data-interface-style="next"] body .he-email-archive__table tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--he-border-soft);
        border-radius: var(--he-radius-card);
        background: var(--he-card-bg);
    }

    html[data-interface-style="next"] body .he-email-archive__table td {
        display: grid;
        grid-template-columns: minmax(7rem, .45fr) minmax(0, 1fr);
        gap: 12px;
        padding: 10px 12px;
        text-align: start;
    }

    html[data-interface-style="next"] body .he-email-archive__table td::before {
        color: var(--he-fg-muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
    }

    html[data-interface-style="next"] body .he-email-archive__action {
        display: block;
    }

    html[data-interface-style="next"] body .he-email-archive__action .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] body .he-announcement-card::after {
        transition: none;
    }
}

/* Narrow layouts and user motion preferences. */
@media (max-width: 1024px) {
    html[data-interface-style="next"] body .topbar .top-navbar {
        min-height: calc(var(--he-shell-topbar-height) + var(--he-shell-safe-top));
    }

    html[data-interface-style="next"] body .topbar .navbar-header,
    html[data-interface-style="next"] body.is-logged-in .topbar .navbar-header {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        width: auto;
        min-width: 0;
        min-height: var(--he-shell-topbar-height);
        border-right: 0;
    }

    html[data-interface-style="next"] body .topbar .navbar-brand {
        display: flex;
        align-items: center;
        min-height: var(--he-shell-topbar-height);
    }

    html[data-interface-style="next"] body .page-wrapper,
    html[data-interface-style="next"] body.is-logged-in .page-wrapper,
    html[data-interface-style="next"] body.is-logged-out .page-wrapper {
        margin-left: 0;
        padding-top: calc(var(--he-shell-topbar-height) + var(--he-shell-safe-top));
    }

    html[data-interface-style="next"] body.is-logged-in .left-sidebar {
        z-index: 1042;
        width: min(var(--he-shell-sidebar-width), calc(100vw - 44px));
        transform: translateX(-100%);
        box-shadow: none;
        visibility: hidden;
    }

    html[data-interface-style="next"] body.show-sidebar {
        overflow: hidden;
    }

    html[data-interface-style="next"] body.show-sidebar .left-sidebar {
        transform: translateX(0);
        box-shadow: var(--he-shadow-overlay);
        visibility: visible;
    }

    html[data-interface-style="next"] body .sidebar-overlay,
    html[data-interface-style="next"] body .sidebar-backdrop {
        position: fixed;
        z-index: 1040;
        top: calc(var(--he-shell-topbar-height) + var(--he-shell-safe-top));
        right: 0;
        bottom: 0;
        left: 0;
        visibility: hidden;
        background-color: rgba(8, 31, 61, 0.46);
        opacity: 0;
        transition: opacity var(--he-motion-standard) var(--he-ease-standard), visibility var(--he-motion-standard) step-end;
    }

    html[data-interface-style="next"] body.show-sidebar .sidebar-overlay,
    html[data-interface-style="next"] body.show-sidebar .sidebar-backdrop {
        visibility: visible;
        opacity: 1;
        transition-timing-function: var(--he-ease-standard), step-start;
    }

}

@media (max-width: 767.98px) {
    /* The shell padding (12px) never covered Bootstrap's -15px row gutter, so pages scrolled sideways. */
    html[data-interface-style="next"] body .clientarea-shell,
    html[data-interface-style="next"] body .store-shell {
        padding-right: 0;
        padding-left: 0;
    }

    html[data-interface-style="next"] body .clientarea-shell > .row,
    html[data-interface-style="next"] body .store-shell > .row {
        margin-right: 0;
        margin-left: 0;
    }

    /* Phones keep the language switch as a flag-only trigger. */
    html[data-interface-style="next"] body .language-menu-label {
        display: none;
    }

    html[data-interface-style="next"] body .topbar .language-menu-trigger {
        padding-right: 6px;
        padding-left: 6px;
    }

    html[data-interface-style="next"] body .client-dashboard.container-fluid,
    html[data-interface-style="next"] body .client-primary-content,
    html[data-interface-style="next"] body .store-primary-content {
        min-width: 0;
        padding-right: max(14px, env(safe-area-inset-right, 0px));
        padding-left: max(14px, env(safe-area-inset-left, 0px));
    }

    html[data-interface-style="next"] body .he-dashboard-hero-card {
        padding: 18px;
    }

    html[data-interface-style="next"] body .table-container {
        max-width: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
}

@media (max-width: 374.98px) {
    html[data-interface-style="next"] body .topbar .navbar-collapse,
    html[data-interface-style="next"] body .topbar .navbar-nav,
    html[data-interface-style="next"] body .client-primary-content,
    html[data-interface-style="next"] body .store-primary-content {
        min-width: 0;
    }

    html[data-interface-style="next"] body .client-primary-content,
    html[data-interface-style="next"] body .store-primary-content {
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-interface-style="next"] *,
    html[data-interface-style="next"] *::before,
    html[data-interface-style="next"] *::after {
        scroll-behavior: auto;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}
