@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: block;
    font-weight: 200 800;
    src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
    font-family: "JetBrains Mono Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Plus Jakarta Sans Variable";
    font-style: normal;
    font-display: block;
    font-weight: 200 800;
    src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: block;
    font-weight: 100 900;
    src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
    --sm-paper: #f5f7fb;
    --sm-paper-2: #ffffff;
    --sm-ink: #10233b;
    --sm-muted: #5b6a7c;
    --sm-line: #d7dee7;
    --sm-blue: #1f5fdb;
    --sm-blue-dark: #1748b8;
    --sm-blue-soft: #e7efff;
    --sm-coral: #e8790b;
    --sm-coral-soft: #ffe5df;
    --sm-mint: #11a887;
    --sm-mint-soft: #dff7ef;
    --sm-navy: #0d1c30;
    --sm-white: #fff;
    --sm-shadow: 0 24px 70px rgba(16, 35, 59, .1);
    --sm-radius-sm: 12px;
    --sm-radius: 20px;
    --sm-radius-lg: 30px;
    --sm-container: 1180px;
    --sm-action-text: #fff;
}

html { background: var(--sm-paper); font-size: 16px; -webkit-text-size-adjust: auto; text-size-adjust: auto; }
body.sm-client {
    min-height: 100vh;
    margin: 0;
    color: var(--sm-ink);
    background:
        radial-gradient(circle at 6% 10%, rgba(255, 107, 87, .08), transparent 24rem),
        radial-gradient(circle at 96% 4%, rgba(40, 100, 255, .08), transparent 28rem),
        var(--sm-paper);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1;
    text-rendering: optimizeLegibility;
}

.sm-client *, .sm-client *::before, .sm-client *::after { box-sizing: border-box; }
.sm-client a { color: inherit; }
.sm-client img, .sm-client svg { display: block; max-width: 100%; }
.sm-client button, .sm-client input, .sm-client select, .sm-client textarea { font: inherit; }
.sm-client :focus-visible { outline: 2px solid var(--sm-mint); outline-offset: 2px; }
.sm-client code, .sm-client pre { font-family: "JetBrains Mono Variable", ui-monospace, monospace; }

.sm-skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    transform: translateY(-180%);
    padding: .7rem 1rem;
    border-radius: 10px;
    color: white !important;
    background: var(--sm-navy);
}
.sm-skip-link:focus { transform: none; }

