/* =====================================================================================================================
   Rogue Wave 3 (child of Nexus): the control panel's dark Mono look across the whole client area.
   Flat neutral greys on #0a0a0a (--n1 .. --n12), Geist + Geist Mono, light primary buttons with dark text, colour only
   for state (ok / warn / bad / info, small). Depth is a 1px inner highlight and soft layered shadows (never transforms);
   hover is a 120ms colour or border change; pages may fade in. The logo is the only brand colour.
   Every page is built from the shared components in section 6, so a page has no rules of its own unless it really
   has a part nothing else has (dashboard, service page, upgrade). Sections:
     1 tokens   2 base   3 app shell   4 guest nav   5 sign-in frame   6 components   7 buttons   8 forms
     9 tables, lists, status   10 alerts, menus, modals, nav   11 sidebars   12 pages   13 documents (invoice, quote)
     14 modules and plugins   15 order forms other than rwcart2 / Nexus fixed whites   16 phones   17 print, motion
   ===================================================================================================================== */

/* ------------------------------------------------------------------ 1 tokens */
:root {
    --n1: #0a0a0a;
    --n2: #111111;
    --n3: #161616;
    --n4: #1c1c1c;
    --n5: #232323;
    --n6: #2a2a2a;
    --n7: #363636;
    --n8: #4d4d4d;
    --n9: #868686;   /* faint text: 4.6:1 even on --n4 */
    --n10: #8f8f8f;
    --n11: #a1a1a1;
    --n12: #ededed;
    --hi: #ffffff;
    --ok: #45d483;
    --warn: #f5a524;
    --bad: #ff5c5c;
    --info: #70b8ff;
    --ok-subtle: rgb(69 212 131 / 0.1);
    --warn-subtle: rgb(245 165 36 / 0.1);
    --bad-subtle: rgb(255 92 92 / 0.12);
    --ok-line: rgb(69 212 131 / 0.3);
    --warn-line: rgb(245 165 36 / 0.3);
    --bad-line: rgb(255 92 92 / 0.35);
    --line: var(--n5);
    --fill: rgb(237 237 237 / 0.1);
    --font: 'Geist', -apple-system, 'Segoe UI', system-ui, Roboto, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --t-xs: 12px;
    --t-sm: 13px;
    --t-md: 14px;
    --r1: 6px;
    --r2: 8px;
    --r3: 12px;
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --fast: 120ms;
    --side-w: 248px;
    --pad: 18px;     /* card padding: heads, bodies, rows and footers line up on it */
    --pop: 0 0 0 1px var(--n6), 0 16px 40px -12px rgb(0 0 0 / 0.7);
    --hl: inset 0 1px 0 rgb(255 255 255 / 0.04);
    --elev-1: inset 0 1px 0 rgb(255 255 255 / 0.035), 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 24px -14px rgb(0 0 0 / 0.7);
    --elev-2: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 34px -14px rgb(0 0 0 / 0.85);
    --chip: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 1px 1px rgb(0 0 0 / 0.4);
    --well: inset 0 1px 2px rgb(0 0 0 / 0.35);

    /* the DDoS protection module's own boxes read these */
    --rw-line: var(--n6);
    --rw-muted: var(--n10);

    /* Nexus draws its pages from these */
    --white: #fff;
    --neutral-50: #0a0a0a;
    --neutral-100: #111111;
    --neutral-200: #1c1c1c;
    --neutral-300: #2a2a2a;
    --neutral-400: #4d4d4d;
    --neutral-500: #737373;
    --neutral-600: #8f8f8f;
    --neutral-700: #a1a1a1;
    --neutral-800: #d4d4d4;
    --neutral-900: #ededed;
    --neutral-950: #fafafa;
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-950);
    --primary: #ededed;
    --primary-lifted: #ffffff;
    --primary-accented: #d4d4d4;
    --secondary: #2a2a2a;
    --secondary-lifted: #363636;
    --secondary-accented: #4d4d4d;
    --success: #45d483;
    --success-lifted: #5fe096;
    --success-accented: #2fb86b;
    --info-lifted: #8fc8ff;
    --info-accented: #4f9fe8;
    --notice: #a1a1a1;
    --notice-lifted: #bdbdbd;
    --notice-accented: #8f8f8f;
    --warning: #f5a524;
    --warning-lifted: #f7b84d;
    --warning-accented: #d68b0c;
    --error: #ff5c5c;
    --error-lifted: #ff7a7a;
    --error-accented: #e54545;
    --grayscale: #ededed;
    --grayscale-lifted: #ffffff;
    --grayscale-accented: #d4d4d4;
    --neutral: #737373;
    --neutral-lifted: #8f8f8f;
    --neutral-accented: #a1a1a1;
    --text-inverted: #0a0a0a;
    --text-muted: #8f8f8f;
    --text-lifted: #a1a1a1;
    --text-accented: #d4d4d4;
    --text: #ededed;
    --border-muted: #1c1c1c;
    --border: #232323;
    --border-lifted: #2a2a2a;
    --border-accented: #4d4d4d;
    --bg: #0a0a0a;
    --bg-muted: #111111;
    --bg-lifted: #161616;
    --bg-accented: #1c1c1c;
    --bg-inverted: #ededed;
    --yellow-200: #f5a524;
    --yellow-300: #f5a524;
    --teal-300: #45d483;
    --teal-400: #45d483;
    --emerald-300: #45d483;
    --pink-400: #ff5c5c;
    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;
    --rounding-sm: 6px;
    --rounding-md: 8px;
    --rounding-lg: 12px;
    --letter-spacing: -0.006em;
    --disabled-opacity: 45%;
    --font-family-sans-serif: var(--font);
    --font-family-monospace: var(--mono);
    color-scheme: dark;
}

/* ------------------------------------------------------------------ 2 base */
html, body { background: var(--n1); }
html body, button, input, select, textarea, .tooltip, .popover { font-family: var(--font); }
body {
    color: var(--n12);
    font-size: var(--t-md);
    line-height: 1.5;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
code, kbd, pre, samp, .text-monospace, .font-monospace, .rw-num { font-family: var(--mono); }
.rw-num { font-size: 0.93em; font-variant-numeric: tabular-nums; }
.rw-strong { color: var(--n12); font-weight: 500; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--n12); font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; }
a { color: var(--n12); text-decoration-color: var(--n8); text-underline-offset: 3px; transition: color var(--fast) var(--ease); }
a:hover { color: var(--hi); text-decoration-color: var(--n10); }
::selection { background: var(--fill); }
hr { border-color: var(--line); }
small, .small { color: inherit; }
.text-muted, small.text-muted { color: var(--n10) !important; }
code { color: var(--n12); background: var(--n4); border-radius: 4px; padding: 1px 5px; font-size: 0.88em; }
kbd { background: var(--n3); color: var(--n10); border: 1px solid var(--n6); box-shadow: none; font-family: var(--mono); }
pre { color: var(--n11); background: var(--n1); border: 1px solid var(--n5); border-radius: var(--r2); padding: 12px 14px; }
:focus-visible { outline: 2px solid var(--n12); outline-offset: 2px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--n12); outline-offset: 2px; box-shadow: none; }

/* icons: sized here and in the markup (width/height attributes), so they never grow on any page or order form */
svg.ri { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; overflow: hidden; }
.btn svg.ri { width: 15px; height: 15px; margin-top: -2px; }
.rw-sp { flex: 1 1 auto; }
/* Nexus hides with .w-hidden and shows with jQuery (an inline display): the theme's display rules (.btn, .label,
   flex boxes) must not beat the class, and never an inline display set by a script */
html body .w-hidden:not([style*='display']) { display: none !important; }
.rw-mr-auto { margin-right: auto !important; }
.rw-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font: 500 var(--t-sm) var(--font); color: var(--n10); }
.rw-eyebrow svg.ri { width: 14px; height: 14px; color: var(--n9); }
.rw-skip { position: absolute; left: 12px; top: -60px; z-index: 1100; padding: 8px 14px; border-radius: var(--r1); background: var(--n12); color: var(--n1); font-weight: 500; }
.rw-skip:focus { top: 12px; color: var(--n1); }
.rw-led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--n8); }
.rw-led.ok { background: var(--ok); }
.rw-led.warn { background: var(--warn); }
.rw-led.info { background: var(--info); }
.rw-spinner { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--n6); border-top-color: var(--n12); animation: rw-spin 0.8s linear infinite; }
.rw-spinner.is-sm { width: 14px; height: 14px; border-width: 1.5px; vertical-align: -2px; }
@keyframes rw-spin { to { transform: rotate(360deg); } }

@keyframes rw-fade { from { opacity: 0; } to { opacity: 1; } }
/* the only entrance motion: a short fade, and only when head.tpl set html.rw-anim (visible page, motion allowed) */
html.rw-anim .rw-content > .rw-pagehead,
html.rw-anim .rw-body .primary-content,
html.rw-anim .rw-auth-inner { animation: rw-fade 160ms var(--ease) backwards; }

/* ------------------------------------------------------------------ 3 app shell */
.rw-container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.rw-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: var(--n1); }

.rw-brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none !important; }
.rw-brand-logo { display: block; height: 24px; width: auto; max-width: 190px; }
.rw-brand-icon { display: none; width: 26px; height: 26px; }

.rw-side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 12px 12px;
    background: linear-gradient(180deg, #0c0c0c, var(--n1));
    border-right: 1px solid var(--line);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--n6) transparent;
    z-index: 50;
}
.rw-side-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 0 6px 6px; }
.rw-side .rw-brand-logo { height: 22px; }
.rw-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    border-radius: var(--r2);
    border: 1px solid var(--n12);
    background: var(--n12);
    color: var(--n1) !important;
    font: 500 var(--t-sm) var(--font);
    text-decoration: none !important;
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.rw-nav { display: flex; flex-direction: column; gap: 1px; }
.rw-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r2);
    background: transparent;
    color: var(--n10);
    font: 400 var(--t-sm) var(--font);
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.rw-nav-item svg.ri { color: var(--n9); }
.rw-nav-item:hover { background: var(--n4); color: var(--n12); }
.rw-nav-item.is-current, .rw-nav-group.is-current > .rw-nav-item { background: var(--n4); color: var(--n12); font-weight: 500; box-shadow: var(--hl), inset 0 0 0 1px var(--n5); }
.rw-nav-item.is-current svg.ri, .rw-nav-group.is-current > .rw-nav-item svg.ri { color: var(--n12); }
.rw-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.rw-chev { width: 14px; height: 14px; }
.rw-nav-group.is-open > .rw-nav-toggle svg.rw-chev { transform: rotate(180deg); }
.rw-nav-sub { display: none; }
.rw-nav-group.is-open > .rw-nav-sub { display: block; }
.rw-nav-sub-in { margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid var(--line); }
.rw-nav-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--r1);
    color: var(--n10);
    font-size: var(--t-sm);
    text-decoration: none !important;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.rw-nav-subitem:hover { color: var(--n12); background: var(--n4); }
.rw-nav-subitem[aria-current='page'] { color: var(--n12); font-weight: 500; }
.rw-nav-div { display: block; height: 1px; margin: 4px 10px; background: var(--line); }
.rw-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 4px; background: var(--n4); color: var(--n10); font: 500 11px/18px var(--mono); text-align: center; }

.rw-side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.rw-side-acct { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r2); color: var(--n10); text-decoration: none !important; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.rw-side-acct:hover, .rw-side-acct.is-current { background: var(--n4); color: var(--n12); }
.rw-side-acct-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.rw-side-acct-txt b { color: var(--n12); font-weight: 500; font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-side-acct-txt small { color: var(--n9); font-size: var(--t-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--n5); border: 1px solid var(--n7); color: var(--n12); font: 600 12px var(--font); }
.rw-avatar.is-staff { background: var(--n12); border-color: var(--n12); color: var(--n1); }

.rw-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.rw-top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 24px;
    background: color-mix(in srgb, var(--n1) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.rw-top .rw-burger, .rw-top .rw-top-brand, .rw-side .rw-side-close, .rw-gnav .rw-gnav-burger { display: none; }
/* Nexus folds sidebar cards when jQuery('.container').width() <= 720: this empty probe keeps its answer right */
.rw-probe { height: 0 !important; min-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; visibility: hidden; }
.rw-crumbs { min-width: 0; flex: 1; }
.rw-crumbs .breadcrumb { flex-wrap: nowrap; margin: 0; padding: 0; background: transparent; font-size: var(--t-sm); overflow: hidden; white-space: nowrap; }
.rw-crumbs .breadcrumb-item { color: var(--n12); overflow: hidden; text-overflow: ellipsis; }
.rw-crumbs .breadcrumb-item a { color: var(--n10); text-decoration: none; }
.rw-crumbs .breadcrumb-item a:hover { color: var(--n12); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--n7); padding: 0 8px; }

.rw-top-actions { display: flex; align-items: center; gap: 6px; }
.rw-icon-btn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--n6); border-radius: var(--r1); background: var(--n3); color: var(--n11); box-shadow: var(--hl), 0 1px 1px rgb(0 0 0 / 0.3); cursor: pointer; text-decoration: none !important; opacity: 1; text-shadow: none; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.rw-icon-btn:hover { background: var(--n4); border-color: var(--n7); color: var(--n12); }
.rw-icon-btn svg.ri { width: 16px; height: 16px; }
.rw-pip { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--n12); color: var(--n1); font: 600 10px/16px var(--mono); text-align: center; box-shadow: 0 0 0 2px var(--n1); }
.rw-pip.is-zero { display: none; }
.rw-pip.is-alert { background: var(--bad); color: #fff; }
.rw-acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; max-width: 240px; padding: 0 8px 0 2px; border: 0; border-radius: var(--r1); background: transparent; color: var(--n12); font: 500 var(--t-sm) var(--font); cursor: pointer; transition: background var(--fast) var(--ease); }
.rw-acct-btn:hover, .rw-acct.show .rw-acct-btn { background: var(--n4); }
.rw-acct-btn .rw-avatar { width: 26px; height: 26px; font-size: 11px; }
.rw-acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-acct-btn svg.rw-chev { color: var(--n9); }

