/*
 * MyWebTeam brand layer for the teamlinsec ClientExec theme (CE 7.2.2)
 *
 * Implements MyWebTeam Design System v2 ("Connected Commerce", Claude Design project 0043d838-…) on top of the stock
 * compiled theme CSS, which stays untouched so CE upgrades remain diffable. Reference copy of the design system:
 * design/mywebteam-v2/ (README, tokens, compiled site CSS). Mapping notes: templates/teamlinsec/DESIGN.md.
 *
 * The design system is DARK ONLY: a deep navy scene lit by controlled cyan. <html class="mwt site-dark"> is set in
 * index.phtml; every override is prefixed with html.mwt so it wins over the stock selector it mirrors.
 *
 * Sections: 1 fonts · 2 tokens · 3 base · 4 header · 5 footer · 6 surfaces · 7 type · 8 actions/buttons · 9 forms ·
 * 10 tables · 11 bootstrap components · 12 portal pages · 13 cart · 14 design-system patterns · 15 /pay page
 */

/* 1 ── Fonts (self-hosted latin subsets, same Fontsource builds as the design system) ── */
@font-face {
    font-family: "Manrope Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(../fonts/mywebteam/manrope-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
    font-family: "Open Sans Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    font-stretch: 75% 100%;
    src: url(../fonts/mywebteam/open-sans-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
    font-family: "Open Sans Variable";
    font-style: italic;
    font-display: swap;
    font-weight: 300 800;
    font-stretch: 75% 100%;
    src: url(../fonts/mywebteam/open-sans-latin-wght-italic.woff2) format("woff2-variations");
}
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(../fonts/mywebteam/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
}
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(../fonts/mywebteam/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
}
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url(../fonts/mywebteam/ibm-plex-mono-latin-600-normal.woff2) format("woff2");
}

/* 2 ── Tokens (design-system values; scene tokens are the ones to use for colour) ── */
:root {
    /* Brand ramps: logo-level only */
    --color-navy-900: #0e2044;
    --color-navy-800: #152b5a;
    --color-navy-700: #1c3570;
    --color-navy-400: #4a6ab5;
    --color-navy-300: #7091cb;
    --color-navy-200: #a8bee2;
    --color-cyan-500: #00aeef;
    --color-cyan-400: #29c4f5;
    --color-success: #38a169;
    --color-warning: #d97706;
    --color-error: #e53e3e;

    /* Scene */
    --scene-bg: #07172d;
    --scene-text: #f0f5fa;
    --scene-muted: #b4c5da;
    --scene-accent: #36c8fa;
    --scene-accent-hover: #62d6fc;
    --scene-line: #294057;
    --scene-field-line: #607990;
    --scene-panel: rgb(7 23 45 / 94%);
    --scene-surface: #10263d;
    --scene-surface-raised: #163049;
    --scene-radius: 6px;

    /* Type */
    --scene-display: "Manrope Variable", "Open Sans Variable", sans-serif;
    --font-body: "Open Sans Variable", "Open Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    /* Feedback on dark (tints of the brand success / warning / error) */
    --mwt-ok: #6fd3a0;
    --mwt-warn: #f5b25e;
    --mwt-error: #ff9b9b;

    /* Layout: the single page container, same as the main site's .shell (mywebteam.com.au v3) */
    --width-shell: 1440px;
    /* Reading measure for running prose: a ceiling, not a target (main site --measure-prose) */
    --measure-prose: 72ch;

    color-scheme: dark;
}

/* 3 ── Base ── */
html.mwt *,
html.mwt *::before,
html.mwt *::after {
    box-sizing: border-box;
}
html.mwt,
html.mwt body {
    background: var(--scene-bg);
    color: var(--scene-text);
}
html.mwt body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
/* Grid: stock Bootstrap .container steps 540/720/960/1140px with 15px gutters. Match the main site's .shell instead:
   fluid up to 1440px (border-box, so 1360px of content), gutters 20px, 32px from 768px, 40px from 1280px. Rows and
   columns inside keep Bootstrap's 15px column padding, so content edges stay on the gutter line. */
html.mwt .container {
    max-width: var(--width-shell);
    padding-inline: 20px;
}
@media (min-width: 768px) {
    html.mwt .container {
        padding-inline: 32px;
    }
}
@media (min-width: 1280px) {
    html.mwt .container {
        padding-inline: 40px;
    }
}
@media (min-width: 1024px) {
    :root {
        --measure-prose: 96ch;
    }
}
@media (min-width: 1440px) {
    :root {
        --measure-prose: 110ch;
    }
}
/* KB article and announcement bodies would otherwise run the full 1360px shell */
html.mwt .knowledge-base-article-page #article-content {
    max-width: var(--measure-prose);
}
/* Stock body is a flex column: stop sections (esp. overflow:hidden ones) collapsing */
html.mwt body > * {
    flex-shrink: 0;
}
html.mwt :is(h1, h2, h3, h4, h5, h6) {
    color: var(--scene-text);
    font-family: var(--scene-display);
    font-weight: 550;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-wrap: balance;
}
html.mwt :is(h1, h2) {
    letter-spacing: -0.045em;
    line-height: 1.12;
}
html.mwt p,
html.mwt li,
html.mwt label,
html.mwt td {
    color: inherit;
}
html.mwt a {
    color: var(--scene-accent);
}
html.mwt a:hover {
    color: var(--scene-accent-hover);
}
html.mwt :focus-visible {
    outline: 2px solid var(--scene-accent);
    outline-offset: 4px;
    box-shadow: none;
}
html.mwt hr {
    border-color: var(--scene-line);
}
html.mwt ::selection {
    background: rgb(54 200 250 / 30%);
}
html.mwt code,
html.mwt kbd,
html.mwt .mwt-mono {
    font-family: var(--font-mono);
}
@media (prefers-reduced-motion: reduce) {
    html.mwt *,
    html.mwt *::before,
    html.mwt *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* 4 ── Header (design system: SiteHeader) ──
   Measured against the main site (mywebteam.com.au v3 Header.astro + commerce-foundation.css, dark): 32px utility bar
   that collapses past 12px of scroll, 72px nav bar, 1px hairline = 105px. Logo · centred primary nav · actions, all on
   the shell gutters. Below 1024px the primary nav is a right-hand drawer. Behaviour: js/mywebteam.js */
html.mwt {
    --mwt-header-h: 105px;
}
html.mwt .header {
    background: var(--scene-panel);
    border-bottom: 1px solid var(--scene-line);
    box-shadow: none;
    transition: none;
}
/* The header is position:fixed (stock); offset the page by its full height instead of the stock load/resize script */
html.mwt body:has(> .header) {
    padding-top: var(--mwt-header-h);
}
html.mwt .mwt-utility {
    max-height: 40px;
    overflow: hidden;
    background: var(--scene-bg);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    transition: max-height 250ms ease-out;
}
html.mwt.mwt-scrolled .mwt-utility {
    max-height: 0;
}
html.mwt .mwt-utility .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 8px;
}
html.mwt .mwt-utility a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--scene-muted);
    text-decoration: none;
    transition: color 150ms;
}
html.mwt .mwt-utility a:hover {
    color: var(--scene-accent);
}
html.mwt .mwt-utility nav {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}
@media (min-width: 640px) {
    html.mwt .mwt-utility nav {
        gap: 20px;
    }
}
html.mwt .main-meta {
    padding: 0;
    background: transparent;
    border: 0;
    transition: none;
}
html.mwt .main-meta .container {
    height: 72px;
}
html.mwt .mwt-navbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 0;
}
html.mwt .main-meta .logo {
    flex-shrink: 0;
    width: auto;
    max-width: none;
}
html.mwt .main-meta .logo img {
    width: min(46vw, 190px);
    max-width: none;
    height: auto;
    max-height: none;
}
@media (min-width: 640px) {
    html.mwt .main-meta .logo img {
        width: auto;
        height: 32px;
    }
}

/* Primary nav, desktop */
html.mwt .main-menu {
    width: auto;
    min-width: 0;
    padding: 0;
}
html.mwt .main-menu > ul {
    position: relative;
    flex-direction: row;
    align-items: center;
    border-left: 0;
    font-size: 14px;
}
html.mwt .main-menu > ul > li > a {
    display: block;
    padding: 6px 9px;
    border-radius: var(--scene-radius);
    color: var(--scene-text);
    font: 600 14px/20px var(--font-body);
    white-space: nowrap;
    text-decoration: none;
    transition: color 150ms;
}
html.mwt .main-menu > ul > li > a:hover,
html.mwt .main-menu > ul > li.show > a {
    background: transparent;
    color: var(--scene-accent);
}
html.mwt .main-menu > ul > li > a[aria-current] {
    background: var(--scene-surface);
    color: var(--scene-accent);
}
/* Dropdown chevron: 14px Lucide chevron-down in a 32px slot after the label, like the main site's Services toggle */
html.mwt .main-menu > ul > li.dropdown > a {
    padding-right: 41px;
}
html.mwt .main-menu > ul > li.dropdown::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3; /* stock gives the link z-index 2; keep the chevron above the active link's fill */
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background: currentColor;
    color: var(--scene-text);
    font-family: inherit;
    pointer-events: none;
    transition: transform 200ms, color 150ms;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.mwt .main-menu > ul > li.dropdown:hover::after,
html.mwt .main-menu > ul > li.dropdown:has(> a[aria-current])::after {
    color: var(--scene-accent);
}
html.mwt .main-menu > ul > li.dropdown.show::after {
    color: var(--scene-accent);
    transform: rotate(180deg);
}
html.mwt .main-menu > .navbar-nav > li > .dropdown-menu {
    min-width: 220px;
    width: auto;
    margin: 0;
    padding: 8px;
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    box-shadow: 0 20px 48px rgb(0 0 0 / 35%);
}
html.mwt .main-menu .dropdown-menu > li {
    border-top: 0;
}
html.mwt .main-menu > ul > li .dropdown-menu > li > a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--scene-radius);
    color: var(--scene-text);
    font: 600 14px/20px var(--font-body);
    white-space: nowrap;
    text-decoration: none;
}
html.mwt .main-menu > ul > li .dropdown-menu > li > a:hover,
html.mwt .main-menu > ul > li .dropdown-menu > li > a:focus-visible {
    background: var(--scene-line);
    color: var(--scene-accent);
}
/* External link marker in the menus (opens in a new tab), as on the home page cards */
html.mwt .mwt-nav-ext {
    margin-left: 4px;
    color: var(--scene-muted);
    font-size: 12px;
}
html.mwt .mwt-nav-indicator {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--color-cyan-500);
    opacity: 0;
    pointer-events: none;
    transition: left 250ms ease-out, width 250ms ease-out, opacity 250ms ease-out;
}
html.mwt :is(.mwt-drawer-head, .mwt-drawer-links, .mwt-nav-toggle, .mwt-nav-backdrop) {
    display: none;
}
/* Footer language / currency selectors still use the Bootstrap toggler */
html.mwt .navbar-toggler {
    border-color: var(--scene-line);
}

/* Actions: the portal's one header action (Login) matches the main site's "Get a Quote" */
html.mwt .header-right {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
    text-align: right;
}
html.mwt #login-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: var(--scene-radius);
    background: var(--color-cyan-500);
    color: var(--color-navy-900);
    font: 700 14px/1 var(--scene-display);
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 150ms;
}
html.mwt #login-menu a:hover {
    background: var(--scene-accent-hover);
    color: var(--scene-bg);
}

@media (min-width: 1024px) {
    html.mwt .main-menu {
        display: flex;
        justify-content: center;
    }
    html.mwt .main-menu > .navbar-nav > li > .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        margin-top: 10px;
    }
    /* Bridge the gap so moving the pointer from the link to the panel doesn't close it */
    html.mwt .main-menu .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -11px;
        right: 0;
        left: 0;
        height: 11px;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    html.mwt .main-meta .logo img {
        width: auto;
        max-width: 155px;
        height: auto;
    }
    html.mwt .main-menu > ul > li > a {
        padding-inline: 7px;
        font-size: 13px;
    }
    html.mwt .main-menu > ul > li.dropdown > a {
        padding-right: 39px;
    }
    html.mwt #login-menu a {
        padding-inline: 14px;
    }
}

/* Primary nav, below 1024px: right-hand drawer */
@media (max-width: 1023.98px) {
    html.mwt .header-right {
        margin-left: auto;
    }
    html.mwt .mwt-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: var(--scene-radius);
        color: var(--scene-text);
    }
    html.mwt .mwt-nav-toggle:hover {
        color: var(--scene-accent);
    }
    html.mwt .mwt-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1;
        background: rgb(14 32 68 / 60%);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 250ms, visibility 0s 250ms;
    }
    html.mwt.mwt-nav-open .mwt-nav-backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity 250ms;
    }
    html.mwt .main-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        width: min(90vw, 26rem);
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--scene-surface);
        box-shadow: -20px 0 60px rgb(0 0 0 / 45%);
        text-align: left;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 200ms ease-in, visibility 0s 200ms;
    }
    html.mwt.mwt-nav-open .main-menu {
        transform: none;
        visibility: visible;
        transition: transform 300ms ease-out;
    }
    html.mwt.mwt-nav-open body {
        overflow: hidden;
    }
    html.mwt .mwt-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: max(16px, env(safe-area-inset-top)) 20px 16px;
        border-bottom: 1px solid var(--scene-line);
    }
    html.mwt .mwt-drawer-head p {
        margin: 0;
        color: var(--scene-muted);
        font-size: 12px;
        line-height: 16px;
    }
    html.mwt .mwt-drawer-head #mwt-drawer-title {
        color: var(--scene-text);
        font: 800 18px/28px var(--scene-display);
    }
    html.mwt .mwt-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 1px solid var(--scene-line);
        border-radius: var(--scene-radius);
        color: var(--scene-text);
    }
    html.mwt .mwt-drawer-close:hover {
        border-color: var(--scene-accent);
        color: var(--scene-accent);
    }
    html.mwt .main-menu > ul {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 0;
    }
    html.mwt .main-menu > ul > li {
        display: block;
        border-bottom: 1px solid var(--scene-line);
    }
    html.mwt .main-menu > ul > li > a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 8px;
        border-radius: 0;
        font-size: 15px;
    }
    html.mwt .main-menu > ul > li > a:hover {
        background: var(--scene-line);
    }
    html.mwt .main-menu > ul > li > a[aria-current] {
        background: transparent;
    }
    html.mwt .main-menu > ul > li.dropdown > a {
        padding-right: 40px;
    }
    html.mwt .main-menu > ul > li.dropdown::after {
        top: 24px;
        right: 8px;
        width: 17px;
        height: 17px;
        margin-top: -8.5px;
    }
    html.mwt .main-menu > .navbar-nav > li > .dropdown-menu {
        position: static;
        float: none;
        min-width: 0;
        padding: 0 0 8px 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    html.mwt .main-menu > ul > li .dropdown-menu > li > a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 8px 0 20px;
        color: var(--scene-muted);
        font-weight: 400;
        white-space: normal;
    }
    html.mwt .mwt-drawer-user {
        padding: 20px 20px 0;
        text-align: left;
    }
    html.mwt .mwt-drawer-user #login-menu a {
        display: flex;
        width: 100%;
        min-height: 48px;
    }
    html.mwt .mwt-drawer-user .current-user {
        display: block;
    }
    html.mwt .mwt-drawer-user .current-user .user-toggle::after {
        display: none;
    }
    html.mwt .mwt-drawer-user.header-user-menu .current-user > ul {
        position: static;
        display: block;
        float: none;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 8px 0 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
    }
    html.mwt .mwt-drawer-user.header-user-menu .current-user > ul li a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 0 8px;
        border-radius: var(--scene-radius);
    }
    html.mwt .mwt-drawer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 20px 20px 0;
        padding: 16px 0 max(24px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--scene-line);
    }
    html.mwt .mwt-drawer-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 12px;
        border-radius: var(--scene-radius);
        color: var(--scene-text);
        font-size: 12px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }
    html.mwt .mwt-drawer-links a:hover {
        background: var(--scene-line);
        color: var(--scene-accent);
    }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: reduce) {
    html.mwt :is(.main-menu, .mwt-nav-backdrop) {
        transition: none;
    }
}
/* User menu */
html.mwt .header-user-menu .current-user .user-toggle,
html.mwt .header-user-menu .current-user .user-toggle .user-tag h5,
html.mwt .header-user-menu .current-user .user-toggle .user-tag span {
    color: var(--scene-text);
}
html.mwt .header-user-menu .current-user .user-toggle .user-tag span {
    color: var(--scene-muted);
}
html.mwt .header-user-menu .current-user .user-toggle:after,
html.mwt .header-user-menu .current-user .user-toggle:hover:after,
html.mwt .header-user-menu .current-user .user-toggle.active:after {
    color: var(--scene-accent);
}
html.mwt .header-user-menu .current-user ul {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .header-user-menu .current-user ul li a {
    color: var(--scene-text);
}
html.mwt .header-user-menu .current-user ul li a:hover {
    background: var(--scene-line);
    color: var(--scene-accent);
}
html.mwt .header-user-menu .current-user ul li a i {
    color: var(--scene-muted);
}

/* 5 ── Footer (design system: SiteFooter) ──
   Measured against the main site (v3 Footer.astro + commerce-foundation.css, dark): 72px / 32px inside the shell,
   columns from 640px (2) and 1024px (4), 13px links 1.5 line-height with 5px hit padding and 8px between rows,
   12px legal row under an 8% white hairline. */
html.mwt .footer {
    padding: 0;
    background: var(--scene-bg);
    border-top: 1px solid var(--scene-line);
    color: var(--scene-muted);
    margin-top: 72px;
}
html.mwt .mwt-footer {
    padding-block: 72px 32px;
    text-align: left;
}
html.mwt .mwt-footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 48px;
}
@media (min-width: 640px) {
    html.mwt .mwt-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    html.mwt .mwt-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}