.sm-container { width: min(var(--sm-container), calc(100% - 2.5rem)); margin-inline: auto; }
.sm-site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(215, 222, 231, .85);
    background: var(--sm-paper-2);
    backdrop-filter: none;
}
.sm-header-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 2rem; }
.sm-logo {
    display: inline-flex;
    flex-shrink: 1;
    align-items: center;
    gap: .7rem;
    color: var(--sm-ink) !important;
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -.04em;
    text-decoration: none !important;
}
.sm-logo-wordmark { display: block; font-weight: 700; line-height: 1; }
.sm-logo-mark { display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 7px); flex: 0 0 auto; gap: 2px; transform: skewY(-8deg); }
.sm-logo-mark i { display: block; border-radius: 2px; background: #e8790b; }
.sm-logo-mark i:nth-child(2) { background: var(--sm-blue); }
.sm-logo-mark i:nth-child(3) { grid-column: 1 / 3; background: #ffd166; }
.sm-logo-wordmark span { color: var(--sm-blue); }
.sm-logo--inverted { color: white !important; }
.sm-logo--inverted .sm-logo-wordmark span { color: #8baaff; }

.sm-menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.sm-menu-button > span { display: block; width: 22px; height: 2px; margin: 4px; background: var(--sm-ink); }
.sm-primary-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 2rem; }
.sm-nav-links, .sm-nav-actions { display: flex; align-items: center; gap: .3rem; }
.sm-primary-nav a, .sm-account-toggle {
    padding: .55rem .7rem;
    border: 0;
    border-radius: 9px;
    color: var(--sm-muted) !important;
    background: transparent;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.6;
    text-decoration: none !important;
}
.sm-primary-nav a:hover, .sm-primary-nav a[aria-current="page"], .sm-account-toggle:hover {
    color: var(--sm-ink) !important;
    background: rgba(255, 255, 255, .72);
}
.sm-primary-nav .sm-button {
    min-height: 42px;
    padding: .55rem .7rem;
    border: 0;
    border-radius: 10px;
    color: white !important;
    gap: normal;
    box-shadow: 0 10px 24px rgba(84, 214, 120, .15);
    transition: .2s;
}
.sm-nav-actions > a:first-child { margin-right: 0; }
.sm-button, .sm-client .btn-primary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: white !important;
    background: var(--sm-blue) !important;
    box-shadow: 0 8px 20px rgba(40, 100, 255, .2);
    font-weight: 750;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.sm-button:hover, .sm-client .btn-primary:hover {
    transform: translateY(-2px);
    border-color: transparent;
    background: var(--sm-blue-dark) !important;
    box-shadow: 0 12px 28px rgba(40, 100, 255, .26);
}
.sm-primary-nav .sm-button:hover { box-shadow: 0 10px 24px rgba(84, 214, 120, .15); }
.sm-account-menu { position: relative; }
.sm-account-menu .dropdown-menu { right: 0; left: auto; }

.sm-app-nav { color: #d9e4f1; background: var(--sm-navy); }
.sm-app-nav-inner { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 1rem; }
.sm-app-nav-list { display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.sm-app-nav-list > li { position: relative; }
.sm-app-nav-list a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 8px;
    color: #aebed0 !important;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
}
.sm-app-nav-list .active > a, .sm-app-nav-list a:hover { color: white !important; background: #1b3049; }
.sm-app-nav-list .dropdown-menu a { color: var(--sm-ink) !important; }
.sm-staff-note { margin: .5rem 0; }

.sm-page-heading { border-bottom: 1px solid var(--sm-line); background: rgba(255, 253, 248, .72); }
.sm-page-heading h1 { margin: 0; padding: 2.3rem 0 1.8rem; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 760; line-height: 1.08; letter-spacing: -.045em; }
.sm-main { min-height: 52vh; padding: 2.5rem 0 4.5rem; }
.sm-main--auth { display: grid; min-height: 68vh; place-items: start center; padding-top: clamp(3.5rem, 8vw, 7rem); }
.sm-content-row { margin-right: -8px; margin-left: -8px; }
.sm-content-row > [class*="col-"] { padding-right: 8px; padding-left: 8px; }

.sm-client .card, .sm-client .card-blesta, .sm-client .modal-content {
    overflow: hidden;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: color-mix(in srgb, var(--sm-paper-2) 94%, transparent);
    box-shadow: 0 16px 45px rgba(16, 35, 59, .07);
}
.sm-client .card-blesta > .card-header, .sm-client .card-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--sm-line);
    color: var(--sm-ink);
    background: var(--sm-paper-2);
    font-weight: 760;
}
.sm-client .card-body, .sm-client .card-content { padding: 1.25rem; }
.sm-client .card h3, .sm-client .card h4, .sm-client .card h5 { letter-spacing: -.025em; }
.sm-client .form-control, .sm-client .custom-select {
    min-height: 46px;
    border: 1px solid #c7d1de;
    border-radius: 10px;
    color: var(--sm-ink);
    background-color: var(--sm-paper-2);
    box-shadow: none;
}
.sm-client textarea.form-control { min-height: 110px; }
.sm-client .form-control:focus, .sm-client .custom-select:focus {
    border-color: var(--sm-blue);
    box-shadow: 0 0 0 3px rgba(40, 100, 255, .14);
}
.sm-client label { color: var(--sm-ink); font-weight: 700; }
.sm-client .text-muted, .sm-client small { color: var(--sm-muted) !important; }
.sm-client .btn { border-radius: 10px; font-weight: 750; }
.sm-client .btn-secondary, .sm-client .btn-light {
    color: var(--sm-ink) !important;
    border-color: var(--sm-line) !important;
    background: var(--sm-paper-2) !important;
    box-shadow: none;
}
.sm-client .btn-secondary:hover, .sm-client .btn-light:hover { border-color: #b9c4d2 !important; background: #f7f9fc !important; }
.sm-client a:not(.sm-logo):not(.sm-button):not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item) { color: var(--sm-blue-dark); }
.sm-client .table { color: var(--sm-ink); background: color-mix(in srgb, var(--sm-paper-2) 80%, transparent); }
.sm-client .table th { border-top: 0; color: var(--sm-muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.sm-client .table td, .sm-client .table th { border-color: var(--sm-line); vertical-align: middle; }
.sm-client .table-hover tbody tr:hover { background: var(--sm-blue-soft); }
.sm-client .list-group-item {
    border-color: var(--sm-line);
    color: var(--sm-muted);
    background: color-mix(in srgb, var(--sm-paper-2) 90%, transparent);
}
.sm-client .list-group-item.active { border-color: var(--sm-blue); color: var(--sm-blue-dark); background: var(--sm-blue-soft); }
.sm-client .alert { border: 0; border-left: 4px solid currentColor; border-radius: 0 var(--sm-radius-sm) var(--sm-radius-sm) 0; }
.sm-client .alert-success { color: #08735d; background: var(--sm-mint-soft); }
.sm-client .alert-danger { color: #a83224; background: var(--sm-coral-soft); }
.sm-client .badge-primary, .sm-client .page-item.active .page-link { border-color: var(--sm-blue); background: var(--sm-blue); }
.sm-client .page-link { color: var(--sm-blue-dark); border-color: var(--sm-line); }
.sm-client .dropdown-menu { padding: .45rem; border: 1px solid var(--sm-line); border-radius: var(--sm-radius-sm); box-shadow: 0 14px 35px rgba(16, 35, 59, .14); }
.sm-client .dropdown-item { border-radius: 7px; }
.sm-client .dropdown-item:hover { background: var(--sm-blue-soft); }
.sm-client .nav-tabs { border-color: var(--sm-line); }
.sm-client .nav-tabs .nav-link { border-radius: 10px 10px 0 0; color: var(--sm-muted); font-weight: 700; }
.sm-client .nav-tabs .nav-link.active { color: var(--sm-blue-dark); background: var(--sm-paper-2); }
.sm-client .progress { overflow: hidden; height: .7rem; border-radius: 999px; background: var(--sm-blue-soft); }
.sm-client .progress-bar { background: var(--sm-blue); }

.sm-client .login .card, .sm-client .login .card-blesta { width: min(520px, calc(100vw - 1.5rem)); }
.sm-client .login h2, .sm-client .login h3 { font-weight: 760; letter-spacing: -.04em; }
.sm-client [id="order_form"] .card, .sm-client .order .card { border-radius: var(--sm-radius); }
.sm-client #order_form_styles + * { font-family: "Manrope", system-ui, sans-serif; }

.sm-footer { padding: 4.5rem 0 1.5rem; color: #d9e4f1; background: var(--sm-navy); line-height: 26px; }
.sm-footer-grid { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 2rem; }
.sm-footer-brand p { max-width: 320px; margin: 1.2rem 0 .7rem; color: #9eb0c5; line-height: 26px; }
.sm-footer a { display: block; margin: .5rem 0; color: #aebed0 !important; font-size: .9rem; line-height: 24px; text-decoration: none; }
.sm-footer .sm-logo { display: inline-flex; margin: 0; color: white !important; font-size: 1.18rem; line-height: 1; }
.sm-footer .sm-logo .sm-logo-wordmark { margin: 0; color: white; line-height: 1; }
.sm-footer a:hover { color: white !important; }
.sm-footer strong { display: block; margin-bottom: 1rem; color: white; line-height: 26px; }
.sm-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1.3rem; border-top: 1px solid #263950; color: #879bb2; font-size: .8rem; line-height: 21px; }
.sm-sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); }

@media (max-width: 980px) {
    .sm-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .sm-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .sm-menu-button { display: block; }
    .sm-primary-nav {
        position: absolute;
        top: 74px;
        right: 0;
        left: 0;
        display: none;
        padding: 1rem 1.25rem 1.4rem;
        border-bottom: 1px solid var(--sm-line);
        background: var(--sm-paper-2);
        box-shadow: 0 18px 30px rgba(16, 35, 59, .08);
    }
    .sm-primary-nav[data-open] { display: grid; }
    .sm-nav-links, .sm-nav-actions { display: grid; gap: .3rem; }
    .sm-primary-nav a, .sm-account-toggle { width: 100%; padding: .8rem; text-align: left; }
    .sm-nav-actions { grid-template-columns: 1fr 1fr; margin-top: .5rem; }
    .sm-app-nav-inner { align-items: flex-start; padding-block: .55rem; }
    .sm-app-nav-list { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: .2rem; }
    .sm-app-nav-list a { white-space: nowrap; }
}

@media (max-width: 720px) {
    .sm-container { width: min(100% - 1.5rem, var(--sm-container)); }
    .sm-main { padding-top: 1.5rem; }
    .sm-page-heading h1 { padding: 1.7rem 0 1.35rem; }
    .sm-client .table-responsive { border: 0; }
}

@media (max-width: 460px) {
    .sm-footer-grid { grid-template-columns: 1fr; }
    .sm-footer-brand { grid-column: auto; }
    .sm-footer-bottom { display: grid; }
    .sm-nav-actions { grid-template-columns: 1fr; }
}

/* Selectable original dark palette. The playbook writes theme-choice.txt and
 * structure.pdt adds this class without changing the shared templates. */
.vm-theme-dark {
    --sm-paper: #121212;
    --sm-paper-2: #1d1d1d;
    --sm-ink: #f8f8f4;
    --sm-muted: #b6b6ad;
    --sm-line: #303030;
    --sm-blue: #54d678;
    --sm-blue-dark: #32ad55;
    --sm-blue-soft: #193321;
    --sm-coral: #ff8c42;
    --sm-coral-soft: #30231c;
    --sm-mint: #54d678;
    --sm-mint-soft: #193321;
    --sm-navy: #0d0d0d;
    --sm-white: #fff;
    --sm-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --sm-action-text: #0a160d;
}
html.vm-theme-dark { background: #121212; }
.vm-theme-dark body.sm-client { color: var(--sm-ink); background: radial-gradient(circle at 82% 4%, rgba(84,214,120,.09), transparent 28rem), #121212; }
.vm-theme-dark .sm-site-header { border-color: rgba(255,255,255,.08); background: #121212; }
.vm-theme-dark .sm-logo { color: #f8f8f4 !important; }
.vm-theme-dark .sm-logo-wordmark span, .vm-theme-dark .sm-logo--inverted .sm-logo-wordmark span { color: #54d678; }
.vm-theme-dark .sm-menu-button > span { background: #fff; }
.vm-theme-dark .sm-primary-nav a:hover, .vm-theme-dark .sm-primary-nav a[aria-current="page"], .vm-theme-dark .sm-account-toggle:hover { color: #fff !important; background: #242424; }
.vm-theme-dark .sm-button, .vm-theme-dark .sm-client .btn-primary { color: #0a160d !important; background: #54d678 !important; box-shadow: 0 8px 20px rgba(84,214,120,.16); border-radius: 11px; }
.vm-theme-dark .sm-button:hover, .vm-theme-dark .sm-client .btn-primary:hover { color: #111 !important; background: #ff8c42 !important; box-shadow: 0 12px 28px rgba(255,140,66,.18); }
.vm-theme-dark .sm-app-nav { background: #0d0d0d; }
.vm-theme-dark .sm-app-nav-list .active > a, .vm-theme-dark .sm-app-nav-list a:hover { background: #252525; }
.vm-theme-dark .sm-page-heading { border-color: var(--sm-line); background: #171717; }
.vm-theme-dark .sm-client .card, .vm-theme-dark .sm-client .card-blesta, .vm-theme-dark .sm-client .modal-content { border-color: var(--sm-line); background: #1d1d1d; box-shadow: 0 16px 45px rgba(0,0,0,.2); }
.vm-theme-dark .sm-client .card-blesta > .card-header, .vm-theme-dark .sm-client .card-header { color: #fff; background: #202020; }
.vm-theme-dark .sm-client .form-control, .vm-theme-dark .sm-client .custom-select { border-color: #444; color: #fff; background-color: #171717; }
.vm-theme-dark .sm-client .form-control:focus, .vm-theme-dark .sm-client .custom-select:focus { border-color: #54d678; box-shadow: 0 0 0 3px rgba(84,214,120,.14); }
.vm-theme-dark .sm-client label, .vm-theme-dark .sm-client .table { color: #f8f8f4; }
.vm-theme-dark .sm-client .table { background: #1d1d1d; }
.vm-theme-dark .sm-client .table > thead > tr > th,
.vm-theme-dark .sm-client .table > thead > tr > td {
    color: var(--sm-muted);
    border-color: var(--sm-line);
    background: #202020;
}
.vm-theme-dark .sm-client .table > tbody > tr > td,
.vm-theme-dark .sm-client .table > tbody > tr > th,
.vm-theme-dark .sm-client .table-striped > tbody > tr:nth-child(odd) > td,
.vm-theme-dark .sm-client .table-striped > tbody > tr:nth-child(even) > td,
.vm-theme-dark .sm-client .table-striped-alt > tbody > tr:nth-child(odd) > td,
.vm-theme-dark .sm-client .table-striped-alt > tbody > tr:nth-child(even) > td {
    color: var(--sm-ink);
    border-color: var(--sm-line);
    background: #1d1d1d;
}
.vm-theme-dark .sm-client .table-striped > tbody > tr:nth-child(even) > td,
.vm-theme-dark .sm-client .table-striped-alt > tbody > tr:nth-child(even) > td,
.vm-theme-dark .sm-client .table-striped-alt > tbody > tr:nth-child(4n+3) > td {
    background: #242424;
}
.vm-theme-dark .sm-client .table-hover > tbody > tr:hover > td,
.vm-theme-dark .sm-client .table > tbody > tr.expand_details > td,
.vm-theme-dark .sm-client .table > tbody > tr.expand_details > td:hover {
    color: #fff;
    background: #29322c;
}
.vm-theme-dark .sm-client .table a { color: #76df93; }
.vm-theme-dark .sm-client .table a:hover { color: #ff9e60; }
.vm-theme-dark .sm-client .nav-tabs { border-color: var(--sm-line); }
.vm-theme-dark .sm-client .nav-tabs .nav-link,
.vm-theme-dark .sm-client .nav-tabs li a { color: var(--sm-muted) !important; }
.vm-theme-dark .sm-client .nav-tabs .nav-link:hover,
.vm-theme-dark .sm-client .nav-tabs li a:hover { color: #fff !important; border-color: #444 #444 var(--sm-line); background: #242424; }
.vm-theme-dark .sm-client .nav-tabs .nav-link.active,
.vm-theme-dark .sm-client .nav-tabs li.active a { color: #76df93 !important; border-color: #444 #444 #1d1d1d; background: #1d1d1d; }
.vm-theme-dark .sm-client .btn-secondary, .vm-theme-dark .sm-client .btn-light { color: #fff !important; border-color: #444 !important; background: #272727 !important; }
.vm-theme-dark .sm-client .list-group-item, .vm-theme-dark .sm-client .dropdown-menu, .vm-theme-dark .sm-client .dropdown-item { color: #eee !important; border-color: #333; background: #1d1d1d; }
.vm-theme-dark .sm-client .dropdown-item:hover, .vm-theme-dark .sm-client .list-group-item:hover { background: #292929; }
.vm-theme-dark .sm-client,
.vm-theme-dark .sm-client .card,
.vm-theme-dark .sm-client .card-body,
.vm-theme-dark .sm-client .card-content,
.vm-theme-dark .sm-client .modal-body,
.vm-theme-dark .sm-client .modal-footer,
.vm-theme-dark .sm-client .tab-content,
.vm-theme-dark .sm-client .ticket-reply,
.vm-theme-dark .sm-client .ticket-reply-content,
.vm-theme-dark .sm-client .panel-body,
.vm-theme-dark .sm-client .well { color: #f8f8f4; background-color: #1d1d1d; }
.vm-theme-dark .sm-client .bg-white,
.vm-theme-dark .sm-client .bg-light,
.vm-theme-dark .sm-client .card-footer,
.vm-theme-dark .sm-client .input-group-text,
.vm-theme-dark .sm-client .custom-file-label,
.vm-theme-dark .sm-client .breadcrumb,
.vm-theme-dark .sm-client .page-link,
.vm-theme-dark .sm-client .popover,
.vm-theme-dark .sm-client .popover-header,
.vm-theme-dark .sm-client .popover-body { color: #f8f8f4 !important; border-color: #3a3a3a !important; background: #202020 !important; }
.vm-theme-dark .sm-client h1, .vm-theme-dark .sm-client h2, .vm-theme-dark .sm-client h3,
.vm-theme-dark .sm-client h4, .vm-theme-dark .sm-client h5, .vm-theme-dark .sm-client h6,
.vm-theme-dark .sm-client p, .vm-theme-dark .sm-client dd, .vm-theme-dark .sm-client dt,
.vm-theme-dark .sm-client .card-value, .vm-theme-dark .sm-client .card-label { color: #f8f8f4; }
.vm-theme-dark .sm-client .text-dark { color: #f8f8f4 !important; }
.vm-theme-dark .sm-client .text-muted { color: #b6b6ad !important; }
.vm-theme-dark .sm-client code, .vm-theme-dark .sm-client pre { color: #b9f3c9; background: #151515; }
.vm-theme-dark .sm-client hr { border-color: #353535; }
.vm-theme-dark .sm-client .alert-warning { color: #fff0cf; border-color: #7b5d24; background: #3b301a; }
.vm-theme-dark .sm-client .alert-danger { color: #ffd9d9; border-color: #743434; background: #3b2020; }
.vm-theme-dark .sm-client .alert-success { color: #d9ffe3; border-color: #2d7040; background: #17351f; }
.vm-theme-dark .sm-client .alert-info { color: #d8f7fb; border-color: #2c6570; background: #19363c; }
.vm-theme-dark .sm-client .alert-info p, .vm-theme-dark .sm-client .alert-info a { color: #d8f7fb; }
.vm-theme-dark .sm-client .alert .close { color: #fff; text-shadow: none; opacity: .85; }
.vm-theme-dark .sm-client .modal .close { color: #fff; text-shadow: none; }
.vm-theme-dark .sm-client .badge { color: #fff; background-color: #525252; }
.vm-theme-dark body.sm-client main#main .pagination a.page-link { color: #b9f3c9 !important; }
.vm-theme-dark .sm-client .page-item.disabled .page-link,
.vm-theme-dark .sm-client .page-link.disabled { color: #929292 !important; background: #1b1b1b !important; }
.vm-theme-dark .sm-client .page-item.active .page-link { color: #101a13 !important; border-color: #54d678 !important; background: #54d678 !important; }
.vm-theme-dark .sm-client .ticket-reply div.top-bar,
.vm-theme-dark .sm-client .ticket-reply div.top-bar.staff-reply { color: #f8f8f4; background: #282828; }
.vm-theme-dark .sm-client .ticket-reply div.replier { border-color: #3a3a3a; }
.vm-theme-dark .sm-client .note-editor,
.vm-theme-dark .sm-client .note-toolbar,
.vm-theme-dark .sm-client .note-statusbar { border-color: #555; background: #ededed; }
.vm-theme-dark .sm-client .note-editable { color: #111 !important; background: #fff !important; }
.vm-theme-dark .sm-client .note-editable p { color: #111 !important; }
.vm-theme-dark .sm-client form { color: #f8f8f4; }
.vm-theme-dark .sm-client .d-flex > form { margin: 0; }
.vm-theme-dark .sm-client .btn-success { color: #fff !important; border-color: #167432 !important; background: #167432 !important; }
/* Summary refreshes retain their current contents and do not change layout. */
html.vmb-order-config { overflow-y: scroll; }
.sm-client #order-summary[aria-busy="true"] { cursor: progress; }

/* Bootstrap's generic tooltip rule is 200px wide. Resource slider values use
 * at most two characters, so keep their labels compact. */
.sm-client .package_options .slider .tooltip-inner {
    box-sizing: content-box;
    width: 2ch;
    min-width: 2ch;
    max-width: 2ch;
    color: #f2f6fa;
    border: 1px solid var(--sm-blue);
    border-radius: 8px;
    background: #182331;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}
.sm-client .package_options .slider .tooltip.top .arrow::before,
.sm-client .package_options .slider .bs-tooltip-top .arrow::before { border-top-color: var(--sm-blue); }

.sm-client #package-config :is(input, textarea, select):focus-visible { outline: none; }
.sm-client .vmb-summary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
}
.sm-client .vmb-summary-actions form { display: flex; margin: 0; }
.sm-client .vmb-summary-actions .btn {
    height: var(--sm-control-height, 40px);
    min-height: var(--sm-control-height, 40px);
}
.sm-client .vmb-billing-threshold-notice {
    position: relative;
    padding: 12px 14px 12px 40px !important;
    color: #ffe4be !important;
    border: 1px solid color-mix(in srgb, var(--sm-coral) 72%, var(--sm-line)) !important;
    border-left-width: 3px !important;
    border-radius: 10px !important;
    background: #2a211e !important;
    font-weight: 650;
}
.sm-client .vmb-billing-threshold-notice::before {
    position: absolute;
    top: 12px;
    left: 14px;
    color: var(--sm-coral);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f071";
}

.sm-client .vmb-order-configuration {
    display: grid;
    gap: 0.1rem;
    margin-top: 0.35rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}
.sm-client .vmb-order-configuration span { display: block; }
.vm-theme-dark .sm-client .vmb-order-configuration { color: #b6b6ad; }

/* The old option controls remain as an inert visual snapshot until the new
 * slider widgets have completed their first paint. */
.sm-client .vmb-package-options-transition {
    position: relative;
    min-height: 1px;
}
.sm-client .vmb-package-options-snapshot {
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    width: 100%;
    pointer-events: none;
}
.vm-theme-dark .sm-footer { background: #0d0d0d; }
@media (max-width: 820px) { .vm-theme-dark .sm-primary-nav { background: #171717; border-color: #303030; } }

/* The light variant explicitly owns its text colors too, so plugin/card inline
 * defaults cannot leave white text on a white surface. */
.vm-theme-light .sm-client,
.vm-theme-light .sm-client .card,
.vm-theme-light .sm-client .card-body,
.vm-theme-light .sm-client .card-content,
.vm-theme-light .sm-client .modal-content,
.vm-theme-light .sm-client .table,
.vm-theme-light .sm-client .list-group-item { color: #162033; }
.vm-theme-light .sm-client .card-value,
.vm-theme-light .sm-client .card-label,
.vm-theme-light .sm-client h1, .vm-theme-light .sm-client h2, .vm-theme-light .sm-client h3,
.vm-theme-light .sm-client h4, .vm-theme-light .sm-client h5, .vm-theme-light .sm-client h6 { color: #111827; }
.vm-theme-light .sm-client .text-muted { color: #596579 !important; }
.vm-theme-light .sm-client .text-secondary,
.vm-theme-light .sm-client .help-block,
.vm-theme-light .sm-client .list-group-item-text,
.vm-theme-light .sm-client .list-group-item { color: #526075 !important; }
.vm-theme-light .sm-client .list-group-item.active,
.vm-theme-light .sm-client .list-group-item.active:hover { color: #111827 !important; border-color: #9ccdad; background: #e5f5ea !important; }
.vm-theme-light .sm-client .list-group-item.active label,
.vm-theme-light .sm-client .list-group-item.active .help-block { color: #253247 !important; }
.vm-theme-light .sm-client .btn-primary { color: #fff !important; border-color: #176b35 !important; background: #176b35 !important; }
.vm-theme-light .sm-client .page-item.active .page-link { color: #fff !important; border-color: #176b35 !important; background: #176b35 !important; }
.vm-theme-light .sm-client code { color: #83224f; }
.vm-theme-light .sm-client h4.text-primary,
.vm-theme-light .sm-client .text-primary { color: #176b35 !important; }

/* Signal: compact operational styling shared with the storefront. */
.vm-theme-signal {
    --sm-paper: #0e1620;
    --sm-paper-2: #131d28;
    --sm-ink: #f2f6fa;
    --sm-muted: #8494a9;
    --sm-line: #263344;
    --sm-blue: #3bd671;
    --sm-blue-dark: #27b95a;
    --sm-blue-soft: #173529;
    --sm-coral: #ff914d;
    --sm-coral-soft: #2a211e;
    --sm-mint: #3bd671;
    --sm-mint-soft: #173529;
    --sm-navy: #0b121a;
    --sm-white: #f2f6fa;
    --sm-shadow: 0 20px 55px rgba(1, 6, 12, .24);
    --sm-radius-sm: 8px;
    --sm-radius: 12px;
    --sm-radius-lg: 16px;
    --sm-action-text: #08130c;
}
html.vm-theme-signal { background: #0e1620; }
.vm-theme-signal body.sm-client {
    color: var(--sm-ink);
    background:
        radial-gradient(circle at 50% -8rem, #17372f 0, transparent 29rem),
        linear-gradient(rgba(38, 51, 68, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 51, 68, .14) 1px, transparent 1px),
        var(--sm-paper);
    background-size: auto, 32px 32px, 32px 32px, auto;
    font-family: "Inter Variable", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
.vm-theme-signal .sm-client h1,
.vm-theme-signal .sm-client h2,
.vm-theme-signal .sm-client h3,
.vm-theme-signal .sm-client h4,
.vm-theme-signal .sm-client h5,
.vm-theme-signal .sm-client h6,
.vm-theme-signal .sm-logo { font-family: "Plus Jakarta Sans Variable", "Inter Variable", sans-serif; letter-spacing: -.035em; }
.vm-theme-signal .sm-site-header { border-bottom-color: var(--sm-line); background: rgba(14, 22, 32, .94); backdrop-filter: blur(14px); }
.vm-theme-signal .sm-header-inner { min-height: 62px; }
.vm-theme-signal .sm-logo { color: var(--sm-ink) !important; font-size: 1.08rem; line-height: 1; }
.vm-theme-signal .sm-logo-wordmark span,
.vm-theme-signal .sm-logo--inverted .sm-logo-wordmark span { color: var(--sm-blue); }
.vm-theme-signal .sm-menu-button > span { background: var(--sm-ink); }
.vm-theme-signal .sm-primary-nav a,
.vm-theme-signal .sm-account-toggle { border-radius: 10px; font-family: "Inter Variable", sans-serif; font-size: .82rem; }
.vm-theme-signal .sm-primary-nav a:hover,
.vm-theme-signal .sm-primary-nav a[aria-current="page"],
.vm-theme-signal .sm-account-toggle:hover { color: var(--sm-ink) !important; background: #182331; }
.vm-theme-signal .sm-primary-nav .sm-button { min-height: 38px; color: #08130c !important; background: var(--sm-blue) !important; box-shadow: 0 8px 22px rgba(59, 214, 113, .13); }
.vm-theme-signal .sm-primary-nav .sm-button:hover { background: var(--sm-coral) !important; box-shadow: 0 10px 26px rgba(255, 145, 77, .16); }
.vm-theme-signal .sm-app-nav { border-bottom: 1px solid var(--sm-line); color: #ced8e4; background: #101923; }
.vm-theme-signal .sm-app-nav-inner { min-height: 48px; }
.vm-theme-signal .sm-app-nav-list a { min-height: 34px; color: #8494a9 !important; font-size: .8rem; }
.vm-theme-signal .sm-app-nav-list .active > a,
.vm-theme-signal .sm-app-nav-list a:hover { color: #f2f6fa !important; background: #182331; }
.vm-theme-signal .sm-page-heading { border-color: var(--sm-line); background: rgba(16, 26, 36, .78); }
.vm-theme-signal .sm-page-heading h1 { color: var(--sm-ink); font-size: clamp(1.65rem, 3vw, 2.15rem); }
.vm-theme-signal .sm-main { color: var(--sm-ink); }
.vm-theme-signal .sm-client .card,
.vm-theme-signal .sm-client .card-blesta,
.vm-theme-signal .sm-client .card-body,
.vm-theme-signal .sm-client .card-content,
.vm-theme-signal .sm-client .card-header,
.vm-theme-signal .sm-client .modal-body,
.vm-theme-signal .sm-client .modal-footer,
.vm-theme-signal .sm-client .modal-content,
.vm-theme-signal .sm-client .tab-content,
.vm-theme-signal .sm-client .ticket-reply,
.vm-theme-signal .sm-client .ticket-reply-content,
.vm-theme-signal .sm-client .list-group-item,
.vm-theme-signal .sm-client .well,
.vm-theme-signal .sm-client .panel,
.vm-theme-signal .sm-client .panel-body,
.vm-theme-signal .sm-client .table { color: var(--sm-ink); border-color: var(--sm-line); background-color: var(--sm-paper-2); }
.vm-theme-signal .sm-client .well {
    color: var(--sm-ink) !important;
    border-color: var(--sm-line) !important;
    background-color: var(--sm-paper-2) !important;
}
.vm-theme-signal .sm-client .card,
.vm-theme-signal .sm-client .modal-content,
.vm-theme-signal .sm-client .well,
.vm-theme-signal .sm-client .panel { border-radius: 12px; box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.vm-theme-signal .sm-client .card-header,
.vm-theme-signal .sm-client .table thead th { color: #cbd6e2; border-color: var(--sm-line); background: #101923; }
.vm-theme-signal .sm-client .table td,
.vm-theme-signal .sm-client .table th { color: inherit; border-color: var(--sm-line); }
.vm-theme-signal .sm-client .table-striped > tbody > tr:nth-child(odd) > td,
.vm-theme-signal .sm-client .table-striped-alt > tbody > tr:nth-child(odd) > td { background: #131d28; }
.vm-theme-signal .sm-client .table-striped > tbody > tr:nth-child(even) > td,
.vm-theme-signal .sm-client .table-striped-alt > tbody > tr:nth-child(even) > td { background: #162230; }
.vm-theme-signal .sm-client .table-hover tbody tr:hover { color: var(--sm-ink); background: #182331; }
.vm-theme-signal .sm-client h1,
.vm-theme-signal .sm-client h2,
.vm-theme-signal .sm-client h3,
.vm-theme-signal .sm-client h4,
.vm-theme-signal .sm-client h5,
.vm-theme-signal .sm-client h6,
.vm-theme-signal .sm-client .card-value,
.vm-theme-signal .sm-client .card-label { color: var(--sm-ink); }
.vm-theme-signal .sm-client .text-muted,
.vm-theme-signal .sm-client .text-secondary,
.vm-theme-signal .sm-client .help-block,
.vm-theme-signal .sm-client small { color: var(--sm-muted) !important; }
.vm-theme-signal .sm-client .form-control,
.vm-theme-signal .sm-client .custom-select,
.vm-theme-signal .sm-client select,
.vm-theme-signal .sm-client textarea,
.vm-theme-signal .sm-client input[type="text"],
.vm-theme-signal .sm-client input[type="email"],
.vm-theme-signal .sm-client input[type="password"],
.vm-theme-signal .sm-client input[type="number"] { color: var(--sm-ink); border-color: #314156; background: #182331; border-radius: 8px; }
.vm-theme-signal .sm-client .form-control:focus,
.vm-theme-signal .sm-client select:focus,
.vm-theme-signal .sm-client textarea:focus { color: var(--sm-ink); border-color: var(--sm-mint); outline: none; background: #182331; box-shadow: 0 0 0 1px var(--sm-mint); }
.sm-client .readable-captcha { max-width: 270px; margin-bottom: .75rem; }
.sm-client .readable-captcha-inner { padding: 0; }
.sm-client .readable-captcha-image { width: 190px; height: 40px; margin-bottom: .4rem; border: 1px solid #737b83; border-radius: 7px; }
.sm-client .readable-captcha .form-control { min-height: 38px; height: 38px; padding-block: .35rem; }
.sm-client :is(input, select, textarea, .form-control, .custom-select):focus-visible { outline: none; }

/* Keep form focus compact and consistent with the green control language. */
.sm-client :is(input, select, textarea, .form-control, .custom-select):focus,
.sm-client :is(input, select, textarea, .form-control, .custom-select):focus-visible {
    border-color: var(--sm-mint) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px var(--sm-mint) !important;
}
.vm-theme-signal .sm-client .input-group-text { color: var(--sm-muted); border-color: #314156; background: #101923; }
.vm-theme-signal .sm-client .bg-white,
.vm-theme-signal .sm-client .bg-light,
.vm-theme-signal .sm-client .card-footer,
.vm-theme-signal .sm-client .custom-file-label,
.vm-theme-signal .sm-client .breadcrumb,
.vm-theme-signal .sm-client .popover,
.vm-theme-signal .sm-client .popover-header,
.vm-theme-signal .sm-client .popover-body { color: var(--sm-ink) !important; border-color: var(--sm-line) !important; background: #182331 !important; }
.vm-theme-signal .sm-client .btn-primary,
.vm-theme-signal .sm-client .btn-success { color: #08130c !important; border-color: var(--sm-blue) !important; background: var(--sm-blue) !important; border-radius: 10px; box-shadow: 0 8px 22px rgba(59, 214, 113, .13); }
.vm-theme-signal .sm-client .btn-primary:hover,
.vm-theme-signal .sm-client .btn-success:hover { border-color: var(--sm-coral) !important; background: var(--sm-coral) !important; }
.vm-theme-signal .sm-client .btn-secondary,
.vm-theme-signal .sm-client .btn-light { color: var(--sm-ink); border-color: var(--sm-line); background: #182331; }
.vm-theme-signal .sm-client .dropdown-menu { color: var(--sm-ink); border-color: var(--sm-line); background: #182331; box-shadow: var(--sm-shadow); }
.vm-theme-signal .sm-client .dropdown-item { color: #cbd6e2 !important; }
.vm-theme-signal .sm-client .dropdown-item:hover,
.vm-theme-signal .sm-client .dropdown-item:focus { color: var(--sm-ink) !important; background: #213044; }
.vm-theme-signal .sm-client .list-group-item.active,
.vm-theme-signal .sm-client .page-item.active .page-link { color: #08130c !important; border-color: var(--sm-blue); background: var(--sm-blue) !important; }
.vm-theme-signal .sm-client .page-link { color: #cbd6e2; border-color: var(--sm-line); background: #131d28; }
.vm-theme-signal .sm-client .alert { color: var(--sm-ink); border-color: var(--sm-line); background: #182331; }
.vm-theme-signal .sm-client .alert-danger { border-left: 3px solid #ff6b6b; }
.vm-theme-signal .sm-client .alert-success { border-left: 3px solid var(--sm-blue); }
.vm-theme-signal .sm-client .alert-warning { color: #ffe4be; border-left: 3px solid var(--sm-coral); }
.vm-theme-signal .sm-client .alert-info { color: #d5eeff; border-left: 3px solid #4dabf7; }
.vm-theme-signal .sm-client .nav-tabs { border-color: var(--sm-line); }
.vm-theme-signal .sm-client .nav-tabs .nav-link { color: var(--sm-muted); border-color: transparent; }
.vm-theme-signal .sm-client .nav-tabs .nav-link.active { color: var(--sm-ink); border-color: var(--sm-line) var(--sm-line) #131d28; background: #131d28; }
.vm-theme-signal .sm-client .vmb-order-configuration { color: var(--sm-muted); }
.vm-theme-signal .sm-client .ticket-reply div.top-bar,
.vm-theme-signal .sm-client .ticket-reply div.top-bar.staff-reply { color: var(--sm-ink); background: #101923; }
.vm-theme-signal .sm-client .ticket-reply div.replier { border-color: var(--sm-line); }
.vm-theme-signal .sm-client .note-editor,
.vm-theme-signal .sm-client .note-toolbar,
.vm-theme-signal .sm-client .note-statusbar { border-color: #526075; background: #ededed; }
.vm-theme-signal .sm-client .note-editable,
.vm-theme-signal .sm-client .note-editable p { color: #111 !important; background: #fff !important; }
.vm-theme-signal .sm-footer { border-top-color: var(--sm-line); background: #0b121a; }
.vm-theme-signal .sm-footer a,
.vm-theme-signal .sm-footer-brand p { color: var(--sm-muted); }
.vm-theme-signal .sm-footer strong,
.vm-theme-signal .sm-logo--inverted { color: #f2f6fa !important; }
.vm-theme-signal .sm-footer-bottom { color: #68788d; border-color: var(--sm-line); }
@media (max-width: 820px) {
    .vm-theme-signal .sm-primary-nav { top: 62px; border-color: var(--sm-line); background: #101a24; }
}

/* Shared client-area typography. Blesta's Bootstrap layer uses 24px h4s in
 * places where templates actually render ordinary values, so establish a
 * compact product-UI scale after all palette variants. */
body.sm-client {
    --sm-type-meta: 12px;
    --sm-type-control: 13px;
    --sm-type-body: 14px;
    --sm-type-value: 15px;
    font-size: var(--sm-type-body);
    font-weight: 400;
    line-height: 1.55;
}
.sm-client .sm-page-heading h1 {
    font-size: clamp(1.625rem, 2.5vw, 1.875rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
}
.sm-client .sm-main h1,
.sm-client .sm-main .h1 { font-size: 1.625rem; }
.sm-client .sm-main h2,
.sm-client .sm-main .h2 { font-size: 1.375rem; }
.sm-client .sm-main h3,
.sm-client .sm-main .h3 { font-size: 1.125rem; }
.sm-client .sm-main h4,
.sm-client .sm-main .h4 { font-size: 1rem; }
.sm-client .sm-main h5,
.sm-client .sm-main .h5,
.sm-client .sm-main .card-body h4,
.sm-client .sm-main .panel .panel-body h4 { font-size: .9375rem; }
.sm-client .sm-main h6,
.sm-client .sm-main .h6 { font-size: .8125rem; }
.sm-client .sm-main h1,
.sm-client .sm-main h2,
.sm-client .sm-main h3,
.sm-client .sm-main h4,
.sm-client .sm-main h5,
.sm-client .sm-main h6,
.sm-client .sm-main .h1,
.sm-client .sm-main .h2,
.sm-client .sm-main .h3,
.sm-client .sm-main .h4,
.sm-client .sm-main .h5,
.sm-client .sm-main .h6 {
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.02em;
}
.sm-client .sm-main .service-info label {
    display: block;
    margin: 0 0 .18rem;
    color: var(--sm-muted);
    font-size: var(--sm-type-meta);
    font-weight: 600;
    line-height: 1.4;
}
.sm-client .sm-main .service-info h4,
.sm-client .sm-main .service-info .h4 {
    margin: 0 0 .85rem !important;
    font-size: var(--sm-type-value);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.sm-client .sm-main .card-blesta > .card-header,
.sm-client .sm-main .card-header,
.sm-client .sm-main .panel-heading {
    font-size: var(--sm-type-body);
    font-weight: 650;
    line-height: 1.4;
}
.sm-client .sm-main label,
.sm-client .sm-main legend {
    font-size: var(--sm-type-control);
    font-weight: 600;
    line-height: 1.45;
}
.sm-client .sm-main .form-control,
.sm-client .sm-main .custom-select,
.sm-client .sm-main .btn,
.sm-client .sm-main .nav-link,
.sm-client .sm-main .list-group-item,
.sm-client .sm-main .dropdown-item,
.sm-client .sm-main .page-link {
    font-size: var(--sm-type-control);
    font-weight: 600;
}
.sm-client .sm-main .form-control,
.sm-client .sm-main .custom-select { font-weight: 400; }
.sm-client .sm-main .table { font-size: var(--sm-type-body); }
.sm-client .sm-main .table th {
    font-size: var(--sm-type-meta);
    font-weight: 600;
    line-height: 1.4;
}
.sm-client .sm-main small,
.sm-client .sm-main .small,
.sm-client .sm-main .help-block,
.sm-client .sm-main .text-muted,
.sm-client .sm-main .vmb-order-configuration {
    font-size: var(--sm-type-meta);
    font-weight: 400;
    line-height: 1.45;
}
.sm-client .sm-main .badge {
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}
.vm-theme-signal .sm-client #order_form_styles + * {
    font-family: "Inter Variable", system-ui, sans-serif;
}
/* Rich-text editors are authored documents rather than client chrome. */
.sm-client .sm-main .note-editable h1 { font-size: 2.5rem; }
.sm-client .sm-main .note-editable h2 { font-size: 2rem; }
.sm-client .sm-main .note-editable h3 { font-size: 1.75rem; }
.sm-client .sm-main .note-editable h4 { font-size: 1.5rem; }
.sm-client .sm-main .note-editable h5 { font-size: 1.25rem; }
.sm-client .sm-main .note-editable h6 { font-size: 1rem; }
.sm-client .sm-main .note-editable h1,
.sm-client .sm-main .note-editable h2,
.sm-client .sm-main .note-editable h3,
.sm-client .sm-main .note-editable h4,
.sm-client .sm-main .note-editable h5,
.sm-client .sm-main .note-editable h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
}

/* One complete interaction palette for ordinary client actions. This must
 * cover Bootstrap's hover, focus, active and dropdown states together; partial
 * overrides otherwise combine a light fallback background with light text. */
.sm-client .btn:is(.btn-primary, .btn-success, .btn-secondary, .btn-light, .btn-default, .btn-info) {
    color: var(--sm-action-text) !important;
    border-color: var(--sm-blue) !important;
    background: var(--sm-blue) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--sm-blue) 18%, transparent) !important;
}
.sm-client .btn:is(.btn-primary, .btn-success, .btn-secondary, .btn-light, .btn-default, .btn-info):is(:hover, :focus, .focus),
.sm-client .btn:is(.btn-primary, .btn-success, .btn-secondary, .btn-light, .btn-default, .btn-info):not(:disabled):not(.disabled):is(:active, .active),
.sm-client .show > .btn:is(.btn-primary, .btn-success, .btn-secondary, .btn-light, .btn-default, .btn-info).dropdown-toggle {
    color: var(--sm-action-text) !important;
    border-color: var(--sm-coral) !important;
    background: var(--sm-coral) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--sm-coral) 20%, transparent) !important;
    transform: translateY(-1px);
}
.sm-client .btn:is(.btn-primary, .btn-success, .btn-secondary, .btn-light, .btn-default, .btn-info):focus-visible {
    outline: 3px solid var(--sm-coral);
    outline-offset: 2px;
}
.sm-client .btn:is(.btn-primary, .btn-success, .btn-secondary, .btn-light, .btn-default, .btn-info):is(:disabled, .disabled) {
    color: var(--sm-action-text) !important;
    border-color: var(--sm-blue) !important;
    background: var(--sm-blue) !important;
    box-shadow: none !important;
    opacity: .5;
    transform: none;
}
.sm-client .btn-danger { color: #fff !important; }
.sm-client .btn-warning { color: #251707 !important; }
.sm-client .btn-danger:is(:hover, :focus, .focus, :active, .active) {
    color: #fff !important;
    filter: brightness(1.08);
}
.sm-client .btn-warning:is(:hover, :focus, .focus, :active, .active) {
    color: #251707 !important;
    filter: brightness(1.04);
}

/* Unified client component geometry and framing. Marketing and client themes
 * share the same shapes; palette variables provide the variant differences. */
.sm-client {
    --sm-frame: color-mix(in srgb, var(--sm-line) 72%, transparent);
    --sm-frame-soft: color-mix(in srgb, var(--sm-line) 48%, transparent);
    --sm-surface-subtle: color-mix(in srgb, var(--sm-paper-2) 92%, var(--sm-paper));
    --sm-control-height: 40px;
    --sm-control-height-compact: 32px;
    --sm-button-radius: 10px;
    --sm-button-radius-compact: 8px;
}
.sm-client .sm-main :is(.card, .card-blesta, .panel, .panel-blesta, .well),
.sm-client .modal-content {
    border: 1px solid var(--sm-frame) !important;
    border-radius: 12px !important;
    background: var(--sm-paper-2);
    box-shadow: 0 12px 34px color-mix(in srgb, var(--sm-paper) 18%, transparent) !important;
}
.vm-theme-signal .sm-client .sm-main :is(.card, .card-blesta, .panel, .panel-blesta, .well),
.vm-theme-signal .sm-client .modal-content {
    border-color: color-mix(in srgb, var(--sm-blue) 30%, var(--sm-line)) !important;
    box-shadow:
        inset 0 1px color-mix(in srgb, var(--sm-blue) 8%, transparent),
        0 12px 34px rgba(1, 6, 12, .22) !important;
}
.sm-client .sm-main :is(.card-header, .panel-heading),
.sm-client .modal-header,
.sm-client .modal-footer {
    border-color: var(--sm-frame-soft) !important;
    background: var(--sm-surface-subtle) !important;
}
.sm-client .sm-main :is(.card-body, .card-content, .panel-body) { padding: 16px; }
.sm-client .sm-main hr,
.sm-client .sm-main .vmb-divider {
    height: 1px;
    margin: 16px 0;
    border: 0 !important;
    background: var(--sm-frame-soft);
}
.sm-client .sm-main fieldset {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--sm-frame);
    border-radius: 10px;
}
.sm-client .sm-main :is(.form-control, .custom-select, select),
.sm-client .modal :is(.form-control, .custom-select, select) {
    min-height: var(--sm-control-height);
    height: var(--sm-control-height);
    padding: 8px 11px;
    border: 1px solid var(--sm-frame) !important;
    border-radius: 8px;
    box-shadow: none !important;
}
.sm-client .sm-main textarea.form-control,
.sm-client .modal textarea.form-control { min-height: 104px; height: auto; resize: vertical; }
.sm-client .sm-main :is(.form-control, .custom-select, select):focus,
.sm-client .modal :is(.form-control, .custom-select, select):focus {
    border-color: var(--sm-mint) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px var(--sm-mint) !important;
}
.sm-client .input-group-text,
.sm-client .custom-file-label {
    min-height: var(--sm-control-height);
    border-color: var(--sm-frame) !important;
    background: var(--sm-surface-subtle);
}
.sm-client .btn {
    display: inline-flex;
    height: var(--sm-control-height);
    min-height: var(--sm-control-height);
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--sm-button-radius);
    line-height: 1.2;
    vertical-align: middle;
}
.sm-client .btn:is(.btn-xs, .btn-sm),
.sm-client .btn-group-sm > .btn,
.sm-client .table .btn {
    height: var(--sm-control-height-compact);
    min-height: var(--sm-control-height-compact);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: var(--sm-button-radius-compact);
}
.sm-client .btn-block { width: 100%; }
.sm-client .btn-group {
    align-items: stretch;
    gap: 6px;
    vertical-align: middle;
}
.sm-client .btn-group > .btn,
.sm-client .btn-group > .btn:not(:first-child),
.sm-client .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    margin-left: 0 !important;
    border-radius: var(--sm-button-radius) !important;
}
.sm-client .table .btn-group > .btn,
.sm-client .btn-group-sm > .btn,
.sm-client .btn-group > .btn:is(.btn-xs, .btn-sm) {
    border-radius: var(--sm-button-radius-compact) !important;
}
.sm-client .btn-group > .dropdown-toggle-split { padding-right: 9px; padding-left: 9px; }

/* Row actions are deliberately exposed instead of using menus which are
 * clipped by responsive/rounded table containers. */
.sm-client .sm-main .vmb-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: max-content;
}
.sm-client .sm-main .vmb-row-actions > .dropdown-toggle { display: none !important; }
.sm-client .sm-main .vmb-row-actions > .dropdown-menu {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
.sm-client .sm-main .vmb-row-actions > .dropdown-menu > li { display: contents; }
.sm-client .sm-main .vmb-row-actions > .dropdown-menu a {
    display: inline-flex;
    min-height: var(--sm-control-height-compact);
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--sm-blue);
    border-radius: var(--sm-button-radius-compact);
    color: var(--sm-action-text) !important;
    background: var(--sm-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.sm-client .sm-main .vmb-row-actions > .dropdown-menu a.vmb-icon-action {
    width: var(--sm-control-height-compact);
    min-width: var(--sm-control-height-compact);
    padding: 5px;
}
.sm-client .sm-main .vmb-row-actions > .dropdown-menu a:hover,
.sm-client .sm-main .vmb-row-actions > .dropdown-menu a:focus {
    border-color: var(--sm-coral);
    background: var(--sm-coral);
    text-decoration: none;
}

/* Blesta inserts a translucent white loader while dashboard widgets arrive.
 * Match the final signal surface so refreshes do not flash beige. */
.vm-theme-signal .sm-client .loading_container {
    color: var(--sm-muted) !important;
    background: rgba(14, 22, 32, .92) !important;
}
.vm-theme-signal .sm-client .loading_container .loading_dialog {
    color: var(--sm-muted);
    background: transparent;
}
.vm-theme-signal .sm-client.client-client_main-index .right_content {
    min-height: 280px;
    background: transparent;
}

/* Dashboard tables must fit their cards. Identity is the flexible field;
 * dates, terms and actions retain predictable space. */
.sm-client.client-client_main-index .table-responsive { overflow: visible; }
.sm-client.client-client_main-index .vmb-responsive-table {
    width: 100%;
    table-layout: fixed;
}
.sm-client.client-client_main-index #services.vmb-services-combined th:nth-child(1),
.sm-client.client-client_main-index #services.vmb-services-combined td:nth-child(1) { display: none; }
.sm-client.client-client_main-index #services th:nth-child(2),
.sm-client.client-client_main-index #services td:nth-child(2) { width: 36%; }
.sm-client.client-client_main-index #services th:nth-child(3),
.sm-client.client-client_main-index #services td:nth-child(3) { width: 20%; }
.sm-client.client-client_main-index #services th:nth-child(4),
.sm-client.client-client_main-index #services td:nth-child(4),
.sm-client.client-client_main-index #services th:nth-child(5),
.sm-client.client-client_main-index #services td:nth-child(5) { width: 14%; }
.sm-client.client-client_main-index #services th:last-child,
.sm-client.client-client_main-index #services td:last-child { width: 16%; }
.sm-client .vmb-service-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    cursor: help;
}
.sm-client .vmb-service-label-primary { display: block; overflow: hidden; text-overflow: ellipsis; }
.sm-client .vmb-service-package { display: block; overflow: hidden; margin-top: 2px; color: var(--sm-muted) !important; text-overflow: ellipsis; white-space: nowrap; }
.sm-client.client-client_main-index #invoices th:last-child,
.sm-client.client-client_main-index #invoices td:last-child { width: 20%; }
.sm-client.client-client_main-index #invoices :is(th, td):not(:last-child) { overflow-wrap: anywhere; }
.sm-client.client-client_main-index #transactions td:nth-child(5),
.sm-client.client-client_main-index #tickets td:nth-child(4),
.sm-client.client-client_main-index #tickets td:nth-child(5),
.sm-client.client-client_main-index #tickets td:nth-child(6) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-client.client-client_main-index #tickets th:nth-child(1), .sm-client.client-client_main-index #tickets td:nth-child(1) { width: 13%; }
.sm-client.client-client_main-index #tickets th:nth-child(2), .sm-client.client-client_main-index #tickets td:nth-child(2) { width: 10%; }
.sm-client.client-client_main-index #tickets th:nth-child(3), .sm-client.client-client_main-index #tickets td:nth-child(3) { width: 14%; }
.sm-client.client-client_main-index #tickets th:nth-child(4), .sm-client.client-client_main-index #tickets td:nth-child(4) { width: 20%; }
.sm-client.client-client_main-index #tickets th:nth-child(5), .sm-client.client-client_main-index #tickets td:nth-child(5),
.sm-client.client-client_main-index #tickets th:nth-child(6), .sm-client.client-client_main-index #tickets td:nth-child(6) { width: 15%; }
.sm-client.client-client_main-index #tickets th:last-child, .sm-client.client-client_main-index #tickets td:last-child { width: 13%; }

@media (max-width: 900px) {
    .sm-client .vmb-responsive-wrap { overflow: visible !important; }
    .sm-client .vmb-responsive-table,
    .sm-client .vmb-responsive-table > tbody { display: block; width: 100%; border: 0; background: transparent; }
    .sm-client .vmb-responsive-table > thead { display: none; }
    .sm-client .vmb-responsive-table > tbody > tr:not(.expand_details) {
        display: block;
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid var(--sm-frame);
        border-radius: 9px;
        background: var(--sm-paper-2);
    }
    .sm-client .vmb-responsive-table > tbody > tr:not(.expand_details) > td {
        display: grid;
        width: 100% !important;
        grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 8px 10px;
        border: 0;
        border-bottom: 1px solid var(--sm-frame-soft) !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
    .sm-client .vmb-responsive-table > tbody > tr:not(.expand_details) > td:last-child { border-bottom: 0 !important; }
    .sm-client .vmb-responsive-table > tbody > tr:not(.expand_details) > td::before {
        content: attr(data-label);
        color: var(--sm-muted);
        font-size: 11px;
        font-weight: 750;
        letter-spacing: .045em;
        text-transform: uppercase;
    }
    .sm-client .vmb-service-label { text-overflow: clip; white-space: normal !important; cursor: auto; }
    .sm-client .vmb-service-label-primary, .sm-client .vmb-service-package { overflow: visible; text-overflow: clip; white-space: normal; }
    .sm-client .sm-main .vmb-row-actions { min-width: 0; }
    .sm-client .vmb-responsive-table > tbody > tr.expand_details > td { display: block; width: 100%; }
}
.sm-client .package .order.card-footer {
    padding: 12px;
    border-top: 0 !important;
}
.sm-client .package > p:last-of-type {
    border-bottom: 0;
}
.sm-client .sm-main :is(.table, .table-curved) {
    overflow: hidden;
    border: 1px solid var(--sm-frame);
    border-radius: 10px;
    background: var(--sm-paper-2);
    border-collapse: separate;
    border-spacing: 0;
}
.sm-client .sm-main .table :is(th, td) { border-color: var(--sm-frame-soft) !important; }
.sm-client .sm-main .table thead th { background: var(--sm-surface-subtle); }
.sm-client .sm-main .list-group { border-radius: 10px; }
.sm-client .sm-main .list-group-item {
    min-height: 40px;
    border-color: var(--sm-frame-soft) !important;
    background: var(--sm-paper-2);
}
.sm-client .sm-main .list-group-item + .list-group-item { border-top-width: 0; }
.sm-client .sm-main .nav-tabs { gap: 3px; border-color: var(--sm-frame) !important; }
.sm-client .sm-main .nav-tabs .nav-link { min-height: 38px; padding: 8px 12px; border-color: transparent; }
.sm-client .sm-main .nav-tabs .nav-link.active { border-color: var(--sm-frame) var(--sm-frame) var(--sm-paper-2) !important; }
.sm-client :is(.alert, .popover) {
    border: 1px solid var(--sm-frame) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.sm-client .sm-main :is(.badge, .vmb-status) { letter-spacing: .01em; }

/* OpenNebula service views use explicit roles instead of heading/code tags to
 * infer presentation. */
.sm-client .vmb-console-bar {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px !important;
    color: var(--sm-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sm-client .vmb-console-title { display: inline-flex; align-items: center; gap: 8px; color: var(--sm-ink); font-size: 13px; letter-spacing: 0; text-transform: none; }
.sm-client .vmb-console-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--sm-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sm-blue) 12%, transparent); }
.sm-client .vmb-field-grid { display: grid; gap: 14px 18px; }
.sm-client .vmb-field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-client .vmb-field-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sm-client .vmb-field-grid--network { grid-template-columns: 1.2fr 1.2fr .6fr; }
.sm-client .vmb-field-grid--panel { grid-template-columns: 1.3fr .75fr 1fr; }
.sm-client .vmb-field { min-width: 0; }
.sm-client .vmb-field-label { display: block; margin-bottom: 4px; color: var(--sm-muted); font-size: 11px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .055em; }
.sm-client .vmb-field-value { display: block; overflow-wrap: anywhere; color: var(--sm-ink); font-size: 14px; font-weight: 550; line-height: 1.45; }
.sm-client .vmb-field-value--mono { color: var(--sm-ink) !important; background: transparent !important; font-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 12px; font-weight: 500; }
.sm-client .vmb-field-value--missing { color: var(--sm-muted) !important; background: transparent !important; font-family: inherit !important; font-size: 13px; font-weight: 400 !important; font-style: normal; }
.sm-client .vmb-status { display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; color: var(--sm-muted); font-size: 12px; font-weight: 600; line-height: 1.4; }
.sm-client .vmb-status::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.sm-client .vmb-status--healthy { color: var(--sm-blue); }
.sm-client .vmb-status--warning { color: #d99a12; }
.sm-client .vmb-status--danger { color: #e45b5b; }
.sm-client .vmb-status--neutral { color: var(--sm-muted); font-weight: 400; }

/* VMBargain VPS management workspace */
.sm-client .vmb-vps-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 18px; padding:18px 20px; border:1px solid var(--sm-line); border-radius:14px; background:var(--sm-panel); }
.sm-client .vmb-vps-identity { display:flex; align-items:center; gap:14px; min-width:0; }
.sm-client .vmb-vps-icon { display:grid; width:46px; height:46px; flex:0 0 46px; place-items:center; border:1px solid rgba(39,197,120,.35); border-radius:12px; color:var(--sm-green); background:rgba(39,197,120,.08); }
.sm-client .vmb-vps-identity h3 { margin:0 0 4px; color:var(--sm-ink); font-size:19px; line-height:1.25; }
.sm-client .vmb-vps-identity p { margin:0; color:var(--sm-muted); font-size:12px; }
.sm-client .vmb-vps-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.sm-client .vmb-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.sm-client .vmb-metric { min-height:88px; padding:16px; border:1px solid var(--sm-line); border-radius:12px; background:var(--sm-panel); }
.sm-client .vmb-metric span { display:block; margin-bottom:8px; color:var(--sm-muted); font-size:11px; font-weight:650; letter-spacing:.05em; text-transform:uppercase; }
.sm-client .vmb-metric strong { color:var(--sm-ink); font-size:18px; font-weight:650; }
.sm-client .vmb-metric--green { border-color:rgba(39,197,120,.36); background:rgba(39,197,120,.055); }
.sm-client .vmb-management-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr); gap:16px; align-items:start; }
.sm-client .vmb-management-card { margin:0 0 16px; padding:18px 20px; border:1px solid var(--sm-line); border-radius:14px; background:var(--sm-panel); box-shadow:none; }
.sm-client .vmb-management-card h4 { margin:0 0 14px; color:var(--sm-ink); font-size:15px; font-weight:650; }
.sm-client .vmb-management-card p { color:var(--sm-muted); font-size:12px; line-height:1.6; }
.sm-client .vmb-usage-row + .vmb-usage-row { margin-top:20px; }
.sm-client .vmb-usage-row > div:first-child { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; color:var(--sm-muted); font-size:12px; }
.sm-client .vmb-usage-row strong { color:var(--sm-ink); font-weight:600; }
.sm-client .vmb-progress { overflow:hidden; height:8px; border-radius:999px; background:rgba(255,255,255,.06); }
.sm-client .vmb-progress > span { display:block; height:100%; min-width:2px; border-radius:inherit; background:var(--sm-mint); }
.sm-client .vmb-progress--violet > span { background:#7a68ee; }
.sm-client .vmb-copy-row,.sm-client .vmb-secret-row { display:grid; grid-template-columns:110px minmax(0,1fr); align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--sm-line); color:var(--sm-muted); font-size:12px; }
.sm-client .vmb-copy-row code,.sm-client .vmb-revealed-secret { overflow-wrap:anywhere; color:var(--sm-ink); background:transparent; font-family:"JetBrains Mono Variable",monospace; font-size:12px; }
.sm-client .vmb-secret-row form { margin:0; }
.sm-client .vmb-revealed-secret { display:block; margin-top:12px; padding:12px; border:1px solid rgba(39,197,120,.35); border-radius:10px; background:rgba(39,197,120,.06); }
.sm-client .vmb-detail-list { display:grid; grid-template-columns:90px minmax(0,1fr); gap:12px; margin:0; }
.sm-client .vmb-detail-list dt { color:var(--sm-muted); font-size:11px; font-weight:500; }
.sm-client .vmb-detail-list dd { margin:0; overflow-wrap:anywhere; color:var(--sm-ink); font-size:12px; }
.sm-client .vmb-range-picker { display:flex; gap:4px; width:max-content; margin:0 0 14px; padding:4px; border:1px solid var(--sm-line); border-radius:10px; background:var(--sm-panel); }
.sm-client .vmb-range-picker button { min-height:32px; padding:0 12px; border:0; border-radius:7px; color:var(--sm-muted); background:transparent; font-size:11px; }
.sm-client .vmb-range-picker .is-active { color:var(--sm-ink); background:rgba(39,197,120,.12); }
.sm-client .vmb-analytics-intro { margin:0 0 14px; color:var(--sm-muted); font-size:12px; }
.sm-client .vmb-chart-card { min-height:250px; }
.sm-client .vmb-chart-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.sm-client .vmb-chart-heading h4 { margin-bottom:3px; }
.sm-client .vmb-chart-heading p { margin:0; color:var(--sm-muted); font-size:11px; }
.sm-client .vmb-chart-current { display:flex; flex-direction:column; align-items:flex-end; gap:3px; text-align:right; }
.sm-client .vmb-chart-current > strong { color:var(--sm-mint); font:600 14px/1.3 var(--sm-mono); white-space:nowrap; }
.sm-client .vmb-chart-current > small { color:var(--sm-muted); font:500 9px/1.25 var(--sm-mono); white-space:nowrap; }
.sm-client .vmb-chart-stats { display:flex; flex-wrap:wrap; gap:8px 18px; margin:12px 0 4px; color:var(--sm-muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.sm-client .vmb-chart-stats b { margin-left:4px; color:var(--sm-ink); font-family:var(--sm-mono); font-weight:500; text-transform:none; letter-spacing:0; }
.sm-client .vmb-chart-plot { display:grid; grid-template-columns:58px minmax(0,1fr); gap:8px; align-items:stretch; }
.sm-client .vmb-chart-scale { display:flex; flex-direction:column; justify-content:space-between; padding:8px 0 1px; color:var(--sm-muted); font:500 9px/1 var(--sm-mono); text-align:right; }
.sm-client .vmb-spark-bars { display:flex; align-items:end; gap:2px; height:125px; padding-top:10px; border-bottom:1px solid var(--sm-line); background:linear-gradient(to bottom,transparent 49%,var(--sm-line) 50%,transparent 51%); }
.sm-client .vmb-spark-bars > span { display:block; min-width:2px; flex:1 1 0; max-width:10px; border-radius:2px 2px 0 0; background:var(--sm-mint); opacity:.78; outline:none; }
.sm-client .vmb-spark-bars > span:focus { opacity:1; box-shadow:0 0 0 2px rgba(39,197,120,.28); }
.sm-client .vmb-spark-bars > span.is-missing { opacity:.12; }
.sm-client .vmb-chart-time { display:flex; justify-content:space-between; margin:5px 0 0 66px; color:var(--sm-muted); font:500 9px/1.2 var(--sm-mono); }
.sm-client .vmb-analytics-resolution { margin:2px 0 16px; color:var(--sm-muted); font-size:12px; }
.sm-client .vmb-managed-rule { display:flex; flex-wrap:wrap; gap:10px 20px; margin-bottom:14px; padding:13px; border:1px solid var(--sm-line); border-radius:10px; color:var(--sm-muted); font-size:12px; }
.sm-client .vmb-managed-rule strong { width:100%; color:var(--sm-ink); }
.sm-client .vmb-rule { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid var(--sm-line); color:var(--sm-ink); font-size:12px; }
.sm-client .vmb-rule small { display:block; margin-top:3px; color:var(--sm-muted); }
.sm-client .vmb-rule form { margin:0; }
.sm-client .vmb-empty-state { padding:26px; border:1px dashed var(--sm-line); border-radius:10px; color:var(--sm-muted); text-align:center; }
.sm-client .vmb-firewall-form { display:grid; grid-template-columns:.65fr .9fr 1.2fr 1.2fr auto; gap:10px; align-items:end; }
.sm-client .vmb-firewall-form label,.sm-client .vmb-danger-card label { color:var(--sm-muted); font-size:11px; font-weight:600; }
.sm-client .vmb-firewall-form :is(input,select),.sm-client .vmb-settings-grid :is(input,select,textarea) { width:100%; margin-top:6px; }
.sm-client .vmb-settings-grid textarea { min-height:78px; resize:vertical; }
.sm-client .vmb-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sm-client .vmb-settings-grid .vmb-management-card { margin:0; }
.sm-client .vmb-settings-grid .vmb-management-card form { margin-top:14px; }
.sm-client .vmb-inline-action { display:flex; align-items:center; gap:10px; }
.sm-client .vmb-settings-grid .vmb-inline-action input { min-width:0; height:40px; flex:1 1 auto; width:auto; margin:0; padding:0 12px; border-radius:10px !important; }
.sm-client .vmb-settings-grid .vmb-inline-action .btn { flex:0 0 auto; margin:0; border-radius:10px !important; }
.sm-client .vmb-settings-grid .vmb-management-card > p + .btn { margin-top:8px; }
.sm-client .vmb-danger-card { border-color:rgba(228,91,91,.35); }
.sm-client .vmb-danger-card label { display:block; margin-top:14px; }
.sm-client .vmb-danger-card .btn { margin-top:14px; }
@media (max-width:900px){.sm-client .vmb-vps-header{align-items:flex-start;flex-direction:column}.sm-client .vmb-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-client .vmb-management-layout,.sm-client .vmb-settings-grid{grid-template-columns:1fr}.sm-client .vmb-firewall-form{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.sm-client .vmb-metric-grid,.sm-client .vmb-firewall-form{grid-template-columns:1fr}.sm-client .vmb-vps-actions{width:100%}.sm-client .vmb-vps-actions .btn{flex:1 1 auto}}
.sm-client #vmb-operation-timeline { display:none; }
.sm-client .vmb-operation-card { padding:14px 16px; border:1px solid var(--sm-line); border-radius:10px; color:var(--sm-ink); background:var(--sm-panel); }
.sm-client .vmb-operation-card.is-active { border-color:rgba(39,197,120,.48); background:rgba(39,197,120,.055); }
.sm-client .vmb-operation-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; font-size:12px; }
.sm-client .vmb-operation-name { font-size:13px; font-weight:650; }
.sm-client .vmb-operation-message,.sm-client .vmb-operation-card > p { margin:4px 0 9px; color:var(--sm-muted); font-size:11px; line-height:1.45; }
.sm-client .vmb-operation-progress { overflow:hidden; height:6px; margin:9px 0 5px; border-radius:999px; background:rgba(127,145,165,.18); }
.sm-client .vmb-operation-progress span { display:block; height:100%; border-radius:inherit; background:var(--sm-mint); transition:width .35s ease; }
.sm-client .vmb-operation-meta { display:flex; justify-content:space-between; gap:8px; color:var(--sm-muted); font-size:10px; text-transform:capitalize; }
.sm-client .vmb-operation-spinner { width:12px; height:12px; flex:0 0 auto; border:2px solid rgba(39,197,120,.25); border-top-color:var(--sm-mint); border-radius:50%; animation:vmb-operation-spin .8s linear infinite; }
@keyframes vmb-operation-spin { to { transform:rotate(360deg); } }
.sm-client .vmb-operation-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.sm-client .vmb-operation-list li { position:relative; padding-left:12px; font-size:11px; }
.sm-client .vmb-operation-list li::before { position:absolute; top:5px; left:0; width:6px; height:6px; border-radius:50%; background:var(--sm-muted); content:""; }
.sm-client .vmb-operation-list li.is-completed::before { background:var(--sm-mint); }
.sm-client .vmb-operation-list li.is-failed::before { background:#e45b5b; }
.sm-client .vmb-operation-list span,.sm-client .vmb-operation-list small { display:block; }
.sm-client .vmb-operation-list small { margin-top:2px; color:var(--sm-muted); font-size:9px; }
.sm-client .vmb-operation-list details { margin-top:4px; color:#e45b5b; font-size:10px; }
.sm-client .vmb-operation-list details p { overflow-wrap:anywhere; margin:4px 0 0; color:var(--sm-muted); }
.sm-client #vmb-operation-sidebar-host { position:sticky; top:92px; margin-top:12px; }
.sm-client #vmb-operation-sidebar { margin:0; }
.sm-client .has-active-operation button:disabled { cursor:not-allowed; opacity:.45; }
@media (max-width:767px){.sm-client #vmb-operation-sidebar-host{position:static;top:auto}}
.sm-client .vmb-card-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sm-frame-soft); }
.sm-client .vmb-card-section h5 { margin: 0 0 6px; }
.sm-client .vmb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.sm-client .vmb-actions form { display: flex; margin: 0; }
.sm-client .vmb-actions .btn { margin: 0; }

/* Support Manager knowledge base. Its stock voting panel is hard-coded white,
 * which makes inherited Signal-theme text unreadable. Form controls already
 * have a clear green focus ring, so do not draw the global orange ring too. */
.sm-client .rate {
    color: var(--sm-ink) !important;
    border: 1px solid var(--sm-frame) !important;
    border-radius: 10px !important;
    background: var(--sm-paper-2) !important;
}
.sm-client .rate :is(h1, h2, h3, h4, h5, h6, p, span) { color: inherit; }
.sm-client .card-kb .form-control:focus-visible { outline: none; }
.sm-client .section-title h3 > .fas,
.sm-client .categories > .col-md-12 > .fas,
.sm-client .categories .bg-light > .fas { margin-right: 7px; }

@media (max-width: 767px) {
    .sm-client #sticker { position: static !important; width: auto !important; }
    .sm-client #sticker-sticky-wrapper { height: auto !important; }
    .sm-client .vmb-summary-actions { justify-content: stretch; }
    .sm-client .vmb-summary-actions .btn,
    .sm-client .vmb-summary-actions form { flex: 1 1 auto; }
    .sm-client .vmb-summary-actions form .btn { width: 100%; }
    .sm-client .vmb-field-grid--2,
    .sm-client .vmb-field-grid--4,
    .sm-client .vmb-field-grid--network,
    .sm-client .vmb-field-grid--panel { grid-template-columns: 1fr; }
    .sm-client .vmb-console-bar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .sm-client *, .sm-client *::before, .sm-client *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Marketing-configurator handoff: retain Blesta's real form validation and
 * CSRF submission while avoiding a second visible configuration step. */
.sm-client .vmb-auto-add-status {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--sm-frame);
    border-radius: 12px;
    color: var(--sm-ink);
    background: var(--sm-paper-2);
}
.sm-client .vmb-auto-add-status strong,
.sm-client .vmb-auto-add-status small { display: block; }
.sm-client .vmb-auto-add-status small { margin-top: 3px; color: var(--sm-muted); }
.sm-client .vmb-auto-add-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--sm-blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sm-blue) 14%, transparent); animation: vmb-auto-pulse 1s ease-in-out infinite alternate; }
.vmb-auto-add #package-config { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; }
@keyframes vmb-auto-pulse { to { opacity: .45; transform: scale(.82); } }