.rw-content { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 32px 32px 0; }
.rw-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.rw-pagehead-txt { min-width: 0; }
.rw-pagehead h1 { margin: 0; font: 600 30px / 1.15 var(--font); letter-spacing: -0.045em; color: var(--n12); }
.rw-pagehead p { margin: 8px 0 0; max-width: 70ch; color: var(--n10); font-size: var(--t-sm); }
.rw-pagehead-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rw-body { flex: 1 0 auto; }
.rw-body > .row { margin-left: -12px; margin-right: -12px; }
.rw-body > .row > [class*='col'] { padding-left: 12px; padding-right: 12px; }
.primary-content { min-width: 0; }

/* the verification / validation bars under the top bar */
.rw-banner { padding: 16px 32px 0; }
.rw-banner .rw-callout { margin: 0; }
.rw-banner .close { float: none; }

.rw-foot, html body footer.footer.rw-foot { margin-top: 56px; padding: 18px 0 22px; background: transparent; border-top: 1px solid var(--line); color: var(--n9); font-size: var(--t-xs); }
.rw-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.rw-foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rw-foot-icon { width: 18px; height: 18px; display: block; }
.rw-foot-copy { color: var(--n9); }
.rw-foot-links { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.rw-foot-links a, html body footer.footer.rw-foot a { color: var(--n10); text-decoration: none; }
.rw-foot-links a:hover, html body footer.footer.rw-foot a:hover { color: var(--n12); }
.rw-foot-links .list-inline-item { margin: 0; }
.rw-link-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--n6); border-radius: var(--r1); background: transparent; color: var(--n10); font: 500 var(--t-xs) var(--font); box-shadow: var(--hl), 0 1px 1px rgb(0 0 0 / 0.3); cursor: pointer; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.rw-link-btn:hover { color: var(--n12); border-color: var(--n7); }
.rw-link-btn svg.ri { width: 13px; height: 13px; }
.rw-tabbar, .rw-scrim { display: none; }
/* WHMCS's licence line: rw2.js moves it into the footer; without script it sits small at the end of the page */
p:has(> a[href^="https://www.whmcs.com"]) { margin: 24px 0 0; color: var(--n9); font-size: var(--t-xs); }
p:has(> a[href^="https://www.whmcs.com"]) a { color: var(--n10); }
.rw-powered { margin: 0 !important; color: var(--n9); font-size: var(--t-xs); text-align: left !important; }
.rw-powered a { color: var(--n10); text-decoration: none; }
.rw-powered a:hover { color: var(--n12); }

/* ------------------------------------------------------------------ 4 guest top nav */
body.rw-l-guest { display: flex; flex-direction: column; min-height: 100vh; }
.rw-gnav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--n1) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.rw-gnav-in { display: flex; align-items: center; gap: 20px; max-width: 1280px; height: 60px; margin: 0 auto; padding: 0 32px; }
.rw-gnav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.rw-gnav-link { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r1); background: transparent; color: var(--n10); font: 400 var(--t-sm) var(--font); text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.rw-gnav-link svg.ri { width: 15px; height: 15px; color: var(--n9); }
.rw-gnav-link:hover, .dropdown.show > .rw-gnav-link { background: var(--n4); color: var(--n12); }
.rw-gnav-link.dropdown-toggle::after { border: 0; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: 0.7; }
.rw-gnav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rw-gnav-actions .btn { height: 32px; min-height: 32px; display: inline-flex; align-items: center; }
.rw-guest-content { padding-top: 32px; }
.rw-l-guest .rw-content { flex: 1 0 auto; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ------------------------------------------------------------------ 5 sign-in frame (as apps/web/app/kit/server/l-j.css) */
.rw-auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--n1); color: var(--n12); }
.rw-auth-col { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 100vh; }
.rw-auth-top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; }
.rw-auth-top .rw-brand-logo { height: 26px; }
.rw-auth-help { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--n10); text-decoration: none; }
.rw-auth-help:hover { color: var(--n12); text-decoration: none; }
.rw-auth-help svg.ri { width: 14px; height: 14px; }
.rw-auth-main { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 40px; }
.rw-auth-main.is-wide { justify-content: flex-start; }
.rw-auth-inner { width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; }
.rw-auth-main.is-wide .rw-auth-inner { width: min(760px, 100%); }
.rw-auth-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--n2); box-shadow: var(--elev-1); }
.rw-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.rw-form .form-group { margin: 0; }
.rw-auth-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.rw-auth-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--n6); background: var(--n3); color: var(--n11); box-shadow: var(--chip); }
.rw-auth-icon svg.ri { width: 17px; height: 17px; }
.rw-auth .rw-auth-icon { display: none; }   /* the illustration heads the sign-in pages */
.rw-auth-head h1 { margin: 0; font: 600 22px / 1.2 var(--font); letter-spacing: -0.035em; color: var(--n12); }
.rw-auth-head p { margin: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--n10); }
.rw-auth-head p a { font-weight: 500; }
.rw-reg-head { margin-bottom: 8px; }
.rw-field-wrap { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.rw-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font: 500 var(--t-sm) var(--font); color: var(--n12); }
.rw-label svg.ri { width: 14px; height: 14px; color: var(--n9); }
.rw-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rw-label-row label, .rw-field-wrap .rw-label-row { margin-bottom: 0; }
.rw-link-sm, html body .btn-link.rw-link-sm { display: inline-flex; align-items: center; gap: 5px; min-height: 0; padding: 0; border: 0; background: none; font: 500 var(--t-xs) var(--font); color: var(--n10) !important; text-decoration: none; box-shadow: none; }
.rw-link-sm:hover { color: var(--n12) !important; text-decoration: none; }
.rw-link-sm svg.ri { width: 13px; height: 13px; margin: 0; }
.rw-center { align-self: center; }
html body .rw-auth .form-control { height: 40px; min-height: 40px; }
.rw-pw { position: relative; display: flex; flex-wrap: nowrap; }
html body .rw-pw > .form-control { padding-right: 42px; border-radius: var(--r2) !important; }
.rw-reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 4; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r1); background: transparent; color: var(--n9); cursor: pointer; }
.rw-reveal:hover { color: var(--n12); background: var(--n4); }
.rw-reveal svg.ri { width: 16px; height: 16px; }
.rw-btn-lg, html body .btn.rw-btn-lg { height: 42px; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rw-auth-card-foot { margin: 4px 0 0; text-align: center; font-size: var(--t-sm); color: var(--n10); }
.rw-auth-card-foot a { color: var(--n12); font-weight: 500; }
.rw-auth-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--n9); }
.rw-auth-foot nav { display: flex; flex-wrap: wrap; gap: 12px; }
.rw-auth-foot a { color: var(--n10); text-decoration: none; }
.rw-auth-foot a:hover { color: var(--n12); }
.rw-auth-inner .card { background: var(--n2); }
.rw-auth-inner .mw-540 { max-width: none; }
.rw-auth-inner .h3, .rw-auth-inner h6.h3 { font-size: 22px; letter-spacing: -0.035em; }
.rw-auth-inner .social-signin-btns, .rw-auth-inner .providerPreLinking { margin-top: 4px; }
.rw-code-input { font-family: var(--mono); letter-spacing: 0.08em; }
.rw-2fa-challenge input.form-control { font-family: var(--mono); letter-spacing: 0.12em; }
.rw-invite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rw-submit-card .rw-card-body { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rw-submit-card .btn { min-width: 220px; }

/* sign-in illustration: one centred column with the rack above the card */
.rw-auth-art { display: flex; justify-content: center; margin: 0 0 4px; }
.rw-auth-art svg { display: block; width: 100%; max-width: 320px; height: auto; }
.rw-auth-main.is-wide .rw-auth-art svg { max-width: 260px; }
.rw-auth-art .rw-rack { fill: var(--n2); stroke: var(--n7); stroke-width: 1.2; }
.rw-auth-art .rw-rack-rail { stroke: var(--n5); stroke-width: 1; }
.rw-auth-art .rw-rack-foot { stroke: var(--n7); stroke-width: 2; stroke-linecap: round; }
.rw-auth-art .rw-ground { stroke: var(--n5); stroke-width: 1; stroke-linecap: round; }
.rw-auth-art .rw-u-body { fill: var(--n3); stroke: var(--n6); stroke-width: 1; }
.rw-auth-art .rw-u-bay { fill: var(--n2); stroke: var(--n6); stroke-width: 0.9; }
.rw-auth-art .rw-u-vent { stroke: var(--n6); stroke-width: 1; stroke-linecap: round; }
.rw-auth-art .rw-trace { stroke: var(--n6); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rw-auth-art .rw-trace-pulse { stroke: var(--n11); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16 260; stroke-dashoffset: 276; animation: rw-trace-in 2.8s linear infinite; }
.rw-auth-art .rw-trace-out { animation-name: rw-trace-out; animation-delay: 1.4s; }
.rw-auth-art .rw-trace-end { fill: var(--n1); stroke: var(--n7); stroke-width: 1.2; }
.rw-auth-art .rw-led-p { fill: var(--ok); }
.rw-auth-art .rw-led-a { fill: var(--ok); animation: rw-led-blink 1.9s steps(1, end) infinite; }
.rw-auth-art .rw-led-w { fill: var(--warn); animation: rw-led-slow 3.4s ease-in-out infinite; }
@keyframes rw-trace-in { from { stroke-dashoffset: 276; } to { stroke-dashoffset: 0; } }
@keyframes rw-trace-out { from { stroke-dashoffset: 276; } to { stroke-dashoffset: 0; } }
@keyframes rw-led-blink { 0% { opacity: 1; } 18% { opacity: 0.25; } 26% { opacity: 1; } 52% { opacity: 0.3; } 58% { opacity: 1; } 80% { opacity: 0.35; } 86% { opacity: 1; } }
@keyframes rw-led-slow { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ------------------------------------------------------------------ 6 components
   card (.card / .rw-card): head row (.rw-card-head: icon chip, title + one line, actions), body, foot (actions bar);
   .rw-body-title is the head row for cards whose title sits inside the body (Nexus markup). Rows (.rw-rows / .rw-row)
   list things inside a card; .rw-empty and .rw-msg are empty and state cards; .rw-facts / .rw-totals are label-value
   sets; .rw-tiles (and the dashboard's .rw-quick, the departments' .rw-dept-grid) are link tiles; .rw-split puts a
   side column (summary, payment) beside the main card; .rw-stack spaces stacked cards. */
.card, .panel, .tile { background-color: var(--n2); border: 1px solid var(--line); border-radius: var(--r3); color: var(--n12); box-shadow: var(--elev-1); }
.card { margin-bottom: 16px; }
.card-header, .card-footer, .panel-heading, .panel-footer { background: transparent; border-color: var(--line); color: var(--n12); }
.card-header { padding: 14px var(--pad); }
.card-body { padding: var(--pad); }
.card-title { color: var(--n12); font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
/* card titles Nexus puts inside bodies (pages and modules not rebuilt here): one size */
html body .primary-content .card h3.card-title, html body .primary-content .card .card-body > .card-title { font-size: 16px; letter-spacing: -0.02em; margin-bottom: 16px; }
html body .primary-content .card .card-header h3.card-title, html body .rw-up-form .card-title { margin-bottom: 0; font-size: 15px; }
.card-footer:empty { display: none; }
.extra-padding { padding: 24px !important; }
/* our modules' client areas (rwh, rwshield, rwhosted, rwonprem) use Bootstrap 3 panels, which Bootstrap 4 leaves
   unpadded: the same spacing as cards */
.panel { margin-bottom: 18px; overflow: hidden; }
.panel-heading { padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.panel-body { padding: var(--pad); }
.panel-body > :last-child { margin-bottom: 0; }
.panel-footer { padding: 12px var(--pad); border-top: 1px solid var(--line); }
.panel-body > .table { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); width: calc(100% + var(--pad) * 2); max-width: none; }
.panel-body > .table th:first-child, .panel-body > .table td:first-child { padding-left: var(--pad); }
.panel-body > .table th:last-child, .panel-body > .table td:last-child { padding-right: var(--pad); }
.table-condensed th, .table-condensed td { padding: 8px 10px; }

.rw-card { margin-bottom: 16px; }
.rw-card-head { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px var(--pad); border-bottom: 1px solid var(--line); }
.rw-card-head:last-child { border-bottom: 0; }
.rw-card-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rw-card-ttl h2, html body .primary-content .rw-card-ttl h2 { margin: 0; color: var(--n12); font: 600 15px / 1.3 var(--font); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rw-card-ttl h2 a { color: inherit; text-decoration: none; }
.rw-card-ttl h2 a:hover { text-decoration: underline; }
.rw-card-ttl p { margin: 2px 0 0; color: var(--n10); font-size: var(--t-sm); line-height: 1.45; }
.rw-card-ttl .label { margin-top: 4px; }
.rw-card-eyebrow { color: var(--n9); font-size: var(--t-xs); }
.rw-card-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.rw-card-body { padding: var(--pad); }
.rw-card-body > :last-child, .card-body > :last-child { margin-bottom: 0; }
/* a grid of form groups ends on their margin: the body's padding is the only space under the last row */
.rw-card-body > .row:last-child, .rw-card-body > form > .row:last-child { margin-bottom: -16px; }
.rw-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px var(--pad); border-top: 1px solid var(--line); background: rgb(0 0 0 / 0.18); border-radius: 0 0 var(--r3) var(--r3); }
.rw-card-foot.is-note { color: var(--n9); font-size: var(--t-xs); }
.rw-body-title { display: flex; align-items: center; gap: 12px; min-height: 60px; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) var(--pad) !important; padding: 12px var(--pad); border-bottom: 1px solid var(--line); color: var(--n12); font: 600 15px / 1.3 var(--font) !important; letter-spacing: -0.02em; }
.rw-subhead { margin: 0 0 10px; color: var(--n9); font: 500 var(--t-xs) var(--font); letter-spacing: 0.02em; text-transform: uppercase; }
* + .rw-subhead { margin-top: 18px; }
.rw-narrow { max-width: 640px; }
.rw-narrow-field { max-width: 360px; }
.rw-stack { display: flex; flex-direction: column; gap: 16px; }
.rw-stack > .card, .rw-stack > .rw-card, .rw-stack > form > .rw-card:last-child { margin-bottom: 0; }

/* icon chips: the one square that carries an icon, in heads, rows, tiles, lists, stats and state cards */
.rw-ic, .rw-svc-ic, .rw-quick-ic, .rw-dept-ic, .rw-svc-hero-ic, .rw-callout-ic, .rw-stat-ic, .rw-panel-ic {
    display: grid; place-items: center; width: 32px; height: 32px; flex: none;
    border-radius: var(--r2); border: 1px solid var(--n6); background: var(--n3); color: var(--n11); box-shadow: var(--chip);
}
.rw-ic svg.ri, .rw-svc-ic svg.ri, .rw-quick-ic svg.ri, .rw-dept-ic svg.ri, .rw-callout-ic svg.ri { width: 16px; height: 16px; }
.rw-ic i { font-size: 14px; }
.rw-ic.is-ok, .rw-callout-ic.is-ok { color: var(--ok); }
.rw-ic.is-warn, .rw-callout-ic { color: var(--warn); }
.rw-ic.is-bad, .rw-auth-icon.is-bad { color: var(--bad); }
.rw-inline-ic { display: inline-flex; vertical-align: -3px; color: var(--n9); }
.rw-inline-ic svg.ri { width: 14px; height: 14px; }
.rw-inline-ic.is-ok { color: var(--ok); }

/* rows: list items inside a card (users, payment methods, articles, accounts...) */
.rw-rows { display: flex; flex-direction: column; }
.rw-rows-box { border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); overflow: hidden; }
.rw-row { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad); border-top: 1px solid var(--line); color: var(--n11); text-decoration: none !important; }
.rw-rows > .rw-row:first-child, .rw-rows > .rw-empty:first-child { border-top: 0; }
.rw-row.is-link { transition: background var(--fast) var(--ease); }
.rw-row.is-link:hover { background: var(--n3); color: var(--n11); }
.rw-row.disabled { opacity: 0.5; pointer-events: none; }
.rw-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rw-row-main b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--n12); font-weight: 500; font-size: var(--t-sm); overflow-wrap: anywhere; }
.rw-row-main small { color: var(--n9); font-size: var(--t-xs); }
.rw-row-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
svg.rw-row-go { width: 14px; height: 14px; color: var(--n8); }
.rw-row.is-link:hover svg.rw-row-go { color: var(--n12); }
.rw-rows-label { padding: 10px var(--pad) 8px; border-top: 1px solid var(--line); background: rgb(0 0 0 / 0.18); color: var(--n9); font: 500 var(--t-xs) var(--font); letter-spacing: 0.02em; text-transform: uppercase; }
.rw-row-box { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--n1); text-align: left; }
/* the account chooser: Nexus lays .select-account out as a centred block list; the theme's rows instead */
html body .select-account.rw-rows { margin: 0; padding: 0; border-top: 0; }
html body .select-account a.rw-row { display: flex; margin: 0; padding: 12px var(--pad); border-bottom: 0; }
html body .select-account a.rw-row:hover { background: var(--n3); }