html.mwt .mwt-footer-brand img {
    display: block;
    width: auto;
    height: 32px;
    margin-bottom: 14px;
}
html.mwt .mwt-footer-tagline {
    margin: 0 0 16px;
    color: var(--color-cyan-500);
    font: 700 9px/1.5 var(--scene-display);
    letter-spacing: 0.2em;
}
html.mwt .mwt-footer address {
    margin: 0;
    color: var(--scene-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.8;
}
/* Phone stays tappable but reads as part of the address, as on the main site */
html.mwt .mwt-footer address a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}
html.mwt .mwt-footer address a:hover {
    color: var(--scene-accent);
}
html.mwt .mwt-footer h2 {
    margin: 0 0 14px;
    color: var(--scene-muted);
    font: 700 12px/16px var(--scene-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
html.mwt .mwt-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
html.mwt .mwt-footer li + li {
    margin-top: 8px;
}
html.mwt .mwt-footer li a {
    display: inline-block;
    padding-block: 5px;
    color: var(--scene-muted);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 150ms;
}
html.mwt .mwt-footer li a:hover {
    color: var(--scene-accent);
}
html.mwt .mwt-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgb(255 255 255 / 8%);
}
html.mwt .mwt-footer-legal p {
    margin: 0;
    color: var(--scene-muted);
    font-size: 12px;
    line-height: 16px;
}
html.mwt .mwt-footer-legal p:first-child {
    color: var(--scene-text);
}
html.mwt .mwt-footer-legal a {
    display: inline-block;
    padding-block: 5px;
    color: var(--color-cyan-500);
    font-size: 12px;
    line-height: 16px;
    text-decoration: none;
    transition: color 150ms;
}
html.mwt .mwt-footer-legal a:hover {
    color: var(--scene-accent);
}
@media (min-width: 640px) {
    html.mwt .mwt-footer-legal {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
html.mwt .footer .copyright {
    border-top: 1px solid var(--scene-line);
    color: var(--scene-muted);
    background: transparent;
}
html.mwt .footer .copyright p,
html.mwt .footer .copyright a {
    color: var(--scene-muted);
}
html.mwt .footer .brand-logo {
    filter: grayscale(1) brightness(2);
    opacity: 0.6;
}

/* 6 ── Surfaces: the stock theme's white / grey panels become the raised scene surface ── */
html.mwt .dashboard-wraper,
html.mwt .knowledge-base-search,
html.mwt .content-area {
    background: transparent;
}
html.mwt :is(
    .cs-padding,
    .cm-holder,
    .cm-box-holder,
    .data-table-wrapper,
    .action-btns,
    .client-area-page .client-area-top-block .client-area-top-box,
    .knowledge-base-article-page .knowledge-base-content-block,
    .knowledge-base-wraper .knowledge-base-boxes-block .knowledge-base-box,
    .knowledge-base-wraper .container .subcategory-header,
    .package-view-page .package-side-bar,
    .affiliate-system-page .affiliate-side-bar,
    .dns-records-block,
    .nameservers-block,
    .ticket-view-page .cm-tab-accordion,
    .ticket-tab-reply-block,
    .product-detail-block .product-detail-4boxes .product-detail-box,
    .product-detail-block.contactinfo-block,
    .product-detail-block.dns-records-block,
    .invoice-payment-block,
    .invoice2-plans-section,
    .upgrade-downgrade-top,
    .upgrade-downgrade-second,
    .sidebar,
    .config-options,
    .product-flex-wrapper .product-flex-item,
    .product-flex-wrapper .product-flex-item .head,
    .hosting-plan-row,
    .cart-pages-wrapper .product-groups-block .product-group-box,
    .config-product-section .summary-info .summary-holder .head,
    .config-product-section .summary-info .summary-holder .summery-fees,
    .config-product-section .summary-info .summary-holder .summery-bottom,
    .dashboard-left-bar,
    .dashboard-right-block,
    .dash-commen-boxes,
    .client-area-bottom-block,
    .inline-heading h4
) {
    background: var(--scene-surface);
    border-color: var(--scene-line);
    color: var(--scene-text);
    box-shadow: none;
}
html.mwt :is(.cm-holder, .cs-padding, .data-table-wrapper, .dashboard-left-bar, .dashboard-right-block, .cm-box-holder, .hosting-plan-row, .product-group-box, .client-area-top-box, .knowledge-base-box) {
    border-radius: var(--scene-radius);
}
/* Panels nested in panels stay flat so only the outer one reads as raised */
html.mwt :is(.cm-holder, .dashboard-right-block) :is(.cs-padding, .data-table-wrapper, .cm-holder) {
    background: transparent;
}
html.mwt :is(.client-area-top-box, .product-group-box, .knowledge-base-box, .hosting-plan-row):hover {
    background: var(--scene-surface-raised);
    border-color: var(--scene-accent);
}
html.mwt .head,
html.mwt .heading {
    border-color: var(--scene-line);
}

/* 7 ── Type: stock greys become scene text / muted ── */
html.mwt :is(
    .client-area-page .client-area-top-block .client-area-top-box p,
    .knowledge-base-article-page .knowledge-base-sidebar .accordion a,
    .package-view-page .package-side-bar li a,
    .package-view-page .package-side-bar .actions-side-bar li a,
    .cart-status-bar .cart-status-nodes .cart-status-label,
    .summary-row .title .link,
    .dashboard-info-box p,
    .text-muted,
    small
) {
    color: var(--scene-muted) !important;
}
html.mwt :is(
    .client-area-page .client-area-top-block .client-area-top-box p span,
    .package-view-page h3,
    .ticket-avatar-ul li b,
    .ticket-tab-reply-block .ticket-tab-reply-head h3,
    .invoice-page-wraper .invoice-bottom-block ul li p,
    .invoice-payment-block h3,
    .upgrade-downgrade-third h3,
    .cart-pages-wrapper .product-groups-block .product-group-box h4,
    .cart-pages-wrapper .product-groups-block .product-group-box h4 a,
    .dash-commen-boxes p span,
    .dashboard-info-box .heading h4
) {
    color: var(--scene-text);
}
html.mwt .dash-commen-boxes p {
    color: var(--scene-muted);
    font-size: 13px;
}
html.mwt .dash-commen-boxes p span {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: -0.02em;
}
html.mwt .dash-commen-boxes,
html.mwt .dash-commen-boxes:is(.yellow-bg, .purple-bg, .green-bg) {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
}
html.mwt .dash-commen-boxes i {
    color: var(--scene-accent);
    opacity: 1;
}
html.mwt a:hover > .dash-commen-boxes {
    border-color: var(--scene-accent);
}
html.mwt .dashboard-info-box ul li a {
    color: var(--scene-text);
}
html.mwt .dashboard-info-box ul li a:hover,
html.mwt .dashboard-info-box ul li a i {
    color: var(--scene-accent);
}
html.mwt .client-area-page .client-area-top-block .client-area-top-box img {
    filter: grayscale(1) brightness(1.6);
    opacity: 0.85;
}

/* 8 ── Actions: one cyan primary per view; everything else is quiet ── */
html.mwt :is(.app-btns.primary, .btn-primary, .service-primary-action, .mwt-primary-action) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--scene-radius);
    background: var(--scene-accent);
    color: var(--scene-bg);
    font: 650 14px/1 var(--scene-display);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: background 0.2s;
}
html.mwt :is(.app-btns.primary, .btn-primary, .service-primary-action, .mwt-primary-action):is(:hover, :focus, :active) {
    background: var(--scene-accent-hover) !important;
    color: var(--scene-bg) !important;
    border-color: transparent !important;
}
html.mwt input.app-btns.primary {
    display: inline-block;
    line-height: 44px;
}
html.mwt :is(.app-btns:not(.primary), .btn-secondary, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-default) {
    min-height: 44px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: transparent;
    color: var(--scene-text);
    font: 650 14px/1 var(--scene-display);
    box-shadow: none;
}
html.mwt :is(.app-btns:not(.primary), .btn-secondary, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-default):hover {
    border-color: var(--scene-accent);
    background: transparent;
    color: var(--scene-accent);
}
html.mwt :is(.btn-danger, .btn-outline-danger) {
    border-radius: var(--scene-radius);
    background: transparent;
    border: 1px solid var(--mwt-error);
    color: var(--mwt-error);
}
html.mwt .btn-success {
    border-radius: var(--scene-radius);
    background: var(--color-success);
    border-color: var(--color-success);
}
html.mwt .btn-link {
    color: var(--scene-accent);
}
html.mwt :is(.service-secondary-action, .service-text-link, .mwt-text-link) {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: var(--scene-accent);
    font: 650 14px/1 var(--scene-display);
    text-decoration: none;
}
html.mwt :is(.service-secondary-action, .service-text-link, .mwt-text-link, .service-primary-action, .mwt-primary-action) > span[aria-hidden] {
    font-size: 18px;
    transition: transform 0.2s;
}
html.mwt :is(.service-secondary-action, .service-text-link, .mwt-text-link, .service-primary-action, .mwt-primary-action):hover > span[aria-hidden] {
    transform: translate(3px, -3px);
}
html.mwt .product-dropdown .actions {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    color: var(--scene-text);
    border-radius: var(--scene-radius);
}
html.mwt .btn:disabled,
html.mwt .btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* List filters (#filter-ul: invoices Open / Paid / Draft / All, tickets, commissions).
 * Stock styles them by id as grey (#d0d3d8) buttons with white text and a royal-blue (#012890) active one, each
 * float:right so they read in reverse. Here: one segmented control in DOM order, matching .mwt-choice. */
html.mwt #filter-ul {
    display: inline-flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    overflow: hidden;
}
html.mwt #filter-ul .btn {
    float: none;
    min-height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid var(--scene-field-line);
    border-radius: 0;
    background: transparent;
    color: var(--scene-muted);
    font: 650 13px/1 var(--scene-display);
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}
html.mwt #filter-ul .btn:first-child {
    border-left: 0;
}
html.mwt #filter-ul .btn:hover {
    background: var(--scene-surface-raised);
    color: var(--scene-text);
}
html.mwt #filter-ul .btn.btn-primary {
    background: rgb(54 200 250 / 12%) !important;
    color: var(--scene-accent) !important;
    box-shadow: inset 0 -2px 0 var(--scene-accent);
}
/* Row-select checkbox column (invoices list): no stock 120px cell minimum, brand-coloured ticks */
html.mwt .data-table-wrapper table tr :is(th, td):has(> input[type="checkbox"]:only-child) {
    width: 44px;
    min-width: 0;
}
html.mwt .data-table-wrapper table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--scene-accent);
}
html.mwt #filter-ul .btn:focus-visible {
    outline: 2px solid var(--scene-accent);
    outline-offset: -2px;
}

/* 9 ── Forms ── */
html.mwt :is(
    .form-control,
    .custom-select,
    .custom-file-label,
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-selection--multiple,
    form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]),
    form select,
    form textarea
) {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background-color: var(--scene-surface);
    color: var(--scene-text);
    font-family: var(--font-body);
    font-size: 15px;
    box-shadow: none;
}
html.mwt :is(.form-control, .custom-select, form input, form select, form textarea):focus {
    border-color: var(--scene-accent);
    background-color: var(--scene-surface);
    color: var(--scene-text);
    box-shadow: 0 0 0 3px rgb(54 200 250 / 20%);
    outline: none;
}
html.mwt :is(input, textarea)::placeholder {
    color: var(--scene-muted);
    opacity: 1;
}
html.mwt :is(.form-control, .custom-select):disabled,
html.mwt .form-control[readonly] {
    background-color: var(--scene-bg);
    opacity: 0.7;
}
html.mwt :is(input, textarea, select) {
    accent-color: var(--scene-accent);
}
html.mwt label,
html.mwt .col-form-label {
    color: var(--scene-text);
    font: 600 13px/1.4 var(--scene-display);
    letter-spacing: 0.02em;
}
html.mwt .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--scene-text);
    line-height: 22px;
    padding-left: 0;
}
html.mwt .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}
html.mwt .select2-dropdown {
    background: var(--scene-surface);
    border-color: var(--scene-line);
    color: var(--scene-text);
}
html.mwt .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--scene-line);
    color: var(--scene-accent);
}
html.mwt .select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--scene-bg);
}
html.mwt .select2-search--dropdown .select2-search__field {
    background: var(--scene-bg);
    color: var(--scene-text);
    border-color: var(--scene-line);
}
html.mwt :is(.parsley-errors-list, .invalid-feedback, .text-danger) {
    color: var(--mwt-error) !important;
}
html.mwt :is(.parsley-error, .is-invalid) {
    border-color: var(--mwt-error) !important;
}
html.mwt .input-group-text {
    background: var(--scene-bg);
    border-color: var(--scene-field-line);
    color: var(--scene-muted);
}

/* 10 ── Tables (DataTables + stock list tables) ── */
html.mwt .table,
html.mwt .data-table-wrapper table {
    color: var(--scene-text);
    background: transparent;
}
html.mwt .table :is(td, th),
html.mwt .data-table-wrapper table tr :is(td, th),
html.mwt .cm-holder #content-page .data-table-wrapper table tr td {
    background: transparent;
    border-color: var(--scene-line);
    color: var(--scene-text);
}
html.mwt .table thead th,
html.mwt .data-table-wrapper table thead th {
    color: var(--scene-muted);
    font: 600 11px/1.3 var(--scene-display);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--scene-line);
}
html.mwt .table-hover tbody tr:hover,
html.mwt .data-table-wrapper table tbody tr:hover td {
    background: rgb(54 200 250 / 6%);
}
html.mwt .table-striped tbody tr:nth-of-type(odd) {
    background: rgb(255 255 255 / 2%);
}
html.mwt .data-table-wrapper table tr td .cog-drop-down,
html.mwt .data-table-wrapper table tr td .action.active {
    background: var(--scene-surface);
    border-color: var(--scene-line);
}
html.mwt :is(.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter) {
    color: var(--scene-muted);
}
html.mwt table.dataTable.dtr-inline.collapsed > tbody > tr > :is(td, th).dtr-control:before {
    background-color: var(--scene-accent);
    border-color: var(--scene-bg);
    box-shadow: none;
}

/* 11 ── Bootstrap / vendor components ── */
html.mwt :is(.dropdown-menu, .popover, .card, .list-group-item, .modal-content, .jconfirm .jconfirm-box, .jconfirm.jconfirm-bootstrap .jconfirm-box) {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    color: var(--scene-text);
    box-shadow: 0 16px 40px rgb(0 0 0 / 35%);
}
html.mwt .dropdown-item {
    color: var(--scene-text);
}
html.mwt .dropdown-item:is(:hover, :focus) {
    background: var(--scene-line);
    color: var(--scene-accent);
}
html.mwt :is(.card-header, .card-footer, .modal-header, .modal-footer) {
    background: transparent;
    border-color: var(--scene-line);
}
html.mwt .close {
    color: var(--scene-text);
    text-shadow: none;
    opacity: 0.8;
}
html.mwt .modal-backdrop.show {
    opacity: 0.7;
}
html.mwt .jconfirm .jconfirm-box div.jconfirm-title-c,
html.mwt .jconfirm .jconfirm-box div.jconfirm-content {
    color: var(--scene-text);
}
html.mwt .jconfirm .jconfirm-bg {
    background: var(--scene-bg);
    opacity: 0.7;
}
html.mwt .nav-tabs {
    border-color: var(--scene-line);
}
html.mwt .nav-tabs .nav-link {
    color: var(--scene-muted);
    border-radius: var(--scene-radius) var(--scene-radius) 0 0;
}
html.mwt .nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--scene-accent);
}
html.mwt .nav-tabs :is(.nav-link.active, .nav-item.show .nav-link) {
    background: var(--scene-surface);
    border-color: var(--scene-line) var(--scene-line) var(--scene-surface);
    color: var(--scene-text);
}
html.mwt :is(.resp-tabs-container, .resp-tab-active, h2.resp-accordion) {
    background: var(--scene-surface);
    border-color: var(--scene-line) !important;
    color: var(--scene-text);
}
html.mwt .resp-tabs-list li {
    color: var(--scene-muted);
}
html.mwt .resp-tabs-list li.resp-tab-active {
    color: var(--scene-accent) !important;
}
html.mwt .page-link {
    background: transparent;
    border-color: var(--scene-line);
    color: var(--scene-accent);
}
html.mwt .page-link:hover {
    background: var(--scene-line);
    color: var(--scene-accent-hover);
}
html.mwt .page-item.active .page-link {
    background: var(--scene-accent);
    border-color: var(--scene-accent);
    color: var(--scene-bg);
}
html.mwt .page-item.disabled .page-link {
    background: transparent;
    border-color: var(--scene-line);
    color: var(--scene-muted);
}
/* Alerts: ruled left edge, tinted ground (design system: contact-form-error) */
html.mwt .alert {
    border: 0;
    border-left: 3px solid var(--scene-accent);
    border-radius: 0 var(--scene-radius) var(--scene-radius) 0;
    background: rgb(54 200 250 / 8%);
    color: var(--scene-text);
}
html.mwt :is(.alert-success, .ce-alert-success) {
    border-left-color: var(--mwt-ok);
    background: rgb(111 211 160 / 8%);
}
html.mwt :is(.alert-warning) {
    border-left-color: var(--mwt-warn);
    background: rgb(245 178 94 / 8%);
}
html.mwt :is(.alert-danger, .ce-alert-error) {
    border-left-color: var(--mwt-error);
    background: rgb(255 155 155 / 8%);
}
html.mwt .alert :is(a, .alert-link) {
    color: var(--scene-accent);
}
html.mwt .badge {
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
}
html.mwt :is(.badge-light, .badge-secondary) {
    background: var(--scene-line);
    color: var(--scene-text);
}
html.mwt .badge-primary {
    background: var(--scene-accent);
    color: var(--scene-bg);
}
html.mwt :is(.bg-white, .bg-light) {
    background-color: var(--scene-surface) !important;
}
html.mwt :is(.border, .border-top, .border-bottom, .border-left, .border-right) {
    border-color: var(--scene-line) !important;
}
html.mwt .tooltip-inner {
    background: var(--scene-text);
    color: var(--scene-bg);
}
/* Status pills (stock classes) on dark */
html.mwt .status {
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}
html.mwt .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background: var(--scene-line);
}

/* 12 ── Portal pages ── */
/* Section title strips (stock .head): transparent, ruled, design-system heading */
html.mwt :is(.data-table-wrapper .head, .config-product-section .summary-info .summary-holder .head, .product-flex-wrapper .product-flex-item .head) {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--scene-line);
    border-radius: 0;
}
html.mwt .head :is(h1, h2, h3, h4),
html.mwt :is(.cm-holder #content-page, .cm-holder.invoice-list-table, .cm-holder.package-list-table, .cm-holder.support-ticket-table) .head h3,
html.mwt .hosting-plan-row .head h3 {
    color: var(--scene-text);
    font-family: var(--scene-display);
    font-weight: 550;
    letter-spacing: -0.04em;
}
html.mwt :is(.hosting-plan-row .head .setupfee, .hosting-plan-row .head p, .product-flex-wrapper .product-flex-item .head .rate-from, .product-flex-wrapper .product-flex-item .head h3 .setupfee, .product-flex-wrapper .product-flex-item .head h3 del) {
    color: var(--scene-muted);
}
/* "View all" pills become text links (no pills in the design system) */
html.mwt .head .view-all-table {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--scene-accent);
    font: 650 13px/1 var(--scene-display);
}
html.mwt .head .view-all-table:hover {
    background: transparent;
    color: var(--scene-accent-hover);
}
html.mwt .head .view-all-table::after {
    content: " ↗";
}
/* Plan title badge becomes an eyebrow label */
html.mwt .product-flex-wrapper .product-flex-item .head .title {
    background: transparent;
    border-radius: 0;
}
html.mwt .product-flex-wrapper .product-flex-item .head .title:after {
    display: none;
}
html.mwt .product-flex-wrapper .product-flex-item .head .title h4 {
    color: var(--scene-accent);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Page headings inside panels */
html.mwt .cm-holder .head h1,
html.mwt .cm-holder .head h3,
html.mwt .data-table-wrapper .head h1 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}
/* Home tiles */
html.mwt .client-area-page .client-area-top-block .client-area-top-box {
    border: 1px solid var(--scene-line);
}
html.mwt .client-area-page .client-area-top-block .client-area-top-box p span {
    font-family: var(--scene-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.02em;
}
/* Knowledge base */
/* Home page "Popular Articles" (home/indexpublic/main.phtml) reuses the KB home box; align it to the cards above
 * (the card grid's own 72px bottom margin is the gap) */
html.mwt .mwt-home-kb {
    padding: 0;
}
html.mwt .mwt-home-kb .knowledge-base-boxes-block {
    padding: 0;
}
html.mwt .mwt-home-kb .knowledge-base-box {
    margin-top: 0;
}
html.mwt .mwt-home-kb .show-all {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
html.mwt .knowledge-base-search .knowledge-search-input {
    background: var(--scene-surface);
    border: 1px solid var(--scene-field-line);
    color: var(--scene-text);
}
html.mwt .knowledge-base-wraper .knowledge-base-boxes-block .knowledge-base-box {
    border: 1px solid var(--scene-line);
}
html.mwt .knowledge-base-article-page .knowledge-base-content-block :is(p, li) {
    color: var(--scene-muted);
}
html.mwt .knowledge-base-article-page .knowledge-base-content-block :is(h1, h2, h3, h4) {
    color: var(--scene-text);
}
/* KB breadcrumb bar (knowledgebase/articlespublic/partials/breadcrumbs.phtml): back link + trail */
html.mwt .mwt-kb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin: 0 0 20px;
}
/* Article page: the wrapper has no top padding (the article block carries 45px), so move that gap above the nav */
html.mwt .dashboard-wraper > .container > .mwt-kb-nav {
    padding-top: 45px;
}
html.mwt .mwt-kb-nav + .knowledge-base-article-page {
    padding-top: 0;
}
html.mwt .mwt-kb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    color: var(--scene-text);
    font: 650 13px/1 var(--scene-display);
    text-decoration: none;
    white-space: nowrap;
}
html.mwt .mwt-kb-back:hover {
    border-color: var(--scene-accent);
    color: var(--scene-accent);
    text-decoration: none;
}
html.mwt .mwt-kb-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
html.mwt .mwt-kb-crumbs li {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--scene-muted);
}
html.mwt .mwt-kb-crumbs li + li:before {
    content: "\203A";
    margin: 0 10px;
    color: var(--scene-field-line);
}
html.mwt .mwt-kb-crumbs a {
    color: var(--scene-accent);
}
html.mwt .mwt-kb-crumbs a:hover {
    color: var(--scene-accent-hover);
}
html.mwt .mwt-kb-crumbs [aria-current="page"] {
    overflow: hidden;
    max-width: 60ch;
    color: var(--scene-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 767px) {
    /* Phones: the back button is the navigation, the trail would just wrap */
    html.mwt .mwt-kb-crumbs {
        display: none;
    }
}
/* KB article body: stock vendor.css sets #article-content p / li to #212529 (and a #f9f9f9 blockquote). The id
 * selector outranks the class rules above, so the body rendered near-black on navy. */
html.mwt #article-content :is(p, li, td, th, dd, dt) {
    color: var(--scene-muted);
}
html.mwt #article-content :is(strong, b, h1, h2, h3, h4, h5, h6) {
    color: var(--scene-text);
}
html.mwt #article-content a {
    color: var(--scene-accent);
}
html.mwt #article-content a:hover {
    color: var(--scene-accent-hover);
}
html.mwt #article-content blockquote {
    background: var(--scene-surface-raised);
    border-left: 4px solid var(--scene-accent);
    border-radius: 0 var(--scene-radius) var(--scene-radius) 0;
}
html.mwt #article-content blockquote:before {
    color: var(--scene-muted);
}
html.mwt #article-content :is(table, th, td) {
    border-color: var(--scene-line);
}
html.mwt #article-content :is(code, pre) {
    background: var(--scene-bg);
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    color: var(--scene-text);
}
html.mwt #article-content code {
    padding: 0.1em 0.35em;
}
html.mwt #article-content pre code {
    padding: 0;
    border: 0;
}
html.mwt #article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--scene-radius);
}
/* KB article rhythm (8px scale). Stock: h2 had no top margin, body line-height "normal", lists no bottom margin
 * and a 35px indent per li, so sections ran together. */
html.mwt #article-content :is(p, li) {
    font-size: 16px;
    line-height: 1.7;
}
html.mwt #article-content p {
    margin: 0 0 16px;
}
html.mwt #article-content > :first-child {
    margin-top: 0;
}
html.mwt #article-content :is(h2, h3, h4) {
    font-family: var(--scene-display);
    line-height: 1.3;
    letter-spacing: -0.01em;
    scroll-margin-top: 128px; /* clear the fixed header when jumped to */
}
html.mwt #article-content h2 {
    margin: 48px 0 16px;
    padding-top: 32px;
    border-top: 1px solid var(--scene-line);
    font-size: 22px;
    font-weight: 650;
}
html.mwt #article-content > h2:first-child {
    padding-top: 0;
    border-top: 0;
}
html.mwt #article-content h3 {
    margin: 32px 0 12px;
    padding-bottom: 0;
    font-size: 18px;
    font-weight: 650;
}
html.mwt #article-content h4 {
    margin: 24px 0 8px;
    font-size: 16px;
    font-weight: 700;
}
html.mwt #article-content :is(ul, ol) {
    margin: 0 0 24px;
    padding-left: 24px;
}
html.mwt #article-content :is(ul, ol) :is(ul, ol) {
    margin: 8px 0 0;
}
html.mwt #article-content :is(ul, ol) li {
    margin: 0 0 8px;
    padding-left: 6px;
}
html.mwt #article-content ul > li::marker {
    color: var(--scene-field-line);
}
/* Numbered steps: the step number carries weight */
html.mwt #article-content ol > li::marker {
    color: var(--scene-accent);
    font-family: var(--scene-display);
    font-weight: 700;
}
html.mwt #article-content code {
    font-size: 0.875em;
    overflow-wrap: anywhere;
}
html.mwt #article-content hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid var(--scene-line);
}
/* Tables: ruled rows, label-style header, own horizontal scroll on narrow screens (wrapper added by article.phtml) */
html.mwt #article-content .mwt-table-scroll {
    overflow-x: auto;
    margin: 8px 0 24px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt #article-content .mwt-table-scroll:focus-visible {
    outline: 2px solid var(--scene-accent);
    outline-offset: 2px;
}
html.mwt #article-content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
html.mwt #article-content :not(.mwt-table-scroll) > table {
    margin: 8px 0 24px;
    border: 1px solid var(--scene-line);
}
/* Stock styles every .system-requirements-top table as a light "system requirements" grid (2px cell borders, bold
 * 28% first column, grey fills); undo that for article content */
html.mwt #article-content table :is(thead, tbody, tr) {
    border: 0;
}
html.mwt #article-content table tr :is(th, td) {
    width: auto;
    border-right: 0;
    border-left: 0;
}
html.mwt #article-content table tbody tr td {
    background: transparent;
    font-weight: 400;
}
html.mwt #article-content table tbody tr td:first-child {
    color: var(--scene-text);
    font-size: 15px;
    font-weight: 600;
}
html.mwt #article-content th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--scene-line);
    background: var(--scene-surface-raised);
    color: var(--scene-muted);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
html.mwt #article-content td {
    padding: 12px 16px;
    border-top: 1px solid var(--scene-line);
    color: var(--scene-text);
    font-size: 15px;
    line-height: 1.5;
    vertical-align: top;
}
html.mwt #article-content tbody tr:first-child td {
    border-top: 0;
}
html.mwt #article-content tbody tr:hover td {
    background: rgb(255 255 255 / 2%);
}
html.mwt #article-content td code {
    white-space: nowrap;
}
/* Related MyWebTeam service at the end of a KB article (article.phtml), links to mywebteam.com.au */
html.mwt .mwt-kb-service {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: var(--measure-prose);
    margin: 48px 0 8px;
    padding: 24px 28px;
    border: 1px solid var(--scene-line);
    border-left: 3px solid var(--scene-accent);
    border-radius: var(--scene-radius);
    background: var(--scene-surface-raised);
}
html.mwt .mwt-kb-service > div {
    flex: 1 1 360px;
    min-width: 0;
}
html.mwt .knowledge-base-article-page .mwt-kb-service .eyebrow {
    margin: 0 0 6px;
    color: var(--scene-accent);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
html.mwt .mwt-kb-service h2 {
    margin: 0 0 6px;
    color: var(--scene-text);
    font: 650 20px/1.3 var(--scene-display);
    letter-spacing: -0.01em;
}
html.mwt .knowledge-base-article-page .mwt-kb-service p:not(.eyebrow) {
    margin: 0;
    color: var(--scene-muted);
    font-size: 15px;
    line-height: 1.6;
}
html.mwt .mwt-kb-service .mwt-primary-action {
    flex: 0 0 auto;
}
/* "On this page" table of contents (built by article.phtml from h2 / h3) */
html.mwt .mwt-kb-toc {
    margin: 0 0 32px;
    padding: 16px 20px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
}
html.mwt .mwt-kb-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    color: var(--scene-muted);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}
html.mwt .mwt-kb-toc summary::-webkit-details-marker {
    display: none;
}
html.mwt .mwt-kb-toc summary:after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
html.mwt .mwt-kb-toc[open] summary:after {
    transform: rotate(-135deg);
}
html.mwt .mwt-kb-toc summary:focus-visible,
html.mwt .mwt-kb-toc a:focus-visible {
    outline: 2px solid var(--scene-accent);
    outline-offset: 2px;
}
html.mwt .mwt-kb-toc ol {
    margin: 12px 0 0;
    padding: 0;
    border-left: 1px solid var(--scene-line);
    list-style: none;
}
html.mwt .mwt-kb-toc li {
    margin: 0;
}
html.mwt .mwt-kb-toc a {
    display: block;
    margin-left: -1px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    color: var(--scene-muted);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}