/* empty states (inside a card or a list), and the state card (404, done, denied...) */
.rw-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; }
.rw-empty .rw-ic { width: 36px; height: 36px; margin-bottom: 4px; border-radius: 10px; color: var(--n10); }
.rw-empty b { color: var(--n12); font-weight: 500; }
.rw-empty p { margin: 0; max-width: 52ch; color: var(--n10); font-size: var(--t-sm); }
.rw-empty-acts { margin-top: 8px; display: flex; gap: 8px; }
.rw-msg { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 560px; margin: 8px auto 16px; padding: 32px 28px; text-align: center; }
.rw-msg-lg { max-width: 640px; padding: 44px 32px; }
.rw-msg > .rw-ic { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 10px; }
.rw-msg > .rw-ic svg.ri { width: 18px; height: 18px; }
.rw-msg h2 { margin: 0; font: 600 20px / 1.3 var(--font); letter-spacing: -0.03em; }
.rw-msg p { margin: 0; max-width: 56ch; color: var(--n10); font-size: var(--t-sm); }
.rw-msg .rw-facts, .rw-msg .rw-row-box, .rw-msg .rw-checklist { width: 100%; margin: 6px 0; text-align: left; }
.rw-msg-code { color: var(--n12); font: 600 56px / 1 var(--mono); letter-spacing: -0.04em; }
.rw-msg-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rw-msg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--n9); font-size: var(--t-xs); }
.rw-msg-meta svg.ri { width: 13px; height: 13px; }
.rw-code { width: 100%; padding: 14px 16px; border: 1px dashed var(--n7); border-radius: var(--r2); background: var(--n1); color: var(--n12); font: 600 18px / 1.3 var(--mono); letter-spacing: 0.06em; text-align: center; overflow-wrap: anywhere; }

/* label / value sets */
.rw-facts { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r3); background: var(--line); box-shadow: var(--elev-1); }
.rw-facts > div { flex: 1 1 170px; padding: 14px 16px; background: var(--n2); }
.rw-facts dt { margin-bottom: 4px; color: var(--n9); font: 400 var(--t-xs) var(--font); }
.rw-facts dd { margin: 0; color: var(--n12); font-weight: 500; overflow-wrap: anywhere; }
.rw-facts .is-bad dd { color: var(--bad); }
.rw-facts-flush { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.rw-totals { margin: 0; padding: 10px var(--pad) 14px; border-top: 1px solid var(--line); }
.rw-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: var(--t-sm); }
.rw-totals dt { color: var(--n10); font-weight: 400; }
.rw-totals dd { margin: 0; color: var(--n12); }
.rw-totals .is-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.rw-totals .is-total dt { color: var(--n12); font-weight: 500; }
.rw-totals .is-total dd { font: 600 20px / 1.2 var(--font); letter-spacing: -0.03em; }

/* link tiles */
.rw-tiles, .rw-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rw-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.rw-tile, .rw-dept-card, .rw-quick-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px;
    border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); box-shadow: var(--elev-1);
    text-decoration: none !important;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.rw-quick-item { align-items: center; padding: 12px 14px; }
.rw-tile:hover, .rw-dept-card:hover, .rw-quick-item:hover { border-color: var(--n7); background: var(--n3); box-shadow: var(--elev-2); }
.rw-tile-txt, .rw-dept-txt, .rw-quick-item > span:last-child { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.rw-tile-txt b, .rw-dept-txt b, .rw-quick-item b { color: var(--n12); font-weight: 500; font-size: var(--t-sm); }
.rw-tile-txt small, .rw-dept-txt small, .rw-quick-item small { margin-top: 2px; color: var(--n9); font-size: var(--t-xs); line-height: 1.45; }
.rw-tile .badge { flex: none; }
svg.rw-dept-go { margin-top: 8px; width: 14px; height: 14px; color: var(--n8); }
.rw-dept-card:hover svg.rw-dept-go { color: var(--n12); }

/* stats (dashboard counts, affiliates) */
.rw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rw-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rw-stat { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'ic go' 'n n' 'l l'; align-items: center; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); color: var(--n12); box-shadow: var(--elev-1); text-decoration: none !important; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease); }
a.rw-stat:hover { border-color: var(--n7); background: var(--n3); color: var(--n12); box-shadow: var(--elev-2); }
.rw-stat-ic { grid-area: ic; width: 30px; height: 30px; margin-bottom: 10px; }
.rw-stat-ic svg.ri { width: 15px; height: 15px; }
svg.rw-stat-go { grid-area: go; align-self: start; width: 14px; height: 14px; color: var(--n8); }
.rw-stat:hover svg.rw-stat-go { color: var(--n12); }
.rw-stat-n { grid-area: n; color: var(--n12); font: 600 28px / 1.1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rw-stat-l { grid-area: l; color: var(--n10); font-size: var(--t-sm); }
.rw-stat.is-warn .rw-stat-ic { color: var(--warn); }

/* callouts (needs attention, banners, network status) */
.rw-callout { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); box-shadow: var(--elev-1); }
.rw-callout-txt { flex: 1 1 260px; display: flex; flex-direction: column; min-width: 0; font-size: var(--t-sm); }
.rw-callout-txt b { color: var(--n12); font-weight: 500; }
.rw-callout-txt span { color: var(--n10); }
.rw-callout-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* side column layouts (mass pay, invoice payment, upgrade summary) */
.rw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 16px; align-items: start; }
.rw-split > .rw-card, .rw-split-side .rw-card { margin-bottom: 0; }
@media (min-width: 992px) { .rw-split-side { position: sticky; top: 76px; } }

/* intros, chips, check lists, toolbars, search bars */
.rw-section-intro { margin: 8px 0 14px; }
.rw-section-intro h2 { margin: 0 0 4px; font-size: 16px; }
.rw-section-intro p { margin: 0; color: var(--n10); font-size: var(--t-sm); }
.rw-chips, .rw-attach { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-chips { margin-bottom: 16px; }
.rw-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--n6); border-radius: 999px; background: var(--n3); color: var(--n11); font-size: var(--t-xs); text-decoration: none !important; }
a.rw-chip:hover { border-color: var(--n7); color: var(--n12); }
.rw-chip svg.ri { width: 13px; height: 13px; }
.rw-chip.is-off { opacity: 0.6; }
.rw-chips .badge { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--n6); border-radius: 999px; background: var(--n3); color: var(--n11); font: 500 var(--t-xs) var(--font); }
.rw-chips .badge.badge-success { background: var(--n12); border-color: var(--n12); color: var(--n1); }
.rw-checklist { margin: 0; padding: 0; list-style: none; }
.rw-checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: var(--n11); }
.rw-checklist li svg.ri { margin-top: 3px; width: 14px; height: 14px; color: var(--ok); }
.rw-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rw-searchbar { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 6px 6px 38px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); box-shadow: var(--elev-1); }
.rw-searchbar > svg.ri { position: absolute; left: 14px; color: var(--n9); }
html body .rw-searchbar .form-control { flex: 1; height: 36px; min-height: 36px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: var(--t-md); }
.rw-searchbar .btn { min-height: 36px; }
.rw-attach-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; color: var(--n10); font-size: var(--t-xs); }
.rw-attach-label svg.ri { width: 13px; height: 13px; }
.rw-prose { color: var(--n11); line-height: 1.65; }
.rw-prose h1, .rw-prose h2, .rw-prose h3, .rw-prose h4 { margin: 1.2em 0 0.5em; font-size: 16px; }
.rw-prose img { max-width: 100%; height: auto; border-radius: var(--r2); }
.rw-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--r2); background: var(--hi); }
.rw-secure { display: inline-flex; align-items: center; gap: 6px; color: var(--n9); font-size: var(--t-xs); }
.rw-secure svg.ri { width: 13px; height: 13px; }
/* the contact picker bar (contacts pages) */
.rw-picker-in { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad); }
.rw-picker-label { margin: 0; white-space: nowrap; }
.rw-picker select { flex: 1; max-width: 440px; }
/* the sent-email popup window */
body.rw-popup { padding: 16px; }
.rw-popup .rw-card { margin: 0; }
.rw-popup .rw-attach { padding: 10px var(--pad) 0; }
.rw-mail-frame iframe { display: block; border: 1px solid var(--line); border-radius: var(--r2); background: var(--hi); }