html.mwt .mwt-kb-toc li.is-sub a {
    padding-left: 28px;
    font-size: 13px;
}
html.mwt .mwt-kb-toc a:hover {
    color: var(--scene-text);
    text-decoration: none;
}
html.mwt .mwt-kb-toc a.is-active {
    border-left-color: var(--scene-accent);
    color: var(--scene-accent);
}
@media (min-width: 1200px) {
    /* Sticky sidebar beside the article; DOM order keeps it first for small screens and screen readers */
    html.mwt .mwt-kb-article.has-toc {
        display: grid;
        /* Text column capped at the reading measure so the contents sit beside the text, not at the far edge */
        grid-template-columns: minmax(0, var(--measure-prose)) 260px;
        justify-content: start;
        gap: 0 56px;
        align-items: start;
    }
    html.mwt .mwt-kb-article.has-toc #article-content {
        grid-column: 1;
        grid-row: 1;
    }
    html.mwt .mwt-kb-article.has-toc .mwt-kb-toc {
        position: sticky;
        top: 128px;
        grid-column: 2;
        grid-row: 1;
        max-height: calc(100vh - 152px);
        margin: 0;
        overflow-y: auto;
    }
    html.mwt .mwt-kb-toc summary {
        cursor: default;
    }
    html.mwt .mwt-kb-toc summary:after {
        display: none;
    }
}
@media (prefers-reduced-motion: no-preference) {
    html.mwt:has(#mwt-kb-toc:not([hidden])) {
        scroll-behavior: smooth;
    }
}
/* Product / domain detail */
html.mwt .package-view-page .package-side-bar li a:hover,
html.mwt .sidebar .sidenav li a:hover,
html.mwt .sidebar .sidenav li.active a {
    background: var(--scene-line);
    color: var(--scene-accent);
}
html.mwt .sidebar .sidenav li a {
    color: var(--scene-text);
}
html.mwt .sidebar-toggle span,
html.mwt .sidebar-toggle span:after,
html.mwt .sidebar-toggle span:before {
    background: var(--scene-text);
}
/* Invoice */
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-pdf-btn {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    color: var(--scene-text);
}
html.mwt .payment-method .select-payment label {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    color: var(--scene-text);
}
html.mwt .payment-method .select-payment label.selected {
    border-color: var(--scene-accent);
    background: var(--scene-surface-raised);
}
/* Ticket / comment threads */
html.mwt .ticket-tab-reply-block textarea {
    background: var(--scene-bg);
}
/* Images: 6px radius + faint inner border (design system) */
html.mwt .content-area img.img-fluid:not(.client-area-top-box img) {
    border-radius: var(--scene-radius);
}

/* 12b ── Remaining stock light / loud surfaces ──
 * White (#fff, #f2f5f9, #eaeff5) panels and saturated blue/orange bands left over from the stock theme glare on the
 * navy scene. They become the raised surface with scene text (#f0f5fa on #10263d ≈ 14:1, readable without the glare). */
html.mwt :is(
    .knowledge-base-wraper .knowledge-base-boxes-block,
    .cart-pages-wrapper .product-groups-block
) {
    background: transparent;
    border-color: transparent;
}
html.mwt :is(
    .client-area-page .client-area-bottom-block .resp-tabs-container .resp-tab-content .client-area-tabs-block,
    .knowledge-base-wraper .knowledge-base-search2,
    .knowledge-base-article-page .knowledge-base-content-block .system-requirements-block,
    .invoice-page-wraper .invoice-top-block .invoice-head,
    .domain-page .domain-section .resp-tabs-container .resp-tab-content,
    .affiliate-system-page .unique-referal-block .unique-referal-left,
    .affiliate-system-page .affiliate-status-block .affiliate-boxes .affiliate-single-box,
    .affiliate-system-page .affiliate-bardiagram,
    #announcement-page #announcements,
    .white-card,
    .info-bar,
    .have-a-quest,
    .ui-widget-content
) {
    background: var(--scene-surface) !important;
    border-color: var(--scene-line);
    color: var(--scene-text);
    box-shadow: none;
}
html.mwt :is(
    .client-area-page .client-area-bottom-block .resp-tabs-container .resp-tab-content .client-area-tabs-block .client-area-tabs-head,
    .knowledge-base-wraper .knowledge-base-boxes-block .knowledge-base-box .show-all-btn,
    .upgrade-downgrade-third .table tr.addons-row td,
    .product-dropdown .actions-ul,
    .popover-header,
    .list-group-item-action:focus
) {
    background: var(--scene-surface-raised) !important;
    border-color: var(--scene-line);
    color: var(--scene-text);
}
/* Stock dark-navy text (#384060, #282f38) and royal-blue links inside those panels */
html.mwt :is(
    .client-area-tabs-block :is(h3, p, .accordion-item),
    .knowledge-base-wraper .knowledge-base-search2 h3,
    .knowledge-base-wraper .knowledge-base-boxes-block .knowledge-base-box h4,
    .system-requirements-block :is(h3, h4, th, td:first-child),
    .invoice-head-address p strong,
    .product-dropdown .actions-ul li a
) {
    color: var(--scene-text) !important;
}
html.mwt :is(
    .client-area-tabs-block a,
    .client-area-tabs-block :is(.client-area-announcement, .client-area-popular-article) ul li:before,
    .knowledge-base-wraper .knowledge-base-search2 p a,
    .knowledge-base-wraper .knowledge-base-boxes-block .knowledge-base-box ul li a:not(.open-ticket),
    .knowledge-base-wraper .knowledge-base-boxes-block .knowledge-base-box ul li a:not(.open-ticket):before,
    .knowledge-base-wraper .knowledge-base-boxes-block .knowledge-base-box .show-all-btn,
    .invoice-head-address h4
) {
    /* !important: the stock selectors here are 6-7 classes deep */
    color: var(--scene-accent) !important;
}
html.mwt .client-area-tabs-block :is(li, .accordion-item) {
    border-color: var(--scene-line) !important;
}
html.mwt :is(.knowledge-base-wraper .knowledge-base-search2 p, .system-requirements-block :is(td, .date-comment li, .following-head), .invoice-head-address p) {
    color: var(--scene-muted);
}
html.mwt .product-dropdown .actions-ul li a:hover {
    background: var(--scene-line);
    color: var(--scene-accent) !important;
}
/* Home "Announcements / Popular Articles" tab pills: royal-blue fill becomes the ruled accent tab */
html.mwt .client-area-page .client-area-bottom-block ul.resp-tabs-list .resp-tab-item {
    background: transparent;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    color: var(--scene-muted);
    font-family: var(--scene-display);
    font-weight: 650;
}
html.mwt .client-area-page .client-area-bottom-block :is(ul.resp-tabs-list .resp-tab-item.resp-tab-active, .resp-tabs-container h2.resp-accordion.resp-tab-active) {
    background: var(--scene-surface);
    border-color: var(--scene-accent);
    color: var(--scene-accent) !important;
}
/* KB search: orange square button becomes the cyan primary */
html.mwt .knowledge-base-wraper .knowledge-base-search2 .knowledge-base-search-box2 .knowledge-search-box:after {
    background: var(--scene-accent);
    color: var(--scene-bg);
    border-radius: 0 var(--scene-radius) var(--scene-radius) 0;
}
/* Invoice paid / unpaid summary: tinted ground, not pastel green / pink */
html.mwt .invoice-page-wraper .invoice-top-block .invoice-head .invoice-head-right {
    background: rgb(111 211 160 / 8%) !important;
    border-left: 3px solid var(--mwt-ok);
}
html.mwt .unpaid-invoice-page .invoice-head-right {
    background: rgb(255 155 155 / 8%) !important;
    border-left-color: var(--mwt-error) !important;
}
html.mwt .invoice-page-wraper .invoice-head-right .table tr td {
    color: var(--scene-text) !important;
}
html.mwt .invoice-page-wraper .invoice-head-right .table tr td:first-child {
    color: var(--scene-muted) !important;
}
html.mwt .invoice-page-wraper .invoice-head-address .email-pdf-btn {
    background: transparent;
    border-color: var(--scene-accent);
    color: var(--scene-accent);
}
/* Status pills: see §12d */
html.mwt .staff-span {
    border: 1px solid currentColor;
    background: rgb(245 178 94 / 12%);
    color: var(--mwt-warn);
}

/* 12c ── Jira snapin (plugins/snapin/jira: projects, tickets, details, create) ──
 * Uses stock CE classes; these cover the parts of them the stock panels list above misses. */
html.mwt .datatable-page {
    color: var(--scene-text);
}
html.mwt .ticket-view-page .ticket-view-head {
    border-bottom: 1px solid var(--scene-line);
}
html.mwt .ticket-view-page .ticket-view-head h3 {
    color: var(--scene-text);
    font-family: var(--scene-display);
    font-weight: 550;
    letter-spacing: -0.03em;
}
html.mwt .ticket-view-page .ticket-view-head p {
    color: var(--scene-muted);
}
/* Actions dropdown: orange button becomes a quiet outlined control (one primary per view) */
html.mwt .product-dropdown .actions {
    background: transparent;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    color: var(--scene-text);
}
html.mwt .product-dropdown .actions:hover {
    background: var(--scene-surface-raised);
    color: var(--scene-accent);
}
html.mwt .product-dropdown .actions:before {
    border-top-color: currentColor;
}
html.mwt .product-dropdown .actions-ul {
    border: 1px solid var(--scene-line);
    box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
}
/* Ticket detail block: stock CE draws it as a grey (#eaeff5) inset slab with a white border, offset 20px.
 * Laid out like the dashboard instead: summary boxes as tiles on the page, the details below as a surface panel. */
html.mwt .ticket-view-page .product-detail-block {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
html.mwt .ticket-view-page .product-detail-block .product-detail-bottom {
    margin: 9px 0 24px;
    padding: 4px 24px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-surface);
}
html.mwt .ticket-view-page .product-detail-block .product-detail-bottom .product-detail-features {
    border-top-color: var(--scene-line);
}
/* No rule above the first row: the panel border already frames it */
html.mwt .ticket-view-page .product-detail-block .product-detail-bottom .row:first-child .product-detail-features {
    border-top-color: transparent;
}
html.mwt .ticket-view-page .product-detail-block .product-detail-bottom .product-detail-features p {
    color: var(--scene-text);
    font-weight: 400;
    padding: 16px 0;
}
html.mwt .ticket-view-page .product-detail-block .product-detail-bottom .product-detail-features p > span:first-child {
    margin-bottom: 6px;
    color: var(--scene-muted);
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Summary boxes (status, priority, assignee, time) */
html.mwt .product-detail-block .product-detail-4boxes .product-detail-box {
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .product-detail-block .product-detail-4boxes .product-detail-box h5 {
    color: var(--scene-text);
    font-family: var(--scene-display);
}
html.mwt .product-detail-block .product-detail-4boxes .product-detail-box :is(h6, .product-amount) {
    color: var(--scene-muted);
}
html.mwt .product-detail-block .product-detail-4boxes .product-detail-box .product-amount {
    font-family: var(--font-mono);
}
/* Box icon: Font Awesome glyph in place of the stock light-theme PNG (anchored bottom-right, off the edge, by stock CSS) */
html.mwt .ticket-view-page .product-detail-box .detail-box-icon {
    top: 18px;
    right: 18px;
    bottom: auto;
    color: var(--scene-line);
    font-size: 28px;
    line-height: 1;
}

/* Jira ticket detail: theme tones for the issue type icon and priority (replace inline hex colours).
 * Tones set --mwt-tone; elements apply it with selectors that outrank the stock ".product-detail-features p span" grey. */
html.mwt .mwt-tone-accent { --mwt-tone: var(--scene-accent); }
html.mwt .mwt-tone-ok { --mwt-tone: var(--mwt-ok); }
html.mwt .mwt-tone-warn { --mwt-tone: var(--mwt-warn); }
html.mwt .mwt-tone-error { --mwt-tone: var(--mwt-error); }
html.mwt .mwt-tone-muted { --mwt-tone: var(--scene-muted); }
html.mwt .ticket-view-page .mwt-issue-type {
    margin-right: 10px;
    color: var(--mwt-tone, var(--scene-accent));
    font-size: 0.9em;
}
html.mwt .ticket-view-page .product-detail-block .product-detail-bottom .product-detail-features p .mwt-priority {
    color: var(--mwt-tone, var(--scene-muted));
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
html.mwt .ticket-view-page .mwt-assignee-avatar {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border: 1px solid var(--scene-line);
    border-radius: 50%;
    vertical-align: middle;
    object-fit: cover;
}
/* Comment / worklog thread */
html.mwt .ticket-tab-wrapper .ticket-tab-box {
    border-top-color: var(--scene-line);
}
html.mwt .ticket-tab-wrapper .ticket-tab-box:nth-child(2n):before {
    background: rgb(245 178 94 / 12%);
    color: var(--mwt-warn);
}
html.mwt :is(.ticket-tab-box-main, .ticket-tab-box-main :is(p, li, td)) {
    color: var(--scene-muted);
}
html.mwt .ticket-tab-box-top :is(h4, h5, strong) {
    color: var(--scene-text);
}
html.mwt .ticket-tab-box-top :is(span, small, time) {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--scene-muted);
}
/* Reply / attachment forms */
html.mwt .ticket-tab-reply-block {
    border-top-color: var(--scene-line);
}
html.mwt .ticket-tab-reply-block :is(.ticket-tab-reply-head h3, h3, h5, h6) {
    color: var(--scene-text);
}
html.mwt .ticket-tab-reply-block .ticket-tab-reply-box .ticket-reply,
html.mwt .ticket-tab-reply-block input[type="file"] {
    background: var(--scene-bg);
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    color: var(--scene-text);
}
html.mwt .ticket-tab-reply-block .ticket-tab-reply-box .ticket-reply:focus {
    border-color: var(--scene-accent);
    outline: none;
}
html.mwt .ticket-tab-reply-block .ticket-tab-reply-head .close-ticket {
    color: var(--scene-accent);
}
/* Jira description / comment / worklog content: HTML built from Jira's ADF by plugins/snapin/jira/adf.php */
html.mwt .mwt-adf {
    color: var(--scene-muted);
    overflow-wrap: anywhere;
}
html.mwt .mwt-adf > :first-child {
    margin-top: 0;
}
html.mwt .mwt-adf > :last-child {
    margin-bottom: 0;
}
html.mwt .mwt-adf :is(p, ul, ol, blockquote, pre, details, .table-responsive, .mwt-adf-panel, .mwt-adf-media) {
    margin: 0 0 12px;
}
html.mwt .mwt-adf :is(p, li, td, th) {
    color: var(--scene-muted);
}
html.mwt .mwt-adf .mwt-adf-heading {
    margin: 20px 0 8px;
    color: var(--scene-text);
    font-family: var(--scene-display);
    font-weight: 700;
    line-height: 1.3;
}
html.mwt .mwt-adf h3.mwt-adf-heading { font-size: 20px; }
html.mwt .mwt-adf h4.mwt-adf-heading { font-size: 17px; }
html.mwt .mwt-adf :is(h5, h6).mwt-adf-heading { font-size: 15px; }
html.mwt .mwt-adf :is(ul, ol) {
    padding-left: 22px;
}
html.mwt .mwt-adf ul {
    list-style: disc;
}
html.mwt .mwt-adf ol {
    list-style: decimal;
}
html.mwt .mwt-adf li {
    margin-bottom: 4px;
}
html.mwt .mwt-adf li > p {
    margin: 0;
}
html.mwt .mwt-adf li > :is(ul, ol) {
    margin: 4px 0 0;
}
html.mwt .mwt-adf ul.mwt-adf-tasks,
html.mwt .mwt-adf ul.mwt-adf-decisions {
    padding-left: 0;
    list-style: none;
}
html.mwt .mwt-adf .mwt-adf-tasks .is-done {
    text-decoration: line-through;
}
html.mwt .mwt-adf .mwt-adf-check {
    color: var(--scene-accent);
}
html.mwt .mwt-adf strong {
    color: var(--scene-text);
}
html.mwt .mwt-adf a {
    color: var(--scene-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
html.mwt .mwt-adf a:hover {
    color: var(--scene-accent-hover);
}
html.mwt .mwt-adf .mwt-adf-issue {
    font-family: var(--font-mono);
    font-size: 0.92em;
}
html.mwt .mwt-adf :is(code, pre) {
    background: var(--scene-bg);
    border: 1px solid var(--scene-line);
    border-radius: 4px;
    color: var(--scene-text);
    font-family: var(--font-mono);
    font-size: 13px;
}
html.mwt .mwt-adf code {
    padding: 1px 5px;
}
html.mwt .mwt-adf pre {
    padding: 12px 14px;
    overflow-x: auto;
    white-space: pre;
}
html.mwt .mwt-adf pre code {
    padding: 0;
    border: 0;
    background: none;
}
html.mwt .mwt-adf blockquote {
    border-left: 3px solid var(--scene-line);
    padding-left: 12px;
}
html.mwt .mwt-adf hr {
    margin: 16px 0;
    border-top: 1px solid var(--scene-line);
}
html.mwt .mwt-adf .table-responsive {
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .mwt-adf table.mwt-adf-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
}
html.mwt .mwt-adf .mwt-adf-table :is(th, td) {
    padding: 8px 10px;
    border: 1px solid var(--scene-line);
    background: transparent;
    vertical-align: top;
    text-align: left;
}
html.mwt .mwt-adf .mwt-adf-table th {
    background: var(--scene-surface);
    color: var(--scene-text);
    font-weight: 650;
}
html.mwt .mwt-adf .mwt-adf-table :is(th, td) > p:last-child {
    margin-bottom: 0;
}
/* Panels: info / note / warning / error / success, tinted with the theme feedback colours */
html.mwt .mwt-adf .mwt-adf-panel {
    --mwt-panel: var(--scene-accent);
    padding: 10px 14px;
    border-left: 3px solid var(--mwt-panel);
    border-radius: 0 var(--scene-radius) var(--scene-radius) 0;
    background: color-mix(in srgb, var(--mwt-panel) 8%, transparent);
}
html.mwt .mwt-adf .mwt-adf-panel--note { --mwt-panel: var(--color-navy-300); }
html.mwt .mwt-adf .mwt-adf-panel--warning { --mwt-panel: var(--mwt-warn); }
html.mwt .mwt-adf .mwt-adf-panel--error { --mwt-panel: var(--mwt-error); }
html.mwt .mwt-adf .mwt-adf-panel--success { --mwt-panel: var(--mwt-ok); }
html.mwt .mwt-adf .mwt-adf-panel > :last-child {
    margin-bottom: 0;
}
html.mwt .mwt-adf details.mwt-adf-expand {
    padding: 8px 12px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .mwt-adf details.mwt-adf-expand summary {
    color: var(--scene-text);
    cursor: pointer;
}
html.mwt .mwt-adf details.mwt-adf-expand[open] summary {
    margin-bottom: 8px;
}
/* Jira status lozenge */
html.mwt .mwt-adf .mwt-adf-status {
    --mwt-status: var(--scene-muted);
    display: inline-block;
    padding: 0 6px;
    border: 1px solid color-mix(in srgb, var(--mwt-status) 50%, transparent);
    border-radius: 3px;
    color: var(--mwt-status);
    font: 700 11px/18px var(--font-body);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: 1px;
}
html.mwt .mwt-adf .mwt-adf-status--blue { --mwt-status: var(--scene-accent); }
html.mwt .mwt-adf .mwt-adf-status--green { --mwt-status: var(--mwt-ok); }
html.mwt .mwt-adf .mwt-adf-status--yellow { --mwt-status: var(--mwt-warn); }
html.mwt .mwt-adf .mwt-adf-status--red { --mwt-status: var(--mwt-error); }
html.mwt .mwt-adf .mwt-adf-status--purple { --mwt-status: var(--color-navy-200); }
html.mwt .mwt-adf .mwt-adf-mention {
    color: var(--scene-text);
    font-weight: 600;
}
html.mwt .mwt-adf .mwt-adf-media img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .mwt-adf .mwt-adf-file {
    font-size: 14px;
}
html.mwt .mwt-adf .mwt-adf-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
html.mwt .mwt-format-hint {
    display: block;
    margin-top: 6px;
}
/* Markdown-lite editor (js/mwt-editor.js): Write / Preview switch, formatting toolbar, server-rendered preview */
html.mwt .mwt-editor {
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
}
html.mwt .mwt-editor:focus-within {
    border-color: var(--scene-accent);
}
html.mwt .mwt-editor-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--scene-line);
}
html.mwt .mwt-editor-tabs,
html.mwt .mwt-editor-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
html.mwt .mwt-editor-tools[hidden] {
    display: none;
}
html.mwt .mwt-editor :is(.mwt-editor-tab, .mwt-editor-tool) {
    min-width: 32px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--scene-muted);
    font: 600 13px/1 var(--font-body);
    cursor: pointer;
}
html.mwt .mwt-editor .mwt-editor-tool {
    padding: 0 8px;
}
html.mwt .mwt-editor :is(.mwt-editor-tab, .mwt-editor-tool):hover {
    background: var(--scene-surface);
    color: var(--scene-text);
}
html.mwt .mwt-editor :is(.mwt-editor-tab, .mwt-editor-tool):focus-visible {
    outline: 2px solid var(--scene-accent);
    outline-offset: 1px;
}
/* Phones: the eight tools share one row instead of wrapping */
@media (max-width: 575.98px) {
    html.mwt .mwt-editor .mwt-editor-tools {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    html.mwt .mwt-editor .mwt-editor-tool {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        padding: 0;
    }
}
html.mwt .mwt-editor .mwt-editor-tab[aria-pressed="true"] {
    border-color: var(--scene-line);
    background: var(--scene-surface-raised);
    color: var(--scene-text);
}
/* The textarea keeps its own styles inside the frame, minus its border (the frame has one) */
html.mwt .mwt-editor textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-radius: 0 0 var(--scene-radius) var(--scene-radius);
    box-shadow: none !important;
}
html.mwt .mwt-editor textarea:focus {
    outline: none;
}
html.mwt .mwt-editor.is-previewing textarea {
    display: none;
}
html.mwt .mwt-editor .mwt-editor-preview {
    min-height: 140px;
    max-height: 480px;
    padding: 12px 14px;
    overflow: auto;
}
html.mwt .mwt-editor .mwt-editor-preview:focus-visible {
    outline: 2px solid var(--scene-accent);
    outline-offset: -2px;
}
html.mwt .mwt-editor .mwt-editor-note {
    margin: 0;
    color: var(--scene-muted);
    font-style: italic;
}
/* Header row: title left, the view's one primary action right */
html.mwt .head.mwt-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
html.mwt .ticket-view-page .ticket-view-head {
    flex-wrap: wrap;
    gap: 12px 24px;
}
html.mwt .ticket-view-page .product-dropdown {
    position: relative;
    margin-left: auto;
}
html.mwt .product-dropdown .actions {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 36px 0 16px;
    font: 650 14px/1 var(--scene-display);
    text-decoration: none;
    cursor: pointer;
}
html.mwt .product-dropdown .actions:before {
    top: 50%;
    margin-top: -2px;
}
/* Snapin forms (create ticket, add comment) */
html.mwt .datatable-page .cs-padding + .cs-padding {
    padding-top: 0;
}
html.mwt .ce-alert-error ul {
    margin: 6px 0 0;
    padding-left: 18px;
    list-style: disc;
}
html.mwt .mwt-jira-form .form-group {
    margin-bottom: 24px;
}
html.mwt :is(.mwt-jira-form legend, .mwt-field-label) {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: var(--scene-text);
    font: 650 14px/1.3 var(--scene-display);
    letter-spacing: -0.01em;
}
html.mwt .mwt-field-help {
    display: block;
    margin: -2px 0 12px;
    color: var(--scene-muted);
    font-size: 13px;
}
/* Segmented choice (priority): radios visually hidden, labels are the buttons */
html.mwt .mwt-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
html.mwt .mwt-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
html.mwt .mwt-choice label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    color: var(--scene-muted);
    font: 650 14px/1 var(--scene-display);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
html.mwt .mwt-choice label:hover {
    border-color: var(--scene-accent);
    color: var(--scene-text);
}
html.mwt .mwt-choice input:checked + label {
    border-color: var(--scene-accent);
    background: rgb(54 200 250 / 10%);
    color: var(--scene-accent);
}
html.mwt .mwt-choice input:focus-visible + label {
    outline: 2px solid var(--scene-accent);
    outline-offset: 2px;
}
/* Phones: the four priorities on one row, equal widths, label only (the colour-free icons don't add meaning) */
@media (max-width: 575.98px) {
    html.mwt .mwt-choice {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        grid-auto-flow: column;
        gap: 6px;
    }
    html.mwt .mwt-choice label {
        justify-content: center;
        min-width: 0;
        padding: 0 4px;
        font-size: 13px;
    }
    html.mwt .mwt-choice label i {
        display: none;
    }
}
/* Checkbox with its sentence as the label */
html.mwt .mwt-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--scene-text);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}
html.mwt .mwt-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--scene-accent);
}
/* "Needed by" date (create form, edit modal) and the fee confirmation shown when raising priority */
html.mwt .mwt-jira-form .mwt-date {
    max-width: 220px;
}
html.mwt .mwt-edit-fee {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--mwt-warn);
    background: rgb(245 178 94 / 8%);
}
html.mwt .mwt-behalf {
    margin-top: 16px;
    padding: 16px 16px 0;
    border-left: 3px solid var(--scene-line);
    background: rgb(7 23 45 / 40%);
}
/* Action row: primary first, quiet text link after */
html.mwt .mwt-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 24px;
}
html.mwt :is(.mwt-form-actions, .mwt-upload) .app-btns {
    padding: 0 22px;
}
html.mwt .app-btns:disabled {
    opacity: 0.6;
    cursor: progress;
}
/* Attachment upload: file picker and button on one line, wrapping on phones */
html.mwt .mwt-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
html.mwt .mwt-upload input[type="file"] {
    flex: 1 1 260px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px dashed var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
    color: var(--scene-muted);
    font-size: 14px;
}
html.mwt .mwt-upload input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 6px 12px;
    border: 1px solid var(--scene-field-line);
    border-radius: 4px;
    background: transparent;
    color: var(--scene-text);
    font: 600 13px/1 var(--scene-display);
    cursor: pointer;
}
html.mwt .mwt-empty {
    margin: 16px 0 0;
    padding: 20px 0;
    color: var(--scene-muted);
}
html.mwt .ticket-tab-wrapper .ticket-tab-box.mwt-empty {
    padding: 24px 0;
}
/* DataTables length menu ("Show 10 per page") as one aligned row */
html.mwt .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
}
html.mwt .dataTables_length label[style] {
    margin-left: 0 !important;
}
/* Ticket list (plugins/snapin/jira/tickets.phtml): toolbar (search, status, priority, sort), a table from 900px and
 * cards below it. Overrides the stock fixed 800px table / 120px cells (main.css) that made phones scroll sideways. */
html.mwt .mwt-ticket-list .mwt-list-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
html.mwt .mwt-ticket-list .mwt-list-search {
    grid-column: 1 / -1;
}
/* Phones: search and the Filters button share a row; the filters open in a panel below */
html.mwt .mwt-ticket-list .mwt-list-tools {
    grid-template-columns: 1fr auto;
    align-items: end;
}
html.mwt .mwt-ticket-list .mwt-list-search {
    grid-column: 1;
}
html.mwt .mwt-ticket-list .mwt-filter-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Same height as the theme's form fields (48px, see "Forms") */
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
    color: var(--scene-text);
    font-size: 16px;
    cursor: pointer;
}
html.mwt .mwt-ticket-list .mwt-filter-toggle:focus-visible {
    outline: 2px solid var(--scene-accent);
    outline-offset: 2px;
}
html.mwt .mwt-ticket-list .mwt-filter-toggle[aria-expanded="true"] {
    border-color: var(--scene-accent);
    color: var(--scene-accent);
}
html.mwt .mwt-ticket-list .mwt-filter-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* Filters or sort changed from the defaults */
html.mwt .mwt-ticket-list .mwt-filter-dot {
    display: none;
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--scene-accent);
}
html.mwt .mwt-ticket-list .mwt-filter-toggle.has-filters .mwt-filter-dot {
    display: block;
}
html.mwt .mwt-ticket-list .mwt-list-filters {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
}
html.mwt .mwt-ticket-list .mwt-list-filters.is-open {
    display: grid;
}
@media (max-width: 767.98px) {
    html.mwt .mwt-ticket-list .mwt-list-filters .mwt-list-tool:last-child {
        grid-column: 1 / -1;
    }
}