/* ------------------------------------------------------------------ 7 buttons
   Light buttons (primary, success, checkout, order now, warning, the sidebar's Order) stay light with dark text in
   every state; the rest stay dark with light text; danger is tinted red. Bootstrap 4 and Nexus paint :focus / :active
   / .active / open dropdowns in other colours with !important, so every state is set here with !important too. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--r1);
    font: 500 var(--t-sm) / 1 var(--font);
    letter-spacing: -0.005em;
    box-shadow: none;
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn-block { display: flex; width: 100%; }
.btn-sm, .btn-group-sm > .btn { min-height: 28px; padding: 0 8px; font-size: var(--t-xs); }
.btn-xs { min-height: 24px; padding: 0 8px; font-size: var(--t-xs); }
.btn-lg, .btn-group-lg > .btn { min-height: 38px; padding: 0 16px; font-size: var(--t-md); }
.btn i.fas, .btn i.far, .btn i.fad, .btn i.fal { font-size: 0.9em; }
.btn.disabled, .btn:disabled { opacity: 0.45; }
.btn-group > .btn { border-radius: var(--r1); }
html body .btn:focus, html body .btn.focus, html body .btn:not(:disabled):not(.disabled):active:focus, html body .btn:not(:disabled):not(.disabled).active:focus { box-shadow: none !important; }

html body .btn-primary, html body .btn-success, html body .btn-checkout, html body .btn-order-now, html body .btn-warning, .rw-order-btn {
    background: var(--n12);
    border: 1px solid var(--n12);
    color: var(--n1) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 1px 2px rgb(0 0 0 / 0.45);
}
html body .btn-primary:hover, html body .btn-primary:focus, html body .btn-primary.focus, html body .btn-primary:focus-visible,
html body .btn-success:hover, html body .btn-success:focus, html body .btn-success.focus, html body .btn-success:focus-visible,
html body .btn-checkout:hover, html body .btn-checkout:focus, html body .btn-checkout.focus, html body .btn-checkout:focus-visible,
html body .btn-order-now:hover, html body .btn-order-now:focus, html body .btn-order-now.focus, html body .btn-order-now:focus-visible,
html body .btn-warning:hover, html body .btn-warning:focus, html body .btn-warning.focus, html body .btn-warning:focus-visible,
html body .rw-order-btn:hover, html body .rw-order-btn:focus, html body .rw-order-btn:focus-visible {
    background: var(--hi) !important;
    border-color: var(--hi) !important;
    color: var(--n1) !important;
}
html body .btn-primary:hover, html body .btn-success:hover, html body .btn-checkout:hover, html body .btn-order-now:hover, .rw-order-btn:hover {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 1px 2px rgb(0 0 0 / 0.45), 0 6px 16px -8px rgb(0 0 0 / 0.8);
}
html body .btn-primary:active, html body .btn-primary.active, html body .btn-primary:not(:disabled):not(.disabled):active, html body .btn-primary:not(:disabled):not(.disabled).active, html body .show > .btn-primary.dropdown-toggle,
html body .btn-success:active, html body .btn-success.active, html body .btn-success:not(:disabled):not(.disabled):active, html body .btn-success:not(:disabled):not(.disabled).active, html body .show > .btn-success.dropdown-toggle,
html body .btn-checkout:active, html body .btn-checkout.active, html body .btn-order-now:active, html body .btn-order-now.active,
html body .btn-warning:active, html body .btn-warning.active, html body .btn-warning:not(:disabled):not(.disabled):active, html body .btn-warning:not(:disabled):not(.disabled).active, html body .show > .btn-warning.dropdown-toggle,
html body .rw-order-btn:active {
    background: var(--grayscale-accented) !important;
    border-color: var(--grayscale-accented) !important;
    color: var(--n1) !important;
}
html body .btn-primary.disabled, html body .btn-primary:disabled, html body .btn-success.disabled, html body .btn-success:disabled,
html body .btn-checkout.disabled, html body .btn-checkout:disabled, html body .btn-order-now.disabled, html body .btn-order-now:disabled,
html body .btn-warning.disabled, html body .btn-warning:disabled,
html body .btn-primary.disabled:hover, html body .btn-primary:disabled:hover, html body .btn-success.disabled:hover, html body .btn-success:disabled:hover,
html body .btn-checkout.disabled:hover, html body .btn-checkout:disabled:hover, html body .btn-order-now.disabled:hover, html body .btn-order-now:disabled:hover,
html body .btn-warning.disabled:hover, html body .btn-warning:disabled:hover {
    background: var(--n12) !important;
    border-color: var(--n12) !important;
    color: var(--n1) !important;
}

html body .btn-default, html body .btn-secondary, html body .btn-light, html body .btn-outline-primary, html body .btn-outline-secondary,
html body .btn-outline-light, html body .btn-outline-dark, html body .btn-outline-info, html body .btn-dark, html body .btn-info, html body #main-body .btn-outline-primary {
    background: var(--n3);
    border: 1px solid var(--n6);
    color: var(--n12) !important;
    box-shadow: var(--hl), 0 1px 1px rgb(0 0 0 / 0.3);
}
html body .btn-default:hover, html body .btn-default:focus, html body .btn-default.focus, html body .btn-default:focus-visible,
html body .btn-secondary:hover, html body .btn-secondary:focus, html body .btn-secondary.focus, html body .btn-secondary:focus-visible,
html body .btn-light:hover, html body .btn-light:focus, html body .btn-light.focus, html body .btn-light:focus-visible,
html body .btn-dark:hover, html body .btn-dark:focus, html body .btn-dark.focus, html body .btn-dark:focus-visible,
html body .btn-info:hover, html body .btn-info:focus, html body .btn-info.focus, html body .btn-info:focus-visible,
html body .btn-outline-primary:hover, html body .btn-outline-primary:focus, html body .btn-outline-primary.focus, html body .btn-outline-primary:focus-visible,
html body .btn-outline-secondary:hover, html body .btn-outline-secondary:focus, html body .btn-outline-secondary.focus, html body .btn-outline-secondary:focus-visible,
html body .btn-outline-light:hover, html body .btn-outline-light:focus, html body .btn-outline-light.focus, html body .btn-outline-light:focus-visible,
html body .btn-outline-dark:hover, html body .btn-outline-dark:focus, html body .btn-outline-dark.focus, html body .btn-outline-dark:focus-visible,
html body .btn-outline-info:hover, html body .btn-outline-info:focus, html body .btn-outline-info.focus, html body .btn-outline-info:focus-visible,
html body .open > .dropdown-toggle.btn-default {
    background: var(--n4) !important;
    border-color: var(--n7) !important;
    color: var(--n12) !important;
}
html body .btn-default:active, html body .btn-default.active, html body .show > .btn-default.dropdown-toggle,
html body .btn-secondary:active, html body .btn-secondary.active, html body .btn-secondary:not(:disabled):not(.disabled):active, html body .btn-secondary:not(:disabled):not(.disabled).active, html body .show > .btn-secondary.dropdown-toggle,
html body .btn-light:active, html body .btn-light.active, html body .btn-light:not(:disabled):not(.disabled):active, html body .btn-light:not(:disabled):not(.disabled).active, html body .show > .btn-light.dropdown-toggle,
html body .btn-dark:active, html body .btn-dark.active, html body .btn-dark:not(:disabled):not(.disabled):active, html body .btn-dark:not(:disabled):not(.disabled).active, html body .show > .btn-dark.dropdown-toggle,
html body .btn-info:active, html body .btn-info.active, html body .btn-info:not(:disabled):not(.disabled):active, html body .btn-info:not(:disabled):not(.disabled).active, html body .show > .btn-info.dropdown-toggle,
html body .btn-outline-primary:active, html body .btn-outline-primary.active, html body .btn-outline-primary:not(:disabled):not(.disabled):active, html body .btn-outline-primary:not(:disabled):not(.disabled).active, html body .show > .btn-outline-primary.dropdown-toggle,
html body .btn-outline-secondary:active, html body .btn-outline-secondary.active, html body .btn-outline-secondary:not(:disabled):not(.disabled):active, html body .btn-outline-secondary:not(:disabled):not(.disabled).active, html body .show > .btn-outline-secondary.dropdown-toggle,
html body .btn-outline-light:active, html body .btn-outline-light.active, html body .btn-outline-light:not(:disabled):not(.disabled):active, html body .btn-outline-light:not(:disabled):not(.disabled).active, html body .show > .btn-outline-light.dropdown-toggle,
html body .btn-outline-dark:active, html body .btn-outline-dark.active, html body .btn-outline-dark:not(:disabled):not(.disabled):active, html body .btn-outline-dark:not(:disabled):not(.disabled).active, html body .show > .btn-outline-dark.dropdown-toggle,
html body .btn-outline-info:active, html body .btn-outline-info.active, html body .btn-outline-info:not(:disabled):not(.disabled):active, html body .btn-outline-info:not(:disabled):not(.disabled).active, html body .show > .btn-outline-info.dropdown-toggle,
html body .open > .dropdown-toggle.btn-default:hover, html body .open > .dropdown-toggle.btn-default:focus {
    background: var(--n5) !important;
    border-color: var(--n8) !important;
    color: var(--n12) !important;
}
html body .btn-default.disabled, html body .btn-default:disabled, html body .btn-default[disabled], html body fieldset[disabled] .btn-default,
html body .btn-default.disabled:hover, html body .btn-default.disabled:focus, html body .btn-default:disabled:hover, html body .btn-default[disabled]:hover, html body .btn-default[disabled]:focus,
html body fieldset[disabled] .btn-default:hover, html body fieldset[disabled] .btn-default:focus,
html body .btn-secondary.disabled, html body .btn-secondary:disabled, html body .btn-light.disabled, html body .btn-light:disabled,
html body .btn-dark.disabled, html body .btn-dark:disabled, html body .btn-info.disabled, html body .btn-info:disabled,
html body .btn-outline-primary.disabled, html body .btn-outline-primary:disabled, html body .btn-outline-secondary.disabled, html body .btn-outline-secondary:disabled,
html body .btn-outline-light.disabled, html body .btn-outline-light:disabled, html body .btn-outline-dark.disabled, html body .btn-outline-dark:disabled,
html body .btn-outline-info.disabled, html body .btn-outline-info:disabled {
    background: var(--n3) !important;
    border-color: var(--n6) !important;
    color: var(--n12) !important;
}

html body .btn-danger, html body .btn-outline-danger { background: var(--bad-subtle); border: 1px solid var(--bad-line); color: var(--bad) !important; }
html body .btn-danger:hover, html body .btn-danger:focus, html body .btn-danger.focus, html body .btn-danger:focus-visible,
html body .btn-outline-danger:hover, html body .btn-outline-danger:focus, html body .btn-outline-danger.focus, html body .btn-outline-danger:focus-visible {
    background: rgb(255 92 92 / 0.18) !important;
    border-color: var(--bad) !important;
    color: var(--bad) !important;
}
html body .btn-danger:active, html body .btn-danger.active, html body .btn-danger:not(:disabled):not(.disabled):active, html body .btn-danger:not(:disabled):not(.disabled).active, html body .show > .btn-danger.dropdown-toggle,
html body .btn-outline-danger:active, html body .btn-outline-danger.active, html body .btn-outline-danger:not(:disabled):not(.disabled):active, html body .btn-outline-danger:not(:disabled):not(.disabled).active, html body .show > .btn-outline-danger.dropdown-toggle {
    background: rgb(255 92 92 / 0.26) !important;
    border-color: var(--bad) !important;
    color: var(--bad) !important;
}
html body .btn-danger.disabled, html body .btn-danger:disabled, html body .btn-outline-danger.disabled, html body .btn-outline-danger:disabled {
    background: var(--bad-subtle) !important;
    border-color: var(--bad-line) !important;
    color: var(--bad) !important;
}
/* semantic outlines: tinted like .btn-danger, readable in every state */
html body .btn-outline-success { background: var(--ok-subtle); border: 1px solid var(--ok-line); color: var(--ok) !important; }
html body .btn-outline-warning { background: var(--warn-subtle); border: 1px solid var(--warn-line); color: var(--warn) !important; }
html body .btn-outline-success:hover, html body .btn-outline-success:focus, html body .btn-outline-success:focus-visible, html body .btn-outline-success:active, html body .btn-outline-success.active,
html body .btn-outline-success:not(:disabled):not(.disabled):active, html body .btn-outline-success:not(:disabled):not(.disabled).active, html body .show > .btn-outline-success.dropdown-toggle {
    background: rgb(69 212 131 / 0.18) !important; border-color: var(--ok) !important; color: var(--ok) !important;
}
html body .btn-outline-warning:hover, html body .btn-outline-warning:focus, html body .btn-outline-warning:focus-visible, html body .btn-outline-warning:active, html body .btn-outline-warning.active,
html body .btn-outline-warning:not(:disabled):not(.disabled):active, html body .btn-outline-warning:not(:disabled):not(.disabled).active, html body .show > .btn-outline-warning.dropdown-toggle {
    background: rgb(245 165 36 / 0.18) !important; border-color: var(--warn) !important; color: var(--warn) !important;
}
html body .btn-link { color: var(--n11); background: transparent; border-color: transparent; }
html body .btn-link:hover, html body .btn-link:focus, html body .btn-link.focus, html body .btn-link:focus-visible, html body .btn-link:active, html body .btn-link.active {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--n12) !important;
}

/* form actions: one row, right-aligned (.is-split: spread), above a line when .rw-form-sep */
.rw-form-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.rw-card-foot.rw-form-actions { margin: 0; }
.rw-form-actions.is-split { justify-content: space-between; }
.rw-form-sep { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.rw-form-bar { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); box-shadow: var(--elev-1); }
@media (min-width: 992px) { .rw-form-bar { position: sticky; bottom: 12px; z-index: 5; } }

/* ------------------------------------------------------------------ 8 forms */
.form-control, .custom-select, select.form-control {
    min-height: 36px;
    background-color: var(--n1);
    border: 1px solid var(--n6);
    border-radius: var(--r2);
    color: var(--n12);
    font-size: var(--t-sm);
    box-shadow: var(--well);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea.form-control { min-height: 110px; line-height: 1.55; }
.form-control::placeholder { color: var(--n9); opacity: 1; }
.form-control:hover, .custom-select:hover { border-color: var(--n7); }
.form-control:focus, .custom-select:focus, html body .form-control:focus { background-color: var(--n1); border-color: var(--n9); color: var(--n12); box-shadow: var(--well), 0 0 0 3px var(--fill); outline: none; }
.form-control:disabled, .form-control[readonly], .form-control.disabled { background-color: var(--n3); color: var(--n10); }
select.form-control, .custom-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
}
select.form-control[multiple], select.form-control[size] { background-image: none; padding-right: 12px; }
select option { background: var(--n2); color: var(--n12); }
label, .form-control-label, .control-label, .col-form-label { color: var(--n12); font-size: var(--t-sm); font-weight: 500; margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.form-text, .help-block, .field-help-text { color: var(--n9); font-size: var(--t-xs); }
.input-group-text { background: var(--n3); border: 1px solid var(--n6); color: var(--n10); }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-append .btn { min-height: 36px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--n12); }
.custom-control-label::before { background-color: var(--n1); border-color: var(--n7); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--n12); border-color: var(--n12); }
.is-invalid, .form-control.is-invalid, .has-error .form-control { border-color: var(--bad) !important; }
.invalid-feedback, .has-error .help-block, .field-error-msg { color: var(--bad); font-size: var(--t-xs); }
.progress { height: 4px; background: var(--n5); border-radius: 2px; overflow: hidden; }
.progress-bar { background: var(--n12); }
.progress-bar.bg-success, .progress-bar-success { background: var(--ok); }
.progress-bar.bg-danger, .progress-bar-danger { background: var(--bad); }
.progress-bar.bg-warning, .progress-bar-warning { background: var(--warn); }
.password-strength-meter { margin-top: 8px; }
.password-strength-meter p { margin: 6px 0 0; text-align: left !important; }
html body .bootstrap-switch { flex: none; background: var(--n3); border: 1px solid var(--n6); border-radius: var(--r1); }
html body .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
html body .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary { background: var(--n12); color: var(--n1); }
html body .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default,
html body .bootstrap-switch .bootstrap-switch-label { background: var(--n3); color: var(--n10); }