html.mwt .mwt-ticket-list .mwt-list-tool .mwt-field-label {
    display: block;
    margin-bottom: 6px;
}
html.mwt .mwt-ticket-list .mwt-list-tool .form-control {
    width: 100%;
    min-height: 44px;
    background-color: var(--scene-bg);
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    color: var(--scene-text);
    /* 16px stops iOS zooming into the field */
    font-size: 16px;
}
html.mwt .mwt-ticket-list .mwt-list-tool .form-control:focus {
    border-color: var(--scene-accent);
    box-shadow: 0 0 0 2px rgb(54 200 250 / 25%);
}
html.mwt .mwt-ticket-list .mwt-list-count {
    margin: 0 0 12px;
    color: var(--scene-muted);
    font: 400 13px/1.4 var(--font-mono);
}
html.mwt .mwt-ticket-list .mwt-list-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--scene-muted);
}
html.mwt .mwt-ticket-list .mwt-list-empty p {
    margin: 0 0 8px;
}
html.mwt .mwt-ticket-list .mwt-list-empty .app-btns {
    margin-top: 12px;
}
/* Table */
html.mwt .mwt-ticket-list table.ticket-list-table {
    width: 100% !important;
}
html.mwt .mwt-ticket-list .ticket-list-table tr :is(th, td) {
    min-width: 0;
    max-width: none;
}
html.mwt .mwt-ticket-list .ticket-list-table :is(.c-date, .c-key, .c-time) {
    color: var(--scene-muted);
    font: 400 13px/1.4 var(--font-mono);
    white-space: nowrap;
}
html.mwt .mwt-ticket-list .ticket-list-table .c-key {
    color: var(--scene-text);
}
html.mwt .mwt-ticket-list .ticket-list-table .c-title {
    min-width: 220px;
}
html.mwt .mwt-ticket-list .ticket-list-table .c-title a {
    color: var(--scene-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}
html.mwt .mwt-ticket-list .ticket-list-table .c-title a:hover {
    color: var(--scene-accent);
}
html.mwt .mwt-ticket-list .ticket-list-table .c-type {
    white-space: nowrap;
}
html.mwt .mwt-ticket-list .ticket-list-table .c-type .mwt-issue-type {
    margin-right: 6px;
    color: var(--mwt-tone, var(--scene-accent));
}
/* Footer: length menu + paging */
html.mwt .mwt-ticket-list .mwt-list-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
html.mwt .mwt-ticket-list .dataTables_paginate {
    margin: 0;
    padding: 0;
}
html.mwt .mwt-ticket-list .dataTables_paginate .pagination {
    margin: 0;
    gap: 6px;
}
html.mwt .mwt-ticket-list .dataTables_paginate :is(.page-link, a.paginate_button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: transparent;
    color: var(--scene-text);
}
html.mwt .mwt-ticket-list .dataTables_paginate :is(.active .page-link, a.paginate_button.current) {
    border-color: var(--scene-accent);
    background: rgb(54 200 250 / 10%);
    color: var(--scene-accent);
}
html.mwt .mwt-ticket-list .dataTables_paginate .disabled :is(.page-link, a),
html.mwt .mwt-ticket-list .dataTables_paginate a.paginate_button.disabled {
    opacity: 0.45;
    pointer-events: none;
}
/* Narrow table (900-1023px): drop the Type and Time spent columns and let the title wrap, so the table fits */
@media (min-width: 900px) and (max-width: 1023.98px) {
    html.mwt .mwt-ticket-list .ticket-list-table tr > :is(:nth-child(3), :nth-child(6)) {
        display: none;
    }
    html.mwt .mwt-ticket-list .ticket-list-table .c-title {
        min-width: 160px;
    }
    html.mwt .mwt-ticket-list .ticket-list-table tr :is(th, td) {
        padding-left: 8px;
        padding-right: 8px;
    }
}
@media (min-width: 900px) {
    html.mwt .mwt-ticket-list .mwt-table-scroll {
        overflow-x: auto;
    }
}
@media (min-width: 768px) {
    html.mwt .mwt-ticket-list .mwt-list-tools {
        grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
        align-items: end;
    }
    html.mwt .mwt-ticket-list .mwt-list-search {
        grid-column: auto;
    }
    /* Wider screens: no Filters button, the filters sit on the toolbar row */
    html.mwt .mwt-ticket-list .mwt-filter-toggle {
        display: none;
    }
    html.mwt .mwt-ticket-list .mwt-list-filters,
    html.mwt .mwt-ticket-list .mwt-list-filters.is-open {
        display: contents;
    }
    html.mwt .mwt-ticket-list .mwt-list-tool .form-control {
        font-size: 14px;
    }
}
/* New ticket: a square + on phones, icon + label from 768px */
html.mwt .mwt-ticket-list .mwt-new-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
@media (max-width: 767.98px) {
    html.mwt .mwt-ticket-list .head.mwt-head-actions {
        flex-wrap: nowrap;
    }
    html.mwt .mwt-ticket-list .mwt-new-ticket {
        flex: none;
        width: 48px;
        height: 48px;
        min-width: 0;
        padding: 0;
        font-size: 18px;
    }
    html.mwt .mwt-ticket-list .mwt-new-ticket-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
/* Phones and portrait tablets: each ticket is a card, the whole card opens the ticket (stretched title link) */
@media (max-width: 767.98px) {
    html.mwt .mwt-ticket-list .cs-padding {
        padding: 16px;
    }
}
@media (max-width: 899.98px) {
    html.mwt .mwt-ticket-list :is(table.ticket-list-table, .ticket-list-table tbody) {
        display: block;
        width: 100% !important;
    }
    html.mwt .mwt-ticket-list .ticket-list-table thead {
        display: none;
    }
    html.mwt .mwt-ticket-list .ticket-list-table tbody tr {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 14px;
        margin-bottom: 10px;
        padding: 14px;
        border: 1px solid var(--scene-line);
        border-radius: var(--scene-radius);
        background: var(--scene-bg);
    }
    html.mwt .mwt-ticket-list .ticket-list-table tbody tr:hover,
    html.mwt .mwt-ticket-list .ticket-list-table tbody tr:focus-within {
        border-color: var(--scene-accent);
    }
    html.mwt .mwt-ticket-list .ticket-list-table tbody tr:focus-within {
        outline: 2px solid var(--scene-accent);
        outline-offset: 2px;
    }
    html.mwt .mwt-ticket-list .ticket-list-table tbody tr td {
        display: block;
        width: auto;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    html.mwt .mwt-ticket-list .ticket-list-table tbody tr:hover td {
        background: transparent !important;
    }
    html.mwt .mwt-ticket-list .ticket-list-table .c-type { order: 1; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-key { order: 2; flex: 1 1 auto; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-status { order: 3; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-title { order: 4; flex: 1 1 100%; min-width: 0; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-priority { order: 5; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-date { order: 6; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-assignee { order: 7; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-time { order: 8; }
    html.mwt .mwt-ticket-list .ticket-list-table .c-type .mwt-issue-type {
        margin-right: 0;
    }
    html.mwt .mwt-ticket-list .ticket-list-table .c-type-name {
        display: none;
    }
    html.mwt .mwt-ticket-list .ticket-list-table .c-title a {
        display: block;
        font-size: 16px;
        line-height: 1.4;
    }
    html.mwt .mwt-ticket-list .ticket-list-table .c-title a::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--scene-radius);
    }
    html.mwt .mwt-ticket-list .ticket-list-table :is(.c-date, .c-assignee, .c-time) {
        color: var(--scene-muted);
        font: 400 12px/1.4 var(--font-mono);
    }
    html.mwt .mwt-ticket-list .ticket-list-table :is(.c-date, .c-assignee, .c-time)::before {
        content: attr(data-label) " ";
        font-family: var(--font-body);
        opacity: 0.75;
    }
    /* "No tickets match" row */
    html.mwt .mwt-ticket-list .ticket-list-table td.dataTables_empty {
        flex: 1 1 100%;
        text-align: center;
        color: var(--scene-muted);
    }
    html.mwt .mwt-ticket-list .dataTables_length {
        display: none;
    }
    html.mwt .mwt-ticket-list .mwt-list-foot {
        justify-content: center;
    }
    /* Previous / Next only (the count line says "Page x of y") */
    html.mwt .mwt-ticket-list .dataTables_paginate .paginate_button:not(.previous):not(.next) {
        display: none;
    }
    html.mwt .mwt-ticket-list .dataTables_paginate :is(.page-link, a.paginate_button) {
        min-width: 120px;
    }
}

/* Approve modal: Bootstrap 4 close button on dark */
html.mwt .modal .close {
    color: var(--scene-text);
    text-shadow: none;
    opacity: 0.7;
}
html.mwt .modal .close:hover {
    opacity: 1;
}

/* 12d ── Products (list + detail) and invoice ──
 * Stock colours here are dark-on-white (#282f38, #394b58) or royal blue (#1e6bca) and go invisible or loud on navy.
 * Data (amounts, dates, ids) is set in mono per the design system; labels are muted, values are scene text. */

/* Status pills: the stock table selectors (.data-table-wrapper table tr td .status.green) outrank §12b */
html.mwt :is(.status, .status-btn) {
    background: rgb(180 197 218 / 10%) !important;
    border: 1px solid currentColor !important;
    color: var(--scene-muted) !important;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
html.mwt :is(.status, .status-btn).green { background: rgb(111 211 160 / 12%) !important; color: var(--mwt-ok) !important; }
html.mwt :is(.status, .status-btn).orange { background: rgb(245 178 94 / 12%) !important; color: var(--mwt-warn) !important; }
html.mwt :is(.status, .status-btn).red { background: rgb(255 155 155 / 12%) !important; color: var(--mwt-error) !important; }
html.mwt :is(.status, .status-btn).blue { background: rgb(54 200 250 / 10%) !important; color: var(--scene-accent) !important; }

/* Products list (clients/productspublic/products.phtml) */
html.mwt .data-table-wrapper table,
html.mwt .data-table-wrapper table.dataTable {
    border: 0;
}
html.mwt .data-table-wrapper table tbody tr td {
    border-bottom: 1px solid var(--scene-line);
    padding-top: 14px;
    padding-bottom: 14px;
}
html.mwt .data-table-wrapper table tr td :is(.total, .due-date, .billing-cycle) {
    color: var(--scene-muted);
    font: 400 13px/1.4 var(--font-mono);
}
html.mwt .data-table-wrapper table tr td .total {
    color: var(--scene-text);
}
html.mwt .data-table-wrapper .product-name a {
    color: var(--scene-text);
    font-weight: 600;
    text-decoration: none;
}
html.mwt .data-table-wrapper .product-name a:hover {
    color: var(--scene-accent);
}
html.mwt .data-table-wrapper table tr td .action {
    color: var(--scene-muted);
    cursor: pointer;
}
html.mwt .data-table-wrapper table tr td :is(.action:hover, .action.active) {
    color: var(--scene-accent);
}
html.mwt .data-table-wrapper table tr td .cog-drop-down li {
    border-top-color: var(--scene-line);
}
html.mwt .data-table-wrapper table tr td .cog-drop-down li a {
    color: var(--scene-text);
}
html.mwt .data-table-wrapper table tr td .cog-drop-down li a:hover {
    color: var(--scene-accent);
}
html.mwt .data-table-wrapper table tr td .cog-drop-down li.action-loading {
    color: var(--scene-muted);
}
/* Table search box in the panel head */
html.mwt .data-table-wrapper .head .knowledge-base-search .knowledge-search-input {
    border-radius: var(--scene-radius);
}
html.mwt .knowledge-base-search .knowledge-search-submit {
    border: 1px solid var(--scene-field-line);
    border-radius: 0 var(--scene-radius) var(--scene-radius) 0;
    background: var(--scene-surface-raised);
    color: var(--scene-accent);
    font-size: 16px;
}
html.mwt .knowledge-base-search .knowledge-search-submit:hover {
    background: var(--scene-line);
}

/* Product detail (product.phtml + partials, productheader.phtml sidebar) */
html.mwt .white-card {
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .white-card h6 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid var(--scene-line);
    color: var(--scene-text);
    font: 550 18px/1.3 var(--scene-display);
    letter-spacing: -0.02em;
}
html.mwt .white-card h6 .status {
    float: none !important;
}
html.mwt .white-card ul {
    margin: 0;
    padding: 8px 24px 16px;
}
html.mwt .white-card ul li {
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--scene-line);
}
html.mwt .white-card ul li:first-child {
    padding-top: 12px;
    border-top: 0;
}
html.mwt :is(.white-card, .config-options .resp-tabs-container) ul .card-label {
    color: var(--scene-muted);
    font-weight: 400;
}
html.mwt :is(.white-card, .config-options .resp-tabs-container) ul .card-value {
    color: var(--scene-text);
    font-weight: 600;
}
html.mwt .white-card ul .card-value a {
    color: var(--scene-accent);
}
html.mwt .white-card ul .card-value input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--scene-accent);
}
/* More information / Addons tabs */
html.mwt .config-options {
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-surface) !important;
}
html.mwt .config-options .resp-tabs-list {
    border-bottom: 1px solid var(--scene-line);
}
html.mwt .config-options .resp-tabs-list li {
    padding: 16px 24px;
    font: 650 13px/1 var(--scene-display);
    letter-spacing: 0.08em;
}
html.mwt .config-options .resp-tabs-list :is(.tab-heading, .tab-heading i) {
    color: var(--scene-muted);
    font-size: inherit;
}
html.mwt .config-options .resp-tabs-list .resp-tab-active {
    box-shadow: inset 0 -2px 0 var(--scene-accent);
}
html.mwt .config-options .resp-tabs-list .resp-tab-active :is(.tab-heading, .tab-heading i) {
    color: var(--scene-accent);
}
html.mwt .config-options :is(.resp-tab-content, .resp-tabs-container > div) {
    padding: 8px 24px 16px;
}
html.mwt .config-options :is(.resp-tab-content, .resp-tabs-container > div) ul {
    margin: 0;
}
html.mwt .config-options :is(.resp-tab-content, .resp-tabs-container > div) ul li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: auto;
    padding: 12px 0;
    border-bottom: 1px solid var(--scene-line);
}
/* Sidebar Quick Actions: pale blue header becomes an eyebrow label */
html.mwt .sidebar .actions-header {
    margin-top: 16px;
    padding: 14px 16px 8px;
    border-top: 1px solid var(--scene-line);
    border-radius: 0;
    background: transparent;
}
html.mwt .sidebar .actions-header .font-actions {
    color: var(--scene-muted);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-align: left;
    text-transform: uppercase;
}
html.mwt .sidebar :is(.actions, .sidenav ul) {
    border: 0;
    background: transparent;
}
html.mwt .sidebar .actions li a {
    color: var(--scene-text);
}
html.mwt .sidebar .actions li a:hover {
    background: var(--scene-line);
    color: var(--scene-accent);
}

/* Invoice (billing/invoicepublic/invoice.phtml) */
html.mwt .invoice2-top-block {
    padding: 28px 32px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius) var(--scene-radius) 0 0;
    background: var(--scene-surface);
}
html.mwt .invoice2-top-block .invoice-from-to li {
    border-color: var(--scene-line);
    color: var(--scene-text);
    line-height: 1.6;
}
html.mwt .invoice2-top-block .invoice-from-to li:first-child {
    padding-left: 0;
}
html.mwt .invoice2-top-block .invoice-from-to li h6 {
    margin-bottom: 10px;
    color: var(--scene-muted);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
html.mwt .invoice2-top-block .invoice2-top-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
}
html.mwt .invoice2-top-block .invoice2-top-btns li {
    margin: 0;
}
html.mwt .invoice2-top-block .invoice2-top-btns li :is(.status-btn, .invoice2-pdf-btn) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--scene-radius);
    font-size: 13px;
    line-height: 1;
}
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-pdf-btn {
    border: 1px solid var(--scene-field-line);
    background: transparent;
    color: var(--scene-text);
    font-family: var(--scene-display);
    font-weight: 650;
}
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-pdf-btn:hover {
    border-color: var(--scene-accent);
    background: transparent;
    color: var(--scene-accent);
}
/* CE 7.3.0: Pay Now jump link (the pay button further down stays the one cyan primary) */
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-pay-now-btn {
    border-color: var(--scene-accent);
    color: var(--scene-accent);
}
/* CE 7.3.0: Email / PDF icon group, stock is a white pill with blue icons */
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-icon-group {
    height: 36px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: transparent;
}
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-icon-group .invoice2-icon-btn {
    width: 40px;
    color: var(--scene-text);
}
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-icon-group .invoice2-icon-btn:not(:first-child) {
    border-left-color: var(--scene-field-line);
}
html.mwt .invoice2-top-block .invoice2-top-btns li .invoice2-icon-group .invoice2-icon-btn:hover {
    background: transparent;
    color: var(--scene-accent);
}
/* Key figures strip: joins the header panel instead of overlapping it */
html.mwt .invoice2-plans-section {
    margin: 0 0 24px;
    padding: 0;
    border: 1px solid var(--scene-line);
    border-top: 0;
    border-radius: 0 0 var(--scene-radius) var(--scene-radius);
    background: var(--scene-surface-raised);
}
html.mwt .invoice2-plans-section ul {
    margin: 0;
}
html.mwt .invoice2-plans-section ul li,
html.mwt .invoice2-plans-section ul li:first-child {
    flex: 1 1 0;
    padding: 18px 24px;
    border: 0;
    border-left: 1px solid var(--scene-line);
}
html.mwt .invoice2-plans-section ul li:first-child {
    border-left: 0;
}
html.mwt .invoice2-plans-section ul li .caption {
    color: var(--scene-muted);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
html.mwt .invoice2-plans-section ul li :is(h3, h4) {
    margin-top: 6px;
    color: var(--scene-text);
    font: 500 20px/1.2 var(--font-mono);
    letter-spacing: 0;
}
html.mwt .invoice2-plans-section ul li h3 {
    color: var(--scene-accent);
}
/* Line items */
html.mwt .invoice-page-wraper .invoice-mid-block {
    padding: 0;
    border: 0;
    background: transparent;
}
html.mwt .invoice-page-wraper .invoice-mid-block .table {
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
html.mwt .invoice-page-wraper .invoice-mid-block .table tr,
html.mwt .invoice-page-wraper .invoice-mid-block .table tr:first-child {
    border: 0;
}
html.mwt .invoice-page-wraper .invoice-mid-block .table tr th {
    padding: 12px 20px;
    border: 0;
    border-bottom: 1px solid var(--scene-line);
    background: var(--scene-surface-raised);
    color: var(--scene-muted);
}
html.mwt .invoice-page-wraper .invoice-mid-block .table tr td,
html.mwt .invoice-page-wraper .invoice-mid-block .table tr:nth-child(2n) td {
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid var(--scene-line);
    background: var(--scene-surface);
    color: var(--scene-text);
}
html.mwt .invoice-page-wraper .invoice-mid-block .table tr:last-child td {
    border-bottom: 0;
}
html.mwt .invoice-page-wraper .invoice-mid-block .table tr td b {
    color: var(--scene-text);
    font-size: 15px;
    font-weight: 600;
}
html.mwt .invoice-page-wraper .invoice-mid-block .entry-details {
    display: inline-block;
    margin-top: 4px;
    color: var(--scene-muted);
    font-size: 13px;
    line-height: 1.5;
}
html.mwt .invoice-page-wraper .invoice-mid-block .table tr td .amount-span {
    color: var(--scene-text);
    font: 500 14px/1.4 var(--font-mono);
}
/* Totals */
html.mwt .invoice-miscel-ul {
    margin: 0;
}
html.mwt .invoice-miscel-ul li {
    padding: 8px 0;
    border-top: 1px solid var(--scene-line);
}
html.mwt .invoice-miscel-ul li .date {
    color: var(--scene-muted);
    font-size: 13px;
    font-weight: 400;
}
html.mwt .invoice-miscel-ul li .amount {
    color: var(--scene-text);
    font: 500 14px/1.4 var(--font-mono);
}
html.mwt .invoice-miscel-ul li:last-child :is(.date, .amount) {
    color: var(--scene-text);
    font-weight: 600;
}
html.mwt .invoice-miscel-ul li:last-child .amount {
    color: var(--scene-accent);
    font-size: 16px;
}
html.mwt .invoice-page-wraper .invoice-mid-block .recorded {
    color: var(--scene-muted);
    font: 400 12px/1.6 var(--font-mono);
}
html.mwt .invoice-page-wraper .additionalinfo {
    margin-top: 24px;
    border: 1px solid var(--scene-line) !important;
    border-radius: var(--scene-radius);
    color: var(--scene-text);
}
/* Payment + company footer */
html.mwt .invoice-page-wraper .invoice-bottom-block {
    margin-top: 24px;
    padding: 0;
    background: transparent;
}
html.mwt .invoice-page-wraper #paymentOptions {
    border: 1px solid var(--scene-line);
}
html.mwt .invoice-page-wraper .make_payment_using {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}
html.mwt .invoice-page-wraper .payment-container {
    padding-left: 0 !important;
    text-align: left !important;
}
html.mwt .invoice-page-wraper .makeDefaultOption label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--scene-muted);
    font-size: 13px;
    font-weight: 400;
}
html.mwt .invoice-page-wraper .makeDefaultOption input {
    margin-top: 2px;
    accent-color: var(--scene-accent);
}
html.mwt .invoice-page-wraper .paymentbutton1 {
    display: block;
    margin-top: 16px;
}
html.mwt .invoice-bottom-block #company-info {
    display: flex;
    flex-wrap: wrap;
    margin: 24px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--scene-line);
}
html.mwt .invoice-page-wraper .invoice-bottom-block ul#company-info li {
    padding: 0 32px 0 0;
    border: 0;
}
html.mwt .invoice-page-wraper .invoice-bottom-block ul li p {
    color: var(--scene-text);
    font-size: 14px;
    font-weight: 600;
}
html.mwt .invoice-page-wraper .invoice-bottom-block ul li p span {
    color: var(--scene-muted);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
html.mwt .invoice-page-wraper .invoice-bottom-block ul li p a {
    color: var(--scene-accent);
}
@media (max-width: 767px) {
    html.mwt .invoice2-top-block {
        padding: 20px 16px;
    }
    html.mwt .invoice2-top-block .invoice2-top-btns {
        justify-content: flex-start;
        margin-top: 16px;
    }
    html.mwt .invoice2-plans-section ul {
        flex-wrap: wrap;
    }
    html.mwt .invoice2-plans-section ul li,
    html.mwt .invoice2-plans-section ul li:first-child {
        flex: 1 1 50%;
        border-left: 0;
        border-top: 1px solid var(--scene-line);
    }
    html.mwt .invoice-page-wraper .invoice-mid-block .table tr :is(th, td),
    html.mwt .invoice-page-wraper .invoice-mid-block .table tr:nth-child(2n) td {
        padding-left: 12px;
        padding-right: 12px;
    }
}
@media (max-width: 575px) {
    /* Phones: drop the Type column so description, price and tax fit without sideways scrolling */
    html.mwt .invoice-page-wraper .invoice-mid-block .table tr > :nth-child(2) {
        display: none;
    }
    html.mwt .invoice-page-wraper .invoice-mid-block .table tr td b {
        font-size: 14px;
    }
}

/* 13 ── Cart / order forms ── */
html.mwt .cart-pages-wrapper {
    background: transparent;
    color: var(--scene-text);
}
html.mwt .cart-pages-wrapper :is(.sec-head h2, .head h3) {
    color: var(--scene-text);
}
/* Cart step 0 (order_forms/partials/signuppublic/cart0.phtml): the services list. Same panel heading and card style as
 * the ticket list; one column on phones, two from 768px, three from 1024px; the whole card opens the group. */
html.mwt .cart0 .mwt-service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
html.mwt .cart0 .mwt-service {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
    transition: border-color 0.2s;
}
html.mwt .cart0 .mwt-service:hover,
html.mwt .cart0 .mwt-service:focus-within {
    border-color: var(--scene-accent);
}
html.mwt .cart0 .mwt-service:focus-within {
    outline: 2px solid var(--scene-accent);
    outline-offset: 2px;
}
html.mwt .cart0 .mwt-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--scene-radius);
    background: rgb(54 200 250 / 10%);
    color: var(--scene-accent);
    font-size: 18px;
}
html.mwt .cart0 .mwt-service-name {
    margin: 0 0 4px;
    font: 650 17px/1.3 var(--scene-display);
}
html.mwt .cart0 .mwt-service-name a {
    color: var(--scene-text);
    text-decoration: none;
}
html.mwt .cart0 .mwt-service-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--scene-radius);
}
html.mwt .cart0 .mwt-service-name a:focus {
    outline: none;
}
html.mwt .cart0 .mwt-service-desc,
html.mwt .cart0 .mwt-service-desc :is(p, li) {
    margin: 0;
    color: var(--scene-muted);
    font-size: 14px;
    line-height: 1.5;
}
html.mwt .cart0 .mwt-service-go {
    align-self: center;
    color: var(--scene-muted);
    font-size: 13px;
    transition: color 0.2s, transform 0.2s;
}
html.mwt .cart0 .mwt-service:hover .mwt-service-go {
    color: var(--scene-accent);
    transform: translateX(2px);
}
@media (min-width: 768px) {
    html.mwt .cart0 .mwt-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    html.mwt .cart0 .mwt-service-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    html.mwt .cart0 .cs-padding {
        padding: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html.mwt .cart0 :is(.mwt-service, .mwt-service-go) {
        transition: none;
    }
}
html.mwt .cart-status-bar :is(.cart-status-rail, .cart-status-nodes) {
    background: var(--scene-line);
    border-color: var(--scene-line);
}
html.mwt .cart-status-bar :is(.inner-rail, .cart-status-nodes.now, .cart-status-nodes.done) {
    background: var(--scene-accent);
    border-color: var(--scene-accent);
}
html.mwt .cart-status-bar .cart-status-nodes.active .cart-status-label {
    color: var(--scene-accent) !important;
}
html.mwt .hosting-plan-row {
    border: 1px solid var(--scene-line);
    box-shadow: none;
}
html.mwt .hosting-plan-row :is(.price, .plan-price, .amount) {
    font-family: var(--font-mono);
}
/* Plan rows (step 1) and the plan on step 2: product description from CE admin is muted body text (stock printed it
 * in scene text, bright white), bold lines stay scene text; stock #e0e3f1 rules become scene lines */
html.mwt :is(.hosting-plan-row, .config-product-section) .hosting-features {
    border-color: var(--scene-line);
    color: var(--scene-muted);
    font-size: 15px;
    line-height: 1.6;
}
html.mwt :is(.hosting-plan-row, .config-product-section) .hosting-features :is(p, li, span, div) {
    color: var(--scene-muted);
}
html.mwt :is(.hosting-plan-row, .config-product-section) .hosting-features :is(b, strong, h4, h5) {
    color: var(--scene-text);
}
html.mwt .hosting-plan-row .plan-rate {
    border-color: var(--scene-line);
    border-radius: 0;
    box-shadow: none;
}
html.mwt .hosting-plan-row .plan-rate .savePercent {
    color: var(--mwt-ok);
    font: 400 13px/1.4 var(--font-mono);
}
/* Stacked plan row (stock below 992px): pad the description, which stock runs edge to edge */
@media (max-width: 991.98px) {
    html.mwt .hosting-plan-row .hosting-features {
        padding: 20px;
    }
    html.mwt .hosting-plan-row .head {
        padding: 20px 20px 16px;
    }
    html.mwt .hosting-plan-row .plan-rate {
        padding: 20px;
    }
    html.mwt .hosting-plan-row .plan-rate .app-btns {
        width: 100%;
    }
}
/* "Configure Product" divider (step 2) */
html.mwt .inline-heading:before {
    border-top-color: var(--scene-line);
}
html.mwt :is(.form-option label, .radio-container) {
    color: var(--scene-text);
}
html.mwt .form-option label {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .form-option label.selected {
    border-color: var(--scene-accent);
}
html.mwt :is(.form-option label:after, .radio-container .radio-checkmark:after, .payment-method .select-payment label:after) {
    background: var(--scene-bg);
}
/* Domain step (order_forms/default_domains/signuppublic/cart1.phtml, step 1 for domain groups and the bundled domain
 * step after hosting). Stock is a full-bleed white band with an absolutely positioned "https://" that the typed text ran
 * into, a light pill TLD select and an orange CONTINUE. Here: a contained panel, one bordered search field (prefix,
 * input, TLD segment) that stacks the TLD below on phones, the theme primary button and readable tabs. */
html.mwt .domain-page {
    padding: 32px 0 56px;
}
html.mwt .domain-page .sec-head {
    padding-inline: 20px;
    color: var(--scene-muted);
}
html.mwt .domain-page .domain-section {
    max-width: 920px;
    margin: 32px auto 0;
    padding-inline: 20px;
}
html.mwt .domain-page .domain-section .cm-holder {
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-surface);
    overflow: hidden;
}
html.mwt .domain-page .domain-section .resp-tabs-container {
    max-width: none;
    background: transparent;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content {
    padding: 28px 28px 8px;
    background: transparent !important;
}
/* Tabs (wide screens; below 768px the stock accordion headers take over and the list stays hidden) */
@media (min-width: 768px) {
    html.mwt .domain-page .domain-section .resp-tabs-list {
        display: flex;
        justify-content: center;
        gap: 8px;
        border-bottom: 1px solid var(--scene-line);
    }
}
html.mwt .domain-page .domain-section .resp-tabs-list .resp-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border: 0 !important;
    background: transparent;
    color: var(--scene-muted);
    font: 650 15px/1.2 var(--scene-display);
}
html.mwt .domain-page .domain-section .resp-tabs-list .resp-tab-item:hover {
    color: var(--scene-text);
}
html.mwt .domain-page .domain-section .resp-tabs-list .resp-tab-item:before {
    content: "";
    width: 16px;
    height: 16px;
    margin: 0;
    border: 2px solid var(--scene-field-line);
    border-radius: 50%;
    line-height: 0;
}
html.mwt .domain-page .domain-section .resp-tabs-list .resp-tab-item.resp-tab-active {
    box-shadow: inset 0 -2px 0 0 var(--scene-accent);
    color: var(--scene-accent) !important;
}
html.mwt .domain-page .domain-section .resp-tabs-list .resp-tab-item.resp-tab-active:before {
    border: 5px solid var(--scene-accent);
    background: var(--scene-bg);
}
/* Accordion headers (phones) */
html.mwt .domain-page .domain-section .resp-tabs-container h2.resp-accordion {
    margin: 0;
    padding: 14px 16px;
    border: 0 !important;
    border-top: 1px solid var(--scene-line) !important;
    border-radius: 0;
    background: transparent;
    color: var(--scene-muted);
    font: 650 15px/1.3 var(--scene-display);
}
html.mwt .domain-page .domain-section .resp-tabs-container h2.resp-accordion:first-child {
    border-top: 0 !important;
}
html.mwt .domain-page .domain-section .resp-tabs-container h2.resp-accordion.resp-tab-active {
    color: var(--scene-accent);
}
html.mwt .domain-page .domain-section .resp-tabs-container h2.resp-accordion .resp-arrow {
    float: right;
    margin-top: 6px;
    border: 5px solid transparent;
    border-top: 7px solid var(--scene-muted);
    border-bottom: 0;
}
html.mwt .domain-page .domain-section .resp-tabs-container h2.resp-accordion.resp-tab-active .resp-arrow {
    border-top: 0;
    border-bottom: 7px solid var(--scene-accent);
}
/* Search field: prefix + input + TLD in one bordered control */
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain:focus-within {
    border-color: var(--scene-accent);
    box-shadow: 0 0 0 2px rgb(54 200 250 / 25%);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .www-name {
    position: static;
    display: flex;
    flex: none;
    align-items: center;
    padding: 0 2px 0 16px;
    color: var(--scene-muted);
    font: 400 15px/1 var(--font-mono);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-input,
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-input.need-domain-input {
    /* Basis 0 so the input shares the row with the prefix (and only the TLD wraps on phones) */
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    height: 54px;
    min-height: 0;
    margin: 0;
    padding: 0 12px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--scene-text);
    font: 400 16px/1 var(--font-mono);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-input:focus {
    outline: none;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-input::placeholder {
    color: var(--scene-muted);
    opacity: 0.7;
    font: 400 16px/1 var(--font-body);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown {
    position: static;
    display: block;
    flex: none;
    width: 130px;
    border-left: 1px solid var(--scene-line);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown .select2-container {
    display: block;
    width: 100% !important;
    margin: 0;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    min-height: 0;
    padding: 0 32px 0 14px;
    border: 0;
    border-radius: 0 var(--scene-radius) var(--scene-radius) 0;
    background: transparent;
    color: var(--scene-text);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: var(--scene-text);
    font: 500 15px/1 var(--font-mono);
    line-height: 1;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 8px;
    height: 54px;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-top-color: var(--scene-muted);
}
html.mwt .select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-family: var(--font-mono);
}
/* Continue: the theme primary button (stock orange, uppercase, orange shadow) */
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-bottom {
    margin-top: 20px;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-bottom .continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: var(--scene-radius);
    background: var(--scene-accent);
    box-shadow: none;
    color: var(--scene-bg);
    font: 650 15px/1 var(--scene-display);
    letter-spacing: 0;
    text-transform: none;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-bottom .continue-btn:hover,
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-bottom .continue-btn:focus {
    background: var(--scene-accent-hover);
    color: var(--scene-bg);
}
/* Search results */
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content :is(.domain_search_notregistered, .domain_search_alreadyregistered:not(.alert)) {
    margin: 4px 0 16px;
    font: 500 16px/1.4 var(--font-body);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain_search_notregistered {
    color: var(--mwt-ok);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain_search_alreadyregistered:not(.alert) {
    color: var(--mwt-warn);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content hr {
    border-top-color: var(--scene-line);
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .row-header h4 {
    margin: 0;
    color: var(--scene-muted);
    font: 600 11px/1.3 var(--scene-display);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-option-row {
    padding: 12px 0;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-option-name {
    color: var(--scene-text);
    font: 500 15px/1.4 var(--font-mono);
    overflow-wrap: anywhere;
}
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-option-add .app-btns {
    min-width: 140px;
}
/* Empty per-result wrappers (custom fields, extra attributes, addons) left a tall gap under the results */
html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content :is(.customfields-wrapper, .extra_attributes-wrapper, .addons-wrapper):empty {
    display: none;
}
@media (max-width: 575.98px) {
    html.mwt .domain-page .domain-section {
        margin-top: 24px;
        padding-inline: 16px;
    }
    html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content {
        padding: 16px 16px 4px;
    }
    /* TLD on its own row under the name */
    html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain {
        flex-wrap: wrap;
    }
    html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown {
        flex: 1 1 100%;
        width: 100%;
        border-left: 0;
        border-top: 1px solid var(--scene-line);
    }
    html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown .select2-container--default .select2-selection--single {
        height: 48px;
        border-radius: 0 0 var(--scene-radius) var(--scene-radius);
    }
    html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .need-domain .domain-dropdown .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px;
    }
    html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-bottom .continue-btn,
    html.mwt .domain-page .domain-section .resp-tabs-container .resp-tab-content .domain-option-add .app-btns {
        width: 100%;
    }
}
/* Checkout (order_forms/partials/signuppublic/cart3.phtml, step 3). Stock: items in light-bordered boxes with dark
 * prices, dark subtotal amounts, a #f5f5f5 grand-total bar (label and prorate note unreadable), light header rules. */
html.mwt .cm-box-holder .head.border-btm {
    border-bottom-color: var(--scene-line);
}
html.mwt .order-summary-wrapper .summary-row {
    gap: 12px 16px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-bg);
    box-shadow: none;
}
html.mwt .order-summary-wrapper .summary-row .title {
    color: var(--scene-muted);
    font: 400 13px/1.5 var(--font-mono);
    overflow-wrap: anywhere;
}
html.mwt .order-summary-wrapper .summary-row .title h4 {
    margin: 0 0 2px;
    color: var(--scene-text);
    font: 600 15px/1.4 var(--font-body);
}
html.mwt .order-summary-wrapper .summary-row .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
html.mwt .order-summary-wrapper .summary-row .action-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--scene-field-line);
    border-radius: var(--scene-radius);
    background: transparent;
    color: var(--scene-text);
    font: 600 13px/1 var(--font-body);
    white-space: nowrap;
}
html.mwt .order-summary-wrapper .summary-row .action-btns:hover {
    border-color: var(--scene-accent);
    color: var(--scene-accent);
}
html.mwt .order-summary-wrapper .summary-row .action-btns.remove-button:hover {
    border-color: var(--mwt-error);
    color: var(--mwt-error);
}
html.mwt .order-summary-wrapper .summary-row .rate-box {
    text-align: right;
}
html.mwt .order-summary-wrapper .summary-row .rate-box h5 {
    margin: 0;
    color: var(--scene-text);
    font: 600 16px/1.3 var(--font-mono);
    white-space: nowrap;
}
html.mwt .order-summary-wrapper .summary-row .rate-box h5 .standout {
    color: var(--scene-accent);
}
html.mwt .order-summary-wrapper .summary-row .rate-box h5 .strok {
    color: var(--scene-muted);
}
html.mwt .order-summary-wrapper .summary-row .rate-box :is(p, small) {
    color: var(--scene-muted);
}
html.mwt .order-summary-wrapper .summary-total ul li {
    color: var(--scene-muted);
}
html.mwt .order-summary-wrapper .summary-total ul li .val {
    color: var(--scene-text);
    font: 500 15px/1.4 var(--font-mono);
}
html.mwt .customer-details .discount-applied {
    padding: 16px 30px 18px;
    border-top: 1px solid var(--scene-line);
    border-radius: 0 0 var(--scene-radius) var(--scene-radius);
    background: transparent;
}
html.mwt .customer-details .discount-applied ul li {
    color: var(--scene-muted);
    font: 600 15px/1.4 var(--font-body);
}
html.mwt .customer-details .discount-applied ul li:first-child {
    color: var(--scene-text);
}
html.mwt .customer-details .discount-applied ul li .val {
    color: var(--scene-text);
    font: 600 24px/1.3 var(--font-mono);
}
html.mwt .customer-details .discount-applied ul li:not(:first-child) {
    font: 400 12px/1.4 var(--font-body);
}
/* "Please enter your new profile…" + Existing customer login */
html.mwt .customer-details .info-bar {
    overflow: hidden;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
}
html.mwt .customer-details .info-bar p {
    color: var(--scene-muted);
}
html.mwt .customer-details .info-bar .alert-box {
    background: var(--scene-accent);
    color: var(--scene-bg);
    font-weight: 650;
}
html.mwt .customer-details .info-bar .alert-box:hover {
    background: var(--scene-accent-hover);
}
@media (max-width: 991.98px) {
    /* The message is hidden below 992px (stock d-lg-block), so the bar is just the login button */
    html.mwt .customer-details .info-bar {
        border: 0;
        background: transparent !important;
    }
    html.mwt .customer-details .info-bar .alert-box {
        width: 100%;
        border-radius: var(--scene-radius);
        text-align: center;
    }
}
@media (max-width: 767.98px) {
    /* Item: title and price on one row, the buttons below */
    html.mwt .order-summary-wrapper .summary-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "title rate" "actions actions";
        align-items: start;
    }
    html.mwt .order-summary-wrapper .summary-row .title { grid-area: title; width: auto; margin: 0; padding: 0; }
    html.mwt .order-summary-wrapper .summary-row .rate-box { grid-area: rate; width: auto; margin: 0; padding: 0; }
    html.mwt .order-summary-wrapper .summary-row .actions { grid-area: actions; width: auto; margin: 0; padding: 0; flex-direction: row; }
    html.mwt .order-summary-wrapper .summary-row .action-btns {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
    }
    /* Stock pads every block 36px: 20px on phones so the items get the width */
    html.mwt .customer-details :is(.head, .order-summary-wrapper, .form-wrapper) {
        padding-inline: 20px;
    }
    html.mwt .customer-details .order-summary-wrapper {
        padding-top: 20px;
    }
    html.mwt .customer-details .head .btn {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
        line-height: 34px;
    }
    html.mwt .customer-details .discount-applied {
        padding: 14px 16px 16px;
    }
    html.mwt #payment_information_box {
        padding-inline: 0 !important;
    }
}

/* Order summary (step 2 / checkout): stock is a light #f3f5f8 box with white sections and dark text. One surface
 * panel here: scene text for the items and total, muted labels, mono amounts, theme rules */
html.mwt .config-product-section .summary-info .summary-holder {
    background: var(--scene-surface);
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    box-shadow: none;
    overflow: hidden;
}
html.mwt .config-product-section .summary-info .summary-holder :is(.head, .summery-cont, .summery-fees, .summery-bottom) {
    background: transparent;
    box-shadow: none;
}
html.mwt .config-product-section .summary-info .summary-holder .head {
    padding: 16px 20px;
}
html.mwt .config-product-section .summary-info .summary-holder .head h4 {
    margin: 0;
    color: var(--scene-text);
    font: 600 11px/1.3 var(--scene-display);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
html.mwt .config-product-section .summary-info .summary-holder :is(.summery-cont, .summery-fees) {
    padding: 12px 20px;
}
html.mwt .config-product-section .summary-info .summary-holder .summery-cont ul li {
    gap: 12px;
    border-top-color: var(--scene-line);
}
html.mwt .config-product-section .summary-info .summary-holder .summery-cont ul li h5 {
    color: var(--scene-text);
    font: 600 15px/1.4 var(--font-body);
}
html.mwt .config-product-section .summary-info .summary-holder :is(.summery-cont, .summery-fees) ul li p,
html.mwt .config-product-section .summary-info .summary-holder .summery-cont ul li p span {
    color: var(--scene-muted);
}
html.mwt .config-product-section .summary-info .summary-holder :is(.summery-cont, .summery-fees) .summary-amount {
    color: var(--scene-text);
    font: 500 13px/1.4 var(--font-mono);
    white-space: nowrap;
}
html.mwt .config-product-section .summary-info .summary-holder .summery-fees .change-code {
    display: block;
    margin-top: 6px;
    text-align: right;
}
html.mwt .config-product-section .summary-info .summary-holder .summery-fees .change-code a {
    color: var(--scene-accent);
    font-size: 13px;
    text-underline-offset: 2px;
}
html.mwt .config-product-section .summary-info .summary-holder .summery-bottom {
    padding: 16px 20px 20px;
}
html.mwt .config-product-section .summary-info .summary-holder .summery-bottom:before {
    width: auto;
    left: 20px;
    right: 20px;
    background: var(--scene-line);
}
html.mwt .config-product-section .summary-info .summary-holder .summery-bottom p {
    margin-bottom: 14px;
    color: var(--scene-muted);
    font-size: 13px;
}
html.mwt .config-product-section .summary-info .summary-holder .summery-bottom p span {
    color: var(--scene-text);
    font: 600 26px/1.3 var(--font-mono);
}
html.mwt .config-product-section .summary-info .summary-holder .summery-bottom .app-btns {
    width: 100%;
    padding: 0 20px;
}

/* 14 ── Design-system patterns for theme markup (classes from design/mywebteam-v2) ── */
html.mwt .eyebrow {
    margin: 0 0 18px;
    color: var(--scene-accent);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
html.mwt .mwt-page-header {
    position: relative;
    overflow: hidden;
    padding-block: 44px 56px;
}
html.mwt .mwt-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at 20% 40%, rgb(0 174 239 / 16%), transparent 70%);
}
html.mwt .mwt-page-header > .container {
    position: relative;
}
html.mwt .mwt-page-header h1 {
    max-width: 21ch;
    margin: 0;
    font-size: clamp(2.25rem, 4.4vw, 3.6rem);
    font-weight: 550;
    letter-spacing: -0.055em;
    line-height: 1.1;
}
html.mwt .mwt-page-header p:not(.eyebrow) {
    max-width: 56ch;
    margin-top: 22px;
    color: var(--scene-muted);
    font-size: 16px;
    line-height: 1.75;
}
html.mwt .mwt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
}
html.mwt .mwt-section-label {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    color: var(--scene-accent);
    font: 600 11px/1.3 var(--scene-display);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
html.mwt .mwt-section-label span:first-child {
    color: var(--scene-muted);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}
/* Ruled, numbered rows (design system: service-feature) */
html.mwt .mwt-rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--scene-line);
}
html.mwt .mwt-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--scene-line);
    color: var(--scene-text);
    text-decoration: none;
}
html.mwt .mwt-row-index {
    color: var(--scene-muted);
    font: 500 13px/1 var(--font-mono);
}
html.mwt .mwt-row h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.035em;
}
html.mwt .mwt-row p {
    margin: 6px 0 0;
    color: var(--scene-muted);
    font-size: 14px;
}
html.mwt .mwt-row-arrow {
    color: var(--scene-accent);
    font-size: 20px;
    transition: transform 0.2s;
}
html.mwt a.mwt-row:hover h3 {
    color: var(--scene-accent);
}
html.mwt a.mwt-row:hover .mwt-row-arrow {
    transform: translate(3px, -3px);
}
/* Ruled two-column directory (design system: ServiceDirectory) */
html.mwt .mwt-directory {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 8%;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    html.mwt .mwt-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 72px;
    }
}
html.mwt .mwt-entry {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-block: 28px 32px;
    border-top: 1px solid var(--scene-line);
    color: var(--scene-text);
    text-decoration: none;
}
html.mwt .mwt-entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    color: var(--scene-accent);
    font: 500 13px/1 var(--font-mono);
    font-variant-numeric: tabular-nums;
}
html.mwt .mwt-entry-meta i {
    font-size: 20px;
}
html.mwt .mwt-entry h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 550;
    letter-spacing: -0.04em;
    line-height: 1.2;
}
html.mwt .mwt-entry p {
    max-width: 56ch;
    margin: 0 0 20px;
    color: var(--scene-muted);
    font-size: 15px;
    line-height: 1.8;
}
html.mwt .mwt-entry-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 44px;
    margin-top: auto;
    color: var(--scene-accent);
    font-size: 14px;
}
html.mwt .mwt-entry-link > span {
    font-size: 22px;
    transition: transform 0.2s;
}
html.mwt .mwt-entry:hover h2 {
    color: var(--scene-accent);
}
html.mwt .mwt-entry:hover .mwt-entry-link > span {
    transform: translate(3px, -3px);
}