/* checkboxes and radios: the theme's own box (iCheck's and Bootstrap's custom controls keep theirs) */
input[type='checkbox'].form-check-input, .controls input[type='checkbox'], .rw-check input[type='checkbox'], #registration input[type='checkbox'],
.card input[type='checkbox']:not(.custom-control-input):not([data-toggle]):not(.toggle-switch-success) {
    -webkit-appearance: none;
    appearance: none;
    position: static;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid var(--n7);
    border-radius: 4px;
    background: var(--n1);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.4);
    vertical-align: -3px;
    cursor: pointer;
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
input[type='checkbox'].form-check-input:checked, .controls input[type='checkbox']:checked, .rw-check input[type='checkbox']:checked, #registration input[type='checkbox']:checked,
.card input[type='checkbox']:not(.custom-control-input):not([data-toggle]):not(.toggle-switch-success):checked {
    border-color: var(--n12);
    background: var(--n12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
input[type='radio'].form-check-input, .rw-radio input[type='radio'], .rw-scale-pt input[type='radio'] {
    -webkit-appearance: none;
    appearance: none;
    position: static;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid var(--n7);
    border-radius: 50%;
    background: var(--n1);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.4);
    cursor: pointer;
}
input[type='radio'].form-check-input:checked, .rw-radio input[type='radio']:checked, .rw-scale-pt input[type='radio']:checked { border: 5px solid var(--n12); background: var(--n1); }
input[type='checkbox']:focus-visible, input[type='radio']:focus-visible { outline: 2px solid var(--n12); outline-offset: 2px; }
.rw-check, .rw-radio { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: var(--t-sm); font-weight: 400; color: var(--n11); cursor: pointer; }
.rw-check input, .rw-radio input { width: 16px; height: 16px; margin: 0; }
.rw-radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.controls.form-check, .rw-checks { padding-left: 0; }
.controls.form-check label, .rw-checks label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 0; color: var(--n11); font-weight: 400; cursor: pointer; }
.controls.form-check br { display: none; }
.rw-perms { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.rw-perm { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--n1); font-weight: 400; cursor: pointer; }
.rw-perm:first-child { border-top: 0; }
.rw-perm:hover { background: var(--n3); }
.rw-perm input { margin-top: 2px !important; }
.rw-perm > span { display: flex; flex-direction: column; gap: 2px; }
.rw-perm b { color: var(--n12); font-weight: 500; }
.rw-perm small { color: var(--n9); font-size: var(--t-xs); }
#invitePermissions { margin-bottom: 16px; }
/* selectable rows and chips (billing contacts, payment type, validation method) */
.rw-choices { display: flex; flex-direction: column; gap: 8px; }
.rw-choice, .rw-chip-choice { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--n6); border-radius: var(--r2); background: var(--n1); font-weight: 400; cursor: pointer; transition: border-color var(--fast) var(--ease); }
.rw-chip-choice { display: inline-flex; align-items: center; margin: 0 8px 8px 0; padding: 9px 12px; color: var(--n12); }
.rw-choice:hover, .rw-chip-choice:hover { border-color: var(--n7); }
.rw-choice:has(input:checked), .rw-chip-choice:has(input:checked), .rw-chip-choice:has(.checked) { border-color: var(--n12); }
.rw-choice-txt { display: flex; flex-direction: column; min-width: 0; }
.rw-choice-txt strong { color: var(--n12); font-weight: 500; }
.rw-choice-txt small { color: var(--n9); font-size: var(--t-xs); }
/* a rating scale (ticket feedback) */
.rw-scale { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.rw-scale-end { color: var(--n9); font-size: var(--t-xs); }
.rw-scale-pt { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 6px 4px; min-width: 30px; border: 1px solid var(--n6); border-radius: var(--r1); background: var(--n1); color: var(--n10); font: 500 var(--t-xs) var(--mono); cursor: pointer; }
.rw-scale-pt:has(input:checked) { border-color: var(--n12); color: var(--n12); }
/* a setting row: text on the left, a switch on the right */
.rw-set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rw-set-txt { display: flex; flex-direction: column; gap: 2px; margin: 0; color: var(--n11); font-size: var(--t-sm); }
.rw-set-txt b { color: var(--n12); font-weight: 500; }
.rw-set-txt small { color: var(--n9); font-size: var(--t-xs); }
/* Nexus's horizontal label / field forms (payment method, SSL), aligned on one column */
.rw-hform .form-group.row { align-items: flex-start; margin-bottom: 14px; }
.rw-hform .form-group.row > label, .rw-hform .form-group.row > .control-label { padding-top: 8px; text-align: left !important; color: var(--n10); font-weight: 400; }
.rw-hform .form-check-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; }
.rw-hform .paymethod-info { color: var(--n11); }
.rw-hform .three-column-grid, .rw-hform .two-column-grid { gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--n1); }
.rw-hform .input-inline { display: inline-block; }
.rw-pm-form .fieldgroup-remoteinput iframe { border: 1px solid var(--line); border-radius: var(--r2); }

/* file inputs (ticket attachments) */
html body .custom-file { height: 36px; }
html body .custom-file-input { height: 36px; cursor: pointer; }
html body .custom-file-label { height: 36px; padding: 0 12px; line-height: 34px; border: 1px solid var(--n6); border-radius: var(--r2); background: var(--n1); color: var(--n10); font-size: var(--t-sm); box-shadow: var(--well); }
html body .custom-file-label::after { height: 34px; padding: 0 12px; line-height: 34px; border-left: 1px solid var(--n6); border-radius: 0 var(--r2) var(--r2) 0; background: var(--n3); color: var(--n12); font-weight: 500; }
html body .custom-file-input:focus ~ .custom-file-label { border-color: var(--n9); box-shadow: 0 0 0 3px var(--fill); }
html body .attachment-group .input-group-append .btn { min-height: 36px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
html body .attachment-group .custom-file:not(:last-child) .custom-file-label { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html body .attachment-group .custom-file:not(:last-child) .custom-file-label::after { border-radius: 0; }

/* markdown editor (tickets, replies): toolbar, writing area, status bar, preview, full screen */
html body .md-editor { overflow: hidden; border: 1px solid var(--n6) !important; border-radius: var(--r2); background: var(--n1); box-shadow: var(--well); }
html body .md-editor.active { border-color: var(--n9) !important; box-shadow: 0 0 0 3px var(--fill); }
html body .md-editor > .md-header, html body .md-editor > .btn-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 6px 8px; background: var(--n2) !important; border-bottom: 1px solid var(--line); }
html body .md-editor .md-header .btn-group { margin: 0; gap: 2px; }
html body .md-editor .md-header .btn, html body .md-editor .md-header .btn-primary { min-height: 28px; height: 28px; min-width: 28px; padding: 0 8px; border: 1px solid transparent !important; border-radius: var(--r1) !important; background: transparent !important; color: var(--n10) !important; box-shadow: none !important; font-size: var(--t-xs); }
html body .md-editor .md-header .btn:hover { background: var(--n4) !important; color: var(--n12) !important; }
html body .md-editor .md-header .btn.active, html body .md-editor .md-header .btn-primary.active { background: var(--n5) !important; border-color: var(--n7) !important; color: var(--n12) !important; }
html body .md-editor .md-header .btn span { font-size: 12px; }
html body .md-editor .md-controls { margin-left: auto; float: none; }
html body .md-editor .md-controls .md-control { color: var(--n9); padding: 4px 6px; }
html body .md-editor .md-controls .md-control:hover { color: var(--n12); }
html body .md-editor > textarea.md-input, html body .md-editor > textarea.markdown-editor { margin: 0; padding: 12px 14px; border: 0 !important; border-radius: 0 !important; background: var(--n1) !important; color: var(--n12); box-shadow: none !important; font-size: var(--t-sm); line-height: 1.6; }
html body .md-editor > .md-preview { padding: 12px 14px; background: var(--n1) !important; color: var(--n12); border: 0; }
html body .md-editor .md-footer, html body .md-editor .markdown-editor-status { margin: 0; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--n2) !important; color: var(--n9); font: 500 11px var(--mono); text-align: right; }
html body .md-editor .md-footer .markdown-editor-status { padding: 0; border: 0; }
html body .md-editor .markdown-save { color: var(--n10); }
html body .md-editor.md-fullscreen-mode { background: var(--n1) !important; border: 0 !important; }
html body .md-editor.md-fullscreen-mode .md-input, html body .md-editor.md-fullscreen-mode .md-preview { background: var(--n1) !important; color: var(--n12) !important; }
html body .md-fullscreen-controls a { color: var(--n10); }
html body .md-fullscreen-controls a:hover { color: var(--n12); }
html body .md-preview table, html body .markdown-content table { background-color: var(--n2); }
html body .md-preview table > thead > tr > th, html body .markdown-content table > thead > tr > th { background-color: var(--n4); }
html body .md-preview blockquote, html body .markdown-content blockquote { border-left-color: var(--n7); }

/* range sliders (ion.rangeSlider "modern" skin, loaded after this sheet: html body wins) */
html body .irs { height: 58px; font-family: var(--font); }
html body .irs-with-grid { height: 76px; }
html body .irs-line { top: 28px; height: 4px; border: 0; border-radius: 2px; background: var(--n5); box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.5); overflow: visible; }
html body .irs-line-left, html body .irs-line-mid, html body .irs-line-right { height: 4px; background: none; }
html body .irs-bar { top: 28px; height: 4px; border-radius: 2px; background: var(--n12); }
html body .irs-bar-edge { top: 28px; height: 4px; width: 8px; border-radius: 2px 0 0 2px; background: var(--n12); }
html body .irs-shadow { display: none; }
html body .irs-slider { top: 21px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--n7); background: var(--n12); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 1px 3px rgb(0 0 0 / 0.6); cursor: grab; transition: box-shadow var(--fast) var(--ease); }
html body .irs-slider.state_hover, html body .irs-slider:hover { background: var(--hi); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 1px 3px rgb(0 0 0 / 0.6), 0 0 0 4px var(--fill); }
html body .irs-min, html body .irs-max { top: 0; padding: 1px 6px; border-radius: 5px; background: transparent; color: var(--n9); font: 500 11px/16px var(--mono); }
html body .irs-from, html body .irs-to, html body .irs-single { top: -2px; padding: 1px 7px; border: 1px solid var(--n6); border-radius: 6px; background: var(--n3); color: var(--n12); font: 600 11px/16px var(--mono); box-shadow: var(--chip); }
html body .irs-from::after, html body .irs-to::after, html body .irs-single::after { bottom: -6px; border-top-color: var(--n6); }
html body .irs-grid { height: 30px; bottom: 0; }
html body .irs-grid-pol { top: 0; width: 1px; height: 6px; background: var(--n6); }
html body .irs-grid-pol.small { height: 3px; background: var(--n5); }
html body .irs-grid-text { bottom: 2px; color: var(--n9); font: 500 10.5px var(--mono); }

/* ------------------------------------------------------------------ 9 tables, lists, status */
.table { color: var(--n12); margin-bottom: 0; }
.table th, .table td { border-color: var(--line); vertical-align: middle; }
.table thead th { border-bottom: 1px solid var(--line) !important; color: var(--n9); font: 500 var(--t-xs) var(--font); background: transparent; }
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table-hover tbody tr:hover { background: var(--n3); color: var(--n12); }
.table-bordered, .table-bordered th, .table-bordered td { border-color: var(--line); }
/* plain tables inside cards (line items, ledgers, metrics, network status) */
.rw-lines { width: 100%; }
.rw-lines th, .rw-lines td { padding: 10px var(--pad); }
.rw-lines thead th { height: 40px; padding-top: 0; padding-bottom: 0; border-top: 0; }
.rw-lines td { border-top: 1px solid var(--line); color: var(--n11); font-size: var(--t-sm); }
.rw-lines .rw-amt { text-align: right; white-space: nowrap; }
.rw-lines td.rw-amt { color: var(--n12); }
.rw-lines-group td { background: rgb(0 0 0 / 0.18); color: var(--n12); }
.rw-lines-group svg.ri { width: 14px; height: 14px; margin-right: 6px; color: var(--n9); }
.rw-lines-group b { font-weight: 500; }

/* DataTables lists (services, invoices, tickets, quotes, emails, domains, notes): one 16px grid from search to pager */
.rw-table-card, .table-container { position: relative; background: var(--n2); border: 1px solid var(--line); border-radius: var(--r3); overflow-x: auto; box-shadow: var(--elev-1); }
html body .dataTables_wrapper { display: flex; flex-wrap: wrap; align-items: center; padding: 0; }
html body .dataTables_wrapper > .listtable { flex: 1 1 100%; min-width: 0; }
html body .dataTables_wrapper .listtable { display: flex; flex-wrap: wrap; align-items: center; }
html body .dataTables_wrapper .dataTables_filter { order: 0; float: none; flex: 1 1 260px; margin: 0; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
html body .dataTables_wrapper .dataTables_filter label { display: block; margin: 0; width: 100%; }
html body .dataTables_wrapper .dataTables_filter::after { left: 28px; top: 50%; color: var(--n9); transform: translateY(-50%); font-size: 12px; }
html body .dataTables_wrapper .dataTables_filter label .form-control { width: min(320px, 100%) !important; height: 32px; min-height: 32px; margin: 0 !important; padding: 0 10px 0 32px !important; background: var(--n1) !important; border-radius: var(--r1); font-size: var(--t-sm); }
html body .dataTables_wrapper .dataTables_info { order: 1; flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--n9); font-size: var(--t-xs); }
html body .dataTables_wrapper .listtable > table, html body .dataTables_wrapper table.table-list { order: 2; flex: 1 1 100%; width: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0; }
html body .dataTables_wrapper table.table-list thead th, html body table.table-list thead th {
    height: 40px; padding: 0 16px; background: var(--n2) !important; color: var(--n9); border-radius: 0 !important; border-bottom: 1px solid var(--line) !important; text-align: left !important; white-space: nowrap; font: 500 var(--t-xs) var(--font); vertical-align: middle;
}
html body .dataTables_wrapper table.table-list thead th.sorting, html body .dataTables_wrapper table.table-list thead th.sorting_asc,
html body .dataTables_wrapper table.table-list thead th.sorting_desc { padding-right: 30px; }
html body .dataTables_wrapper table.table-list thead th.sorting_asc, html body .dataTables_wrapper table.table-list thead th.sorting_desc { color: var(--n12); }
html body table.dataTable thead > tr > th.sorting::before, html body table.dataTable thead > tr > th.sorting::after,
html body table.dataTable thead > tr > th.sorting_asc::before, html body table.dataTable thead > tr > th.sorting_asc::after,
html body table.dataTable thead > tr > th.sorting_desc::before, html body table.dataTable thead > tr > th.sorting_desc::after {
    right: 14px; font-size: 7px; line-height: 7px; color: var(--n10); opacity: 0.35;
}
html body table.dataTable thead > tr > th.sorting::before, html body table.dataTable thead > tr > th.sorting_asc::before, html body table.dataTable thead > tr > th.sorting_desc::before { bottom: calc(50% + 1px); }
html body table.dataTable thead > tr > th.sorting::after, html body table.dataTable thead > tr > th.sorting_asc::after, html body table.dataTable thead > tr > th.sorting_desc::after { top: calc(50% + 1px); }
html body table.dataTable thead > tr > th.sorting_asc::before, html body table.dataTable thead > tr > th.sorting_desc::after { opacity: 1; color: var(--n12); }
html body .dataTables_wrapper table.table-list td { height: 52px; padding: 8px 16px; text-align: left !important; vertical-align: middle; border-top: 1px solid var(--line); border-radius: 0 !important; background: transparent; }
html body .dataTables_wrapper table.table-list tbody tr:first-child td { border-top: 0; }
html body table.table-list td.text-center, html body table.table-list th.text-center { text-align: left !important; }
html body table.table-list tbody tr { cursor: pointer; }
html body table.table-list tbody tr > td { transition: background var(--fast) var(--ease); }
html body table.table-list tbody tr:hover > td { background: var(--n3); }
html body .dataTables_wrapper .dataTables_length { order: 1; align-self: stretch; float: none; display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; margin-right: auto; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--n9); font-size: var(--t-xs); }
html body .dataTables_wrapper .dataTables_length label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--n10); font-size: var(--t-xs); font-weight: 400; }
html body .dataTables_wrapper .dataTables_length select { min-height: 28px; height: 28px; padding: 0 26px 0 8px; font-size: var(--t-xs); }
html body .dataTables_wrapper .dataTables_paginate { order: 2; align-self: stretch; display: inline-flex; align-items: center; justify-content: flex-end; float: none; flex: 1 1 auto; margin: 0 !important; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--n9); font-size: var(--t-xs); }
html body .dataTables_wrapper .dataTables_paginate .pagination { margin: 0; }
table.dataTable > tbody > tr.child ul.dtr-details > li { border-bottom-color: var(--line); }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before { background-color: var(--n7); box-shadow: none; border: 0; color: var(--n12); }
/* empty tables: an inbox chip above the text, centred across the table */
html body .dataTables_wrapper table.table-list td.dataTables_empty { padding: 40px 16px !important; color: var(--n10) !important; text-align: center !important; }
html body .dataTables_wrapper .dataTables_empty::before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border-radius: 10px;
    border: 1px solid var(--n6);
    background: var(--n3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center / 17px 17px no-repeat;
    box-shadow: var(--chip);
}
.rw-skeleton-list { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.rw-skeleton-list i { display: block; height: 40px; border-radius: var(--r2); background: var(--n3); }
.rw-skeleton-list i:nth-child(3) { width: 82%; }
.rw-skeleton-list i:nth-child(4) { width: 64%; }

/* list cells: icon column, name with a mono line under it, number links, action column */
html body .dataTables_wrapper table.table-list th.rw-col-ic, html body .dataTables_wrapper table.table-list td.rw-col-ic, .rw-col-ic { width: 64px !important; min-width: 52px; padding-right: 0 !important; }
html body .dataTables_wrapper table.table-list th.rw-col-ic::before, html body .dataTables_wrapper table.table-list th.rw-col-ic::after { display: none; }
html body .dataTables_wrapper table.table-list th.rw-col-check, html body .dataTables_wrapper table.table-list td.rw-col-check { width: 36px !important; padding-right: 0 !important; }
html body table.table-list th.rw-col-act::before, html body table.table-list th.rw-col-act::after { display: none; }
html body table.table-list td.rw-col-act { width: 1%; white-space: nowrap; text-align: right !important; }
.rw-ssl, .rw-ssl-mark { display: none; }
.rw-svc-name { display: block; color: var(--n12); font-weight: 500; text-decoration: none !important; }
.rw-svc-sub { display: flex; align-items: center; gap: 6px; color: var(--n9); font: var(--t-xs) var(--mono); }
.rw-inv-no { display: inline-flex; align-items: center; gap: 8px; color: var(--n12); text-decoration: none !important; }
.rw-inv-no svg.ri { width: 14px; height: 14px; color: var(--n9); }
.rw-dept { display: inline-flex; align-items: center; gap: 8px; color: var(--n11); }
.rw-dept svg.ri { width: 14px; height: 14px; color: var(--n9); }
.rw-ticket-link { display: flex; flex-direction: column; text-decoration: none !important; border: 0 !important; padding: 0 !important; }
.rw-ticket-link .ticket-number { color: var(--n9); font: 500 var(--t-xs) var(--mono); }
.rw-ticket-link .ticket-subject { color: var(--n12); font-weight: 500; }
.rw-ticket-link .ticket-subject.unread { font-weight: 600; }
.rw-ticket-link .ticket-subject.unread::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--n12); vertical-align: middle; }
@media (min-width: 992px) {
    html body #tableServicesList { table-layout: fixed; }
    html body #tableServicesList th:nth-child(1) { width: 64px !important; }
    html body #tableServicesList th:nth-child(2) { width: auto !important; }
    html body #tableServicesList th:nth-child(3) { width: 150px !important; }
    html body #tableServicesList th:nth-child(4) { width: 160px !important; }
    html body #tableServicesList th:nth-child(5) { width: 130px !important; }
    html body #tableServicesList td { overflow: hidden; text-overflow: ellipsis; }
}

/* status: a dot and a word, as the panel's .p-status (never a filled pill) */
html body .label, html body .label.status, html body .badge.status, html body .dataTables_wrapper table.table-list .label.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: var(--n11);
    font: 400 var(--t-sm) / 1.4 var(--font);
    text-transform: none;
    white-space: nowrap;
}
html body .label::before, html body .label.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--n8); flex: none; }
html body .label.label-placeholder::before { display: none; }
html body .label.label-success::before, html body .label.status-active::before, html body .label.status-paid::before, html body .label.status-completed::before,
html body .label.status-open::before, html body .label.status-accepted::before, html body .label.status-delivered::before { background: var(--ok); }
html body .label.label-warning::before, html body .label.status-pending::before, html body .label.status-unpaid::before, html body .label.status-customer-reply::before,
html body .label.status-inprogress::before, html body .label.status-in-progress::before, html body .label.status-pending-transfer::before,
html body .label.status-pending-registration::before, html body .label.status-grace::before, html body .label.status-payment-pending::before { background: var(--warn); }
html body .label.label-danger::before, html body .label.status-suspended::before, html body .label.status-overdue::before, html body .label.status-fraud::before,
html body .label.status-collections::before, html body .label.status-redemption::before, html body .label.status-expired::before, html body .label.status-dead::before { background: var(--bad); }
html body .label.label-info::before, html body .label.status-answered::before, html body .label.status-onhold::before, html body .label.status-on-hold::before,
html body .label.status-refunded::before, html body .label.status-sent::before { background: var(--info); }
html body .label.status-custom::before { background: var(--rw-status, var(--n8)); }
html body .label.status-custom { --rw-status: var(--n8); }

/* ------------------------------------------------------------------ 10 alerts, badges, modals, menus, popovers, nav */
.alert { padding: 10px 12px; border: 0; border-radius: 10px; background: var(--n3); color: var(--n12); font-size: var(--t-sm); line-height: 1.5; box-shadow: inset 0 0 0 1px var(--n6); }
.alert-success { background: var(--ok-subtle); box-shadow: inset 0 0 0 1px var(--ok-line); color: var(--n12); }
.alert-warning { background: var(--warn-subtle); box-shadow: inset 0 0 0 1px var(--warn-line); color: var(--n12); }
.alert-danger { background: var(--bad-subtle); box-shadow: inset 0 0 0 1px var(--bad-line); color: var(--n12); }
.alert-info, .alert-primary, .alert-secondary { background: var(--n3); box-shadow: inset 0 0 0 1px var(--n6); color: var(--n12); }
.alert a, .alert .alert-link { color: inherit; text-decoration: underline; font-weight: 500; }
.alert a.btn { text-decoration: none; }   /* a button in an alert (Pay Invoice) stays a button */
.alert h2 { font-size: var(--t-md); color: inherit; }
.alert ul { margin-bottom: 0; padding-left: 18px; }
/* Nexus's "choose contact" style bars (alert-block): a quiet card */
html body .alert.alert-block, html body .alert.alert-block.alert-info { padding: 14px 16px; border: 1px solid var(--line) !important; border-radius: var(--r3); background: var(--n2) !important; color: var(--n12) !important; box-shadow: var(--elev-1); }
html body .alert.alert-block .row { align-items: center; }

.badge { border-radius: 4px; font: 500 11px var(--mono); padding: 2px 6px; }
.badge-dark, .badge-secondary, .badge-light, .badge-default, .badge-primary, .badge-info, .badge:not([class*='badge-']) { background: var(--n4); color: var(--n11); }
.badge-warning { background: var(--warn-subtle); color: var(--warn); }
.badge-success { background: var(--ok-subtle); color: var(--ok); }
.badge-danger { background: var(--bad-subtle); color: var(--bad); }