/* Conversion band (design system: CtaBand) */
html.mwt .mwt-cta {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--scene-line);
    border-left: 3px solid var(--color-cyan-500);
    border-radius: var(--scene-radius);
    background: var(--scene-surface);
}
html.mwt .mwt-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}
html.mwt .mwt-cta p {
    max-width: 60ch;
    color: var(--scene-text);
}

/* Dashboard (home/indexpublic/dashboard.phtml): page header, key-figure strip, panels, account side panel */
html.mwt .mwt-dash-header {
    padding-block: 36px 32px;
}
html.mwt .mwt-dash-header h1 {
    max-width: none;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
}
html.mwt .mwt-dash-header .mwt-hero-actions {
    margin-top: 22px;
}
html.mwt .dashboard-wraper.mwt-dash {
    padding-bottom: 56px;
}
html.mwt .mwt-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-surface);
}
html.mwt .mwt-stats li {
    border-left: 1px solid var(--scene-line);
}
html.mwt .mwt-stats li:first-child {
    border-left: 0;
}
html.mwt .mwt-stats li > :is(a, span:first-child) {
    display: block;
}
html.mwt .mwt-stats li > a,
html.mwt .mwt-stats li:first-child {
    height: 100%;
    padding: 20px 24px;
    color: var(--scene-text);
    text-decoration: none;
    transition: background 0.2s;
}
html.mwt .mwt-stats li > a:hover {
    background: var(--scene-surface-raised);
}
html.mwt .mwt-stat-label {
    display: block;
    color: var(--scene-muted);
    font: 700 11px/1.3 var(--scene-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
html.mwt .mwt-stat-value {
    display: block;
    margin-top: 8px;
    color: var(--scene-text);
    font: 500 26px/1.1 var(--font-mono);
    font-variant-numeric: tabular-nums;
}
html.mwt .mwt-stats a:hover .mwt-stat-value {
    color: var(--scene-accent);
}
@media (max-width: 767px) {
    html.mwt .mwt-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html.mwt .mwt-stats li:nth-child(3) {
        border-left: 0;
    }
    html.mwt .mwt-stats li:nth-child(n + 3) {
        border-top: 1px solid var(--scene-line);
    }
}
/* Panel: raised surface with a ruled head (title + text link) */
html.mwt .mwt-panel {
    margin-bottom: 24px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-surface);
}
html.mwt .mwt-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--scene-line);
}
html.mwt .mwt-panel-head h2 {
    margin: 0;
    color: var(--scene-text);
    font: 550 20px/1.3 var(--scene-display);
    letter-spacing: -0.03em;
}
html.mwt .mwt-panel-head .mwt-text-link {
    min-height: 36px;
    font-size: 13px;
}
html.mwt .mwt-panel .data-table-wrapper {
    margin: 0;
    padding: 0 24px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
html.mwt .mwt-panel .data-table-wrapper table {
    width: 100% !important;
    margin: 0 !important;
}
html.mwt .mwt-panel .data-table-wrapper table tr :is(th, td) {
    padding-left: 0;
    min-width: 0;
}
html.mwt .mwt-panel .data-table-wrapper table tbody tr:last-child td {
    border-bottom: 0;
}
html.mwt .mwt-panel .dataTables_wrapper :is(.dataTables_info, .dataTables_paginate) {
    padding: 12px 0 8px;
    font-size: 13px;
}
html.mwt .mwt-cell-note {
    display: block;
    margin-top: 2px;
    color: var(--scene-muted);
    font: 400 12px/1.4 var(--font-body);
}
html.mwt .mwt-panel-empty {
    margin: 0;
    padding: 24px;
    color: var(--scene-muted);
}
html.mwt .mwt-panel-empty a {
    color: var(--scene-accent);
}
/* Dashboard ticket list: key in mono ahead of the summary */
html.mwt .mwt-ticket-key {
    margin-right: 6px;
    color: var(--scene-muted);
    font: 500 12px/1 var(--font-mono);
}
html.mwt .product-name a:hover .mwt-ticket-key {
    color: var(--scene-accent);
}
/* Account side panel */
html.mwt .mwt-account address {
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid var(--scene-line);
    color: var(--scene-muted);
    font-size: 14px;
    line-height: 1.7;
}
html.mwt .mwt-account address strong {
    color: var(--scene-text);
    font-weight: 600;
}
html.mwt .mwt-links {
    margin: 0;
    padding: 0 24px;
    list-style: none;
}
html.mwt .mwt-links li + li {
    border-top: 1px solid var(--scene-line);
}
html.mwt .mwt-links a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    color: var(--scene-text);
    font-size: 14px;
    text-decoration: none;
}
html.mwt .mwt-links a i {
    color: var(--scene-muted);
    text-align: center;
}
html.mwt .mwt-links-arrow {
    color: var(--scene-accent);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
html.mwt .mwt-links a:hover {
    color: var(--scene-accent);
}
html.mwt .mwt-links a:hover :is(i, .mwt-links-arrow) {
    color: var(--scene-accent);
    opacity: 1;
}
html.mwt .mwt-links a:hover .mwt-links-arrow {
    transform: translate(3px, -3px);
}
html.mwt .mwt-account .mwt-logout {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 6px 24px 10px;
    border-top: 1px solid var(--scene-line);
    color: var(--scene-muted);
}
html.mwt .mwt-account .mwt-logout:hover {
    color: var(--scene-accent);
}

/* 15 ── /pay page (app/pay/index.php, standalone, body.mwt-pay) ── */
html.mwt body.mwt-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px 16px;
    background: var(--scene-bg) radial-gradient(520px circle at 30% 20%, rgb(0 174 239 / 14%), transparent 70%) no-repeat;
}
html.mwt .mwt-pay-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 32px;
    border: 1px solid var(--scene-line);
    border-radius: var(--scene-radius);
    background: var(--scene-surface);
}
html.mwt .mwt-pay-card img {
    width: auto;
    height: 32px;
    margin-bottom: 28px;
}
html.mwt .mwt-pay-card h1 {
    margin: 0 0 10px;
    font-size: 30px;
}
html.mwt .mwt-pay-card > p:not(.eyebrow) {
    color: var(--scene-muted);
    font-size: 14px;
}
html.mwt .mwt-pay-card .mwt-field {
    margin-bottom: 16px;
}
html.mwt .mwt-pay-card .mwt-field label {
    display: block;
    margin-bottom: 8px;
}
html.mwt .mwt-pay-card .mwt-field input {
    width: 100%;
}
html.mwt .mwt-pay-card .mwt-primary-action {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}
html.mwt .mwt-pay-card .mwt-pay-legal {
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--scene-line);
    color: var(--scene-muted);
    font-size: 12px;
}
html.mwt .mwt-pay-card .mwt-pay-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--mwt-error);
    background: rgb(255 155 155 / 8%);
    color: var(--scene-text);
    font-size: 14px;
}