.modal-backdrop.show { opacity: 0.7; }
.modal-backdrop { background: #000; }
.modal-content { background: var(--n2); border: 0; border-radius: 14px; color: var(--n12); box-shadow: var(--pop); }
.modal-header, .modal-footer { border-color: var(--line); padding: 14px var(--pad); background: transparent !important; }
.modal-header.bg-primary, .modal-header .text-light { color: var(--n12) !important; }
.modal-title { color: var(--n12); font-size: var(--t-md); font-weight: 600; }
.modal-body { padding: var(--pad); }
.close, .close:hover { color: var(--n10); text-shadow: none; opacity: 1; }
.close:hover { color: var(--n12); }
html body .modal-localisation .modal-content { background: var(--n2); }
html body .modal-localisation .item-selector .item { border-radius: var(--r1); color: var(--n11); background: var(--n3); border: 1px solid var(--n6); }
html body .modal-localisation .item-selector .item.active, html body .modal-localisation .item-selector .item:hover { color: var(--n1); background: var(--n12); border-color: var(--n12); }
html body #fullpage-overlay { background: rgb(0 0 0 / 0.8); }
html body #fullpage-overlay .msg { color: var(--n12); }

.dropdown-menu, .rw-menu { min-width: 220px; padding: 4px; border: 0; border-radius: 10px; background: var(--n2); box-shadow: var(--pop); color: var(--n12); }
.dropdown-item, li.dropdown-item > a.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 0 8px; min-height: 32px; border-radius: var(--r1); color: var(--n12); font-size: var(--t-sm); white-space: normal; transition: background var(--fast) var(--ease); }
.dropdown-item svg.ri { width: 15px; height: 15px; color: var(--n9); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--n4); color: var(--n12); }
.dropdown-item.active, .dropdown-item:active { background: var(--n5); color: var(--n12); }
.dropdown-divider { border-color: var(--line); margin: 4px 0; }
.rw-menu-head { display: flex; flex-direction: column; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.rw-menu-head b { color: var(--n12); font-weight: 500; font-size: var(--t-sm); }
.rw-menu-head small { color: var(--n9); font-size: var(--t-xs); word-break: break-all; }

.popover { background: var(--n2); border: 0; border-radius: 10px; box-shadow: var(--pop); font-family: var(--font); }
.popover-header { background: var(--n3); border-color: var(--line); color: var(--n12); }
.popover-body { color: var(--n12); }
html body .bs-popover-top > .arrow::after { border-top-color: var(--n2); }
html body .bs-popover-bottom > .arrow::after { border-bottom-color: var(--n2); }
html body .bs-popover-left > .arrow::after { border-left-color: var(--n2); }
html body .bs-popover-right > .arrow::after { border-right-color: var(--n2); }
html body .popover-user-notifications { max-width: 360px; width: 340px; }
html body .popover-user-notifications ul li { border-color: var(--line) !important; }
html body .popover-user-notifications ul li a { color: var(--n12); border-radius: var(--r1); }
html body .popover-user-notifications ul li a:hover { background: var(--n4); }
html body .popover-user-notifications ul li.none { color: var(--n10); }
html body .popover-user-notifications ul li i.fas.fa-exclamation-circle { color: var(--bad); }
html body .popover-user-notifications ul li i.fas.fa-exclamation-triangle { color: var(--warn); }
html body .popover-user-notifications ul li i.fas.fa-info-circle { color: var(--n11); }
html body .popover-user-notifications ul li i.fas.fa-check-circle { color: var(--ok); }
.tooltip-inner { background: var(--n12); color: var(--n1); font: 500 var(--t-xs) var(--font); border-radius: var(--r1); }
.bs-tooltip-top .arrow::before { border-top-color: var(--n12); }
.bs-tooltip-bottom .arrow::before { border-bottom-color: var(--n12); }

.pagination { gap: 4px; }
.page-link { min-width: 28px; border: 1px solid var(--n6) !important; border-radius: var(--r1) !important; background: var(--n3); color: var(--n11); font: 500 var(--t-xs) var(--font); text-align: center; }
.page-link:hover { background: var(--n4); color: var(--n12); }
.page-item.active .page-link { background: var(--n12); border-color: var(--n12) !important; color: var(--n1); }
.page-item.disabled .page-link { background: transparent; color: var(--n8); }

.nav-tabs { border-bottom: 1px solid var(--line); gap: 2px; }
.nav-tabs .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px; border: 0; border-radius: 0; color: var(--n10); font-size: var(--t-sm); background: transparent; transition: color var(--fast) var(--ease); }
.nav-tabs .nav-link:hover { color: var(--n12); border: 0; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { background: transparent; color: var(--n12); box-shadow: inset 0 -2px 0 var(--n12); }
.nav-pills .nav-link { border-radius: var(--r1); color: var(--n10); }
.nav-pills .nav-link.active { background: var(--n4); color: var(--n12); }

.list-group-item, html body .list-group-item, html body .list-group-item.disabled { background: transparent; border-color: var(--line); color: var(--n11); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.list-group-item-action:hover, .list-group-item-action:focus { background: var(--n4); color: var(--n12); }
.list-group-item.active, html body .list-group-item.active { background: var(--n4); border-color: var(--line); color: var(--n12); font-weight: 500; }
.list-group-item .badge { margin-left: auto; }

/* ------------------------------------------------------------------ 11 sidebars (WHMCS's contextual cards: Your Info,
   Shortcuts, status filter, service Actions...): an icon on every link, aligned on one column */
.sidebar .card, .card-sidebar { margin-bottom: 12px !important; border-radius: var(--r3); overflow: hidden; }
.sidebar .card-header, html body .sidebar .card-header, .card-sidebar .card-header { padding: 12px 14px; background: transparent !important; border-bottom: 1px solid var(--line); }
.sidebar .card-title, .card-sidebar .card-title { display: flex; align-items: center; gap: 8px; color: var(--n12) !important; font: 600 var(--t-sm) var(--font); letter-spacing: 0; }
.sidebar .card-title i:not(.card-minimise) { color: var(--n9); }
.sidebar .card-title .card-minimise { margin-left: auto; color: var(--n9); cursor: pointer; }
.sidebar .list-group-item { padding: 8px 14px; border-left: 0; border-right: 0; font-size: var(--t-sm); }
.sidebar .list-group-item:first-child { border-top: 0; }
.sidebar .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 10px; }
.sidebar .sidebar-menu-item-icon-wrapper { display: inline-grid; place-items: center; width: 18px; flex: none; }
.sidebar svg.sidebar-menu-item-icon { width: 15px; height: 15px; color: var(--n9); }
.sidebar .list-group-item:hover svg.sidebar-menu-item-icon, .sidebar .list-group-item.active svg.sidebar-menu-item-icon { color: var(--n12); }
.sidebar .sidebar-menu-item-icon-wrapper i { color: var(--n9); font-size: 13px; }
.sidebar .sidebar-menu-item-badge { margin-left: auto; }
.sidebar .card-body { color: var(--n11); font-size: var(--t-sm); }
.sidebar .card-body strong { color: var(--n12); }
.sidebar .card-footer { background: transparent; border-top: 1px solid var(--line); padding: 10px 14px; }

/* ------------------------------------------------------------------ 12 pages (only parts no other page has) */
/* dashboard: greeting, home panels */
.rw-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.rw-hero .rw-eyebrow { display: inline-flex; }
.rw-hero h1 { margin: 0; font: 600 32px / 1.1 var(--font); letter-spacing: -0.04em; color: var(--n12); }
.rw-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; color: var(--n10); font-size: var(--t-sm); }
.rw-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rw-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rw-panels .card, html body .client-home-cards .card { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line) !important; }
html body .client-home-cards .card .card-header { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: transparent !important; border-bottom: 1px solid var(--line) !important; }
.rw-panels .card-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-size: var(--t-md); }
.rw-panel-ic { width: 28px; height: 28px; font-size: 12px; }
.rw-panel-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-panel-btn { margin-left: auto; }
html body .client-home-cards .card .card-header .btn.rw-panel-btn, html body .primary-content .client-home-cards .card .card-header .btn { background: var(--n3) !important; border: 1px solid var(--n6) !important; color: var(--n12) !important; }
html body .client-home-cards .card .card-header .btn.rw-panel-btn:hover { background: var(--n4) !important; border-color: var(--n7) !important; }
html body .client-home-cards .card .card-footer, html body .primary-content .client-home-cards .card .card-footer { background: transparent !important; border-top: 1px solid var(--line); color: var(--n10); }
html body .client-home-cards .card-body { padding: 14px 16px; color: var(--n11); }
html body .client-home-cards .card .list-group { max-height: 260px; border: 0 !important; }
html body .client-home-cards .list-group .list-group-item, html body .primary-content .client-home-cards .card .list-group .list-group-item { padding: 10px 16px; border: 0; border-top: 1px solid var(--line); }
html body .client-home-cards .list-group .list-group-item:first-child { border-top: 0; }
html body .client-home-cards .list-group .list-group-item:last-child { border-bottom: 0 !important; }
html body .client-home-cards .list-group .list-group-item small, html body .client-home-cards .text-last-updated { color: var(--n9); }
html body .primary-content .client-home-cards .card .btn-success { background: var(--n12); border-color: var(--n12); color: var(--n1) !important; }
.div-service-item { gap: 12px; padding: 6px 0; }
.div-service-item + .div-service-item { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.div-service-status .label:not(.label-placeholder) { width: auto !important; min-width: 64px; color: var(--n11) !important; }
.div-service-name .font-weight-bold { color: var(--n12); font-weight: 500 !important; }
.div-service-name .text-domain { color: var(--n9); font: var(--t-xs) var(--mono); }

/* service page */
.rw-svc-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); box-shadow: var(--elev-1); }
.rw-svc-hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rw-svc-hero-ic { width: 40px; height: 40px; border-radius: 10px; }
.rw-svc-hero-ic svg.ri { width: 18px; height: 18px; }
.rw-svc-hero .rw-eyebrow { margin: 0; font: 400 var(--t-xs) var(--font); color: var(--n9); }
.rw-svc-hero h2 { margin: 2px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.rw-svc-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: var(--n10); font-size: var(--t-sm); }
.rw-svc-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
html body div.product-details-tab-container, html body .tab-content.bg-white { background: var(--n2) !important; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r3) var(--r3); color: var(--n12); padding: var(--pad); }
html body .responsive-tabs-sm-connector { display: none; }
.product-details-tab-container .row strong { color: var(--n10); font-weight: 400; }
.module-client-area { text-align: left !important; }
.product-details-tab-container .tab-pane > .module-client-area:not(:first-child) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-details-tab-container .rw-domain-acts { margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.product-details-tab-container .rw-domain-acts .btn { margin: 0; }
.module-client-area .rwhosted > h3, .module-client-area .rwonprem > h3 { font-size: 20px; overflow-wrap: anywhere; }
/* module tables (the DNS record to add) and commands: long names and addresses wrap inside the box */
.module-client-area .table td, .module-client-area .table th { overflow-wrap: break-word; }
.module-client-area pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }

/* tickets: open-ticket intro, the conversation */
.rw-ticket-form .card-title, html body .rw-ticket-form h3.card-title { font-size: 18px; margin-bottom: 18px; }
.rw-msg-card .rw-card-head { min-height: 56px; }
.rw-msg-card .rw-card-ttl h2 { font-size: var(--t-md); }
.rw-msg-card .rw-card-ttl p { font-size: var(--t-xs); }
.rw-msg-card.staff { border-color: var(--n7); }
.rw-msg-card .message { color: var(--n12); line-height: 1.65; overflow-wrap: anywhere; }
.rw-msg-card .message .rw-msg-meta { margin-top: 14px; }
.view-ticket .rating, .view-ticket .rating-done { margin-top: 12px; }
html body .ticketfeedbackstaffcont { background: var(--n2); color: var(--n11); }
/* Nexus styles .ticket-reply / .posted-by / .message for its own markup: the card's head and body win */
html body .view-ticket .ticket-reply { margin: 0; padding: 0; border: 1px solid var(--line); }
html body .view-ticket .ticket-reply.staff { border-color: var(--n7); }
html body .view-ticket .ticket-reply .posted-by { margin: 0; padding: 12px var(--pad); background: transparent !important; border-bottom: 1px solid var(--line); color: var(--n11); }
html body .view-ticket .ticket-reply .message { padding: var(--pad); }
html body .view-ticket .ticket-reply .attachments { padding: 12px var(--pad); }

/* upgrade / downgrade: options on the left, service and action on the right; plan cards */
.rw-tpl-upgrade .rw-ctx { display: none; }
.rw-tpl-upgrade .primary-content { flex: 0 0 100%; max-width: 100%; }
.rw-up-form .card-header { padding: 14px var(--pad); }
.rw-up-rows { display: flex; flex-direction: column; }
.rw-up-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 12px 24px; padding: 14px var(--pad); border-top: 1px solid var(--line); }
.rw-up-row:first-child { border-top: 0; }
.rw-up-label { display: flex; flex-direction: column; min-width: 0; }
.rw-up-label label { margin: 0; color: var(--n12); font-weight: 500; font-size: var(--t-sm); }
.rw-up-label small { margin-top: 2px; color: var(--n9); font-size: var(--t-xs); }
.rw-up-ctl .form-control { width: 100%; }
.rw-up-qty { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; }
.rw-up-qty .form-control { width: 96px; flex: none; }
.rw-up-qty span { color: var(--n10); font-size: var(--t-sm); }
.rw-up-side .card-body { display: flex; flex-direction: column; gap: 14px; }
.rw-up-side-label { color: var(--n9); font-size: var(--t-xs); }
.rw-up-svc { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rw-up-svc > div { display: flex; flex-direction: column; min-width: 0; }
.rw-up-svc b { color: var(--n12); font-weight: 500; }
.rw-up-svc small { color: var(--n9); font-size: var(--t-xs); overflow-wrap: anywhere; }
.rw-up-back { margin-top: -2px; }
@media (min-width: 992px) { .rw-up-side { position: sticky; top: 76px; } }
.rw-up-intro { color: var(--n10); }
.rw-up-packages { display: flex; flex-direction: column; gap: 12px; }
.rw-up-pkg { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px 24px; align-items: center; margin: 0; padding: var(--pad); }
.rw-up-pkg-txt { display: flex; flex-direction: column; min-width: 0; }
.rw-up-pkg-txt b { color: var(--n12); font-weight: 600; }
.rw-up-pkg-txt small { color: var(--n9); font-size: var(--t-xs); }
.rw-up-pkg-txt p { margin: 8px 0 0; color: var(--n11); font-size: var(--t-sm); }
.rw-up-pkg-ctl { display: flex; flex-direction: column; gap: 8px; }
.rw-up-price { color: var(--n12); font-weight: 600; }
.rw-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rw-plan { display: flex; flex-direction: column; margin: 0; }
.rw-plan.is-featured { border-color: var(--n8); }
.rw-plan .rw-card-body { flex: 1; }
.rw-plan-desc { color: var(--n11); font-size: var(--t-sm); }
.rw-plan-feats { margin: 0; padding: 0; list-style: none; }
.rw-plan-feats li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--n10); font-size: var(--t-sm); }
.rw-plan-feats li:first-child { border-top: 0; }
.rw-plan-feats b { color: var(--n12); font-weight: 500; }
.rw-plan-form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
html body .upgrade .product-to-be-upgraded, html body .upgrade .products .product { background-color: var(--n2); border-color: var(--line); }

/* ------------------------------------------------------------------ 13 documents: invoice, quote, credit / debit note */
body.rw-doc { min-height: 100vh; padding: 0 16px 48px; background: var(--n1); color: var(--n12); }
.rw-doc-top { display: flex; align-items: center; gap: 8px; max-width: 880px; margin: 0 auto; padding: 18px 0; }
html body .invoice-container.rw-doc-page { max-width: 880px; margin: 0 auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
.rw-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--n2); box-shadow: var(--elev-1); }
.rw-doc-brand { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rw-doc-logo { display: block; max-height: 28px; width: auto; margin-bottom: 14px; }
.rw-doc-head h1 { margin: 0; font: 600 26px / 1.15 var(--font); letter-spacing: -0.04em; }
.rw-doc-sub { color: var(--n10); font-size: var(--t-sm); }
.rw-doc-state { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
html body .rw-doc .invoice-status { margin: 0; }
html body .rw-doc .invoice-status .label { font-size: var(--t-md); font-weight: 500; color: var(--n12); }
.rw-doc .payment-btn-container { display: flex; justify-content: flex-end; }
.rw-doc .payment-btn-container .btn { min-height: 36px; }
.rw-doc-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r3); background: var(--line); box-shadow: var(--elev-1); }
.rw-doc-party { padding: 16px var(--pad); background: var(--n2); color: var(--n11); font-size: var(--t-sm); }
.rw-doc-party address { margin: 0; line-height: 1.6; }
.rw-doc-label { display: block; margin-bottom: 6px; color: var(--n9); font-size: var(--t-xs); }
.rw-doc-party .form-inline .custom-select { width: 100%; }
.rw-doc-note { color: var(--n9); font-size: var(--t-xs); }
.rw-inline-form { max-width: 360px; }

/* ------------------------------------------------------------------ 14 modules and plugins */
/* RWH VPS app (rwh.css) already uses this neutral scale; keep it dark with this theme */
html[data-theme] body .rwh { color-scheme: dark; }
.rws-box { background: var(--n2); }
.rws-cmd { background: var(--n1); color: var(--n11); font-family: var(--mono); }
html body .verification-banner { background-color: transparent; border: 0; color: var(--n12); }
html body .verification-banner .btn { min-height: 28px; }
html body .twofa-setup .backup-code { background-color: var(--n4); color: var(--n12); }
html body .tiles .tile { background-color: var(--n2); border: 1px solid var(--line); color: var(--n12); }
html body .tiles .tile:hover { background-color: var(--n3); }
html body .continue-container, html body .invite-box, html body .home-domain-search .input-group-wrapper, html body .action-icon-btns a { background: var(--n2) !important; border-color: var(--line); color: var(--n12); }
html body .responsive-tabs-sm, html body .responsive-tabs-sm .nav-item a.active, html body .responsive-tabs-sm-connector .channel { background: var(--n2) !important; border-color: var(--line); color: var(--n12); }
html body .responsive-tabs-sm .nav-item a:hover { background-color: var(--n3); }
html body div.credit-card, html body tr.masspay-total td { background-color: var(--n3); color: var(--n12); }
html body div.product-details div.product-icon { background-color: var(--n3); color: var(--n12); }
html body .featured-tld { background-color: var(--n2); border-color: var(--line); }
html body .featured-tld .price { background-color: var(--n3); }
html body .bg-white, html body .bg-light { background-color: var(--n2) !important; color: var(--n12); }
html body .home-domain-search { border-bottom: 1px solid var(--line); }
html body #registration .sub-heading span { background-color: var(--n1); color: var(--n10); }
/* registration and checkout fields carry standard_cart's .field (white in Nexus): the theme's field */
html body #registration .field, html body #registration .form-control, html body #registration .iti input { background-color: var(--n1); border: 1px solid var(--n6); color: var(--n12); }
html body #registration .field:focus, html body #registration .form-control:focus { border-color: var(--n9); box-shadow: var(--well), 0 0 0 3px var(--fill); }
html body #registration .field[disabled], html body #registration .field[readonly], html body #registration .form-control[disabled], html body #registration .form-control[readonly] { background-color: var(--n3); }
html body #registration label { color: var(--n12); font-weight: 500; }

/* ------------------------------------------------------------------ 15 order forms other than rwcart2 (standard_cart,
   nexus_cart) under this theme: their literal whites, so any of them stays readable. rwcart2 styles itself. */
body #order-standard_cart label, body #order-standard_cart .domain-checker-advanced label, body #order-standard_cart .panel-addon .panel-body label,
body #order-standard_cart p.domain-renewal-desc, body .service-renewals .div-renewal-ineligible { color: var(--text-accented); }
body #order-standard_cart .sub-heading { border-top-color: var(--border); }
html body #order-standard_cart .cart-body, html body #order-standard_cart .cart-sidebar { padding-left: 15px !important; padding-right: 15px !important; }
body #order-standard_cart .sub-heading span { background: var(--bg) !important; color: var(--text-muted); }
html body #order-standard_cart .products .product { background: var(--n2) !important; border: 1px solid var(--line) !important; border-radius: var(--r3); overflow: hidden; }
html body #order-standard_cart .products .product header, html body #order-standard_cart .cart-body .products .product header { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; color: var(--n12) !important; }
html body #order-standard_cart .products .product header span { color: var(--n12) !important; font-weight: 600; }
body #order-standard_cart .products .product .product-desc { color: var(--text-accented); line-height: 1.75; }
body #order-standard_cart .products .product .product-pricing { color: var(--text-muted); }
html body #order-standard_cart .products .product .product-pricing .price { color: var(--n12) !important; font-size: 1.5rem; font-weight: 600; }
body #order-standard_cart .panel-addon { background: var(--bg-muted); border-color: var(--border); }
body #order-standard_cart .panel-addon .panel-price { background-color: var(--bg-accented); color: var(--text); }
body #order-standard_cart .panel-addon-selected { border-color: var(--primary); }
body #order-standard_cart .domain-selection-options .option { background-color: var(--bg-muted); border: 1px solid var(--border); }
body #order-standard_cart .domain-selection-options .option-selected { background-color: var(--bg-accented); border-color: var(--border-accented); }
body #order-standard_cart .product-info { background-color: var(--bg-muted); border-color: var(--border); border-radius: var(--rounding-md); color: var(--text-accented); }
body #order-standard_cart .product-info .product-title { color: var(--text); }
body #order-standard_cart .order-summary { background-color: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--rounding-lg); overflow: hidden; }
body #order-standard_cart .order-summary h2 { color: var(--text); background: transparent; font-size: 1rem; font-weight: 600; }
body #order-standard_cart .summary-container { background-color: var(--bg-muted); color: var(--text-accented); }
body #order-standard_cart .order-summary .summary-totals, body #order-standard_cart .order-summary .subtotal, body #order-standard_cart .order-summary .bordered-totals { border-color: var(--border); }
body #order-standard_cart .order-summary .total-due-today .amt { color: var(--text); }
body #order-standard_cart .apply-credit-container, body #order-standard_cart .cc-input-container { background-color: var(--bg-muted); border-color: var(--border); color: var(--text-accented); }
body #order-standard_cart .field, body #order-standard_cart .form-control { background-color: var(--bg); border: 1px solid var(--border-lifted); color: var(--text); }
body #order-standard_cart .view-cart-items-header { background: var(--bg-accented); color: var(--text-muted); }
body #order-standard_cart .view-cart-items { border-color: var(--border); }
body #order-standard_cart .view-cart-items .item { background-color: var(--bg-muted); border-color: var(--border); color: var(--text-accented); }
body #order-standard_cart .view-cart-items .item:nth-child(even) { background-color: var(--bg-lifted); }
body #order-standard_cart .view-cart-items .item-title { color: var(--text); }
body #order-standard_cart .view-cart-tabs .tab-content { background-color: var(--bg-muted); border-color: var(--border); }
body #order-standard_cart .view-cart-promotion-code { background-color: var(--bg-muted); border: 1px dashed var(--border-accented); color: var(--text-accented); }
body #order-standard_cart .view-cart-gateway-checkout { background-color: var(--bg-muted); color: var(--text-accented); }
body #order-standard_cart .account-select-container div.account { background: var(--bg-muted); border-color: var(--border); }
body #order-standard_cart .account-select-container div.account.active { background: var(--bg-accented); border-color: var(--primary); }
html body #order-standard_cart .view-cart-empty { color: var(--n10) !important; }
html body #order-standard_cart svg { max-width: 100%; }
body .domain-checker-container { background: var(--bg-muted) !important; border: 1px solid var(--border); border-radius: var(--rounding-lg); }
body .domain-checker-container .input-group-box { background-color: var(--bg); }
body .spotlight-tld { background-color: var(--bg-lifted); border-color: var(--border); color: var(--text-accented); }
body .domain-promo-box { background-color: var(--bg-muted); border-color: var(--border); color: var(--text-accented); }
body .domain-renewals, body .service-renewals, body .addon-renewals .service-renewal { background-color: var(--bg-muted); border-color: var(--border); }
html body .store-order-container .store-domain-tabs li a { background-color: var(--bg-muted); color: var(--text-accented); }
html body .store-order-container .store-domain-tabs li.active a { background-color: var(--bg-accented); color: var(--text); }
html body .promo-banner { background-color: var(--bg-muted); border-color: var(--border); }

/* ------------------------------------------------------------------ 16 phones and tablets */
@media (max-width: 1199.98px) {
    .rw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rw-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .rw-app { grid-template-columns: minmax(0, 1fr); }
    .rw-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); height: auto; display: none; box-shadow: var(--pop); z-index: 80; }
    .rw-app.rw-nav-open .rw-side { display: flex; }
    .rw-side .rw-side-close { display: inline-grid; }
    .rw-scrim { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / 0.6); }
    .rw-scrim[hidden] { display: none; }
    .rw-app.rw-nav-open .rw-scrim { display: block; }
    .rw-top { padding: 0 16px; }
    .rw-top .rw-burger { display: inline-grid; }
    .rw-top .rw-top-brand { display: inline-flex; flex: 1; min-width: 0; }
    .rw-top .rw-brand-logo { display: none; }
    .rw-top .rw-brand-icon { display: block; }
    .rw-crumbs, .rw-acct-name, .rw-acct-btn svg.rw-chev { display: none; }
    .rw-acct-btn { padding: 0 3px; }
    .rw-content { padding: 20px 16px 0; }
    .rw-banner { padding: 12px 16px 0; }
    .rw-body > .row > .rw-ctx { order: 2; margin-top: 8px; }
    .rw-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--n1) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
    .rw-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border-radius: var(--r2); color: var(--n9); font-size: 10.5px; text-decoration: none !important; transition: color var(--fast) var(--ease); }
    .rw-tabbar a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rw-tabbar a svg.ri { width: 19px; height: 19px; }
    .rw-tabbar a[aria-current='page'] { color: var(--n12); }
    .rw-tab-plus { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 8px; background: var(--n12); color: var(--n1); }
    .rw-tab-plus svg.ri { width: 16px !important; height: 16px !important; }
    .rw-l-app .rw-foot { margin-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .rw-form-bar { position: static; }

    .rw-gnav-in { padding: 0 16px; gap: 10px; height: 56px; }
    .rw-gnav .rw-gnav-burger { display: inline-grid; }
    .rw-gnav .rw-brand-logo { height: 20px; }
    .rw-gnav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 12px 12px; background: var(--n1); border-bottom: 1px solid var(--line); max-height: calc(100vh - 56px); overflow-y: auto; }
    .rw-gnav.is-open .rw-gnav-links { display: flex; }
    .rw-gnav-links .rw-gnav-link { width: 100%; height: 40px; }
    .rw-gnav-links .dropdown-menu { position: static !important; transform: none !important; float: none; box-shadow: none; padding: 0 0 6px 28px; background: transparent; }
    .rw-guest-content { padding: 20px 16px 0; }

    .rw-pagehead h1, .rw-hero h1 { font-size: 24px; }
    .rw-split { grid-template-columns: minmax(0, 1fr); }
    html body .dataTables_wrapper .dataTables_length, html body .dataTables_wrapper .dataTables_paginate { flex: 1 1 100%; justify-content: center; margin: 0 auto; }
    html body .dataTables_wrapper .dataTables_info { flex: 1 1 100%; padding: 8px 16px; }
}
@media (max-width: 767.98px) {
    .rw-up-row, .rw-up-pkg { grid-template-columns: minmax(0, 1fr); }
    .rw-invite-grid { grid-template-columns: minmax(0, 1fr); }
    /* Nexus's stacked service tabs are 90% wide with a connector this theme hides: full width, flush with the box */
    html body .responsive-tabs-sm { width: 100%; border-radius: var(--r3) var(--r3) 0 0; }
    html body .responsive-tabs-sm .nav-item { margin-left: 0; }
    .rw-hform .form-group.row > label, .rw-hform .form-group.row > .control-label { padding-top: 0; }
}
@media (max-width: 575.98px) {
    :root { --pad: 16px; }
    .rw-gnav-join { display: none !important; }
    .rw-stats { gap: 8px; }
    .rw-stats-3 { grid-template-columns: minmax(0, 1fr); }
    .rw-stat { padding: 14px; }
    .rw-pagehead-acts, .rw-pagehead-acts .btn, .rw-hero-acts { width: 100%; }
    .rw-hero-acts .btn, .rw-callout-acts .btn { flex: 1; }
    .rw-callout-acts { width: 100%; }
    .rw-foot-in { flex-direction: column; align-items: flex-start; }
    html body .dataTables_wrapper .dataTables_filter label .form-control { width: 100% !important; }
    .rw-auth-card { padding: 22px 18px; }
    .rw-field-pair { grid-template-columns: minmax(0, 1fr); }
    .rw-svc-hero-acts, .rw-svc-hero-acts .btn { width: 100%; }
    .rw-svc-hero-main { align-items: flex-start; }
    .rw-auth-top .rw-brand-logo { height: 22px; }
    /* heads: actions drop under the title, rows stack their actions */
    .rw-card-head { flex-wrap: wrap; }
    .rw-card-acts { width: 100%; margin-left: 44px; }
    .rw-card-head:not(:has(.rw-ic)) .rw-card-acts { margin-left: 0; }
    .rw-row { flex-wrap: wrap; }
    .rw-row-acts { width: 100%; justify-content: flex-start; padding-left: 44px; }
    .rw-row > .rw-avatar + .rw-row-main + .rw-row-acts { padding-left: 40px; }
    .rw-form-actions { justify-content: stretch; }
    .rw-form-actions > .btn, .rw-form-actions > input.btn { flex: 1 1 auto; }
    .rw-form-actions > small, .rw-form-actions > span { flex: 1 1 100%; }
    .rw-set-row { flex-direction: column; align-items: flex-start; }
    .rw-msg { padding: 28px 18px; }
    .rw-msg-code { font-size: 44px; }
    .rw-doc-head { padding: 18px; }
    .rw-doc-state { align-items: flex-start; }
    .rw-doc-top { flex-wrap: wrap; }
    .product-details-tab-container .tab-pane > .row > [class*='col-'] { text-align: left !important; }
    .product-details-tab-container .tab-pane > .row { margin-bottom: 10px; }
    .product-details-tab-container .tab-pane > .row > [class*='col-sm-5'] { font-size: var(--t-xs); }
    /* hosted panel action rows: one full-width column on phones */
    .module-client-area .rwhosted-acts > * { flex: 1 1 100%; max-width: none !important; }
    .module-client-area .rwhosted-acts .btn { width: 100%; }
    .module-client-area .table td, .module-client-area .table th, .module-client-area .table td code { overflow-wrap: anywhere; white-space: normal; }
    /* a module table whose cells carry data-label (the DNS record) becomes one labelled line per cell */
    .module-client-area .table:has(td[data-label]) thead { display: none; }
    .module-client-area .table:has(td[data-label]) tr, .module-client-area .table td[data-label] { display: block; }
    html body .panel-body > .table:has(td[data-label]) { width: 100%; margin-left: 0; margin-right: 0; }
    .module-client-area .table td[data-label] { padding: 4px 0 !important; border: 0; }
    .module-client-area .table td[data-label]::before { content: attr(data-label); display: block; color: var(--n10); font-size: var(--t-xs); }
}

/* ------------------------------------------------------------------ 17 print, reduced motion */
@media print {
    :root { --n1: #fff; --n2: #fff; --n3: #f5f5f5; --n12: #111; --n11: #333; --n10: #555; --n9: #666; --line: #ddd; }
    html, body, body.rw-doc { background: #fff !important; color: #111 !important; }
    .rw-card, .rw-doc-head, .rw-doc-parties, .card { box-shadow: none !important; }
    .rw-doc-logo { filter: invert(1); }
}
@media (prefers-reduced-motion: reduce) {
    .rw-auth-art .rw-trace-pulse { display: none; }
    .rw-auth-art .rw-led-a, .rw-auth-art .rw-led-w { animation: none; opacity: 1; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
